coregovernance

package
v1.0.3-rc.2 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2024 License: Apache-2.0, Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ScName        = "governance"
	ScDescription = "Governance contract"
	HScName       = wasmtypes.ScHname(0x17cf909f)
)
View Source
const (
	ParamAccessAPI     = "ia"
	ParamAccessOnly    = "i"
	ParamActions       = "n"
	ParamAddress       = "S"
	ParamCertificate   = "ic"
	ParamChainOwner    = "o"
	ParamFeePolicy     = "g"
	ParamGasLimits     = "l"
	ParamGasRatio      = "e"
	ParamMetadata      = "md"
	ParamPayoutAgentID = "s"
	ParamPubKey        = "ip"
	ParamPublicURL     = "x"
	ParamSetMinSD      = "ms"
)
View Source
const (
	ResultAccessNodeCandidates = "an"
	ResultAccessNodes          = "ac"
	ResultChainID              = "c"
	ResultChainOwnerID         = "o"
	ResultControllers          = "a"
	ResultFeePolicy            = "g"
	ResultGasLimits            = "l"
	ResultGasRatio             = "e"
	ResultGetMinSD             = "ms"
	ResultMetadata             = "md"
	ResultPayoutAgentID        = "s"
	ResultPublicURL            = "x"
	ResultStatus               = "m"
)
View Source
const (
	FuncAddAllowedStateControllerAddress    = "addAllowedStateControllerAddress"
	FuncAddCandidateNode                    = "addCandidateNode"
	FuncChangeAccessNodes                   = "changeAccessNodes"
	FuncClaimChainOwnership                 = "claimChainOwnership"
	FuncDelegateChainOwnership              = "delegateChainOwnership"
	FuncRemoveAllowedStateControllerAddress = "removeAllowedStateControllerAddress"
	FuncRevokeAccessNode                    = "revokeAccessNode"
	FuncRotateStateController               = "rotateStateController"
	FuncSetEVMGasRatio                      = "setEVMGasRatio"
	FuncSetFeePolicy                        = "setFeePolicy"
	FuncSetGasLimits                        = "setGasLimits"
	FuncSetMetadata                         = "setMetadata"
	FuncSetMinSD                            = "setMinSD"
	FuncSetPayoutAgentID                    = "setPayoutAgentID"
	FuncStartMaintenance                    = "startMaintenance"
	FuncStopMaintenance                     = "stopMaintenance"
	ViewGetAllowedStateControllerAddresses  = "getAllowedStateControllerAddresses"
	ViewGetChainInfo                        = "getChainInfo"
	ViewGetChainNodes                       = "getChainNodes"
	ViewGetChainOwner                       = "getChainOwner"
	ViewGetEVMGasRatio                      = "getEVMGasRatio"
	ViewGetFeePolicy                        = "getFeePolicy"
	ViewGetGasLimits                        = "getGasLimits"
	ViewGetMaintenanceStatus                = "getMaintenanceStatus"
	ViewGetMetadata                         = "getMetadata"
	ViewGetMinSD                            = "getMinSD"
	ViewGetPayoutAgentID                    = "getPayoutAgentID"
)
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)
	HFuncSetEVMGasRatio                      = wasmtypes.ScHname(0xaae22338)
	HFuncSetFeePolicy                        = wasmtypes.ScHname(0x5b791c9f)
	HFuncSetGasLimits                        = wasmtypes.ScHname(0xd72fb355)
	HFuncSetMetadata                         = wasmtypes.ScHname(0x0eb3a798)
	HFuncSetMinSD                            = wasmtypes.ScHname(0x9cad5084)
	HFuncSetPayoutAgentID                    = wasmtypes.ScHname(0x2184ed1c)
	HFuncStartMaintenance                    = wasmtypes.ScHname(0x742f0521)
	HFuncStopMaintenance                     = wasmtypes.ScHname(0x4e017b6a)
	HViewGetAllowedStateControllerAddresses  = wasmtypes.ScHname(0xf3505183)
	HViewGetChainInfo                        = wasmtypes.ScHname(0x434477e2)
	HViewGetChainNodes                       = wasmtypes.ScHname(0xe1832289)
	HViewGetChainOwner                       = wasmtypes.ScHname(0x9b2ef0ac)
	HViewGetEVMGasRatio                      = wasmtypes.ScHname(0xb81c8c34)
	HViewGetFeePolicy                        = wasmtypes.ScHname(0xf8c89790)
	HViewGetGasLimits                        = wasmtypes.ScHname(0x3a493455)
	HViewGetMaintenanceStatus                = wasmtypes.ScHname(0x61fe5443)
	HViewGetMetadata                         = wasmtypes.ScHname(0x79ad1ac6)
	HViewGetMinSD                            = wasmtypes.ScHname(0x37f53a59)
	HViewGetPayoutAgentID                    = wasmtypes.ScHname(0x02aca9ad)
)

