pub enum ArchwayQuery {
ContractMetadata {
contract_address: String,
},
FlatFee {
contract_address: String,
},
RewardsRecords {
rewards_address: String,
pagination: Option<PageRequest>,
},
GovVote {
proposal_id: u64,
voter: String,
},
}Expand description
Queries for Archway’s bindings.
Variants§
ContractMetadata
Returns a rewards::ContractMetadataResponse for the given contract address.
FlatFee
Returns a [rewards::FlatFeeResponse for the given contract address.
RewardsRecords
Returns a rewards::RewardsRecordsResponse containing a list of rewards::RewardsRecord
objects that are credited for the account and are ready to be withdrawn. The request is
paginated. If the limit field is not set, the governance param rewards.MaxWithdrawRecords
is used.
GovVote
Returns a gov::VoteResponse for the given proposal ID and voter.
Implementations§
Source§impl ArchwayQuery
impl ArchwayQuery
Sourcepub fn contract_metadata(contract_address: impl Into<String>) -> Self
pub fn contract_metadata(contract_address: impl Into<String>) -> Self
Builds a query to get the contract metadata for the given contract address.
Sourcepub fn flat_fee(contract_address: impl Into<String>) -> Self
pub fn flat_fee(contract_address: impl Into<String>) -> Self
Builds a query to get the flat fee for the given contract address.
Sourcepub fn rewards_records(rewards_address: impl Into<String>) -> Self
pub fn rewards_records(rewards_address: impl Into<String>) -> Self
Builds a query to list the rewards records for the given rewards address.
Sourcepub fn rewards_records_with_pagination(
rewards_address: impl Into<String>,
pagination: PageRequest,
) -> Self
pub fn rewards_records_with_pagination( rewards_address: impl Into<String>, pagination: PageRequest, ) -> Self
Builds a query to get a list of rewards records for the given rewards address with pagination.
Trait Implementations§
Source§impl Clone for ArchwayQuery
impl Clone for ArchwayQuery
Source§fn clone(&self) -> ArchwayQuery
fn clone(&self) -> ArchwayQuery
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ArchwayQuery
impl Debug for ArchwayQuery
Source§impl<'de> Deserialize<'de> for ArchwayQuery
impl<'de> Deserialize<'de> for ArchwayQuery
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 ArchwayQuery
impl JsonSchema for ArchwayQuery
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 more