chain

package
v1.3.63 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetTotalAssetCount added in v1.1.3

func GetTotalAssetCount() (*int, error)

func InsertChain

func InsertChain(chain Chain) (int, error)

func RemoveChain

func RemoveChain(chainID int) error

func UpdateChain

func UpdateChain(chain Chain) error

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 GetChain

func GetChain(chainID int) (*Chain, error)

func GetChainByAddress

func GetChainByAddress(address string) (*Chain, error)

func GetChainByAlternateName

func GetChainByAlternateName(altenateName string) (*Chain, error)

func GetChainList

func GetChainList(ids []int) ([]Chain, error)

func GetChainListByPagination added in v1.1.3

func GetChainListByPagination(_start, _end *int, _order, _sort string, _filters []string) ([]Chain, error)

Jump to

Keyboard shortcuts

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