Variables

This section is empty.

Functions

func OnDispatch added in v1.0.3

func OnDispatch(index int32) *wasmlib.ScExportMap

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 {
	Proxy wasmtypes.Proxy
}

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 {
	Proxy wasmtypes.Proxy
}

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.ScFuncClientContext) *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.ScFuncClientContext) *AddCandidateNodeCall

Adds a node to the list of candidates.

func (Funcs) ChangeAccessNodes added in v0.3.0

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

Iterates through the given map of actions and applies them.

func (Funcs) ClaimChainOwnership

func (sc Funcs) ClaimChainOwnership(ctx wasmlib.ScFuncClientContext) *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.ScFuncClientContext) *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.ScViewClientContext) *GetAllowedStateControllerAddressesCall

Returns the list of allowed state controllers.

func (Funcs) GetChainInfo

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

Returns information about the chain.

func (Funcs) GetChainNodes added in v0.3.0

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

Returns the current access nodes and candidates.

func (Funcs) GetChainOwner added in v0.3.0

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

Returns the AgentID of the chain owner.

func (Funcs) GetEVMGasRatio added in v1.0.3

func (sc Funcs) GetEVMGasRatio(ctx wasmlib.ScViewClientContext) *GetEVMGasRatioCall

Returns the EVM gas ratio.

func (Funcs) GetFeePolicy added in v0.3.0

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

Returns the fee policy.

func (Funcs) GetGasLimits added in v1.0.3

func (sc Funcs) GetGasLimits(ctx wasmlib.ScViewClientContext) *GetGasLimitsCall

Returns the gas limits.

func (Funcs) GetMaintenanceStatus added in v1.0.3

func (sc Funcs) GetMaintenanceStatus(ctx wasmlib.ScViewClientContext) *GetMaintenanceStatusCall

Returns whether the chain is undergoing maintenance.

func (Funcs) GetMetadata added in v1.0.3

func (sc Funcs) GetMetadata(ctx wasmlib.ScViewClientContext) *GetMetadataCall

Returns the extra metadata that is added to the chain AliasOutput.

func (Funcs) GetMinSD added in v1.0.3

func (sc Funcs) GetMinSD(ctx wasmlib.ScViewClientContext) *GetMinSDCall

func (Funcs) GetPayoutAgentID added in v1.0.3

func (sc Funcs) GetPayoutAgentID(ctx wasmlib.ScViewClientContext) *GetPayoutAgentIDCall

func (Funcs) RemoveAllowedStateControllerAddress

func (sc Funcs) RemoveAllowedStateControllerAddress(ctx wasmlib.ScFuncClientContext) *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.ScFuncClientContext) *RevokeAccessNodeCall

Removes a node from the list of candidates.

func (Funcs) RotateStateController

func (sc Funcs) RotateStateController(ctx wasmlib.ScFuncClientContext) *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) SetEVMGasRatio added in v1.0.3

