defuse_nep245::ext_mt_core

Struct MultiTokenCoreExt

Source
pub struct MultiTokenCoreExt { /* private fields */ }

Implementations§

Source§

impl MultiTokenCoreExt

Source

pub fn with_attached_deposit(self, amount: NearToken) -> Self

Source

pub fn with_static_gas(self, static_gas: Gas) -> Self

Source

pub fn with_unused_gas_weight(self, gas_weight: u64) -> Self

Source§

impl MultiTokenCoreExt

Source

pub fn mt_transfer( self, receiver_id: AccountId, token_id: TokenId, amount: U128, approval: Option<(AccountId, u64)>, memo: Option<String>, ) -> Promise

Source

pub fn mt_batch_transfer( self, receiver_id: AccountId, token_ids: Vec<TokenId>, amounts: Vec<U128>, approvals: Option<Vec<Option<(AccountId, u64)>>>, memo: Option<String>, ) -> Promise

Source

pub fn mt_transfer_call( self, receiver_id: AccountId, token_id: TokenId, amount: U128, approval: Option<(AccountId, u64)>, memo: Option<String>, msg: String, ) -> Promise

Source

pub fn mt_batch_transfer_call( self, receiver_id: AccountId, token_ids: Vec<TokenId>, amounts: Vec<U128>, approvals: Option<Vec<Option<(AccountId, u64)>>>, memo: Option<String>, msg: String, ) -> Promise

Source

pub fn mt_token(self, token_ids: Vec<TokenId>) -> Promise

Source

pub fn mt_balance_of(self, account_id: AccountId, token_id: TokenId) -> Promise

Source

pub fn mt_batch_balance_of( self, account_id: AccountId, token_ids: Vec<TokenId>, ) -> Promise

Source

pub fn mt_supply(self, token_id: TokenId) -> Promise

Source

pub fn mt_batch_supply(self, token_ids: Vec<TokenId>) -> Promise

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.