Documentation ¶
Index ¶
- func ValidateAccounts(accounts []Account) (int, error)
- func ValidateAssets(assets []Asset, entities []Entity) (int, error)
- func ValidateBinaries(binaries []Binary) (int, error)
- func ValidateContracts(contracts []Contract) (int, error)
- func ValidateEntities(entities []Entity, usedEntities map[string]struct{}) (int, error)
- func ValidatePools(pools []Pool) (int, error)
- type Account
- type Asset
- type Binary
- type ByEnforcedAccountOrder
- type ByEnforcedAssetOrder
- type ByEnforcedBinaryOrder
- type ByEnforcedContractOrder
- type ByEnforcedEntityOrder
- type ByEnforcedPoolOrder
- type Contract
- type Entity
- type Pool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ValidateAccounts ¶ added in v2.4.0
func ValidateAssets ¶ added in v2.4.0
func ValidateBinaries ¶ added in v2.4.0
func ValidateContracts ¶ added in v2.4.0
func ValidateEntities ¶ added in v2.4.0
func ValidatePools ¶ added in v2.4.0
Types ¶
type Account ¶
type Account struct { Id string `json:"id"` Entity string `json:"entity"` Label string `json:"label"` }
func (Account) IsMinimallyPopulated ¶
type Asset ¶
type Asset struct { Id string `json:"id"` Entity string `json:"entity,omitempty"` Name string `json:"name"` Symbol string `json:"symbol"` Decimals string `json:"decimals"` Type string `json:"type"` CircSupply string `json:"circ_supply,omitempty"` CircSupplyAPI string `json:"circ_supply_api,omitempty"` TotalSupply string `json:"total_supply,omitempty"` TotalSupplyAPI string `json:"total_supply_api,omitempty"` Icon string `json:"icon,omitempty"` CoinMarketCap string `json:"coinmarketcap,omitempty"` CoinGecko string `json:"coingecko,omitempty"` VerificationTx string `json:"verification_tx,omitempty"` }
func (Asset) IsMinimallyPopulated ¶
type Binary ¶
type Binary struct { Id string `json:"id"` Entity string `json:"entity"` Label string `json:"label"` }
func (Binary) IsMinimallyPopulated ¶
type ByEnforcedAccountOrder ¶
type ByEnforcedAccountOrder []Account
func (ByEnforcedAccountOrder) Len ¶
func (acc ByEnforcedAccountOrder) Len() int
func (ByEnforcedAccountOrder) Less ¶
func (acc ByEnforcedAccountOrder) Less(i, j int) bool
func (ByEnforcedAccountOrder) Swap ¶
func (acc ByEnforcedAccountOrder) Swap(i, j int)
type ByEnforcedAssetOrder ¶
type ByEnforcedAssetOrder []Asset
func (ByEnforcedAssetOrder) Len ¶
func (assets ByEnforcedAssetOrder) Len() int
func (ByEnforcedAssetOrder) Less ¶
func (assets ByEnforcedAssetOrder) Less(i, j int) bool
func (ByEnforcedAssetOrder) Swap ¶
func (assets ByEnforcedAssetOrder) Swap(i, j int)
type ByEnforcedBinaryOrder ¶
type ByEnforcedBinaryOrder []Binary
func (ByEnforcedBinaryOrder) Len ¶
func (bins ByEnforcedBinaryOrder) Len() int
func (ByEnforcedBinaryOrder) Less ¶
func (bins ByEnforcedBinaryOrder) Less(i, j int) bool
func (ByEnforcedBinaryOrder) Swap ¶
func (bins ByEnforcedBinaryOrder) Swap(i, j int)
type ByEnforcedContractOrder ¶
type ByEnforcedContractOrder []Contract
func (ByEnforcedContractOrder) Len ¶
func (cons ByEnforcedContractOrder) Len() int
func (ByEnforcedContractOrder) Less ¶
func (cons ByEnforcedContractOrder) Less(i, j int) bool
func (ByEnforcedContractOrder) Swap ¶
func (cons ByEnforcedContractOrder) Swap(i, j int)
type ByEnforcedEntityOrder ¶
type ByEnforcedEntityOrder []Entity
func (ByEnforcedEntityOrder) Len ¶
func (ents ByEnforcedEntityOrder) Len() int
func (ByEnforcedEntityOrder) Less ¶
func (ents ByEnforcedEntityOrder) Less(i, j int) bool
func (ByEnforcedEntityOrder) Swap ¶
func (ents ByEnforcedEntityOrder) Swap(i, j int)
type ByEnforcedPoolOrder ¶
type ByEnforcedPoolOrder []Pool
func (ByEnforcedPoolOrder) Len ¶
func (pools ByEnforcedPoolOrder) Len() int
func (ByEnforcedPoolOrder) Less ¶
func (pools ByEnforcedPoolOrder) Less(i, j int) bool
func (ByEnforcedPoolOrder) Swap ¶
func (pools ByEnforcedPoolOrder) Swap(i, j int)
type Contract ¶
type Contract struct { Id string `json:"id"` Entity string `json:"entity"` Label string `json:"label"` }
func (Contract) IsMinimallyPopulated ¶
Click to show internal directories.
Click to hide internal directories.