factory

package
v1.0.8 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2019 License: GPL-3.0 Imports: 2 Imported by: 0

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

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

CreateAccount calls the new Account creator and returns the result

Jump to

Keyboard shortcuts

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