@subwallet/extension-base 0.3.6-2 → 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.
@@ -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 './State';
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
@@ -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;
@@ -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.3.6-2'
14
+ version: '0.3.6-3'
15
15
  };
16
16
  exports.packageInfo = packageInfo;
package/package.json CHANGED
@@ -17,7 +17,7 @@
17
17
  "./cjs/detectPackage.js"
18
18
  ],
19
19
  "type": "module",
20
- "version": "0.3.6-2",
20
+ "version": "0.3.6-3",
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.3.6-2",
203
- "@subwallet/extension-dapp": "^0.3.6-2",
204
- "@subwallet/extension-inject": "^0.3.6-2",
202
+ "@subwallet/extension-chains": "^0.3.6-3",
203
+ "@subwallet/extension-dapp": "^0.3.6-3",
204
+ "@subwallet/extension-inject": "^0.3.6-3",
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.3.6-2'
8
+ version: '0.3.6-3'
9
9
  };