@toruslabs/ethereum-controllers 5.9.0 → 5.9.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.
@@ -11,6 +11,12 @@
11
11
  * MIT license
12
12
  */
13
13
 
14
+ /*!
15
+ * https://github.com/Starcounter-Jack/JSON-Patch
16
+ * (c) 2017-2022 Joachim Wester
17
+ * MIT licensed
18
+ */
19
+
14
20
  /*! https://mths.be/punycode v1.4.1 by @mathias */
15
21
 
16
22
  /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
@@ -22,13 +28,3 @@
22
28
  /*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
23
29
 
24
30
  /*! scure-base - MIT License (c) 2022 Paul Miller (paulmillr.com) */
25
-
26
- /**
27
- * @license
28
- * Lodash (Custom Build) <https://lodash.com/>
29
- * Build: `lodash modularize exports="es" -o ./`
30
- * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
31
- * Released under MIT license <https://lodash.com/license>
32
- * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
33
- * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
34
- */
@@ -1,4 +1,4 @@
1
- import { SignTypedDataVersion } from "@metamask/eth-sig-util";
1
+ import { type SignTypedDataVersion } from "@metamask/eth-sig-util";
2
2
  import { BaseConfig, BaseController, BaseState } from "@toruslabs/base-controllers";
3
3
  import { JRPCRequest, Json } from "@toruslabs/openlogin-jrpc";
4
4
  import NetworkController from "../Network/NetworkController";
@@ -1,10 +1,10 @@
1
- import { EthEncryptedData } from "@metamask/eth-sig-util";
1
+ import { type EthEncryptedData } from "@metamask/eth-sig-util";
2
2
  import { AddChainMessageParams, DecryptMessageParams, EncryptionPublicKeyParams, MessageParams, SwitchChainMessageParams, TypedMessageParams } from "../utils/interfaces";
3
3
  export declare function validateAddress(address: string, propertyName: string): void;
4
4
  export declare function validateSignMessageData(messageData: MessageParams): void;
5
5
  export declare function normalizeMessageData(data: string): string;
6
6
  export declare function validateTypedSignMessageDataV1(messageData: TypedMessageParams): void;
7
- export declare function validateTypedSignMessageDataV3V4(messageData: TypedMessageParams, currentChainId: string): void;
7
+ export declare function validateTypedSignMessageDataV3V4(messageData: TypedMessageParams, currentChainId: string): Promise<void>;
8
8
  export declare function validateEncryptionPublicKeyMessageData(messageData: EncryptionPublicKeyParams): void;
9
9
  export declare function validateDecryptedMessageData(messageData: DecryptMessageParams): void;
10
10
  export declare function parseDecryptMessageData(data: string): EthEncryptedData;
@@ -1,4 +1,4 @@
1
- import { AccessList } from "@ethereumjs/common";
1
+ import { type AccessList } from "@ethereumjs/common";
2
2
  import { SignTypedDataVersion } from "@metamask/eth-sig-util";
3
3
  import { AddressPreferences, BaseBlockTrackerState, NetworkConfig, NetworkState, PaymentTransaction, PollingBlockTrackerConfig, PopupWhitelabelData, ProviderConfig, TRANSACTION_TYPE, TransactionMeta, TransactionStatus, User } from "@toruslabs/base-controllers";
4
4
  import { Json } from "@toruslabs/openlogin-jrpc";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@toruslabs/ethereum-controllers",
3
- "version": "5.9.0",
3
+ "version": "5.9.2",
4
4
  "homepage": "https://github.com/torusresearch/controllers#readme",
5
5
  "license": "ISC",
6
6
  "main": "dist/ethereumControllers.cjs.js",
@@ -24,7 +24,7 @@
24
24
  "@ethereumjs/util": "^9.0.3",
25
25
  "@metamask/eth-sig-util": "^7.0.2",
26
26
  "@metamask/rpc-errors": "^6.2.1",
27
- "@toruslabs/base-controllers": "^5.9.0",
27
+ "@toruslabs/base-controllers": "^5.9.2",
28
28
  "@toruslabs/http-helpers": "^6.1.1",
29
29
  "@toruslabs/openlogin-jrpc": "^8.1.1",
30
30
  "async-mutex": "^0.5.0",
@@ -64,7 +64,7 @@
64
64
  "publishConfig": {
65
65
  "access": "public"
66
66
  },
67
- "gitHead": "9bc6af8c806e9831a4e09c15ee4bb49363c80bb4",
67
+ "gitHead": "ac535b123d480b9e72466fe2d1c935f969c0a451",
68
68
  "devDependencies": {
69
69
  "@nomicfoundation/hardhat-toolbox": "^5.0.0",
70
70
  "hardhat": "^2.22.4"