@exodus/ethereum-plugin 2.26.0 → 2.28.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 CHANGED
@@ -3,6 +3,26 @@
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
+ ## [2.28.0](https://github.com/ExodusMovement/assets/compare/@exodus/ethereum-plugin@2.27.0...@exodus/ethereum-plugin@2.28.0) (2026-03-18)
7
+
8
+
9
+ ### Features
10
+
11
+
12
+ * feat: add USDC blacklist check on ethereum (#7580)
13
+
14
+
15
+
16
+ ## [2.27.0](https://github.com/ExodusMovement/assets/compare/@exodus/ethereum-plugin@2.26.0...@exodus/ethereum-plugin@2.27.0) (2026-03-12)
17
+
18
+
19
+ ### Features
20
+
21
+
22
+ * feat: persist security checks in account state and formalize asset.api.securityChecks API (#7537)
23
+
24
+
25
+
6
26
  ## [2.26.0](https://github.com/ExodusMovement/assets/compare/@exodus/ethereum-plugin@2.24.0...@exodus/ethereum-plugin@2.26.0) (2026-03-09)
7
27
 
8
28
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@exodus/ethereum-plugin",
3
- "version": "2.26.0",
3
+ "version": "2.28.0",
4
4
  "description": "Ethereum plugin for Exodus SDK powered wallets",
5
5
  "type": "module",
6
6
  "main": "src/index.js",
@@ -24,8 +24,8 @@
24
24
  "@exodus/asset-lib": "^5.8.0",
25
25
  "@exodus/basic-utils": "^3.0.1",
26
26
  "@exodus/currency": "^6.0.1",
27
- "@exodus/ethereum-api": "^8.68.0",
28
- "@exodus/ethereum-lib": "^5.21.0",
27
+ "@exodus/ethereum-api": "^8.70.0",
28
+ "@exodus/ethereum-lib": "^5.22.0",
29
29
  "@exodus/ethereum-meta": "^2.9.0",
30
30
  "@exodus/ethereumjs": "^1.0.0",
31
31
  "@exodus/safe-string": "^1.4.0",
@@ -51,5 +51,5 @@
51
51
  "type": "git",
52
52
  "url": "git+https://github.com/ExodusMovement/assets.git"
53
53
  },
54
- "gitHead": "7da7b29b3177ad6155d5018c297e795cd4d3bda8"
54
+ "gitHead": "2933d00c85191b547e822a292f1884b8d6d9e6d7"
55
55
  }
@@ -3,13 +3,23 @@ import { createContractBlackListCheck } from '@exodus/ethereum-api'
3
3
  import assetsList from '@exodus/ethereum-meta'
4
4
 
5
5
  const tetherusd = assetsList.find(({ name }) => name === 'tetherusd')
6
- const contractAddress = tetherusd.contract.current
6
+ const tetherusdContractAddress = tetherusd.assetId
7
+ const usdcoin = assetsList.find(({ name }) => name === 'usdcoin')
8
+ const usdcoinContractAddress = usdcoin.assetId
7
9
 
8
10
  export const tetherusdBlackListCheckFactory = ({ server }) =>
9
11
  createContractBlackListCheck({
10
- contractAddress,
12
+ contractAddress: tetherusdContractAddress,
11
13
  selector: '0xe47d6060',
12
14
  server,
13
15
  })
14
16
 
17
+ export const usdcoinBlackListCheckFactory = ({ server }) =>
18
+ createContractBlackListCheck({
19
+ contractAddress: usdcoinContractAddress,
20
+ selector: '0xfe575a87',
21
+ server,
22
+ })
23
+
24
+ usdcoinBlackListCheckFactory.type = BlacklistCheckTypes.CONTRACT_CALL
15
25
  tetherusdBlackListCheckFactory.type = BlacklistCheckTypes.CONTRACT_CALL
package/src/index.js CHANGED
@@ -2,7 +2,7 @@
2
2
  import { createAssetFactory } from '@exodus/ethereum-api'
3
3
  import assetsList from '@exodus/ethereum-meta'
4
4
 
5
- import { tetherusdBlackListCheckFactory } from './blacklist-checks.js'
5
+ import { tetherusdBlackListCheckFactory, usdcoinBlackListCheckFactory } from './blacklist-checks.js'
6
6
  import { stakingConfiguration, stakingDependencies } from './staking.js'
7
7
 
8
8
  const createAsset = createAssetFactory({
@@ -42,7 +42,7 @@ const createAsset = createAssetFactory({
42
42
  'shiryoinu_ethereum_ff507c93',
43
43
  'volt_ethereum_9e0778ce',
44
44
  ],
45
- blacklistChecks: [tetherusdBlackListCheckFactory],
45
+ blacklistChecks: [tetherusdBlackListCheckFactory, usdcoinBlackListCheckFactory],
46
46
  supportsCustomFees: true,
47
47
  nfts: true,
48
48
  isMaxFeeAsset: true,
@@ -1,4 +1,5 @@
1
1
  import { memoize } from '@exodus/basic-utils'
2
+ // eslint-disable-next-line @exodus/import/no-deprecated
2
3
  import { isNumberUnit } from '@exodus/currency'
3
4
  import {
4
5
  estimateGasLimit,
@@ -15,6 +16,7 @@ export function stakingServiceFactory({ assetClientInterface, server: _server, s
15
16
  const assetName = 'ethereum'
16
17
 
17
18
  function amountToCurrency({ asset, amount }) {
19
+ // eslint-disable-next-line @exodus/import/no-deprecated
18
20
  return isNumberUnit(amount) ? amount : asset.currency.parse(amount)
19
21
  }
20
22