func (sc Funcs) SetEVMGasRatio(ctx wasmlib.ScFuncClientContext) *SetEVMGasRatioCall

Sets the EVM gas ratio for the chain.

func (Funcs) SetFeePolicy added in v0.3.0

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

Sets the fee policy for the chain.

func (Funcs) SetGasLimits added in v1.0.3

func (sc Funcs) SetGasLimits(ctx wasmlib.ScFuncClientContext) *SetGasLimitsCall

Sets the gas limits for the chain.

func (Funcs) SetMetadata added in v1.0.3

func (sc Funcs) SetMetadata(ctx wasmlib.ScFuncClientContext) *SetMetadataCall

Changes optional extra metadata that is appended to the L1 AliasOutput.

func (Funcs) SetMinSD added in v1.0.3

func (sc Funcs) SetMinSD(ctx wasmlib.ScFuncClientContext) *SetMinSDCall

func (Funcs) SetPayoutAgentID added in v1.0.3

func (sc Funcs) SetPayoutAgentID(ctx wasmlib.ScFuncClientContext) *SetPayoutAgentIDCall

func (Funcs) StartMaintenance added in v1.0.3

func (sc Funcs) StartMaintenance(ctx wasmlib.ScFuncClientContext) *StartMaintenanceCall

Starts the chain maintenance mode, meaning no further requests will be processed except calls to the governance contract.

func (Funcs) StopMaintenance added in v1.0.3

func (sc Funcs) StopMaintenance(ctx wasmlib.ScFuncClientContext) *StopMaintenanceCall

Stops the maintenance mode.

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 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 GetMetadataCall added in v1.0.3

type GetMetadataCall struct {
	Func    *wasmlib.ScView
	Results ImmutableGetMetadataResults
}

type GetMinSDCall added in v1.0.3

type GetMinSDCall struct {
	Func    *wasmlib.ScView
	Results ImmutableGetMinSDResults
}

type GetPayoutAgentIDCall added in v1.0.3

type GetPayoutAgentIDCall struct {
	Func    *wasmlib.ScView
	Results ImmutableGetPayoutAgentIDResults
}

type ImmutableAddAllowedStateControllerAddressParams

type ImmutableAddAllowedStateControllerAddressParams struct {
	Proxy wasmtypes.Proxy
}

func NewImmutableAddAllowedStateControllerAddressParams added in v1.0.3

func NewImmutableAddAllowedStateControllerAddressParams() ImmutableAddAllowedStateControllerAddressParams

func (ImmutableAddAllowedStateControllerAddressParams) Address added in v1.0.3

state controller address

type ImmutableAddCandidateNodeParams added in v0.3.0

type ImmutableAddCandidateNodeParams struct {
	Proxy wasmtypes.Proxy
}

func NewImmutableAddCandidateNodeParams added in v1.0.3

func NewImmutableAddCandidateNodeParams() ImmutableAddCandidateNodeParams

func (ImmutableAddCandidateNodeParams) AccessAPI added in v1.0.3

API base URL for the node, default empty

func (ImmutableAddCandidateNodeParams) AccessOnly added in v1.0.3

whether node is just an access node, default false

func (ImmutableAddCandidateNodeParams) Certificate added in v1.0.3

signed binary containing both the node public key and their L1 address

func (ImmutableAddCandidateNodeParams) PubKey added in v1.0.3

public key of the node to be added

type ImmutableChangeAccessNodesParams added in v0.3.0

type ImmutableChangeAccessNodesParams struct {
	Proxy wasmtypes.Proxy
}

func NewImmutableChangeAccessNodesParams added in v1.0.3

func NewImmutableChangeAccessNodesParams() ImmutableChangeAccessNodesParams

func (ImmutableChangeAccessNodesParams) Actions added in v1.0.3

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

type ImmutableDelegateChainOwnershipParams struct {
	Proxy wasmtypes.Proxy
}

func NewImmutableDelegateChainOwnershipParams added in v1.0.3

