@reclaimprotocol/attestor-core 5.0.1-beta.2 → 5.0.1-beta.22

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.
Files changed (145) hide show
  1. package/browser/resources/attestor-browser.min.mjs +4512 -0
  2. package/lib/avs/abis/avsDirectoryABI.js +338 -341
  3. package/lib/avs/abis/delegationABI.js +1 -4
  4. package/lib/avs/abis/registryABI.js +719 -722
  5. package/lib/avs/client/create-claim-on-avs.js +129 -157
  6. package/lib/avs/config.js +18 -24
  7. package/lib/avs/contracts/ReclaimServiceManager.js +1 -0
  8. package/lib/avs/contracts/common.js +1 -0
  9. package/lib/avs/contracts/factories/ReclaimServiceManager__factory.js +1139 -1156
  10. package/lib/avs/contracts/factories/index.js +4 -4
  11. package/lib/avs/contracts/index.js +2 -6
  12. package/lib/avs/types/index.js +1 -0
  13. package/lib/avs/utils/contracts.js +30 -50
  14. package/lib/avs/utils/register.js +75 -70
  15. package/lib/avs/utils/tasks.js +38 -45
  16. package/lib/client/create-claim.js +402 -431
  17. package/lib/client/tunnels/make-rpc-tcp-tunnel.js +46 -48
  18. package/lib/client/tunnels/make-rpc-tls-tunnel.js +125 -121
  19. package/lib/client/utils/attestor-pool.js +23 -22
  20. package/lib/client/utils/client-socket.js +86 -109
  21. package/lib/client/utils/message-handler.js +79 -89
  22. package/lib/config/index.js +40 -58
  23. package/lib/external-rpc/benchmark.js +61 -74
  24. package/lib/external-rpc/event-bus.js +12 -15
  25. package/lib/external-rpc/handle-incoming-msg.js +216 -225
  26. package/lib/external-rpc/jsc-polyfills/1.js +70 -68
  27. package/lib/external-rpc/jsc-polyfills/2.js +17 -12
  28. package/lib/external-rpc/jsc-polyfills/event.js +10 -15
  29. package/lib/external-rpc/jsc-polyfills/index.js +2 -2
  30. package/lib/external-rpc/jsc-polyfills/ws.js +77 -79
  31. package/lib/external-rpc/setup-browser.js +28 -28
  32. package/lib/external-rpc/setup-jsc.js +17 -17
  33. package/lib/external-rpc/types.js +1 -0
  34. package/lib/external-rpc/utils.js +89 -89
  35. package/lib/external-rpc/zk.js +55 -50
  36. package/lib/index.js +2 -6
  37. package/lib/mechain/abis/governanceABI.js +457 -460
  38. package/lib/mechain/abis/taskABI.js +502 -505
  39. package/lib/mechain/client/create-claim-on-mechain.js +24 -29
  40. package/lib/mechain/constants/index.js +3 -8
  41. package/lib/mechain/types/index.js +1 -0
  42. package/lib/proto/api.js +4200 -4087
  43. package/lib/proto/tee-bundle.js +1261 -1241
  44. package/lib/providers/http/index.js +616 -603
  45. package/lib/providers/http/patch-parse5-tree.js +27 -29
  46. package/lib/providers/http/utils.js +289 -248
  47. package/lib/providers/index.js +3 -6
  48. package/lib/server/create-server.js +89 -91
  49. package/lib/server/handlers/claimTeeBundle.js +231 -211
  50. package/lib/server/handlers/claimTunnel.js +66 -73
  51. package/lib/server/handlers/completeClaimOnChain.js +20 -25
  52. package/lib/server/handlers/createClaimOnChain.js +21 -27
  53. package/lib/server/handlers/createTaskOnMechain.js +40 -50
  54. package/lib/server/handlers/createTunnel.js +85 -90
  55. package/lib/server/handlers/disconnectTunnel.js +4 -7
  56. package/lib/server/handlers/fetchCertificateBytes.js +37 -53
  57. package/lib/server/handlers/index.js +21 -24
  58. package/lib/server/handlers/init.js +27 -28
  59. package/lib/server/handlers/toprf.js +13 -16
  60. package/lib/server/socket.js +97 -100
  61. package/lib/server/tunnels/make-tcp-tunnel.js +161 -186
  62. package/lib/server/utils/apm.js +32 -25
  63. package/lib/server/utils/assert-valid-claim-request.js +305 -334
  64. package/lib/server/utils/config-env.js +2 -2
  65. package/lib/server/utils/dns.js +12 -18
  66. package/lib/server/utils/gcp-attestation.js +233 -181
  67. package/lib/server/utils/generics.d.ts +1 -1
  68. package/lib/server/utils/generics.js +43 -37
  69. package/lib/server/utils/iso.js +253 -256
  70. package/lib/server/utils/keep-alive.js +36 -36
  71. package/lib/server/utils/nitro-attestation.js +295 -220
  72. package/lib/server/utils/oprf-raw.js +48 -55
  73. package/lib/server/utils/process-handshake.js +200 -218
  74. package/lib/server/utils/proxy-session.js +5 -5
  75. package/lib/server/utils/tee-oprf-mpc-verification.js +82 -78
  76. package/lib/server/utils/tee-oprf-verification.js +165 -142
  77. package/lib/server/utils/tee-transcript-reconstruction.js +176 -129
  78. package/lib/server/utils/tee-verification.js +397 -334
  79. package/lib/server/utils/validation.js +30 -37
  80. package/lib/types/bgp.js +1 -0
  81. package/lib/types/claims.js +1 -0
  82. package/lib/types/client.js +1 -0
  83. package/lib/types/general.js +1 -0
  84. package/lib/types/handlers.js +1 -0
  85. package/lib/types/providers.d.ts +3 -2
  86. package/lib/types/providers.gen.js +9 -15
  87. package/lib/types/providers.js +1 -0
  88. package/lib/types/rpc.js +1 -0
  89. package/lib/types/signatures.d.ts +1 -2
  90. package/lib/types/signatures.js +1 -0
  91. package/lib/types/tunnel.js +1 -0
  92. package/lib/types/zk.js +1 -0
  93. package/lib/utils/auth.js +54 -66
  94. package/lib/utils/b64-json.js +15 -15
  95. package/lib/utils/bgp-listener.js +107 -111
  96. package/lib/utils/claims.js +89 -80
  97. package/lib/utils/env.js +13 -17
  98. package/lib/utils/error.js +43 -47
  99. package/lib/utils/generics.js +284 -235
  100. package/lib/utils/http-parser.js +232 -187
  101. package/lib/utils/logger.js +80 -71
  102. package/lib/utils/prepare-packets.js +69 -67
  103. package/lib/utils/redactions.js +163 -121
  104. package/lib/utils/retries.js +22 -24
  105. package/lib/utils/signatures/eth.js +29 -28
  106. package/lib/utils/signatures/index.js +5 -10
  107. package/lib/utils/socket-base.js +84 -88
  108. package/lib/utils/tls.js +28 -28
  109. package/lib/utils/ws.js +19 -19
  110. package/lib/utils/zk.js +542 -582
  111. package/package.json +12 -5
  112. package/lib/external-rpc/global.d.js +0 -0
  113. package/lib/scripts/build-browser.d.ts +0 -1
  114. package/lib/scripts/build-jsc.d.ts +0 -1
  115. package/lib/scripts/build-lib.d.ts +0 -1
  116. package/lib/scripts/check-avs-registration.d.ts +0 -1
  117. package/lib/scripts/check-avs-registration.js +0 -28
  118. package/lib/scripts/fallbacks/crypto.d.ts +0 -1
  119. package/lib/scripts/fallbacks/crypto.js +0 -4
  120. package/lib/scripts/fallbacks/empty.d.ts +0 -3
  121. package/lib/scripts/fallbacks/empty.js +0 -4
  122. package/lib/scripts/fallbacks/re2.d.ts +0 -1
  123. package/lib/scripts/fallbacks/re2.js +0 -7
  124. package/lib/scripts/fallbacks/snarkjs.d.ts +0 -1
  125. package/lib/scripts/fallbacks/snarkjs.js +0 -10
  126. package/lib/scripts/fallbacks/stwo.d.ts +0 -6
  127. package/lib/scripts/fallbacks/stwo.js +0 -159
  128. package/lib/scripts/generate-provider-types.d.ts +0 -5
  129. package/lib/scripts/generate-provider-types.js +0 -101
  130. package/lib/scripts/generate-receipt.d.ts +0 -9
  131. package/lib/scripts/generate-receipt.js +0 -101
  132. package/lib/scripts/generate-toprf-keys.d.ts +0 -1
  133. package/lib/scripts/generate-toprf-keys.js +0 -24
  134. package/lib/scripts/jsc-cli-rpc.d.ts +0 -1
  135. package/lib/scripts/jsc-cli-rpc.js +0 -35
  136. package/lib/scripts/register-avs-operator.d.ts +0 -1
  137. package/lib/scripts/register-avs-operator.js +0 -3
  138. package/lib/scripts/start-server.d.ts +0 -1
  139. package/lib/scripts/start-server.js +0 -11
  140. package/lib/scripts/update-avs-metadata.d.ts +0 -1
  141. package/lib/scripts/update-avs-metadata.js +0 -20
  142. package/lib/scripts/utils.d.ts +0 -1
  143. package/lib/scripts/utils.js +0 -10
  144. package/lib/scripts/whitelist-operator.d.ts +0 -1
  145. package/lib/scripts/whitelist-operator.js +0 -16
