pub struct InterchainTokenServiceClient<'a> {
pub env: Env,
pub address: Address,
/* private fields */
}Expand description
InterchainTokenServiceClient is a client for calling the contract defined in “InterchainTokenService”.
Fields§
§env: Env§address: AddressImplementations§
Source§impl<'a> InterchainTokenServiceClient<'a>
impl<'a> InterchainTokenServiceClient<'a>
pub fn operator(&self) -> Address
pub fn try_operator( &self, ) -> Result<Result<Address, <Address as TryFromVal<Env, Val>>::Error>, Result<Error, InvokeError>>
pub fn transfer_operatorship(&self, new_operator: &Address)
pub fn try_transfer_operatorship( &self, new_operator: &Address, ) -> Result<Result<(), <() as TryFromVal<Env, Val>>::Error>, Result<Error, InvokeError>>
Source§impl<'a> InterchainTokenServiceClient<'a>
impl<'a> InterchainTokenServiceClient<'a>
pub fn owner(&self) -> Address
pub fn try_owner( &self, ) -> Result<Result<Address, <Address as TryFromVal<Env, Val>>::Error>, Result<Error, InvokeError>>
pub fn transfer_ownership(&self, new_owner: &Address)
pub fn try_transfer_ownership( &self, new_owner: &Address, ) -> Result<Result<(), <() as TryFromVal<Env, Val>>::Error>, Result<Error, InvokeError>>
Source§impl<'a> InterchainTokenServiceClient<'a>
impl<'a> InterchainTokenServiceClient<'a>
pub fn paused(&self) -> bool
pub fn try_paused( &self, ) -> Result<Result<bool, <bool as TryFromVal<Env, Val>>::Error>, Result<Error, InvokeError>>
pub fn pause(&self)
pub fn try_pause( &self, ) -> Result<Result<(), <() as TryFromVal<Env, Val>>::Error>, Result<Error, InvokeError>>
pub fn unpause(&self)
pub fn try_unpause( &self, ) -> Result<Result<(), <() as TryFromVal<Env, Val>>::Error>, Result<Error, InvokeError>>
Source§impl<'a> InterchainTokenServiceClient<'a>
impl<'a> InterchainTokenServiceClient<'a>
pub fn version(&self) -> String
pub fn try_version( &self, ) -> Result<Result<String, <String as TryFromVal<Env, Val>>::Error>, Result<Error, InvokeError>>
pub fn required_auths(&self) -> Vec<Address>
pub fn try_required_auths( &self, ) -> Result<Result<Vec<Address>, <Vec<Address> as TryFromVal<Env, Val>>::Error>, Result<Error, InvokeError>>
pub fn upgrade(&self, new_wasm_hash: &BytesN<32>)
pub fn try_upgrade( &self, new_wasm_hash: &BytesN<32>, ) -> Result<Result<(), <() as TryFromVal<Env, Val>>::Error>, Result<Error, InvokeError>>
Source§impl<'a> InterchainTokenServiceClient<'a>
impl<'a> InterchainTokenServiceClient<'a>
pub fn migrate( &self, migration_data: &<InterchainTokenService as CustomMigratableInterface>::MigrationData, )
pub fn try_migrate( &self, migration_data: &<InterchainTokenService as CustomMigratableInterface>::MigrationData, ) -> Result<Result<(), <() as TryFromVal<Env, Val>>::Error>, Result<ContractError, InvokeError>>
Source§impl<'a> InterchainTokenServiceClient<'a>
impl<'a> InterchainTokenServiceClient<'a>
pub fn gateway(&self) -> Address
pub fn try_gateway( &self, ) -> Result<Result<Address, <Address as TryFromVal<Env, Val>>::Error>, Result<Error, InvokeError>>
pub fn execute( &self, source_chain: &String, message_id: &String, source_address: &String, payload: &Bytes, )
pub fn try_execute( &self, source_chain: &String, message_id: &String, source_address: &String, payload: &Bytes, ) -> Result<Result<(), <() as TryFromVal<Env, Val>>::Error>, Result<<InterchainTokenService as CustomAxelarExecutable>::Error, InvokeError>>
Source§impl<'a> InterchainTokenServiceClient<'a>
impl<'a> InterchainTokenServiceClient<'a>
Source§impl<'a> InterchainTokenServiceClient<'a>
impl<'a> InterchainTokenServiceClient<'a>
pub fn gas_service(&self) -> Address
pub fn try_gas_service( &self, ) -> Result<Result<Address, <Address as TryFromVal<Env, Val>>::Error>, Result<Error, InvokeError>>
pub fn chain_name(&self) -> String
pub fn try_chain_name( &self, ) -> Result<Result<String, <String as TryFromVal<Env, Val>>::Error>, Result<Error, InvokeError>>
pub fn its_hub_chain_name(&self) -> String
pub fn try_its_hub_chain_name( &self, ) -> Result<Result<String, <String as TryFromVal<Env, Val>>::Error>, Result<Error, InvokeError>>
pub fn its_hub_address(&self) -> String
pub fn try_its_hub_address( &self, ) -> Result<Result<String, <String as TryFromVal<Env, Val>>::Error>, Result<Error, InvokeError>>
pub fn native_token_address(&self) -> Address
pub fn try_native_token_address( &self, ) -> Result<Result<Address, <Address as TryFromVal<Env, Val>>::Error>, Result<Error, InvokeError>>
pub fn interchain_token_wasm_hash(&self) -> BytesN<32>
pub fn try_interchain_token_wasm_hash( &self, ) -> Result<Result<BytesN<32>, <BytesN<32> as TryFromVal<Env, Val>>::Error>, Result<Error, InvokeError>>
pub fn token_manager_wasm_hash(&self) -> BytesN<32>
pub fn try_token_manager_wasm_hash( &self, ) -> Result<Result<BytesN<32>, <BytesN<32> as TryFromVal<Env, Val>>::Error>, Result<Error, InvokeError>>
pub fn is_trusted_chain(&self, chain: &String) -> bool
pub fn try_is_trusted_chain( &self, chain: &String, ) -> Result<Result<bool, <bool as TryFromVal<Env, Val>>::Error>, Result<Error, InvokeError>>
pub fn set_trusted_chain(&self, chain: &String)
pub fn try_set_trusted_chain( &self, chain: &String, ) -> Result<Result<(), <() as TryFromVal<Env, Val>>::Error>, Result<ContractError, InvokeError>>
pub fn remove_trusted_chain(&self, chain: &String)
pub fn try_remove_trusted_chain( &self, chain: &String, ) -> Result<Result<(), <() as TryFromVal<Env, Val>>::Error>, Result<ContractError, InvokeError>>
pub fn interchain_token_id( &self, deployer: &Address, salt: &BytesN<32>, ) -> BytesN<32>
pub fn try_interchain_token_id( &self, deployer: &Address, salt: &BytesN<32>, ) -> Result<Result<BytesN<32>, <BytesN<32> as TryFromVal<Env, Val>>::Error>, Result<Error, InvokeError>>
pub fn canonical_interchain_token_id( &self, token_address: &Address, ) -> BytesN<32>
pub fn try_canonical_interchain_token_id( &self, token_address: &Address, ) -> Result<Result<BytesN<32>, <BytesN<32> as TryFromVal<Env, Val>>::Error>, Result<Error, InvokeError>>
pub fn interchain_token_address(&self, token_id: &BytesN<32>) -> Address
pub fn try_interchain_token_address( &self, token_id: &BytesN<32>, ) -> Result<Result<Address, <Address as TryFromVal<Env, Val>>::Error>, Result<Error, InvokeError>>
pub fn token_manager_address(&self, token_id: &BytesN<32>) -> Address
pub fn try_token_manager_address( &self, token_id: &BytesN<32>, ) -> Result<Result<Address, <Address as TryFromVal<Env, Val>>::Error>, Result<Error, InvokeError>>
pub fn registered_token_address(&self, token_id: &BytesN<32>) -> Address
pub fn try_registered_token_address( &self, token_id: &BytesN<32>, ) -> Result<Result<Address, <Address as TryFromVal<Env, Val>>::Error>, Result<Error, InvokeError>>
pub fn deployed_token_manager(&self, token_id: &BytesN<32>) -> Address
pub fn try_deployed_token_manager( &self, token_id: &BytesN<32>, ) -> Result<Result<Address, <Address as TryFromVal<Env, Val>>::Error>, Result<Error, InvokeError>>
pub fn token_manager_type(&self, token_id: &BytesN<32>) -> TokenManagerType
pub fn try_token_manager_type( &self, token_id: &BytesN<32>, ) -> Result<Result<TokenManagerType, <TokenManagerType as TryFromVal<Env, Val>>::Error>, Result<Error, InvokeError>>
pub fn flow_limit(&self, token_id: &BytesN<32>) -> Option<i128>
pub fn try_flow_limit( &self, token_id: &BytesN<32>, ) -> Result<Result<Option<i128>, <Option<i128> as TryFromVal<Env, Val>>::Error>, Result<Error, InvokeError>>
pub fn flow_out_amount(&self, token_id: &BytesN<32>) -> i128
pub fn try_flow_out_amount( &self, token_id: &BytesN<32>, ) -> Result<Result<i128, <i128 as TryFromVal<Env, Val>>::Error>, Result<Error, InvokeError>>
pub fn flow_in_amount(&self, token_id: &BytesN<32>) -> i128
pub fn try_flow_in_amount( &self, token_id: &BytesN<32>, ) -> Result<Result<i128, <i128 as TryFromVal<Env, Val>>::Error>, Result<Error, InvokeError>>
pub fn set_flow_limit(&self, token_id: &BytesN<32>, flow_limit: &Option<i128>)
pub fn try_set_flow_limit( &self, token_id: &BytesN<32>, flow_limit: &Option<i128>, ) -> Result<Result<(), <() as TryFromVal<Env, Val>>::Error>, Result<ContractError, InvokeError>>
pub fn deploy_interchain_token( &self, caller: &Address, salt: &BytesN<32>, token_metadata: &TokenMetadata, initial_supply: &i128, minter: &Option<Address>, ) -> BytesN<32>
pub fn try_deploy_interchain_token( &self, caller: &Address, salt: &BytesN<32>, token_metadata: &TokenMetadata, initial_supply: &i128, minter: &Option<Address>, ) -> Result<Result<BytesN<32>, <BytesN<32> as TryFromVal<Env, Val>>::Error>, Result<ContractError, InvokeError>>
pub fn deploy_remote_interchain_token( &self, caller: &Address, salt: &BytesN<32>, destination_chain: &String, gas_token: &Option<Token>, ) -> BytesN<32>
pub fn try_deploy_remote_interchain_token( &self, caller: &Address, salt: &BytesN<32>, destination_chain: &String, gas_token: &Option<Token>, ) -> Result<Result<BytesN<32>, <BytesN<32> as TryFromVal<Env, Val>>::Error>, Result<ContractError, InvokeError>>
pub fn register_canonical_token(&self, token_address: &Address) -> BytesN<32>
pub fn try_register_canonical_token( &self, token_address: &Address, ) -> Result<Result<BytesN<32>, <BytesN<32> as TryFromVal<Env, Val>>::Error>, Result<ContractError, InvokeError>>
pub fn deploy_remote_canonical_token( &self, token_address: &Address, destination_chain: &String, spender: &Address, gas_token: &Option<Token>, ) -> BytesN<32>
pub fn try_deploy_remote_canonical_token( &self, token_address: &Address, destination_chain: &String, spender: &Address, gas_token: &Option<Token>, ) -> Result<Result<BytesN<32>, <BytesN<32> as TryFromVal<Env, Val>>::Error>, Result<ContractError, InvokeError>>
pub fn interchain_transfer( &self, caller: &Address, token_id: &BytesN<32>, destination_chain: &String, destination_address: &Bytes, amount: &i128, data: &Option<Bytes>, gas_token: &Option<Token>, )
pub fn try_interchain_transfer( &self, caller: &Address, token_id: &BytesN<32>, destination_chain: &String, destination_address: &Bytes, amount: &i128, data: &Option<Bytes>, gas_token: &Option<Token>, ) -> Result<Result<(), <() as TryFromVal<Env, Val>>::Error>, Result<ContractError, InvokeError>>
pub fn migrate_token( &self, token_id: &BytesN<32>, upgrader: &Address, new_version: &String, )
pub fn try_migrate_token( &self, token_id: &BytesN<32>, upgrader: &Address, new_version: &String, ) -> Result<Result<(), <() as TryFromVal<Env, Val>>::Error>, Result<ContractError, InvokeError>>
Auto Trait Implementations§
impl<'a> Freeze for InterchainTokenServiceClient<'a>
impl<'a> !RefUnwindSafe for InterchainTokenServiceClient<'a>
impl<'a> !Send for InterchainTokenServiceClient<'a>
impl<'a> !Sync for InterchainTokenServiceClient<'a>
impl<'a> Unpin for InterchainTokenServiceClient<'a>
impl<'a> !UnwindSafe for InterchainTokenServiceClient<'a>
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> 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