pub struct USDM;Expand description
Ergonomic accessors for USDM (MegaUSD) token deployments on EVM chains.
ⓘ
use r402_evm::{Eip155Exact, USDM};
let tag = Eip155Exact::price_tag(pay_to, USDM::megaeth().amount(1_000_000_000_000_000_000u128), None);Implementations§
Source§impl USDM
impl USDM
Sourcepub fn on(
chain: &Eip155ChainReference,
) -> Option<&'static Eip155TokenDeployment>
pub fn on( chain: &Eip155ChainReference, ) -> Option<&'static Eip155TokenDeployment>
Looks up a USDM deployment by chain reference.
Sourcepub fn all() -> &'static [Eip155TokenDeployment]
pub fn all() -> &'static [Eip155TokenDeployment]
Returns all known USDM deployments.
Sourcepub fn megaeth() -> &'static Eip155TokenDeployment
pub fn megaeth() -> &'static Eip155TokenDeployment
USDM (MegaUSD) on MegaETH (eip155:4326).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for USDM
impl RefUnwindSafe for USDM
impl Send for USDM
impl Sync for USDM
impl Unpin for USDM
impl UnwindSafe for USDM
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
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