pub struct InterchainToken;Implementations§
Source§impl InterchainToken
impl InterchainToken
pub const fn spec_xdr_version() -> [u8; 32]
Source§impl InterchainToken
impl InterchainToken
pub const fn spec_xdr_required_auths() -> [u8; 44]
Source§impl InterchainToken
impl InterchainToken
pub const fn spec_xdr_upgrade() -> [u8; 60]
Source§impl InterchainToken
impl InterchainToken
pub const fn spec_xdr_migrate() -> [u8; 128]
Source§impl InterchainToken
impl InterchainToken
pub fn __constructor( env: Env, owner: Address, minter: Option<Address>, token_id: BytesN<32>, token_metadata: TokenMetadata, )
Source§impl InterchainToken
impl InterchainToken
pub const fn spec_xdr___constructor() -> [u8; 152]
Source§impl InterchainToken
impl InterchainToken
pub const fn spec_xdr_owner() -> [u8; 32]
Source§impl InterchainToken
impl InterchainToken
pub const fn spec_xdr_transfer_ownership() -> [u8; 64]
Source§impl InterchainToken
impl InterchainToken
pub const fn spec_xdr_set_admin() -> [u8; 52]
Source§impl InterchainToken
impl InterchainToken
pub const fn spec_xdr_admin() -> [u8; 32]
Source§impl InterchainToken
impl InterchainToken
pub const fn spec_xdr_mint() -> [u8; 60]
Source§impl InterchainToken
impl InterchainToken
pub const fn spec_xdr_clawback() -> [u8; 68]
Source§impl InterchainToken
impl InterchainToken
pub const fn spec_xdr_token_id() -> [u8; 36]
Source§impl InterchainToken
impl InterchainToken
pub const fn spec_xdr_is_minter() -> [u8; 56]
Source§impl InterchainToken
impl InterchainToken
pub const fn spec_xdr_mint_from() -> [u8; 124]
Source§impl InterchainToken
impl InterchainToken
pub const fn spec_xdr_add_minter() -> [u8; 52]
Source§impl InterchainToken
impl InterchainToken
pub const fn spec_xdr_remove_minter() -> [u8; 56]
Source§impl InterchainToken
impl InterchainToken
pub const fn spec_xdr_allowance() -> [u8; 72]
Source§impl InterchainToken
impl InterchainToken
pub const fn spec_xdr_approve() -> [u8; 116]
Source§impl InterchainToken
impl InterchainToken
pub const fn spec_xdr_balance() -> [u8; 48]
Source§impl InterchainToken
impl InterchainToken
pub const fn spec_xdr_transfer() -> [u8; 80]
Source§impl InterchainToken
impl InterchainToken
pub const fn spec_xdr_transfer_from() -> [u8; 108]
Source§impl InterchainToken
impl InterchainToken
pub const fn spec_xdr_burn() -> [u8; 60]
Source§impl InterchainToken
impl InterchainToken
pub const fn spec_xdr_burn_from() -> [u8; 88]
Source§impl InterchainToken
impl InterchainToken
pub const fn spec_xdr_decimals() -> [u8; 32]
Source§impl InterchainToken
impl InterchainToken
pub const fn spec_xdr_name() -> [u8; 28]
Source§impl InterchainToken
impl InterchainToken
pub const fn spec_xdr_symbol() -> [u8; 32]
Trait Implementations§
Source§impl CustomMigratableInterface for InterchainToken
impl CustomMigratableInterface for InterchainToken
Source§type MigrationData = ()
type MigrationData = ()
Data needed during the migration. Each contract can define its own data type.
Choose
() if none is necessarySource§type Error = ContractError
type Error = ContractError
Error type returned if the migration fails.
It must implement the
Into<ContractError> trait if migration is implemented with the #[derive(Upgradable)] macro.Source§impl InterchainTokenInterface for InterchainToken
impl InterchainTokenInterface for InterchainToken
Source§fn is_minter(env: &Env, minter: Address) -> bool
fn is_minter(env: &Env, minter: Address) -> bool
Returns if the specified address is a minter.
Source§fn mint_from(
env: &Env,
minter: Address,
to: Address,
amount: i128,
) -> Result<(), ContractError>
fn mint_from( env: &Env, minter: Address, to: Address, amount: i128, ) -> Result<(), ContractError>
Mints new tokens from a specified minter to a specified address. Read more
Source§impl MigratableInterface for InterchainToken
impl MigratableInterface for InterchainToken
Source§type Error = ContractError
type Error = ContractError
Error type returned if the migration fails.
Source§fn migrate(
env: &Env,
migration_data: <InterchainToken as CustomMigratableInterface>::MigrationData,
) -> Result<(), ContractError>
fn migrate( env: &Env, migration_data: <InterchainToken as CustomMigratableInterface>::MigrationData, ) -> Result<(), ContractError>
Migrates contract state after upgrading the contract code.
Source§impl OwnableInterface for InterchainToken
impl OwnableInterface for InterchainToken
Source§impl StellarAssetInterface for InterchainToken
impl StellarAssetInterface for InterchainToken
Source§fn set_admin(env: Env, admin: Address)
fn set_admin(env: Env, admin: Address)
Sets the administrator to the specified address
new_admin. Read moreSets whether the account is authorized to use its balance. If
authorized is true, id should be able to use its balance. Read moreReturns true if
id is authorized to use its balance. Read moreSource§impl TokenInterface for InterchainToken
impl TokenInterface for InterchainToken
Source§fn approve(
env: Env,
from: Address,
spender: Address,
amount: i128,
expiration_ledger: u32,
)
fn approve( env: Env, from: Address, spender: Address, amount: i128, expiration_ledger: u32, )
Source§fn transfer_from(
env: Env,
spender: Address,
from: Address,
to: Address,
amount: i128,
)
fn transfer_from( env: Env, spender: Address, from: Address, to: Address, amount: i128, )
Transfer
amount from from to to, consuming the allowance that
spender has on from’s balance. Authorized by spender
(spender.require_auth()). Read moreAuto Trait Implementations§
impl Freeze for InterchainToken
impl RefUnwindSafe for InterchainToken
impl Send for InterchainToken
impl Sync for InterchainToken
impl Unpin for InterchainToken
impl UnwindSafe for InterchainToken
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
Source§impl<T, U, V, W, E, C> Compare<(T, U, V, W)> for C
impl<T, U, V, W, E, C> Compare<(T, U, V, W)> for C
type Error = E
fn compare( &self, a: &(T, U, V, W), b: &(T, U, V, W), ) -> Result<Ordering, <C as Compare<(T, U, V, W)>>::Error>
Source§impl<T, U, V, W, X, E, C> Compare<(T, U, V, W, X)> for C
impl<T, U, V, W, X, E, C> Compare<(T, U, V, W, X)> for C
type Error = E
fn compare( &self, a: &(T, U, V, W, X), b: &(T, U, V, W, X), ) -> Result<Ordering, <C as Compare<(T, U, V, W, X)>>::Error>
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more