@exodus/web3-ethereum-utils 3.22.0 → 3.23.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.
|
@@ -14,8 +14,8 @@ export const estimateFee = ({ asset, transaction, }) => {
|
|
|
14
14
|
if (transaction.maxFeePerGas) {
|
|
15
15
|
const maxFeePerGas = hexToBN(transaction.maxFeePerGas);
|
|
16
16
|
const maximumFee = gas.mul(maxFeePerGas);
|
|
17
|
-
return asset.currency.baseUnit(maximumFee);
|
|
17
|
+
return asset.currency.baseUnit(maximumFee.toString());
|
|
18
18
|
}
|
|
19
19
|
const gasPrice = hexToBN(transaction.gasPrice);
|
|
20
|
-
return asset.currency.baseUnit(gas.mul(gasPrice));
|
|
20
|
+
return asset.currency.baseUnit(gas.mul(gasPrice).toString());
|
|
21
21
|
};
|
|
@@ -24,6 +24,10 @@ export const BLOWFISH_EVM_CHAINS = {
|
|
|
24
24
|
network: 'optimism',
|
|
25
25
|
chain: 'goerli',
|
|
26
26
|
},
|
|
27
|
+
basemainnet: {
|
|
28
|
+
network: 'base',
|
|
29
|
+
chain: 'mainnet',
|
|
30
|
+
},
|
|
27
31
|
};
|
|
28
32
|
const convertTransactionToApiPayload = (transactions, origin) => ({
|
|
29
33
|
txObjects: transactions.map((transaction) => ({
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@exodus/web3-ethereum-utils",
|
|
3
3
|
"description": "Web3 Ethereum utils.",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.23.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
7
7
|
"module": "lib/index.js",
|
|
@@ -22,8 +22,8 @@
|
|
|
22
22
|
"repository": "https://github.com/ExodusMovement/exodus-web3/tree/master/libs/ethereum-utils",
|
|
23
23
|
"license": "UNLICENSED",
|
|
24
24
|
"scripts": {
|
|
25
|
-
"clean": "rimraf lib",
|
|
26
|
-
"build": "yarn clean && tsc"
|
|
25
|
+
"clean": "run -T rimraf lib",
|
|
26
|
+
"build": "yarn clean && run -T tsc"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"@exodus/web3-types": "0.0.0"
|
|
@@ -31,8 +31,8 @@
|
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"@exodus/ethereumjs-common": "^2.4.0-exodus.6",
|
|
33
33
|
"@exodus/ethereumjs-tx": "^3.3.0-exodus.6",
|
|
34
|
-
"@exodus/web3-utils": "^1.
|
|
34
|
+
"@exodus/web3-utils": "^1.43.0",
|
|
35
35
|
"@metamask/eth-sig-util": "^4.0.1"
|
|
36
36
|
},
|
|
37
|
-
"gitHead": "
|
|
37
|
+
"gitHead": "8ba379ef8cf8553458af3a6dc7d5a8d97951852f"
|
|
38
38
|
}
|