upgrader

package
v1.2.5 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MainNetChainID = 2000
	DevNetChainID  = 668
)

Variables

View Source
var (
	GenesisHash types.Hash
)

Functions

func UpgradeSystem

func UpgradeSystem(
	chainID int,
	forks *chain.Forks,
	blockNumber uint64,
	txn *state.Txn,
	logger hclog.Logger,
)

Types

type Upgrade

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

type UpgradeConfig

type UpgradeConfig struct {
	ContractAddr       types.Address
	CommitURL          string
	Code               string
	DefaultInitStorage map[types.Hash]types.Hash  // the initial storage must be backward compatible
	Rebalance          map[types.Address]*big.Int // deprecated, only active in test network
}

Jump to

Keyboard shortcuts

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