systemcontracts

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2025 License: GPL-3.0 Imports: 29 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// genesis contracts
	ValidatorContract          = "0x0000000000000000000000000000000000001000"
	SlashContract              = "0x0000000000000000000000000000000000001001"
	SystemRewardContract       = "0x0000000000000000000000000000000000001002"
	LightClientContract        = "0x0000000000000000000000000000000000001003"
	TokenHubContract           = "0x0000000000000000000000000000000000001004"
	RelayerIncentivizeContract = "0x0000000000000000000000000000000000001005"
	RelayerHubContract         = "0x0000000000000000000000000000000000001006"
	GovHubContract             = "0x0000000000000000000000000000000000001007"
	TokenManagerContract       = "0x0000000000000000000000000000000000001008"
	CrossChainContract         = "0x0000000000000000000000000000000000002000"
	StakingContract            = "0x0000000000000000000000000000000000002001"
	StakeHubContract           = "0x0000000000000000000000000000000000002002"
	StakeCreditContract        = "0x0000000000000000000000000000000000002003"
	GovernorContract           = "0x0000000000000000000000000000000000002004"
	GovTokenContract           = "0x0000000000000000000000000000000000002005"
	TimelockContract           = "0x0000000000000000000000000000000000002006"
	TokenRecoverPortalContract = "0x0000000000000000000000000000000000003000"
	AddressListContract        = "0x000000000000000000000000000000000000C001"
)

Variables

View Source
var (
	GenesisHash common.Hash
)

Functions

func TryUpdateBuildInSystemContract added in v1.0.4

func TryUpdateBuildInSystemContract(config *params.ChainConfig, blockNumber *big.Int, lastBlockTime uint64, blockTime uint64, statedb vm.StateDB, atBlockBegin bool)

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