dkg 0.1.0b1__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/__init__.py +3 -0
- dkg/asset.py +781 -0
- dkg/constants.py +39 -0
- dkg/data/interfaces/Assertion.json +131 -0
- dkg/data/interfaces/AssertionStorage.json +229 -0
- dkg/data/interfaces/CommitManagerV1.json +534 -0
- dkg/data/interfaces/CommitManagerV1U1.json +720 -0
- dkg/data/interfaces/ContentAsset.json +671 -0
- dkg/data/interfaces/ContentAssetStorage.json +706 -0
- dkg/data/interfaces/HashingProxy.json +227 -0
- dkg/data/interfaces/Hub.json +356 -0
- dkg/data/interfaces/Identity.json +193 -0
- dkg/data/interfaces/IdentityStorage.json +342 -0
- dkg/data/interfaces/ParametersStorage.json +468 -0
- dkg/data/interfaces/Profile.json +292 -0
- dkg/data/interfaces/ProfileStorage.json +596 -0
- dkg/data/interfaces/ProofManagerV1.json +525 -0
- dkg/data/interfaces/ProofManagerV1U1.json +546 -0
- dkg/data/interfaces/ScoringProxy.json +242 -0
- dkg/data/interfaces/ServiceAgreementStorageProxy.json +1299 -0
- dkg/data/interfaces/ServiceAgreementStorageV1.json +901 -0
- dkg/data/interfaces/ServiceAgreementStorageV1U1.json +1097 -0
- dkg/data/interfaces/ServiceAgreementV1.json +741 -0
- dkg/data/interfaces/ShardingTable.json +268 -0
- dkg/data/interfaces/ShardingTableStorage.json +317 -0
- dkg/data/interfaces/Staking.json +456 -0
- dkg/data/interfaces/StakingStorage.json +407 -0
- dkg/data/interfaces/Token.json +544 -0
- dkg/data/interfaces/UnfinalizedStateStorage.json +171 -0
- dkg/data/interfaces/WhitelistStorage.json +124 -0
- dkg/dataclasses.py +45 -0
- dkg/exceptions.py +161 -0
- dkg/graph.py +63 -0
- dkg/main.py +74 -0
- dkg/manager.py +64 -0
- dkg/method.py +131 -0
- dkg/module.py +63 -0
- dkg/node.py +54 -0
- dkg/providers/__init__.py +2 -0
- dkg/providers/blockchain.py +181 -0
- dkg/providers/node_http.py +62 -0
- dkg/types/__init__.py +8 -0
- dkg/types/blockchain.py +58 -0
- dkg/types/dkg_node.py +20 -0
- dkg/types/encoding.py +22 -0
- dkg/types/evm.py +25 -0
- dkg/types/generics.py +21 -0
- dkg/types/network.py +20 -0
- dkg/types/rdf.py +21 -0
- dkg/utils/__init__.py +0 -0
- dkg/utils/blockchain_request.py +159 -0
- dkg/utils/decorators.py +46 -0
- dkg/utils/merkle.py +173 -0
- dkg/utils/metadata.py +50 -0
- dkg/utils/node_request.py +197 -0
- dkg/utils/rdf.py +51 -0
- dkg/utils/string_transformations.py +22 -0
- dkg/utils/ual.py +41 -0
- dkg-0.1.0b1.dist-info/LICENSE +202 -0
- dkg-0.1.0b1.dist-info/METADATA +453 -0
- dkg-0.1.0b1.dist-info/RECORD +62 -0
- dkg-0.1.0b1.dist-info/WHEEL +4 -0
@@ -0,0 +1,741 @@
|
|
1
|
+
[
|
2
|
+
{
|
3
|
+
"inputs": [
|
4
|
+
{
|
5
|
+
"internalType": "address",
|
6
|
+
"name": "hubAddress",
|
7
|
+
"type": "address"
|
8
|
+
}
|
9
|
+
],
|
10
|
+
"stateMutability": "nonpayable",
|
11
|
+
"type": "constructor"
|
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
|
+
{
|
36
|
+
"inputs": [],
|
37
|
+
"name": "ScoreError",
|
38
|
+
"type": "error"
|
39
|
+
},
|
40
|
+
{
|
41
|
+
"inputs": [
|
42
|
+
{
|
43
|
+
"internalType": "uint8",
|
44
|
+
"name": "scoreFunctionId",
|
45
|
+
"type": "uint8"
|
46
|
+
}
|
47
|
+
],
|
48
|
+
"name": "ScoreFunctionDoesntExist",
|
49
|
+
"type": "error"
|
50
|
+
},
|
51
|
+
{
|
52
|
+
"inputs": [
|
53
|
+
{
|
54
|
+
"internalType": "uint256",
|
55
|
+
"name": "amount",
|
56
|
+
"type": "uint256"
|
57
|
+
}
|
58
|
+
],
|
59
|
+
"name": "TooLowAllowance",
|
60
|
+
"type": "error"
|
61
|
+
},
|
62
|
+
{
|
63
|
+
"inputs": [
|
64
|
+
{
|
65
|
+
"internalType": "uint256",
|
66
|
+
"name": "amount",
|
67
|
+
"type": "uint256"
|
68
|
+
}
|
69
|
+
],
|
70
|
+
"name": "TooLowBalance",
|
71
|
+
"type": "error"
|
72
|
+
},
|
73
|
+
{
|
74
|
+
"inputs": [],
|
75
|
+
"name": "ZeroEpochsNumber",
|
76
|
+
"type": "error"
|
77
|
+
},
|
78
|
+
{
|
79
|
+
"inputs": [],
|
80
|
+
"name": "ZeroTokenAmount",
|
81
|
+
"type": "error"
|
82
|
+
},
|
83
|
+
{
|
84
|
+
"anonymous": false,
|
85
|
+
"inputs": [
|
86
|
+
{
|
87
|
+
"indexed": true,
|
88
|
+
"internalType": "address",
|
89
|
+
"name": "assetContract",
|
90
|
+
"type": "address"
|
91
|
+
},
|
92
|
+
{
|
93
|
+
"indexed": true,
|
94
|
+
"internalType": "uint256",
|
95
|
+
"name": "tokenId",
|
96
|
+
"type": "uint256"
|
97
|
+
},
|
98
|
+
{
|
99
|
+
"indexed": false,
|
100
|
+
"internalType": "bytes",
|
101
|
+
"name": "keyword",
|
102
|
+
"type": "bytes"
|
103
|
+
},
|
104
|
+
{
|
105
|
+
"indexed": false,
|
106
|
+
"internalType": "uint8",
|
107
|
+
"name": "hashFunctionId",
|
108
|
+
"type": "uint8"
|
109
|
+
},
|
110
|
+
{
|
111
|
+
"indexed": false,
|
112
|
+
"internalType": "uint256",
|
113
|
+
"name": "startTime",
|
114
|
+
"type": "uint256"
|
115
|
+
},
|
116
|
+
{
|
117
|
+
"indexed": false,
|
118
|
+
"internalType": "uint16",
|
119
|
+
"name": "epochsNumber",
|
120
|
+
"type": "uint16"
|
121
|
+
},
|
122
|
+
{
|
123
|
+
"indexed": false,
|
124
|
+
"internalType": "uint128",
|
125
|
+
"name": "epochLength",
|
126
|
+
"type": "uint128"
|
127
|
+
},
|
128
|
+
{
|
129
|
+
"indexed": false,
|
130
|
+
"internalType": "uint96",
|
131
|
+
"name": "tokenAmount",
|
132
|
+
"type": "uint96"
|
133
|
+
}
|
134
|
+
],
|
135
|
+
"name": "ServiceAgreementV1Created",
|
136
|
+
"type": "event"
|
137
|
+
},
|
138
|
+
{
|
139
|
+
"anonymous": false,
|
140
|
+
"inputs": [
|
141
|
+
{
|
142
|
+
"indexed": true,
|
143
|
+
"internalType": "bytes32",
|
144
|
+
"name": "agreementId",
|
145
|
+
"type": "bytes32"
|
146
|
+
},
|
147
|
+
{
|
148
|
+
"indexed": false,
|
149
|
+
"internalType": "uint16",
|
150
|
+
"name": "epochsNumber",
|
151
|
+
"type": "uint16"
|
152
|
+
}
|
153
|
+
],
|
154
|
+
"name": "ServiceAgreementV1Extended",
|
155
|
+
"type": "event"
|
156
|
+
},
|
157
|
+
{
|
158
|
+
"anonymous": false,
|
159
|
+
"inputs": [
|
160
|
+
{
|
161
|
+
"indexed": true,
|
162
|
+
"internalType": "bytes32",
|
163
|
+
"name": "agreementId",
|
164
|
+
"type": "bytes32"
|
165
|
+
},
|
166
|
+
{
|
167
|
+
"indexed": false,
|
168
|
+
"internalType": "uint96",
|
169
|
+
"name": "tokenAmount",
|
170
|
+
"type": "uint96"
|
171
|
+
}
|
172
|
+
],
|
173
|
+
"name": "ServiceAgreementV1RewardRaised",
|
174
|
+
"type": "event"
|
175
|
+
},
|
176
|
+
{
|
177
|
+
"anonymous": false,
|
178
|
+
"inputs": [
|
179
|
+
{
|
180
|
+
"indexed": true,
|
181
|
+
"internalType": "bytes32",
|
182
|
+
"name": "agreementId",
|
183
|
+
"type": "bytes32"
|
184
|
+
}
|
185
|
+
],
|
186
|
+
"name": "ServiceAgreementV1Terminated",
|
187
|
+
"type": "event"
|
188
|
+
},
|
189
|
+
{
|
190
|
+
"anonymous": false,
|
191
|
+
"inputs": [
|
192
|
+
{
|
193
|
+
"indexed": true,
|
194
|
+
"internalType": "bytes32",
|
195
|
+
"name": "agreementId",
|
196
|
+
"type": "bytes32"
|
197
|
+
},
|
198
|
+
{
|
199
|
+
"indexed": false,
|
200
|
+
"internalType": "uint96",
|
201
|
+
"name": "updateTokenAmount",
|
202
|
+
"type": "uint96"
|
203
|
+
}
|
204
|
+
],
|
205
|
+
"name": "ServiceAgreementV1UpdateRewardRaised",
|
206
|
+
"type": "event"
|
207
|
+
},
|
208
|
+
{
|
209
|
+
"inputs": [
|
210
|
+
{
|
211
|
+
"internalType": "address",
|
212
|
+
"name": "assetOwner",
|
213
|
+
"type": "address"
|
214
|
+
},
|
215
|
+
{
|
216
|
+
"internalType": "bytes32",
|
217
|
+
"name": "agreementId",
|
218
|
+
"type": "bytes32"
|
219
|
+
},
|
220
|
+
{
|
221
|
+
"internalType": "uint96",
|
222
|
+
"name": "tokenAmount",
|
223
|
+
"type": "uint96"
|
224
|
+
}
|
225
|
+
],
|
226
|
+
"name": "addTokens",
|
227
|
+
"outputs": [],
|
228
|
+
"stateMutability": "nonpayable",
|
229
|
+
"type": "function"
|
230
|
+
},
|
231
|
+
{
|
232
|
+
"inputs": [
|
233
|
+
{
|
234
|
+
"internalType": "address",
|
235
|
+
"name": "assetOwner",
|
236
|
+
"type": "address"
|
237
|
+
},
|
238
|
+
{
|
239
|
+
"internalType": "bytes32",
|
240
|
+
"name": "agreementId",
|
241
|
+
"type": "bytes32"
|
242
|
+
},
|
243
|
+
{
|
244
|
+
"internalType": "uint96",
|
245
|
+
"name": "tokenAmount",
|
246
|
+
"type": "uint96"
|
247
|
+
}
|
248
|
+
],
|
249
|
+
"name": "addUpdateTokens",
|
250
|
+
"outputs": [],
|
251
|
+
"stateMutability": "nonpayable",
|
252
|
+
"type": "function"
|
253
|
+
},
|
254
|
+
{
|
255
|
+
"inputs": [],
|
256
|
+
"name": "commitManagerV1",
|
257
|
+
"outputs": [
|
258
|
+
{
|
259
|
+
"internalType": "contract CommitManagerV1",
|
260
|
+
"name": "",
|
261
|
+
"type": "address"
|
262
|
+
}
|
263
|
+
],
|
264
|
+
"stateMutability": "view",
|
265
|
+
"type": "function"
|
266
|
+
},
|
267
|
+
{
|
268
|
+
"inputs": [],
|
269
|
+
"name": "commitManagerV1U1",
|
270
|
+
"outputs": [
|
271
|
+
{
|
272
|
+
"internalType": "contract CommitManagerV1U1",
|
273
|
+
"name": "",
|
274
|
+
"type": "address"
|
275
|
+
}
|
276
|
+
],
|
277
|
+
"stateMutability": "view",
|
278
|
+
"type": "function"
|
279
|
+
},
|
280
|
+
{
|
281
|
+
"inputs": [
|
282
|
+
{
|
283
|
+
"components": [
|
284
|
+
{
|
285
|
+
"internalType": "address",
|
286
|
+
"name": "assetCreator",
|
287
|
+
"type": "address"
|
288
|
+
},
|
289
|
+
{
|
290
|
+
"internalType": "address",
|
291
|
+
"name": "assetContract",
|
292
|
+
"type": "address"
|
293
|
+
},
|
294
|
+
{
|
295
|
+
"internalType": "uint256",
|
296
|
+
"name": "tokenId",
|
297
|
+
"type": "uint256"
|
298
|
+
},
|
299
|
+
{
|
300
|
+
"internalType": "bytes",
|
301
|
+
"name": "keyword",
|
302
|
+
"type": "bytes"
|
303
|
+
},
|
304
|
+
{
|
305
|
+
"internalType": "uint8",
|
306
|
+
"name": "hashFunctionId",
|
307
|
+
"type": "uint8"
|
308
|
+
},
|
309
|
+
{
|
310
|
+
"internalType": "uint16",
|
311
|
+
"name": "epochsNumber",
|
312
|
+
"type": "uint16"
|
313
|
+
},
|
314
|
+
{
|
315
|
+
"internalType": "uint96",
|
316
|
+
"name": "tokenAmount",
|
317
|
+
"type": "uint96"
|
318
|
+
},
|
319
|
+
{
|
320
|
+
"internalType": "uint8",
|
321
|
+
"name": "scoreFunctionId",
|
322
|
+
"type": "uint8"
|
323
|
+
}
|
324
|
+
],
|
325
|
+
"internalType": "struct ServiceAgreementStructsV1.ServiceAgreementInputArgs",
|
326
|
+
"name": "args",
|
327
|
+
"type": "tuple"
|
328
|
+
}
|
329
|
+
],
|
330
|
+
"name": "createServiceAgreement",
|
331
|
+
"outputs": [],
|
332
|
+
"stateMutability": "nonpayable",
|
333
|
+
"type": "function"
|
334
|
+
},
|
335
|
+
{
|
336
|
+
"inputs": [
|
337
|
+
{
|
338
|
+
"internalType": "address",
|
339
|
+
"name": "assetOwner",
|
340
|
+
"type": "address"
|
341
|
+
},
|
342
|
+
{
|
343
|
+
"internalType": "bytes32",
|
344
|
+
"name": "agreementId",
|
345
|
+
"type": "bytes32"
|
346
|
+
},
|
347
|
+
{
|
348
|
+
"internalType": "uint16",
|
349
|
+
"name": "epochsNumber",
|
350
|
+
"type": "uint16"
|
351
|
+
},
|
352
|
+
{
|
353
|
+
"internalType": "uint96",
|
354
|
+
"name": "tokenAmount",
|
355
|
+
"type": "uint96"
|
356
|
+
}
|
357
|
+
],
|
358
|
+
"name": "extendStoringPeriod",
|
359
|
+
"outputs": [],
|
360
|
+
"stateMutability": "nonpayable",
|
361
|
+
"type": "function"
|
362
|
+
},
|
363
|
+
{
|
364
|
+
"inputs": [
|
365
|
+
{
|
366
|
+
"internalType": "address",
|
367
|
+
"name": "sender",
|
368
|
+
"type": "address"
|
369
|
+
},
|
370
|
+
{
|
371
|
+
"internalType": "address",
|
372
|
+
"name": "assetContract",
|
373
|
+
"type": "address"
|
374
|
+
},
|
375
|
+
{
|
376
|
+
"internalType": "uint256",
|
377
|
+
"name": "tokenId",
|
378
|
+
"type": "uint256"
|
379
|
+
},
|
380
|
+
{
|
381
|
+
"internalType": "uint16",
|
382
|
+
"name": "epoch",
|
383
|
+
"type": "uint16"
|
384
|
+
}
|
385
|
+
],
|
386
|
+
"name": "getChallenge",
|
387
|
+
"outputs": [
|
388
|
+
{
|
389
|
+
"internalType": "bytes32",
|
390
|
+
"name": "",
|
391
|
+
"type": "bytes32"
|
392
|
+
},
|
393
|
+
{
|
394
|
+
"internalType": "uint256",
|
395
|
+
"name": "",
|
396
|
+
"type": "uint256"
|
397
|
+
}
|
398
|
+
],
|
399
|
+
"stateMutability": "view",
|
400
|
+
"type": "function"
|
401
|
+
},
|
402
|
+
{
|
403
|
+
"inputs": [
|
404
|
+
{
|
405
|
+
"internalType": "bytes32",
|
406
|
+
"name": "agreementId",
|
407
|
+
"type": "bytes32"
|
408
|
+
},
|
409
|
+
{
|
410
|
+
"internalType": "uint16",
|
411
|
+
"name": "epoch",
|
412
|
+
"type": "uint16"
|
413
|
+
}
|
414
|
+
],
|
415
|
+
"name": "getTopCommitSubmissions",
|
416
|
+
"outputs": [
|
417
|
+
{
|
418
|
+
"components": [
|
419
|
+
{
|
420
|
+
"internalType": "uint72",
|
421
|
+
"name": "identityId",
|
422
|
+
"type": "uint72"
|
423
|
+
},
|
424
|
+
{
|
425
|
+
"internalType": "uint72",
|
426
|
+
"name": "prevIdentityId",
|
427
|
+
"type": "uint72"
|
428
|
+
},
|
429
|
+
{
|
430
|
+
"internalType": "uint72",
|
431
|
+
"name": "nextIdentityId",
|
432
|
+
"type": "uint72"
|
433
|
+
},
|
434
|
+
{
|
435
|
+
"internalType": "uint40",
|
436
|
+
"name": "score",
|
437
|
+
"type": "uint40"
|
438
|
+
}
|
439
|
+
],
|
440
|
+
"internalType": "struct ServiceAgreementStructsV1.CommitSubmission[]",
|
441
|
+
"name": "",
|
442
|
+
"type": "tuple[]"
|
443
|
+
}
|
444
|
+
],
|
445
|
+
"stateMutability": "view",
|
446
|
+
"type": "function"
|
447
|
+
},
|
448
|
+
{
|
449
|
+
"inputs": [],
|
450
|
+
"name": "hashingProxy",
|
451
|
+
"outputs": [
|
452
|
+
{
|
453
|
+
"internalType": "contract HashingProxy",
|
454
|
+
"name": "",
|
455
|
+
"type": "address"
|
456
|
+
}
|
457
|
+
],
|
458
|
+
"stateMutability": "view",
|
459
|
+
"type": "function"
|
460
|
+
},
|
461
|
+
{
|
462
|
+
"inputs": [],
|
463
|
+
"name": "hub",
|
464
|
+
"outputs": [
|
465
|
+
{
|
466
|
+
"internalType": "contract Hub",
|
467
|
+
"name": "",
|
468
|
+
"type": "address"
|
469
|
+
}
|
470
|
+
],
|
471
|
+
"stateMutability": "view",
|
472
|
+
"type": "function"
|
473
|
+
},
|
474
|
+
{
|
475
|
+
"inputs": [],
|
476
|
+
"name": "initialize",
|
477
|
+
"outputs": [],
|
478
|
+
"stateMutability": "nonpayable",
|
479
|
+
"type": "function"
|
480
|
+
},
|
481
|
+
{
|
482
|
+
"inputs": [
|
483
|
+
{
|
484
|
+
"internalType": "bytes32",
|
485
|
+
"name": "agreementId",
|
486
|
+
"type": "bytes32"
|
487
|
+
},
|
488
|
+
{
|
489
|
+
"internalType": "uint16",
|
490
|
+
"name": "epoch",
|
491
|
+
"type": "uint16"
|
492
|
+
}
|
493
|
+
],
|
494
|
+
"name": "isCommitWindowOpen",
|
495
|
+
"outputs": [
|
496
|
+
{
|
497
|
+
"internalType": "bool",
|
498
|
+
"name": "",
|
499
|
+
"type": "bool"
|
500
|
+
}
|
501
|
+
],
|
502
|
+
"stateMutability": "view",
|
503
|
+
"type": "function"
|
504
|
+
},
|
505
|
+
{
|
506
|
+
"inputs": [
|
507
|
+
{
|
508
|
+
"internalType": "bytes32",
|
509
|
+
"name": "agreementId",
|
510
|
+
"type": "bytes32"
|
511
|
+
},
|
512
|
+
{
|
513
|
+
"internalType": "uint16",
|
514
|
+
"name": "epoch",
|
515
|
+
"type": "uint16"
|
516
|
+
}
|
517
|
+
],
|
518
|
+
"name": "isProofWindowOpen",
|
519
|
+
"outputs": [
|
520
|
+
{
|
521
|
+
"internalType": "bool",
|
522
|
+
"name": "",
|
523
|
+
"type": "bool"
|
524
|
+
}
|
525
|
+
],
|
526
|
+
"stateMutability": "view",
|
527
|
+
"type": "function"
|
528
|
+
},
|
529
|
+
{
|
530
|
+
"inputs": [],
|
531
|
+
"name": "name",
|
532
|
+
"outputs": [
|
533
|
+
{
|
534
|
+
"internalType": "string",
|
535
|
+
"name": "",
|
536
|
+
"type": "string"
|
537
|
+
}
|
538
|
+
],
|
539
|
+
"stateMutability": "pure",
|
540
|
+
"type": "function"
|
541
|
+
},
|
542
|
+
{
|
543
|
+
"inputs": [],
|
544
|
+
"name": "parametersStorage",
|
545
|
+
"outputs": [
|
546
|
+
{
|
547
|
+
"internalType": "contract ParametersStorage",
|
548
|
+
"name": "",
|
549
|
+
"type": "address"
|
550
|
+
}
|
551
|
+
],
|
552
|
+
"stateMutability": "view",
|
553
|
+
"type": "function"
|
554
|
+
},
|
555
|
+
{
|
556
|
+
"inputs": [],
|
557
|
+
"name": "proofManagerV1",
|
558
|
+
"outputs": [
|
559
|
+
{
|
560
|
+
"internalType": "contract ProofManagerV1",
|
561
|
+
"name": "",
|
562
|
+
"type": "address"
|
563
|
+
}
|
564
|
+
],
|
565
|
+
"stateMutability": "view",
|
566
|
+
"type": "function"
|
567
|
+
},
|
568
|
+
{
|
569
|
+
"inputs": [],
|
570
|
+
"name": "proofManagerV1U1",
|
571
|
+
"outputs": [
|
572
|
+
{
|
573
|
+
"internalType": "contract ProofManagerV1U1",
|
574
|
+
"name": "",
|
575
|
+
"type": "address"
|
576
|
+
}
|
577
|
+
],
|
578
|
+
"stateMutability": "view",
|
579
|
+
"type": "function"
|
580
|
+
},
|
581
|
+
{
|
582
|
+
"inputs": [],
|
583
|
+
"name": "scoringProxy",
|
584
|
+
"outputs": [
|
585
|
+
{
|
586
|
+
"internalType": "contract ScoringProxy",
|
587
|
+
"name": "",
|
588
|
+
"type": "address"
|
589
|
+
}
|
590
|
+
],
|
591
|
+
"stateMutability": "view",
|
592
|
+
"type": "function"
|
593
|
+
},
|
594
|
+
{
|
595
|
+
"inputs": [
|
596
|
+
{
|
597
|
+
"components": [
|
598
|
+
{
|
599
|
+
"internalType": "address",
|
600
|
+
"name": "assetContract",
|
601
|
+
"type": "address"
|
602
|
+
},
|
603
|
+
{
|
604
|
+
"internalType": "uint256",
|
605
|
+
"name": "tokenId",
|
606
|
+
"type": "uint256"
|
607
|
+
},
|
608
|
+
{
|
609
|
+
"internalType": "bytes",
|
610
|
+
"name": "keyword",
|
611
|
+
"type": "bytes"
|
612
|
+
},
|
613
|
+
{
|
614
|
+
"internalType": "uint8",
|
615
|
+
"name": "hashFunctionId",
|
616
|
+
"type": "uint8"
|
617
|
+
},
|
618
|
+
{
|
619
|
+
"internalType": "uint16",
|
620
|
+
"name": "epoch",
|
621
|
+
"type": "uint16"
|
622
|
+
},
|
623
|
+
{
|
624
|
+
"internalType": "bytes32[]",
|
625
|
+
"name": "proof",
|
626
|
+
"type": "bytes32[]"
|
627
|
+
},
|
628
|
+
{
|
629
|
+
"internalType": "bytes32",
|
630
|
+
"name": "chunkHash",
|
631
|
+
"type": "bytes32"
|
632
|
+
}
|
633
|
+
],
|
634
|
+
"internalType": "struct ServiceAgreementStructsV1.ProofInputArgs",
|
635
|
+
"name": "args",
|
636
|
+
"type": "tuple"
|
637
|
+
}
|
638
|
+
],
|
639
|
+
"name": "sendProof",
|
640
|
+
"outputs": [],
|
641
|
+
"stateMutability": "nonpayable",
|
642
|
+
"type": "function"
|
643
|
+
},
|
644
|
+
{
|
645
|
+
"inputs": [],
|
646
|
+
"name": "serviceAgreementStorageProxy",
|
647
|
+
"outputs": [
|
648
|
+
{
|
649
|
+
"internalType": "contract ServiceAgreementStorageProxy",
|
650
|
+
"name": "",
|
651
|
+
"type": "address"
|
652
|
+
}
|
653
|
+
],
|
654
|
+
"stateMutability": "view",
|
655
|
+
"type": "function"
|
656
|
+
},
|
657
|
+
{
|
658
|
+
"inputs": [
|
659
|
+
{
|
660
|
+
"components": [
|
661
|
+
{
|
662
|
+
"internalType": "address",
|
663
|
+
"name": "assetContract",
|
664
|
+
"type": "address"
|
665
|
+
},
|
666
|
+
{
|
667
|
+
"internalType": "uint256",
|
668
|
+
"name": "tokenId",
|
669
|
+
"type": "uint256"
|
670
|
+
},
|
671
|
+
{
|
672
|
+
"internalType": "bytes",
|
673
|
+
"name": "keyword",
|
674
|
+
"type": "bytes"
|
675
|
+
},
|
676
|
+
{
|
677
|
+
"internalType": "uint8",
|
678
|
+
"name": "hashFunctionId",
|
679
|
+
"type": "uint8"
|
680
|
+
},
|
681
|
+
{
|
682
|
+
"internalType": "uint16",
|
683
|
+
"name": "epoch",
|
684
|
+
"type": "uint16"
|
685
|
+
}
|
686
|
+
],
|
687
|
+
"internalType": "struct ServiceAgreementStructsV1.CommitInputArgs",
|
688
|
+
"name": "args",
|
689
|
+
"type": "tuple"
|
690
|
+
}
|
691
|
+
],
|
692
|
+
"name": "submitCommit",
|
693
|
+
"outputs": [],
|
694
|
+
"stateMutability": "nonpayable",
|
695
|
+
"type": "function"
|
696
|
+
},
|
697
|
+
{
|
698
|
+
"inputs": [
|
699
|
+
{
|
700
|
+
"internalType": "address",
|
701
|
+
"name": "assetOwner",
|
702
|
+
"type": "address"
|
703
|
+
},
|
704
|
+
{
|
705
|
+
"internalType": "bytes32",
|
706
|
+
"name": "agreementId",
|
707
|
+
"type": "bytes32"
|
708
|
+
}
|
709
|
+
],
|
710
|
+
"name": "terminateAgreement",
|
711
|
+
"outputs": [],
|
712
|
+
"stateMutability": "nonpayable",
|
713
|
+
"type": "function"
|
714
|
+
},
|
715
|
+
{
|
716
|
+
"inputs": [],
|
717
|
+
"name": "tokenContract",
|
718
|
+
"outputs": [
|
719
|
+
{
|
720
|
+
"internalType": "contract IERC20",
|
721
|
+
"name": "",
|
722
|
+
"type": "address"
|
723
|
+
}
|
724
|
+
],
|
725
|
+
"stateMutability": "view",
|
726
|
+
"type": "function"
|
727
|
+
},
|
728
|
+
{
|
729
|
+
"inputs": [],
|
730
|
+
"name": "version",
|
731
|
+
"outputs": [
|
732
|
+
{
|
733
|
+
"internalType": "string",
|
734
|
+
"name": "",
|
735
|
+
"type": "string"
|
736
|
+
}
|
737
|
+
],
|
738
|
+
"stateMutability": "pure",
|
739
|
+
"type": "function"
|
740
|
+
}
|
741
|
+
]
|