henriquecbuss/elm-eos/1.0.1

NOTE: the latest version is 1.1.0

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

Eos.ExtendedAsset

type alias ExtendedAsset =
{ amount : Float
, symbol : Symbol
, contract : Name
}

An extended asset is simply an Asset, but with a contract Name

Dealing with JSON

encode : ExtendedAsset -> Value

Encode an ExtendedAsset into JSON.

decoder : Decoder ExtendedAsset

Decode an ExtendedAsset from JSON.