pub struct WithdrawService { /* private fields */ }Implementations§
Source§impl WithdrawService
impl WithdrawService
pub fn new(ctx: ServiceContext) -> Self
Sourcepub fn prepare_api_key_to_funding(
&self,
params: CreateApiKeyTradingWithdrawParams,
) -> Result<PreparedTradingWithdraw>
pub fn prepare_api_key_to_funding( &self, params: CreateApiKeyTradingWithdrawParams, ) -> Result<PreparedTradingWithdraw>
Build and API-key sign a complete Trading-to-Funding payload.
Persist the returned value before submission and reuse it unchanged after an outcome-unknown transport error.
Sourcepub fn prepare_api_key_to_external_chain(
&self,
params: CreateApiKeyTradingWithdrawParams,
destination_chain_id: u64,
) -> Result<PreparedTradingWithdraw>
pub fn prepare_api_key_to_external_chain( &self, params: CreateApiKeyTradingWithdrawParams, destination_chain_id: u64, ) -> Result<PreparedTradingWithdraw>
Build and API-key sign a complete Trading-to-external-chain payload.
Sourcepub async fn submit_prepared(
&self,
prepared: &PreparedTradingWithdraw,
) -> Result<WithdrawIntentResult>
pub async fn submit_prepared( &self, prepared: &PreparedTradingWithdraw, ) -> Result<WithdrawIntentResult>
Submit an already prepared request without rebuilding signed fields.
Sourcepub async fn create_api_key_to_funding(
&self,
params: CreateApiKeyTradingWithdrawParams,
) -> Result<WithdrawIntentResult>
pub async fn create_api_key_to_funding( &self, params: CreateApiKeyTradingWithdrawParams, ) -> Result<WithdrawIntentResult>
Build, API-key sign, and submit a Trading-to-Funding payload unchanged.
Sourcepub async fn create_api_key_to_external_chain(
&self,
params: CreateApiKeyTradingWithdrawParams,
destination_chain_id: u64,
) -> Result<WithdrawIntentResult>
pub async fn create_api_key_to_external_chain( &self, params: CreateApiKeyTradingWithdrawParams, destination_chain_id: u64, ) -> Result<WithdrawIntentResult>
Build, API-key sign, and submit a Trading-to-external-chain payload unchanged.
Sourcepub async fn create_to_funding(
&self,
params: CreateTradingWithdrawParams,
) -> Result<WithdrawIntentResult>
pub async fn create_to_funding( &self, params: CreateTradingWithdrawParams, ) -> Result<WithdrawIntentResult>
Withdraw from trading to funding. Amount must be an crate::types::AssetAmount.
Sourcepub async fn create_to_external_chain(
&self,
params: CreateTradingWithdrawParams,
destination_chain_id: u64,
) -> Result<WithdrawIntentResult>
pub async fn create_to_external_chain( &self, params: CreateTradingWithdrawParams, destination_chain_id: u64, ) -> Result<WithdrawIntentResult>
Withdraw from trading to an external chain. Amount must be an AssetAmount.
Sourcepub async fn create_wallet_trading_withdraw(
&self,
params: CreateWalletTradingWithdrawParams,
) -> Result<WithdrawIntentResult>
pub async fn create_wallet_trading_withdraw( &self, params: CreateWalletTradingWithdrawParams, ) -> Result<WithdrawIntentResult>
Wallet-signed trading withdraw. Amount must be an AssetAmount.
Trait Implementations§
Source§impl Clone for WithdrawService
impl Clone for WithdrawService
Source§fn clone(&self) -> WithdrawService
fn clone(&self) -> WithdrawService
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !Freeze for WithdrawService
impl !RefUnwindSafe for WithdrawService
impl !UnwindSafe for WithdrawService
impl Send for WithdrawService
impl Sync for WithdrawService
impl Unpin for WithdrawService
impl UnsafeUnpin for WithdrawService
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