factory

package
v1.1.11 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2020 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewSystemSCContainer

func NewSystemSCContainer() *systemSCContainer

NewSystemSCContainer will create a new instance of a container

func NewSystemSCFactory

func NewSystemSCFactory(args ArgsNewSystemSCFactory) (*systemSCFactory, error)

NewSystemSCFactory creates a factory which will instantiate the system smart contracts

Types

type ArgsNewSystemSCFactory

type ArgsNewSystemSCFactory struct {
	SystemEI            vm.ContextHandler
	Economics           vm.EconomicsHandler
	NodesConfigProvider vm.NodesConfigProvider
	SigVerifier         vm.MessageSignVerifier
	GasMap              map[string]map[string]uint64
	Marshalizer         marshal.Marshalizer
	Hasher              hashing.Hasher
	SystemSCConfig      *config.SystemSmartContractsConfig
	EpochNotifier       vm.EpochNotifier
}

ArgsNewSystemSCFactory defines the arguments struct needed to create the system SCs

Jump to

Keyboard shortcuts

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