pub struct SendAsset { /* private fields */ }Expand description
sendAsset: any token between any two balances of any two accounts, and the one transfer a
pooled account takes.
Implementations§
Source§impl SendAsset
impl SendAsset
Sourcepub fn new(
destination: Address,
source_dex: &str,
destination_dex: &str,
token: &str,
amount: Amount,
nonce: u64,
) -> SendAsset
pub fn new( destination: Address, source_dex: &str, destination_dex: &str, token: &str, amount: Amount, nonce: u64, ) -> SendAsset
token is NAME:0x<tokenId>, as spotMeta lists it.
Sourcepub fn usdc(
network: Network,
destination: Address,
source_dex: &str,
destination_dex: &str,
amount: Amount,
nonce: u64,
) -> SendAsset
pub fn usdc( network: Network, destination: Address, source_dex: &str, destination_dex: &str, amount: Amount, nonce: u64, ) -> SendAsset
USDC from one balance to another: to another account from spot (or, on a standard account, from the perp balance), or to the account itself to combine its two balances. USDC’s token id is the network’s own.
Sourcepub fn from_sub_account(self, sub_account: Address) -> SendAsset
pub fn from_sub_account(self, sub_account: Address) -> SendAsset
Sent from one of the account’s subaccounts rather than the account.
pub const fn amount(&self) -> &Amount
Trait Implementations§
impl Eq for SendAsset
impl StructuralPartialEq for SendAsset
Source§impl UserAction for SendAsset
impl UserAction for SendAsset
fn user_signed(&self) -> UserSigned<'_>
fn nonce(&self) -> u64
fn action(&self, network: Network) -> Map
fn wire(&self, network: Network) -> String
fn typed(&self, network: Network) -> TypedStruct<'_>
fn digest(&self, network: Network) -> [u8; 32]
fn wallet_json(&self, network: Network) -> String
fn body(&self, signature: &Signature, network: Network) -> String
Auto Trait Implementations§
impl Freeze for SendAsset
impl RefUnwindSafe for SendAsset
impl Send for SendAsset
impl Sync for SendAsset
impl Unpin for SendAsset
impl UnsafeUnpin for SendAsset
impl UnwindSafe for SendAsset
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.