@exodus/ethereum-lib 3.3.8 → 3.3.9

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@exodus/ethereum-lib",
3
- "version": "3.3.8",
3
+ "version": "3.3.9",
4
4
  "description": "Ethereum Library",
5
5
  "main": "src/index.js",
6
6
  "files": [
@@ -16,11 +16,11 @@
16
16
  "dependencies": {
17
17
  "@exodus/asset-lib": "^3.7.1",
18
18
  "@exodus/assets": "^8.0.84",
19
- "@exodus/avalanchec-meta": "^1.0.3",
19
+ "@exodus/avalanchec-meta": "^1.0.4",
20
20
  "@exodus/basic-utils": "^0.7.0",
21
21
  "@exodus/bip32": "^1.0.0",
22
22
  "@exodus/bsc-meta": "^1.0.14",
23
- "@exodus/ethereum-meta": "^1.0.26",
23
+ "@exodus/ethereum-meta": "^1.0.28",
24
24
  "@exodus/ethereumarbnova-meta": "^1.0.2",
25
25
  "@exodus/ethereumarbone-meta": "^1.1.4",
26
26
  "@exodus/ethereumclassic-meta": "^1.0.1",
@@ -31,7 +31,7 @@
31
31
  "@exodus/fantommainnet-meta": "^1.0.3",
32
32
  "@exodus/harmonymainnet-meta": "^1.0.0",
33
33
  "@exodus/key-utils": "^1.0.0",
34
- "@exodus/matic-meta": "^1.0.8",
34
+ "@exodus/matic-meta": "^1.0.9",
35
35
  "@exodus/models": "^8.10.4",
36
36
  "@exodus/optimism-meta": "^1.2.1",
37
37
  "@exodus/rootstock-meta": "^1.0.2",
@@ -41,5 +41,5 @@
41
41
  "ms": "^2.1.1",
42
42
  "reselect": "~3.0.1"
43
43
  },
44
- "gitHead": "400f32b2bc05d771cf049327cf599aaf105fc7f9"
44
+ "gitHead": "52f5092deeb747acd04326890734c4c81e10c306"
45
45
  }
package/src/constants.js CHANGED
@@ -103,6 +103,9 @@ export const ETHEREUM_LIKE_TOKEN_TYPES = Object.values(CHAIN_DATA)
103
103
  .filter(({ tokenType }) => tokenType)
104
104
  .map(({ tokenType }) => tokenType)
105
105
  export const BUMP_RATE = 1.2
106
+ export const ETHEREUM_LIKE_NO_HISTORY_ASSET_NAMES = Object.keys(CHAIN_DATA).filter(
107
+ (key) => CHAIN_DATA[key].monitorType === 'no-history'
108
+ )
106
109
 
107
110
  export const CUSTOM_CHAINS = ['avalanchec', 'matic'].map((name) => ({
108
111
  chainId: CHAIN_IDS[name],
@@ -1,6 +1,10 @@
1
1
  import baseX from 'base-x'
2
2
  import * as ethUtil from '@exodus/ethereumjs-util'
3
- import { ETHEREUM_LIKE_ASSETS, ETHEREUM_LIKE_TOKEN_TYPES } from '../constants'
3
+ import {
4
+ ETHEREUM_LIKE_ASSETS,
5
+ ETHEREUM_LIKE_NO_HISTORY_ASSET_NAMES,
6
+ ETHEREUM_LIKE_TOKEN_TYPES,
7
+ } from '../constants'
4
8
  import { FeeMarketEIP1559Transaction, Transaction } from '@exodus/ethereumjs-tx'
5
9
  import { uniq } from 'lodash'
6
10
 
@@ -137,12 +141,10 @@ export const isRpcBalanceAsset = (asset) =>
137
141
  'wavax_avalanchec_635505b3',
138
142
  'wftm_fantommainnet_7edc4949',
139
143
  'fantommainnet',
140
- 'rootstock',
141
144
  'ethereumarbone',
142
145
  'optimism',
143
- 'flare',
144
146
  ...customTokensWithRpcBalance,
145
- ].includes(asset.name) || asset.baseAsset.name === 'rootstock'
147
+ ].includes(asset.name) || ETHEREUM_LIKE_NO_HISTORY_ASSET_NAMES.includes(asset.baseAsset.name)
146
148
 
147
149
  export const getAssetAddresses = (asset) => {
148
150
  // It seems to be two schemas of assets. The original and the transformed by the client.