pub struct ISnip20 {
pub link: ContractLink<Addr>,
/* private fields */
}
Expand description
SNIP-20 token wrapper to easily call methods on contracts that implement the standard.
Fields§
§link: ContractLink<Addr>
Implementations§
source§impl ISnip20
impl ISnip20
pub fn new(address: Addr, code_hash: String) -> Self
pub fn memo(self, memo: String) -> Self
pub fn block_size(self, size: usize) -> Self
pub fn padding(self, padding: String) -> Self
pub fn add_funds(self, coin: Coin) -> Self
pub fn mint( self, recipient: String, amount: Uint128, decoys: Option<Vec<String>>, entropy: Option<Binary> ) -> StdResult<CosmosMsg>
pub fn set_minters(self, minters: Vec<String>) -> StdResult<CosmosMsg>
pub fn send( self, recipient: String, amount: Uint128, msg: Option<Binary>, recipient_code_hash: Option<String>, decoys: Option<Vec<String>>, entropy: Option<Binary> ) -> StdResult<CosmosMsg>
pub fn send_from( self, owner: String, recipient: String, amount: Uint128, msg: Option<Binary>, recipient_code_hash: Option<String>, decoys: Option<Vec<String>>, entropy: Option<Binary> ) -> StdResult<CosmosMsg>
pub fn register_receive(self, code_hash: String) -> StdResult<CosmosMsg>
pub fn transfer( self, recipient: String, amount: Uint128, decoys: Option<Vec<String>>, entropy: Option<Binary> ) -> StdResult<CosmosMsg>
pub fn transfer_from( self, owner: String, recipient: String, amount: Uint128, decoys: Option<Vec<String>>, entropy: Option<Binary> ) -> StdResult<CosmosMsg>
pub fn batch_transfer( self, actions: Vec<TransferAction>, entropy: Option<Binary> ) -> StdResult<CosmosMsg>
pub fn set_viewing_key(self, key: impl Into<String>) -> StdResult<CosmosMsg>
pub fn increase_allowance( self, spender: String, amount: Uint128, expiration: Option<u64> ) -> StdResult<CosmosMsg>
pub fn query_balance( self, querier: QuerierWrapper<'_>, address: impl Into<String>, key: impl Into<String> ) -> StdResult<Uint128>
pub fn query_token_info( self, querier: QuerierWrapper<'_> ) -> 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§
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