@exodus/ethereum-api 8.24.2 → 8.24.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/CHANGELOG.md +18 -0
- package/package.json +2 -2
- package/src/eth-like-util.js +1 -0
- package/src/exodus-eth-server/index.js +0 -17
- package/src/index.js +73 -10
- package/src/tx-log/index.js +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,24 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [8.24.4](https://github.com/ExodusMovement/assets/compare/@exodus/ethereum-api@8.24.3...@exodus/ethereum-api@8.24.4) (2025-01-03)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @exodus/ethereum-api
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
## [8.24.3](https://github.com/ExodusMovement/assets/compare/@exodus/ethereum-api@8.24.2...@exodus/ethereum-api@8.24.3) (2025-01-01)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Bug Fixes
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
* fix: gasPriceMultiplier flare/arb1 (#4766)
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
6
24
|
## [8.24.2](https://github.com/ExodusMovement/assets/compare/@exodus/ethereum-api@8.24.1...@exodus/ethereum-api@8.24.2) (2024-12-23)
|
|
7
25
|
|
|
8
26
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@exodus/ethereum-api",
|
|
3
|
-
"version": "8.24.
|
|
3
|
+
"version": "8.24.4",
|
|
4
4
|
"description": "Transaction monitors, fee monitors, RPC with the blockchain node, and other networking code for Ethereum and EVM-based blockchains",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "src/index.js",
|
|
@@ -64,5 +64,5 @@
|
|
|
64
64
|
"type": "git",
|
|
65
65
|
"url": "git+https://github.com/ExodusMovement/assets.git"
|
|
66
66
|
},
|
|
67
|
-
"gitHead": "
|
|
67
|
+
"gitHead": "ba6f4deb839ac2b1ac3f072fb3d9fc348cf54553"
|
|
68
68
|
}
|
package/src/eth-like-util.js
CHANGED
|
@@ -10,6 +10,7 @@ import { fromHexToString } from './number-utils.js'
|
|
|
10
10
|
export const FORWARDER_CONTRACT_CODE =
|
|
11
11
|
'0x5836818037808036817364b29dc43e817817cf77468c8dda63d98ce08fb25af43d91908282803e602b57fd5bf3'
|
|
12
12
|
|
|
13
|
+
// @Deprecated
|
|
13
14
|
export async function isContract(baseAssetName, address) {
|
|
14
15
|
return getServerByName(baseAssetName).isContract(address)
|
|
15
16
|
}
|
|
@@ -43,23 +43,6 @@ const serverMap = Object.fromEntries(
|
|
|
43
43
|
})
|
|
44
44
|
)
|
|
45
45
|
|
|
46
|
-
// allow self-signed certs
|
|
47
|
-
// process.env.NODE_TLS_REJECT_UNAUTHORIZED = '0'
|
|
48
|
-
// @deprecated Use getServer or getServerbyName instead
|
|
49
|
-
export const eth = serverMap['ethereum']
|
|
50
|
-
// @deprecated Use getServer or getServerbyName instead
|
|
51
|
-
export const etc = serverMap['ethereumclassic']
|
|
52
|
-
// @deprecated Use getServer or getServerbyName instead
|
|
53
|
-
export const bsc = serverMap['bsc']
|
|
54
|
-
// @deprecated Use getServer or getServerbyName instead
|
|
55
|
-
export const polygon = serverMap['matic']
|
|
56
|
-
// @deprecated Use getServer or getServerbyName instead
|
|
57
|
-
export const avaxc = serverMap['avalanchec']
|
|
58
|
-
// @deprecated Use getServer or getServerbyName instead
|
|
59
|
-
export const ftm = serverMap['fantommainnet']
|
|
60
|
-
// @deprecated Use getServer or getServerbyName instead
|
|
61
|
-
export const harmony = serverMap['harmonymainnet']
|
|
62
|
-
|
|
63
46
|
export function getServer(asset) {
|
|
64
47
|
const server = asset.baseAsset.server
|
|
65
48
|
if (server) {
|
package/src/index.js
CHANGED
|
@@ -1,19 +1,82 @@
|
|
|
1
1
|
// Ideally, we should reduce the exports to just api.
|
|
2
2
|
// If the client is importing one module specifically,
|
|
3
3
|
// it's breaking the encapsulation
|
|
4
|
-
export
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
4
|
+
export {
|
|
5
|
+
FORWARDER_CONTRACT_CODE,
|
|
6
|
+
isContractAddress,
|
|
7
|
+
isContractAddressCached,
|
|
8
|
+
isForwarderContract,
|
|
9
|
+
isForwarderContractCached,
|
|
10
|
+
getNonce,
|
|
11
|
+
estimateGas,
|
|
12
|
+
getBalance,
|
|
13
|
+
getBalanceProxied,
|
|
14
|
+
getTokenBalance,
|
|
15
|
+
getTokenBalanceFromNode,
|
|
16
|
+
sendRawTransaction,
|
|
17
|
+
transactionExists,
|
|
18
|
+
getTransaction,
|
|
19
|
+
getIsForwarderContract,
|
|
20
|
+
getERC20Params,
|
|
21
|
+
} from './eth-like-util.js'
|
|
22
|
+
|
|
23
|
+
export {
|
|
24
|
+
EXTRA_PERCENTAGE,
|
|
25
|
+
DEFAULT_CONTRACT_GAS_LIMIT,
|
|
26
|
+
estimateGasLimit,
|
|
27
|
+
resolveDefaultTxInput,
|
|
28
|
+
fetchGasLimit,
|
|
29
|
+
} from './gas-estimation.js'
|
|
30
|
+
|
|
31
|
+
export { createEvmServer, getServer } from './exodus-eth-server/index.js'
|
|
32
|
+
|
|
33
|
+
export { EthereumMonitor, EthereumNoHistoryMonitor, ClarityMonitor } from './tx-log/index.js'
|
|
34
|
+
|
|
35
|
+
export { getStakingHistoryBalance, getBalancesFactory } from './get-balances.js'
|
|
36
|
+
|
|
37
|
+
export {
|
|
38
|
+
FantomStaking,
|
|
39
|
+
stakingProviderClientFactory,
|
|
40
|
+
getEthereumStakingInfo,
|
|
41
|
+
createEthereumStakingService,
|
|
42
|
+
EthereumStaking,
|
|
43
|
+
isEthereumStakingTx,
|
|
44
|
+
isEthereumDelegate,
|
|
45
|
+
isEthereumUndelegatePending,
|
|
46
|
+
isEthereumUndelegate,
|
|
47
|
+
isEthereumClaimUndelegate,
|
|
48
|
+
} from './staking/index.js'
|
|
49
|
+
|
|
50
|
+
export { fetchTxPreview, maybeRemoveDuplicates, retrieveSideEffects } from './simulate-tx/index.js'
|
|
51
|
+
|
|
52
|
+
export {
|
|
53
|
+
isZeroAllowanceAsset,
|
|
54
|
+
getSpendingAllowance,
|
|
55
|
+
isSpendingApprovalRequired,
|
|
56
|
+
createApprove,
|
|
57
|
+
createApproveSpendingTokens,
|
|
58
|
+
APPROVAL_GAS_LIMIT,
|
|
59
|
+
ZERO_ALLOWANCE_ASSETS,
|
|
60
|
+
} from './allowance/index.js'
|
|
61
|
+
|
|
62
|
+
export { estimateL1DataFeeFactory, getL1GetFeeFactory } from './optimism-gas/index.js'
|
|
63
|
+
|
|
64
|
+
export {
|
|
65
|
+
fromHexToString,
|
|
66
|
+
fromHexToBigInt,
|
|
67
|
+
addHexPrefix,
|
|
68
|
+
removeHexPrefix,
|
|
69
|
+
splitIn32BytesArray,
|
|
70
|
+
removeLeadingZeroes,
|
|
71
|
+
fromHexToBN,
|
|
72
|
+
} from './number-utils.js'
|
|
73
|
+
|
|
14
74
|
export { reasons as errorReasons, withErrorReason, EthLikeError } from './error-wrapper.js'
|
|
75
|
+
|
|
15
76
|
export { txSendFactory, getFeeInfo } from './tx-send/index.js'
|
|
77
|
+
|
|
16
78
|
export { createAssetFactory } from './create-asset.js'
|
|
79
|
+
|
|
17
80
|
export {
|
|
18
81
|
createAssetPluginFactory,
|
|
19
82
|
fromAddEthereumChainParameterToFactoryParams,
|
package/src/tx-log/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
1
|
+
export { EthereumMonitor } from './ethereum-monitor.js'
|
|
2
|
+
export { EthereumNoHistoryMonitor } from './ethereum-no-history-monitor.js'
|
|
3
3
|
export { ClarityMonitor } from './clarity-monitor.js'
|