pub enum QueryMsg {
Show 56 variants
Admin {},
GetContractVersion {},
GetCW2ContractVersion {},
GetRewardingValidatorAddress {},
GetStateParams {},
GetState {},
GetCurrentNymNodeVersion {},
GetNymNodeVersionHistory {
limit: Option<u32>,
start_after: Option<u32>,
},
GetRewardingParams {},
GetEpochStatus {},
GetCurrentIntervalDetails {},
GetMixNodeBonds {
limit: Option<u32>,
start_after: Option<NodeId>,
},
GetMixNodesDetailed {
limit: Option<u32>,
start_after: Option<NodeId>,
},
GetUnbondedMixNodes {
limit: Option<u32>,
start_after: Option<NodeId>,
},
GetUnbondedMixNodesByOwner {
owner: String,
limit: Option<u32>,
start_after: Option<NodeId>,
},
GetUnbondedMixNodesByIdentityKey {
identity_key: String,
limit: Option<u32>,
start_after: Option<NodeId>,
},
GetOwnedMixnode {
address: String,
},
GetMixnodeDetails {
mix_id: NodeId,
},
GetMixnodeRewardingDetails {
mix_id: NodeId,
},
GetStakeSaturation {
mix_id: NodeId,
},
GetUnbondedMixNodeInformation {
mix_id: NodeId,
},
GetBondedMixnodeDetailsByIdentity {
mix_identity: IdentityKey,
},
GetGateways {
start_after: Option<IdentityKey>,
limit: Option<u32>,
},
GetGatewayBond {
identity: IdentityKey,
},
GetOwnedGateway {
address: String,
},
GetPreassignedGatewayIds {
start_after: Option<IdentityKey>,
limit: Option<u32>,
},
GetNymNodeBondsPaged {
limit: Option<u32>,
start_after: Option<NodeId>,
},
GetNymNodesDetailedPaged {
limit: Option<u32>,
start_after: Option<NodeId>,
},
GetUnbondedNymNode {
node_id: NodeId,
},
GetUnbondedNymNodesPaged {
limit: Option<u32>,
start_after: Option<NodeId>,
},
GetUnbondedNymNodesByOwnerPaged {
owner: String,
limit: Option<u32>,
start_after: Option<NodeId>,
},
GetUnbondedNymNodesByIdentityKeyPaged {
identity_key: IdentityKey,
limit: Option<u32>,
start_after: Option<NodeId>,
},
GetOwnedNymNode {
address: String,
},
GetNymNodeDetails {
node_id: NodeId,
},
GetNymNodeDetailsByIdentityKey {
node_identity: IdentityKey,
},
GetNodeRewardingDetails {
node_id: NodeId,
},
GetNodeStakeSaturation {
node_id: NodeId,
},
GetRoleAssignment {
role: Role,
},
GetRewardedSetMetadata {},
GetNodeDelegations {
node_id: NodeId,
start_after: Option<OwnerProxySubKey>,
limit: Option<u32>,
},
GetDelegatorDelegations {
delegator: String,
start_after: Option<(NodeId, OwnerProxySubKey)>,
limit: Option<u32>,
},
GetDelegationDetails {
node_id: NodeId,
delegator: String,
proxy: Option<String>,
},
GetAllDelegations {
start_after: Option<StorageKey>,
limit: Option<u32>,
},
GetPendingOperatorReward {
address: String,
},
GetPendingNodeOperatorReward {
node_id: NodeId,
},
GetPendingDelegatorReward {
address: String,
node_id: NodeId,
proxy: Option<String>,
},
GetEstimatedCurrentEpochOperatorReward {
node_id: NodeId,
estimated_performance: Performance,
estimated_work: Option<WorkFactor>,
},
GetEstimatedCurrentEpochDelegatorReward {
address: String,
node_id: NodeId,
estimated_performance: Performance,
estimated_work: Option<WorkFactor>,
},
GetPendingEpochEvents {
limit: Option<u32>,
start_after: Option<u32>,
},
GetPendingIntervalEvents {
limit: Option<u32>,
start_after: Option<u32>,
},
GetPendingEpochEvent {
event_id: EpochEventId,
},
GetPendingIntervalEvent {
event_id: IntervalEventId,
},
GetNumberOfPendingEvents {},
GetSigningNonce {
address: String,
},
GetKeyRotationState {},
GetKeyRotationId {},
}Variants§
Admin
GetContractVersion
Gets build information of this contract, such as the commit hash used for the build or rustc version.
GetCW2ContractVersion
Gets the stored contract version information that’s required by the CW2 spec interface for migrations.
GetRewardingValidatorAddress
Gets the address of the validator that’s allowed to send rewarding transactions and transition the epoch.
GetStateParams
Gets the contract parameters that could be adjusted in a transaction by the contract admin.
GetState
Gets the current state of the contract.
GetCurrentNymNodeVersion
Get the current expected version of a Nym Node.
GetNymNodeVersionHistory
Get the version history of Nym Node.
Fields
GetRewardingParams
Gets the current parameters used for reward calculation.
GetEpochStatus
Gets the status of the current rewarding epoch.
GetCurrentIntervalDetails
Get the details of the current rewarding interval.
GetMixNodeBonds
Gets the basic list of all currently bonded mixnodes.
Fields
GetMixNodesDetailed
Gets the detailed list of all currently bonded mixnodes.
Fields
GetUnbondedMixNodes
Gets the basic list of all unbonded mixnodes.
Fields
GetUnbondedMixNodesByOwner
Gets the basic list of all unbonded mixnodes that belonged to a particular owner.
Fields
GetUnbondedMixNodesByIdentityKey
Gets the basic list of all unbonded mixnodes that used the particular identity key.
Fields
identity_key: StringThe identity key (base58-encoded ed25519 public key) of the mixnode used for the query.
GetOwnedMixnode
Gets the detailed mixnode information belonging to the particular owner.
GetMixnodeDetails
Gets the detailed mixnode information of a node with the provided id.
GetMixnodeRewardingDetails
Gets the rewarding information of a mixnode with the provided id.
GetStakeSaturation
Gets the stake saturation of a mixnode with the provided id.
GetUnbondedMixNodeInformation
Gets the basic information of an unbonded mixnode with the provided id.
GetBondedMixnodeDetailsByIdentity
Gets the detailed mixnode information of a node given its current identity key.
Fields
mix_identity: IdentityKeyThe identity key (base58-encoded ed25519 public key) of the mixnode used for the query.
GetGateways
Gets the basic list of all currently bonded gateways.
Fields
start_after: Option<IdentityKey>Pagination control for the values returned by the query. Note that the provided value itself will not be used for the response.
GetGatewayBond
Gets the gateway details of a node given its identity key.
Fields
identity: IdentityKeyThe identity key (base58-encoded ed25519 public key) of the gateway used for the query.
GetOwnedGateway
Gets the detailed gateway information belonging to the particular owner.
GetPreassignedGatewayIds
Get the NodeIds of all the legacy gateways that they will get assigned once migrated into NymNodes
Fields
start_after: Option<IdentityKey>Pagination control for the values returned by the query. Note that the provided value itself will not be used for the response.
GetNymNodeBondsPaged
Gets the basic list of all currently bonded nymnodes.
Fields
GetNymNodesDetailedPaged
Gets the detailed list of all currently bonded nymnodes.
Fields
GetUnbondedNymNode
Gets the basic information of an unbonded nym-node with the provided id.
GetUnbondedNymNodesPaged
Gets the basic list of all unbonded nymnodes.
Fields
GetUnbondedNymNodesByOwnerPaged
Gets the basic list of all unbonded nymnodes that belonged to a particular owner.
Fields
GetUnbondedNymNodesByIdentityKeyPaged
Gets the basic list of all unbonded nymnodes that used the particular identity key.
Fields
identity_key: IdentityKeyThe identity key (base58-encoded ed25519 public key) of the node used for the query.
GetOwnedNymNode
Gets the detailed nymnode information belonging to the particular owner.
GetNymNodeDetails
Gets the detailed nymnode information of a node with the provided id.
GetNymNodeDetailsByIdentityKey
Gets the detailed nym-node information given its current identity key.
Fields
node_identity: IdentityKeyThe identity key (base58-encoded ed25519 public key) of the nym-node used for the query.
GetNodeRewardingDetails
Gets the rewarding information of a nym-node with the provided id.
GetNodeStakeSaturation
Gets the stake saturation of a nym-node with the provided id.
GetRoleAssignment
GetRewardedSetMetadata
GetNodeDelegations
Gets all delegations associated with particular node
Fields
start_after: Option<OwnerProxySubKey>Pagination control for the values returned by the query. Note that the provided value itself will not be used for the response.
GetDelegatorDelegations
Gets all delegations associated with particular delegator
Fields
start_after: Option<(NodeId, OwnerProxySubKey)>Pagination control for the values returned by the query. Note that the provided value itself will not be used for the response.
GetDelegationDetails
Gets delegation information associated with particular mixnode - delegator pair
Fields
GetAllDelegations
Gets all delegations in the system
Fields
start_after: Option<StorageKey>Pagination control for the values returned by the query. Note that the provided value itself will not be used for the response.
GetPendingOperatorReward
Gets the reward amount accrued by the node operator that has not yet been claimed.
GetPendingNodeOperatorReward
Gets the reward amount accrued by the particular mixnode that has not yet been claimed.
GetPendingDelegatorReward
Gets the reward amount accrued by the particular delegator that has not yet been claimed.
Fields
GetEstimatedCurrentEpochOperatorReward
Given the provided node performance, attempt to estimate the operator reward for the current epoch.
Fields
estimated_performance: PerformanceThe estimated performance for the current epoch of the given node.
estimated_work: Option<WorkFactor>The estimated work for the current epoch of the given node.
GetEstimatedCurrentEpochDelegatorReward
Given the provided node performance, attempt to estimate the delegator reward for the current epoch.
Fields
estimated_performance: PerformanceThe estimated performance for the current epoch of the given node.
estimated_work: Option<WorkFactor>The estimated work for the current epoch of the given node.
GetPendingEpochEvents
Gets the list of all currently pending epoch events that will be resolved once the current epoch finishes.
Fields
GetPendingIntervalEvents
Gets the list of all currently pending interval events that will be resolved once the current interval finishes.
Fields
GetPendingEpochEvent
Gets detailed information about a pending epoch event given its id.
Fields
event_id: EpochEventIdThe unique id associated with the event.
GetPendingIntervalEvent
Gets detailed information about a pending interval event given its id.
Fields
event_id: IntervalEventIdThe unique id associated with the event.
GetNumberOfPendingEvents
Gets the information about the number of currently pending epoch and interval events.
GetSigningNonce
Gets the signing nonce associated with the particular cosmos address.
GetKeyRotationState
Gets the current state config of the key rotation (i.e. starting epoch id and validity duration)
GetKeyRotationId
Gets the current key rotation id
Trait Implementations§
Source§impl<'de> Deserialize<'de> for QueryMsg
impl<'de> Deserialize<'de> for QueryMsg
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl JsonSchema for QueryMsg
impl JsonSchema for QueryMsg
Source§fn schema_name() -> String
fn schema_name() -> String
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
$ref keyword. Read moreimpl StructuralPartialEq for QueryMsg
Auto Trait Implementations§
impl Freeze for QueryMsg
impl RefUnwindSafe for QueryMsg
impl Send for QueryMsg
impl Sync for QueryMsg
impl Unpin for QueryMsg
impl UnsafeUnpin for QueryMsg
impl UnwindSafe for QueryMsg
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more