coregovernance

package
v0.3.6 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2022 License: Apache-2.0, BSD-2-Clause, Apache-2.0, + 1 more Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ScName        = "governance"
	ScDescription = "Governance contract"
	HScName       = wasmtypes.ScHname(0x17cf909f)
)
View Source
const (
	ParamAccessNodeInfoAccessAPI    = "ia"
	ParamAccessNodeInfoCertificate  = "ic"
	ParamAccessNodeInfoForCommittee = "i"
	ParamAccessNodeInfoPubKey       = "ip"
	ParamChainOwner                 = "o"
	ParamChangeAccessNodesActions   = "n"
	ParamFeePolicyBytes             = "g"
	ParamMaxBlobSize                = "mb"
	ParamMaxEventSize               = "ms"
	ParamMaxEventsPerReq            = "mr"
	ParamStateControllerAddress     = "S"
)
View Source
const (
	ResultAccessNodeCandidates            = "ac"
	ResultAccessNodes                     = "an"
	ResultAllowedStateControllerAddresses = "a"
	ResultChainID                         = "c"
	ResultChainOwner                      = "o"
	ResultChainOwnerID                    = "o"
	ResultDescription                     = "d"
	ResultFeePolicyBytes                  = "g"
	ResultGasFeePolicyBytes               = "g"
	ResultMaxBlobSize                     = "mb"
	ResultMaxEventSize                    = "me"
	ResultMaxEventsPerReq                 = "mr"
)
View Source
const (
	FuncAddAllowedStateControllerAddress    = "addAllowedStateControllerAddress"
	FuncAddCandidateNode                    = "addCandidateNode"
	FuncChangeAccessNodes                   = "changeAccessNodes"
	FuncClaimChainOwnership                 = "claimChainOwnership"
	FuncDelegateChainOwnership              = "delegateChainOwnership"
	FuncRemoveAllowedStateControllerAddress = "removeAllowedStateControllerAddress"
	FuncRevokeAccessNode                    = "revokeAccessNode"
	FuncRotateStateController               = "rotateStateController"
	FuncSetChainInfo                        = "setChainInfo"
	FuncSetFeePolicy                        = "setFeePolicy"
	ViewGetAllowedStateControllerAddresses  = "getAllowedStateControllerAddresses"
	ViewGetChainInfo                        = "getChainInfo"
	ViewGetChainNodes                       = "getChainNodes"
	ViewGetChainOwner                       = "getChainOwner"
	ViewGetFeePolicy                        = "getFeePolicy"
	ViewGetMaxBlobSize                      = "getMaxBlobSize"
)
View Source
const (
	HFuncAddAllowedStateControllerAddress    = wasmtypes.ScHname(0x9469d567)
	HFuncAddCandidateNode                    = wasmtypes.ScHname(0xb745b382)
	HFuncChangeAccessNodes                   = wasmtypes.ScHname(0x7bca3700)
	HFuncClaimChainOwnership                 = wasmtypes.ScHname(0x03ff0fc0)
	HFuncDelegateChainOwnership              = wasmtypes.ScHname(0x93ecb6ad)
	HFuncRemoveAllowedStateControllerAddress = wasmtypes.ScHname(0x31f69447)
	HFuncRevokeAccessNode                    = wasmtypes.ScHname(0x5459512d)
	HFuncRotateStateController               = wasmtypes.ScHname(0x244d1038)
	HFuncSetChainInfo                        = wasmtypes.ScHname(0x702f5d2b)
	HFuncSetFeePolicy                        = wasmtypes.ScHname(0x5b791c9f)
	HViewGetAllowedStateControllerAddresses  = wasmtypes.ScHname(0xf3505183)
	HViewGetChainInfo                        = wasmtypes.ScHname(0x434477e2)
	HViewGetChainNodes                       = wasmtypes.ScHname(0xe1832289)
	HViewGetChainOwner                       = wasmtypes.ScHname(0x9b2ef0ac)
	HViewGetFeePolicy                        = wasmtypes.ScHname(0xf8c89790)
	HViewGetMaxBlobSize                      = wasmtypes.ScHname(0xe1db3d28)
)

Variables

This section is empty.

Functions

func OnLoad

func OnLoad(index int32)

Types

type AddAllowedStateControllerAddressCall

type AddAllowedStateControllerAddressCall struct {
	Func   *wasmlib.ScFunc
	Params MutableAddAllowedStateControllerAddressParams
}

type AddCandidateNodeCall added in v0.3.0

type AddCandidateNodeCall struct {
	Func   *wasmlib.ScFunc
	Params MutableAddCandidateNodeParams
}

type ArrayOfImmutableAddress added in v0.3.0

