@exodus/basemainnet-plugin 2.1.0 → 2.3.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/CHANGELOG.md +94 -0
- package/README.md +3 -0
- package/package.json +18 -10
- package/src/index.js +10 -4
- package/src/fee-data.js +0 -18
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
# Change Log
|
|
2
|
+
|
|
3
|
+
All notable changes to this project will be documented in this file.
|
|
4
|
+
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
|
+
|
|
6
|
+
## [2.3.0](https://github.com/ExodusMovement/assets/compare/@exodus/basemainnet-plugin@2.2.0...@exodus/basemainnet-plugin@2.3.0) (2024-12-02)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
* feat: gasPriceMaximumRate in evm fee data (#4578)
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
## [2.2.0](https://github.com/ExodusMovement/assets/compare/@exodus/basemainnet-plugin@2.1.0...@exodus/basemainnet-plugin@2.2.0) (2024-09-11)
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
### Features
|
|
20
|
+
|
|
21
|
+
* add tokenAssetType to base asset ([#2298](https://github.com/ExodusMovement/assets/issues/2298)) ([80c9dc8](https://github.com/ExodusMovement/assets/commit/80c9dc8a4d2a8614f84b66d2c9649cdf19601443))
|
|
22
|
+
* switch ethereum to ESM ([#3374](https://github.com/ExodusMovement/assets/issues/3374)) ([d3a86c3](https://github.com/ExodusMovement/assets/commit/d3a86c3202754a0e6ab988d454d3e006ec11d9e4))
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
### Bug Fixes
|
|
26
|
+
|
|
27
|
+
* lint for EVM assets ([#2969](https://github.com/ExodusMovement/assets/issues/2969)) ([16ca272](https://github.com/ExodusMovement/assets/commit/16ca272524ab1530800ca84f1df045293c08a3aa))
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
## [2.1.0](https://github.com/ExodusMovement/assets/compare/@exodus/basemainnet-plugin@2.0.0...@exodus/basemainnet-plugin@2.1.0) (2024-05-23)
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
### Features
|
|
35
|
+
|
|
36
|
+
* evm getFeeAsync ([#2216](https://github.com/ExodusMovement/assets/issues/2216)) ([fe47657](https://github.com/ExodusMovement/assets/commit/fe476577793d06267b698eee1e0fd7ebd60fb366))
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
## [2.0.0](https://github.com/ExodusMovement/assets/compare/@exodus/basemainnet-plugin@1.2.0...@exodus/basemainnet-plugin@2.0.0) (2024-05-17)
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
### ⚠ BREAKING CHANGES
|
|
44
|
+
|
|
45
|
+
* evm chain data to be factory params (#2115)
|
|
46
|
+
* moved fee data to each EVM plugin (#2233)
|
|
47
|
+
|
|
48
|
+
### Features
|
|
49
|
+
|
|
50
|
+
* **BTC:** only support purpose 86 for multisig wallet accounts ([#2214](https://github.com/ExodusMovement/assets/issues/2214)) ([adac906](https://github.com/ExodusMovement/assets/commit/adac906c22d9a183531070015a7d5ff65a39b581))
|
|
51
|
+
* evm baseFeePerGas fee monitor ([#2194](https://github.com/ExodusMovement/assets/issues/2194)) ([0739c97](https://github.com/ExodusMovement/assets/commit/0739c97568741394d1eb542332a4ccbbc6eaccb9))
|
|
52
|
+
* evm chain data to be factory params ([#2115](https://github.com/ExodusMovement/assets/issues/2115)) ([a2aeec1](https://github.com/ExodusMovement/assets/commit/a2aeec1b4da177b1e1bb85f92e93115fc97d5377))
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
### Bug Fixes
|
|
56
|
+
|
|
57
|
+
* enable Base eip1559 ([#2210](https://github.com/ExodusMovement/assets/issues/2210)) ([8b7e807](https://github.com/ExodusMovement/assets/commit/8b7e807907e961aae47d3beb50cd69502e5a04e2))
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
### Code Refactoring
|
|
61
|
+
|
|
62
|
+
* moved fee data to each EVM plugin ([#2233](https://github.com/ExodusMovement/assets/issues/2233)) ([ec066c0](https://github.com/ExodusMovement/assets/commit/ec066c076bc36a4c7c05810e83cdd47a7a25384b))
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
## [1.3.0](https://github.com/ExodusMovement/assets/compare/@exodus/basemainnet-plugin@1.2.0...@exodus/basemainnet-plugin@1.3.0) (2024-05-04)
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
### Features
|
|
70
|
+
|
|
71
|
+
* evm baseFeePerGas fee monitor ([#2194](https://github.com/ExodusMovement/assets/issues/2194)) ([0739c97](https://github.com/ExodusMovement/assets/commit/0739c97568741394d1eb542332a4ccbbc6eaccb9))
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
### Bug Fixes
|
|
75
|
+
|
|
76
|
+
* enable Base eip1559 ([#2210](https://github.com/ExodusMovement/assets/issues/2210)) ([8b7e807](https://github.com/ExodusMovement/assets/commit/8b7e807907e961aae47d3beb50cd69502e5a04e2))
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
## [1.2.0](https://github.com/ExodusMovement/assets/compare/@exodus/basemainnet-plugin@1.1.0...@exodus/basemainnet-plugin@1.2.0) (2024-04-24)
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
### Features
|
|
84
|
+
|
|
85
|
+
* EVM l1 gas estimation ([#2159](https://github.com/ExodusMovement/assets/issues/2159)) ([c23584e](https://github.com/ExodusMovement/assets/commit/c23584e04e2ba47538e5134c73ecba3d337cda0f))
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
## [1.1.0](https://github.com/ExodusMovement/assets/compare/@exodus/basemainnet-plugin@1.0.0...@exodus/basemainnet-plugin@1.1.0) (2024-04-17)
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
### Features
|
|
93
|
+
|
|
94
|
+
* generic evm fee monitors ([#2104](https://github.com/ExodusMovement/assets/issues/2104)) ([70ef5fd](https://github.com/ExodusMovement/assets/commit/70ef5fdb8d87b67957eb56878868145867797af5))
|
package/README.md
ADDED
package/package.json
CHANGED
|
@@ -1,30 +1,38 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@exodus/basemainnet-plugin",
|
|
3
|
-
"version": "2.
|
|
4
|
-
"description": "Exodus
|
|
3
|
+
"version": "2.3.0",
|
|
4
|
+
"description": "Base Mainnet plugin for Exodus SDK powered wallets",
|
|
5
|
+
"type": "module",
|
|
5
6
|
"main": "src/index.js",
|
|
6
7
|
"files": [
|
|
7
8
|
"src",
|
|
9
|
+
"CHANGELOG.md",
|
|
8
10
|
"!src/**/__tests__"
|
|
9
11
|
],
|
|
10
|
-
"author": "Exodus",
|
|
12
|
+
"author": "Exodus Movement, Inc.",
|
|
11
13
|
"license": "ISC",
|
|
12
14
|
"publishConfig": {
|
|
13
15
|
"access": "restricted"
|
|
14
16
|
},
|
|
15
17
|
"scripts": {
|
|
16
|
-
"test": "run -T jest",
|
|
17
|
-
"lint": "run -T
|
|
18
|
+
"test": "run -T exodus-test --jest",
|
|
19
|
+
"lint": "run -T eslintc .",
|
|
18
20
|
"lint:fix": "yarn lint --fix"
|
|
19
21
|
},
|
|
20
22
|
"dependencies": {
|
|
21
|
-
"@exodus/
|
|
22
|
-
"@exodus/
|
|
23
|
-
"@exodus/ethereum-api": "^8.2.0",
|
|
24
|
-
"@exodus/ethereum-lib": "^5.0.0"
|
|
23
|
+
"@exodus/basemainnet-meta": "^2.0.0",
|
|
24
|
+
"@exodus/ethereum-api": "^8.22.0"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
27
|
"@exodus/assets-testing": "^1.0.0"
|
|
28
28
|
},
|
|
29
|
-
"
|
|
29
|
+
"bugs": {
|
|
30
|
+
"url": "https://github.com/ExodusMovement/assets/issues?q=is%3Aissue+is%3Aopen+label%3Abasemainnet-plugin"
|
|
31
|
+
},
|
|
32
|
+
"homepage": "https://github.com/ExodusMovement/assets/tree/master/ethereum/basemainnet-plugin",
|
|
33
|
+
"repository": {
|
|
34
|
+
"type": "git",
|
|
35
|
+
"url": "git+https://github.com/ExodusMovement/assets.git"
|
|
36
|
+
},
|
|
37
|
+
"gitHead": "9888fd7b7356fd52f0bf92e505071565c8fa19ce"
|
|
30
38
|
}
|
package/src/index.js
CHANGED
|
@@ -1,18 +1,24 @@
|
|
|
1
|
-
import { createAssetFactory } from '@exodus/ethereum-api'
|
|
2
|
-
import feeData from './fee-data'
|
|
3
1
|
import assetsList from '@exodus/basemainnet-meta'
|
|
2
|
+
import { createAssetFactory } from '@exodus/ethereum-api'
|
|
4
3
|
|
|
5
4
|
// same address between base and optimism
|
|
6
5
|
export const GAS_ORACLE_ADDRESS = '0x420000000000000000000000000000000000000F'
|
|
7
6
|
|
|
8
7
|
const createAsset = createAssetFactory({
|
|
9
8
|
assetsList,
|
|
10
|
-
|
|
9
|
+
feeDataConfig: {
|
|
10
|
+
gasPrice: '0.2 Gwei',
|
|
11
|
+
baseFeePerGas: '0.2 Gwei',
|
|
12
|
+
tipGasPrice: '0.02 Gwei',
|
|
13
|
+
max: '1 Gwei',
|
|
14
|
+
min: '0.001 Gwei',
|
|
15
|
+
fuelThreshold: '750000 Gwei',
|
|
16
|
+
eip1559Enabled: true,
|
|
17
|
+
},
|
|
11
18
|
erc20FuelBuffer: 1.1, // 10% more than the required fee
|
|
12
19
|
serverUrl: 'https://base-qn.a.exodus.io',
|
|
13
20
|
confirmationsNumber: 30,
|
|
14
21
|
monitorType: 'no-history',
|
|
15
|
-
tokenType: 'BASE_ERC20',
|
|
16
22
|
nfts: true,
|
|
17
23
|
l1GasOracleAddress: GAS_ORACLE_ADDRESS,
|
|
18
24
|
})
|
package/src/fee-data.js
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
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
|
-
})
|