Documentation
¶
Index ¶
- type Account
- func (a *Account) AccountChanged(data []byte) bool
- func (a *Account) Add(token ids.TokenSymbol, amount *big.Int) error
- func (a *Account) Balance() *big.Int
- func (a *Account) BalanceOf(token ids.TokenSymbol) *big.Int
- func (a *Account) BalanceOfAll(token ids.TokenSymbol) *big.Int
- func (a *Account) Borrow(token ids.TokenSymbol, from ids.Address, amount *big.Int, dueTime uint64) error
- func (a *Account) CheckBalance(token ids.TokenSymbol, amount *big.Int, checkNTB bool) error
- func (a *Account) CloseLending() error
- func (a *Account) CreateStake(from ids.Address, pledge *big.Int, acc *ld.TxAccounter, cfg *ld.StakeConfig) error
- func (a *Account) CreateToken(data *ld.TxAccounter) error
- func (a *Account) DestroyStake(recipient *Account) error
- func (a *Account) DestroyToken(recipient *Account) error
- func (a *Account) GetStakeAmount(token ids.TokenSymbol, from ids.Address) *big.Int
- func (a *Account) ID() ids.Address
- func (a *Account) IDKey() signer.Key
- func (a *Account) Init(nonTransferableBalance, pledge *big.Int, height, timestamp uint64) *Account
- func (a *Account) IsEmpty() bool
- func (a *Account) Keepers() signer.Keys
- func (a *Account) LD() *ld.Account
- func (a *Account) Ledger() *ld.AccountLedger
- func (a *Account) LedgerChanged(data []byte) bool
- func (a *Account) LoadLedger(force bool, fn func() ([]byte, error)) error
- func (a *Account) Marshal() ([]byte, []byte, error)
- func (a *Account) Nonce() uint64
- func (a *Account) OpenLending(cfg *ld.LendingConfig) error
- func (a *Account) Repay(token ids.TokenSymbol, from ids.Address, amount *big.Int) (*big.Int, error)
- func (a *Account) ResetPledge()
- func (a *Account) ResetStake(cfg *ld.StakeConfig) error
- func (a *Account) Sub(token ids.TokenSymbol, amount *big.Int) error
- func (a *Account) SubByNonceTable(token ids.TokenSymbol, expire, nonce uint64, amount *big.Int) error
- func (a *Account) SubGasByNonce(token ids.TokenSymbol, nonce uint64, amount *big.Int) error
- func (a *Account) TakeStake(token ids.TokenSymbol, from ids.Address, amount *big.Int, lockTime uint64) error
- func (a *Account) Threshold() uint16
- func (a *Account) TotalSupply() *big.Int
- func (a *Account) Type() ld.AccountType
- func (a *Account) UpdateKeepers(threshold *uint16, keepers *signer.Keys, approver *signer.Key, ...) error
- func (a *Account) UpdateNonceTable(expire uint64, ns []uint64) error
- func (a *Account) UpdateStakeApprover(from ids.Address, approver signer.Key, txIsApprovedFn ld.TxIsApprovedFn) error
- func (a *Account) Valid(t ld.AccountType) bool
- func (a *Account) ValidValidator() bool
- func (a *Account) Verify(digestHash []byte, sigs signer.Sigs, accountKey signer.Key) bool
- func (a *Account) VerifyPlus(digestHash []byte, sigs signer.Sigs, accountKey signer.Key) bool
- func (a *Account) WithdrawStake(token ids.TokenSymbol, from ids.Address, amount *big.Int, ...) (*big.Int, error)
- type ActiveAccounts
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Account ¶
type Account struct {
// contains filtered or unexported fields
}
func NewAccount ¶
func (*Account) AccountChanged ¶
func (*Account) BalanceOfAll ¶
func (a *Account) BalanceOfAll(token ids.TokenSymbol) *big.Int
func (*Account) CheckBalance ¶
func (*Account) CloseLending ¶
func (*Account) CreateStake ¶
func (a *Account) CreateStake( from ids.Address, pledge *big.Int, acc *ld.TxAccounter, cfg *ld.StakeConfig, ) error
func (*Account) CreateToken ¶
func (a *Account) CreateToken(data *ld.TxAccounter) error
func (*Account) DestroyStake ¶
func (*Account) DestroyToken ¶
func (*Account) GetStakeAmount ¶
func (*Account) Ledger ¶
func (a *Account) Ledger() *ld.AccountLedger
func (*Account) LedgerChanged ¶
func (*Account) LoadLedger ¶
func (*Account) OpenLending ¶
func (a *Account) OpenLending(cfg *ld.LendingConfig) error
func (*Account) ResetPledge ¶
func (a *Account) ResetPledge()
func (*Account) ResetStake ¶
func (a *Account) ResetStake(cfg *ld.StakeConfig) error
func (*Account) SubByNonceTable ¶
func (*Account) SubGasByNonce ¶
func (*Account) TotalSupply ¶
func (*Account) Type ¶
func (a *Account) Type() ld.AccountType
func (*Account) UpdateKeepers ¶
func (*Account) UpdateNonceTable ¶
func (*Account) UpdateStakeApprover ¶
func (*Account) ValidValidator ¶
func (*Account) VerifyPlus ¶
func (*Account) WithdrawStake ¶
type ActiveAccounts ¶
Click to show internal directories.
Click to hide internal directories.