@exodus/ethereum-lib 5.9.0 → 5.10.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 +22 -0
- package/package.json +3 -3
- package/src/abi/index.js +2 -2
- package/src/create-contract/index.js +2 -0
- package/src/get-activity-txs.js +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,28 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [5.10.0](https://github.com/ExodusMovement/assets/compare/@exodus/ethereum-lib@5.9.1...@exodus/ethereum-lib@5.10.0) (2025-04-08)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
* feat: demote batch of 20 tokens (#5347)
|
|
13
|
+
|
|
14
|
+
* feat: demote troublesome tokens (#5280)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
## [5.9.1](https://github.com/ExodusMovement/assets/compare/@exodus/ethereum-lib@5.9.0...@exodus/ethereum-lib@5.9.1) (2025-02-06)
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
### Bug Fixes
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
* fix: ETH activity txs field (#4915)
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
6
28
|
## [5.9.0](https://github.com/ExodusMovement/assets/compare/@exodus/ethereum-lib@5.8.3...@exodus/ethereum-lib@5.9.0) (2025-01-22)
|
|
7
29
|
|
|
8
30
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@exodus/ethereum-lib",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.10.0",
|
|
4
4
|
"description": "Ethereum utils, such as for cryptography, address encoding/decoding, transaction building, etc.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "src/index.js",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"@exodus/bitcoin-meta": "^2.0.0",
|
|
40
40
|
"@exodus/bsc-meta": "^2.0.0",
|
|
41
41
|
"@exodus/crypto": "^1.0.0-rc.13",
|
|
42
|
-
"@exodus/ethereum-meta": "^2.
|
|
42
|
+
"@exodus/ethereum-meta": "^2.5.0",
|
|
43
43
|
"@exodus/ethereumclassic-meta": "^2.0.0",
|
|
44
44
|
"@exodus/fantommainnet-meta": "^2.0.0",
|
|
45
45
|
"@exodus/matic-meta": "^2.0.0"
|
|
@@ -51,5 +51,5 @@
|
|
|
51
51
|
"type": "git",
|
|
52
52
|
"url": "git+https://github.com/ExodusMovement/assets.git"
|
|
53
53
|
},
|
|
54
|
-
"gitHead": "
|
|
54
|
+
"gitHead": "1684d29840942a8b5dce8dc54e3de02d86964b36"
|
|
55
55
|
}
|
package/src/abi/index.js
CHANGED
|
@@ -21,14 +21,14 @@ import scdMcdMigration from './scd-mcd-migration.js'
|
|
|
21
21
|
|
|
22
22
|
const index = {
|
|
23
23
|
ant,
|
|
24
|
-
cdai,
|
|
24
|
+
cdai, // 'cdai' has been demoted. Keeping the ABI for now in case we still need it
|
|
25
25
|
dai,
|
|
26
26
|
erc20,
|
|
27
27
|
erc20BytesParams,
|
|
28
28
|
erc721,
|
|
29
29
|
ethStakingAccounting,
|
|
30
30
|
ethStakingPool,
|
|
31
|
-
gnt,
|
|
31
|
+
gnt, // 'golem' has been demoted. Keeping the ABI for now in case we still need it
|
|
32
32
|
kyberv2,
|
|
33
33
|
loomv2Swap,
|
|
34
34
|
repv2,
|
|
@@ -9,10 +9,12 @@ export default function createContract(address, contractName) {
|
|
|
9
9
|
// return new SolidityContract(ABI.dai, address)
|
|
10
10
|
// case 'cdai':
|
|
11
11
|
// return new SolidityContract(ABI.cdai, address)
|
|
12
|
+
// 'augurv2' has been demoted. Keeping the ABI for now in case we still need it
|
|
12
13
|
case 'augurv2':
|
|
13
14
|
return new SolidityContract(ABI.repv2, address, true)
|
|
14
15
|
case 'aragon':
|
|
15
16
|
return new SolidityContract(ABI.ant, address, true)
|
|
17
|
+
// 'golem' has been demoted. Keeping the ABI for now in case we still need it
|
|
16
18
|
case 'golem':
|
|
17
19
|
return new SolidityContract(ABI.gnt, address, true)
|
|
18
20
|
case 'loomv2Swap':
|
package/src/get-activity-txs.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export const getActivityTxs = ({ txs, asset }) => {
|
|
2
2
|
return txs.flatMap((tx) => {
|
|
3
|
-
const { claim,
|
|
3
|
+
const { claim, rewards } = tx.data
|
|
4
4
|
const txs = []
|
|
5
5
|
if (claim) {
|
|
6
6
|
const claimAmount = asset.currency.defaultUnit(claim)
|
|
@@ -11,11 +11,11 @@ export const getActivityTxs = ({ txs, asset }) => {
|
|
|
11
11
|
})
|
|
12
12
|
}
|
|
13
13
|
|
|
14
|
-
if (
|
|
15
|
-
const rewardAmount = asset.currency.defaultUnit(
|
|
14
|
+
if (rewards) {
|
|
15
|
+
const rewardAmount = asset.currency.defaultUnit(rewards)
|
|
16
16
|
txs.push({
|
|
17
17
|
...tx,
|
|
18
|
-
data: {
|
|
18
|
+
data: { rewards, meta: 'derivedFromGetActivityTxs' },
|
|
19
19
|
coinAmount: rewardAmount,
|
|
20
20
|
})
|
|
21
21
|
}
|