Enum secret_toolkit_snip20::query::QueryMsg
source · [−]pub enum QueryMsg {
TokenInfo {},
TokenConfig {},
ContractStatus {},
ExchangeRate {},
Allowance {
owner: HumanAddr,
spender: HumanAddr,
key: String,
},
Balance {
address: HumanAddr,
key: String,
},
TransferHistory {
address: HumanAddr,
key: String,
page: Option<u32>,
page_size: u32,
},
TransactionHistory {
address: HumanAddr,
key: String,
page: Option<u32>,
page_size: u32,
},
Minters {},
}
Expand description
SNIP20 queries
Variants
TokenInfo
Fields
TokenConfig
Fields
ContractStatus
Fields
ExchangeRate
Fields
Allowance
Balance
TransferHistory
TransactionHistory
Minters
Fields
Implementations
sourceimpl QueryMsg
impl QueryMsg
sourcepub fn query<Q: Querier, T: DeserializeOwned>(
&self,
querier: &Q,
block_size: usize,
callback_code_hash: String,
contract_addr: HumanAddr
) -> StdResult<T>
pub fn query<Q: Querier, T: DeserializeOwned>(
&self,
querier: &Q,
block_size: usize,
callback_code_hash: String,
contract_addr: HumanAddr
) -> StdResult<T>
Returns a StdResult
Arguments
querier
- a reference to the Querier dependency of the querying contractblock_size
- pad the message to blocks of this sizecallback_code_hash
- String holding the code hash of the contract being queriedcontract_addr
- address of the contract being queried
Trait Implementations
impl Eq for QueryMsg
impl StructuralEq for QueryMsg
impl StructuralPartialEq for QueryMsg
Auto Trait Implementations
impl RefUnwindSafe for QueryMsg
impl Send for QueryMsg
impl Sync for QueryMsg
impl Unpin for QueryMsg
impl UnwindSafe for QueryMsg
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more