func NewImmutableDelegateChainOwnershipParams() ImmutableDelegateChainOwnershipParams

func (ImmutableDelegateChainOwnershipParams) ChainOwner

next chain owner's agent ID

type ImmutableGetAllowedStateControllerAddressesResults

type ImmutableGetAllowedStateControllerAddressesResults struct {
	Proxy wasmtypes.Proxy
}

func (ImmutableGetAllowedStateControllerAddressesResults) Controllers added in v1.0.3

Array of state controller addresses

type ImmutableGetChainInfoResults

type ImmutableGetChainInfoResults struct {
	Proxy wasmtypes.Proxy
}

func (ImmutableGetChainInfoResults) ChainID

chain ID

func (ImmutableGetChainInfoResults) ChainOwnerID

chain owner agent ID

func (ImmutableGetChainInfoResults) FeePolicy added in v1.0.3

serialized fee policy

func (ImmutableGetChainInfoResults) GasLimits added in v1.0.3

serialized gas limits

func (ImmutableGetChainInfoResults) Metadata added in v1.0.3

chain metadata

func (ImmutableGetChainInfoResults) PublicURL added in v1.0.3

type ImmutableGetChainNodesResults added in v0.3.0

type ImmutableGetChainNodesResults struct {
	Proxy wasmtypes.Proxy
}

func (ImmutableGetChainNodesResults) AccessNodeCandidates added in v0.3.0

serialized access node info per pubKey

func (ImmutableGetChainNodesResults) AccessNodes added in v0.3.0

pubKey set

type ImmutableGetChainOwnerResults added in v0.3.0

type ImmutableGetChainOwnerResults struct {
	Proxy wasmtypes.Proxy
}

func (ImmutableGetChainOwnerResults) ChainOwnerID added in v1.0.3

chain owner

type ImmutableGetEVMGasRatioResults added in v1.0.3

type ImmutableGetEVMGasRatioResults struct {
	Proxy wasmtypes.Proxy
}

func (ImmutableGetEVMGasRatioResults) GasRatio added in v1.0.3

serialized gas ratio

type ImmutableGetFeePolicyResults added in v0.3.0

type ImmutableGetFeePolicyResults struct {
	Proxy wasmtypes.Proxy
}

func (ImmutableGetFeePolicyResults) FeePolicy added in v1.0.3

serialized fee policy

type ImmutableGetGasLimitsResults added in v1.0.3

type ImmutableGetGasLimitsResults struct {
	Proxy wasmtypes.Proxy
}

func (ImmutableGetGasLimitsResults) GasLimits added in v1.0.3

serialized gas limits

type ImmutableGetMaintenanceStatusResults added in v1.0.3

type ImmutableGetMaintenanceStatusResults struct {
	Proxy wasmtypes.Proxy
}

func (ImmutableGetMaintenanceStatusResults) Status added in v1.0.3

whether maintenance mode is on

type ImmutableGetMetadataResults added in v1.0.3

type ImmutableGetMetadataResults struct {
	Proxy wasmtypes.Proxy
}

func (ImmutableGetMetadataResults) Metadata added in v1.0.3

the L2 metadata

func (ImmutableGetMetadataResults) PublicURL added in v1.0.3

the public url leading to the chain info, stored on the tangle (l1)

type ImmutableGetMinSDResults added in v1.0.3

type ImmutableGetMinSDResults struct {
	Proxy wasmtypes.Proxy
}

func (ImmutableGetMinSDResults) GetMinSD added in v1.0.3

type ImmutableGetPayoutAgentIDResults added in v1.0.3

type ImmutableGetPayoutAgentIDResults struct {
	Proxy wasmtypes.Proxy
}

func (ImmutableGetPayoutAgentIDResults) PayoutAgentID added in v1.0.3

get payout AgentID

type ImmutablePublicChainMetadata added in v1.0.3

type ImmutablePublicChainMetadata struct {
	Proxy wasmtypes.Proxy
}

func (ImmutablePublicChainMetadata) Exists added in v1.0.3

func (ImmutablePublicChainMetadata) Value added in v1.0.3

type ImmutableRemoveAllowedStateControllerAddressParams

type ImmutableRemoveAllowedStateControllerAddressParams struct {
	Proxy wasmtypes.Proxy
}

func NewImmutableRemoveAllowedStateControllerAddressParams added in v1.0.3

func NewImmutableRemoveAllowedStateControllerAddressParams() ImmutableRemoveAllowedStateControllerAddressParams

func (ImmutableRemoveAllowedStateControllerAddressParams) Address added in v1.0.3

state controller address

type ImmutableRevokeAccessNodeParams added in v0.3.0

type ImmutableRevokeAccessNodeParams struct {
	Proxy wasmtypes.Proxy
}

func NewImmutableRevokeAccessNodeParams added in v1.0.3

func NewImmutableRevokeAccessNodeParams() ImmutableRevokeAccessNodeParams

func (ImmutableRevokeAccessNodeParams) Certificate added in v1.0.3

certificate of the node to be removed

func (ImmutableRevokeAccessNodeParams) PubKey added in v1.0.3

public key of the node to be removed

type ImmutableRotateStateControllerParams

type ImmutableRotateStateControllerParams struct {
	Proxy wasmtypes.Proxy
}

func NewImmutableRotateStateControllerParams added in v1.0.3

func NewImmutableRotateStateControllerParams() ImmutableRotateStateControllerParams

func (ImmutableRotateStateControllerParams) Address added in v1.0.3

state controller address

type ImmutableSetEVMGasRatioParams added in v1.0.3

type ImmutableSetEVMGasRatioParams struct {
	Proxy wasmtypes.Proxy
}

func NewImmutableSetEVMGasRatioParams added in v1.0.3

func NewImmutableSetEVMGasRatioParams() ImmutableSetEVMGasRatioParams

func (ImmutableSetEVMGasRatioParams) GasRatio added in v1.0.3

serialized gas ratio

type ImmutableSetFeePolicyParams added in v0.3.0

type ImmutableSetFeePolicyParams struct {
	Proxy wasmtypes.Proxy
}

func NewImmutableSetFeePolicyParams added in v1.0.3

func NewImmutableSetFeePolicyParams() ImmutableSetFeePolicyParams

func (ImmutableSetFeePolicyParams) FeePolicy added in v1.0.3

serialized fee policy

type ImmutableSetGasLimitsParams added in v1.0.3

type ImmutableSetGasLimitsParams struct {
	Proxy wasmtypes.Proxy
}

func NewImmutableSetGasLimitsParams added in v1.0.3

func NewImmutableSetGasLimitsParams() ImmutableSetGasLimitsParams

func (ImmutableSetGasLimitsParams) GasLimits added in v1.0.3

serialized gas limits

type ImmutableSetMetadataParams added in v1.0.3

type ImmutableSetMetadataParams struct {
	Proxy wasmtypes.Proxy
}

func NewImmutableSetMetadataParams added in v1.0.3

func NewImmutableSetMetadataParams() ImmutableSetMetadataParams

func (ImmutableSetMetadataParams) Metadata added in v1.0.3

the public evm json rpc url

func (ImmutableSetMetadataParams) PublicURL added in v1.0.3

the public url leading to the chain info, stored on the tangle

type ImmutableSetMinSDParams added in v1.0.3

type ImmutableSetMinSDParams struct {
	Proxy wasmtypes.Proxy
}

func NewImmutableSetMinSDParams added in v1.0.3

func NewImmutableSetMinSDParams() ImmutableSetMinSDParams

func (ImmutableSetMinSDParams) SetMinSD added in v1.0.3

type ImmutableSetPayoutAgentIDParams added in v1.0.3

type ImmutableSetPayoutAgentIDParams struct {
	Proxy wasmtypes.Proxy
}

func NewImmutableSetPayoutAgentIDParams added in v1.0.3

func NewImmutableSetPayoutAgentIDParams() ImmutableSetPayoutAgentIDParams

func (ImmutableSetPayoutAgentIDParams) PayoutAgentID added in v1.0.3

set payout AgentID

type MapBytesToImmutableBool added in v1.0.3

type MapBytesToImmutableBool struct {
	Proxy wasmtypes.Proxy
}

func (MapBytesToImmutableBool) GetBool added in v1.0.3

type MapBytesToImmutableBytes added in v0.3.0

type MapBytesToImmutableBytes struct {
	Proxy wasmtypes.Proxy
}

func (MapBytesToImmutableBytes) GetBytes added in v0.3.0

type MapBytesToImmutableUint8 added in v0.3.0

type MapBytesToImmutableUint8 struct {
	Proxy wasmtypes.Proxy
}

func (MapBytesToImmutableUint8) GetUint8 added in v0.3.0

type MapBytesToMutableBool added in v1.0.3

type MapBytesToMutableBool struct {
	Proxy wasmtypes.Proxy
}

func (MapBytesToMutableBool) Clear added in v1.0.3

func (m MapBytesToMutableBool) Clear()

func (MapBytesToMutableBool) GetBool added in v1.0.3

type MapBytesToMutableBytes added in v0.3.0

type MapBytesToMutableBytes struct {
	Proxy wasmtypes.Proxy
}

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 {
	Proxy wasmtypes.Proxy
}

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 {
	Proxy wasmtypes.Proxy
}

func (MutableAddAllowedStateControllerAddressParams) Address added in v1.0.3

state controller address

type MutableAddCandidateNodeParams added in v0.3.0

type MutableAddCandidateNodeParams struct {
	Proxy wasmtypes.Proxy
}

func (MutableAddCandidateNodeParams) AccessAPI added in v1.0.3

API base URL for the node, default empty

func (MutableAddCandidateNodeParams) AccessOnly added in v1.0.3

whether node is just an access node, default false

func (MutableAddCandidateNodeParams) Certificate added in v1.0.3

signed binary containing both the node public key and their L1 address

func (MutableAddCandidateNodeParams) PubKey added in v1.0.3

public key of the node to be added

type MutableChangeAccessNodesParams added in v0.3.0

type MutableChangeAccessNodesParams struct {
	Proxy wasmtypes.Proxy
}

func (MutableChangeAccessNodesParams) Actions added in v1.0.3

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

type MutableDelegateChainOwnershipParams struct {
	Proxy wasmtypes.Proxy
}

func (MutableDelegateChainOwnershipParams) ChainOwner

next chain owner's agent ID

type MutableGetAllowedStateControllerAddressesResults

type MutableGetAllowedStateControllerAddressesResults struct {
	Proxy wasmtypes.Proxy
}

func NewMutableGetAllowedStateControllerAddressesResults added in v1.0.3

func NewMutableGetAllowedStateControllerAddressesResults() MutableGetAllowedStateControllerAddressesResults

func (MutableGetAllowedStateControllerAddressesResults) Controllers added in v1.0.3

Array of state controller addresses

type MutableGetChainInfoResults

type MutableGetChainInfoResults struct {
	Proxy wasmtypes.Proxy
}

func NewMutableGetChainInfoResults added in v1.0.3

func NewMutableGetChainInfoResults() MutableGetChainInfoResults

func (MutableGetChainInfoResults) ChainID

chain ID

func (MutableGetChainInfoResults) ChainOwnerID

chain owner agent ID

func (MutableGetChainInfoResults) FeePolicy added in v1.0.3

serialized fee policy

func (MutableGetChainInfoResults) GasLimits added in v1.0.3

serialized gas limits

func (MutableGetChainInfoResults) Metadata added in v1.0.3

chain metadata

func (MutableGetChainInfoResults) PublicURL added in v1.0.3

type MutableGetChainNodesResults added in v0.3.0

type MutableGetChainNodesResults struct {
	Proxy wasmtypes.Proxy
}

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

pubKey set

type MutableGetChainOwnerResults added in v0.3.0

type MutableGetChainOwnerResults struct {
	Proxy wasmtypes.Proxy
}

func NewMutableGetChainOwnerResults added in v1.0.3

func NewMutableGetChainOwnerResults() MutableGetChainOwnerResults

func (MutableGetChainOwnerResults) ChainOwnerID added in v1.0.3

chain owner

type MutableGetEVMGasRatioResults added in v1.0.3

type MutableGetEVMGasRatioResults struct {
	Proxy wasmtypes.Proxy
}

func NewMutableGetEVMGasRatioResults added in v1.0.3

func NewMutableGetEVMGasRatioResults() MutableGetEVMGasRatioResults

func (MutableGetEVMGasRatioResults) GasRatio added in v1.0.3

serialized gas ratio

type MutableGetFeePolicyResults added in v0.3.0

type MutableGetFeePolicyResults struct {
	Proxy wasmtypes.Proxy
}

func NewMutableGetFeePolicyResults added in v1.0.3

func NewMutableGetFeePolicyResults() MutableGetFeePolicyResults

func (MutableGetFeePolicyResults) FeePolicy added in v1.0.3

serialized fee policy

type MutableGetGasLimitsResults added in v1.0.3

type MutableGetGasLimitsResults struct {
	Proxy wasmtypes.Proxy
}

func NewMutableGetGasLimitsResults added in v1.0.3

func NewMutableGetGasLimitsResults() MutableGetGasLimitsResults

func (MutableGetGasLimitsResults) GasLimits added in v1.0.3

serialized gas limits

type MutableGetMaintenanceStatusResults added in v1.0.3

type MutableGetMaintenanceStatusResults struct {
	Proxy wasmtypes.Proxy
}

func NewMutableGetMaintenanceStatusResults added in v1.0.3

func NewMutableGetMaintenanceStatusResults() MutableGetMaintenanceStatusResults

func (MutableGetMaintenanceStatusResults) Status added in v1.0.3

whether maintenance mode is on

type MutableGetMetadataResults added in v1.0.3

type MutableGetMetadataResults struct {
	Proxy wasmtypes.Proxy
}

func NewMutableGetMetadataResults added in v1.0.3

func NewMutableGetMetadataResults() MutableGetMetadataResults

func (MutableGetMetadataResults) Metadata added in v1.0.3

the L2 metadata

func (MutableGetMetadataResults) PublicURL added in v1.0.3

the public url leading to the chain info, stored on the tangle (l1)

type MutableGetMinSDResults added in v1.0.3

type MutableGetMinSDResults struct {
	Proxy wasmtypes.Proxy
}

func NewMutableGetMinSDResults added in v1.0.3

func NewMutableGetMinSDResults() MutableGetMinSDResults

func (MutableGetMinSDResults) GetMinSD added in v1.0.3

type MutableGetPayoutAgentIDResults added in v1.0.3

type MutableGetPayoutAgentIDResults struct {
	Proxy wasmtypes.Proxy
}

func NewMutableGetPayoutAgentIDResults added in v1.0.3

func NewMutableGetPayoutAgentIDResults() MutableGetPayoutAgentIDResults

func (MutableGetPayoutAgentIDResults) PayoutAgentID added in v1.0.3

get payout AgentID

type MutablePublicChainMetadata added in v1.0.3

type MutablePublicChainMetadata struct {
	Proxy wasmtypes.Proxy
}

func (MutablePublicChainMetadata) Delete added in v1.0.3

func (o MutablePublicChainMetadata) Delete()

func (MutablePublicChainMetadata) Exists added in v1.0.3

func (o MutablePublicChainMetadata) Exists() bool

