yacarsdk

package module
v2.6.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 22, 2023 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidateAccounts added in v2.4.0

func ValidateAccounts(accounts []Account) (int, error)

func ValidateAssets added in v2.4.0

func ValidateAssets(assets []Asset, entities []Entity) (int, error)

func ValidateBinaries added in v2.4.0

func ValidateBinaries(binaries []Binary) (int, error)

func ValidateContracts added in v2.4.0

func ValidateContracts(contracts []Contract) (int, error)

func ValidateEntities added in v2.4.0

func ValidateEntities(entities []Entity, usedEntities map[string]struct{}) (int, error)

func ValidatePools added in v2.4.0

func ValidatePools(pools []Pool) (int, error)

Types

type Account

type Account struct {
	Id     string `json:"id"`
	Entity string `json:"entity"`
	Label  string `json:"label"`
}

func (Account) IsMinimallyPopulated

func (a Account) IsMinimallyPopulated() bool

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

func (a Asset) IsMinimallyPopulated() bool

type Binary

type Binary struct {
	Id     string `json:"id"`
	Entity string `json:"entity"`
	Label  string `json:"label"`
}

func (Binary) IsMinimallyPopulated

func (b Binary) IsMinimallyPopulated() bool

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

func (c Contract) IsMinimallyPopulated() bool

type Entity

type Entity struct {
	Name     string `json:"name"`
	Website  string `json:"website,omitempty"`
	Telegram string `json:"telegram,omitempty"`
	Twitter  string `json:"twitter,omitempty"`
	Discord  string `json:"discord,omitempty"`
}

func (Entity) IsMinimallyPopulated

func (e Entity) IsMinimallyPopulated() bool

type Pool

type Pool struct {
	Id        string   `json:"id"`
	AssetIds  []string `json:"asset_ids"`
	Dex       string   `json:"dex"`
	Type      string   `json:"type"`
	LpTokenId string   `json:"lp_token_id,omitempty"`
}

func (Pool) IsMinimallyPopulated

func (a Pool) IsMinimallyPopulated() bool

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL