AssetCode class

AssetCode serves as a unique identifier for user issued assets

Constructors

AssetCode(int assetCodeVersion, ToplAddress issuer, Latin1Data shortName, String networkPrefix)
AssetCode.deserialize(String from)
factory
AssetCode.fromJson(String assetCode)
A necessary factory constructor for creating a new AssetCode instance from a map. The constructor is named after the source class, in this case, AssetCode.
factory
AssetCode.initialize(int version, ToplAddress issuer, String name, String networkPrefix)
This method creates a new assetCode with correct version networkPrefix (which is the network on which the asset will be stored). The short name of the asset name is only allowed to be up to 8 bytes long with a latin-1 encoding. Returns a new assetCode
factory

Properties

assetCodeVersion int
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
issuer ToplAddress
final
networkPrefix String
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
shortName Latin1Data
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
serialize() String
@returns {string} return asset code
toJson() String
toJson is the convention for a class to declare support for serialization to JSON.
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited