Documentation ¶
Index ¶
- Constants
- func OnDispatch(index int32)
- type AddAllowedStateControllerAddressCall
- type AddCandidateNodeCall
- type ArrayOfImmutableAddress
- type ArrayOfMutableAddress
- type ChangeAccessNodesCall
- type ClaimChainOwnershipCall
- type DelegateChainOwnershipCall
- type Funcs
- func (sc Funcs) AddAllowedStateControllerAddress(ctx wasmlib.ScFuncCallContext) *AddAllowedStateControllerAddressCall
- func (sc Funcs) AddCandidateNode(ctx wasmlib.ScFuncCallContext) *AddCandidateNodeCall
- func (sc Funcs) ChangeAccessNodes(ctx wasmlib.ScFuncCallContext) *ChangeAccessNodesCall
- func (sc Funcs) ClaimChainOwnership(ctx wasmlib.ScFuncCallContext) *ClaimChainOwnershipCall
- func (sc Funcs) DelegateChainOwnership(ctx wasmlib.ScFuncCallContext) *DelegateChainOwnershipCall
- func (sc Funcs) GetAllowedStateControllerAddresses(ctx wasmlib.ScViewCallContext) *GetAllowedStateControllerAddressesCall
- func (sc Funcs) GetChainInfo(ctx wasmlib.ScViewCallContext) *GetChainInfoCall
- func (sc Funcs) GetChainNodes(ctx wasmlib.ScViewCallContext) *GetChainNodesCall
- func (sc Funcs) GetChainOwner(ctx wasmlib.ScViewCallContext) *GetChainOwnerCall
- func (sc Funcs) GetCustomMetadata(ctx wasmlib.ScViewCallContext) *GetCustomMetadataCall
- func (sc Funcs) GetEVMGasRatio(ctx wasmlib.ScViewCallContext) *GetEVMGasRatioCall
- func (sc Funcs) GetFeePolicy(ctx wasmlib.ScViewCallContext) *GetFeePolicyCall
- func (sc Funcs) GetGasLimits(ctx wasmlib.ScViewCallContext) *GetGasLimitsCall
- func (sc Funcs) GetMaintenanceStatus(ctx wasmlib.ScViewCallContext) *GetMaintenanceStatusCall
- func (sc Funcs) RemoveAllowedStateControllerAddress(ctx wasmlib.ScFuncCallContext) *RemoveAllowedStateControllerAddressCall
- func (sc Funcs) RevokeAccessNode(ctx wasmlib.ScFuncCallContext) *RevokeAccessNodeCall
- func (sc Funcs) RotateStateController(ctx wasmlib.ScFuncCallContext) *RotateStateControllerCall
- func (sc Funcs) SetCustomMetadata(ctx wasmlib.ScFuncCallContext) *SetCustomMetadataCall
- func (sc Funcs) SetEVMGasRatio(ctx wasmlib.ScFuncCallContext) *SetEVMGasRatioCall
- func (sc Funcs) SetFeePolicy(ctx wasmlib.ScFuncCallContext) *SetFeePolicyCall
- func (sc Funcs) SetGasLimits(ctx wasmlib.ScFuncCallContext) *SetGasLimitsCall
- func (sc Funcs) SetMaintenanceOff(ctx wasmlib.ScFuncCallContext) *SetMaintenanceOffCall
- func (sc Funcs) SetMaintenanceOn(ctx wasmlib.ScFuncCallContext) *SetMaintenanceOnCall
- type GetAllowedStateControllerAddressesCall
- type GetChainInfoCall
- type GetChainNodesCall
- type GetChainOwnerCall
- type GetCustomMetadataCall
- type GetEVMGasRatioCall
- type GetFeePolicyCall
- type GetGasLimitsCall
- type GetMaintenanceStatusCall
- type ImmutableAddAllowedStateControllerAddressParams
- type ImmutableAddCandidateNodeParams
- func (s ImmutableAddCandidateNodeParams) AccessAPI() wasmtypes.ScImmutableString
- func (s ImmutableAddCandidateNodeParams) AccessOnly() wasmtypes.ScImmutableBool
- func (s ImmutableAddCandidateNodeParams) Certificate() wasmtypes.ScImmutableBytes
- func (s ImmutableAddCandidateNodeParams) PubKey() wasmtypes.ScImmutableBytes
- type ImmutableChangeAccessNodesParams
- type ImmutableDelegateChainOwnershipParams
- type ImmutableGetAllowedStateControllerAddressesResults
- type ImmutableGetChainInfoResults
- func (s ImmutableGetChainInfoResults) ChainID() wasmtypes.ScImmutableChainID
- func (s ImmutableGetChainInfoResults) ChainOwnerID() wasmtypes.ScImmutableAgentID
- func (s ImmutableGetChainInfoResults) CustomMetadata() wasmtypes.ScImmutableBytes
- func (s ImmutableGetChainInfoResults) FeePolicy() wasmtypes.ScImmutableBytes
- func (s ImmutableGetChainInfoResults) GasLimits() wasmtypes.ScImmutableBytes
- type ImmutableGetChainNodesResults
- type ImmutableGetChainOwnerResults
- type ImmutableGetCustomMetadataResults
- type ImmutableGetEVMGasRatioResults
- type ImmutableGetFeePolicyResults
- type ImmutableGetGasLimitsResults
- type ImmutableGetMaintenanceStatusResults
- type ImmutableRemoveAllowedStateControllerAddressParams
- type ImmutableRevokeAccessNodeParams
- type ImmutableRotateStateControllerParams
- type ImmutableSetCustomMetadataParams
- type ImmutableSetEVMGasRatioParams
- type ImmutableSetFeePolicyParams
- type ImmutableSetGasLimitsParams
- type MapBytesToImmutableBool
- type MapBytesToImmutableBytes
- type MapBytesToImmutableUint8
- type MapBytesToMutableBool
- type MapBytesToMutableBytes
- type MapBytesToMutableUint8
- type MutableAddAllowedStateControllerAddressParams
- type MutableAddCandidateNodeParams
- func (s MutableAddCandidateNodeParams) AccessAPI() wasmtypes.ScMutableString
- func (s MutableAddCandidateNodeParams) AccessOnly() wasmtypes.ScMutableBool
- func (s MutableAddCandidateNodeParams) Certificate() wasmtypes.ScMutableBytes
- func (s MutableAddCandidateNodeParams) PubKey() wasmtypes.ScMutableBytes
- type MutableChangeAccessNodesParams
- type MutableDelegateChainOwnershipParams
- type MutableGetAllowedStateControllerAddressesResults
- type MutableGetChainInfoResults
- func (s MutableGetChainInfoResults) ChainID() wasmtypes.ScMutableChainID
- func (s MutableGetChainInfoResults) ChainOwnerID() wasmtypes.ScMutableAgentID
- func (s MutableGetChainInfoResults) CustomMetadata() wasmtypes.ScMutableBytes
- func (s MutableGetChainInfoResults) FeePolicy() wasmtypes.ScMutableBytes
- func (s MutableGetChainInfoResults) GasLimits() wasmtypes.ScMutableBytes
- type MutableGetChainNodesResults
- type MutableGetChainOwnerResults
- type MutableGetCustomMetadataResults
- type MutableGetEVMGasRatioResults
- type MutableGetFeePolicyResults
- type MutableGetGasLimitsResults
- type MutableGetMaintenanceStatusResults
- type MutableRemoveAllowedStateControllerAddressParams
- type MutableRevokeAccessNodeParams
- type MutableRotateStateControllerParams
- type MutableSetCustomMetadataParams
- type MutableSetEVMGasRatioParams
- type MutableSetFeePolicyParams
- type MutableSetGasLimitsParams
- type RemoveAllowedStateControllerAddressCall
- type RevokeAccessNodeCall
- type RotateStateControllerCall
- type SetCustomMetadataCall
- type SetEVMGasRatioCall
- type SetFeePolicyCall
- type SetGasLimitsCall
- type SetMaintenanceOffCall
- type SetMaintenanceOnCall
Constants ¶
const ( ScName = "governance" ScDescription = "Governance contract" HScName = wasmtypes.ScHname(0x17cf909f) )
const ( ParamAccessAPI = "ia" ParamAccessOnly = "i" ParamActions = "n" ParamAddress = "S" ParamCertificate = "ic" ParamChainOwner = "o" ParamFeePolicy = "g" ParamGasLimits = "l" ParamGasRatio = "e" ParamMetadata = "x" ParamPubKey = "ip" )
const ( ResultAccessNodeCandidates = "an" ResultAccessNodes = "ac" ResultChainID = "c" ResultChainOwner = "o" ResultChainOwnerID = "o" ResultControllers = "a" ResultCustomMetadata = "x" ResultFeePolicy = "g" ResultGasLimits = "l" ResultGasRatio = "e" ResultMetadata = "x" ResultStatus = "m" )
const ( FuncAddAllowedStateControllerAddress = "addAllowedStateControllerAddress" FuncAddCandidateNode = "addCandidateNode" FuncChangeAccessNodes = "changeAccessNodes" FuncClaimChainOwnership = "claimChainOwnership" FuncDelegateChainOwnership = "delegateChainOwnership" FuncRemoveAllowedStateControllerAddress = "removeAllowedStateControllerAddress" FuncRevokeAccessNode = "revokeAccessNode" FuncRotateStateController = "rotateStateController" FuncSetCustomMetadata = "setCustomMetadata" FuncSetEVMGasRatio = "setEVMGasRatio" FuncSetFeePolicy = "setFeePolicy" FuncSetGasLimits = "setGasLimits" FuncSetMaintenanceOff = "setMaintenanceOff" FuncSetMaintenanceOn = "setMaintenanceOn" ViewGetAllowedStateControllerAddresses = "getAllowedStateControllerAddresses" ViewGetChainInfo = "getChainInfo" ViewGetChainNodes = "getChainNodes" ViewGetChainOwner = "getChainOwner" ViewGetCustomMetadata = "getCustomMetadata" ViewGetEVMGasRatio = "getEVMGasRatio" ViewGetFeePolicy = "getFeePolicy" ViewGetGasLimits = "getGasLimits" ViewGetMaintenanceStatus = "getMaintenanceStatus" )
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) HFuncSetCustomMetadata = wasmtypes.ScHname(0xaa71b0b3) HFuncSetEVMGasRatio = wasmtypes.ScHname(0xaae22338) HFuncSetFeePolicy = wasmtypes.ScHname(0x5b791c9f) HFuncSetGasLimits = wasmtypes.ScHname(0xd72fb355) HFuncSetMaintenanceOff = wasmtypes.ScHname(0x0e2b35d4) HFuncSetMaintenanceOn = wasmtypes.ScHname(0x5e369f89) HViewGetAllowedStateControllerAddresses = wasmtypes.ScHname(0xf3505183) HViewGetChainInfo = wasmtypes.ScHname(0x434477e2) HViewGetChainNodes = wasmtypes.ScHname(0xe1832289) HViewGetChainOwner = wasmtypes.ScHname(0x9b2ef0ac) HViewGetCustomMetadata = wasmtypes.ScHname(0x02d4bac9) HViewGetEVMGasRatio = wasmtypes.ScHname(0xb81c8c34) HViewGetFeePolicy = wasmtypes.ScHname(0xf8c89790) HViewGetGasLimits = wasmtypes.ScHname(0x3a493455) HViewGetMaintenanceStatus = wasmtypes.ScHname(0x61fe5443) )
Variables ¶
This section is empty.
Functions ¶
func OnDispatch ¶ added in v1.0.3
func OnDispatch(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
func (ArrayOfImmutableAddress) GetAddress ¶ added in v0.3.0
func (a ArrayOfImmutableAddress) GetAddress(index uint32) wasmtypes.ScImmutableAddress
func (ArrayOfImmutableAddress) Length ¶ added in v0.3.0
func (a ArrayOfImmutableAddress) Length() uint32
type ArrayOfMutableAddress ¶ added in v0.3.0
func (ArrayOfMutableAddress) AppendAddress ¶ added in v0.3.0
func (a ArrayOfMutableAddress) AppendAddress() wasmtypes.ScMutableAddress
func (ArrayOfMutableAddress) Clear ¶ added in v0.3.0
func (a ArrayOfMutableAddress) Clear()
func (ArrayOfMutableAddress) GetAddress ¶ added in v0.3.0
func (a ArrayOfMutableAddress) GetAddress(index uint32) wasmtypes.ScMutableAddress
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 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
Adds the given address to the list of identities that constitute the state controller.
func (Funcs) AddCandidateNode ¶ added in v0.3.0
func (sc Funcs) AddCandidateNode(ctx wasmlib.ScFuncCallContext) *AddCandidateNodeCall
Adds a node to the list of candidates.
func (Funcs) ChangeAccessNodes ¶ added in v0.3.0
func (sc Funcs) ChangeAccessNodes(ctx wasmlib.ScFuncCallContext) *ChangeAccessNodesCall
Iterates through the given map of actions and applies them.
func (Funcs) ClaimChainOwnership ¶
func (sc Funcs) ClaimChainOwnership(ctx wasmlib.ScFuncCallContext) *ClaimChainOwnershipCall
Claims the ownership of the chain if the caller matches the identity that was set in delegateChainOwnership().
func (Funcs) DelegateChainOwnership ¶
func (sc Funcs) DelegateChainOwnership(ctx wasmlib.ScFuncCallContext) *DelegateChainOwnershipCall
Sets the Agent ID o as the new owner for the chain. This change will only be effective once claimChainOwnership() is called by o.
func (Funcs) GetAllowedStateControllerAddresses ¶
func (sc Funcs) GetAllowedStateControllerAddresses(ctx wasmlib.ScViewCallContext) *GetAllowedStateControllerAddressesCall
Returns the list of allowed state controllers.
func (Funcs) GetChainInfo ¶
func (sc Funcs) GetChainInfo(ctx wasmlib.ScViewCallContext) *GetChainInfoCall
Returns information about the chain.
func (Funcs) GetChainNodes ¶ added in v0.3.0
func (sc Funcs) GetChainNodes(ctx wasmlib.ScViewCallContext) *GetChainNodesCall
Returns the current access nodes and candidates.
func (Funcs) GetChainOwner ¶ added in v0.3.0
func (sc Funcs) GetChainOwner(ctx wasmlib.ScViewCallContext) *GetChainOwnerCall
Returns the AgentID of the chain owner.
func (Funcs) GetCustomMetadata ¶
func (sc Funcs) GetCustomMetadata(ctx wasmlib.ScViewCallContext) *GetCustomMetadataCall
Returns the extra metadata that is added to the chain AliasOutput.
func (Funcs) GetEVMGasRatio ¶ added in v1.0.3
func (sc Funcs) GetEVMGasRatio(ctx wasmlib.ScViewCallContext) *GetEVMGasRatioCall
Returns the EVM gas ratio.
func (Funcs) GetFeePolicy ¶ added in v0.3.0
func (sc Funcs) GetFeePolicy(ctx wasmlib.ScViewCallContext) *GetFeePolicyCall
Returns the fee policy.
func (Funcs) GetGasLimits ¶ added in v1.0.3
func (sc Funcs) GetGasLimits(ctx wasmlib.ScViewCallContext) *GetGasLimitsCall
Returns the gas limits.
func (Funcs) GetMaintenanceStatus ¶ added in v1.0.3
func (sc Funcs) GetMaintenanceStatus(ctx wasmlib.ScViewCallContext) *GetMaintenanceStatusCall
Returns whether the chain is undergoing maintenance.
func (Funcs) RemoveAllowedStateControllerAddress ¶
func (sc Funcs) RemoveAllowedStateControllerAddress(ctx wasmlib.ScFuncCallContext) *RemoveAllowedStateControllerAddressCall
Removes the given address from the list of identities that constitute the state controller.
func (Funcs) RevokeAccessNode ¶ added in v0.3.0
func (sc Funcs) RevokeAccessNode(ctx wasmlib.ScFuncCallContext) *RevokeAccessNodeCall
Removes a node from the list of candidates.
func (Funcs) RotateStateController ¶
func (sc Funcs) RotateStateController(ctx wasmlib.ScFuncCallContext) *RotateStateControllerCall
Called when the committee is about to be rotated to the given address. If it succeeds, the next state transition will become a governance transition, thus updating the state controller in the chain's Alias Output. If it fails, nothing happens.
func (Funcs) SetCustomMetadata ¶
func (sc Funcs) SetCustomMetadata(ctx wasmlib.ScFuncCallContext) *SetCustomMetadataCall
Changes optional extra metadata that is appended to the L1 AliasOutput.
func (Funcs) SetEVMGasRatio ¶ added in v1.0.3
func (sc Funcs) SetEVMGasRatio(ctx wasmlib.ScFuncCallContext) *SetEVMGasRatioCall
Sets the EVM gas ratio for the chain.
func (Funcs) SetFeePolicy ¶ added in v0.3.0
func (sc Funcs) SetFeePolicy(ctx wasmlib.ScFuncCallContext) *SetFeePolicyCall
Sets the fee policy for the chain.
func (Funcs) SetGasLimits ¶ added in v1.0.3
func (sc Funcs) SetGasLimits(ctx wasmlib.ScFuncCallContext) *SetGasLimitsCall
Sets the gas limits for the chain.
func (Funcs) SetMaintenanceOff ¶
func (sc Funcs) SetMaintenanceOff(ctx wasmlib.ScFuncCallContext) *SetMaintenanceOffCall
Stops the maintenance mode.
func (Funcs) SetMaintenanceOn ¶
func (sc Funcs) SetMaintenanceOn(ctx wasmlib.ScFuncCallContext) *SetMaintenanceOnCall
Starts the chain maintenance mode, meaning no further requests will be processed except calls to the governance contract.
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 GetCustomMetadataCall ¶
type GetCustomMetadataCall struct { Func *wasmlib.ScView Results ImmutableGetCustomMetadataResults }
type GetEVMGasRatioCall ¶ added in v1.0.3
type GetEVMGasRatioCall struct { Func *wasmlib.ScView Results ImmutableGetEVMGasRatioResults }
type GetFeePolicyCall ¶ added in v0.3.0
type GetFeePolicyCall struct { Func *wasmlib.ScView Results ImmutableGetFeePolicyResults }
type GetGasLimitsCall ¶ added in v1.0.3
type GetGasLimitsCall struct { Func *wasmlib.ScView Results ImmutableGetGasLimitsResults }
type GetMaintenanceStatusCall ¶ added in v1.0.3
type GetMaintenanceStatusCall struct { Func *wasmlib.ScView Results ImmutableGetMaintenanceStatusResults }
type ImmutableAddAllowedStateControllerAddressParams ¶
func NewImmutableAddAllowedStateControllerAddressParams ¶ added in v1.0.3
func NewImmutableAddAllowedStateControllerAddressParams() ImmutableAddAllowedStateControllerAddressParams
func (ImmutableAddAllowedStateControllerAddressParams) Address ¶ added in v1.0.3
func (s ImmutableAddAllowedStateControllerAddressParams) Address() wasmtypes.ScImmutableAddress
state controller address
type ImmutableAddCandidateNodeParams ¶ added in v0.3.0
func NewImmutableAddCandidateNodeParams ¶ added in v1.0.3
func NewImmutableAddCandidateNodeParams() ImmutableAddCandidateNodeParams
func (ImmutableAddCandidateNodeParams) AccessAPI ¶ added in v1.0.3
func (s ImmutableAddCandidateNodeParams) AccessAPI() wasmtypes.ScImmutableString
API base URL for the node, default empty
func (ImmutableAddCandidateNodeParams) AccessOnly ¶ added in v1.0.3
func (s ImmutableAddCandidateNodeParams) AccessOnly() wasmtypes.ScImmutableBool
whether node is just an access node, default false
func (ImmutableAddCandidateNodeParams) Certificate ¶ added in v1.0.3
func (s ImmutableAddCandidateNodeParams) Certificate() wasmtypes.ScImmutableBytes
signed binary containing both the node public key and their L1 address
func (ImmutableAddCandidateNodeParams) PubKey ¶ added in v1.0.3
func (s ImmutableAddCandidateNodeParams) PubKey() wasmtypes.ScImmutableBytes
public key of the node to be added
type ImmutableChangeAccessNodesParams ¶ added in v0.3.0
func NewImmutableChangeAccessNodesParams ¶ added in v1.0.3
func NewImmutableChangeAccessNodesParams() ImmutableChangeAccessNodesParams
func (ImmutableChangeAccessNodesParams) Actions ¶ added in v1.0.3
func (s ImmutableChangeAccessNodesParams) Actions() MapBytesToImmutableUint8
map of actions per pubkey 0: Remove the access node from the access nodes list. 1: Accept a candidate node and add it to the list of access nodes. 2: Drop an access node from the access node and candidate lists.
type ImmutableDelegateChainOwnershipParams ¶
func NewImmutableDelegateChainOwnershipParams ¶ added in v1.0.3
func NewImmutableDelegateChainOwnershipParams() ImmutableDelegateChainOwnershipParams
func (ImmutableDelegateChainOwnershipParams) ChainOwner ¶
func (s ImmutableDelegateChainOwnershipParams) ChainOwner() wasmtypes.ScImmutableAgentID
next chain owner's agent ID
type ImmutableGetAllowedStateControllerAddressesResults ¶
func (ImmutableGetAllowedStateControllerAddressesResults) Controllers ¶ added in v1.0.3
func (s ImmutableGetAllowedStateControllerAddressesResults) Controllers() ArrayOfImmutableAddress
Array16 of state controller addresses
type ImmutableGetChainInfoResults ¶
func (ImmutableGetChainInfoResults) ChainID ¶
func (s ImmutableGetChainInfoResults) ChainID() wasmtypes.ScImmutableChainID
chain ID
func (ImmutableGetChainInfoResults) ChainOwnerID ¶
func (s ImmutableGetChainInfoResults) ChainOwnerID() wasmtypes.ScImmutableAgentID
chain owner agent ID
func (ImmutableGetChainInfoResults) CustomMetadata ¶
func (s ImmutableGetChainInfoResults) CustomMetadata() wasmtypes.ScImmutableBytes
chain metadata
func (ImmutableGetChainInfoResults) FeePolicy ¶ added in v1.0.3
func (s ImmutableGetChainInfoResults) FeePolicy() wasmtypes.ScImmutableBytes
serialized fee policy
func (ImmutableGetChainInfoResults) GasLimits ¶ added in v1.0.3
func (s ImmutableGetChainInfoResults) GasLimits() wasmtypes.ScImmutableBytes
serialized gas limits
type ImmutableGetChainNodesResults ¶ added in v0.3.0
func (ImmutableGetChainNodesResults) AccessNodeCandidates ¶ added in v0.3.0
func (s ImmutableGetChainNodesResults) AccessNodeCandidates() MapBytesToImmutableBytes
serialized access node info per pubKey
func (ImmutableGetChainNodesResults) AccessNodes ¶ added in v0.3.0
func (s ImmutableGetChainNodesResults) AccessNodes() MapBytesToImmutableBool
pubKey set
type ImmutableGetChainOwnerResults ¶ added in v0.3.0
func (ImmutableGetChainOwnerResults) ChainOwner ¶ added in v0.3.0
func (s ImmutableGetChainOwnerResults) ChainOwner() wasmtypes.ScImmutableAgentID
chain owner
type ImmutableGetCustomMetadataResults ¶
func (ImmutableGetCustomMetadataResults) Metadata ¶
func (s ImmutableGetCustomMetadataResults) Metadata() wasmtypes.ScImmutableBytes
chain metadata
type ImmutableGetEVMGasRatioResults ¶ added in v1.0.3
func (ImmutableGetEVMGasRatioResults) GasRatio ¶ added in v1.0.3
func (s ImmutableGetEVMGasRatioResults) GasRatio() wasmtypes.ScImmutableBytes
serialized gas ratio
type ImmutableGetFeePolicyResults ¶ added in v0.3.0
func (ImmutableGetFeePolicyResults) FeePolicy ¶ added in v1.0.3
func (s ImmutableGetFeePolicyResults) FeePolicy() wasmtypes.ScImmutableBytes
serialized fee policy
type ImmutableGetGasLimitsResults ¶ added in v1.0.3
func (ImmutableGetGasLimitsResults) GasLimits ¶ added in v1.0.3
func (s ImmutableGetGasLimitsResults) GasLimits() wasmtypes.ScImmutableBytes
serialized gas limits
type ImmutableGetMaintenanceStatusResults ¶ added in v1.0.3
func (ImmutableGetMaintenanceStatusResults) Status ¶ added in v1.0.3
func (s ImmutableGetMaintenanceStatusResults) Status() wasmtypes.ScImmutableBool
whether maintenance mode is on
type ImmutableRemoveAllowedStateControllerAddressParams ¶
func NewImmutableRemoveAllowedStateControllerAddressParams ¶ added in v1.0.3
func NewImmutableRemoveAllowedStateControllerAddressParams() ImmutableRemoveAllowedStateControllerAddressParams
func (ImmutableRemoveAllowedStateControllerAddressParams) Address ¶ added in v1.0.3
func (s ImmutableRemoveAllowedStateControllerAddressParams) Address() wasmtypes.ScImmutableAddress
state controller address
type ImmutableRevokeAccessNodeParams ¶ added in v0.3.0
func NewImmutableRevokeAccessNodeParams ¶ added in v1.0.3
func NewImmutableRevokeAccessNodeParams() ImmutableRevokeAccessNodeParams
func (ImmutableRevokeAccessNodeParams) Certificate ¶ added in v1.0.3
func (s ImmutableRevokeAccessNodeParams) Certificate() wasmtypes.ScImmutableBytes
certificate of the node to be removed
func (ImmutableRevokeAccessNodeParams) PubKey ¶ added in v1.0.3
func (s ImmutableRevokeAccessNodeParams) PubKey() wasmtypes.ScImmutableBytes
public key of the node to be removed
type ImmutableRotateStateControllerParams ¶
func NewImmutableRotateStateControllerParams ¶ added in v1.0.3
func NewImmutableRotateStateControllerParams() ImmutableRotateStateControllerParams
func (ImmutableRotateStateControllerParams) Address ¶ added in v1.0.3
func (s ImmutableRotateStateControllerParams) Address() wasmtypes.ScImmutableAddress
state controller address
type ImmutableSetCustomMetadataParams ¶
func NewImmutableSetCustomMetadataParams ¶
func NewImmutableSetCustomMetadataParams() ImmutableSetCustomMetadataParams
func (ImmutableSetCustomMetadataParams) Metadata ¶
func (s ImmutableSetCustomMetadataParams) Metadata() wasmtypes.ScImmutableBytes
serialized chain metadata
type ImmutableSetEVMGasRatioParams ¶ added in v1.0.3
func NewImmutableSetEVMGasRatioParams ¶ added in v1.0.3
func NewImmutableSetEVMGasRatioParams() ImmutableSetEVMGasRatioParams
func (ImmutableSetEVMGasRatioParams) GasRatio ¶ added in v1.0.3
func (s ImmutableSetEVMGasRatioParams) GasRatio() wasmtypes.ScImmutableBytes
serialized gas ratio
type ImmutableSetFeePolicyParams ¶ added in v0.3.0
func NewImmutableSetFeePolicyParams ¶ added in v1.0.3
func NewImmutableSetFeePolicyParams() ImmutableSetFeePolicyParams
func (ImmutableSetFeePolicyParams) FeePolicy ¶ added in v1.0.3
func (s ImmutableSetFeePolicyParams) FeePolicy() wasmtypes.ScImmutableBytes
serialized fee policy
type ImmutableSetGasLimitsParams ¶ added in v1.0.3
func NewImmutableSetGasLimitsParams ¶ added in v1.0.3
func NewImmutableSetGasLimitsParams() ImmutableSetGasLimitsParams
func (ImmutableSetGasLimitsParams) GasLimits ¶ added in v1.0.3
func (s ImmutableSetGasLimitsParams) GasLimits() wasmtypes.ScImmutableBytes
serialized gas limits
type MapBytesToImmutableBool ¶ added in v1.0.3
func (MapBytesToImmutableBool) GetBool ¶ added in v1.0.3
func (m MapBytesToImmutableBool) GetBool(key []byte) wasmtypes.ScImmutableBool
type MapBytesToImmutableBytes ¶ added in v0.3.0
func (MapBytesToImmutableBytes) GetBytes ¶ added in v0.3.0
func (m MapBytesToImmutableBytes) GetBytes(key []byte) wasmtypes.ScImmutableBytes
type MapBytesToImmutableUint8 ¶ added in v0.3.0
func (MapBytesToImmutableUint8) GetUint8 ¶ added in v0.3.0
func (m MapBytesToImmutableUint8) GetUint8(key []byte) wasmtypes.ScImmutableUint8
type MapBytesToMutableBool ¶ added in v1.0.3
func (MapBytesToMutableBool) Clear ¶ added in v1.0.3
func (m MapBytesToMutableBool) Clear()
func (MapBytesToMutableBool) GetBool ¶ added in v1.0.3
func (m MapBytesToMutableBool) GetBool(key []byte) wasmtypes.ScMutableBool
type MapBytesToMutableBytes ¶ added in v0.3.0
func (MapBytesToMutableBytes) Clear ¶ added in v0.3.0
func (m MapBytesToMutableBytes) Clear()
func (MapBytesToMutableBytes) GetBytes ¶ added in v0.3.0
func (m MapBytesToMutableBytes) GetBytes(key []byte) wasmtypes.ScMutableBytes
type MapBytesToMutableUint8 ¶ added in v0.3.0
func (MapBytesToMutableUint8) Clear ¶ added in v0.3.0
func (m MapBytesToMutableUint8) Clear()
func (MapBytesToMutableUint8) GetUint8 ¶ added in v0.3.0
func (m MapBytesToMutableUint8) GetUint8(key []byte) wasmtypes.ScMutableUint8
type MutableAddAllowedStateControllerAddressParams ¶
func (MutableAddAllowedStateControllerAddressParams) Address ¶ added in v1.0.3
func (s MutableAddAllowedStateControllerAddressParams) Address() wasmtypes.ScMutableAddress
state controller address
type MutableAddCandidateNodeParams ¶ added in v0.3.0
func (MutableAddCandidateNodeParams) AccessAPI ¶ added in v1.0.3
func (s MutableAddCandidateNodeParams) AccessAPI() wasmtypes.ScMutableString
API base URL for the node, default empty
func (MutableAddCandidateNodeParams) AccessOnly ¶ added in v1.0.3
func (s MutableAddCandidateNodeParams) AccessOnly() wasmtypes.ScMutableBool
whether node is just an access node, default false
func (MutableAddCandidateNodeParams) Certificate ¶ added in v1.0.3
func (s MutableAddCandidateNodeParams) Certificate() wasmtypes.ScMutableBytes
signed binary containing both the node public key and their L1 address
func (MutableAddCandidateNodeParams) PubKey ¶ added in v1.0.3
func (s MutableAddCandidateNodeParams) PubKey() wasmtypes.ScMutableBytes
public key of the node to be added
type MutableChangeAccessNodesParams ¶ added in v0.3.0
func (MutableChangeAccessNodesParams) Actions ¶ added in v1.0.3
func (s MutableChangeAccessNodesParams) Actions() MapBytesToMutableUint8
map of actions per pubkey 0: Remove the access node from the access nodes list. 1: Accept a candidate node and add it to the list of access nodes. 2: Drop an access node from the access node and candidate lists.
type MutableDelegateChainOwnershipParams ¶
func (MutableDelegateChainOwnershipParams) ChainOwner ¶
func (s MutableDelegateChainOwnershipParams) ChainOwner() wasmtypes.ScMutableAgentID
next chain owner's agent ID
type MutableGetAllowedStateControllerAddressesResults ¶
func NewMutableGetAllowedStateControllerAddressesResults ¶ added in v1.0.3
func NewMutableGetAllowedStateControllerAddressesResults() MutableGetAllowedStateControllerAddressesResults
func (MutableGetAllowedStateControllerAddressesResults) Controllers ¶ added in v1.0.3
func (s MutableGetAllowedStateControllerAddressesResults) Controllers() ArrayOfMutableAddress
Array16 of state controller addresses
type MutableGetChainInfoResults ¶
func NewMutableGetChainInfoResults ¶ added in v1.0.3
func NewMutableGetChainInfoResults() MutableGetChainInfoResults
func (MutableGetChainInfoResults) ChainID ¶
func (s MutableGetChainInfoResults) ChainID() wasmtypes.ScMutableChainID
chain ID
func (MutableGetChainInfoResults) ChainOwnerID ¶
func (s MutableGetChainInfoResults) ChainOwnerID() wasmtypes.ScMutableAgentID
chain owner agent ID
func (MutableGetChainInfoResults) CustomMetadata ¶
func (s MutableGetChainInfoResults) CustomMetadata() wasmtypes.ScMutableBytes
chain metadata
func (MutableGetChainInfoResults) FeePolicy ¶ added in v1.0.3
func (s MutableGetChainInfoResults) FeePolicy() wasmtypes.ScMutableBytes
serialized fee policy
func (MutableGetChainInfoResults) GasLimits ¶ added in v1.0.3
func (s MutableGetChainInfoResults) GasLimits() wasmtypes.ScMutableBytes
serialized gas limits
type MutableGetChainNodesResults ¶ added in v0.3.0
func NewMutableGetChainNodesResults ¶ added in v1.0.3
func NewMutableGetChainNodesResults() MutableGetChainNodesResults
func (MutableGetChainNodesResults) AccessNodeCandidates ¶ added in v0.3.0
func (s MutableGetChainNodesResults) AccessNodeCandidates() MapBytesToMutableBytes
serialized access node info per pubKey
func (MutableGetChainNodesResults) AccessNodes ¶ added in v0.3.0
func (s MutableGetChainNodesResults) AccessNodes() MapBytesToMutableBool
pubKey set
type MutableGetChainOwnerResults ¶ added in v0.3.0
func NewMutableGetChainOwnerResults ¶ added in v1.0.3
func NewMutableGetChainOwnerResults() MutableGetChainOwnerResults
func (MutableGetChainOwnerResults) ChainOwner ¶ added in v0.3.0
func (s MutableGetChainOwnerResults) ChainOwner() wasmtypes.ScMutableAgentID
chain owner
type MutableGetCustomMetadataResults ¶
func NewMutableGetCustomMetadataResults ¶
func NewMutableGetCustomMetadataResults() MutableGetCustomMetadataResults
func (MutableGetCustomMetadataResults) Metadata ¶
func (s MutableGetCustomMetadataResults) Metadata() wasmtypes.ScMutableBytes
chain metadata
type MutableGetEVMGasRatioResults ¶ added in v1.0.3
func NewMutableGetEVMGasRatioResults ¶ added in v1.0.3
func NewMutableGetEVMGasRatioResults() MutableGetEVMGasRatioResults
func (MutableGetEVMGasRatioResults) GasRatio ¶ added in v1.0.3
func (s MutableGetEVMGasRatioResults) GasRatio() wasmtypes.ScMutableBytes
serialized gas ratio
type MutableGetFeePolicyResults ¶ added in v0.3.0
func NewMutableGetFeePolicyResults ¶ added in v1.0.3
func NewMutableGetFeePolicyResults() MutableGetFeePolicyResults
func (MutableGetFeePolicyResults) FeePolicy ¶ added in v1.0.3
func (s MutableGetFeePolicyResults) FeePolicy() wasmtypes.ScMutableBytes
serialized fee policy
type MutableGetGasLimitsResults ¶ added in v1.0.3
func NewMutableGetGasLimitsResults ¶ added in v1.0.3
func NewMutableGetGasLimitsResults() MutableGetGasLimitsResults
func (MutableGetGasLimitsResults) GasLimits ¶ added in v1.0.3
func (s MutableGetGasLimitsResults) GasLimits() wasmtypes.ScMutableBytes
serialized gas limits
type MutableGetMaintenanceStatusResults ¶ added in v1.0.3
func NewMutableGetMaintenanceStatusResults ¶ added in v1.0.3
func NewMutableGetMaintenanceStatusResults() MutableGetMaintenanceStatusResults
func (MutableGetMaintenanceStatusResults) Status ¶ added in v1.0.3
func (s MutableGetMaintenanceStatusResults) Status() wasmtypes.ScMutableBool
whether maintenance mode is on
type MutableRemoveAllowedStateControllerAddressParams ¶
func (MutableRemoveAllowedStateControllerAddressParams) Address ¶ added in v1.0.3
func (s MutableRemoveAllowedStateControllerAddressParams) Address() wasmtypes.ScMutableAddress
state controller address
type MutableRevokeAccessNodeParams ¶ added in v0.3.0
func (MutableRevokeAccessNodeParams) Certificate ¶ added in v1.0.3
func (s MutableRevokeAccessNodeParams) Certificate() wasmtypes.ScMutableBytes
certificate of the node to be removed
func (MutableRevokeAccessNodeParams) PubKey ¶ added in v1.0.3
func (s MutableRevokeAccessNodeParams) PubKey() wasmtypes.ScMutableBytes
public key of the node to be removed
type MutableRotateStateControllerParams ¶
func (MutableRotateStateControllerParams) Address ¶ added in v1.0.3
func (s MutableRotateStateControllerParams) Address() wasmtypes.ScMutableAddress
state controller address
type MutableSetCustomMetadataParams ¶
func (MutableSetCustomMetadataParams) Metadata ¶
func (s MutableSetCustomMetadataParams) Metadata() wasmtypes.ScMutableBytes
serialized chain metadata
type MutableSetEVMGasRatioParams ¶ added in v1.0.3
func (MutableSetEVMGasRatioParams) GasRatio ¶ added in v1.0.3
func (s MutableSetEVMGasRatioParams) GasRatio() wasmtypes.ScMutableBytes
serialized gas ratio
type MutableSetFeePolicyParams ¶ added in v0.3.0
func (MutableSetFeePolicyParams) FeePolicy ¶ added in v1.0.3
func (s MutableSetFeePolicyParams) FeePolicy() wasmtypes.ScMutableBytes
serialized fee policy
type MutableSetGasLimitsParams ¶ added in v1.0.3
func (MutableSetGasLimitsParams) GasLimits ¶ added in v1.0.3
func (s MutableSetGasLimitsParams) GasLimits() wasmtypes.ScMutableBytes
serialized gas limits
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 SetCustomMetadataCall ¶
type SetCustomMetadataCall struct { Func *wasmlib.ScFunc Params MutableSetCustomMetadataParams }
type SetEVMGasRatioCall ¶ added in v1.0.3
type SetEVMGasRatioCall struct { Func *wasmlib.ScFunc Params MutableSetEVMGasRatioParams }
type SetFeePolicyCall ¶ added in v0.3.0
type SetFeePolicyCall struct { Func *wasmlib.ScFunc Params MutableSetFeePolicyParams }
type SetGasLimitsCall ¶ added in v1.0.3
type SetGasLimitsCall struct { Func *wasmlib.ScFunc Params MutableSetGasLimitsParams }