Documentation ¶
Index ¶
- type 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)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Token ¶
type Token struct { Symbol string `json:"symbol"` Decimals int64 `json:"decimals"` TotalSupply *big.Int `json:"totalSupply"` Balances map[string]*big.Int `json:"balances"` // account id -> balance Stakes map[string]map[string][]schema.Stake `json:"stakes"` // account id -> stake pool -> stakes // contains filtered or unexported fields }
func (*Token) TotalStaked ¶
func (*Token) TransferToStake ¶
Click to show internal directories.
Click to hide internal directories.