dkg.js 6.2.1 → 6.4.0
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 -4
- package/dist/dkg.min.js +1 -1
- package/examples/paranet-demo.js +254 -0
- package/index.js +2 -0
- package/managers/asset-operations-manager.js +74 -14
- package/managers/paranet-operations-manager.js +552 -0
- package/package.json +2 -2
- package/services/blockchain-service/blockchain-service-base.js +277 -10
- package/services/blockchain-service/implementations/node-blockchain-service.js +1 -1
- package/services/input-service.js +81 -1
- package/services/utilities.js +1 -3
- package/services/validation-service.js +148 -3
package/constants.js
CHANGED
|
@@ -64,6 +64,10 @@ const BLOCKCHAINS = {
|
|
|
64
64
|
},
|
|
65
65
|
};
|
|
66
66
|
|
|
67
|
+
const INCENTIVE_TYPE = {
|
|
68
|
+
NEUROWEB: 'Neuroweb',
|
|
69
|
+
}
|
|
70
|
+
|
|
67
71
|
const BLOCKCHAINS_RENAME_PAIRS = {
|
|
68
72
|
hardhat1: 'hardhat1:31337',
|
|
69
73
|
hardhat2: 'hardhat2:31337',
|
|
@@ -163,17 +167,17 @@ const OPERATIONS_STEP_STATUS = {
|
|
|
163
167
|
const DEFAULT_GET_LOCAL_STORE_RESULT_FREQUENCY = 0.5;
|
|
164
168
|
|
|
165
169
|
const DEFAULT_PROXIMITY_SCORE_FUNCTIONS_PAIR_IDS = {
|
|
166
|
-
development: { 'hardhat1:31337':
|
|
170
|
+
development: { 'hardhat1:31337': 2, 'hardhat2:31337': 2, 'otp:2043': 2 },
|
|
167
171
|
devnet: {
|
|
168
|
-
'otp:2160':
|
|
172
|
+
'otp:2160': 2,
|
|
169
173
|
'gnosis:10200': 2,
|
|
170
174
|
},
|
|
171
175
|
testnet: {
|
|
172
|
-
'otp:20430':
|
|
176
|
+
'otp:20430': 2,
|
|
173
177
|
'gnosis:10200': 2,
|
|
174
178
|
},
|
|
175
179
|
mainnet: {
|
|
176
|
-
'otp:2043':
|
|
180
|
+
'otp:2043': 2,
|
|
177
181
|
'gnosis:100': 2,
|
|
178
182
|
},
|
|
179
183
|
};
|
|
@@ -225,6 +229,7 @@ module.exports = {
|
|
|
225
229
|
ASSERTION_STATES,
|
|
226
230
|
CONTENT_TYPES,
|
|
227
231
|
GET_OUTPUT_FORMATS,
|
|
232
|
+
INCENTIVE_TYPE,
|
|
228
233
|
ASSET_STATES,
|
|
229
234
|
STORE_TYPES,
|
|
230
235
|
GRAPH_LOCATIONS,
|