func (MutablePublicChainMetadata) SetValue added in v1.0.3

func (MutablePublicChainMetadata) Value added in v1.0.3

type MutableRemoveAllowedStateControllerAddressParams

type MutableRemoveAllowedStateControllerAddressParams struct {
	Proxy wasmtypes.Proxy
}

func (MutableRemoveAllowedStateControllerAddressParams) Address added in v1.0.3

state controller address

type MutableRevokeAccessNodeParams added in v0.3.0

type MutableRevokeAccessNodeParams struct {
	Proxy wasmtypes.Proxy
}

func (MutableRevokeAccessNodeParams) Certificate added in v1.0.3

certificate of the node to be removed

func (MutableRevokeAccessNodeParams) PubKey added in v1.0.3

public key of the node to be removed

type MutableRotateStateControllerParams

type MutableRotateStateControllerParams struct {
	Proxy wasmtypes.Proxy
}

func (MutableRotateStateControllerParams) Address added in v1.0.3

state controller address

type MutableSetEVMGasRatioParams added in v1.0.3

type MutableSetEVMGasRatioParams struct {
	Proxy wasmtypes.Proxy
}

func (MutableSetEVMGasRatioParams) GasRatio added in v1.0.3

serialized gas ratio

type MutableSetFeePolicyParams added in v0.3.0

type MutableSetFeePolicyParams struct {
	Proxy wasmtypes.Proxy
}

func (MutableSetFeePolicyParams) FeePolicy added in v1.0.3

serialized fee policy

type MutableSetGasLimitsParams added in v1.0.3

type MutableSetGasLimitsParams struct {
	Proxy wasmtypes.Proxy
}

func (MutableSetGasLimitsParams) GasLimits added in v1.0.3

serialized gas limits

type MutableSetMetadataParams added in v1.0.3

type MutableSetMetadataParams struct {
	Proxy wasmtypes.Proxy
}

func (MutableSetMetadataParams) Metadata added in v1.0.3

the public evm json rpc url

func (MutableSetMetadataParams) PublicURL added in v1.0.3

the public url leading to the chain info, stored on the tangle

type MutableSetMinSDParams added in v1.0.3

type MutableSetMinSDParams struct {
	Proxy wasmtypes.Proxy
}

func (MutableSetMinSDParams) SetMinSD added in v1.0.3

type MutableSetPayoutAgentIDParams added in v1.0.3

type MutableSetPayoutAgentIDParams struct {
	Proxy wasmtypes.Proxy
}

func (MutableSetPayoutAgentIDParams) PayoutAgentID added in v1.0.3

set payout AgentID

type PublicChainMetadata added in v1.0.3

type PublicChainMetadata struct {
	Description     string
	EvmJsonRPCURL   string
	EvmWebSocketURL string
	Name            string
	Website         string
}

func PublicChainMetadataFromBytes added in v1.0.3

func PublicChainMetadataFromBytes(buf []byte) *PublicChainMetadata

func (*PublicChainMetadata) Bytes added in v1.0.3

func (o *PublicChainMetadata) Bytes() []byte

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 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
}

type SetMetadataCall added in v1.0.3

type SetMetadataCall struct {
	Func   *wasmlib.ScFunc
	Params MutableSetMetadataParams
}

type SetMinSDCall added in v1.0.3

type SetMinSDCall struct {
	Func   *wasmlib.ScFunc
	Params MutableSetMinSDParams
}

type SetPayoutAgentIDCall added in v1.0.3

type SetPayoutAgentIDCall struct {
	Func   *wasmlib.ScFunc
	Params MutableSetPayoutAgentIDParams
}

type StartMaintenanceCall added in v1.0.3

type StartMaintenanceCall struct {
	Func *wasmlib.ScFunc
}

type StopMaintenanceCall added in v1.0.3

type StopMaintenanceCall struct {
	Func *wasmlib.ScFunc
}

Jump to

Keyboard shortcuts

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