governanceimpl

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2021 License: Apache-2.0, BSD-2-Clause Imports: 11 Imported by: 0

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.

Jump to

Keyboard shortcuts

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