Versions in this module Expand all Collapse all v0 v0.0.2 Mar 21, 2024 v0.0.1 Mar 13, 2024 Changes in this version + type Token struct + Balances map[string]*big.Int + Decimals int64 + Stakes map[string]map[string][]schema.Stake + Symbol string + TotalSupply *big.Int + func New(symbol string, decimals int64, totalSupply *big.Int, ...) *Token + func (t *Token) BalanceOf(addr string) string + func (t *Token) Info() *schema.TokenInfo + func (t *Token) Stake(from, stakePool string, amount *big.Int, stakedAt int64, feeRecipient string, ...) (err error) + func (t *Token) TotalStaked(addr, stakePool string) string + func (t *Token) Transfer(from, to string, amount *big.Int, feeRecipient string, fee *big.Int, ...) (err error) + func (t *Token) TransferToStake(from, to string, amount *big.Int, stakePool string, stakedAt int64, ...) (err error) + func (t *Token) Unstake(from, stakePool string, amount *big.Int, feeRecipient string, fee *big.Int, ...) (err error)