60p82u21t54k 1.1.47 → 1.1.48

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2500,20 +2500,21 @@ const getGetBankCardDataResponse = (raw) => {
2500
2500
  };
2501
2501
  })) != null ? _f : [],
2502
2502
  cryptoAccount: (_h = (_g = raw.mdAccountCrypto) == null ? void 0 : _g.map((item) => {
2503
+ var _a2, _b2, _c2, _d2;
2503
2504
  return {
2504
- id: item.crypto_id,
2505
- type: item.type,
2506
- name: item.crypto_name,
2505
+ id: item.id,
2506
+ name: getCryptoName((_b2 = (_a2 = raw.mdCryptoDetail) == null ? void 0 : _a2.cryptoNetworks) != null ? _b2 : [], (_c2 = item.cn_id) != null ? _c2 : 0),
2507
+ networkId: (_d2 = item.cn_id) != null ? _d2 : 0,
2507
2508
  address: item.address
2508
2509
  };
2509
2510
  })) != null ? _h : [],
2510
2511
  cryptoDetail: {
2511
2512
  limit: (_j = (_i = raw.mdCryptoDetail) == null ? void 0 : _i.cryptolimit) != null ? _j : 0,
2512
- protocol: (_m = (_l = (_k = raw.mdCryptoDetail) == null ? void 0 : _k.cryptoprotocol) == null ? void 0 : _l.map((item) => {
2513
+ network: (_m = (_l = (_k = raw.mdCryptoDetail) == null ? void 0 : _k.cryptoNetworks) == null ? void 0 : _l.map((item) => {
2513
2514
  return {
2514
2515
  id: item.id,
2515
- name: item.name,
2516
- status: item.status == "1"
2516
+ name: `${item.name} (${item.value.toUpperCase()})`,
2517
+ value: item.value
2517
2518
  };
2518
2519
  })) != null ? _m : []
2519
2520
  },
@@ -2527,6 +2528,12 @@ const getGetBankCardDataResponse = (raw) => {
2527
2528
  bankCardLimit: raw.bankcardlimit
2528
2529
  };
2529
2530
  };
2531
+ const getCryptoName = (networkList, networkId) => {
2532
+ if (!networkList) return "";
2533
+ const targetIndex = networkList.findIndex((network) => network.id == networkId);
2534
+ const target = networkList[targetIndex];
2535
+ return `${target.name} (${target.value.toUpperCase()})`;
2536
+ };
2530
2537
  const modifyGetBankCardDataRequest = (requests) => {
2531
2538
  return requests;
2532
2539
  };
@@ -4848,12 +4855,12 @@ const getGetCryptoListResponse = (raw) => {
4848
4855
  coinList: (_b = raw.data.map((coin) => {
4849
4856
  var _a2;
4850
4857
  return {
4851
- name: coin.coin,
4852
- protocol: (_a2 = coin.supported_protocols.map((protocol) => {
4858
+ id: coin.coin_id,
4859
+ name: coin.coin_name,
4860
+ network: (_a2 = coin.network_support.map((network) => {
4853
4861
  return {
4854
- name: protocol.protocol,
4855
- cryptoId: protocol.crypto_id,
4856
- networkId: protocol.network_id
4862
+ id: network.network_id,
4863
+ name: network.network_name
4857
4864
  };
4858
4865
  })) != null ? _a2 : []
4859
4866
  };