Documentation
¶
Index ¶
- func Spawn(env vmmSchema.Env) (vm vmmSchema.Vm, err error)
- type Token
- func (b *Token) Add(accId string, amount *big.Int) error
- func (b *Token) Apply(from string, meta vmmSchema.Meta) (res vmmSchema.Result)
- func (b *Token) CacheBalances() map[string]string
- func (b *Token) CacheChangeBalance(updateAccounts ...string) map[string]string
- func (b *Token) CacheTotalSupply() map[string]string
- func (b *Token) Checkpoint() (string, error)
- func (b *Token) Close() error
- func (b *Token) HandleBalanceOf(from string, params map[string]string) (res vmmSchema.Result)
- func (b *Token) HandleTotalSupply(from string) (res vmmSchema.Result)
- func (b *Token) HandleTransfer(itemId, from string, params map[string]string) (res vmmSchema.Result)
- func (b *Token) Mint(to string, amount *big.Int) (err error)
- func (b *Token) Restore(data string) error
- func (b *Token) Sub(accId string, amount *big.Int) error
- func (b *Token) Transfer(from, to string, amount *big.Int) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Token ¶
func (*Token) CacheBalances ¶
func (*Token) CacheChangeBalance ¶
func (*Token) CacheTotalSupply ¶
func (*Token) Checkpoint ¶
func (*Token) HandleBalanceOf ¶
func (*Token) HandleTotalSupply ¶
func (*Token) HandleTransfer ¶
Click to show internal directories.
Click to hide internal directories.