feat: 更新钱包状态管理,优化资产获取逻辑,支持资金和交易账户的分离

This commit is contained in:
2025-12-24 05:28:49 +07:00
parent 64b455dfa6
commit dd1dbd485f
10 changed files with 109 additions and 40 deletions

View File

@@ -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;