@exodus/ethereum-lib 2.26.4 → 2.26.6

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/LICENSE.md ADDED
File without changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@exodus/ethereum-lib",
3
- "version": "2.26.4",
3
+ "version": "2.26.6",
4
4
  "description": "Ethereum Library",
5
5
  "main": "src/index.js",
6
6
  "files": [
@@ -28,5 +28,6 @@
28
28
  "lodash": "^4.17.15",
29
29
  "ms": "^2.1.1",
30
30
  "reselect": "~3.0.1"
31
- }
31
+ },
32
+ "gitHead": "a3cabe7b311b88bc23dbf27d5c9a3152f3ea1753"
32
33
  }
package/src/constants.js CHANGED
@@ -74,6 +74,7 @@ const CHAIN_DATA = {
74
74
  serverUrl: 'https://rsk.a.exodus.io',
75
75
  confirmationsNumber: 3,
76
76
  monitorType: 'no-history',
77
+ tokenType: 'RSK_ERC20',
77
78
  },
78
79
  }
79
80
 
@@ -18,6 +18,7 @@ export const isAvalancheToken = (asset) => asset.assetType === 'AVAX_ERC20'
18
18
  export const isFantomToken = (asset) => asset.assetType === 'FTM_ERC20'
19
19
  export const isArbitrumNovaToken = (asset) => asset.assetType === 'ETHEREUM_ARBNOVA_ERC20'
20
20
  export const isArbitrumOneToken = (asset) => asset.assetType === 'ETHEREUM_ARBONE_ERC20'
21
+ export const isRootstockToken = (asset) => asset.assetType === 'RSK_ERC20'
21
22
 
22
23
  // All ethereum-like tokens
23
24
  export const isEthereumLikeToken = (asset) => ETHEREUM_LIKE_TOKEN_TYPES.includes(asset.assetType)
@@ -112,6 +113,7 @@ export const isRpcBalanceAsset = (asset) =>
112
113
  'wftm_fantommainnet_7edc4949',
113
114
  'fantommainnet',
114
115
  'rootstock',
116
+ 'ethereumarbone',
115
117
  ].includes(asset.name) || asset.baseAsset.name === 'rootstock'
116
118
 
117
119
  export const getAssetAddresses = (asset) => {