Documentation ¶
Index ¶
- func CreateAccountsAdapterAPIOnCurrent(args state.ArgsAccountsDB, chainHandler chainData.ChainHandler) (state.AccountsAdapterAPI, error)
- func CreateAccountsAdapterAPIOnFinal(args state.ArgsAccountsDB, chainHandler chainData.ChainHandler) (state.AccountsAdapterAPI, error)
- func CreateAccountsAdapterAPIOnHistorical(args state.ArgsAccountsDB) (state.AccountsAdapterAPI, error)
- func NewAccountCreator(args ArgsAccountCreator) (state.AccountFactory, error)
- func NewPeerAccountCreator() state.AccountFactory
- type ArgsAccountCreator
- type PeerAccountCreator
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateAccountsAdapterAPIOnCurrent ¶
func CreateAccountsAdapterAPIOnCurrent(args state.ArgsAccountsDB, chainHandler chainData.ChainHandler) (state.AccountsAdapterAPI, error)
CreateAccountsAdapterAPIOnCurrent creates a new instance of AccountsAdapterAPI that tracks the current blocks state
func CreateAccountsAdapterAPIOnFinal ¶
func CreateAccountsAdapterAPIOnFinal(args state.ArgsAccountsDB, chainHandler chainData.ChainHandler) (state.AccountsAdapterAPI, error)
CreateAccountsAdapterAPIOnFinal creates a new instance of AccountsAdapterAPI that tracks the final blocks state
func CreateAccountsAdapterAPIOnHistorical ¶
func CreateAccountsAdapterAPIOnHistorical(args state.ArgsAccountsDB) (state.AccountsAdapterAPI, error)
CreateAccountsAdapterAPIOnHistorical creates a new instance of AccountsAdapterAPI that tracks historical state
func NewAccountCreator ¶
func NewAccountCreator(args ArgsAccountCreator) (state.AccountFactory, error)
NewAccountCreator creates a new instance of AccountCreator
func NewPeerAccountCreator ¶
func NewPeerAccountCreator() state.AccountFactory
NewPeerAccountCreator creates a peer account creator
Types ¶
type ArgsAccountCreator ¶ added in v1.6.0
type ArgsAccountCreator struct { Hasher hashing.Hasher Marshaller marshal.Marshalizer EnableEpochsHandler common.EnableEpochsHandler }
ArgsAccountCreator holds the arguments needed to create a new account creator
type PeerAccountCreator ¶
type PeerAccountCreator struct { }
PeerAccountCreator has a method to create a new peer account
func (*PeerAccountCreator) CreateAccount ¶
func (pac *PeerAccountCreator) CreateAccount(address []byte) (vmcommon.AccountHandler, error)
CreateAccount calls the new Account creator and returns the result
func (*PeerAccountCreator) IsInterfaceNil ¶
func (pac *PeerAccountCreator) IsInterfaceNil() bool
IsInterfaceNil returns true if there is no value under the interface