common

package
v0.0.32 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 15, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL