@exodus/web3-ethereum 1.4.3 → 1.4.4
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.
- package/lib/provider/storage.d.ts +1 -1
- package/lib/rpc-handlers/exposeHandlers.d.ts +1 -1
- package/lib/rpc-handlers/exposeHandlers.js +1 -1
- package/lib/rpc-handlers/index.d.ts +1 -1
- package/lib/rpc-handlers/index.js +1 -1
- package/lib/simulation/simulation.d.ts +1 -1
- package/lib/simulation/utils.js +2 -1
- package/lib/wallet-standard/wallet.d.ts +1 -1
- package/package.json +8 -7
|
@@ -1,4 +1,4 @@
|
|
|
1
|
+
import type { EVMDeps } from '../types.js';
|
|
1
2
|
import type RPC from '@exodus/json-rpc';
|
|
2
3
|
import type { AppDeps, WalletDeps } from '@exodus/web3-types';
|
|
3
|
-
import type { EVMDeps } from '../types.js';
|
|
4
4
|
export declare function exposeHandlers(rpc: typeof RPC, deps: AppDeps & EVMDeps & WalletDeps): void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { getTransactionId, signMessage, signTransaction, signTypedData, } from '@exodus/web3-ethereum-utils';
|
|
2
1
|
import { AssetNotSupportedError, InvalidInputError, UnauthorizedError, UserRejectedRequestError, } from '@exodus/web3-errors';
|
|
2
|
+
import { getTransactionId, signMessage, signTransaction, signTypedData, } from '@exodus/web3-ethereum-utils';
|
|
3
3
|
import { SignTypedDataVersion } from '@metamask/eth-sig-util';
|
|
4
4
|
import { parseAndValidateTypedData } from './parseAndValidateTypedData.js';
|
|
5
5
|
// See: https://eips.ethereum.org/EIPS/eip-2255.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { validate as validateDeps, validateCommonDeps, } from '@exodus/web3-rpc-handlers';
|
|
2
1
|
import { RPC_REQUEST_TIMEOUT } from '@exodus/web3-constants';
|
|
2
|
+
import { validate as validateDeps, validateCommonDeps, } from '@exodus/web3-rpc-handlers';
|
|
3
3
|
import { exposeHandlers } from './exposeHandlers.js';
|
|
4
4
|
import { validateRequest } from './validator.js';
|
|
5
5
|
const validateEVMDeps = (evm) => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { EthTransaction } from '@exodus/web3-ethereum-utils';
|
|
2
1
|
import type { Asset, EthBalanceChanges } from './types.js';
|
|
2
|
+
import type { EthTransaction } from '@exodus/web3-ethereum-utils';
|
|
3
3
|
export declare const simulateTransaction: (asset: Asset, transaction: EthTransaction) => Promise<{
|
|
4
4
|
assetName: string;
|
|
5
5
|
advancedDetails: never[];
|
package/lib/simulation/utils.js
CHANGED
|
@@ -10,7 +10,8 @@ export function getEthereumDisplayInfo(balanceChanges) {
|
|
|
10
10
|
const isApproveTransaction = balanceChanges.willApprove.length;
|
|
11
11
|
if (isApproveTransaction) {
|
|
12
12
|
const tokenName = balanceChanges.willApprove[0].unitName;
|
|
13
|
-
title
|
|
13
|
+
// Don't change the title if 'tokenName' is undefined
|
|
14
|
+
title = tokenName ? `Approve ${tokenName} Transactions?` : title;
|
|
14
15
|
}
|
|
15
16
|
return { title };
|
|
16
17
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { Wallet } from '@wallet-standard/base';
|
|
2
1
|
import type { EthereumProvider } from '../provider/provider.js';
|
|
2
|
+
import type { Wallet } from '@wallet-standard/base';
|
|
3
3
|
export declare type EthereumProviderFeature = {
|
|
4
4
|
'ethereum:provider': {
|
|
5
5
|
provider: EthereumProvider;
|
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": "1.4.
|
|
4
|
+
"version": "1.4.4",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
7
7
|
"module": "lib/index.js",
|
|
@@ -33,21 +33,22 @@
|
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@exodus/currency": "^2.1.2",
|
|
35
35
|
"@exodus/ethereum-api": "^3.2.4",
|
|
36
|
-
"@exodus/web3-constants": "^1.
|
|
37
|
-
"@exodus/web3-ethereum-utils": "^1.
|
|
38
|
-
"@exodus/web3-provider": "^2.
|
|
36
|
+
"@exodus/web3-constants": "^1.14.0",
|
|
37
|
+
"@exodus/web3-ethereum-utils": "^1.8.0",
|
|
38
|
+
"@exodus/web3-provider": "^2.12.0",
|
|
39
|
+
"@exodus/web3-rpc-handlers": "^0.7.0",
|
|
39
40
|
"eth-rpc-errors": "^4.0.3"
|
|
40
41
|
},
|
|
41
42
|
"devDependencies": {
|
|
42
43
|
"@exodus/assets": "^8.0.72",
|
|
43
44
|
"@exodus/json-rpc": "^1.11.0",
|
|
44
45
|
"@exodus/schemasafe": "^1.0.0",
|
|
45
|
-
"@exodus/web3-types": "^1.
|
|
46
|
-
"@exodus/web3-validation": "^1.
|
|
46
|
+
"@exodus/web3-types": "^1.10.0",
|
|
47
|
+
"@exodus/web3-validation": "^1.29.0",
|
|
47
48
|
"@wallet-standard/base": "^1.0.1"
|
|
48
49
|
},
|
|
49
50
|
"peerDependencies": {
|
|
50
51
|
"@exodus/assets": "^8.0.72"
|
|
51
52
|
},
|
|
52
|
-
"gitHead": "
|
|
53
|
+
"gitHead": "4d705ac22b258fc6290d9a643dfab3880605be48"
|
|
53
54
|
}
|