@subwallet/extension-base 1.3.60-0 → 1.3.60-1
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/utils/patch.js +1 -1
- package/cjs/services/transaction-service/utils.js +3 -3
- package/package.json +6 -6
- package/packageInfo.js +1 -1
- package/services/chain-service/utils/patch.d.ts +1 -1
- package/services/chain-service/utils/patch.js +1 -1
- package/services/transaction-service/utils.js +3 -3
package/cjs/packageInfo.js
CHANGED
|
@@ -12,7 +12,7 @@ const PRODUCTION_BRANCHES = ['master', 'webapp', 'webapp-dev'];
|
|
|
12
12
|
const branchName = process.env.BRANCH_NAME || 'subwallet-dev';
|
|
13
13
|
const fetchDomain = process.env.PATCH_CHAIN_LIST_URL || (PRODUCTION_BRANCHES.indexOf(branchName) > -1 ? 'https://chain-list-assets.subwallet.app' : 'https://dev.sw-chain-list-assets.pages.dev');
|
|
14
14
|
const fetchFile = PRODUCTION_BRANCHES.indexOf(branchName) > -1 ? 'list.json' : 'preview.json';
|
|
15
|
-
const ChainListVersion = '0.2.
|
|
15
|
+
const ChainListVersion = '0.2.117'; // update this when build chain-list
|
|
16
16
|
|
|
17
17
|
// todo: move this interface to chainlist
|
|
18
18
|
exports.ChainListVersion = ChainListVersion;
|
|
@@ -60,6 +60,9 @@ function getBlockExplorerAccountRoute(explorerLink) {
|
|
|
60
60
|
if (explorerLink.includes('uniquescan.io')) {
|
|
61
61
|
return 'account';
|
|
62
62
|
}
|
|
63
|
+
if (explorerLink.includes('node.xode.net')) {
|
|
64
|
+
return 'account';
|
|
65
|
+
}
|
|
63
66
|
if (explorerLink.includes('tonviewer.com')) {
|
|
64
67
|
return '';
|
|
65
68
|
}
|
|
@@ -124,9 +127,6 @@ function getExplorerLink(chainInfo, value, type) {
|
|
|
124
127
|
const address = (0, _util.u8aToHex)((0, _utilCrypto.decodeAddress)(value));
|
|
125
128
|
return `${explorerLink}${explorerLink.endsWith('/') ? '' : '/'}${route}/${address}`;
|
|
126
129
|
}
|
|
127
|
-
if (chainInfo.slug === 'xode') {
|
|
128
|
-
return undefined;
|
|
129
|
-
}
|
|
130
130
|
return `${explorerLink}${explorerLink.endsWith('/') ? '' : '/'}${route}/${value}`;
|
|
131
131
|
}
|
|
132
132
|
if (explorerLink && (0, _util.isHex)((0, _util.hexAddPrefix)(value))) {
|
package/package.json
CHANGED
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"./cjs/detectPackage.js"
|
|
18
18
|
],
|
|
19
19
|
"type": "module",
|
|
20
|
-
"version": "1.3.60-
|
|
20
|
+
"version": "1.3.60-1",
|
|
21
21
|
"main": "./cjs/index.js",
|
|
22
22
|
"module": "./index.js",
|
|
23
23
|
"types": "./index.d.ts",
|
|
@@ -2878,11 +2878,11 @@
|
|
|
2878
2878
|
"@sora-substrate/type-definitions": "^1.17.7",
|
|
2879
2879
|
"@substrate/connect": "^0.8.9",
|
|
2880
2880
|
"@subwallet-monorepos/subwallet-services-sdk": "^0.1.8",
|
|
2881
|
-
"@subwallet/chain-list": "0.2.117
|
|
2882
|
-
"@subwallet/extension-base": "^1.3.60-
|
|
2883
|
-
"@subwallet/extension-chains": "^1.3.60-
|
|
2884
|
-
"@subwallet/extension-dapp": "^1.3.60-
|
|
2885
|
-
"@subwallet/extension-inject": "^1.3.60-
|
|
2881
|
+
"@subwallet/chain-list": "0.2.117",
|
|
2882
|
+
"@subwallet/extension-base": "^1.3.60-1",
|
|
2883
|
+
"@subwallet/extension-chains": "^1.3.60-1",
|
|
2884
|
+
"@subwallet/extension-dapp": "^1.3.60-1",
|
|
2885
|
+
"@subwallet/extension-inject": "^1.3.60-1",
|
|
2886
2886
|
"@subwallet/keyring": "^0.1.13",
|
|
2887
2887
|
"@subwallet/ui-keyring": "^0.1.13",
|
|
2888
2888
|
"@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.60-
|
|
10
|
+
version: '1.3.60-1'
|
|
11
11
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { _ChainAsset, _ChainInfo, _MultiChainAsset } from '@subwallet/chain-list/types';
|
|
2
|
-
export declare const ChainListVersion = "0.2.
|
|
2
|
+
export declare const ChainListVersion = "0.2.117";
|
|
3
3
|
export interface PatchInfo {
|
|
4
4
|
patchVersion: string;
|
|
5
5
|
appliedVersion: string;
|
|
@@ -5,7 +5,7 @@ const PRODUCTION_BRANCHES = ['master', 'webapp', 'webapp-dev'];
|
|
|
5
5
|
const branchName = process.env.BRANCH_NAME || 'subwallet-dev';
|
|
6
6
|
const fetchDomain = process.env.PATCH_CHAIN_LIST_URL || (PRODUCTION_BRANCHES.indexOf(branchName) > -1 ? 'https://chain-list-assets.subwallet.app' : 'https://dev.sw-chain-list-assets.pages.dev');
|
|
7
7
|
const fetchFile = PRODUCTION_BRANCHES.indexOf(branchName) > -1 ? 'list.json' : 'preview.json';
|
|
8
|
-
export const ChainListVersion = '0.2.
|
|
8
|
+
export const ChainListVersion = '0.2.117'; // update this when build chain-list
|
|
9
9
|
|
|
10
10
|
// todo: move this interface to chainlist
|
|
11
11
|
|
|
@@ -52,6 +52,9 @@ function getBlockExplorerAccountRoute(explorerLink) {
|
|
|
52
52
|
if (explorerLink.includes('uniquescan.io')) {
|
|
53
53
|
return 'account';
|
|
54
54
|
}
|
|
55
|
+
if (explorerLink.includes('node.xode.net')) {
|
|
56
|
+
return 'account';
|
|
57
|
+
}
|
|
55
58
|
if (explorerLink.includes('tonviewer.com')) {
|
|
56
59
|
return '';
|
|
57
60
|
}
|
|
@@ -116,9 +119,6 @@ export function getExplorerLink(chainInfo, value, type) {
|
|
|
116
119
|
const address = u8aToHex(decodeAddress(value));
|
|
117
120
|
return `${explorerLink}${explorerLink.endsWith('/') ? '' : '/'}${route}/${address}`;
|
|
118
121
|
}
|
|
119
|
-
if (chainInfo.slug === 'xode') {
|
|
120
|
-
return undefined;
|
|
121
|
-
}
|
|
122
122
|
return `${explorerLink}${explorerLink.endsWith('/') ? '' : '/'}${route}/${value}`;
|
|
123
123
|
}
|
|
124
124
|
if (explorerLink && isHex(hexAddPrefix(value))) {
|