type ArrayOfImmutableAddress struct {
	// contains filtered or unexported fields
}

func (ArrayOfImmutableAddress) GetAddress added in v0.3.0

func (ArrayOfImmutableAddress) Length added in v0.3.0

func (a ArrayOfImmutableAddress) Length() uint32

type ArrayOfMutableAddress added in v0.3.0

type ArrayOfMutableAddress struct {
	// contains filtered or unexported fields
}

func (ArrayOfMutableAddress) AppendAddress added in v0.3.0

func (ArrayOfMutableAddress) Clear added in v0.3.0

func (a ArrayOfMutableAddress) Clear()

func (ArrayOfMutableAddress) GetAddress added in v0.3.0

func (ArrayOfMutableAddress) Length added in v0.3.0

func (a ArrayOfMutableAddress) Length() uint32

type ChangeAccessNodesCall added in v0.3.0

type ChangeAccessNodesCall struct {
	Func   *wasmlib.ScFunc
	Params MutableChangeAccessNodesParams
}

type ClaimChainOwnershipCall

type ClaimChainOwnershipCall struct {
	Func *wasmlib.ScFunc
}

type DelegateChainOwnershipCall

type DelegateChainOwnershipCall struct {
	Func   *wasmlib.ScFunc
	Params MutableDelegateChainOwnershipParams
}

type Funcs

type Funcs struct{}
var ScFuncs Funcs

func (Funcs) AddAllowedStateControllerAddress

func (sc Funcs) AddAllowedStateControllerAddress(ctx wasmlib.ScFuncCallContext) *AddAllowedStateControllerAddressCall

func (Funcs) AddCandidateNode added in v0.3.0

func (sc Funcs) AddCandidateNode(ctx wasmlib.ScFuncCallContext) *AddCandidateNodeCall

access nodes

func (Funcs) ChangeAccessNodes added in v0.3.0

func (sc Funcs) ChangeAccessNodes(ctx wasmlib.ScFuncCallContext) *ChangeAccessNodesCall

func (Funcs) ClaimChainOwnership

func (sc Funcs) ClaimChainOwnership(ctx wasmlib.ScFuncCallContext) *ClaimChainOwnershipCall

chain owner

func (Funcs) DelegateChainOwnership

func (sc Funcs) DelegateChainOwnership(ctx wasmlib.ScFuncCallContext) *DelegateChainOwnershipCall

func (Funcs) GetAllowedStateControllerAddresses

func (sc Funcs) GetAllowedStateControllerAddresses(ctx wasmlib.ScViewCallContext) *GetAllowedStateControllerAddressesCall

state controller

func (Funcs) GetChainInfo

func (sc Funcs) GetChainInfo(ctx wasmlib.ScViewCallContext) *GetChainInfoCall

chain info

func (Funcs) GetChainNodes added in v0.3.0

func (sc Funcs) GetChainNodes(ctx wasmlib.ScViewCallContext) *GetChainNodesCall

access nodes

func (Funcs) GetChainOwner added in v0.3.0

func (sc Funcs) GetChainOwner(ctx wasmlib.ScViewCallContext) *GetChainOwnerCall

chain owner

func (Funcs) GetFeePolicy added in v0.3.0

func (sc Funcs) GetFeePolicy(ctx wasmlib.ScViewCallContext) *GetFeePolicyCall

fees

func (Funcs) GetMaxBlobSize

func (sc Funcs) GetMaxBlobSize(ctx wasmlib.ScViewCallContext) *GetMaxBlobSizeCall

func (Funcs) RemoveAllowedStateControllerAddress

func (sc Funcs) RemoveAllowedStateControllerAddress(ctx wasmlib.ScFuncCallContext) *RemoveAllowedStateControllerAddressCall

func (Funcs) RevokeAccessNode added in v0.3.0

func (sc Funcs) RevokeAccessNode(ctx wasmlib.ScFuncCallContext) *RevokeAccessNodeCall

func (Funcs) RotateStateController

func (sc Funcs) RotateStateController(ctx wasmlib.ScFuncCallContext) *RotateStateControllerCall

state controller

func (Funcs) SetChainInfo

func (sc Funcs) SetChainInfo(ctx wasmlib.ScFuncCallContext) *SetChainInfoCall

chain info

func (Funcs) SetFeePolicy added in v0.3.0

func (sc Funcs) SetFeePolicy(ctx wasmlib.ScFuncCallContext) *SetFeePolicyCall

fees

type GetAllowedStateControllerAddressesCall

type GetAllowedStateControllerAddressesCall struct {
	Func    *wasmlib.ScView
	Results ImmutableGetAllowedStateControllerAddressesResults
}

