factory

package
v0.0.0 Latest Latest
Warning

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

Go to latest
Published: May 17, 2024 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

func NewAccountFactoryCreator(coordinator sharding.Coordinator) (state.AccountFactory, error)

NewAccountFactoryCreator returns an account factory depending on shard coordinator self id

func NewMetaAccountCreator

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

type MetaAccountCreator struct {
}

MetaAccountCreator has a method to create a new meta accound

func (*MetaAccountCreator) CreateAccount

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
JackTT - Gopher 🇻🇳