dkg.js 6.0.13 → 6.0.14
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 +7 -0
- package/dist/dkg.min.js +1 -1
- package/examples/demo.js +75 -30
- package/index.js +8 -4
- package/managers/assertion-operations-manager.js +68 -0
- package/managers/asset-operations-manager.js +119 -47
- package/managers/blockchain-operations-manager.js +13 -1
- package/managers/graph-operations-manager.js +1 -1
- package/managers/network-operations-manager.js +47 -0
- package/managers/node-operations-manager.js +1 -1
- package/package.json +2 -2
- package/services/blockchain-service/implementations/node-blockchain-service.js +2 -3
- package/services/input-service.js +11 -0
- package/services/utilities.js +5 -7
- package/services/validation-service.js +7 -1
- package/managers/index-operations-manager.js +0 -3
package/constants.js
CHANGED
|
@@ -43,6 +43,12 @@ const BLOCKCHAINS = {
|
|
|
43
43
|
},
|
|
44
44
|
};
|
|
45
45
|
|
|
46
|
+
const TRANSACTION_RETRY_ERRORS = [
|
|
47
|
+
'transaction was not mined',
|
|
48
|
+
'already known',
|
|
49
|
+
'replacement transaction underpriced',
|
|
50
|
+
];
|
|
51
|
+
|
|
46
52
|
const WEBSOCKET_PROVIDER_OPTIONS = {
|
|
47
53
|
reconnect: {
|
|
48
54
|
auto: true,
|
|
@@ -146,6 +152,7 @@ module.exports = {
|
|
|
146
152
|
DID_PREFIX,
|
|
147
153
|
PRIVATE_ASSERTION_PREDICATE,
|
|
148
154
|
BLOCKCHAINS,
|
|
155
|
+
TRANSACTION_RETRY_ERRORS,
|
|
149
156
|
WEBSOCKET_PROVIDER_OPTIONS,
|
|
150
157
|
OPERATIONS,
|
|
151
158
|
OPERATION_STATUSES,
|