Documentation ¶
Overview ¶
Package assets is a simple helper package to help convert to/from xdr.AssetType values
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var AssetTypeMap = map[string]xdr.AssetType{ "native": xdr.AssetTypeAssetTypeNative, "credit_alphanum4": xdr.AssetTypeAssetTypeCreditAlphanum4, "credit_alphanum12": xdr.AssetTypeAssetTypeCreditAlphanum12, }
AssetTypeMap is the read-only (i.e. don't modify it) map from string names to xdr.AssetType values
View Source
var ErrInvalidString = errors.New("invalid asset type: was not one of 'native', 'credit_alphanum4', 'credit_alphanum12', 'liquidity_pool_shares'")
ErrInvalidString gets returns when the string form of the asset type is invalid
View Source
var ErrInvalidValue = errors.New("unknown asset type, cannot convert to string")
ErrInvalidValue gets returned when the xdr.AssetType int value is not one of the valid enum values
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.