Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAccountCreator ¶
func NewAccountCreator() state.AccountFactory
NewAccountCreator creates an account creator
func NewAccountFactoryCreator ¶ added in v1.0.3
func NewAccountFactoryCreator(coordinator sharding.Coordinator) (state.AccountFactory, error)
NewAccountFactoryCreator returns an account factory depending on shard coordinator self id
func NewMetaAccountCreator ¶ added in v1.0.3
func NewMetaAccountCreator() state.AccountFactory
NewMetaAccountCreator creates a meta account creator
Types ¶
type AccountCreator ¶
type AccountCreator struct { }
AccountCreator has method to create a new account
func (*AccountCreator) CreateAccount ¶
func (c *AccountCreator) CreateAccount(address state.AddressContainer, tracker state.AccountTracker) (state.AccountHandler, error)
CreateAccount calls the new Account creator and returns the result
func (*AccountCreator) IsInterfaceNil ¶
func (c *AccountCreator) IsInterfaceNil() bool
IsInterfaceNil returns true if there is no value under the interface
type MetaAccountCreator ¶ added in v1.0.3
type MetaAccountCreator struct { }
MetaAccountCreator has a method to create a new meta accound
func (*MetaAccountCreator) CreateAccount ¶ added in v1.0.3
func (c *MetaAccountCreator) CreateAccount(address state.AddressContainer, tracker state.AccountTracker) (state.AccountHandler, error)
CreateAccount calls the new Account creator and returns the result
func (*MetaAccountCreator) IsInterfaceNil ¶ added in v1.0.16
func (c *MetaAccountCreator) IsInterfaceNil() bool
IsInterfaceNil returns true if there is no value under the interface
Click to show internal directories.
Click to hide internal directories.