@exodus/web3-ethereum 2.2.0 → 2.4.0
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.
|
@@ -2790,21 +2790,22 @@ export function parseAndValidateTypedData(value) {
|
|
|
2790
2790
|
return false
|
|
2791
2791
|
if (!(data.domain.name !== undefined && hasOwn(data.domain, 'name')))
|
|
2792
2792
|
return false
|
|
2793
|
-
if (
|
|
2794
|
-
!(data.domain.version !== undefined && hasOwn(data.domain, 'version'))
|
|
2795
|
-
)
|
|
2796
|
-
return false
|
|
2797
2793
|
if (!(typeof data.domain.name === 'string')) return false
|
|
2798
2794
|
if (data.domain.name.length > 50 && stringLength(data.domain.name) > 50)
|
|
2799
2795
|
return false
|
|
2800
2796
|
if (!format0.test(data.domain.name)) return false
|
|
2801
|
-
if (!(typeof data.domain.version === 'string')) return false
|
|
2802
2797
|
if (
|
|
2803
|
-
data.domain.version
|
|
2804
|
-
|
|
2805
|
-
)
|
|
2806
|
-
return false
|
|
2807
|
-
|
|
2798
|
+
data.domain.version !== undefined &&
|
|
2799
|
+
hasOwn(data.domain, 'version')
|
|
2800
|
+
) {
|
|
2801
|
+
if (!(typeof data.domain.version === 'string')) return false
|
|
2802
|
+
if (
|
|
2803
|
+
data.domain.version.length > 255 &&
|
|
2804
|
+
stringLength(data.domain.version) > 255
|
|
2805
|
+
)
|
|
2806
|
+
return false
|
|
2807
|
+
if (!format1.test(data.domain.version)) return false
|
|
2808
|
+
}
|
|
2808
2809
|
if (
|
|
2809
2810
|
data.domain.chainId !== undefined &&
|
|
2810
2811
|
hasOwn(data.domain, 'chainId')
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { EthBalanceChanges } from './types.js';
|
|
2
2
|
import type { EthTransaction } from '@exodus/web3-ethereum-utils';
|
|
3
|
+
import type { Asset, NumberUnit } from '@exodus/web3-types';
|
|
3
4
|
export declare const simulateTransaction: (asset: Asset, transaction: EthTransaction) => Promise<{
|
|
4
5
|
assetName: string;
|
|
5
6
|
advancedDetails: never[];
|
|
@@ -7,7 +8,7 @@ export declare const simulateTransaction: (asset: Asset, transaction: EthTransac
|
|
|
7
8
|
displayInfo: {
|
|
8
9
|
title: string;
|
|
9
10
|
};
|
|
10
|
-
txFee:
|
|
11
|
+
txFee: NumberUnit;
|
|
11
12
|
txFeeDetails: {
|
|
12
13
|
gasLimit: number;
|
|
13
14
|
maxFeePerGas: number | undefined;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@exodus/web3-ethereum",
|
|
3
3
|
"description": "Apps connectivity library for EVM-compatible chains.",
|
|
4
|
-
"version": "2.
|
|
4
|
+
"version": "2.4.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
7
7
|
"module": "lib/index.js",
|
|
@@ -33,22 +33,22 @@
|
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@exodus/currency": "^2.1.2",
|
|
35
35
|
"@exodus/ethereum-api": "^6.0.0",
|
|
36
|
-
"@exodus/web3-constants": "^1.
|
|
36
|
+
"@exodus/web3-constants": "^1.18.0",
|
|
37
37
|
"@exodus/web3-ethereum-utils": "^1.8.0",
|
|
38
|
-
"@exodus/web3-provider": "^2.
|
|
39
|
-
"@exodus/web3-rpc-handlers": "^0.
|
|
38
|
+
"@exodus/web3-provider": "^2.16.0",
|
|
39
|
+
"@exodus/web3-rpc-handlers": "^0.13.0",
|
|
40
40
|
"eth-rpc-errors": "^4.0.3"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
43
|
"@exodus/assets": "^8.0.72",
|
|
44
44
|
"@exodus/json-rpc": "^1.11.0",
|
|
45
45
|
"@exodus/schemasafe": "^1.0.0",
|
|
46
|
-
"@exodus/web3-types": "^1.
|
|
47
|
-
"@exodus/web3-validation": "^1.
|
|
46
|
+
"@exodus/web3-types": "^1.14.0",
|
|
47
|
+
"@exodus/web3-validation": "^1.33.0",
|
|
48
48
|
"@wallet-standard/base": "^1.0.1"
|
|
49
49
|
},
|
|
50
50
|
"peerDependencies": {
|
|
51
51
|
"@exodus/assets": "^8.0.72"
|
|
52
52
|
},
|
|
53
|
-
"gitHead": "
|
|
53
|
+
"gitHead": "3bfe3ffd37584b844b60cef81a2d951cb867438e"
|
|
54
54
|
}
|