type GetChainInfoCall

type GetChainInfoCall struct {
	Func    *wasmlib.ScView
	Results ImmutableGetChainInfoResults
}

type GetChainNodesCall added in v0.3.0

type GetChainNodesCall struct {
	Func    *wasmlib.ScView
	Results ImmutableGetChainNodesResults
}

type GetChainOwnerCall added in v0.3.0

type GetChainOwnerCall struct {
	Func    *wasmlib.ScView
	Results ImmutableGetChainOwnerResults
}

type GetFeePolicyCall added in v0.3.0

type GetFeePolicyCall struct {
	Func    *wasmlib.ScView
	Results ImmutableGetFeePolicyResults
}

type GetMaxBlobSizeCall

type GetMaxBlobSizeCall struct {
	Func    *wasmlib.ScView
	Results ImmutableGetMaxBlobSizeResults
}

type ImmutableAddAllowedStateControllerAddressParams

type ImmutableAddAllowedStateControllerAddressParams struct {
	// contains filtered or unexported fields
}

func (ImmutableAddAllowedStateControllerAddressParams) StateControllerAddress

type ImmutableAddCandidateNodeParams added in v0.3.0

type ImmutableAddCandidateNodeParams struct {
	// contains filtered or unexported fields
}

func (ImmutableAddCandidateNodeParams) AccessNodeInfoAccessAPI added in v0.3.0

func (s ImmutableAddCandidateNodeParams) AccessNodeInfoAccessAPI() wasmtypes.ScImmutableString

func (ImmutableAddCandidateNodeParams) AccessNodeInfoCertificate added in v0.3.0

func (s ImmutableAddCandidateNodeParams) AccessNodeInfoCertificate() wasmtypes.ScImmutableBytes

func (ImmutableAddCandidateNodeParams) AccessNodeInfoForCommittee added in v0.3.0

func (s ImmutableAddCandidateNodeParams) AccessNodeInfoForCommittee() wasmtypes.ScImmutableBool

func (ImmutableAddCandidateNodeParams) AccessNodeInfoPubKey added in v0.3.0

type ImmutableChangeAccessNodesParams added in v0.3.0

type ImmutableChangeAccessNodesParams struct {
	// contains filtered or unexported fields
}

func (ImmutableChangeAccessNodesParams) ChangeAccessNodesActions added in v0.3.0

func (s ImmutableChangeAccessNodesParams) ChangeAccessNodesActions() MapBytesToImmutableUint8

type ImmutableDelegateChainOwnershipParams

type ImmutableDelegateChainOwnershipParams struct {
	// contains filtered or unexported fields
}

func (ImmutableDelegateChainOwnershipParams) ChainOwner

type ImmutableGetAllowedStateControllerAddressesResults

type ImmutableGetAllowedStateControllerAddressesResults struct {
	// contains filtered or unexported fields
}

func (ImmutableGetAllowedStateControllerAddressesResults) AllowedStateControllerAddresses

native contract, so this is an Array16

type ImmutableGetChainInfoResults

type ImmutableGetChainInfoResults struct {
	// contains filtered or unexported fields
}

func (ImmutableGetChainInfoResults) ChainID

func (ImmutableGetChainInfoResults) ChainOwnerID

func (ImmutableGetChainInfoResults) Description

func (ImmutableGetChainInfoResults) GasFeePolicyBytes added in v0.3.0

func (ImmutableGetChainInfoResults) MaxBlobSize

func (ImmutableGetChainInfoResults) MaxEventSize

func (ImmutableGetChainInfoResults) MaxEventsPerReq

type ImmutableGetChainNodesResults added in v0.3.0

type ImmutableGetChainNodesResults struct {
	// contains filtered or unexported fields
}

func (ImmutableGetChainNodesResults) AccessNodeCandidates added in v0.3.0

func (ImmutableGetChainNodesResults) AccessNodes added in v0.3.0

type ImmutableGetChainOwnerResults added in v0.3.0

type ImmutableGetChainOwnerResults struct {
	// contains filtered or unexported fields
}

func (ImmutableGetChainOwnerResults) ChainOwner added in v0.3.0

type ImmutableGetFeePolicyResults added in v0.3.0

type ImmutableGetFeePolicyResults struct {
	// contains filtered or unexported fields
}

func (ImmutableGetFeePolicyResults) FeePolicyBytes added in v0.3.0

type ImmutableGetMaxBlobSizeResults

type ImmutableGetMaxBlobSizeResults struct {
	// contains filtered or unexported fields
}

func (ImmutableGetMaxBlobSizeResults) MaxBlobSize

