systemcontracts

package
v0.0.0-...-a3e24e9 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2021 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// genesis contracts
	FeeBurnContract   = "0x0000000000000000000000000000000000000666"
	ValidatorContract = "0x0000000000000000000000000000000000001000"
	SlashingContract  = "0x0000000000000000000000000000000000001001"
	StakingContract   = "0x0000000000000000000000000000000000001002"
)

Variables

View Source
var (
	GenesisHash common.Hash
)

Functions

func UpgradeBuildInSystemContract

func UpgradeBuildInSystemContract(config *params.ChainConfig, blockNumber *big.Int, statedb *state.StateDB) error

Types

type Upgrade

type Upgrade struct {
	UpgradeName string
	Configs     []*UpgradeConfig
}

type UpgradeConfig

type UpgradeConfig struct {
	BeforeUpgrade upgradeHook
	AfterUpgrade  upgradeHook
	ContractAddr  common.Address
	CommitUrl     string
	Code          string
}

Jump to

Keyboard shortcuts

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