factory

package
v1.5.10 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2023 License: GPL-3.0 Imports: 14 Imported by: ? modules, 0 packages

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 NewReadOnlySCContainer

func NewReadOnlySCContainer(scContainer vm.SystemSCContainer) (*readOnlySCContainer, error)

NewReadOnlySCContainer returns a new instance of readOnlySCContainer

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
	GasSchedule            core.GasScheduleNotifier
	Marshalizer            marshal.Marshalizer
	Hasher                 hashing.Hasher
	SystemSCConfig         *config.SystemSmartContractsConfig
	AddressPubKeyConverter core.PubkeyConverter
	ShardCoordinator       sharding.Coordinator
	EnableEpochsHandler    common.EnableEpochsHandler
}

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