dkg 0.1.0b2__py3-none-any.whl → 0.1.0b4__py3-none-any.whl
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.
- dkg/asset.py +93 -37
- dkg/constants.py +41 -13
- dkg/data/interfaces/Assertion.json +26 -0
- dkg/data/interfaces/CommitManagerV1.json +26 -11
- dkg/data/interfaces/CommitManagerV1U1.json +26 -11
- dkg/data/interfaces/ContentAssetStorage.json +76 -0
- dkg/data/interfaces/HashingProxy.json +26 -0
- dkg/data/interfaces/Hub.json +2 -2
- dkg/data/interfaces/Identity.json +26 -0
- dkg/data/interfaces/ParametersStorage.json +19 -0
- dkg/data/interfaces/Profile.json +26 -0
- dkg/data/interfaces/ProfileStorage.json +3 -3
- dkg/data/interfaces/ProofManagerV1.json +28 -13
- dkg/data/interfaces/ProofManagerV1U1.json +28 -13
- dkg/data/interfaces/ScoringProxy.json +26 -0
- dkg/data/interfaces/ServiceAgreementStorageProxy.json +27 -12
- dkg/data/interfaces/ServiceAgreementStorageV1.json +5 -5
- dkg/data/interfaces/ServiceAgreementStorageV1U1.json +5 -5
- dkg/data/interfaces/ServiceAgreementV1.json +28 -24
- dkg/data/interfaces/ShardingTable.json +26 -0
- dkg/data/interfaces/Staking.json +26 -0
- dkg/data/interfaces/Token.json +60 -16
- dkg/exceptions.py +16 -0
- dkg/network.py +2 -4
- dkg/providers/blockchain.py +140 -35
- dkg/providers/node_http.py +23 -23
- dkg/types/__init__.py +1 -1
- dkg/types/blockchain.py +5 -2
- dkg/utils/ual.py +4 -1
- {dkg-0.1.0b2.dist-info → dkg-0.1.0b4.dist-info}/METADATA +1 -1
- dkg-0.1.0b4.dist-info/RECORD +64 -0
- dkg-0.1.0b2.dist-info/RECORD +0 -64
- {dkg-0.1.0b2.dist-info → dkg-0.1.0b4.dist-info}/LICENSE +0 -0
- {dkg-0.1.0b2.dist-info → dkg-0.1.0b4.dist-info}/WHEEL +0 -0
dkg/data/interfaces/Hub.json
CHANGED
@@ -111,7 +111,7 @@
|
|
111
111
|
"type": "address"
|
112
112
|
}
|
113
113
|
],
|
114
|
-
"internalType": "struct
|
114
|
+
"internalType": "struct UnorderedNamedContractDynamicSetStructs.Contract[]",
|
115
115
|
"name": "",
|
116
116
|
"type": "tuple[]"
|
117
117
|
}
|
@@ -136,7 +136,7 @@
|
|
136
136
|
"type": "address"
|
137
137
|
}
|
138
138
|
],
|
139
|
-
"internalType": "struct
|
139
|
+
"internalType": "struct UnorderedNamedContractDynamicSetStructs.Contract[]",
|
140
140
|
"name": "",
|
141
141
|
"type": "tuple[]"
|
142
142
|
}
|
@@ -177,6 +177,32 @@
|
|
177
177
|
"stateMutability": "nonpayable",
|
178
178
|
"type": "function"
|
179
179
|
},
|
180
|
+
{
|
181
|
+
"inputs": [
|
182
|
+
{
|
183
|
+
"internalType": "bool",
|
184
|
+
"name": "_status",
|
185
|
+
"type": "bool"
|
186
|
+
}
|
187
|
+
],
|
188
|
+
"name": "setStatus",
|
189
|
+
"outputs": [],
|
190
|
+
"stateMutability": "nonpayable",
|
191
|
+
"type": "function"
|
192
|
+
},
|
193
|
+
{
|
194
|
+
"inputs": [],
|
195
|
+
"name": "status",
|
196
|
+
"outputs": [
|
197
|
+
{
|
198
|
+
"internalType": "bool",
|
199
|
+
"name": "",
|
200
|
+
"type": "bool"
|
201
|
+
}
|
202
|
+
],
|
203
|
+
"stateMutability": "view",
|
204
|
+
"type": "function"
|
205
|
+
},
|
180
206
|
{
|
181
207
|
"inputs": [],
|
182
208
|
"name": "version",
|
@@ -10,6 +10,25 @@
|
|
10
10
|
"stateMutability": "nonpayable",
|
11
11
|
"type": "constructor"
|
12
12
|
},
|
13
|
+
{
|
14
|
+
"anonymous": false,
|
15
|
+
"inputs": [
|
16
|
+
{
|
17
|
+
"indexed": false,
|
18
|
+
"internalType": "string",
|
19
|
+
"name": "parameterName",
|
20
|
+
"type": "string"
|
21
|
+
},
|
22
|
+
{
|
23
|
+
"indexed": false,
|
24
|
+
"internalType": "uint256",
|
25
|
+
"name": "parameterValue",
|
26
|
+
"type": "uint256"
|
27
|
+
}
|
28
|
+
],
|
29
|
+
"name": "ParameterChanged",
|
30
|
+
"type": "event"
|
31
|
+
},
|
13
32
|
{
|
14
33
|
"inputs": [],
|
15
34
|
"name": "commitWindowDurationPerc",
|
dkg/data/interfaces/Profile.json
CHANGED
@@ -211,6 +211,19 @@
|
|
211
211
|
"stateMutability": "nonpayable",
|
212
212
|
"type": "function"
|
213
213
|
},
|
214
|
+
{
|
215
|
+
"inputs": [
|
216
|
+
{
|
217
|
+
"internalType": "bool",
|
218
|
+
"name": "_status",
|
219
|
+
"type": "bool"
|
220
|
+
}
|
221
|
+
],
|
222
|
+
"name": "setStatus",
|
223
|
+
"outputs": [],
|
224
|
+
"stateMutability": "nonpayable",
|
225
|
+
"type": "function"
|
226
|
+
},
|
214
227
|
{
|
215
228
|
"inputs": [
|
216
229
|
{
|
@@ -250,6 +263,19 @@
|
|
250
263
|
"stateMutability": "nonpayable",
|
251
264
|
"type": "function"
|
252
265
|
},
|
266
|
+
{
|
267
|
+
"inputs": [],
|
268
|
+
"name": "status",
|
269
|
+
"outputs": [
|
270
|
+
{
|
271
|
+
"internalType": "bool",
|
272
|
+
"name": "",
|
273
|
+
"type": "bool"
|
274
|
+
}
|
275
|
+
],
|
276
|
+
"stateMutability": "view",
|
277
|
+
"type": "function"
|
278
|
+
},
|
253
279
|
{
|
254
280
|
"inputs": [],
|
255
281
|
"name": "version",
|
@@ -240,17 +240,17 @@
|
|
240
240
|
"outputs": [
|
241
241
|
{
|
242
242
|
"internalType": "bytes",
|
243
|
-
"name": "",
|
243
|
+
"name": "nodeId",
|
244
244
|
"type": "bytes"
|
245
245
|
},
|
246
246
|
{
|
247
247
|
"internalType": "uint96[2]",
|
248
|
-
"name": "",
|
248
|
+
"name": "profileSettings",
|
249
249
|
"type": "uint96[2]"
|
250
250
|
},
|
251
251
|
{
|
252
252
|
"internalType": "address",
|
253
|
-
"name": "",
|
253
|
+
"name": "sharesContractAddress",
|
254
254
|
"type": "address"
|
255
255
|
}
|
256
256
|
],
|
@@ -67,17 +67,6 @@
|
|
67
67
|
"name": "NodeNotAwarded",
|
68
68
|
"type": "error"
|
69
69
|
},
|
70
|
-
{
|
71
|
-
"inputs": [
|
72
|
-
{
|
73
|
-
"internalType": "address",
|
74
|
-
"name": "caller",
|
75
|
-
"type": "address"
|
76
|
-
}
|
77
|
-
],
|
78
|
-
"name": "OnlyHubOwnerFunction",
|
79
|
-
"type": "error"
|
80
|
-
},
|
81
70
|
{
|
82
71
|
"inputs": [
|
83
72
|
{
|
@@ -275,12 +264,12 @@
|
|
275
264
|
"outputs": [
|
276
265
|
{
|
277
266
|
"internalType": "bytes32",
|
278
|
-
"name": "",
|
267
|
+
"name": "assertionId",
|
279
268
|
"type": "bytes32"
|
280
269
|
},
|
281
270
|
{
|
282
271
|
"internalType": "uint256",
|
283
|
-
"name": "",
|
272
|
+
"name": "challenge",
|
284
273
|
"type": "uint256"
|
285
274
|
}
|
286
275
|
],
|
@@ -496,6 +485,19 @@
|
|
496
485
|
"stateMutability": "nonpayable",
|
497
486
|
"type": "function"
|
498
487
|
},
|
488
|
+
{
|
489
|
+
"inputs": [
|
490
|
+
{
|
491
|
+
"internalType": "bool",
|
492
|
+
"name": "_status",
|
493
|
+
"type": "bool"
|
494
|
+
}
|
495
|
+
],
|
496
|
+
"name": "setStatus",
|
497
|
+
"outputs": [],
|
498
|
+
"stateMutability": "nonpayable",
|
499
|
+
"type": "function"
|
500
|
+
},
|
499
501
|
{
|
500
502
|
"inputs": [],
|
501
503
|
"name": "stakingContract",
|
@@ -509,6 +511,19 @@
|
|
509
511
|
"stateMutability": "view",
|
510
512
|
"type": "function"
|
511
513
|
},
|
514
|
+
{
|
515
|
+
"inputs": [],
|
516
|
+
"name": "status",
|
517
|
+
"outputs": [
|
518
|
+
{
|
519
|
+
"internalType": "bool",
|
520
|
+
"name": "",
|
521
|
+
"type": "bool"
|
522
|
+
}
|
523
|
+
],
|
524
|
+
"stateMutability": "view",
|
525
|
+
"type": "function"
|
526
|
+
},
|
512
527
|
{
|
513
528
|
"inputs": [],
|
514
529
|
"name": "version",
|
@@ -77,17 +77,6 @@
|
|
77
77
|
"name": "NodeNotAwarded",
|
78
78
|
"type": "error"
|
79
79
|
},
|
80
|
-
{
|
81
|
-
"inputs": [
|
82
|
-
{
|
83
|
-
"internalType": "address",
|
84
|
-
"name": "caller",
|
85
|
-
"type": "address"
|
86
|
-
}
|
87
|
-
],
|
88
|
-
"name": "OnlyHubOwnerFunction",
|
89
|
-
"type": "error"
|
90
|
-
},
|
91
80
|
{
|
92
81
|
"inputs": [
|
93
82
|
{
|
@@ -296,12 +285,12 @@
|
|
296
285
|
"outputs": [
|
297
286
|
{
|
298
287
|
"internalType": "bytes32",
|
299
|
-
"name": "",
|
288
|
+
"name": "assertionId",
|
300
289
|
"type": "bytes32"
|
301
290
|
},
|
302
291
|
{
|
303
292
|
"internalType": "uint256",
|
304
|
-
"name": "",
|
293
|
+
"name": "challenge",
|
305
294
|
"type": "uint256"
|
306
295
|
}
|
307
296
|
],
|
@@ -517,6 +506,19 @@
|
|
517
506
|
"stateMutability": "nonpayable",
|
518
507
|
"type": "function"
|
519
508
|
},
|
509
|
+
{
|
510
|
+
"inputs": [
|
511
|
+
{
|
512
|
+
"internalType": "bool",
|
513
|
+
"name": "_status",
|
514
|
+
"type": "bool"
|
515
|
+
}
|
516
|
+
],
|
517
|
+
"name": "setStatus",
|
518
|
+
"outputs": [],
|
519
|
+
"stateMutability": "nonpayable",
|
520
|
+
"type": "function"
|
521
|
+
},
|
520
522
|
{
|
521
523
|
"inputs": [],
|
522
524
|
"name": "stakingContract",
|
@@ -530,6 +532,19 @@
|
|
530
532
|
"stateMutability": "view",
|
531
533
|
"type": "function"
|
532
534
|
},
|
535
|
+
{
|
536
|
+
"inputs": [],
|
537
|
+
"name": "status",
|
538
|
+
"outputs": [
|
539
|
+
{
|
540
|
+
"internalType": "bool",
|
541
|
+
"name": "",
|
542
|
+
"type": "bool"
|
543
|
+
}
|
544
|
+
],
|
545
|
+
"stateMutability": "view",
|
546
|
+
"type": "function"
|
547
|
+
},
|
533
548
|
{
|
534
549
|
"inputs": [],
|
535
550
|
"name": "version",
|
@@ -226,6 +226,32 @@
|
|
226
226
|
"stateMutability": "nonpayable",
|
227
227
|
"type": "function"
|
228
228
|
},
|
229
|
+
{
|
230
|
+
"inputs": [
|
231
|
+
{
|
232
|
+
"internalType": "bool",
|
233
|
+
"name": "_status",
|
234
|
+
"type": "bool"
|
235
|
+
}
|
236
|
+
],
|
237
|
+
"name": "setStatus",
|
238
|
+
"outputs": [],
|
239
|
+
"stateMutability": "nonpayable",
|
240
|
+
"type": "function"
|
241
|
+
},
|
242
|
+
{
|
243
|
+
"inputs": [],
|
244
|
+
"name": "status",
|
245
|
+
"outputs": [
|
246
|
+
{
|
247
|
+
"internalType": "bool",
|
248
|
+
"name": "",
|
249
|
+
"type": "bool"
|
250
|
+
}
|
251
|
+
],
|
252
|
+
"stateMutability": "view",
|
253
|
+
"type": "function"
|
254
|
+
},
|
229
255
|
{
|
230
256
|
"inputs": [],
|
231
257
|
"name": "version",
|
@@ -10,17 +10,6 @@
|
|
10
10
|
"stateMutability": "nonpayable",
|
11
11
|
"type": "constructor"
|
12
12
|
},
|
13
|
-
{
|
14
|
-
"inputs": [
|
15
|
-
{
|
16
|
-
"internalType": "address",
|
17
|
-
"name": "caller",
|
18
|
-
"type": "address"
|
19
|
-
}
|
20
|
-
],
|
21
|
-
"name": "OnlyHubOwnerFunction",
|
22
|
-
"type": "error"
|
23
|
-
},
|
24
13
|
{
|
25
14
|
"inputs": [
|
26
15
|
{
|
@@ -377,6 +366,32 @@
|
|
377
366
|
"stateMutability": "nonpayable",
|
378
367
|
"type": "function"
|
379
368
|
},
|
369
|
+
{
|
370
|
+
"inputs": [
|
371
|
+
{
|
372
|
+
"internalType": "bytes32",
|
373
|
+
"name": "agreementId",
|
374
|
+
"type": "bytes32"
|
375
|
+
}
|
376
|
+
],
|
377
|
+
"name": "deleteServiceAgreementV1Object",
|
378
|
+
"outputs": [],
|
379
|
+
"stateMutability": "nonpayable",
|
380
|
+
"type": "function"
|
381
|
+
},
|
382
|
+
{
|
383
|
+
"inputs": [
|
384
|
+
{
|
385
|
+
"internalType": "bytes32",
|
386
|
+
"name": "agreementId",
|
387
|
+
"type": "bytes32"
|
388
|
+
}
|
389
|
+
],
|
390
|
+
"name": "deleteServiceAgreementV1U1Object",
|
391
|
+
"outputs": [],
|
392
|
+
"stateMutability": "nonpayable",
|
393
|
+
"type": "function"
|
394
|
+
},
|
380
395
|
{
|
381
396
|
"inputs": [
|
382
397
|
{
|
@@ -417,7 +432,7 @@
|
|
417
432
|
},
|
418
433
|
{
|
419
434
|
"internalType": "uint96[2]",
|
420
|
-
"name": "
|
435
|
+
"name": "tokens",
|
421
436
|
"type": "uint96[2]"
|
422
437
|
},
|
423
438
|
{
|
@@ -219,27 +219,27 @@
|
|
219
219
|
"outputs": [
|
220
220
|
{
|
221
221
|
"internalType": "uint256",
|
222
|
-
"name": "",
|
222
|
+
"name": "startTime",
|
223
223
|
"type": "uint256"
|
224
224
|
},
|
225
225
|
{
|
226
226
|
"internalType": "uint16",
|
227
|
-
"name": "",
|
227
|
+
"name": "epochsNumber",
|
228
228
|
"type": "uint16"
|
229
229
|
},
|
230
230
|
{
|
231
231
|
"internalType": "uint128",
|
232
|
-
"name": "",
|
232
|
+
"name": "epochLength",
|
233
233
|
"type": "uint128"
|
234
234
|
},
|
235
235
|
{
|
236
236
|
"internalType": "uint96",
|
237
|
-
"name": "",
|
237
|
+
"name": "tokenAmount",
|
238
238
|
"type": "uint96"
|
239
239
|
},
|
240
240
|
{
|
241
241
|
"internalType": "uint8[2]",
|
242
|
-
"name": "",
|
242
|
+
"name": "scoreFunctionIdAndProofWindowOffsetPerc",
|
243
243
|
"type": "uint8[2]"
|
244
244
|
}
|
245
245
|
],
|
@@ -281,27 +281,27 @@
|
|
281
281
|
"outputs": [
|
282
282
|
{
|
283
283
|
"internalType": "uint256",
|
284
|
-
"name": "",
|
284
|
+
"name": "startTime",
|
285
285
|
"type": "uint256"
|
286
286
|
},
|
287
287
|
{
|
288
288
|
"internalType": "uint16",
|
289
|
-
"name": "",
|
289
|
+
"name": "epochsNumber",
|
290
290
|
"type": "uint16"
|
291
291
|
},
|
292
292
|
{
|
293
293
|
"internalType": "uint128",
|
294
|
-
"name": "",
|
294
|
+
"name": "epochLength",
|
295
295
|
"type": "uint128"
|
296
296
|
},
|
297
297
|
{
|
298
298
|
"internalType": "uint96[2]",
|
299
|
-
"name": "",
|
299
|
+
"name": "tokens",
|
300
300
|
"type": "uint96[2]"
|
301
301
|
},
|
302
302
|
{
|
303
303
|
"internalType": "uint8[2]",
|
304
|
-
"name": "",
|
304
|
+
"name": "scoreFunctionIdAndProofWindowOffsetPerc",
|
305
305
|
"type": "uint8[2]"
|
306
306
|
}
|
307
307
|
],
|
@@ -10,28 +10,6 @@
|
|
10
10
|
"stateMutability": "nonpayable",
|
11
11
|
"type": "constructor"
|
12
12
|
},
|
13
|
-
{
|
14
|
-
"inputs": [
|
15
|
-
{
|
16
|
-
"internalType": "address",
|
17
|
-
"name": "caller",
|
18
|
-
"type": "address"
|
19
|
-
}
|
20
|
-
],
|
21
|
-
"name": "OnlyHubContractsFunction",
|
22
|
-
"type": "error"
|
23
|
-
},
|
24
|
-
{
|
25
|
-
"inputs": [
|
26
|
-
{
|
27
|
-
"internalType": "address",
|
28
|
-
"name": "caller",
|
29
|
-
"type": "address"
|
30
|
-
}
|
31
|
-
],
|
32
|
-
"name": "OnlyHubOwnerFunction",
|
33
|
-
"type": "error"
|
34
|
-
},
|
35
13
|
{
|
36
14
|
"inputs": [],
|
37
15
|
"name": "ScoreError",
|
@@ -387,12 +365,12 @@
|
|
387
365
|
"outputs": [
|
388
366
|
{
|
389
367
|
"internalType": "bytes32",
|
390
|
-
"name": "",
|
368
|
+
"name": "assertionId",
|
391
369
|
"type": "bytes32"
|
392
370
|
},
|
393
371
|
{
|
394
372
|
"internalType": "uint256",
|
395
|
-
"name": "",
|
373
|
+
"name": "challenge",
|
396
374
|
"type": "uint256"
|
397
375
|
}
|
398
376
|
],
|
@@ -654,6 +632,32 @@
|
|
654
632
|
"stateMutability": "view",
|
655
633
|
"type": "function"
|
656
634
|
},
|
635
|
+
{
|
636
|
+
"inputs": [
|
637
|
+
{
|
638
|
+
"internalType": "bool",
|
639
|
+
"name": "_status",
|
640
|
+
"type": "bool"
|
641
|
+
}
|
642
|
+
],
|
643
|
+
"name": "setStatus",
|
644
|
+
"outputs": [],
|
645
|
+
"stateMutability": "nonpayable",
|
646
|
+
"type": "function"
|
647
|
+
},
|
648
|
+
{
|
649
|
+
"inputs": [],
|
650
|
+
"name": "status",
|
651
|
+
"outputs": [
|
652
|
+
{
|
653
|
+
"internalType": "bool",
|
654
|
+
"name": "",
|
655
|
+
"type": "bool"
|
656
|
+
}
|
657
|
+
],
|
658
|
+
"stateMutability": "view",
|
659
|
+
"type": "function"
|
660
|
+
},
|
657
661
|
{
|
658
662
|
"inputs": [
|
659
663
|
{
|
@@ -226,6 +226,19 @@
|
|
226
226
|
"stateMutability": "nonpayable",
|
227
227
|
"type": "function"
|
228
228
|
},
|
229
|
+
{
|
230
|
+
"inputs": [
|
231
|
+
{
|
232
|
+
"internalType": "bool",
|
233
|
+
"name": "_status",
|
234
|
+
"type": "bool"
|
235
|
+
}
|
236
|
+
],
|
237
|
+
"name": "setStatus",
|
238
|
+
"outputs": [],
|
239
|
+
"stateMutability": "nonpayable",
|
240
|
+
"type": "function"
|
241
|
+
},
|
229
242
|
{
|
230
243
|
"inputs": [],
|
231
244
|
"name": "shardingTableStorage",
|
@@ -252,6 +265,19 @@
|
|
252
265
|
"stateMutability": "view",
|
253
266
|
"type": "function"
|
254
267
|
},
|
268
|
+
{
|
269
|
+
"inputs": [],
|
270
|
+
"name": "status",
|
271
|
+
"outputs": [
|
272
|
+
{
|
273
|
+
"internalType": "bool",
|
274
|
+
"name": "",
|
275
|
+
"type": "bool"
|
276
|
+
}
|
277
|
+
],
|
278
|
+
"stateMutability": "view",
|
279
|
+
"type": "function"
|
280
|
+
},
|
255
281
|
{
|
256
282
|
"inputs": [],
|
257
283
|
"name": "version",
|
dkg/data/interfaces/Staking.json
CHANGED
@@ -344,6 +344,19 @@
|
|
344
344
|
"stateMutability": "nonpayable",
|
345
345
|
"type": "function"
|
346
346
|
},
|
347
|
+
{
|
348
|
+
"inputs": [
|
349
|
+
{
|
350
|
+
"internalType": "bool",
|
351
|
+
"name": "_status",
|
352
|
+
"type": "bool"
|
353
|
+
}
|
354
|
+
],
|
355
|
+
"name": "setStatus",
|
356
|
+
"outputs": [],
|
357
|
+
"stateMutability": "nonpayable",
|
358
|
+
"type": "function"
|
359
|
+
},
|
347
360
|
{
|
348
361
|
"inputs": [],
|
349
362
|
"name": "shardingTableContract",
|
@@ -414,6 +427,19 @@
|
|
414
427
|
"stateMutability": "nonpayable",
|
415
428
|
"type": "function"
|
416
429
|
},
|
430
|
+
{
|
431
|
+
"inputs": [],
|
432
|
+
"name": "status",
|
433
|
+
"outputs": [
|
434
|
+
{
|
435
|
+
"internalType": "bool",
|
436
|
+
"name": "",
|
437
|
+
"type": "bool"
|
438
|
+
}
|
439
|
+
],
|
440
|
+
"stateMutability": "view",
|
441
|
+
"type": "function"
|
442
|
+
},
|
417
443
|
{
|
418
444
|
"inputs": [],
|
419
445
|
"name": "tokenContract",
|