Documentation ¶
Index ¶
- func GetTotalAssetCount() (*int, error)
- func InsertChain(chain Chain) (int, error)
- func RemoveChain(chainID int) error
- func UpdateChain(chain Chain) error
- type Chain
- func GetChain(chainID int) (*Chain, error)
- func GetChainByAddress(address string) (*Chain, error)
- func GetChainByAlternateName(altenateName string) (*Chain, error)
- func GetChainList(ids []int) ([]Chain, error)
- func GetChainListByPagination(_start, _end *int, _order, _sort string, _filters []string) ([]Chain, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetTotalAssetCount ¶ added in v1.1.3
func InsertChain ¶
func RemoveChain ¶
func UpdateChain ¶
Types ¶
type Chain ¶
type Chain struct { ID *int `json:"id"` UUID string `json:"uuid"` BaseAssetID *int `json:"baseAssetId"` Name string `json:"name"` AlternateName string `json:"alternateName"` Address string `json:"address"` ChainTypeID *int `json:"chainTypeId"` Description string `json:"description"` CreatedBy string `json:"createdBy"` CreatedAt time.Time `json:"createdAt"` UpdatedBy string `json:"updatedBy"` UpdatedAt time.Time `json:"updatedAt"` RpcURL string `json:"rpcUrl"` ChainID *int `json:"chainId"` BlockExplorerURL string `json:"blockExplorerUrl"` RpcURLDev string `json:"rpcUrlDev"` RpcURLProd string `json:"rpcUrlProd"` RpcURLArchive string `json:"rpcUrlArchive"` }
Asset
func GetChainByAddress ¶
func GetChainByAlternateName ¶
func GetChainList ¶
Click to show internal directories.
Click to hide internal directories.