@exodus/ethereum-lib 3.0.0 → 3.0.1

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.
Files changed (2) hide show
  1. package/package.json +2 -2
  2. 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.0",
3
+ "version": "3.0.1",
4
4
  "description": "Ethereum Library",
5
5
  "main": "src/index.js",
6
6
  "files": [
@@ -41,5 +41,5 @@
41
41
  "ms": "^2.1.1",
42
42
  "reselect": "~3.0.1"
43
43
  },
44
- "gitHead": "b299a67ebe7a7c23638d868b074df4d20b3f56d9"
44
+ "gitHead": "906980b1006ee7a1282ab78b02c2c9510b0e86f4"
45
45
  }
@@ -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) => {