@exodus/basemainnet-plugin 1.3.0 → 2.1.0
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 -5
- package/src/fee-data.js +18 -0
- package/src/index.js +5 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@exodus/basemainnet-plugin",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "2.1.0",
|
|
4
4
|
"description": "Exodus basemainnet-plugin",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"files": [
|
|
@@ -18,12 +18,13 @@
|
|
|
18
18
|
"lint:fix": "yarn lint --fix"
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@exodus/
|
|
22
|
-
"@exodus/
|
|
23
|
-
"@exodus/ethereum-
|
|
21
|
+
"@exodus/asset-lib": "^4.1.0",
|
|
22
|
+
"@exodus/basemainnet-meta": "^1.0.8",
|
|
23
|
+
"@exodus/ethereum-api": "^8.2.0",
|
|
24
|
+
"@exodus/ethereum-lib": "^5.0.0"
|
|
24
25
|
},
|
|
25
26
|
"devDependencies": {
|
|
26
27
|
"@exodus/assets-testing": "^1.0.0"
|
|
27
28
|
},
|
|
28
|
-
"gitHead": "
|
|
29
|
+
"gitHead": "3d6deb1f1d8ba08510be92ed52dfe39ce69e6fb9"
|
|
29
30
|
}
|
package/src/fee-data.js
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { FeeData } from '@exodus/asset-lib'
|
|
2
|
+
import { asset } from '@exodus/basemainnet-meta'
|
|
3
|
+
|
|
4
|
+
export default new FeeData({
|
|
5
|
+
config: {
|
|
6
|
+
gasPrice: '0.2 Gwei',
|
|
7
|
+
baseFeePerGas: '0.2 Gwei',
|
|
8
|
+
tipGasPrice: '0.02 Gwei',
|
|
9
|
+
max: '1 Gwei',
|
|
10
|
+
min: '0.001 Gwei',
|
|
11
|
+
fuelThreshold: '750000 Gwei',
|
|
12
|
+
gasPriceEconomicalRate: 0.8,
|
|
13
|
+
gasPriceMinimumRate: 0.6,
|
|
14
|
+
eip1559Enabled: true,
|
|
15
|
+
},
|
|
16
|
+
mainKey: 'gasPrice',
|
|
17
|
+
currency: asset.currency,
|
|
18
|
+
})
|
package/src/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createAssetFactory } from '@exodus/ethereum-api'
|
|
2
|
-
import
|
|
2
|
+
import feeData from './fee-data'
|
|
3
3
|
import assetsList from '@exodus/basemainnet-meta'
|
|
4
4
|
|
|
5
5
|
// same address between base and optimism
|
|
@@ -9,6 +9,10 @@ const createAsset = createAssetFactory({
|
|
|
9
9
|
assetsList,
|
|
10
10
|
feeData,
|
|
11
11
|
erc20FuelBuffer: 1.1, // 10% more than the required fee
|
|
12
|
+
serverUrl: 'https://base-qn.a.exodus.io',
|
|
13
|
+
confirmationsNumber: 30,
|
|
14
|
+
monitorType: 'no-history',
|
|
15
|
+
tokenType: 'BASE_ERC20',
|
|
12
16
|
nfts: true,
|
|
13
17
|
l1GasOracleAddress: GAS_ORACLE_ADDRESS,
|
|
14
18
|
})
|