Documentation ¶
Index ¶
- func AccountState(sr protocol.StateReader, encodedAddr string) (*state.Account, error)
- func AccountStateAtHeight(sr protocol.StateReader, encodedAddr string, height uint64) (*state.Account, error)
- func LoadAccount(sm protocol.StateReader, addrHash hash.Hash160) (*state.Account, error)
- func LoadOrCreateAccount(sm protocol.StateManager, encodedAddr string) (*state.Account, error)
- func Recorded(sm protocol.StateReader, addr address.Address) (bool, error)
- func SetNonce(i noncer, state *state.Account)
- func StoreAccount(sm protocol.StateManager, encodedAddr string, account *state.Account) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AccountState ¶ added in v0.11.0
AccountState returns the confirmed account state on the chain
func AccountStateAtHeight ¶ added in v0.11.0
func AccountStateAtHeight(sr protocol.StateReader, encodedAddr string, height uint64) (*state.Account, error)
AccountStateAtHeight returns the confirmed account state on the chain
func LoadAccount ¶
LoadAccount loads an account state
func LoadOrCreateAccount ¶
LoadOrCreateAccount either loads an account state or creates an account state
func StoreAccount ¶
StoreAccount puts updated account state to trie
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.