@exodus/web3-ethereum 12.2.0 → 12.3.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.
|
@@ -62,7 +62,7 @@ const isValidGasLimitValue = (value) => {
|
|
|
62
62
|
return proposedGasLimit.lte(maximumBlockGasLimit);
|
|
63
63
|
};
|
|
64
64
|
export function exposeHandlers(rpc, deps) {
|
|
65
|
-
const { chainId, isTrusted, isAutoApproved, ensureTrusted, approveConnection, approveMessage, approveTransactions, forwardRequest, getAddress, getEstimatedGas, getCustomFeeData, getFeeData, getNonce, sendRawTransaction, simulateEthereumTransactions, scanDomains, onTransactionsSigned = () => { }, onEthWalletWatchAssetRequest = () => { }, isUnlocked = () => true, ensureUnlocked = async () => true, getAsset, getOrigin, getActiveWalletAccountData, transactionSigner, messageSigner, } = deps;
|
|
65
|
+
const { chainId, isTrusted, isAutoApproved, ensureTrusted, approveConnection, approveMessage, approveTransactions, forwardRequest, getAddress, getEstimatedGas, getCustomFeeData, getFeeData, getNonce, sendRawTransaction, simulateEthereumTransactions, scanDomains, onTransactionsSigned = () => { }, onEthWalletWatchAssetRequest = () => { }, isUnlocked = () => true, ensureUnlocked = async () => true, getAsset, getOrigin, getPathname, getActiveWalletAccountData, transactionSigner, messageSigner, } = deps;
|
|
66
66
|
const network = `evm:${chainId}`;
|
|
67
67
|
async function assertTrusted() {
|
|
68
68
|
const trusted = await isTrusted();
|
|
@@ -135,10 +135,11 @@ export function exposeHandlers(rpc, deps) {
|
|
|
135
135
|
const preparedTransaction = await prepareTransaction(transaction);
|
|
136
136
|
validateTransaction(preparedTransaction);
|
|
137
137
|
const origin = getOrigin();
|
|
138
|
+
const pathname = getPathname ? getPathname() : '';
|
|
138
139
|
const simulatedChanges = await simulateEthereumTransactions({
|
|
139
140
|
asset,
|
|
140
141
|
transactions: [preparedTransaction],
|
|
141
|
-
origin,
|
|
142
|
+
origin: origin + pathname,
|
|
142
143
|
});
|
|
143
144
|
await approve(approveTransactions, network, simulatedChanges);
|
|
144
145
|
const modifiedTransaction = await applyCustomFeeRate(preparedTransaction);
|
|
@@ -264,6 +265,7 @@ export function exposeHandlers(rpc, deps) {
|
|
|
264
265
|
isTrusted,
|
|
265
266
|
ensureUnlocked,
|
|
266
267
|
getOrigin,
|
|
268
|
+
getPathname,
|
|
267
269
|
scanDomains,
|
|
268
270
|
}, network);
|
|
269
271
|
return [{ parentCapability: ETH_ACCOUNTS_PERMISSION }];
|
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": "12.
|
|
4
|
+
"version": "12.3.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
7
7
|
"module": "lib/index.js",
|
|
@@ -35,9 +35,9 @@
|
|
|
35
35
|
"@exodus/currency": "^2.1.2",
|
|
36
36
|
"@exodus/ethereum-api": "^6.3.33",
|
|
37
37
|
"@exodus/web3-constants": "^1.30.0",
|
|
38
|
-
"@exodus/web3-ethereum-utils": "^3.27.
|
|
38
|
+
"@exodus/web3-ethereum-utils": "^3.27.1",
|
|
39
39
|
"@exodus/web3-provider": "^3.14.0",
|
|
40
|
-
"@exodus/web3-rpc-handlers": "^2.
|
|
40
|
+
"@exodus/web3-rpc-handlers": "^2.21.0",
|
|
41
41
|
"@exodus/web3-utils": "^1.44.0",
|
|
42
42
|
"bn.js": "^5.2.0",
|
|
43
43
|
"eth-rpc-errors": "^4.0.3"
|
|
@@ -46,10 +46,10 @@
|
|
|
46
46
|
"@exodus/assets": "^8.0.95",
|
|
47
47
|
"@exodus/json-rpc": "^1.11.0",
|
|
48
48
|
"@exodus/schemasafe": "^1.0.0",
|
|
49
|
-
"@exodus/web3-management": "0.
|
|
49
|
+
"@exodus/web3-management": "0.30.0",
|
|
50
50
|
"@exodus/web3-types": "0.0.0",
|
|
51
51
|
"@exodus/web3-validation": "^1.38.0",
|
|
52
52
|
"@wallet-standard/base": "^1.0.1"
|
|
53
53
|
},
|
|
54
|
-
"gitHead": "
|
|
54
|
+
"gitHead": "681ece8a665b56b7ef87c27a983023126560e277"
|
|
55
55
|
}
|