factory

package
v1.4.18 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2023 License: GPL-3.0 Imports: 5 Imported by: 2 modules, 1 package

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

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() state.AccountFactory

NewAccountCreator creates an account creator

func NewPeerAccountCreator

func NewPeerAccountCreator() state.AccountFactory

NewPeerAccountCreator creates a peer account creator

Types

type AccountCreator

type AccountCreator struct {
}

AccountCreator has method to create a new account

func (*AccountCreator) CreateAccount

func (ac *AccountCreator) CreateAccount(address []byte) (vmcommon.AccountHandler, error)

CreateAccount calls the new Account creator and returns the result

func (*AccountCreator) IsInterfaceNil

func (ac *AccountCreator) IsInterfaceNil() bool

IsInterfaceNil returns true if there is no value under the interface

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

Jump to

Keyboard shortcuts

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