pub struct MessageTransmitterContract<P: Provider<Ethereum>> { /* private fields */ }Expand description
The CCTP v1 Message Transmitter contract wrapper
Handles message verification and reception for cross-chain transfers.
Implementations§
Source§impl<P: Provider<Ethereum>> MessageTransmitterContract<P>
impl<P: Provider<Ethereum>> MessageTransmitterContract<P>
Sourcepub fn receive_message_transaction(
&self,
message: Bytes,
attestation: Bytes,
from_address: Address,
) -> TransactionRequest
pub fn receive_message_transaction( &self, message: Bytes, attestation: Bytes, from_address: Address, ) -> TransactionRequest
Create transaction request for receiving a cross-chain message with attestation
§Arguments
message- The message bytes from the source chainattestation- Circle’s attestation signature for the messagefrom_address- Address that will submit the transaction
Sourcepub async fn is_nonce_used(&self, nonce_hash: [u8; 32]) -> Result<bool, Error>
pub async fn is_nonce_used(&self, nonce_hash: [u8; 32]) -> Result<bool, Error>
Check if a message nonce has been used (anti-replay protection)
Queries the usedNonces mapping to determine if a nonce has already
been processed.
§Arguments
nonce_hash- The hash of the nonce to check (keccak256 of source domain + nonce)
Auto Trait Implementations§
impl<P> Freeze for MessageTransmitterContract<P>where
P: Freeze,
impl<P> RefUnwindSafe for MessageTransmitterContract<P>where
P: RefUnwindSafe,
impl<P> Send for MessageTransmitterContract<P>
impl<P> Sync for MessageTransmitterContract<P>
impl<P> Unpin for MessageTransmitterContract<P>where
P: Unpin,
impl<P> UnwindSafe for MessageTransmitterContract<P>where
P: UnwindSafe,
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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