dkg.js 6.5.2 → 6.5.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/constants.js +9 -0
- package/dist/dkg.min.js +1 -1
- package/examples/demo.js +12 -0
- package/examples/paranet-demo.js +3 -2
- package/managers/asset-operations-manager.js +70 -47
- package/managers/paranet-operations-manager.js +15 -7
- package/package.json +1 -1
- package/services/blockchain-service/blockchain-service-base.js +59 -6
- package/services/blockchain-service/implementations/browser-blockchain-service.js +6 -1
- package/services/blockchain-service/implementations/node-blockchain-service.js +9 -13
- package/services/input-service.js +22 -1
package/constants.js
CHANGED
|
@@ -197,6 +197,14 @@ const DEFAULT_PROXIMITY_SCORE_FUNCTIONS_PAIR_IDS = {
|
|
|
197
197
|
},
|
|
198
198
|
};
|
|
199
199
|
|
|
200
|
+
const DEFAULT_NEUROWEB_FINALITY_PARAMETERS = {
|
|
201
|
+
WAIT_NEUROWEB_TX_FINALIZATION: false,
|
|
202
|
+
TX_FINALITY_POLLING_INTERVAL: 6_000,
|
|
203
|
+
TX_FINALITY_MAX_WAIT_TIME: 60_000,
|
|
204
|
+
TX_REMINING_POLLING_INTERVAL: 6_000,
|
|
205
|
+
TX_REMINING_MAX_WAIT_TIME: 60_000,
|
|
206
|
+
};
|
|
207
|
+
|
|
200
208
|
const DEFAULT_PARAMETERS = {
|
|
201
209
|
ENVIRONMENT: 'mainnet',
|
|
202
210
|
PORT: 8900,
|
|
@@ -257,6 +265,7 @@ module.exports = {
|
|
|
257
265
|
OPERATIONS_STEP_STATUS,
|
|
258
266
|
DEFAULT_GET_LOCAL_STORE_RESULT_FREQUENCY,
|
|
259
267
|
DEFAULT_PROXIMITY_SCORE_FUNCTIONS_PAIR_IDS,
|
|
268
|
+
DEFAULT_NEUROWEB_FINALITY_PARAMETERS,
|
|
260
269
|
DEFAULT_PARAMETERS,
|
|
261
270
|
DEFAULT_GAS_PRICE,
|
|
262
271
|
LOW_BID_SUGGESTION,
|