type ImmutableRemoveAllowedStateControllerAddressParams

type ImmutableRemoveAllowedStateControllerAddressParams struct {
	// contains filtered or unexported fields
}

func (ImmutableRemoveAllowedStateControllerAddressParams) StateControllerAddress

type ImmutableRevokeAccessNodeParams added in v0.3.0

type ImmutableRevokeAccessNodeParams struct {
	// contains filtered or unexported fields
}

func (ImmutableRevokeAccessNodeParams) AccessNodeInfoCertificate added in v0.3.0

func (s ImmutableRevokeAccessNodeParams) AccessNodeInfoCertificate() wasmtypes.ScImmutableBytes

func (ImmutableRevokeAccessNodeParams) AccessNodeInfoPubKey added in v0.3.0

type ImmutableRotateStateControllerParams

type ImmutableRotateStateControllerParams struct {
	// contains filtered or unexported fields
}

func (ImmutableRotateStateControllerParams) StateControllerAddress

type ImmutableSetChainInfoParams

type ImmutableSetChainInfoParams struct {
	// contains filtered or unexported fields
}

func (ImmutableSetChainInfoParams) MaxBlobSize

default maximum size of a blob

func (ImmutableSetChainInfoParams) MaxEventSize

default maximum size of a single event

func (ImmutableSetChainInfoParams) MaxEventsPerReq

default maximum number of events per request

type ImmutableSetFeePolicyParams added in v0.3.0

type ImmutableSetFeePolicyParams struct {
	// contains filtered or unexported fields
}

func (ImmutableSetFeePolicyParams) FeePolicyBytes added in v0.3.0

type MapBytesToImmutableBytes added in v0.3.0

type MapBytesToImmutableBytes struct {
	// contains filtered or unexported fields
}

func (MapBytesToImmutableBytes) GetBytes added in v0.3.0

type MapBytesToImmutableUint8 added in v0.3.0

type MapBytesToImmutableUint8 struct {
	// contains filtered or unexported fields
}

func (MapBytesToImmutableUint8) GetUint8 added in v0.3.0

type MapBytesToMutableBytes added in v0.3.0

type MapBytesToMutableBytes struct {
	// contains filtered or unexported fields
}

func (MapBytesToMutableBytes) Clear added in v0.3.0

func (m MapBytesToMutableBytes) Clear()

func (MapBytesToMutableBytes) GetBytes added in v0.3.0

type MapBytesToMutableUint8 added in v0.3.0

type MapBytesToMutableUint8 struct {
	// contains filtered or unexported fields
}

func (MapBytesToMutableUint8) Clear added in v0.3.0

func (m MapBytesToMutableUint8) Clear()

func (MapBytesToMutableUint8) GetUint8 added in v0.3.0

type MutableAddAllowedStateControllerAddressParams

type MutableAddAllowedStateControllerAddressParams struct {
	// contains filtered or unexported fields
}

func (MutableAddAllowedStateControllerAddressParams) StateControllerAddress

type MutableAddCandidateNodeParams added in v0.3.0

type MutableAddCandidateNodeParams struct {
	// contains filtered or unexported fields
}

func (MutableAddCandidateNodeParams) AccessNodeInfoAccessAPI added in v0.3.0

func (s MutableAddCandidateNodeParams) AccessNodeInfoAccessAPI() wasmtypes.ScMutableString

func (MutableAddCandidateNodeParams) AccessNodeInfoCertificate added in v0.3.0

func (s MutableAddCandidateNodeParams) AccessNodeInfoCertificate() wasmtypes.ScMutableBytes

func (MutableAddCandidateNodeParams) AccessNodeInfoForCommittee added in v0.3.0

func (s MutableAddCandidateNodeParams) AccessNodeInfoForCommittee() wasmtypes.ScMutableBool

func (MutableAddCandidateNodeParams) AccessNodeInfoPubKey added in v0.3.0

func (s MutableAddCandidateNodeParams) AccessNodeInfoPubKey() wasmtypes.ScMutableBytes

type MutableChangeAccessNodesParams added in v0.3.0

type MutableChangeAccessNodesParams struct {
	// contains filtered or unexported fields
}

func (MutableChangeAccessNodesParams) ChangeAccessNodesActions added in v0.3.0

func (s MutableChangeAccessNodesParams) ChangeAccessNodesActions() MapBytesToMutableUint8

type MutableDelegateChainOwnershipParams

type MutableDelegateChainOwnershipParams struct {
	// contains filtered or unexported fields
}

func (MutableDelegateChainOwnershipParams) ChainOwner

type MutableGetAllowedStateControllerAddressesResults

