chain

package
v1.0.11 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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"`
}

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() ([]Chain, error)

Jump to

Keyboard shortcuts

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