Struct fadroma::snip20_client::ISnip20
source · [−]pub struct ISnip20 {
pub link: ContractLink<HumanAddr>,
/* private fields */
}
Fields
link: ContractLink<HumanAddr>
Implementations
sourceimpl ISnip20
impl ISnip20
pub fn attach(link: ContractLink<HumanAddr>) -> Self
pub fn attach_to(address: &HumanAddr, code_hash: &String) -> Self
pub fn memo(self, memo: String) -> Self
pub fn mint(
&self,
recipient: &HumanAddr,
amount: Uint128
) -> StdResult<CosmosMsg>
pub fn set_minters(&self, minters: &Vec<HumanAddr>) -> StdResult<CosmosMsg>
pub fn send(
&self,
recipient: &HumanAddr,
amount: Uint128,
msg: Option<Binary>
) -> StdResult<CosmosMsg>
pub fn send_from(
&self,
owner: &HumanAddr,
recipient: &HumanAddr,
amount: Uint128,
msg: Option<Binary>
) -> StdResult<CosmosMsg>
pub fn register_receive(&self, hash: String) -> StdResult<CosmosMsg>
pub fn transfer(
&self,
recipient: &HumanAddr,
amount: Uint128
) -> StdResult<CosmosMsg>
pub fn batch_transfer(
&self,
transfers: &[(HumanAddr, Uint128)]
) -> StdResult<CosmosMsg>
pub fn transfer_from(
&self,
owner: &HumanAddr,
recipient: &HumanAddr,
amount: Uint128
) -> StdResult<CosmosMsg>
pub fn set_viewing_key(&self, vk: &str) -> StdResult<CosmosMsg>
pub fn increase_allowance(
&self,
recipient: &HumanAddr,
amount: Uint128,
duration: Option<u64>
) -> StdResult<CosmosMsg>
pub fn query_balance(
&self,
querier: &impl Querier,
address: &HumanAddr,
vk: &str
) -> StdResult<Uint128>
pub fn query_token_info(&self, querier: &impl Querier) -> StdResult<TokenInfo>
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for ISnip20
impl Send for ISnip20
impl Sync for ISnip20
impl Unpin for ISnip20
impl UnwindSafe for ISnip20
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