asset

package
v1.0.15 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2024 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccountRequest

type AccountRequest struct {
	Account string `json:"account"`
}

type Asset

type Asset struct {
	*Tripod
	TokenName string
}

func NewAsset

func NewAsset(tokenName string) *Asset

func (*Asset) AddBalance

func (a *Asset) AddBalance(addr *Address, amount *big.Int) error

func (*Asset) CreateAccount

func (a *Asset) CreateAccount(ctx *WriteContext) error

func (*Asset) ExistAccount

func (a *Asset) ExistAccount(addr *Address) bool

func (*Asset) GetBalance

func (a *Asset) GetBalance(addr *Address) *big.Int

func (*Asset) QueryBalance

func (a *Asset) QueryBalance(ctx *ReadContext)

func (*Asset) SetBalance

func (a *Asset) SetBalance(addr *Address, amount *big.Int)

func (*Asset) SubBalance

func (a *Asset) SubBalance(addr *Address, amount *big.Int) error

func (*Asset) Transfer

func (a *Asset) Transfer(ctx *WriteContext) (err error)

Jump to

Keyboard shortcuts

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