Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var AuctionSCAddress = []byte{0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 255, 255}
AuctionSCAddress is the hard-coded address for auction smart contract
View Source
var ESDTSCAddress = []byte{0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 255, 255}
ESDTSCAddress is the hard-coded address for esdt issuing smart contract
View Source
var GovernanceSCAddress = []byte{0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 255, 255}
GovernanceSCAddress is the hard-coded address for governance smart contract
View Source
var JailingAddress = []byte{0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 255, 255, 255, 255, 255, 255}
JailingAddress is the hard-coded address which can call jail function
View Source
var StakingSCAddress = []byte{0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 255, 255}
StakingSCAddress is the hard-coded address for smart contracts
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
}
ArgsNewSystemSCFactory defines the arguments struct needed to create the system SCs
Click to show internal directories.
Click to hide internal directories.