@exodus/ethereum-lib 3.0.0 → 3.0.2
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/package.json +6 -6
- package/src/utils/index.js +18 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@exodus/ethereum-lib",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.2",
|
|
4
4
|
"description": "Ethereum Library",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"files": [
|
|
@@ -16,13 +16,13 @@
|
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"@exodus/asset-lib": "^3.7.1",
|
|
18
18
|
"@exodus/assets": "^8.0.84",
|
|
19
|
-
"@exodus/avalanchec-meta": "^1.0.
|
|
19
|
+
"@exodus/avalanchec-meta": "^1.0.3",
|
|
20
20
|
"@exodus/basic-utils": "^0.7.0",
|
|
21
21
|
"@exodus/bip32": "^1.0.0",
|
|
22
|
-
"@exodus/bsc-meta": "^1.0.
|
|
23
|
-
"@exodus/ethereum-meta": "^1.0.
|
|
22
|
+
"@exodus/bsc-meta": "^1.0.14",
|
|
23
|
+
"@exodus/ethereum-meta": "^1.0.23",
|
|
24
24
|
"@exodus/ethereumarbnova-meta": "^1.0.2",
|
|
25
|
-
"@exodus/ethereumarbone-meta": "^1.
|
|
25
|
+
"@exodus/ethereumarbone-meta": "^1.1.4",
|
|
26
26
|
"@exodus/ethereumclassic-meta": "^1.0.1",
|
|
27
27
|
"@exodus/ethereumgoerli-meta": "^1.0.3",
|
|
28
28
|
"@exodus/ethereumjs-common": "^2.4.0-exodus.6",
|
|
@@ -41,5 +41,5 @@
|
|
|
41
41
|
"ms": "^2.1.1",
|
|
42
42
|
"reselect": "~3.0.1"
|
|
43
43
|
},
|
|
44
|
-
"gitHead": "
|
|
44
|
+
"gitHead": "b5bbf65b92737f9fb2bf6ac3412cc9e0bb803483"
|
|
45
45
|
}
|
package/src/utils/index.js
CHANGED
|
@@ -104,6 +104,23 @@ export const isApproveTx = (tx) => tx?.data?.data?.startsWith(APPROVE_METHOD_ID)
|
|
|
104
104
|
|
|
105
105
|
export const isFeePaymentTx = (tx) => tx?.data?.data?.startsWith(FEE_PAYMENT_PREFIX)
|
|
106
106
|
|
|
107
|
+
const customTokensWithRpcBalance = [
|
|
108
|
+
'saitama_ethereum_5547ffb6',
|
|
109
|
+
'shiryoinu_ethereum_ff507c93',
|
|
110
|
+
'volt_bsc_bea66b91',
|
|
111
|
+
'volt_ethereum_9e0778ce',
|
|
112
|
+
'elephant_bsc_e879afb1',
|
|
113
|
+
'posi_bsc_9a2aa8c5',
|
|
114
|
+
'ampl_ethereum_48428467',
|
|
115
|
+
'mark_ethereum_0d0c07dd',
|
|
116
|
+
'floki_bsc_c4112b36',
|
|
117
|
+
'floki_ethereum_4a3891a6',
|
|
118
|
+
'drb_bsc_8971f1e2',
|
|
119
|
+
'move_bsc_4b4012e3',
|
|
120
|
+
'feg_ethereum_ef42acf0',
|
|
121
|
+
'feg_bsc_48812e49',
|
|
122
|
+
]
|
|
123
|
+
|
|
107
124
|
export const isRpcBalanceAsset = (asset) =>
|
|
108
125
|
[
|
|
109
126
|
'bsc',
|
|
@@ -119,6 +136,7 @@ export const isRpcBalanceAsset = (asset) =>
|
|
|
119
136
|
'fantommainnet',
|
|
120
137
|
'rootstock',
|
|
121
138
|
'ethereumarbone',
|
|
139
|
+
...customTokensWithRpcBalance,
|
|
122
140
|
].includes(asset.name) || asset.baseAsset.name === 'rootstock'
|
|
123
141
|
|
|
124
142
|
export const getAssetAddresses = (asset) => {
|