@subwallet/extension-base 0.3.6-0 → 0.3.6-3
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/{build/background → background}/KoniTypes.d.ts +0 -0
- package/{build/background → background}/KoniTypes.js +0 -0
- package/{build/background → background}/RequestBytesSign.d.ts +0 -0
- package/{build/background → background}/RequestBytesSign.js +0 -0
- package/{build/background → background}/RequestExtrinsicSign.d.ts +0 -0
- package/{build/background → background}/RequestExtrinsicSign.js +0 -0
- package/{build/background → background}/handlers/Extension.d.ts +1 -1
- package/{build/background → background}/handlers/Extension.js +2 -2
- package/{build/background → background}/handlers/State.d.ts +0 -0
- package/{build/background → background}/handlers/State.js +0 -0
- package/{build/background → background}/handlers/Tabs.d.ts +0 -0
- package/{build/background → background}/handlers/Tabs.js +0 -0
- package/{build/background → background}/handlers/helpers.d.ts +0 -0
- package/{build/background → background}/handlers/helpers.js +0 -0
- package/{build/background → background}/handlers/index.d.ts +0 -0
- package/{build/background → background}/handlers/index.js +0 -0
- package/{build/background → background}/handlers/subscriptions.d.ts +0 -0
- package/{build/background → background}/handlers/subscriptions.js +0 -0
- package/{build/background → background}/types.d.ts +0 -0
- package/{build/background → background}/types.js +0 -0
- package/{build/bundle.d.ts → bundle.d.ts} +0 -0
- package/{build/bundle.js → bundle.js} +0 -0
- package/{build-cjs → cjs}/background/KoniTypes.js +0 -0
- package/{build-cjs → cjs}/background/RequestBytesSign.js +0 -0
- package/{build-cjs → cjs}/background/RequestExtrinsicSign.js +0 -0
- package/{build/cjs → cjs}/background/handlers/Extension.js +4 -4
- package/{build-cjs → cjs}/background/handlers/State.js +0 -0
- package/{build-cjs → cjs}/background/handlers/Tabs.js +0 -0
- package/{build-cjs → cjs}/background/handlers/helpers.js +0 -0
- package/{build-cjs → cjs}/background/handlers/index.js +0 -0
- package/{build-cjs → cjs}/background/handlers/subscriptions.js +0 -0
- package/{build-cjs → cjs}/background/types.js +0 -0
- package/{build-cjs → cjs}/bundle.js +0 -0
- package/{build-cjs → cjs}/defaults.js +0 -0
- package/{build-cjs → cjs}/detectOther.js +0 -0
- package/{build-cjs → cjs}/detectPackage.js +0 -0
- package/{build-cjs → cjs}/index.js +0 -0
- package/{build/cjs → cjs}/package.json +0 -0
- package/{build-cjs → cjs}/packageInfo.js +1 -1
- package/{build-cjs → cjs}/page/Accounts.js +0 -0
- package/{build-cjs → cjs}/page/Injected.js +0 -0
- package/{build-cjs → cjs}/page/Metadata.js +0 -0
- package/{build-cjs → cjs}/page/PostMessageProvider.js +0 -0
- package/{build-cjs → cjs}/page/Signer.js +0 -0
- package/{build-cjs → cjs}/page/index.js +0 -0
- package/{build-cjs → cjs}/page/types.js +0 -0
- package/{build-cjs → cjs}/stores/Accounts.js +0 -0
- package/{build-cjs → cjs}/stores/Base.js +0 -0
- package/{build-cjs → cjs}/stores/Metadata.js +0 -0
- package/{build-cjs → cjs}/stores/index.js +0 -0
- package/{build-cjs → cjs}/types.js +0 -0
- package/{build-cjs → cjs}/utils/canDerive.js +0 -0
- package/{build-cjs → cjs}/utils/getId.js +0 -0
- package/{build-cjs → cjs}/utils/index.js +0 -0
- package/{build/defaults.d.ts → defaults.d.ts} +0 -0
- package/{build/defaults.js → defaults.js} +0 -0
- package/{build/detectOther.d.ts → detectOther.d.ts} +0 -0
- package/{build/detectOther.js → detectOther.js} +0 -0
- package/{build/detectPackage.d.ts → detectPackage.d.ts} +0 -0
- package/{build/detectPackage.js → detectPackage.js} +0 -0
- package/{build/index.d.ts → index.d.ts} +0 -0
- package/{build/index.js → index.js} +0 -0
- package/package.json +174 -10
- package/{build/packageInfo.d.ts → packageInfo.d.ts} +0 -0
- package/{build/packageInfo.js → packageInfo.js} +1 -1
- package/{build/page → page}/Accounts.d.ts +0 -0
- package/{build/page → page}/Accounts.js +0 -0
- package/{build/page → page}/Injected.d.ts +0 -0
- package/{build/page → page}/Injected.js +0 -0
- package/{build/page → page}/Metadata.d.ts +0 -0
- package/{build/page → page}/Metadata.js +0 -0
- package/{build/page → page}/PostMessageProvider.d.ts +0 -0
- package/{build/page → page}/PostMessageProvider.js +0 -0
- package/{build/page → page}/Signer.d.ts +0 -0
- package/{build/page → page}/Signer.js +0 -0
- package/{build/page → page}/index.d.ts +1 -1
- package/{build/page → page}/index.js +0 -0
- package/{build/page → page}/types.d.ts +0 -0
- package/{build/page → page}/types.js +0 -0
- package/{build/stores → stores}/Accounts.d.ts +0 -0
- package/{build/stores → stores}/Accounts.js +0 -0
- package/{build/stores → stores}/Base.d.ts +0 -0
- package/{build/stores → stores}/Base.js +0 -0
- package/{build/stores → stores}/Metadata.d.ts +0 -0
- package/{build/stores → stores}/Metadata.js +0 -0
- package/{build/stores → stores}/index.d.ts +0 -0
- package/{build/stores → stores}/index.js +0 -0
- package/{build/types.d.ts → types.d.ts} +0 -0
- package/{build/types.js → types.js} +0 -0
- package/{build/utils → utils}/canDerive.d.ts +0 -0
- package/{build/utils → utils}/canDerive.js +0 -0
- package/{build/utils → utils}/getId.d.ts +0 -0
- package/{build/utils → utils}/getId.js +0 -0
- package/{build/utils → utils}/index.d.ts +0 -0
- package/{build/utils → utils}/index.js +0 -0
- package/build/LICENSE +0 -201
- package/build/README.md +0 -10
- package/build/cjs/background/KoniTypes.js +0 -69
- package/build/cjs/background/RequestBytesSign.js +0 -27
- package/build/cjs/background/RequestExtrinsicSign.js +0 -23
- package/build/cjs/background/handlers/State.js +0 -472
- package/build/cjs/background/handlers/Tabs.js +0 -273
- package/build/cjs/background/handlers/helpers.js +0 -20
- package/build/cjs/background/handlers/index.js +0 -60
- package/build/cjs/background/handlers/subscriptions.js +0 -32
- package/build/cjs/background/types.js +0 -1
- package/build/cjs/bundle.js +0 -13
- package/build/cjs/defaults.js +0 -26
- package/build/cjs/detectOther.js +0 -17
- package/build/cjs/detectPackage.js +0 -14
- package/build/cjs/index.js +0 -18
- package/build/cjs/packageInfo.js +0 -16
- package/build/cjs/page/Accounts.js +0 -31
- package/build/cjs/page/Injected.js +0 -30
- package/build/cjs/page/Metadata.js +0 -27
- package/build/cjs/page/PostMessageProvider.js +0 -184
- package/build/cjs/page/Signer.js +0 -44
- package/build/cjs/page/index.js +0 -76
- package/build/cjs/page/types.js +0 -1
- package/build/cjs/stores/Accounts.js +0 -33
- package/build/cjs/stores/Base.js +0 -84
- package/build/cjs/stores/Metadata.js +0 -23
- package/build/cjs/stores/index.js +0 -23
- package/build/cjs/types.js +0 -1
- package/build/cjs/utils/canDerive.js +0 -12
- package/build/cjs/utils/getId.js +0 -16
- package/build/cjs/utils/index.js +0 -13
- package/build/package.json +0 -210
- package/build-cjs/background/handlers/Extension.js +0 -764
- package/src/background/KoniTypes.ts +0 -537
- package/src/background/RequestBytesSign.ts +0 -30
- package/src/background/RequestExtrinsicSign.ts +0 -23
- package/src/background/handlers/Extension.spec.ts +0 -456
- package/src/background/handlers/Extension.ts +0 -627
- package/src/background/handlers/State.ts +0 -513
- package/src/background/handlers/Tabs.ts +0 -223
- package/src/background/handlers/helpers.ts +0 -14
- package/src/background/handlers/index.ts +0 -49
- package/src/background/handlers/subscriptions.ts +0 -30
- package/src/background/types.ts +0 -437
- package/src/bundle.ts +0 -4
- package/src/defaults.ts +0 -24
- package/src/detectOther.ts +0 -8
- package/src/detectPackage.ts +0 -11
- package/src/index.ts +0 -7
- package/src/packageInfo.ts +0 -6
- package/src/page/Accounts.ts +0 -27
- package/src/page/Injected.ts +0 -27
- package/src/page/Metadata.ts +0 -22
- package/src/page/PostMessageProvider.ts +0 -178
- package/src/page/Signer.ts +0 -45
- package/src/page/index.ts +0 -87
- package/src/page/types.ts +0 -10
- package/src/stores/Accounts.ts +0 -24
- package/src/stores/Base.ts +0 -81
- package/src/stores/Metadata.ts +0 -13
- package/src/stores/index.ts +0 -5
- package/src/types.ts +0 -12
- package/src/utils/canDerive.ts +0 -8
- package/src/utils/getId.ts +0 -10
- package/src/utils/index.ts +0 -4
- package/tsconfig.build.json +0 -18
- package/tsconfig.build.tsbuildinfo +0 -1
- package/tsconfig.json +0 -14
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="chrome" />
|
|
2
2
|
import type { KeypairType } from '@polkadot/util-crypto/types';
|
|
3
3
|
import type { MessageTypes, RequestTypes, ResponseType } from '../types';
|
|
4
|
-
import State from '
|
|
4
|
+
import State from '@subwallet/extension-base/background/handlers/State';
|
|
5
5
|
export declare const SEED_DEFAULT_LENGTH = 12;
|
|
6
6
|
export declare const SEED_LENGTHS: number[];
|
|
7
7
|
export declare const ETH_DERIVE_DEFAULT = "/m/44'/60'/0'/0/0";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
// Copyright 2019-2022 @subwallet/extension authors & contributors
|
|
2
2
|
// SPDX-License-Identifier: Apache-2.0
|
|
3
|
+
import { withErrorLog } from '@subwallet/extension-base/background/handlers/helpers';
|
|
4
|
+
import { createSubscription, unsubscribe } from '@subwallet/extension-base/background/handlers/subscriptions';
|
|
3
5
|
import { ALLOWED_PATH, PASSWORD_EXPIRY_MS } from '@subwallet/extension-base/defaults';
|
|
4
6
|
import { TypeRegistry } from '@polkadot/types';
|
|
5
7
|
import keyring from '@polkadot/ui-keyring';
|
|
6
8
|
import { accounts as accountsObservable } from '@polkadot/ui-keyring/observable/accounts';
|
|
7
9
|
import { assert, isHex } from '@polkadot/util';
|
|
8
10
|
import { keyExtractSuri, mnemonicGenerate, mnemonicValidate } from '@polkadot/util-crypto';
|
|
9
|
-
import { withErrorLog } from "./helpers.js";
|
|
10
|
-
import { createSubscription, unsubscribe } from "./subscriptions.js";
|
|
11
11
|
export const SEED_DEFAULT_LENGTH = 12;
|
|
12
12
|
export const SEED_LENGTHS = [12, 15, 18, 21, 24];
|
|
13
13
|
export const ETH_DERIVE_DEFAULT = '/m/44\'/60\'/0\'/0/0'; // a global registry to use internally
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -8,6 +8,10 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
8
8
|
exports.default = exports.SEED_LENGTHS = exports.SEED_DEFAULT_LENGTH = exports.ETH_DERIVE_DEFAULT = void 0;
|
|
9
9
|
exports.getSuri = getSuri;
|
|
10
10
|
|
|
11
|
+
var _helpers = require("@subwallet/extension-base/background/handlers/helpers");
|
|
12
|
+
|
|
13
|
+
var _subscriptions = require("@subwallet/extension-base/background/handlers/subscriptions");
|
|
14
|
+
|
|
11
15
|
var _defaults = require("@subwallet/extension-base/defaults");
|
|
12
16
|
|
|
13
17
|
var _types = require("@polkadot/types");
|
|
@@ -20,10 +24,6 @@ var _util = require("@polkadot/util");
|
|
|
20
24
|
|
|
21
25
|
var _utilCrypto = require("@polkadot/util-crypto");
|
|
22
26
|
|
|
23
|
-
var _helpers = require("./helpers");
|
|
24
|
-
|
|
25
|
-
var _subscriptions = require("./subscriptions");
|
|
26
|
-
|
|
27
27
|
// Copyright 2019-2022 @subwallet/extension authors & contributors
|
|
28
28
|
// SPDX-License-Identifier: Apache-2.0
|
|
29
29
|
const SEED_DEFAULT_LENGTH = 12;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/package.json
CHANGED
|
@@ -14,11 +14,178 @@
|
|
|
14
14
|
},
|
|
15
15
|
"sideEffects": [
|
|
16
16
|
"./detectPackage.js",
|
|
17
|
-
"./detectPackage.
|
|
17
|
+
"./cjs/detectPackage.js"
|
|
18
18
|
],
|
|
19
19
|
"type": "module",
|
|
20
|
-
"version": "0.3.6-
|
|
21
|
-
"main": "index.js",
|
|
20
|
+
"version": "0.3.6-3",
|
|
21
|
+
"main": "./cjs/index.js",
|
|
22
|
+
"module": "./index.js",
|
|
23
|
+
"types": "./index.d.ts",
|
|
24
|
+
"exports": {
|
|
25
|
+
"./cjs/package.json": "./cjs/package.json",
|
|
26
|
+
"./cjs/*": "./cjs/*.js",
|
|
27
|
+
".": {
|
|
28
|
+
"types": "./index.d.ts",
|
|
29
|
+
"require": "./cjs/index.js",
|
|
30
|
+
"default": "./index.js"
|
|
31
|
+
},
|
|
32
|
+
"./background/handlers": {
|
|
33
|
+
"types": "./background/handlers/index.d.ts",
|
|
34
|
+
"require": "./cjs/background/handlers/index.js",
|
|
35
|
+
"default": "./background/handlers/index.js"
|
|
36
|
+
},
|
|
37
|
+
"./background/handlers/Extension": {
|
|
38
|
+
"types": "./background/handlers/Extension.d.ts",
|
|
39
|
+
"require": "./cjs/background/handlers/Extension.js",
|
|
40
|
+
"default": "./background/handlers/Extension.js"
|
|
41
|
+
},
|
|
42
|
+
"./background/handlers/helpers": {
|
|
43
|
+
"types": "./background/handlers/helpers.d.ts",
|
|
44
|
+
"require": "./cjs/background/handlers/helpers.js",
|
|
45
|
+
"default": "./background/handlers/helpers.js"
|
|
46
|
+
},
|
|
47
|
+
"./background/handlers/State": {
|
|
48
|
+
"types": "./background/handlers/State.d.ts",
|
|
49
|
+
"require": "./cjs/background/handlers/State.js",
|
|
50
|
+
"default": "./background/handlers/State.js"
|
|
51
|
+
},
|
|
52
|
+
"./background/handlers/subscriptions": {
|
|
53
|
+
"types": "./background/handlers/subscriptions.d.ts",
|
|
54
|
+
"require": "./cjs/background/handlers/subscriptions.js",
|
|
55
|
+
"default": "./background/handlers/subscriptions.js"
|
|
56
|
+
},
|
|
57
|
+
"./background/handlers/Tabs": {
|
|
58
|
+
"types": "./background/handlers/Tabs.d.ts",
|
|
59
|
+
"require": "./cjs/background/handlers/Tabs.js",
|
|
60
|
+
"default": "./background/handlers/Tabs.js"
|
|
61
|
+
},
|
|
62
|
+
"./background/KoniTypes": {
|
|
63
|
+
"types": "./background/KoniTypes.d.ts",
|
|
64
|
+
"require": "./cjs/background/KoniTypes.js",
|
|
65
|
+
"default": "./background/KoniTypes.js"
|
|
66
|
+
},
|
|
67
|
+
"./background/RequestBytesSign": {
|
|
68
|
+
"types": "./background/RequestBytesSign.d.ts",
|
|
69
|
+
"require": "./cjs/background/RequestBytesSign.js",
|
|
70
|
+
"default": "./background/RequestBytesSign.js"
|
|
71
|
+
},
|
|
72
|
+
"./background/RequestExtrinsicSign": {
|
|
73
|
+
"types": "./background/RequestExtrinsicSign.d.ts",
|
|
74
|
+
"require": "./cjs/background/RequestExtrinsicSign.js",
|
|
75
|
+
"default": "./background/RequestExtrinsicSign.js"
|
|
76
|
+
},
|
|
77
|
+
"./background/types": {
|
|
78
|
+
"types": "./background/types.d.ts",
|
|
79
|
+
"require": "./cjs/background/types.js",
|
|
80
|
+
"default": "./background/types.js"
|
|
81
|
+
},
|
|
82
|
+
"./bundle": {
|
|
83
|
+
"types": "./bundle.d.ts",
|
|
84
|
+
"require": "./cjs/bundle.js",
|
|
85
|
+
"default": "./bundle.js"
|
|
86
|
+
},
|
|
87
|
+
"./defaults": {
|
|
88
|
+
"types": "./defaults.d.ts",
|
|
89
|
+
"require": "./cjs/defaults.js",
|
|
90
|
+
"default": "./defaults.js"
|
|
91
|
+
},
|
|
92
|
+
"./detectOther": {
|
|
93
|
+
"types": "./detectOther.d.ts",
|
|
94
|
+
"require": "./cjs/detectOther.js",
|
|
95
|
+
"default": "./detectOther.js"
|
|
96
|
+
},
|
|
97
|
+
"./detectPackage": {
|
|
98
|
+
"types": "./detectPackage.d.ts",
|
|
99
|
+
"require": "./cjs/detectPackage.js",
|
|
100
|
+
"default": "./detectPackage.js"
|
|
101
|
+
},
|
|
102
|
+
"./package.json": "./package.json",
|
|
103
|
+
"./packageInfo.js": {
|
|
104
|
+
"types": "./packageInfo.d.ts",
|
|
105
|
+
"require": "./cjs/packageInfo.js",
|
|
106
|
+
"default": "./packageInfo.js"
|
|
107
|
+
},
|
|
108
|
+
"./packageInfo": {
|
|
109
|
+
"types": "./packageInfo.d.ts",
|
|
110
|
+
"require": "./cjs/packageInfo.js",
|
|
111
|
+
"default": "./packageInfo.js"
|
|
112
|
+
},
|
|
113
|
+
"./page": {
|
|
114
|
+
"types": "./page/index.d.ts",
|
|
115
|
+
"require": "./cjs/page/index.js",
|
|
116
|
+
"default": "./page/index.js"
|
|
117
|
+
},
|
|
118
|
+
"./page/Accounts": {
|
|
119
|
+
"types": "./page/Accounts.d.ts",
|
|
120
|
+
"require": "./cjs/page/Accounts.js",
|
|
121
|
+
"default": "./page/Accounts.js"
|
|
122
|
+
},
|
|
123
|
+
"./page/Injected": {
|
|
124
|
+
"types": "./page/Injected.d.ts",
|
|
125
|
+
"require": "./cjs/page/Injected.js",
|
|
126
|
+
"default": "./page/Injected.js"
|
|
127
|
+
},
|
|
128
|
+
"./page/Metadata": {
|
|
129
|
+
"types": "./page/Metadata.d.ts",
|
|
130
|
+
"require": "./cjs/page/Metadata.js",
|
|
131
|
+
"default": "./page/Metadata.js"
|
|
132
|
+
},
|
|
133
|
+
"./page/PostMessageProvider": {
|
|
134
|
+
"types": "./page/PostMessageProvider.d.ts",
|
|
135
|
+
"require": "./cjs/page/PostMessageProvider.js",
|
|
136
|
+
"default": "./page/PostMessageProvider.js"
|
|
137
|
+
},
|
|
138
|
+
"./page/Signer": {
|
|
139
|
+
"types": "./page/Signer.d.ts",
|
|
140
|
+
"require": "./cjs/page/Signer.js",
|
|
141
|
+
"default": "./page/Signer.js"
|
|
142
|
+
},
|
|
143
|
+
"./page/types": {
|
|
144
|
+
"types": "./page/types.d.ts",
|
|
145
|
+
"require": "./cjs/page/types.js",
|
|
146
|
+
"default": "./page/types.js"
|
|
147
|
+
},
|
|
148
|
+
"./stores": {
|
|
149
|
+
"types": "./stores/index.d.ts",
|
|
150
|
+
"require": "./cjs/stores/index.js",
|
|
151
|
+
"default": "./stores/index.js"
|
|
152
|
+
},
|
|
153
|
+
"./stores/Accounts": {
|
|
154
|
+
"types": "./stores/Accounts.d.ts",
|
|
155
|
+
"require": "./cjs/stores/Accounts.js",
|
|
156
|
+
"default": "./stores/Accounts.js"
|
|
157
|
+
},
|
|
158
|
+
"./stores/Base": {
|
|
159
|
+
"types": "./stores/Base.d.ts",
|
|
160
|
+
"require": "./cjs/stores/Base.js",
|
|
161
|
+
"default": "./stores/Base.js"
|
|
162
|
+
},
|
|
163
|
+
"./stores/Metadata": {
|
|
164
|
+
"types": "./stores/Metadata.d.ts",
|
|
165
|
+
"require": "./cjs/stores/Metadata.js",
|
|
166
|
+
"default": "./stores/Metadata.js"
|
|
167
|
+
},
|
|
168
|
+
"./types": {
|
|
169
|
+
"types": "./types.d.ts",
|
|
170
|
+
"require": "./cjs/types.js",
|
|
171
|
+
"default": "./types.js"
|
|
172
|
+
},
|
|
173
|
+
"./utils": {
|
|
174
|
+
"types": "./utils/index.d.ts",
|
|
175
|
+
"require": "./cjs/utils/index.js",
|
|
176
|
+
"default": "./utils/index.js"
|
|
177
|
+
},
|
|
178
|
+
"./utils/canDerive": {
|
|
179
|
+
"types": "./utils/canDerive.d.ts",
|
|
180
|
+
"require": "./cjs/utils/canDerive.js",
|
|
181
|
+
"default": "./utils/canDerive.js"
|
|
182
|
+
},
|
|
183
|
+
"./utils/getId": {
|
|
184
|
+
"types": "./utils/getId.d.ts",
|
|
185
|
+
"require": "./cjs/utils/getId.js",
|
|
186
|
+
"default": "./utils/getId.js"
|
|
187
|
+
}
|
|
188
|
+
},
|
|
22
189
|
"dependencies": {
|
|
23
190
|
"@babel/runtime": "^7.16.7",
|
|
24
191
|
"@ethereumjs/common": "^2.6.3",
|
|
@@ -32,15 +199,12 @@
|
|
|
32
199
|
"@polkadot/ui-settings": "^0.89.1",
|
|
33
200
|
"@polkadot/util": "^8.3.1",
|
|
34
201
|
"@polkadot/util-crypto": "^8.3.1",
|
|
35
|
-
"@subwallet/extension-chains": "^0.3.6-
|
|
36
|
-
"@subwallet/extension-dapp": "^0.3.6-
|
|
37
|
-
"@subwallet/extension-inject": "^0.3.6-
|
|
202
|
+
"@subwallet/extension-chains": "^0.3.6-3",
|
|
203
|
+
"@subwallet/extension-dapp": "^0.3.6-3",
|
|
204
|
+
"@subwallet/extension-inject": "^0.3.6-3",
|
|
38
205
|
"ethereumjs-tx": "^2.1.2",
|
|
39
206
|
"eventemitter3": "^4.0.7",
|
|
40
207
|
"rxjs": "^7.5.1",
|
|
41
208
|
"web3": "^1.7.1"
|
|
42
|
-
},
|
|
43
|
-
"devDependencies": {
|
|
44
|
-
"@subwallet/extension-mocks": "^0.3.6-0"
|
|
45
209
|
}
|
|
46
|
-
}
|
|
210
|
+
}
|
|
File without changes
|
|
@@ -5,5 +5,5 @@ export const packageInfo = {
|
|
|
5
5
|
name: '@subwallet/extension-base',
|
|
6
6
|
path: (import.meta && import.meta.url) ? new URL(import.meta.url).pathname.substring(0, new URL(import.meta.url).pathname.lastIndexOf('/') + 1) : 'auto',
|
|
7
7
|
type: 'esm',
|
|
8
|
-
version: '0.3.6-
|
|
8
|
+
version: '0.3.6-3'
|
|
9
9
|
};
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { MessageTypes, MessageTypesWithNoSubscriptions, MessageTypesWithNullRequest, MessageTypesWithSubscriptions, RequestTypes, ResponseTypes, SubscriptionMessageTypes, TransportResponseMessage } from '
|
|
1
|
+
import type { MessageTypes, MessageTypesWithNoSubscriptions, MessageTypesWithNullRequest, MessageTypesWithSubscriptions, RequestTypes, ResponseTypes, SubscriptionMessageTypes, TransportResponseMessage } from '@subwallet/extension-base/background/types';
|
|
2
2
|
import Injected from './Injected';
|
|
3
3
|
export interface Handler {
|
|
4
4
|
resolve: (data?: any) => void;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|