@subwallet/extension-base 0.4.2-1 → 0.4.2-2
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/background/KoniTypes.d.ts +5 -0
- package/background/KoniTypes.js +1 -1
- package/background/RequestBytesSign.js +1 -1
- package/background/RequestExtrinsicSign.js +1 -1
- package/background/handlers/Extension.js +1 -1
- package/background/handlers/State.js +1 -1
- package/background/handlers/Tabs.js +1 -1
- package/background/handlers/helpers.js +1 -1
- package/background/handlers/index.js +1 -1
- package/background/handlers/subscriptions.js +1 -1
- package/bundle.js +1 -1
- package/cjs/background/KoniTypes.js +1 -1
- package/cjs/background/RequestBytesSign.js +1 -1
- package/cjs/background/RequestExtrinsicSign.js +1 -1
- package/cjs/background/handlers/Extension.js +1 -1
- package/cjs/background/handlers/State.js +1 -1
- package/cjs/background/handlers/Tabs.js +1 -1
- package/cjs/background/handlers/helpers.js +1 -1
- package/cjs/background/handlers/index.js +1 -1
- package/cjs/background/handlers/subscriptions.js +1 -1
- package/cjs/defaults.js +1 -1
- package/cjs/packageInfo.js +1 -1
- package/cjs/page/Accounts.js +1 -1
- package/cjs/page/Injected.js +1 -1
- package/cjs/page/Metadata.js +1 -1
- package/cjs/page/PostMessageProvider.js +1 -1
- package/cjs/page/Signer.js +1 -1
- package/cjs/page/index.js +1 -1
- package/cjs/stores/Accounts.js +1 -1
- package/cjs/stores/Base.js +1 -1
- package/cjs/stores/Metadata.js +1 -1
- package/cjs/utils/canDerive.js +1 -1
- package/cjs/utils/getId.js +1 -1
- package/defaults.js +1 -1
- package/index.js +1 -1
- package/package.json +4 -4
- package/packageInfo.js +1 -1
- package/page/Accounts.js +1 -1
- package/page/Injected.js +1 -1
- package/page/Metadata.js +1 -1
- package/page/PostMessageProvider.js +1 -1
- package/page/Signer.js +1 -1
- package/page/index.js +1 -1
- package/stores/Accounts.js +1 -1
- package/stores/Base.js +1 -1
- package/stores/Metadata.js +1 -1
- package/stores/index.js +1 -1
- package/utils/canDerive.js +1 -1
- package/utils/getId.js +1 -1
- package/utils/index.js +1 -1
|
@@ -372,6 +372,10 @@ export interface RequestCheckTransfer {
|
|
|
372
372
|
export interface RequestTransfer extends RequestCheckTransfer {
|
|
373
373
|
password: string;
|
|
374
374
|
}
|
|
375
|
+
export interface ResponsePrivateKeyValidateV2 {
|
|
376
|
+
addressMap: Record<KeypairType, string>;
|
|
377
|
+
autoAddPrefix: boolean;
|
|
378
|
+
}
|
|
375
379
|
export declare type ResponseSeedValidateV2 = ResponseSeedCreateV2;
|
|
376
380
|
export declare type ResponseAccountCreateSuriV2 = Record<KeypairType, string>;
|
|
377
381
|
export declare type AccountRef = Array<string>;
|
|
@@ -558,6 +562,7 @@ export interface KoniRequestSignatures {
|
|
|
558
562
|
'pri(authorize.rejectV2)': [RequestAuthorizeReject, boolean];
|
|
559
563
|
'pri(seed.createV2)': [RequestSeedCreateV2, ResponseSeedCreateV2];
|
|
560
564
|
'pri(seed.validateV2)': [RequestSeedValidateV2, ResponseSeedValidateV2];
|
|
565
|
+
'pri(privateKey.validateV2)': [RequestSeedValidateV2, ResponsePrivateKeyValidateV2];
|
|
561
566
|
'pri(accounts.create.suriV2)': [RequestAccountCreateSuriV2, ResponseAccountCreateSuriV2];
|
|
562
567
|
'pri(accounts.checkTransfer)': [RequestCheckTransfer, ResponseCheckTransfer];
|
|
563
568
|
'pri(accounts.transfer)': [RequestTransfer, Array<TransferError>, ResponseTransfer];
|
package/background/KoniTypes.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright 2019-2022 @
|
|
1
|
+
// Copyright 2019-2022 @polkadot/extension authors & contributors
|
|
2
2
|
// SPDX-License-Identifier: Apache-2.0
|
|
3
3
|
import { wrapBytes } from '@subwallet/extension-dapp/wrapBytes';
|
|
4
4
|
import { u8aToHex } from '@polkadot/util';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright 2019-2022 @
|
|
1
|
+
// Copyright 2019-2022 @polkadot/extension authors & contributors
|
|
2
2
|
// SPDX-License-Identifier: Apache-2.0
|
|
3
3
|
import { ALLOWED_PATH, PASSWORD_EXPIRY_MS } from '@subwallet/extension-base/defaults';
|
|
4
4
|
import { TypeRegistry } from '@polkadot/types';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright 2019-2022 @
|
|
1
|
+
// Copyright 2019-2022 @polkadot/extension-bg authors & contributors
|
|
2
2
|
// SPDX-License-Identifier: Apache-2.0
|
|
3
3
|
import { getId } from '@subwallet/extension-base/utils/getId';
|
|
4
4
|
import { addMetadata, knownMetadata } from '@subwallet/extension-chains';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright 2019-2022 @
|
|
1
|
+
// Copyright 2019-2022 @polkadot/extension authors & contributors
|
|
2
2
|
// SPDX-License-Identifier: Apache-2.0
|
|
3
3
|
import { PHISHING_PAGE_REDIRECT } from '@subwallet/extension-base/defaults';
|
|
4
4
|
import { canDerive } from '@subwallet/extension-base/utils';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright 2019-2022 @
|
|
1
|
+
// Copyright 2019-2022 @polkadot/extension authors & contributors
|
|
2
2
|
// SPDX-License-Identifier: Apache-2.0
|
|
3
3
|
import { assert } from '@polkadot/util';
|
|
4
4
|
import { PORT_EXTENSION } from "../../defaults.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright 2019-2022 @
|
|
1
|
+
// Copyright 2019-2022 @polkadot/extension authors & contributors
|
|
2
2
|
// SPDX-License-Identifier: Apache-2.0
|
|
3
3
|
const subscriptions = {}; // return a subscription callback, that will send the data to the caller via the port
|
|
4
4
|
|
package/bundle.js
CHANGED
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.TransferStep = exports.TransferErrorCode = exports.RMRK_VER = exports.CrowdloanParaState = exports.ApiInitStatus = exports.APIItemState = void 0;
|
|
7
|
-
// Copyright 2019-2022 @
|
|
7
|
+
// Copyright 2019-2022 @polkadot/extension-koni authors & contributors
|
|
8
8
|
// SPDX-License-Identifier: Apache-2.0
|
|
9
9
|
let ApiInitStatus;
|
|
10
10
|
exports.ApiInitStatus = ApiInitStatus;
|
|
@@ -9,7 +9,7 @@ var _wrapBytes = require("@subwallet/extension-dapp/wrapBytes");
|
|
|
9
9
|
|
|
10
10
|
var _util = require("@polkadot/util");
|
|
11
11
|
|
|
12
|
-
// Copyright 2019-2022 @
|
|
12
|
+
// Copyright 2019-2022 @polkadot/extension authors & contributors
|
|
13
13
|
// SPDX-License-Identifier: Apache-2.0
|
|
14
14
|
class RequestBytesSign {
|
|
15
15
|
constructor(payload) {
|
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
|
|
8
|
-
// Copyright 2019-2022 @
|
|
8
|
+
// Copyright 2019-2022 @polkadot/extension authors & contributors
|
|
9
9
|
// SPDX-License-Identifier: Apache-2.0
|
|
10
10
|
class RequestExtrinsicSign {
|
|
11
11
|
constructor(payload) {
|
|
@@ -24,7 +24,7 @@ var _helpers = require("./helpers");
|
|
|
24
24
|
|
|
25
25
|
var _subscriptions = require("./subscriptions");
|
|
26
26
|
|
|
27
|
-
// Copyright 2019-2022 @
|
|
27
|
+
// Copyright 2019-2022 @polkadot/extension authors & contributors
|
|
28
28
|
// SPDX-License-Identifier: Apache-2.0
|
|
29
29
|
const SEED_DEFAULT_LENGTH = 12;
|
|
30
30
|
exports.SEED_DEFAULT_LENGTH = SEED_DEFAULT_LENGTH;
|
|
@@ -23,7 +23,7 @@ var _stores = require("../../stores");
|
|
|
23
23
|
|
|
24
24
|
var _helpers = require("./helpers");
|
|
25
25
|
|
|
26
|
-
// Copyright 2019-2022 @
|
|
26
|
+
// Copyright 2019-2022 @polkadot/extension-bg authors & contributors
|
|
27
27
|
// SPDX-License-Identifier: Apache-2.0
|
|
28
28
|
const NOTIFICATION_URL = chrome.extension.getURL('notification.html');
|
|
29
29
|
const POPUP_WINDOW_OPTS = {
|
|
@@ -27,7 +27,7 @@ var _helpers = require("./helpers");
|
|
|
27
27
|
|
|
28
28
|
var _subscriptions = require("./subscriptions");
|
|
29
29
|
|
|
30
|
-
// Copyright 2019-2022 @
|
|
30
|
+
// Copyright 2019-2022 @polkadot/extension authors & contributors
|
|
31
31
|
// SPDX-License-Identifier: Apache-2.0
|
|
32
32
|
function transformAccounts(accounts) {
|
|
33
33
|
let anyType = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.withErrorLog = withErrorLog;
|
|
7
7
|
|
|
8
|
-
// Copyright 2019-2022 @
|
|
8
|
+
// Copyright 2019-2022 @polkadot/extension authors & contributors
|
|
9
9
|
// SPDX-License-Identifier: Apache-2.0
|
|
10
10
|
function withErrorLog(fn) {
|
|
11
11
|
try {
|
|
@@ -17,7 +17,7 @@ var _State = _interopRequireDefault(require("./State"));
|
|
|
17
17
|
|
|
18
18
|
var _Tabs = _interopRequireDefault(require("./Tabs"));
|
|
19
19
|
|
|
20
|
-
// Copyright 2019-2022 @
|
|
20
|
+
// Copyright 2019-2022 @polkadot/extension authors & contributors
|
|
21
21
|
// SPDX-License-Identifier: Apache-2.0
|
|
22
22
|
const state = new _State.default();
|
|
23
23
|
const extension = new _Extension.default(state);
|
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.createSubscription = createSubscription;
|
|
7
7
|
exports.isSubscriptionRunning = isSubscriptionRunning;
|
|
8
8
|
exports.unsubscribe = unsubscribe;
|
|
9
|
-
// Copyright 2019-2022 @
|
|
9
|
+
// Copyright 2019-2022 @polkadot/extension authors & contributors
|
|
10
10
|
// SPDX-License-Identifier: Apache-2.0
|
|
11
11
|
const subscriptions = {}; // return a subscription callback, that will send the data to the caller via the port
|
|
12
12
|
|
package/cjs/defaults.js
CHANGED
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.PORT_EXTENSION = exports.PORT_CONTENT = exports.PHISHING_PAGE_REDIRECT = exports.PASSWORD_EXPIRY_MS = exports.PASSWORD_EXPIRY_MIN = exports.MESSAGE_ORIGIN_PAGE = exports.MESSAGE_ORIGIN_CONTENT = exports.EXTENSION_PREFIX = exports.ALLOWED_PATH = void 0;
|
|
7
|
-
// Copyright 2019-2022 @
|
|
7
|
+
// Copyright 2019-2022 @polkadot/extension-base authors & contributors
|
|
8
8
|
// SPDX-License-Identifier: Apache-2.0
|
|
9
9
|
const ALLOWED_PATH = ['/', '/account/import-ledger', '/account/restore-json', '/account/create'];
|
|
10
10
|
exports.ALLOWED_PATH = ALLOWED_PATH;
|
package/cjs/packageInfo.js
CHANGED
package/cjs/page/Accounts.js
CHANGED
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
-
// Copyright 2019-2022 @
|
|
7
|
+
// Copyright 2019-2022 @polkadot/extension authors & contributors
|
|
8
8
|
// SPDX-License-Identifier: Apache-2.0
|
|
9
9
|
// External to class, this.# is not private enough (yet)
|
|
10
10
|
let sendRequest;
|
package/cjs/page/Injected.js
CHANGED
|
@@ -15,7 +15,7 @@ var _PostMessageProvider = _interopRequireDefault(require("./PostMessageProvider
|
|
|
15
15
|
|
|
16
16
|
var _Signer = _interopRequireDefault(require("./Signer"));
|
|
17
17
|
|
|
18
|
-
// Copyright 2019-2022 @
|
|
18
|
+
// Copyright 2019-2022 @polkadot/extension authors & contributors
|
|
19
19
|
// SPDX-License-Identifier: Apache-2.0
|
|
20
20
|
class _default {
|
|
21
21
|
constructor(sendRequest) {
|
package/cjs/page/Metadata.js
CHANGED
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
-
// Copyright 2019-2022 @
|
|
7
|
+
// Copyright 2019-2022 @polkadot/extension authors & contributors
|
|
8
8
|
// SPDX-License-Identifier: Apache-2.0
|
|
9
9
|
// External to class, this.# is not private enough (yet)
|
|
10
10
|
let sendRequest;
|
|
@@ -11,7 +11,7 @@ var _eventemitter = _interopRequireDefault(require("eventemitter3"));
|
|
|
11
11
|
|
|
12
12
|
var _util = require("@polkadot/util");
|
|
13
13
|
|
|
14
|
-
// Copyright 2019-2022 @
|
|
14
|
+
// Copyright 2019-2022 @polkadot/extension-base authors & contributors
|
|
15
15
|
// SPDX-License-Identifier: Apache-2.0
|
|
16
16
|
const l = (0, _util.logger)('PostMessageProvider');
|
|
17
17
|
// External to class, this.# is not private enough (yet)
|
package/cjs/page/Signer.js
CHANGED
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
-
// Copyright 2019-2022 @
|
|
7
|
+
// Copyright 2019-2022 @polkadot/extension-base authors & contributors
|
|
8
8
|
// SPDX-License-Identifier: Apache-2.0
|
|
9
9
|
// External to class, this.# is not private enough (yet)
|
|
10
10
|
let sendRequest;
|
package/cjs/page/index.js
CHANGED
|
@@ -16,7 +16,7 @@ var _getId = require("../utils/getId");
|
|
|
16
16
|
|
|
17
17
|
var _Injected = _interopRequireDefault(require("./Injected"));
|
|
18
18
|
|
|
19
|
-
// Copyright 2019-2022 @
|
|
19
|
+
// Copyright 2019-2022 @polkadot/extension authors & contributors
|
|
20
20
|
// SPDX-License-Identifier: Apache-2.0
|
|
21
21
|
const handlers = {}; // a generic message sender that creates an event, returning a promise that will
|
|
22
22
|
// resolve once the event is resolved (by the response listener just below this)
|
package/cjs/stores/Accounts.js
CHANGED
|
@@ -11,7 +11,7 @@ var _defaults = require("../defaults");
|
|
|
11
11
|
|
|
12
12
|
var _Base = _interopRequireDefault(require("./Base"));
|
|
13
13
|
|
|
14
|
-
// Copyright 2019-2022 @
|
|
14
|
+
// Copyright 2019-2022 @polkadot/extension-base authors & contributors
|
|
15
15
|
// SPDX-License-Identifier: Apache-2.0
|
|
16
16
|
class AccountsStore extends _Base.default {
|
|
17
17
|
constructor() {
|
package/cjs/stores/Base.js
CHANGED
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
|
|
8
|
-
// Copyright 2019-2022 @
|
|
8
|
+
// Copyright 2019-2022 @polkadot/extension-base authors & contributors
|
|
9
9
|
// SPDX-License-Identifier: Apache-2.0
|
|
10
10
|
const lastError = type => {
|
|
11
11
|
const error = chrome.runtime.lastError;
|
package/cjs/stores/Metadata.js
CHANGED
|
@@ -11,7 +11,7 @@ var _defaults = require("../defaults");
|
|
|
11
11
|
|
|
12
12
|
var _Base = _interopRequireDefault(require("./Base"));
|
|
13
13
|
|
|
14
|
-
// Copyright 2019-2022 @
|
|
14
|
+
// Copyright 2019-2022 @polkadot/extension-base authors & contributors
|
|
15
15
|
// SPDX-License-Identifier: Apache-2.0
|
|
16
16
|
class MetadataStore extends _Base.default {
|
|
17
17
|
constructor() {
|
package/cjs/utils/canDerive.js
CHANGED
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.canDerive = canDerive;
|
|
7
7
|
|
|
8
|
-
// Copyright 2019-2022 @
|
|
8
|
+
// Copyright 2019-2022 @polkadot/extension authors & contributors
|
|
9
9
|
// SPDX-License-Identifier: Apache-2.0
|
|
10
10
|
function canDerive(type) {
|
|
11
11
|
return !!type && ['ed25519', 'sr25519', 'ecdsa', 'ethereum'].includes(type);
|
package/cjs/utils/getId.js
CHANGED
|
@@ -7,7 +7,7 @@ exports.getId = getId;
|
|
|
7
7
|
|
|
8
8
|
var _defaults = require("../defaults");
|
|
9
9
|
|
|
10
|
-
// Copyright 2019-2022 @
|
|
10
|
+
// Copyright 2019-2022 @polkadot/extension authors & contributors
|
|
11
11
|
// SPDX-License-Identifier: Apache-2.0
|
|
12
12
|
let counter = 0;
|
|
13
13
|
|
package/defaults.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright 2019-2022 @
|
|
1
|
+
// Copyright 2019-2022 @polkadot/extension-base authors & contributors
|
|
2
2
|
// SPDX-License-Identifier: Apache-2.0
|
|
3
3
|
const ALLOWED_PATH = ['/', '/account/import-ledger', '/account/restore-json', '/account/create'];
|
|
4
4
|
const PHISHING_PAGE_REDIRECT = '/phishing-page-detected';
|
package/index.js
CHANGED
package/package.json
CHANGED
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"./cjs/detectPackage.js"
|
|
18
18
|
],
|
|
19
19
|
"type": "module",
|
|
20
|
-
"version": "0.4.2-
|
|
20
|
+
"version": "0.4.2-2",
|
|
21
21
|
"main": "./cjs/index.js",
|
|
22
22
|
"module": "./index.js",
|
|
23
23
|
"types": "./index.d.ts",
|
|
@@ -199,9 +199,9 @@
|
|
|
199
199
|
"@polkadot/ui-settings": "^0.89.1",
|
|
200
200
|
"@polkadot/util": "^8.3.1",
|
|
201
201
|
"@polkadot/util-crypto": "^8.3.1",
|
|
202
|
-
"@subwallet/extension-chains": "^0.4.2-
|
|
203
|
-
"@subwallet/extension-dapp": "^0.4.2-
|
|
204
|
-
"@subwallet/extension-inject": "^0.4.2-
|
|
202
|
+
"@subwallet/extension-chains": "^0.4.2-2",
|
|
203
|
+
"@subwallet/extension-dapp": "^0.4.2-2",
|
|
204
|
+
"@subwallet/extension-inject": "^0.4.2-2",
|
|
205
205
|
"ethereumjs-tx": "^2.1.2",
|
|
206
206
|
"eventemitter3": "^4.0.7",
|
|
207
207
|
"rxjs": "^7.5.1",
|
package/packageInfo.js
CHANGED
|
@@ -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.4.2-
|
|
8
|
+
version: '0.4.2-2'
|
|
9
9
|
};
|
package/page/Accounts.js
CHANGED
package/page/Injected.js
CHANGED
package/page/Metadata.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright 2019-2022 @
|
|
1
|
+
// Copyright 2019-2022 @polkadot/extension-base authors & contributors
|
|
2
2
|
// SPDX-License-Identifier: Apache-2.0
|
|
3
3
|
import EventEmitter from 'eventemitter3';
|
|
4
4
|
import { isUndefined, logger } from '@polkadot/util';
|
package/page/Signer.js
CHANGED
package/page/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright 2019-2022 @
|
|
1
|
+
// Copyright 2019-2022 @polkadot/extension authors & contributors
|
|
2
2
|
// SPDX-License-Identifier: Apache-2.0
|
|
3
3
|
import { MESSAGE_ORIGIN_PAGE } from "../defaults.js";
|
|
4
4
|
import { getId } from "../utils/getId.js";
|
package/stores/Accounts.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright 2019-2022 @
|
|
1
|
+
// Copyright 2019-2022 @polkadot/extension-base authors & contributors
|
|
2
2
|
// SPDX-License-Identifier: Apache-2.0
|
|
3
3
|
import { EXTENSION_PREFIX } from "../defaults.js";
|
|
4
4
|
import BaseStore from "./Base.js";
|
package/stores/Base.js
CHANGED
package/stores/Metadata.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright 2019-2022 @
|
|
1
|
+
// Copyright 2019-2022 @polkadot/extension-base authors & contributors
|
|
2
2
|
// SPDX-License-Identifier: Apache-2.0
|
|
3
3
|
import { EXTENSION_PREFIX } from "../defaults.js";
|
|
4
4
|
import BaseStore from "./Base.js";
|
package/stores/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright 2019-2022 @
|
|
1
|
+
// Copyright 2019-2022 @polkadot/extension-base authors & contributors
|
|
2
2
|
// SPDX-License-Identifier: Apache-2.0
|
|
3
3
|
export { default as AccountsStore } from "./Accounts.js";
|
|
4
4
|
export { default as MetadataStore } from "./Metadata.js";
|
package/utils/canDerive.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright 2019-2022 @
|
|
1
|
+
// Copyright 2019-2022 @polkadot/extension authors & contributors
|
|
2
2
|
// SPDX-License-Identifier: Apache-2.0
|
|
3
3
|
export function canDerive(type) {
|
|
4
4
|
return !!type && ['ed25519', 'sr25519', 'ecdsa', 'ethereum'].includes(type);
|
package/utils/getId.js
CHANGED
package/utils/index.js
CHANGED