@exodus/ethereum-api 8.22.1 → 8.22.3

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,24 @@
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
+ ## [8.22.3](https://github.com/ExodusMovement/assets/compare/@exodus/ethereum-api@8.22.2...@exodus/ethereum-api@8.22.3) (2024-12-09)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+
12
+ * fix: send evm compatibility (#4661)
13
+
14
+
15
+
16
+ ## [8.22.2](https://github.com/ExodusMovement/assets/compare/@exodus/ethereum-api@8.22.1...@exodus/ethereum-api@8.22.2) (2024-12-04)
17
+
18
+ **Note:** Version bump only for package @exodus/ethereum-api
19
+
20
+
21
+
22
+
23
+
6
24
  ## [8.22.1](https://github.com/ExodusMovement/assets/compare/@exodus/ethereum-api@8.22.0...@exodus/ethereum-api@8.22.1) (2024-12-03)
7
25
 
8
26
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@exodus/ethereum-api",
3
- "version": "8.22.1",
3
+ "version": "8.22.3",
4
4
  "description": "Transaction monitors, fee monitors, RPC with the blockchain node, and other networking code for Ethereum and EVM-based blockchains",
5
5
  "type": "module",
6
6
  "main": "src/index.js",
@@ -64,5 +64,5 @@
64
64
  "type": "git",
65
65
  "url": "git+https://github.com/ExodusMovement/assets.git"
66
66
  },
67
- "gitHead": "3388dd56aaa85965b27bc8a13e92f098a43cba58"
67
+ "gitHead": "baff21e8431ee823250984b91dd5c3f4bb51ba32"
68
68
  }
@@ -263,6 +263,7 @@ export const createAssetFactory = ({
263
263
  getSupportedPurposes: () => [44],
264
264
  getTokens,
265
265
  hasFeature: (feature) => !!features[feature], // @deprecated use api.features instead
266
+ privateKeyEncodingDefinition: { encoding: 'hex', prefix: '0x' },
266
267
  sendTx,
267
268
  signTx: ({ unsignedTx, privateKey, signer }) =>
268
269
  signer
@@ -12,26 +12,27 @@ import { resolveNonce } from './nonce-utils.js'
12
12
  const txSendFactory = ({ assetClientInterface, createUnsignedTx }) => {
13
13
  assert(assetClientInterface, 'assetClientInterface is required')
14
14
  assert(createUnsignedTx, 'createUnsignedTx is required')
15
- return async ({
16
- nft,
17
- asset,
18
- walletAccount,
19
- amount,
20
- address,
21
- feeAmount,
22
- shouldLog = true,
23
- keepTxInput,
24
- txInput,
25
- nonce: providedNonce,
26
- bumpTxId,
27
- customFee,
28
- isSendAll,
29
- isExchange,
30
- feeOpts: feeOpts_ = {},
31
- }) => {
15
+ return async ({ asset, walletAccount, address, amount, options = {} }) => {
16
+ const {
17
+ nft,
18
+ isExchange,
19
+ bumpTxId,
20
+ nonce: providedNonce,
21
+ customFee,
22
+ keepTxInput,
23
+ isSendAll,
24
+ } = options
25
+ let { txInput, feeAmount } = options // avoid let!
26
+
27
+ const feeOpts = {
28
+ gasPrice: options.gasPrice,
29
+ tipGasPrice: options.tipGasPrice,
30
+ gasLimit: options.gasLimit,
31
+ }
32
+
32
33
  const assetName = asset.name
33
34
  const baseAsset = asset.baseAsset
34
- const feeOpts = { ...feeOpts_ }
35
+
35
36
  const assets = await assetClientInterface.getAssetsForNetwork({ baseAssetName: baseAsset.name })
36
37
 
37
38
  // Using a default zero value to not break code relying on the `tx.feeAmount` property.