pub struct AxelarGateway;
Implementations§
Source§impl AxelarGateway
impl AxelarGateway
pub const fn spec_xdr_initialize() -> [u8; 264]
Source§impl AxelarGateway
impl AxelarGateway
pub const fn spec_xdr_call_contract() -> [u8; 140]
Source§impl AxelarGateway
impl AxelarGateway
pub const fn spec_xdr_is_message_approved() -> [u8; 176]
Source§impl AxelarGateway
impl AxelarGateway
pub const fn spec_xdr_is_message_executed() -> [u8; 92]
Source§impl AxelarGateway
impl AxelarGateway
pub const fn spec_xdr_validate_message() -> [u8; 164]
Source§impl AxelarGateway
impl AxelarGateway
pub const fn spec_xdr_approve_messages() -> [u8; 136]
Source§impl AxelarGateway
impl AxelarGateway
pub const fn spec_xdr_rotate_signers() -> [u8; 176]
Source§impl AxelarGateway
impl AxelarGateway
pub const fn spec_xdr_transfer_operatorship() -> [u8; 100]
Source§impl AxelarGateway
impl AxelarGateway
pub const fn spec_xdr_operator() -> [u8; 56]
Source§impl AxelarGateway
impl AxelarGateway
pub const fn spec_xdr_epoch() -> [u8; 56]
Source§impl AxelarGateway
impl AxelarGateway
pub const fn spec_xdr_version() -> [u8; 32]
Source§impl AxelarGateway
impl AxelarGateway
pub const fn spec_xdr_upgrade() -> [u8; 92]
Source§impl AxelarGateway
impl AxelarGateway
pub const fn spec_xdr_transfer_ownership() -> [u8; 96]
Source§impl AxelarGateway
impl AxelarGateway
pub const fn spec_xdr_owner() -> [u8; 56]
Trait Implementations§
Source§impl AxelarGatewayInterface for AxelarGateway
impl AxelarGatewayInterface for AxelarGateway
Source§fn initialize(
env: Env,
owner: Address,
operator: Address,
domain_separator: BytesN<32>,
minimum_rotation_delay: u64,
previous_signers_retention: u64,
initial_signers: Vec<WeightedSigners>,
) -> Result<(), GatewayError>
fn initialize( env: Env, owner: Address, operator: Address, domain_separator: BytesN<32>, minimum_rotation_delay: u64, previous_signers_retention: u64, initial_signers: Vec<WeightedSigners>, ) -> Result<(), GatewayError>
Initialize the gateway
Source§fn call_contract(
env: Env,
caller: Address,
destination_chain: String,
destination_address: String,
payload: Bytes,
)
fn call_contract( env: Env, caller: Address, destination_chain: String, destination_address: String, payload: Bytes, )
Call a contract on another chain with the given payload. The destination address can validate the contract call on the destination gateway.
Source§fn is_message_approved(
env: Env,
source_chain: String,
message_id: String,
source_address: String,
contract_address: Address,
payload_hash: BytesN<32>,
) -> bool
fn is_message_approved( env: Env, source_chain: String, message_id: String, source_address: String, contract_address: Address, payload_hash: BytesN<32>, ) -> bool
Return true if a contract call with the given payload BytesN<32> and source caller info is approved.
Source§fn is_message_executed(
env: Env,
source_chain: String,
message_id: String,
) -> bool
fn is_message_executed( env: Env, source_chain: String, message_id: String, ) -> bool
Return true if a contract call with the given payload BytesN<32> and source caller info has been executed.
Source§fn validate_message(
env: Env,
caller: Address,
source_chain: String,
message_id: String,
source_address: String,
payload_hash: BytesN<32>,
) -> bool
fn validate_message( env: Env, caller: Address, source_chain: String, message_id: String, source_address: String, payload_hash: BytesN<32>, ) -> bool
Validate if a contract call with the given payload BytesN<32> and source caller info is approved,
preventing re-validation (i.e distinct contract calls can be validated at most once).
caller
must be the intended destination_address
of the contract call for validation to succeed.fn approve_messages( env: Env, messages: Vec<Message>, proof: Proof, ) -> Result<(), GatewayError>
fn rotate_signers( env: Env, signers: WeightedSigners, proof: Proof, bypass_rotation_delay: bool, ) -> Result<(), GatewayError>
fn transfer_operatorship( env: Env, new_operator: Address, ) -> Result<(), GatewayError>
fn operator(env: &Env) -> Result<Address, GatewayError>
fn epoch(env: &Env) -> Result<u64, GatewayError>
fn version(env: Env) -> String
fn upgrade(env: Env, new_wasm_hash: BytesN<32>) -> Result<(), GatewayError>
fn transfer_ownership(env: Env, new_owner: Address) -> Result<(), GatewayError>
fn owner(env: &Env) -> Result<Address, GatewayError>
Auto Trait Implementations§
impl Freeze for AxelarGateway
impl RefUnwindSafe for AxelarGateway
impl Send for AxelarGateway
impl Sync for AxelarGateway
impl Unpin for AxelarGateway
impl UnwindSafe for AxelarGateway
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.