@exodus/bitcoin-plugin 1.31.1 → 1.32.1

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
+ ## [1.32.1](https://github.com/ExodusMovement/assets/compare/@exodus/bitcoin-plugin@1.32.0...@exodus/bitcoin-plugin@1.32.1) (2025-01-27)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+
12
+ * fix: ETH web3 assert typo (#4826)
13
+
14
+
15
+
16
+ ## [1.32.0](https://github.com/ExodusMovement/assets/compare/@exodus/bitcoin-plugin@1.31.1...@exodus/bitcoin-plugin@1.32.0) (2025-01-10)
17
+
18
+
19
+ ### Features
20
+
21
+
22
+ * feat: bitcoin dust fee display (#4789)
23
+
24
+
25
+
6
26
  ## [1.31.1](https://github.com/ExodusMovement/assets/compare/@exodus/bitcoin-plugin@1.31.0...@exodus/bitcoin-plugin@1.31.1) (2025-01-08)
7
27
 
8
28
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@exodus/bitcoin-plugin",
3
- "version": "1.31.1",
3
+ "version": "1.32.1",
4
4
  "description": "Bitcoin plugin for Exodus SDK powered wallets",
5
5
  "type": "module",
6
6
  "main": "src/index.js",
@@ -23,7 +23,7 @@
23
23
  "dependencies": {
24
24
  "@exodus/asset-lib": "^5.0.0",
25
25
  "@exodus/bip44-constants": "^195.0.0",
26
- "@exodus/bitcoin-api": "^2.29.8",
26
+ "@exodus/bitcoin-api": "^2.30.0",
27
27
  "@exodus/bitcoin-lib": "^2.4.2",
28
28
  "@exodus/bitcoin-meta": "^2.0.1",
29
29
  "@exodus/bitcoinjs": "^1.1.0",
@@ -31,7 +31,7 @@
31
31
  "@exodus/fetch": "^1.3.0",
32
32
  "@exodus/models": "^12.0.1",
33
33
  "@exodus/text-encoding-utf8": "^1.0.2",
34
- "@exodus/web3-bitcoin-utils": "^2.3.0",
34
+ "@exodus/web3-bitcoin-utils": "^2.3.3",
35
35
  "coininfo": "^5.1.0",
36
36
  "lodash": "^4.17.21",
37
37
  "minimalistic-assert": "^1.0.1",
@@ -58,5 +58,5 @@
58
58
  "type": "git",
59
59
  "url": "git+https://github.com/ExodusMovement/assets.git"
60
60
  },
61
- "gitHead": "c848fe0785fb999de9241cb35456ed5c56c52093"
61
+ "gitHead": "ca80bc54107fb73e965defe4948136e7130a8f02"
62
62
  }
@@ -375,7 +375,13 @@ export const createBitcoinAssetFactory =
375
375
  createToken,
376
376
  getTokens,
377
377
  validateAssetId,
378
- web3: createWeb3API({ asset, assetClientInterface, prepareForSigning }),
378
+ web3: createWeb3API({
379
+ assetClientInterface,
380
+ baseAssetName: asset.name,
381
+ currency: asset.currency,
382
+ insightClient,
383
+ prepareForSigning,
384
+ }),
379
385
  }
380
386
 
381
387
  const fullAsset = {
@@ -2,13 +2,24 @@ import { createSimulateTransactions as createSimulateBitcoinTransactions } from
2
2
  import assert from 'minimalistic-assert'
3
3
 
4
4
  // This function accepts either a list of transactions created by a wallet (unsignedTxs) or a web3 transaction (transactionBuffers).
5
- export const createSimulateTransactions = ({ asset, assetClientInterface, prepareForSigning }) => {
6
- assert('asset', '"asset" should be passed.')
7
- assert('assetClientInterface', '"assetClientInterface" should be passed.')
8
- assert('prepareForSigning', '"prepareForSigning" should be passed')
5
+ export const createSimulateTransactions = ({
6
+ assetClientInterface,
7
+ baseAssetName,
8
+ currency,
9
+ insightClient,
10
+ prepareForSigning,
11
+ }) => {
12
+ assert(assetClientInterface, '"assetClientInterface" should be passed.')
13
+ assert(baseAssetName, '"baseAssetName" should be passed.')
14
+ assert(currency, '"currency" should be passed.')
15
+ assert(insightClient, '"insightClient" should be passed.')
16
+ assert(prepareForSigning, '"prepareForSigning" should be passed')
9
17
 
10
18
  const simulateBitcoinTransactions = createSimulateBitcoinTransactions({
11
- logger: assetClientInterface.createLogger(`${asset.name}:simulation`),
19
+ baseAssetName,
20
+ currency,
21
+ insightClient,
22
+ logger: assetClientInterface.createLogger(`${baseAssetName}:simulation`),
12
23
  })
13
24
 
14
25
  return function simulateTransactions({ transactionBuffers, unsignedTxs, ...restParameters }) {
@@ -52,7 +63,6 @@ export const createSimulateTransactions = ({ asset, assetClientInterface, prepar
52
63
  }, {})
53
64
 
54
65
  return simulateBitcoinTransactions({
55
- asset,
56
66
  transactions: [psbtBase64],
57
67
  walletAddresses,
58
68
  indexToAddressRecord,