@exodus/ethereum-lib 3.3.5 → 3.3.7

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.5",
3
+ "version": "3.3.7",
4
4
  "description": "Ethereum Library",
5
5
  "main": "src/index.js",
6
6
  "files": [
@@ -20,7 +20,7 @@
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.25",
23
+ "@exodus/ethereum-meta": "^1.0.26",
24
24
  "@exodus/ethereumarbnova-meta": "^1.0.2",
25
25
  "@exodus/ethereumarbone-meta": "^1.1.4",
26
26
  "@exodus/ethereumclassic-meta": "^1.0.1",
@@ -41,5 +41,5 @@
41
41
  "ms": "^2.1.1",
42
42
  "reselect": "~3.0.1"
43
43
  },
44
- "gitHead": "c7c8b7d8cf706f33f806f8470db9b1ab7da5ec77"
44
+ "gitHead": "d335c6220d835f757eb4a0e7d44a36f58aa2a64a"
45
45
  }
package/src/constants.js CHANGED
@@ -77,6 +77,13 @@ const CHAIN_DATA = {
77
77
  monitorType: 'no-history',
78
78
  tokenType: 'RSK_ERC20',
79
79
  },
80
+ flare: {
81
+ chainId: 60,
82
+ serverUrl: 'https://flare-nn-d.a.exodus.io/ext/C/rpc',
83
+ confirmationsNumber: 30,
84
+ monitorType: 'no-history',
85
+ tokenType: 'FLR_ERC20',
86
+ },
80
87
  }
81
88
 
82
89
  export const DEFAULT_SERVER_URLS = mapValues(CHAIN_DATA, ({ serverUrl }) => serverUrl)
@@ -0,0 +1,16 @@
1
+ import { FeeData } from '@exodus/asset-lib'
2
+ import { asset } from '@exodus/flare-meta'
3
+
4
+ export default new FeeData({
5
+ config: {
6
+ gasPrice: '25 Gwei',
7
+ max: '250 Gwei',
8
+ min: '0.1 Gwei',
9
+ fuelThreshold: '25 Gwei',
10
+ gasPriceEconomicalRate: 0.8,
11
+ gasPriceMinimumRate: 0.6,
12
+ eip1559Enabled: false,
13
+ },
14
+ mainKey: 'gasPrice',
15
+ currency: asset.currency,
16
+ })
@@ -10,3 +10,4 @@ export { default as fantommainnet } from './fantom'
10
10
  export { default as harmonymainnet } from './harmony'
11
11
  export { default as rootstock } from './rootstock'
12
12
  export { default as optimism } from './optimism'
13
+ export { default as flare } from './flare'
@@ -19,6 +19,7 @@ export const isArbitrumNovaToken = (asset) => asset.assetType === 'ETHEREUM_ARBN
19
19
  export const isArbitrumOneToken = (asset) => asset.assetType === 'ETHEREUM_ARBONE_ERC20'
20
20
  export const isRootstockToken = (asset) => asset.assetType === 'RSK_ERC20'
21
21
  export const isOptimismToken = (asset) => asset.assetType === 'OPT_ERC20'
22
+ export const isFlareToken = (asset) => asset.assetType === 'FLR_ERC20'
22
23
 
23
24
  // All ethereum-like tokens
24
25
  export const isEthereumLikeToken = (asset) => ETHEREUM_LIKE_TOKEN_TYPES.includes(asset.assetType)
@@ -139,6 +140,7 @@ export const isRpcBalanceAsset = (asset) =>
139
140
  'rootstock',
140
141
  'ethereumarbone',
141
142
  'optimism',
143
+ 'flare',
142
144
  ...customTokensWithRpcBalance,
143
145
  ].includes(asset.name) || asset.baseAsset.name === 'rootstock'
144
146