systemcontracts

package
v0.0.0-...-37ff43f Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2023 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetContractVerify

func GetContractVerify(address common.Address) bool

func GetContract_Method_ListValidator

func GetContract_Method_ListValidator() string

Validators method

func GetContract_Method_RewardDeposit

func GetContract_Method_RewardDeposit() string

Deposit method

func GetContracts

func GetContracts() []string

func GetStakingContract_ABI

func GetStakingContract_ABI() abi.ABI

func GetStakingContract_Address

func GetStakingContract_Address() common.Address

func GetStakingContract_Address_String

func GetStakingContract_Address_String() string

func IsStakingContract

func IsStakingContract() error

func UpgradeBuildInSystemContract

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

Types

type Contract

type Contract struct {
	ContractAddress common.Address `json:"ContractAddress"`
	ABI             string         `json:"ABI"`
	BIN             string         `json:"BIN"`
	Methods         *Method        `json:"Methods"`
}

func GetContract_Data

func GetContract_Data(contract string) *Contract

type Contracts

type Contracts struct {
	ContractAddressString string    `json:"ContractAddressString"`
	Contracts             *Contract `json:"Contracts"`
}

type Deposit

type Deposit struct {
	GetDepositCount        string `json:"GetDepositCount"`
	GetTotalDepositBalance string `json:"GetTotalDepositBalance"`
	RewardDeposit          string `json:"RewardDeposit"`
}

type Method

type Method struct {
	Deposits   *Deposit   `json:"Deposits"`
	Validators *Validator `json:"Validators"`
}

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
}

type Validator

type Validator struct {
	GetDepositBalanceOf string `json:"GetDepositBalanceOf"`
	ListValidator       string `json:"ListValidator"`
}

Jump to

Keyboard shortcuts

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