@subwallet/extension-base 1.3.19-0 → 1.3.20-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.
@@ -353,7 +353,7 @@ async function validationEvmDataTransactionMiddleware(koni, url, payload) {
353
353
  try {
354
354
  const gasLimit = transaction.gas || (await evmApi.api.eth.estimateGas(transaction));
355
355
  const id = (0, _getId.getId)();
356
- const feeInfo = await koni.feeService.subscribeChainFee(id, transaction.chain || '', 'evm');
356
+ const feeInfo = await koni.feeService.subscribeChainFee(id, networkKey, 'evm');
357
357
  const feeCombine = (0, _utils.combineEthFee)(feeInfo);
358
358
  if (transaction.maxFeePerGas) {
359
359
  estimateGas = new _bignumber.default(transaction.maxFeePerGas.toString()).multipliedBy(gasLimit).toFixed(0);
@@ -364,8 +364,11 @@ async function validationEvmDataTransactionMiddleware(koni, url, payload) {
364
364
  const maxFee = new _bignumber.default(feeCombine.maxFeePerGas); // TODO: Need review
365
365
 
366
366
  estimateGas = maxFee.multipliedBy(gasLimit).toFixed(0);
367
+ transaction.maxFeePerGas = feeCombine.maxFeePerGas;
368
+ transaction.maxPriorityFeePerGas = feeCombine.maxPriorityFeePerGas;
367
369
  } else if (feeCombine.gasPrice) {
368
370
  estimateGas = new _bignumber.default(feeCombine.gasPrice || 0).multipliedBy(gasLimit).toFixed(0);
371
+ transaction.maxPriorityFeePerGas = feeCombine.gasPrice;
369
372
  }
370
373
  }
371
374
  } catch (e) {
@@ -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.3.19-0'
16
+ version: '1.3.20-0'
17
17
  };
18
18
  exports.packageInfo = packageInfo;
@@ -272,7 +272,7 @@ const _TRANSFER_CHAIN_GROUP = {
272
272
  avail: ['kate', 'goldberg_testnet'],
273
273
  pendulum: ['pendulum', 'amplitude', 'amplitude_test', 'hydradx_main', 'bifrost', 'bifrost_dot'],
274
274
  centrifuge: ['centrifuge'],
275
- disable_transfer: ['invarch', 'crab', 'pangolin']
275
+ disable_transfer: ['crab', 'pangolin']
276
276
  };
277
277
  exports._TRANSFER_CHAIN_GROUP = _TRANSFER_CHAIN_GROUP;
278
278
  const _BALANCE_PARSING_CHAIN_GROUP = {
@@ -334,7 +334,7 @@ export async function validationEvmDataTransactionMiddleware(koni, url, payload)
334
334
  try {
335
335
  const gasLimit = transaction.gas || (await evmApi.api.eth.estimateGas(transaction));
336
336
  const id = getId();
337
- const feeInfo = await koni.feeService.subscribeChainFee(id, transaction.chain || '', 'evm');
337
+ const feeInfo = await koni.feeService.subscribeChainFee(id, networkKey, 'evm');
338
338
  const feeCombine = combineEthFee(feeInfo);
339
339
  if (transaction.maxFeePerGas) {
340
340
  estimateGas = new BigN(transaction.maxFeePerGas.toString()).multipliedBy(gasLimit).toFixed(0);
@@ -345,8 +345,11 @@ export async function validationEvmDataTransactionMiddleware(koni, url, payload)
345
345
  const maxFee = new BigN(feeCombine.maxFeePerGas); // TODO: Need review
346
346
 
347
347
  estimateGas = maxFee.multipliedBy(gasLimit).toFixed(0);
348
+ transaction.maxFeePerGas = feeCombine.maxFeePerGas;
349
+ transaction.maxPriorityFeePerGas = feeCombine.maxPriorityFeePerGas;
348
350
  } else if (feeCombine.gasPrice) {
349
351
  estimateGas = new BigN(feeCombine.gasPrice || 0).multipliedBy(gasLimit).toFixed(0);
352
+ transaction.maxPriorityFeePerGas = feeCombine.gasPrice;
350
353
  }
351
354
  }
352
355
  } catch (e) {
package/package.json CHANGED
@@ -17,7 +17,7 @@
17
17
  "./cjs/detectPackage.js"
18
18
  ],
19
19
  "type": "module",
20
- "version": "1.3.19-0",
20
+ "version": "1.3.20-0",
21
21
  "main": "./cjs/index.js",
22
22
  "module": "./index.js",
23
23
  "types": "./index.d.ts",
@@ -2564,10 +2564,10 @@
2564
2564
  "@sora-substrate/type-definitions": "^1.17.7",
2565
2565
  "@substrate/connect": "^0.8.9",
2566
2566
  "@subwallet/chain-list": "0.2.99-beta.14",
2567
- "@subwallet/extension-base": "^1.3.19-0",
2568
- "@subwallet/extension-chains": "^1.3.19-0",
2569
- "@subwallet/extension-dapp": "^1.3.19-0",
2570
- "@subwallet/extension-inject": "^1.3.19-0",
2567
+ "@subwallet/extension-base": "^1.3.20-0",
2568
+ "@subwallet/extension-chains": "^1.3.20-0",
2569
+ "@subwallet/extension-dapp": "^1.3.20-0",
2570
+ "@subwallet/extension-inject": "^1.3.20-0",
2571
2571
  "@subwallet/keyring": "^0.1.8-beta.0",
2572
2572
  "@subwallet/ui-keyring": "^0.1.8-beta.0",
2573
2573
  "@ton/core": "^0.56.3",
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.3.19-0'
10
+ version: '1.3.20-0'
11
11
  };
@@ -254,7 +254,7 @@ export const _TRANSFER_CHAIN_GROUP = {
254
254
  avail: ['kate', 'goldberg_testnet'],
255
255
  pendulum: ['pendulum', 'amplitude', 'amplitude_test', 'hydradx_main', 'bifrost', 'bifrost_dot'],
256
256
  centrifuge: ['centrifuge'],
257
- disable_transfer: ['invarch', 'crab', 'pangolin']
257
+ disable_transfer: ['crab', 'pangolin']
258
258
  };
259
259
  export const _BALANCE_PARSING_CHAIN_GROUP = {
260
260
  bobabeam: ['bobabeam', 'bobabase']