@onekeyfe/onekey-bfc-provider 2.2.26 → 2.2.28

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.
@@ -7,7 +7,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
7
7
  step((generator = generator.apply(thisArg, _arguments || [])).next());
8
8
  });
9
9
  };
10
- import { bytesToHex } from '@noble/hashes/utils';
10
+ import { bytesToHex } from '@onekeyfe/cross-inpage-provider-core';
11
11
  import { getOrCreateExtInjectedJsBridge } from '@onekeyfe/extension-bridge-injected';
12
12
  import { ProviderBfcBase } from './ProviderBfcBase';
13
13
  import { web3Errors } from '@onekeyfe/cross-inpage-provider-errors';
@@ -7,7 +7,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
7
7
  step((generator = generator.apply(thisArg, _arguments || [])).next());
8
8
  });
9
9
  };
10
- import { hexToBytes } from '@noble/hashes/utils';
10
+ import { hexToBytes } from '@onekeyfe/cross-inpage-provider-core';
11
11
  import mitt from 'mitt';
12
12
  import { ReadonlyWalletAccount, registerWallet, BFC_DEVNET_CHAIN, BFC_TESTNET_CHAIN, } from '@benfen/bfc.js/wallet-standard';
13
13
  import { ALL_PERMISSION_TYPES } from './types';
@@ -10,7 +10,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.ProviderBfc = void 0;
13
- const utils_1 = require("@noble/hashes/utils");
13
+ const cross_inpage_provider_core_1 = require("@onekeyfe/cross-inpage-provider-core");
14
14
  const extension_bridge_injected_1 = require("@onekeyfe/extension-bridge-injected");
15
15
  const ProviderBfcBase_1 = require("./ProviderBfcBase");
16
16
  const cross_inpage_provider_errors_1 = require("@onekeyfe/cross-inpage-provider-errors");
@@ -159,7 +159,7 @@ class ProviderBfc extends ProviderBfcBase_1.ProviderBfcBase {
159
159
  return __awaiter(this, void 0, void 0, function* () {
160
160
  return this._callBridge({
161
161
  method: 'signMessage',
162
- params: Object.assign(Object.assign({}, input), { walletSerialize: JSON.stringify(input.account), messageSerialize: (0, utils_1.bytesToHex)(input.message) }),
162
+ params: Object.assign(Object.assign({}, input), { walletSerialize: JSON.stringify(input.account), messageSerialize: (0, cross_inpage_provider_core_1.bytesToHex)(input.message) }),
163
163
  });
164
164
  });
165
165
  }
@@ -167,7 +167,7 @@ class ProviderBfc extends ProviderBfcBase_1.ProviderBfcBase {
167
167
  return __awaiter(this, void 0, void 0, function* () {
168
168
  return this._callBridge({
169
169
  method: 'signPersonalMessage',
170
- params: Object.assign(Object.assign({}, input), { walletSerialize: JSON.stringify(input.account), messageSerialize: (0, utils_1.bytesToHex)(input.message) }),
170
+ params: Object.assign(Object.assign({}, input), { walletSerialize: JSON.stringify(input.account), messageSerialize: (0, cross_inpage_provider_core_1.bytesToHex)(input.message) }),
171
171
  });
172
172
  });
173
173
  }
@@ -13,7 +13,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
13
13
  };
14
14
  Object.defineProperty(exports, "__esModule", { value: true });
15
15
  exports.registerBfcWallet = registerBfcWallet;
16
- const utils_1 = require("@noble/hashes/utils");
16
+ const cross_inpage_provider_core_1 = require("@onekeyfe/cross-inpage-provider-core");
17
17
  const mitt_1 = __importDefault(require("mitt"));
18
18
  const wallet_standard_1 = require("@benfen/bfc.js/wallet-standard");
19
19
  const types_1 = require("./types");
@@ -126,7 +126,7 @@ class OnekeyBfcStandardWallet {
126
126
  const activateChain = yield this.getActiveChain();
127
127
  this._account = new wallet_standard_1.ReadonlyWalletAccount({
128
128
  address: address,
129
- publicKey: (0, utils_1.hexToBytes)(publicKey),
129
+ publicKey: (0, cross_inpage_provider_core_1.hexToBytes)(publicKey),
130
130
  chains: activateChain ? [activateChain] : [],
131
131
  features: [
132
132
  Feature.STANDARD__CONNECT,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onekeyfe/onekey-bfc-provider",
3
- "version": "2.2.26",
3
+ "version": "2.2.28",
4
4
  "keywords": [
5
5
  "cross-inpage-provider"
6
6
  ],
@@ -29,15 +29,15 @@
29
29
  },
30
30
  "dependencies": {
31
31
  "@benfen/bfc.js": "0.2.7",
32
- "@onekeyfe/cross-inpage-provider-core": "2.2.26",
33
- "@onekeyfe/cross-inpage-provider-errors": "2.2.26",
34
- "@onekeyfe/cross-inpage-provider-types": "2.2.26",
35
- "@onekeyfe/extension-bridge-injected": "2.2.26",
32
+ "@onekeyfe/cross-inpage-provider-core": "2.2.28",
33
+ "@onekeyfe/cross-inpage-provider-errors": "2.2.28",
34
+ "@onekeyfe/cross-inpage-provider-types": "2.2.28",
35
+ "@onekeyfe/extension-bridge-injected": "2.2.28",
36
36
  "eth-rpc-errors": "^4.0.3",
37
37
  "mitt": "^3.0.0"
38
38
  },
39
39
  "devDependencies": {
40
40
  "typescript": "^5"
41
41
  },
42
- "gitHead": "bbf6e9bae844ea2d5aaed884a4ace9cc8051569d"
42
+ "gitHead": "473ece52d08eeb9eed490a3172fad5f954338800"
43
43
  }