@subwallet/extension-base 1.3.9-0 → 1.3.10-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.
- package/cjs/packageInfo.js +1 -1
- package/cjs/services/chain-service/constants.js +2 -2
- package/cjs/services/chain-service/health-check/utils/new-utils/asset-asset-validate.js +1 -1
- package/cjs/services/swap-service/handler/asset-hub/utils.js +1 -0
- package/koni/api/staking/bonding/utils.d.ts +1 -0
- package/package.json +17 -17
- package/packageInfo.js +1 -1
- package/services/chain-service/constants.js +2 -2
- package/services/chain-service/health-check/utils/new-utils/asset-asset-validate.js +1 -1
- package/services/earning-service/handlers/native-staking/relay-chain.d.ts +1 -0
- package/services/earning-service/handlers/special.d.ts +1 -0
- package/services/earning-service/utils/index.d.ts +1 -0
- package/services/swap-service/handler/asset-hub/utils.js +1 -0
- package/types/balance/index.d.ts +1 -0
- package/types/yield/info/pallet.d.ts +1 -0
- package/utils/index.d.ts +1 -0
package/cjs/packageInfo.js
CHANGED
|
@@ -263,12 +263,12 @@ const _TRANSFER_CHAIN_GROUP = {
|
|
|
263
263
|
kintsugi: ['kintsugi', 'kintsugi_test', 'interlay', 'mangatax_para'],
|
|
264
264
|
genshiro: ['genshiro_testnet', 'genshiro', 'equilibrium_parachain'],
|
|
265
265
|
// crab: ['crab', 'pangolin'],
|
|
266
|
-
bitcountry: ['pioneer', 'bitcountry'
|
|
266
|
+
bitcountry: ['pioneer', 'bitcountry'],
|
|
267
267
|
statemine: ['statemint', 'statemine', 'darwinia2', 'astar', 'shiden', 'shibuya', 'parallel', 'liberland', 'liberlandTest', 'dentnet', 'dbcchain'],
|
|
268
268
|
riochain: ['riochain'],
|
|
269
269
|
sora_substrate: ['sora_substrate'],
|
|
270
270
|
avail: ['kate', 'goldberg_testnet'],
|
|
271
|
-
pendulum: ['pendulum', 'amplitude', 'amplitude_test', 'hydradx_main'],
|
|
271
|
+
pendulum: ['pendulum', 'amplitude', 'amplitude_test', 'hydradx_main', 'bifrost', 'bifrost_dot'],
|
|
272
272
|
centrifuge: ['centrifuge'],
|
|
273
273
|
disable_transfer: ['invarch', 'crab', 'pangolin']
|
|
274
274
|
};
|
|
@@ -80,7 +80,7 @@ function validateNativeLocalTransferMetadata(chainAsset) {
|
|
|
80
80
|
throw new Error(`Asset ${chainAsset.slug} is lack of metadata`);
|
|
81
81
|
}
|
|
82
82
|
const moonbeamGroup = ['moonbeam, moonbase, moonriver'];
|
|
83
|
-
const onChainInfoLocalGroup = [_constants._TRANSFER_CHAIN_GROUP.centrifuge, ..._constants._TRANSFER_CHAIN_GROUP.bitcountry, ..._constants._TRANSFER_CHAIN_GROUP.acala, ..._constants._TRANSFER_CHAIN_GROUP.kintsugi, 'pendulum', 'amplitude'];
|
|
83
|
+
const onChainInfoLocalGroup = [_constants._TRANSFER_CHAIN_GROUP.centrifuge, ..._constants._TRANSFER_CHAIN_GROUP.bitcountry, ..._constants._TRANSFER_CHAIN_GROUP.acala, ..._constants._TRANSFER_CHAIN_GROUP.kintsugi, 'pendulum', 'amplitude', 'bifrost', 'bifrost_dot'];
|
|
84
84
|
const onChainInfoNativeGroup = [_constants._TRANSFER_CHAIN_GROUP.centrifuge, ..._constants._TRANSFER_CHAIN_GROUP.acala, ..._constants._TRANSFER_CHAIN_GROUP.kintsugi];
|
|
85
85
|
const assetIdLocalGroup = [..._constants._TRANSFER_CHAIN_GROUP.statemine, ..._constants._TRANSFER_CHAIN_GROUP.genshiro, ...moonbeamGroup, 'hydradx'];
|
|
86
86
|
const assetIdNativeGroup = [..._constants._TRANSFER_CHAIN_GROUP.sora_substrate, 'hydradx'];
|
|
@@ -14,6 +14,7 @@ var _bignumber = _interopRequireDefault(require("bignumber.js"));
|
|
|
14
14
|
const _getPoolInfo = async (api, asset1, asset2) => {
|
|
15
15
|
const assetLocation1 = (0, _utils._getXcmAssetMultilocation)(asset1);
|
|
16
16
|
const assetLocation2 = (0, _utils._getXcmAssetMultilocation)(asset2);
|
|
17
|
+
// @ts-ignore - Type auto detect incorrect
|
|
17
18
|
const rs = await api.call.assetConversionApi.getReserves(assetLocation1, assetLocation2);
|
|
18
19
|
if (!rs) {
|
|
19
20
|
return ['0', '0'];
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="bn.js" />
|
|
1
2
|
import { _ChainInfo } from '@subwallet/chain-list/types';
|
|
2
3
|
import { NominationInfo, NominatorMetadata, StakingType, UnstakingInfo } from '@subwallet/extension-base/background/KoniTypes';
|
|
3
4
|
import { _SubstrateInflationParams } from '@subwallet/extension-base/services/chain-service/constants';
|
package/package.json
CHANGED
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"./cjs/detectPackage.js"
|
|
18
18
|
],
|
|
19
19
|
"type": "module",
|
|
20
|
-
"version": "1.3.
|
|
20
|
+
"version": "1.3.10-0",
|
|
21
21
|
"main": "./cjs/index.js",
|
|
22
22
|
"module": "./index.js",
|
|
23
23
|
"types": "./index.d.ts",
|
|
@@ -2464,7 +2464,7 @@
|
|
|
2464
2464
|
"@ethereumjs/common": "^4.1.0",
|
|
2465
2465
|
"@ethereumjs/tx": "^5.1.0",
|
|
2466
2466
|
"@ethersproject/abi": "^5.7.0",
|
|
2467
|
-
"@galacticcouncil/sdk": "^
|
|
2467
|
+
"@galacticcouncil/sdk": "^5.1.0",
|
|
2468
2468
|
"@gear-js/api": "^0.38.1",
|
|
2469
2469
|
"@json-rpc-tools/utils": "^1.7.6",
|
|
2470
2470
|
"@metamask/eth-sig-util": "^7.0.3",
|
|
@@ -2472,30 +2472,30 @@
|
|
|
2472
2472
|
"@metaverse-network-sdk/type-definitions": "^0.0.1-13",
|
|
2473
2473
|
"@oak-foundation/types": "^0.0.23",
|
|
2474
2474
|
"@polkadot-api/merkleize-metadata": "^1.1.0",
|
|
2475
|
-
"@polkadot/api": "^
|
|
2476
|
-
"@polkadot/api-base": "^
|
|
2477
|
-
"@polkadot/api-contract": "^
|
|
2478
|
-
"@polkadot/api-derive": "^
|
|
2475
|
+
"@polkadot/api": "^15.0.1",
|
|
2476
|
+
"@polkadot/api-base": "^15.0.1",
|
|
2477
|
+
"@polkadot/api-contract": "^15.0.1",
|
|
2478
|
+
"@polkadot/api-derive": "^15.0.1",
|
|
2479
2479
|
"@polkadot/apps-config": "^0.137.1",
|
|
2480
2480
|
"@polkadot/hw-ledger": "^12.6.2",
|
|
2481
|
-
"@polkadot/networks": "^
|
|
2481
|
+
"@polkadot/networks": "^13.2.3",
|
|
2482
2482
|
"@polkadot/phishing": "^0.22.7",
|
|
2483
|
-
"@polkadot/rpc-provider": "^
|
|
2484
|
-
"@polkadot/types": "^
|
|
2485
|
-
"@polkadot/types-augment": "^
|
|
2486
|
-
"@polkadot/types-known": "^
|
|
2483
|
+
"@polkadot/rpc-provider": "^15.0.1",
|
|
2484
|
+
"@polkadot/types": "^15.0.1",
|
|
2485
|
+
"@polkadot/types-augment": "^15.0.1",
|
|
2486
|
+
"@polkadot/types-known": "^15.0.1",
|
|
2487
2487
|
"@polkadot/ui-settings": "^3.6.6",
|
|
2488
|
-
"@polkadot/util": "^
|
|
2489
|
-
"@polkadot/util-crypto": "^
|
|
2488
|
+
"@polkadot/util": "^13.2.3",
|
|
2489
|
+
"@polkadot/util-crypto": "^13.2.3",
|
|
2490
2490
|
"@polkadot/x-global": "^12.2.1",
|
|
2491
2491
|
"@reduxjs/toolkit": "^1.9.1",
|
|
2492
2492
|
"@sora-substrate/type-definitions": "^1.17.7",
|
|
2493
2493
|
"@substrate/connect": "^0.8.9",
|
|
2494
2494
|
"@subwallet/chain-list": "0.2.95-beta.1",
|
|
2495
|
-
"@subwallet/extension-base": "^1.3.
|
|
2496
|
-
"@subwallet/extension-chains": "^1.3.
|
|
2497
|
-
"@subwallet/extension-dapp": "^1.3.
|
|
2498
|
-
"@subwallet/extension-inject": "^1.3.
|
|
2495
|
+
"@subwallet/extension-base": "^1.3.10-0",
|
|
2496
|
+
"@subwallet/extension-chains": "^1.3.10-0",
|
|
2497
|
+
"@subwallet/extension-dapp": "^1.3.10-0",
|
|
2498
|
+
"@subwallet/extension-inject": "^1.3.10-0",
|
|
2499
2499
|
"@subwallet/keyring": "^0.1.8-beta.0",
|
|
2500
2500
|
"@subwallet/ui-keyring": "^0.1.8-beta.0",
|
|
2501
2501
|
"@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.
|
|
10
|
+
version: '1.3.10-0'
|
|
11
11
|
};
|
|
@@ -245,12 +245,12 @@ export const _TRANSFER_CHAIN_GROUP = {
|
|
|
245
245
|
kintsugi: ['kintsugi', 'kintsugi_test', 'interlay', 'mangatax_para'],
|
|
246
246
|
genshiro: ['genshiro_testnet', 'genshiro', 'equilibrium_parachain'],
|
|
247
247
|
// crab: ['crab', 'pangolin'],
|
|
248
|
-
bitcountry: ['pioneer', 'bitcountry'
|
|
248
|
+
bitcountry: ['pioneer', 'bitcountry'],
|
|
249
249
|
statemine: ['statemint', 'statemine', 'darwinia2', 'astar', 'shiden', 'shibuya', 'parallel', 'liberland', 'liberlandTest', 'dentnet', 'dbcchain'],
|
|
250
250
|
riochain: ['riochain'],
|
|
251
251
|
sora_substrate: ['sora_substrate'],
|
|
252
252
|
avail: ['kate', 'goldberg_testnet'],
|
|
253
|
-
pendulum: ['pendulum', 'amplitude', 'amplitude_test', 'hydradx_main'],
|
|
253
|
+
pendulum: ['pendulum', 'amplitude', 'amplitude_test', 'hydradx_main', 'bifrost', 'bifrost_dot'],
|
|
254
254
|
centrifuge: ['centrifuge'],
|
|
255
255
|
disable_transfer: ['invarch', 'crab', 'pangolin']
|
|
256
256
|
};
|
|
@@ -66,7 +66,7 @@ export function validateNativeLocalTransferMetadata(chainAsset) {
|
|
|
66
66
|
throw new Error(`Asset ${chainAsset.slug} is lack of metadata`);
|
|
67
67
|
}
|
|
68
68
|
const moonbeamGroup = ['moonbeam, moonbase, moonriver'];
|
|
69
|
-
const onChainInfoLocalGroup = [_TRANSFER_CHAIN_GROUP.centrifuge, ..._TRANSFER_CHAIN_GROUP.bitcountry, ..._TRANSFER_CHAIN_GROUP.acala, ..._TRANSFER_CHAIN_GROUP.kintsugi, 'pendulum', 'amplitude'];
|
|
69
|
+
const onChainInfoLocalGroup = [_TRANSFER_CHAIN_GROUP.centrifuge, ..._TRANSFER_CHAIN_GROUP.bitcountry, ..._TRANSFER_CHAIN_GROUP.acala, ..._TRANSFER_CHAIN_GROUP.kintsugi, 'pendulum', 'amplitude', 'bifrost', 'bifrost_dot'];
|
|
70
70
|
const onChainInfoNativeGroup = [_TRANSFER_CHAIN_GROUP.centrifuge, ..._TRANSFER_CHAIN_GROUP.acala, ..._TRANSFER_CHAIN_GROUP.kintsugi];
|
|
71
71
|
const assetIdLocalGroup = [..._TRANSFER_CHAIN_GROUP.statemine, ..._TRANSFER_CHAIN_GROUP.genshiro, ...moonbeamGroup, 'hydradx'];
|
|
72
72
|
const assetIdNativeGroup = [..._TRANSFER_CHAIN_GROUP.sora_substrate, 'hydradx'];
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="bn.js" />
|
|
1
2
|
import { _ChainInfo } from '@subwallet/chain-list/types';
|
|
2
3
|
import { TransactionError } from '@subwallet/extension-base/background/errors/TransactionError';
|
|
3
4
|
import { ExtrinsicType, NominationInfo, UnstakingInfo } from '@subwallet/extension-base/background/KoniTypes';
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="bn.js" />
|
|
1
2
|
import { TransactionError } from '@subwallet/extension-base/background/errors/TransactionError';
|
|
2
3
|
import { ExtrinsicType } from '@subwallet/extension-base/background/KoniTypes';
|
|
3
4
|
import KoniState from '@subwallet/extension-base/koni/background/handlers/State';
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="bn.js" />
|
|
1
2
|
import { _SubstrateApi } from '@subwallet/extension-base/services/chain-service/types';
|
|
2
3
|
import { LendingYieldPoolInfo, LiquidYieldPoolInfo, NativeYieldPoolInfo, NominationYieldPoolInfo, YieldAssetExpectedEarning, YieldCompoundingPeriod, YieldPoolInfo, YieldPoolType } from '@subwallet/extension-base/types';
|
|
3
4
|
import { BN } from '@polkadot/util';
|
|
@@ -7,6 +7,7 @@ import BigN from 'bignumber.js';
|
|
|
7
7
|
export const _getPoolInfo = async (api, asset1, asset2) => {
|
|
8
8
|
const assetLocation1 = _getXcmAssetMultilocation(asset1);
|
|
9
9
|
const assetLocation2 = _getXcmAssetMultilocation(asset2);
|
|
10
|
+
// @ts-ignore - Type auto detect incorrect
|
|
10
11
|
const rs = await api.call.assetConversionApi.getReserves(assetLocation1, assetLocation2);
|
|
11
12
|
if (!rs) {
|
|
12
13
|
return ['0', '0'];
|
package/types/balance/index.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="bn.js" />
|
|
1
2
|
import { _ChainAsset, _ChainInfo } from '@subwallet/chain-list/types';
|
|
2
3
|
import { _BalanceMetadata, APIItemState, ExtrinsicType } from '@subwallet/extension-base/background/KoniTypes';
|
|
3
4
|
import { _EvmApi, _SubstrateApi, _TonApi } from '@subwallet/extension-base/services/chain-service/types';
|
package/utils/index.d.ts
CHANGED