@subwallet/extension-base 1.1.27-0 → 1.1.28-0

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.
@@ -10,7 +10,8 @@ exports.PREDEFINED_STAKING_POOL = exports.MAX_NOMINATIONS = void 0;
10
10
  const PREDEFINED_STAKING_POOL = {
11
11
  kusama: 80,
12
12
  polkadot: 39,
13
- vara_network: 29
13
+ vara_network: 29,
14
+ aleph: 55
14
15
  };
15
16
  exports.PREDEFINED_STAKING_POOL = PREDEFINED_STAKING_POOL;
16
17
  const MAX_NOMINATIONS = '16';
@@ -13,6 +13,6 @@ const packageInfo = {
13
13
  name: '@subwallet/extension-base',
14
14
  path: typeof __dirname === 'string' ? __dirname : 'auto',
15
15
  type: 'cjs',
16
- version: '1.1.27-0'
16
+ version: '1.1.28-0'
17
17
  };
18
18
  exports.packageInfo = packageInfo;
@@ -18,6 +18,7 @@ var _eventParser = require("@subwallet/extension-base/services/transaction-servi
18
18
  var _helpers = require("@subwallet/extension-base/services/transaction-service/helpers");
19
19
  var _utils2 = require("@subwallet/extension-base/services/transaction-service/utils");
20
20
  var _helpers2 = require("@subwallet/extension-base/services/wallet-connect-service/helpers");
21
+ var _utils3 = require("@subwallet/extension-base/utils");
21
22
  var _eth = require("@subwallet/extension-base/utils/eth");
22
23
  var _mergeTransactionAndSignature = require("@subwallet/extension-base/utils/eth/mergeTransactionAndSignature");
23
24
  var _parseTransaction = require("@subwallet/extension-base/utils/eth/parseTransaction");
@@ -320,15 +321,16 @@ class TransactionService {
320
321
  transactionToHistories(id, startBlock, nonce, eventLogs) {
321
322
  const transaction = this.getTransaction(id);
322
323
  const extrinsicType = transaction.extrinsicType;
324
+ const formattedTransactionAddress = (0, _utils3.reformatAddress)(transaction.address);
323
325
  const historyItem = {
324
326
  origin: 'app',
325
327
  chain: transaction.chain,
326
328
  direction: _KoniTypes.TransactionDirection.SEND,
327
329
  type: transaction.extrinsicType,
328
- from: transaction.address,
330
+ from: formattedTransactionAddress,
329
331
  to: '',
330
332
  chainType: transaction.chainType,
331
- address: transaction.address,
333
+ address: formattedTransactionAddress,
332
334
  status: transaction.status,
333
335
  transactionId: transaction.id,
334
336
  extrinsicHash: transaction.extrinsicHash,
@@ -24,6 +24,9 @@ function getBlockExplorerAccountRoute(explorerLink) {
24
24
  if (explorerLink.includes('subscan.io')) {
25
25
  return 'account';
26
26
  }
27
+ if (explorerLink.includes('3dpscan.io')) {
28
+ return 'account';
29
+ }
27
30
  return 'address';
28
31
  }
29
32
  function getBlockExplorerTxRoute(chainInfo) {
@@ -4,6 +4,7 @@
4
4
  export const PREDEFINED_STAKING_POOL = {
5
5
  kusama: 80,
6
6
  polkadot: 39,
7
- vara_network: 29
7
+ vara_network: 29,
8
+ aleph: 55
8
9
  };
9
10
  export const MAX_NOMINATIONS = '16';
package/package.json CHANGED
@@ -17,7 +17,7 @@
17
17
  "./cjs/detectPackage.js"
18
18
  ],
19
19
  "type": "module",
20
- "version": "1.1.27-0",
20
+ "version": "1.1.28-0",
21
21
  "main": "./cjs/index.js",
22
22
  "module": "./index.js",
23
23
  "types": "./index.d.ts",
@@ -1382,11 +1382,11 @@
1382
1382
  "@reduxjs/toolkit": "^1.9.1",
1383
1383
  "@sora-substrate/type-definitions": "^1.17.7",
1384
1384
  "@substrate/connect": "^0.7.26",
1385
- "@subwallet/chain-list": "^0.2.30",
1386
- "@subwallet/extension-base": "^1.1.27-0",
1387
- "@subwallet/extension-chains": "^1.1.27-0",
1388
- "@subwallet/extension-dapp": "^1.1.27-0",
1389
- "@subwallet/extension-inject": "^1.1.27-0",
1385
+ "@subwallet/chain-list": "0.2.31",
1386
+ "@subwallet/extension-base": "^1.1.28-0",
1387
+ "@subwallet/extension-chains": "^1.1.28-0",
1388
+ "@subwallet/extension-dapp": "^1.1.28-0",
1389
+ "@subwallet/extension-inject": "^1.1.28-0",
1390
1390
  "@subwallet/keyring": "^0.1.1",
1391
1391
  "@subwallet/ui-keyring": "^0.1.1",
1392
1392
  "@walletconnect/sign-client": "^2.8.4",
package/packageInfo.js CHANGED
@@ -7,5 +7,5 @@ export const packageInfo = {
7
7
  name: '@subwallet/extension-base',
8
8
  path: (import.meta && import.meta.url) ? new URL(import.meta.url).pathname.substring(0, new URL(import.meta.url).pathname.lastIndexOf('/') + 1) : 'auto',
9
9
  type: 'esm',
10
- version: '1.1.27-0'
10
+ version: '1.1.28-0'
11
11
  };
@@ -14,6 +14,7 @@ import { parseTransferEventLogs, parseXcmEventLogs } from '@subwallet/extension-
14
14
  import { getBaseTransactionInfo, getTransactionId, isSubstrateTransaction } from '@subwallet/extension-base/services/transaction-service/helpers';
15
15
  import { getExplorerLink, parseTransactionData } from '@subwallet/extension-base/services/transaction-service/utils';
16
16
  import { isWalletConnectRequest } from '@subwallet/extension-base/services/wallet-connect-service/helpers';
17
+ import { reformatAddress } from '@subwallet/extension-base/utils';
17
18
  import { anyNumberToBN, recalculateGasPrice } from '@subwallet/extension-base/utils/eth';
18
19
  import { mergeTransactionAndSignature } from '@subwallet/extension-base/utils/eth/mergeTransactionAndSignature';
19
20
  import { isContractAddress, parseContractInput } from '@subwallet/extension-base/utils/eth/parseTransaction';
@@ -313,15 +314,16 @@ export default class TransactionService {
313
314
  transactionToHistories(id, startBlock, nonce, eventLogs) {
314
315
  const transaction = this.getTransaction(id);
315
316
  const extrinsicType = transaction.extrinsicType;
317
+ const formattedTransactionAddress = reformatAddress(transaction.address);
316
318
  const historyItem = {
317
319
  origin: 'app',
318
320
  chain: transaction.chain,
319
321
  direction: TransactionDirection.SEND,
320
322
  type: transaction.extrinsicType,
321
- from: transaction.address,
323
+ from: formattedTransactionAddress,
322
324
  to: '',
323
325
  chainType: transaction.chainType,
324
- address: transaction.address,
326
+ address: formattedTransactionAddress,
325
327
  status: transaction.status,
326
328
  transactionId: transaction.id,
327
329
  extrinsicHash: transaction.extrinsicHash,
@@ -18,6 +18,9 @@ function getBlockExplorerAccountRoute(explorerLink) {
18
18
  if (explorerLink.includes('subscan.io')) {
19
19
  return 'account';
20
20
  }
21
+ if (explorerLink.includes('3dpscan.io')) {
22
+ return 'account';
23
+ }
21
24
  return 'address';
22
25
  }
23
26
  function getBlockExplorerTxRoute(chainInfo) {