Documentation ¶
Index ¶
- func AccountState(sr protocol.StateReader, encodedAddr string) (*state.Account, error)
- func AccountStateWithHeight(sr protocol.StateReader, encodedAddr string) (*state.Account, uint64, error)
- func LoadAccount(sr protocol.StateReader, addrHash hash.Hash160) (*state.Account, error)
- func LoadOrCreateAccount(sm protocol.StateManager, encodedAddr string) (*state.Account, error)
- func Recorded(sr protocol.StateReader, addr address.Address) (bool, error)
- func SetNonce(i noncer, state *state.Account)
- func StoreAccount(sm protocol.StateManager, addr address.Address, 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 AccountStateWithHeight ¶ added in v1.1.0
func AccountStateWithHeight(sr protocol.StateReader, encodedAddr string) (*state.Account, uint64, error)
AccountStateWithHeight returns the confirmed account state on the chain with what height the state is read from.
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.