pub struct USDC;Expand description
Ergonomic accessors for USDC token deployments on well-known Aptos chains.
Combine with AptosTokenDeployment::amount for a fluent pricing API:
ⓘ
use r402_aptos::{AptosExact, USDC};
let tag = AptosExact::price_tag(pay_to, USDC::aptos_testnet().amount(1_000_000u64));Implementations§
Source§impl USDC
impl USDC
Sourcepub fn on(chain: AptosChainReference) -> Option<&'static AptosTokenDeployment>
pub fn on(chain: AptosChainReference) -> Option<&'static AptosTokenDeployment>
Looks up a USDC deployment by chain reference.
Sourcepub fn all() -> &'static [AptosTokenDeployment]
pub fn all() -> &'static [AptosTokenDeployment]
Returns all known USDC deployments on Aptos chains.
Sourcepub fn aptos() -> &'static AptosTokenDeployment
pub fn aptos() -> &'static AptosTokenDeployment
USDC on Aptos mainnet (aptos:1).
Sourcepub fn aptos_testnet() -> &'static AptosTokenDeployment
pub fn aptos_testnet() -> &'static AptosTokenDeployment
USDC on Aptos testnet (aptos:2).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for USDC
impl RefUnwindSafe for USDC
impl Send for USDC
impl Sync for USDC
impl Unpin for USDC
impl UnsafeUnpin for USDC
impl UnwindSafe for USDC
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