feat: 更新钱包状态管理,优化资产获取逻辑,支持资金和交易账户的分离
This commit is contained in:
@@ -13,7 +13,9 @@ export type TreatyBody<T> = T extends (...args: any[]) => any
|
||||
|
||||
export type DepositFiatData = Treaty.Data<typeof client.api.deposit.fiat.post>;
|
||||
|
||||
export type BalancesData = Treaty.Data<typeof client.api.asset.balances.get>;
|
||||
export type BalancesData = Treaty.Data<typeof client.api.wallet.balances.get>;
|
||||
|
||||
export type TotalAssetValue = Treaty.Data<typeof client.api.wallet.total_value.get>;
|
||||
|
||||
export type WithdrawBody = Omit<Parameters<typeof client.api.withdraw.post>[0], "assetCode" | "withdrawMethod"> & {
|
||||
assetCode: AssetCodeEnum;
|
||||
|
||||
Reference in New Issue
Block a user