pub struct StaticTokenSource { /* private fields */ }Expand description
In-memory token source for testing.
Implementations§
Trait Implementations§
Source§impl DataProvider for StaticTokenSource
impl DataProvider for StaticTokenSource
Source§fn resolve_token(
&self,
chain_id: u64,
address: &str,
) -> Pin<Box<dyn Future<Output = Option<TokenMeta>> + Send + '_>>
fn resolve_token( &self, chain_id: u64, address: &str, ) -> Pin<Box<dyn Future<Output = Option<TokenMeta>> + Send + '_>>
Resolve token metadata (symbol, decimals, name) for a given chain and address.
Source§fn resolve_ens_name(
&self,
address: &str,
chain_id: u64,
types: Option<&[String]>,
) -> Pin<Box<dyn Future<Output = Option<String>> + Send + '_>>
fn resolve_ens_name( &self, address: &str, chain_id: u64, types: Option<&[String]>, ) -> Pin<Box<dyn Future<Output = Option<String>> + Send + '_>>
Resolve an ENS name for an address. Read more
Source§fn resolve_local_name(
&self,
address: &str,
chain_id: u64,
types: Option<&[String]>,
) -> Pin<Box<dyn Future<Output = Option<String>> + Send + '_>>
fn resolve_local_name( &self, address: &str, chain_id: u64, types: Option<&[String]>, ) -> Pin<Box<dyn Future<Output = Option<String>> + Send + '_>>
Resolve a local/contact name for an address. Read more
Auto Trait Implementations§
impl Freeze for StaticTokenSource
impl RefUnwindSafe for StaticTokenSource
impl Send for StaticTokenSource
impl Sync for StaticTokenSource
impl Unpin for StaticTokenSource
impl UnsafeUnpin for StaticTokenSource
impl UnwindSafe for StaticTokenSource
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