pub enum QueryMsg {
Show 13 variants
Configuration {},
Claims {
address: String,
limit: Option<u32>,
start_after: Option<Expiration>,
},
Staked {
address: String,
},
UnbondingPeriod {},
Admin {},
TotalPoints {},
ListMembers {
start_after: Option<String>,
limit: Option<u32>,
},
ListMembersByPoints {
start_after: Option<Member>,
limit: Option<u32>,
},
Member {
addr: String,
at_height: Option<u64>,
},
Hooks {},
Preauths {},
IsSlasher {
addr: String,
},
ListSlashers {},
}Variants§
Configuration
Returns config
Claims
Claims shows the tokens in process of unbonding for this address
Staked
Shows the number of liquid and vesting tokens currently staked by this address. Returns StakedResponse.
UnbondingPeriod
Returns the unbonding period of this contract. Returns UnbondingPeriodResponse.
Admin
Return AdminResponse
TotalPoints
Returns TotalPointsResponse. This is the amount of tokens bonded divided by tokens_per_point.
ListMembers
Returns MemberListResponse
ListMembersByPoints
Returns MemberListResponse, sorted by points descending.
Member
Returns MemberResponse
Hooks
Shows all registered hooks. Returns HooksResponse.
Preauths
Return the current number of preauths. Returns PreauthResponse.
IsSlasher
Returns information (bool) about whether a given address is an active slasher
ListSlashers
Returns all active slashers as a vector of addresses.
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>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for QueryMsg
Source§impl JsonSchema for QueryMsg
impl JsonSchema for QueryMsg
Source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$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
Mutably borrows from an owned value. Read more
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>
Converts
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>
Converts
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