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.FuncRotateStateController.WithHandler(rotateStateController), governance.FuncAddAllowedStateControllerAddress.WithHandler(addAllowedStateControllerAddress), governance.FuncRemoveAllowedStateControllerAddress.WithHandler(removeAllowedStateControllerAddress), governance.FuncGetAllowedStateControllerAddresses.WithHandler(getAllowedStateControllerAddresses), governance.FuncClaimChainOwnership.WithHandler(claimChainOwnership), governance.FuncDelegateChainOwnership.WithHandler(delegateChainOwnership), governance.FuncGetChainOwner.WithHandler(getChainOwner), governance.FuncSetContractFee.WithHandler(setContractFee), governance.FuncGetFeeInfo.WithHandler(getFeeInfo), governance.FuncGetChainInfo.WithHandler(getChainInfo), governance.FuncSetChainInfo.WithHandler(setChainInfo), governance.FuncGetMaxBlobSize.WithHandler(getMaxBlobSize), governance.FuncGetChainNodes.WithHandler(getChainNodesFuncHandler), governance.FuncAddCandidateNode.WithHandler(addCandidateNodeFuncHandler), governance.FuncRevokeAccessNode.WithHandler(revokeAccessNodeFuncHandler), governance.FuncChangeAccessNodes.WithHandler(changeAccessNodesFuncHandler), )
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.