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 validate_destination(
&self,
destination_chain_id: u64,
destination_address: impl Into<String>,
) -> Result<WithdrawDestinationValidation>
pub async fn validate_destination( &self, destination_chain_id: u64, destination_address: impl Into<String>, ) -> Result<WithdrawDestinationValidation>
Check one external-chain destination without creating a withdraw.
Use for form feedback before Trading → external submission; create RPCs remain authoritative.
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
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more