Documentation ¶
Overview ¶
This file provides implementation for the governance SC, the ChainNode management functions.
State of the SC (the ChainNodes part):
VarAccessNodeCandidates: map[pubKey] => AccessNodeInfo // A set of Access Node Info. VarAccessNodes: map[pubKey] => byte[0] // A set of nodes. VarValidatorNodes: pubKey[] // An ordered list of nodes.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Processor = governance.Contract.Processor(initialize, governance.FuncAddAllowedStateControllerAddress.WithHandler(addAllowedStateControllerAddress), governance.FuncRemoveAllowedStateControllerAddress.WithHandler(removeAllowedStateControllerAddress), governance.FuncRotateStateController.WithHandler(rotateStateController), governance.ViewGetAllowedStateControllerAddresses.WithHandler(getAllowedStateControllerAddresses), governance.FuncClaimChainOwnership.WithHandler(claimChainOwnership), governance.FuncDelegateChainOwnership.WithHandler(delegateChainOwnership), governance.ViewGetChainOwner.WithHandler(getChainOwner), governance.FuncSetFeePolicy.WithHandler(setFeePolicy), governance.ViewGetFeePolicy.WithHandler(getFeePolicy), governance.FuncSetEVMGasRatio.WithHandler(setEVMGasRatio), governance.ViewGetEVMGasRatio.WithHandler(getEVMGasRatio), governance.FuncSetChainInfo.WithHandler(setChainInfo), governance.ViewGetChainInfo.WithHandler(getChainInfo), governance.ViewGetMaxBlobSize.WithHandler(getMaxBlobSize), governance.FuncAddCandidateNode.WithHandler(addCandidateNode), governance.FuncChangeAccessNodes.WithHandler(changeAccessNodes), governance.FuncRevokeAccessNode.WithHandler(revokeAccessNode), governance.ViewGetChainNodes.WithHandler(getChainNodes), governance.FuncStartMaintenance.WithHandler(setMaintenanceOn), governance.FuncStopMaintenance.WithHandler(setMaintenanceOff), governance.ViewGetMaintenanceStatus.WithHandler(getMaintenanceStatus), )
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.