type MutableGetAllowedStateControllerAddressesResults struct {
	// contains filtered or unexported fields
}

func (MutableGetAllowedStateControllerAddressesResults) AllowedStateControllerAddresses

func (s MutableGetAllowedStateControllerAddressesResults) AllowedStateControllerAddresses() ArrayOfMutableAddress

native contract, so this is an Array16

type MutableGetChainInfoResults

type MutableGetChainInfoResults struct {
	// contains filtered or unexported fields
}

func (MutableGetChainInfoResults) ChainID

func (MutableGetChainInfoResults) ChainOwnerID

func (MutableGetChainInfoResults) Description

func (MutableGetChainInfoResults) GasFeePolicyBytes added in v0.3.0

func (s MutableGetChainInfoResults) GasFeePolicyBytes() wasmtypes.ScMutableBytes

func (MutableGetChainInfoResults) MaxBlobSize

func (MutableGetChainInfoResults) MaxEventSize

func (MutableGetChainInfoResults) MaxEventsPerReq

type MutableGetChainNodesResults added in v0.3.0

type MutableGetChainNodesResults struct {
	// contains filtered or unexported fields
}

func (MutableGetChainNodesResults) AccessNodeCandidates added in v0.3.0

func (s MutableGetChainNodesResults) AccessNodeCandidates() MapBytesToMutableBytes

func (MutableGetChainNodesResults) AccessNodes added in v0.3.0

type MutableGetChainOwnerResults added in v0.3.0

type MutableGetChainOwnerResults struct {
	// contains filtered or unexported fields
}

func (MutableGetChainOwnerResults) ChainOwner added in v0.3.0

type MutableGetFeePolicyResults added in v0.3.0

type MutableGetFeePolicyResults struct {
	// contains filtered or unexported fields
}

func (MutableGetFeePolicyResults) FeePolicyBytes added in v0.3.0

type MutableGetMaxBlobSizeResults

type MutableGetMaxBlobSizeResults struct {
	// contains filtered or unexported fields
}

func (MutableGetMaxBlobSizeResults) MaxBlobSize

type MutableRemoveAllowedStateControllerAddressParams

type MutableRemoveAllowedStateControllerAddressParams struct {
	// contains filtered or unexported fields
}

func (MutableRemoveAllowedStateControllerAddressParams) StateControllerAddress

type MutableRevokeAccessNodeParams added in v0.3.0

type MutableRevokeAccessNodeParams struct {
	// contains filtered or unexported fields
}

func (MutableRevokeAccessNodeParams) AccessNodeInfoCertificate added in v0.3.0

func (s MutableRevokeAccessNodeParams) AccessNodeInfoCertificate() wasmtypes.ScMutableBytes

func (MutableRevokeAccessNodeParams) AccessNodeInfoPubKey added in v0.3.0

func (s MutableRevokeAccessNodeParams) AccessNodeInfoPubKey() wasmtypes.ScMutableBytes

type MutableRotateStateControllerParams

type MutableRotateStateControllerParams struct {
	// contains filtered or unexported fields
}

func (MutableRotateStateControllerParams) StateControllerAddress

type MutableSetChainInfoParams

type MutableSetChainInfoParams struct {
	// contains filtered or unexported fields
}

func (MutableSetChainInfoParams) MaxBlobSize

default maximum size of a blob

func (MutableSetChainInfoParams) MaxEventSize

default maximum size of a single event

func (MutableSetChainInfoParams) MaxEventsPerReq

default maximum number of events per request

type MutableSetFeePolicyParams added in v0.3.0

type MutableSetFeePolicyParams struct {
	// contains filtered or unexported fields
}

func (MutableSetFeePolicyParams) FeePolicyBytes added in v0.3.0

type RemoveAllowedStateControllerAddressCall

type RemoveAllowedStateControllerAddressCall struct {
	Func   *wasmlib.ScFunc
	Params MutableRemoveAllowedStateControllerAddressParams
}

type RevokeAccessNodeCall added in v0.3.0

type RevokeAccessNodeCall struct {
	Func   *wasmlib.ScFunc
	Params MutableRevokeAccessNodeParams
}

type RotateStateControllerCall

type RotateStateControllerCall struct {
	Func   *wasmlib.ScFunc
	Params MutableRotateStateControllerParams
}

type SetChainInfoCall

type SetChainInfoCall struct {
	Func   *wasmlib.ScFunc
	Params MutableSetChainInfoParams
}

type SetFeePolicyCall added in v0.3.0

type SetFeePolicyCall struct {
	Func   *wasmlib.ScFunc
	Params MutableSetFeePolicyParams
}

Jump to

Keyboard shortcuts

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