@@ -1,512 +1,509 @@
1
- const taskABI = [
2
- {
3
- "inputs": [
4
- {
5
- "internalType": "address",
6
- "name": "initialOwner",
7
- "type": "address"
8
- },
9
- {
10
- "internalType": "address",
11
- "name": "_governanceAddress",
12
- "type": "address"
13
- }
14
- ],
15
- "stateMutability": "nonpayable",
16
- "type": "constructor"
17
- },
18
- {
19
- "inputs": [],
20
- "name": "ECDSAInvalidSignature",
21
- "type": "error"
22
- },
23
- {
24
- "inputs": [
25
- {
26
- "internalType": "uint256",
27
- "name": "length",
28
- "type": "uint256"
29
- }
30
- ],
31
- "name": "ECDSAInvalidSignatureLength",
32
- "type": "error"
33
- },
34
- {
35
- "inputs": [
36
- {
37
- "internalType": "bytes32",
38
- "name": "s",
39
- "type": "bytes32"
40
- }
41
- ],
42
- "name": "ECDSAInvalidSignatureS",
43
- "type": "error"
44
- },
45
- {
46
- "inputs": [
47
- {
48
- "internalType": "address",
49
- "name": "owner",
50
- "type": "address"
51
- }
52
- ],
53
- "name": "OwnableInvalidOwner",
54
- "type": "error"
55
- },
56
- {
57
- "inputs": [
58
- {
59
- "internalType": "address",
60
- "name": "account",
61
- "type": "address"
62
- }
63
- ],
64
- "name": "OwnableUnauthorizedAccount",
65
- "type": "error"
66
- },
67
- {
68
- "anonymous": false,
69
- "inputs": [
70
- {
71
- "indexed": true,
72
- "internalType": "address",
73
- "name": "previousOwner",
74
- "type": "address"
75
- },
76
- {
77
- "indexed": true,
78
- "internalType": "address",
79
- "name": "newOwner",
80
- "type": "address"
81
- }
82
- ],
83
- "name": "OwnershipTransferred",
84
- "type": "event"
85
- },
86
- {
87
- "anonymous": false,
88
- "inputs": [
89
- {
90
- "components": [
91
- {
92
- "internalType": "uint32",
93
- "name": "id",
94
- "type": "uint32"
95
- },
96
- {
97
- "internalType": "uint32",
98
- "name": "timestampStart",
99
- "type": "uint32"
100
- },
101
- {
102
- "internalType": "uint32",
103
- "name": "timestampEnd",
104
- "type": "uint32"
105
- },
106
- {
107
- "components": [
108
- {
109
- "internalType": "address",
110
- "name": "addr",
111
- "type": "address"
112
- },
113
- {
114
- "internalType": "string",
115
- "name": "host",
116
- "type": "string"
117
- }
118
- ],
119
- "internalType": "struct ReclaimTask.Attestor[]",
120
- "name": "attestors",
121
- "type": "tuple[]"
122
- }
1
+ export const taskABI = [
2
+ {
3
+ 'inputs': [
4
+ {
5
+ 'internalType': 'address',
6
+ 'name': 'initialOwner',
7
+ 'type': 'address'
8
+ },
9
+ {
10
+ 'internalType': 'address',
11
+ 'name': '_governanceAddress',
12
+ 'type': 'address'
13
+ }
123
14
  ],
124
- "indexed": false,
125
- "internalType": "struct ReclaimTask.Task",
126
- "name": "task",
127
- "type": "tuple"
128
- }
129
- ],
130
- "name": "TaskAdded",
131
- "type": "event"
132
- },
133
- {
134
- "inputs": [],
135
- "name": "ZERO_ADDRESS",
136
- "outputs": [
137
- {
138
- "internalType": "address",
139
- "name": "",
140
- "type": "address"
141
- }
142
- ],
143
- "stateMutability": "view",
144
- "type": "function"
145
- },
146
- {
147
- "inputs": [
148
- {
149
- "internalType": "uint32",
150
- "name": "",
151
- "type": "uint32"
152
- }
153
- ],
154
- "name": "consensusReached",
155
- "outputs": [
156
- {
157
- "internalType": "bool",
158
- "name": "",
159
- "type": "bool"
160
- }
161
- ],
162
- "stateMutability": "view",
163
- "type": "function"
164
- },
165
- {
166
- "inputs": [
167
- {
168
- "internalType": "bytes32",
169
- "name": "seed",
170
- "type": "bytes32"
171
- },
172
- {
173
- "internalType": "uint32",
174
- "name": "timestamp",
175
- "type": "uint32"
176
- }
177
- ],
178
- "name": "createNewTaskRequest",
179
- "outputs": [
180
- {
181
- "internalType": "uint32",
182
- "name": "",
183
- "type": "uint32"
184
- },
185
- {
186
- "components": [
187
- {
188
- "internalType": "address",
189
- "name": "addr",
190
- "type": "address"
191
- },
192
- {
193
- "internalType": "string",
194
- "name": "host",
195
- "type": "string"
196
- }
15
+ 'stateMutability': 'nonpayable',
16
+ 'type': 'constructor'
17
+ },
18
+ {
19
+ 'inputs': [],
20
+ 'name': 'ECDSAInvalidSignature',
21
+ 'type': 'error'
22
+ },
23
+ {
24
+ 'inputs': [
25
+ {
26
+ 'internalType': 'uint256',
27
+ 'name': 'length',
28
+ 'type': 'uint256'
29
+ }
197
30
  ],
198
- "internalType": "struct ReclaimTask.Attestor[]",
199
- "name": "",
200
- "type": "tuple[]"
201
- }
202
- ],
203
- "stateMutability": "nonpayable",
204
- "type": "function"
205
- },
206
- {
207
- "inputs": [],
208
- "name": "currentTask",
209
- "outputs": [
210
- {
211
- "internalType": "uint32",
212
- "name": "",
213
- "type": "uint32"
214
- }
215
- ],
216
- "stateMutability": "view",
217
- "type": "function"
218
- },
219
- {
220
- "inputs": [
221
- {
222
- "internalType": "bytes32",
223
- "name": "seed",
224
- "type": "bytes32"
225
- },
226
- {
227
- "internalType": "uint32",
228
- "name": "timestamp",
229
- "type": "uint32"
230
- }
231
- ],
232
- "name": "fetchAttestorsForClaim",
233
- "outputs": [
234
- {
235
- "components": [
236
- {
237
- "internalType": "address",
238
- "name": "addr",
239
- "type": "address"
240
- },
241
- {
242
- "internalType": "string",
243
- "name": "host",
244
- "type": "string"
245
- }
31
+ 'name': 'ECDSAInvalidSignatureLength',
32
+ 'type': 'error'
33
+ },
34
+ {
35
+ 'inputs': [
36
+ {
37
+ 'internalType': 'bytes32',
38
+ 'name': 's',
39
+ 'type': 'bytes32'
40
+ }
246
41
  ],
247
- "internalType": "struct ReclaimTask.Attestor[]",
248
- "name": "",
249
- "type": "tuple[]"
250
- }
251
- ],
252
- "stateMutability": "view",
253
- "type": "function"
254
- },
255
- {
256
- "inputs": [
257
- {
258
- "internalType": "uint32",
259
- "name": "task",
260
- "type": "uint32"
261
- }
262
- ],
263
- "name": "fetchTask",
264
- "outputs": [
265
- {
266
- "components": [
267
- {
268
- "internalType": "uint32",
269
- "name": "id",
270
- "type": "uint32"
271
- },
272
- {
273
- "internalType": "uint32",
274
- "name": "timestampStart",
275
- "type": "uint32"
276
- },
277
- {
278
- "internalType": "uint32",
279
- "name": "timestampEnd",
280
- "type": "uint32"
281
- },
282
- {
283
- "components": [
284
- {
285
- "internalType": "address",
286
- "name": "addr",
287
- "type": "address"
288
- },
289
- {
290
- "internalType": "string",
291
- "name": "host",
292
- "type": "string"
293
- }
294
- ],
295
- "internalType": "struct ReclaimTask.Attestor[]",
296
- "name": "attestors",
297
- "type": "tuple[]"
298
- }
42
+ 'name': 'ECDSAInvalidSignatureS',
43
+ 'type': 'error'
44
+ },
45
+ {
46
+ 'inputs': [
47
+ {
48
+ 'internalType': 'address',
49
+ 'name': 'owner',
50
+ 'type': 'address'
51
+ }
299
52
  ],
300
- "internalType": "struct ReclaimTask.Task",
301
- "name": "",
302
- "type": "tuple"
303
- }
304
- ],
305
- "stateMutability": "view",
306
- "type": "function"
307
- },
308
- {
309
- "inputs": [],
310
- "name": "governanceAddress",
311
- "outputs": [
312
- {
313
- "internalType": "address",
314
- "name": "",
315
- "type": "address"
316
- }
317
- ],
318
- "stateMutability": "view",
319
- "type": "function"
320
- },
321
- {
322
- "inputs": [],
323
- "name": "owner",
324
- "outputs": [
325
- {
326
- "internalType": "address",
327
- "name": "",
328
- "type": "address"
329
- }
330
- ],
331
- "stateMutability": "view",
332
- "type": "function"
333
- },
334
- {
335
- "inputs": [],
336
- "name": "renounceOwnership",
337
- "outputs": [],
338
- "stateMutability": "nonpayable",
339
- "type": "function"
340
- },
341
- {
342
- "inputs": [],
343
- "name": "requiredAttestors",
344
- "outputs": [
345
- {
346
- "internalType": "uint8",
347
- "name": "",
348
- "type": "uint8"
349
- }
350
- ],
351
- "stateMutability": "view",
352
- "type": "function"
353
- },
354
- {
355
- "inputs": [
356
- {
357
- "internalType": "uint8",
358
- "name": "_requiredAttestors",
359
- "type": "uint8"
360
- }
361
- ],
362
- "name": "setRequiredAttestors",
363
- "outputs": [],
364
- "stateMutability": "nonpayable",
365
- "type": "function"
366
- },
367
- {
368
- "inputs": [],
369
- "name": "taskDurationS",
370
- "outputs": [
371
- {
372
- "internalType": "uint32",
373
- "name": "",
374
- "type": "uint32"
375
- }
376
- ],
377
- "stateMutability": "view",
378
- "type": "function"
379
- },
380
- {
381
- "inputs": [
382
- {
383
- "internalType": "uint256",
384
- "name": "",
385
- "type": "uint256"
386
- }
387
- ],
388
- "name": "tasks",
389
- "outputs": [
390
- {
391
- "internalType": "uint32",
392
- "name": "id",
393
- "type": "uint32"
394
- },
395
- {
396
- "internalType": "uint32",
397
- "name": "timestampStart",
398
- "type": "uint32"
399
- },
400
- {
401
- "internalType": "uint32",
402
- "name": "timestampEnd",
403
- "type": "uint32"
404
- }
405
- ],
406
- "stateMutability": "view",
407
- "type": "function"
408
- },
409
- {
410
- "inputs": [
411
- {
412
- "internalType": "address",
413
- "name": "newOwner",
414
- "type": "address"
415
- }
416
- ],
417
- "name": "transferOwnership",
418
- "outputs": [],
419
- "stateMutability": "nonpayable",
420
- "type": "function"
421
- },
422
- {
423
- "inputs": [
424
- {
425
- "components": [
426
- {
427
- "components": [
428
- {
429
- "internalType": "string",
430
- "name": "provider",
431
- "type": "string"
432
- },
433
- {
434
- "internalType": "string",
435
- "name": "parameters",
436
- "type": "string"
437
- },
438
- {
439
- "internalType": "string",
440
- "name": "context",
441
- "type": "string"
442
- }
443
- ],
444
- "internalType": "struct Claims.ClaimInfo",
445
- "name": "claimInfo",
446
- "type": "tuple"
447
- },
448
- {
449
- "components": [
450
- {
451
- "components": [
452
- {
453
- "internalType": "bytes32",
454
- "name": "identifier",
455
- "type": "bytes32"
456
- },
457
- {
458
- "internalType": "address",
459
- "name": "owner",
460
- "type": "address"
461
- },
462
- {
463
- "internalType": "uint32",
464
- "name": "timestampS",
465
- "type": "uint32"
466
- },
467
- {
468
- "internalType": "uint32",
469
- "name": "epoch",
470
- "type": "uint32"
471
- }
53
+ 'name': 'OwnableInvalidOwner',
54
+ 'type': 'error'
55
+ },
56
+ {
57
+ 'inputs': [
58
+ {
59
+ 'internalType': 'address',
60
+ 'name': 'account',
61
+ 'type': 'address'
62
+ }
63
+ ],
64
+ 'name': 'OwnableUnauthorizedAccount',
65
+ 'type': 'error'
66
+ },
67
+ {
68
+ 'anonymous': false,
69
+ 'inputs': [
70
+ {
71
+ 'indexed': true,
72
+ 'internalType': 'address',
73
+ 'name': 'previousOwner',
74
+ 'type': 'address'
75
+ },
76
+ {
77
+ 'indexed': true,
78
+ 'internalType': 'address',
79
+ 'name': 'newOwner',
80
+ 'type': 'address'
81
+ }
82
+ ],
83
+ 'name': 'OwnershipTransferred',
84
+ 'type': 'event'
85
+ },
86
+ {
87
+ 'anonymous': false,
88
+ 'inputs': [
89
+ {
90
+ 'components': [
91
+ {
92
+ 'internalType': 'uint32',
93
+ 'name': 'id',
94
+ 'type': 'uint32'
95
+ },
96
+ {
97
+ 'internalType': 'uint32',
98
+ 'name': 'timestampStart',
99
+ 'type': 'uint32'
100
+ },
101
+ {
102
+ 'internalType': 'uint32',
103
+ 'name': 'timestampEnd',
104
+ 'type': 'uint32'
105
+ },
106
+ {
107
+ 'components': [
108
+ {
109
+ 'internalType': 'address',
110
+ 'name': 'addr',
111
+ 'type': 'address'
112
+ },
113
+ {
114
+ 'internalType': 'string',
115
+ 'name': 'host',
116
+ 'type': 'string'
117
+ }
118
+ ],
119
+ 'internalType': 'struct ReclaimTask.Attestor[]',
120
+ 'name': 'attestors',
121
+ 'type': 'tuple[]'
122
+ }
123
+ ],
124
+ 'indexed': false,
125
+ 'internalType': 'struct ReclaimTask.Task',
126
+ 'name': 'task',
127
+ 'type': 'tuple'
128
+ }
129
+ ],
130
+ 'name': 'TaskAdded',
131
+ 'type': 'event'
132
+ },
133
+ {
134
+ 'inputs': [],
135
+ 'name': 'ZERO_ADDRESS',
136
+ 'outputs': [
137
+ {
138
+ 'internalType': 'address',
139
+ 'name': '',
140
+ 'type': 'address'
141
+ }
142
+ ],
143
+ 'stateMutability': 'view',
144
+ 'type': 'function'
145
+ },
146
+ {
147
+ 'inputs': [
148
+ {
149
+ 'internalType': 'uint32',
150
+ 'name': '',
151
+ 'type': 'uint32'
152
+ }
153
+ ],
154
+ 'name': 'consensusReached',
155
+ 'outputs': [
156
+ {
157
+ 'internalType': 'bool',
158
+ 'name': '',
159
+ 'type': 'bool'
160
+ }
161
+ ],
162
+ 'stateMutability': 'view',
163
+ 'type': 'function'
164
+ },
165
+ {
166
+ 'inputs': [
167
+ {
168
+ 'internalType': 'bytes32',
169
+ 'name': 'seed',
170
+ 'type': 'bytes32'
171
+ },
172
+ {
173
+ 'internalType': 'uint32',
174
+ 'name': 'timestamp',
175
+ 'type': 'uint32'
176
+ }
177
+ ],
178
+ 'name': 'createNewTaskRequest',
179
+ 'outputs': [
180
+ {
181
+ 'internalType': 'uint32',
182
+ 'name': '',
183
+ 'type': 'uint32'
184
+ },
185
+ {
186
+ 'components': [
187
+ {
188
+ 'internalType': 'address',
189
+ 'name': 'addr',
190
+ 'type': 'address'
191
+ },
192
+ {
193
+ 'internalType': 'string',
194
+ 'name': 'host',
195
+ 'type': 'string'
196
+ }
197
+ ],
198
+ 'internalType': 'struct ReclaimTask.Attestor[]',
199
+ 'name': '',
200
+ 'type': 'tuple[]'
201
+ }
202
+ ],
203
+ 'stateMutability': 'nonpayable',
204
+ 'type': 'function'
205
+ },
206
+ {
207
+ 'inputs': [],
208
+ 'name': 'currentTask',
209
+ 'outputs': [
210
+ {
211
+ 'internalType': 'uint32',
212
+ 'name': '',
213
+ 'type': 'uint32'
214
+ }
215
+ ],
216
+ 'stateMutability': 'view',
217
+ 'type': 'function'
218
+ },
219
+ {
220
+ 'inputs': [
221
+ {
222
+ 'internalType': 'bytes32',
223
+ 'name': 'seed',
224
+ 'type': 'bytes32'
225
+ },
226
+ {
227
+ 'internalType': 'uint32',
228
+ 'name': 'timestamp',
229
+ 'type': 'uint32'
230
+ }
231
+ ],
232
+ 'name': 'fetchAttestorsForClaim',
233
+ 'outputs': [
234
+ {
235
+ 'components': [
236
+ {
237
+ 'internalType': 'address',
238
+ 'name': 'addr',
239
+ 'type': 'address'
240
+ },
241
+ {
242
+ 'internalType': 'string',
243
+ 'name': 'host',
244
+ 'type': 'string'
245
+ }
246
+ ],
247
+ 'internalType': 'struct ReclaimTask.Attestor[]',
248
+ 'name': '',
249
+ 'type': 'tuple[]'
250
+ }
251
+ ],
252
+ 'stateMutability': 'view',
253
+ 'type': 'function'
254
+ },
255
+ {
256
+ 'inputs': [
257
+ {
258
+ 'internalType': 'uint32',
259
+ 'name': 'task',
260
+ 'type': 'uint32'
261
+ }
262
+ ],
263
+ 'name': 'fetchTask',
264
+ 'outputs': [
265
+ {
266
+ 'components': [
267
+ {
268
+ 'internalType': 'uint32',
269
+ 'name': 'id',
270
+ 'type': 'uint32'
271
+ },
272
+ {
273
+ 'internalType': 'uint32',
274
+ 'name': 'timestampStart',
275
+ 'type': 'uint32'
276
+ },
277
+ {
278
+ 'internalType': 'uint32',
279
+ 'name': 'timestampEnd',
280
+ 'type': 'uint32'
281
+ },
282
+ {
283
+ 'components': [
284
+ {
285
+ 'internalType': 'address',
286
+ 'name': 'addr',
287
+ 'type': 'address'
288
+ },
289
+ {
290
+ 'internalType': 'string',
291
+ 'name': 'host',
292
+ 'type': 'string'
293
+ }
294
+ ],
295
+ 'internalType': 'struct ReclaimTask.Attestor[]',
296
+ 'name': 'attestors',
297
+ 'type': 'tuple[]'
298
+ }
472
299
  ],
473
- "internalType": "struct Claims.CompleteClaimData",
474
- "name": "claim",
475
- "type": "tuple"
476
- },
477
- {
478
- "internalType": "bytes[]",
479
- "name": "signatures",
480
- "type": "bytes[]"
481
- }
482
- ],
483
- "internalType": "struct Claims.SignedClaim",
484
- "name": "signedClaim",
485
- "type": "tuple"
486
- }
300
+ 'internalType': 'struct ReclaimTask.Task',
301
+ 'name': '',
302
+ 'type': 'tuple'
303
+ }
304
+ ],
305
+ 'stateMutability': 'view',
306
+ 'type': 'function'
307
+ },
308
+ {
309
+ 'inputs': [],
310
+ 'name': 'governanceAddress',
311
+ 'outputs': [
312
+ {
313
+ 'internalType': 'address',
314
+ 'name': '',
315
+ 'type': 'address'
316
+ }
317
+ ],
318
+ 'stateMutability': 'view',
319
+ 'type': 'function'
320
+ },
321
+ {
322
+ 'inputs': [],
323
+ 'name': 'owner',
324
+ 'outputs': [
325
+ {
326
+ 'internalType': 'address',
327
+ 'name': '',
328
+ 'type': 'address'
329
+ }
330
+ ],
331
+ 'stateMutability': 'view',
332
+ 'type': 'function'
333
+ },
334
+ {
335
+ 'inputs': [],
336
+ 'name': 'renounceOwnership',
337
+ 'outputs': [],
338
+ 'stateMutability': 'nonpayable',
339
+ 'type': 'function'
340
+ },
341
+ {
342
+ 'inputs': [],
343
+ 'name': 'requiredAttestors',
344
+ 'outputs': [
345
+ {
346
+ 'internalType': 'uint8',
347
+ 'name': '',
348
+ 'type': 'uint8'
349
+ }
350
+ ],
351
+ 'stateMutability': 'view',
352
+ 'type': 'function'
353
+ },
354
+ {
355
+ 'inputs': [
356
+ {
357
+ 'internalType': 'uint8',
358
+ 'name': '_requiredAttestors',
359
+ 'type': 'uint8'
360
+ }
361
+ ],
362
+ 'name': 'setRequiredAttestors',
363
+ 'outputs': [],
364
+ 'stateMutability': 'nonpayable',
365
+ 'type': 'function'
366
+ },
367
+ {
368
+ 'inputs': [],
369
+ 'name': 'taskDurationS',
370
+ 'outputs': [
371
+ {
372
+ 'internalType': 'uint32',
373
+ 'name': '',
374
+ 'type': 'uint32'
375
+ }
376
+ ],
377
+ 'stateMutability': 'view',
378
+ 'type': 'function'
379
+ },
380
+ {
381
+ 'inputs': [
382
+ {
383
+ 'internalType': 'uint256',
384
+ 'name': '',
385
+ 'type': 'uint256'
386
+ }
387
+ ],
388
+ 'name': 'tasks',
389
+ 'outputs': [
390
+ {
391
+ 'internalType': 'uint32',
392
+ 'name': 'id',
393
+ 'type': 'uint32'
394
+ },
395
+ {
396
+ 'internalType': 'uint32',
397
+ 'name': 'timestampStart',
398
+ 'type': 'uint32'
399
+ },
400
+ {
401
+ 'internalType': 'uint32',
402
+ 'name': 'timestampEnd',
403
+ 'type': 'uint32'
404
+ }
405
+ ],
406
+ 'stateMutability': 'view',
407
+ 'type': 'function'
408
+ },
409
+ {
410
+ 'inputs': [
411
+ {
412
+ 'internalType': 'address',
413
+ 'name': 'newOwner',
414
+ 'type': 'address'
415
+ }
416
+ ],
417
+ 'name': 'transferOwnership',
418
+ 'outputs': [],
419
+ 'stateMutability': 'nonpayable',
420
+ 'type': 'function'
421
+ },
422
+ {
423
+ 'inputs': [
424
+ {
425
+ 'components': [
426
+ {
427
+ 'components': [
428
+ {
429
+ 'internalType': 'string',
430
+ 'name': 'provider',
431
+ 'type': 'string'
432
+ },
433
+ {
434
+ 'internalType': 'string',
435
+ 'name': 'parameters',
436
+ 'type': 'string'
437
+ },
438
+ {
439
+ 'internalType': 'string',
440
+ 'name': 'context',
441
+ 'type': 'string'
442
+ }
443
+ ],
444
+ 'internalType': 'struct Claims.ClaimInfo',
445
+ 'name': 'claimInfo',
446
+ 'type': 'tuple'
447
+ },
448
+ {
449
+ 'components': [
450
+ {
451
+ 'components': [
452
+ {
453
+ 'internalType': 'bytes32',
454
+ 'name': 'identifier',
455
+ 'type': 'bytes32'
456
+ },
457
+ {
458
+ 'internalType': 'address',
459
+ 'name': 'owner',
460
+ 'type': 'address'
461
+ },
462
+ {
463
+ 'internalType': 'uint32',
464
+ 'name': 'timestampS',
465
+ 'type': 'uint32'
466
+ },
467
+ {
468
+ 'internalType': 'uint32',
469
+ 'name': 'epoch',
470
+ 'type': 'uint32'
471
+ }
472
+ ],
473
+ 'internalType': 'struct Claims.CompleteClaimData',
474
+ 'name': 'claim',
475
+ 'type': 'tuple'
476
+ },
477
+ {
478
+ 'internalType': 'bytes[]',
479
+ 'name': 'signatures',
480
+ 'type': 'bytes[]'
481
+ }
482
+ ],
483
+ 'internalType': 'struct Claims.SignedClaim',
484
+ 'name': 'signedClaim',
485
+ 'type': 'tuple'
486
+ }
487
+ ],
488
+ 'internalType': 'struct ReclaimTask.Proof[]',
489
+ 'name': 'proofs',
490
+ 'type': 'tuple[]'
491
+ },
492
+ {
493
+ 'internalType': 'uint32',
494
+ 'name': 'taskId',
495
+ 'type': 'uint32'
496
+ }
497
+ ],
498
+ 'name': 'verifyProofs',
499
+ 'outputs': [
500
+ {
501
+ 'internalType': 'bool',
502
+ 'name': '',
503
+ 'type': 'bool'
504
+ }
487
505
  ],
488
- "internalType": "struct ReclaimTask.Proof[]",
489
- "name": "proofs",
490
- "type": "tuple[]"
491
- },
492
- {
493
- "internalType": "uint32",
494
- "name": "taskId",
495
- "type": "uint32"
496
- }
497
- ],
498
- "name": "verifyProofs",
499
- "outputs": [
500
- {
501
- "internalType": "bool",
502
- "name": "",
503
- "type": "bool"
504
- }
505
- ],
506
- "stateMutability": "payable",
507
- "type": "function"
508
- }
506
+ 'stateMutability': 'payable',
507
+ 'type': 'function'
508
+ }
509
509
  ];
510
- export {
511
- taskABI
512
- };