This commit is contained in:
sion
2026-04-05 23:28:38 +08:00
parent 0c66b3725f
commit da0f9d6f5e
21 changed files with 640 additions and 394 deletions

View File

@@ -185,6 +185,7 @@ class AssetProvider extends ChangeNotifier {
Future<ApiResponse<Map<String, dynamic>>> withdraw({
required String amount,
required String withdrawAddress,
String? network,
String? withdrawContact,
String? remark,
}) async {
@@ -192,6 +193,7 @@ class AssetProvider extends ChangeNotifier {
final response = await _fundService.withdraw(
amount: amount,
withdrawAddress: withdrawAddress,
network: network,
withdrawContact: withdrawContact,
remark: remark,
);
@@ -244,6 +246,19 @@ class AssetProvider extends ChangeNotifier {
}
}
/// 获取可用提现网络列表
Future<List<String>> getWalletNetworks() async {
try {
final response = await _fundService.getWalletNetworks();
if (response.success) {
return response.data ?? [];
}
return [];
} catch (_) {
return [];
}
}
/// 刷新所有资产数据
Future<void> refreshAll({bool force = false}) async {
await Future.wait([