Documentation ¶
Index ¶
- func LoadAccount(sm protocol.StateManager, addrHash hash.Hash160) (*state.Account, error)
- func LoadOrCreateAccount(sm protocol.StateManager, encodedAddr string, init *big.Int) (*state.Account, error)
- func Recorded(sm protocol.StateManager, 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 LoadAccount ¶
LoadAccount loads an account state
func LoadOrCreateAccount ¶
func LoadOrCreateAccount(sm protocol.StateManager, encodedAddr string, init *big.Int) (*state.Account, error)
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.