edge-currency-plugins 2.0.1 → 2.0.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.
|
@@ -67,7 +67,7 @@ var _processMempoolSpaceFees = require('./processMempoolSpaceFees');
|
|
|
67
67
|
async start() {
|
|
68
68
|
const edgeFees = await fetchFees({
|
|
69
69
|
...common,
|
|
70
|
-
uri: `${_constants.INFO_SERVER_URI}/networkFees/${currencyInfo.
|
|
70
|
+
uri: `${_constants.INFO_SERVER_URI}/networkFees/${currencyInfo.pluginId}`,
|
|
71
71
|
processor: _processInfoServerFees.processInfoServerFees
|
|
72
72
|
})
|
|
73
73
|
Object.assign(fees, edgeFees)
|
|
@@ -15,6 +15,7 @@ var _disklet = require('disklet');
|
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
18
|
+
|
|
18
19
|
var _edgecorejs = require('edge-core-js');
|
|
19
20
|
|
|
20
21
|
var _filterUndefined = require('../../../util/filterUndefined');
|
|
@@ -178,7 +179,12 @@ var _utils = require('./utils');
|
|
|
178
179
|
)
|
|
179
180
|
}
|
|
180
181
|
}
|
|
181
|
-
const id = await engineState.broadcastTx(transaction)
|
|
182
|
+
const id = await engineState.broadcastTx(transaction).catch(err => {
|
|
183
|
+
if (String(err).includes('Error: Blockbook Error: -26: dust')) {
|
|
184
|
+
throw new (0, _edgecorejs.DustSpendError)()
|
|
185
|
+
}
|
|
186
|
+
throw err
|
|
187
|
+
})
|
|
182
188
|
if (id !== transaction.txid) {
|
|
183
189
|
throw new Error('broadcast response txid does not match original')
|
|
184
190
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "edge-currency-plugins",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.3",
|
|
4
4
|
"description": "Edge currency plugins to fetch and process wallet accounts, balances and transactions.",
|
|
5
5
|
"repository": "https://github.com/EdgeApp/edge-currency-plugins",
|
|
6
6
|
"license": "MIT",
|
|
@@ -48,7 +48,6 @@
|
|
|
48
48
|
"bs58smartcheck": "^2.0.4",
|
|
49
49
|
"cleaners": "^0.3.12",
|
|
50
50
|
"disklet": "^0.4.5",
|
|
51
|
-
"edge-core-js": "^0.19.48",
|
|
52
51
|
"edge-sync-client": "^0.2.7",
|
|
53
52
|
"memlet": "^0.1.7",
|
|
54
53
|
"uri-js": "^4.4.0",
|
|
@@ -73,6 +72,7 @@
|
|
|
73
72
|
"@typescript-eslint/parser": "^4.8.2",
|
|
74
73
|
"chai": "^4.2.0",
|
|
75
74
|
"chai-as-promised": "^7.1.1",
|
|
75
|
+
"edge-core-js": "^0.19.48",
|
|
76
76
|
"eslint": "^7.14.0",
|
|
77
77
|
"eslint-config-standard-kit": "0.15.1",
|
|
78
78
|
"eslint-plugin-import": "^2.22.1",
|