pub struct AxelarExample;Implementations§
Source§impl AxelarExample
impl AxelarExample
pub const fn spec_xdr_interchain_token_service() -> [u8; 48]
Source§impl AxelarExample
impl AxelarExample
pub const fn spec_xdr_execute_with_interchain_token() -> [u8; 236]
Source§impl AxelarExample
impl AxelarExample
pub const fn spec_xdr_gateway() -> [u8; 32]
Source§impl AxelarExample
impl AxelarExample
pub const fn spec_xdr_execute() -> [u8; 192]
Source§impl AxelarExample
impl AxelarExample
Source§impl AxelarExample
impl AxelarExample
pub const fn spec_xdr___constructor() -> [u8; 116]
Source§impl AxelarExample
impl AxelarExample
pub const fn spec_xdr_gas_service() -> [u8; 36]
Source§impl AxelarExample
impl AxelarExample
pub const fn spec_xdr_send() -> [u8; 168]
Source§impl AxelarExample
impl AxelarExample
pub const fn spec_xdr_send_token() -> [u8; 272]
Trait Implementations§
Source§impl AxelarExampleInterface for AxelarExample
impl AxelarExampleInterface for AxelarExample
Source§impl AxelarExecutableInterface for AxelarExample
impl AxelarExecutableInterface for AxelarExample
Source§fn execute(
env: &Env,
source_chain: String,
message_id: String,
source_address: String,
payload: Bytes,
) -> Result<(), <AxelarExample as CustomAxelarExecutable>::Error>
fn execute( env: &Env, source_chain: String, message_id: String, source_address: String, payload: Bytes, ) -> Result<(), <AxelarExample as CustomAxelarExecutable>::Error>
Execute a cross-chain message with the given payload. This function must validate that the message is received from the trusted gateway.
Source§impl CustomAxelarExecutable for AxelarExample
impl CustomAxelarExecutable for AxelarExample
type Error = AxelarExampleError
Source§fn __gateway(env: &Env) -> Address
fn __gateway(env: &Env) -> Address
Custom implementation of the gateway query function that’s called by
AxelarExecutableInterface::gateway.Source§fn __execute(
env: &Env,
source_chain: String,
message_id: String,
source_address: String,
payload: Bytes,
) -> Result<(), Self::Error>
fn __execute( env: &Env, source_chain: String, message_id: String, source_address: String, payload: Bytes, ) -> Result<(), Self::Error>
Custom implementation of the execute function that’s called by
AxelarExecutableInterface::execute after validation has succeeded.
It is guaranteed that the validate_message function has already been called when this function is executed.Source§impl CustomInterchainTokenExecutable for AxelarExample
impl CustomInterchainTokenExecutable for AxelarExample
Source§type Error = AxelarExampleError
type Error = AxelarExampleError
The type of error the
CustomInterchainTokenExecutable::__authorized_execute_with_token function returns. Generally matches the error type of the whole contract.Source§fn __interchain_token_service(env: &Env) -> Address
fn __interchain_token_service(env: &Env) -> Address
Returns the address of the interchain token service contract that is authorized to execute arbitrary payloads on this contract
The custom execution logic that takes in an arbitrary payload and a token.
At the time this function is called, the calling address has already been verified as the correct interchain token service contract.
Source§impl InterchainTokenExecutableInterface for AxelarExample
impl InterchainTokenExecutableInterface for AxelarExample
Source§fn interchain_token_service(env: &Env) -> Address
fn interchain_token_service(env: &Env) -> Address
Returns the address of the interchain token service contract that is authorized to execute arbitrary payloads on this contract
Auto Trait Implementations§
impl Freeze for AxelarExample
impl RefUnwindSafe for AxelarExample
impl Send for AxelarExample
impl Sync for AxelarExample
impl Unpin for AxelarExample
impl UnwindSafe for AxelarExample
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