Documentation
¶
Index ¶
- Constants
- func DebitAccount(keepers core.Keepers, targetAcct *ed25519.PubKey, amount decimal.Decimal, ...)
- func DebitAccountByAddress(keepers core.Keepers, targetAddr identifier.Address, amt decimal.Decimal, ...)
- func DebitAccountObject(keepers core.Keepers, targetAddr identifier.Address, targetAcct *state.Account, ...)
Constants ¶
View Source
const ( ErrFailedToApplyProposal = "failed to apply proposal" ErrFailedToIndexProposal = "failed to index proposal against end height" )
Variables ¶
This section is empty.
Functions ¶
func DebitAccount ¶
func DebitAccount(keepers core.Keepers, targetAcct *ed25519.PubKey, amount decimal.Decimal, chainHeight uint64)
DebitAccount debits an account of a specific amount. It increments the account's nonce and persist the updates.
func DebitAccountByAddress ¶
func DebitAccountByAddress(keepers core.Keepers, targetAddr identifier.Address, amt decimal.Decimal, chainHeight uint64)
DebitAccountByAddress is like DebitAccount but accepts the address of the debit account.
func DebitAccountObject ¶
func DebitAccountObject(keepers core.Keepers, targetAddr identifier.Address, targetAcct *state.Account, amount decimal.Decimal, chainHeight uint64)
DebitAccountObject is like DebitAccount, but it accepts the debit account object. It increments the account's nonce and persist the updates.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.