henriquecbuss/elm-eos/1.1.0

Formerly NeoVier/elm-eos. Search finds this package by either name.

Eos.Asset

type alias Asset =
{ amount : Float
, symbol : Symbol
}

An asset is simply an amount of a given symbol.

Dealing with JSON

encode : Asset -> Value

Encode an Asset into JSON.

decoder : Decoder Asset

Decode an Asset from JSON.