@exodus/bitcoin-plugin 1.6.9-hiro.0 → 1.6.9-hiro.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@exodus/bitcoin-plugin",
3
- "version": "1.6.9-hiro.0",
3
+ "version": "1.6.9-hiro.1",
4
4
  "description": "Exodus bitcoin-plugin",
5
5
  "main": "src/index.js",
6
6
  "files": [
@@ -20,7 +20,7 @@
20
20
  "dependencies": {
21
21
  "@exodus/asset-lib": "^4.0.0",
22
22
  "@exodus/basic-utils": "^2.1.0",
23
- "@exodus/bitcoin-api": "^2.6.8-hiro.0",
23
+ "@exodus/bitcoin-api": "^2.6.8-hiro.2",
24
24
  "@exodus/bitcoin-lib": "^2.2.11",
25
25
  "@exodus/models": "^11.0.0",
26
26
  "@exodus/text-encoding-utf8": "^1.0.2",
@@ -43,6 +43,7 @@ export const createBitcoinAssetFactory = ({ asset, apiUrl: defaultApiUrl, coinIn
43
43
  gapLimit = 10,
44
44
  refreshGapLimit = 25,
45
45
  overrideCallback = ({ asset }) => asset,
46
+ feeDataCustomValues,
46
47
  } = {}) => {
47
48
  const apiUrl = customApiUrl || defaultApiUrl
48
49
  assert(asset, 'asset is required')
@@ -96,7 +97,10 @@ export const createBitcoinAssetFactory = ({ asset, apiUrl: defaultApiUrl, coinIn
96
97
  allowUnconfirmedRbfEnabledUtxos,
97
98
  })
98
99
 
99
- const feeData = bitcoinFeeDataFactory(asset.currency)
100
+ const feeData = bitcoinFeeDataFactory({
101
+ currency: asset.currency,
102
+ overrideDefaults: feeDataCustomValues,
103
+ })
100
104
 
101
105
  const baseGetBalances = getBalancesFactory({
102
106
  feeData,
package/src/fee-data.js CHANGED
@@ -11,6 +11,7 @@ export const _defaults = {
11
11
  rbfBumpFeeBlocks: 3,
12
12
  rbfBumpFeeThreshold: 0.8,
13
13
  rbfEnabled: true,
14
+ utxoDustValue: 0,
14
15
  }
15
- export const bitcoinFeeDataFactory = (currency) =>
16
- new FeeData({ config: _defaults, mainKey: 'feePerKB', currency })
16
+ export const bitcoinFeeDataFactory = ({ currency, overrideDefaults }) =>
17
+ new FeeData({ config: { ..._defaults, ...overrideDefaults }, mainKey: 'feePerKB', currency })