feat: 赎回批量执行与仓位页体验优化

- 赎回:同一账户多市场合并为一笔交易,减少 Relayer 调用次数
- 仓位页:可赎回统计静默刷新,赎回按钮不再常驻 loading
- 账户导入表单、API、多语言等相关改动

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
WrBug
2026-02-14 00:20:41 +08:00
co-authored by Cursor
parent bd323fca35
commit cf2c8a611c
10 changed files with 597 additions and 53 deletions
+31
View File
@@ -46,6 +46,37 @@ export interface AccountImportRequest {
walletType?: string // 钱包类型:magic(邮箱/OAuth登录)或 safeMetaMask浏览器钱包)
}
/**
* 检查代理地址选项请求
*/
export interface CheckProxyOptionsRequest {
walletAddress: string // EOA 地址
privateKey?: string // 私钥(加密,私钥导入时提供)
mnemonic?: string // 助记词(加密,助记词导入时提供)
}
/**
* 代理地址选项信息
*/
export interface ProxyOption {
walletType: string // "magic" 或 "safe"
proxyAddress: string // 代理地址
descriptionKey: string // 说明文案的多语言 key
availableBalance: string // 可用余额
positionBalance: string // 仓位余额
totalBalance: string // 总余额
positionCount: number // 持仓数量
hasAssets: boolean // 是否有资产
error?: string // 获取失败时的错误信息
}
/**
* 检查代理地址选项响应
*/
export interface CheckProxyOptionsResponse {
options: ProxyOption[] // 代理地址选项列表
}
/**
* 账户更新请求
*/