@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.
Files changed (50) hide show
  1. package/background/KoniTypes.d.ts +5 -0
  2. package/background/KoniTypes.js +1 -1
  3. package/background/RequestBytesSign.js +1 -1
  4. package/background/RequestExtrinsicSign.js +1 -1
  5. package/background/handlers/Extension.js +1 -1
  6. package/background/handlers/State.js +1 -1
  7. package/background/handlers/Tabs.js +1 -1
  8. package/background/handlers/helpers.js +1 -1
  9. package/background/handlers/index.js +1 -1
  10. package/background/handlers/subscriptions.js +1 -1
  11. package/bundle.js +1 -1
  12. package/cjs/background/KoniTypes.js +1 -1
  13. package/cjs/background/RequestBytesSign.js +1 -1
  14. package/cjs/background/RequestExtrinsicSign.js +1 -1
  15. package/cjs/background/handlers/Extension.js +1 -1
  16. package/cjs/background/handlers/State.js +1 -1
  17. package/cjs/background/handlers/Tabs.js +1 -1
  18. package/cjs/background/handlers/helpers.js +1 -1
  19. package/cjs/background/handlers/index.js +1 -1
  20. package/cjs/background/handlers/subscriptions.js +1 -1
  21. package/cjs/defaults.js +1 -1
  22. package/cjs/packageInfo.js +1 -1
  23. package/cjs/page/Accounts.js +1 -1
  24. package/cjs/page/Injected.js +1 -1
  25. package/cjs/page/Metadata.js +1 -1
  26. package/cjs/page/PostMessageProvider.js +1 -1
  27. package/cjs/page/Signer.js +1 -1
  28. package/cjs/page/index.js +1 -1
  29. package/cjs/stores/Accounts.js +1 -1
  30. package/cjs/stores/Base.js +1 -1
  31. package/cjs/stores/Metadata.js +1 -1
  32. package/cjs/utils/canDerive.js +1 -1
  33. package/cjs/utils/getId.js +1 -1
  34. package/defaults.js +1 -1
  35. package/index.js +1 -1
  36. package/package.json +4 -4
  37. package/packageInfo.js +1 -1
  38. package/page/Accounts.js +1 -1
  39. package/page/Injected.js +1 -1
  40. package/page/Metadata.js +1 -1
  41. package/page/PostMessageProvider.js +1 -1
  42. package/page/Signer.js +1 -1
  43. package/page/index.js +1 -1
  44. package/stores/Accounts.js +1 -1
  45. package/stores/Base.js +1 -1
  46. package/stores/Metadata.js +1 -1
  47. package/stores/index.js +1 -1
  48. package/utils/canDerive.js +1 -1
  49. package/utils/getId.js +1 -1
  50. 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];
@@ -1,4 +1,4 @@
1
- // Copyright 2019-2022 @subwallet/extension-koni authors & contributors
1
+ // Copyright 2019-2022 @polkadot/extension-koni authors & contributors
2
2
  // SPDX-License-Identifier: Apache-2.0
3
3
  export let ApiInitStatus;
4
4
 
@@ -1,4 +1,4 @@
1
- // Copyright 2019-2022 @subwallet/extension authors & contributors
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 @subwallet/extension authors & contributors
1
+ // Copyright 2019-2022 @polkadot/extension authors & contributors
2
2
  // SPDX-License-Identifier: Apache-2.0
3
3
  export default class RequestExtrinsicSign {
4
4
  constructor(payload) {
@@ -1,4 +1,4 @@
1
- // Copyright 2019-2022 @subwallet/extension authors & contributors
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 @subwallet/extension-bg authors & contributors
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 @subwallet/extension authors & contributors
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 @subwallet/extension authors & contributors
1
+ // Copyright 2019-2022 @polkadot/extension authors & contributors
2
2
  // SPDX-License-Identifier: Apache-2.0
3
3
  export function withErrorLog(fn) {
4
4
  try {
@@ -1,4 +1,4 @@
1
- // Copyright 2019-2022 @subwallet/extension authors & contributors
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 @subwallet/extension authors & contributors
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
@@ -1,3 +1,3 @@
1
- // Copyright 2019-2022 @subwallet/extension-base authors & contributors
1
+ // Copyright 2019-2022 @polkadot/extension-base authors & contributors
2
2
  // SPDX-License-Identifier: Apache-2.0
3
3
  export { packageInfo } from "./packageInfo.js";
@@ -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 @subwallet/extension-koni authors & contributors
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 @subwallet/extension authors & contributors
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 @subwallet/extension authors & contributors
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 @subwallet/extension authors & contributors
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 @subwallet/extension-bg authors & contributors
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 @subwallet/extension authors & contributors
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 @subwallet/extension authors & contributors
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 @subwallet/extension authors & contributors
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 @subwallet/extension authors & contributors
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 @subwallet/extension-base authors & contributors
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;
@@ -11,6 +11,6 @@ const packageInfo = {
11
11
  name: '@subwallet/extension-base',
12
12
  path: typeof __dirname === 'string' ? __dirname : 'auto',
13
13
  type: 'cjs',
14
- version: '0.4.2-1'
14
+ version: '0.4.2-2'
15
15
  };
16
16
  exports.packageInfo = packageInfo;
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.default = void 0;
7
- // Copyright 2019-2022 @subwallet/extension authors & contributors
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;
@@ -15,7 +15,7 @@ var _PostMessageProvider = _interopRequireDefault(require("./PostMessageProvider
15
15
 
16
16
  var _Signer = _interopRequireDefault(require("./Signer"));
17
17
 
18
- // Copyright 2019-2022 @subwallet/extension authors & contributors
18
+ // Copyright 2019-2022 @polkadot/extension authors & contributors
19
19
  // SPDX-License-Identifier: Apache-2.0
20
20
  class _default {
21
21
  constructor(sendRequest) {
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.default = void 0;
7
- // Copyright 2019-2022 @subwallet/extension authors & contributors
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 @subwallet/extension-base authors & contributors
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)
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.default = void 0;
7
- // Copyright 2019-2022 @subwallet/extension-base authors & contributors
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 @subwallet/extension authors & contributors
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)
@@ -11,7 +11,7 @@ var _defaults = require("../defaults");
11
11
 
12
12
  var _Base = _interopRequireDefault(require("./Base"));
13
13
 
14
- // Copyright 2019-2022 @subwallet/extension-base authors & contributors
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() {
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.default = void 0;
7
7
 
8
- // Copyright 2019-2022 @subwallet/extension-base authors & contributors
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;
@@ -11,7 +11,7 @@ var _defaults = require("../defaults");
11
11
 
12
12
  var _Base = _interopRequireDefault(require("./Base"));
13
13
 
14
- // Copyright 2019-2022 @subwallet/extension-base authors & contributors
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() {
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.canDerive = canDerive;
7
7
 
8
- // Copyright 2019-2022 @subwallet/extension authors & contributors
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);
@@ -7,7 +7,7 @@ exports.getId = getId;
7
7
 
8
8
  var _defaults = require("../defaults");
9
9
 
10
- // Copyright 2019-2022 @subwallet/extension authors & contributors
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 @subwallet/extension-base authors & contributors
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
@@ -1,4 +1,4 @@
1
- // Copyright 2019-2022 @subwallet/extension-base authors & contributors
1
+ // Copyright 2019-2022 @polkadot/extension-base authors & contributors
2
2
  // SPDX-License-Identifier: Apache-2.0
3
3
  // Since we inject into pages, we skip this
4
4
  // import './detectPackage';
package/package.json CHANGED
@@ -17,7 +17,7 @@
17
17
  "./cjs/detectPackage.js"
18
18
  ],
19
19
  "type": "module",
20
- "version": "0.4.2-1",
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-1",
203
- "@subwallet/extension-dapp": "^0.4.2-1",
204
- "@subwallet/extension-inject": "^0.4.2-1",
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-1'
8
+ version: '0.4.2-2'
9
9
  };
package/page/Accounts.js CHANGED
@@ -1,4 +1,4 @@
1
- // Copyright 2019-2022 @subwallet/extension authors & contributors
1
+ // Copyright 2019-2022 @polkadot/extension authors & contributors
2
2
  // SPDX-License-Identifier: Apache-2.0
3
3
  // External to class, this.# is not private enough (yet)
4
4
  let sendRequest;
package/page/Injected.js CHANGED
@@ -1,4 +1,4 @@
1
- // Copyright 2019-2022 @subwallet/extension authors & contributors
1
+ // Copyright 2019-2022 @polkadot/extension authors & contributors
2
2
  // SPDX-License-Identifier: Apache-2.0
3
3
  import Accounts from "./Accounts.js";
4
4
  import Metadata from "./Metadata.js";
package/page/Metadata.js CHANGED
@@ -1,4 +1,4 @@
1
- // Copyright 2019-2022 @subwallet/extension authors & contributors
1
+ // Copyright 2019-2022 @polkadot/extension authors & contributors
2
2
  // SPDX-License-Identifier: Apache-2.0
3
3
  // External to class, this.# is not private enough (yet)
4
4
  let sendRequest;
@@ -1,4 +1,4 @@
1
- // Copyright 2019-2022 @subwallet/extension-base authors & contributors
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
@@ -1,4 +1,4 @@
1
- // Copyright 2019-2022 @subwallet/extension-base authors & contributors
1
+ // Copyright 2019-2022 @polkadot/extension-base authors & contributors
2
2
  // SPDX-License-Identifier: Apache-2.0
3
3
  // External to class, this.# is not private enough (yet)
4
4
  let sendRequest;
package/page/index.js CHANGED
@@ -1,4 +1,4 @@
1
- // Copyright 2019-2022 @subwallet/extension authors & contributors
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";
@@ -1,4 +1,4 @@
1
- // Copyright 2019-2022 @subwallet/extension-base authors & contributors
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
@@ -1,4 +1,4 @@
1
- // Copyright 2019-2022 @subwallet/extension-base authors & contributors
1
+ // Copyright 2019-2022 @polkadot/extension-base authors & contributors
2
2
  // SPDX-License-Identifier: Apache-2.0
3
3
  const lastError = type => {
4
4
  const error = chrome.runtime.lastError;
@@ -1,4 +1,4 @@
1
- // Copyright 2019-2022 @subwallet/extension-base authors & contributors
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 @subwallet/extension-base authors & contributors
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";
@@ -1,4 +1,4 @@
1
- // Copyright 2019-2022 @subwallet/extension authors & contributors
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
@@ -1,4 +1,4 @@
1
- // Copyright 2019-2022 @subwallet/extension authors & contributors
1
+ // Copyright 2019-2022 @polkadot/extension authors & contributors
2
2
  // SPDX-License-Identifier: Apache-2.0
3
3
  import { EXTENSION_PREFIX } from "../defaults.js";
4
4
  let counter = 0;
package/utils/index.js CHANGED
@@ -1,3 +1,3 @@
1
- // Copyright 2019-2022 @subwallet/extension authors & contributors
1
+ // Copyright 2019-2022 @polkadot/extension authors & contributors
2
2
  // SPDX-License-Identifier: Apache-2.0
3
3
  export { canDerive } from "./canDerive.js";