@verify-network/contracts 0.0.0-stage → 0.1.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.
Files changed (64) hide show
  1. package/LICENSE +21 -0
  2. package/contracts/IDirectVrfReceiver.sol +17 -0
  3. package/contracts/IVerifyNetworkRouter.sol +40 -0
  4. package/contracts/IVrfReceiver.sol +14 -0
  5. package/dist/abi/Balances.d.ts +32 -0
  6. package/dist/abi/Balances.js +36 -0
  7. package/dist/abi/BalancesFacet.d.ts +110 -0
  8. package/dist/abi/BalancesFacet.js +130 -0
  9. package/dist/abi/Config.d.ts +12 -0
  10. package/dist/abi/Config.js +12 -0
  11. package/dist/abi/ConfigFacet.d.ts +360 -0
  12. package/dist/abi/ConfigFacet.js +412 -0
  13. package/dist/abi/ECVRFVerifier.d.ts +34 -0
  14. package/dist/abi/ECVRFVerifier.js +38 -0
  15. package/dist/abi/IDirectVrfReceiver.d.ts +26 -0
  16. package/dist/abi/IDirectVrfReceiver.js +31 -0
  17. package/dist/abi/IECVRFVerifier.d.ts +30 -0
  18. package/dist/abi/IECVRFVerifier.js +34 -0
  19. package/dist/abi/IEnclaveAttestationVerifier.d.ts +26 -0
  20. package/dist/abi/IEnclaveAttestationVerifier.js +30 -0
  21. package/dist/abi/INitroEnclaveVerifier.d.ts +806 -0
  22. package/dist/abi/INitroEnclaveVerifier.js +941 -0
  23. package/dist/abi/INitroProofVerifier.d.ts +81 -0
  24. package/dist/abi/INitroProofVerifier.js +95 -0
  25. package/dist/abi/ISP1Verifier.d.ts +22 -0
  26. package/dist/abi/ISP1Verifier.js +26 -0
  27. package/dist/abi/ISP1VerifierWithHash.d.ts +32 -0
  28. package/dist/abi/ISP1VerifierWithHash.js +36 -0
  29. package/dist/abi/IVerifyNetworkRouter.d.ts +74 -0
  30. package/dist/abi/IVerifyNetworkRouter.js +80 -0
  31. package/dist/abi/IVrfReceiver.d.ts +22 -0
  32. package/dist/abi/IVrfReceiver.js +26 -0
  33. package/dist/abi/NitroAttestationVerifier.d.ts +252 -0
  34. package/dist/abi/NitroAttestationVerifier.js +286 -0
  35. package/dist/abi/NitroEnclaveVerifier.d.ts +985 -0
  36. package/dist/abi/NitroEnclaveVerifier.js +1146 -0
  37. package/dist/abi/Nodes.d.ts +60 -0
  38. package/dist/abi/Nodes.js +74 -0
  39. package/dist/abi/NodesFacet.d.ts +449 -0
  40. package/dist/abi/NodesFacet.js +513 -0
  41. package/dist/abi/Ownable.d.ts +117 -0
  42. package/dist/abi/Ownable.js +132 -0
  43. package/dist/abi/Requests.d.ts +16 -0
  44. package/dist/abi/Requests.js +16 -0
  45. package/dist/abi/Router.d.ts +343 -0
  46. package/dist/abi/Router.js +405 -0
  47. package/dist/abi/RouterInit.d.ts +40 -0
  48. package/dist/abi/RouterInit.js +45 -0
  49. package/dist/abi/SP1Verifier.d.ts +140 -0
  50. package/dist/abi/SP1Verifier.js +159 -0
  51. package/dist/abi/TrustedNodeEnclaveKeyVerifier.d.ts +130 -0
  52. package/dist/abi/TrustedNodeEnclaveKeyVerifier.js +146 -0
  53. package/dist/abi/VRF.d.ts +74 -0
  54. package/dist/abi/VRF.js +82 -0
  55. package/dist/abi/Verifier.d.ts +54 -0
  56. package/dist/abi/Verifier.js +60 -0
  57. package/dist/abi/VrfFacet.d.ts +906 -0
  58. package/dist/abi/VrfFacet.js +1090 -0
  59. package/dist/artifacts.d.ts +2385 -0
  60. package/dist/artifacts.js +78 -0
  61. package/dist/diamond.d.ts +51 -0
  62. package/dist/diamond.js +60 -0
  63. package/package.json +50 -4
  64. package/README.md +0 -3
@@ -0,0 +1,985 @@
1
+ //#region abi/NitroEnclaveVerifier.d.ts
2
+ declare const _default: readonly [{
3
+ readonly inputs: readonly [{
4
+ readonly internalType: "address";
5
+ readonly name: "_owner";
6
+ readonly type: "address";
7
+ }, {
8
+ readonly internalType: "uint64";
9
+ readonly name: "_maxTimeDiff";
10
+ readonly type: "uint64";
11
+ }, {
12
+ readonly internalType: "bytes32[]";
13
+ readonly name: "_initializeTrustedCerts";
14
+ readonly type: "bytes32[]";
15
+ }];
16
+ readonly stateMutability: "nonpayable";
17
+ readonly type: "constructor";
18
+ }, {
19
+ readonly inputs: readonly [];
20
+ readonly name: "AlreadyInitialized";
21
+ readonly type: "error";
22
+ }, {
23
+ readonly inputs: readonly [{
24
+ readonly internalType: "enum ZkCoProcessorType";
25
+ readonly name: "zkCoProcessor";
26
+ readonly type: "uint8";
27
+ }, {
28
+ readonly internalType: "bytes32";
29
+ readonly name: "identifier";
30
+ readonly type: "bytes32";
31
+ }];
32
+ readonly name: "CannotRemoveLatestProgramId";
33
+ readonly type: "error";
34
+ }, {
35
+ readonly inputs: readonly [{
36
+ readonly internalType: "enum ZkCoProcessorType";
37
+ readonly name: "zkCoProcessor";
38
+ readonly type: "uint8";
39
+ }, {
40
+ readonly internalType: "bytes32";
41
+ readonly name: "identifier";
42
+ readonly type: "bytes32";
43
+ }];
44
+ readonly name: "InvalidProgramIdentifier";
45
+ readonly type: "error";
46
+ }, {
47
+ readonly inputs: readonly [];
48
+ readonly name: "NewOwnerIsZeroAddress";
49
+ readonly type: "error";
50
+ }, {
51
+ readonly inputs: readonly [];
52
+ readonly name: "NoHandoverRequest";
53
+ readonly type: "error";
54
+ }, {
55
+ readonly inputs: readonly [];
56
+ readonly name: "Unauthorized";
57
+ readonly type: "error";
58
+ }, {
59
+ readonly inputs: readonly [];
60
+ readonly name: "Unknown_Zk_Coprocessor";
61
+ readonly type: "error";
62
+ }, {
63
+ readonly inputs: readonly [{
64
+ readonly internalType: "enum ZkCoProcessorType";
65
+ readonly name: "zkCoProcessor";
66
+ readonly type: "uint8";
67
+ }, {
68
+ readonly internalType: "bytes4";
69
+ readonly name: "selector";
70
+ readonly type: "bytes4";
71
+ }];
72
+ readonly name: "ZkRouteFrozen";
73
+ readonly type: "error";
74
+ }, {
75
+ readonly inputs: readonly [{
76
+ readonly internalType: "enum ZkCoProcessorType";
77
+ readonly name: "zkCoProcessor";
78
+ readonly type: "uint8";
79
+ }];
80
+ readonly name: "ZkVerifierNotConfigured";
81
+ readonly type: "error";
82
+ }, {
83
+ readonly anonymous: false;
84
+ readonly inputs: readonly [{
85
+ readonly indexed: true;
86
+ readonly internalType: "enum ZkCoProcessorType";
87
+ readonly name: "zkCoProcessor";
88
+ readonly type: "uint8";
89
+ }, {
90
+ readonly indexed: true;
91
+ readonly internalType: "bytes32";
92
+ readonly name: "newId";
93
+ readonly type: "bytes32";
94
+ }];
95
+ readonly name: "AggregatorIdUpdated";
96
+ readonly type: "event";
97
+ }, {
98
+ readonly anonymous: false;
99
+ readonly inputs: readonly [{
100
+ readonly indexed: false;
101
+ readonly internalType: "enum VerificationResult";
102
+ readonly name: "result";
103
+ readonly type: "uint8";
104
+ }, {
105
+ readonly indexed: false;
106
+ readonly internalType: "enum ZkCoProcessorType";
107
+ readonly name: "zkCoProcessor";
108
+ readonly type: "uint8";
109
+ }, {
110
+ readonly indexed: false;
111
+ readonly internalType: "bytes";
112
+ readonly name: "output";
113
+ readonly type: "bytes";
114
+ }];
115
+ readonly name: "AttestationSubmitted";
116
+ readonly type: "event";
117
+ }, {
118
+ readonly anonymous: false;
119
+ readonly inputs: readonly [{
120
+ readonly indexed: false;
121
+ readonly internalType: "bytes32";
122
+ readonly name: "verifierId";
123
+ readonly type: "bytes32";
124
+ }, {
125
+ readonly indexed: false;
126
+ readonly internalType: "enum ZkCoProcessorType";
127
+ readonly name: "zkCoProcessor";
128
+ readonly type: "uint8";
129
+ }, {
130
+ readonly indexed: false;
131
+ readonly internalType: "bytes";
132
+ readonly name: "encodedBatch";
133
+ readonly type: "bytes";
134
+ }];
135
+ readonly name: "BatchAttestationSubmitted";
136
+ readonly type: "event";
137
+ }, {
138
+ readonly anonymous: false;
139
+ readonly inputs: readonly [{
140
+ readonly indexed: true;
141
+ readonly internalType: "address";
142
+ readonly name: "pendingOwner";
143
+ readonly type: "address";
144
+ }];
145
+ readonly name: "OwnershipHandoverCanceled";
146
+ readonly type: "event";
147
+ }, {
148
+ readonly anonymous: false;
149
+ readonly inputs: readonly [{
150
+ readonly indexed: true;
151
+ readonly internalType: "address";
152
+ readonly name: "pendingOwner";
153
+ readonly type: "address";
154
+ }];
155
+ readonly name: "OwnershipHandoverRequested";
156
+ readonly type: "event";
157
+ }, {
158
+ readonly anonymous: false;
159
+ readonly inputs: readonly [{
160
+ readonly indexed: true;
161
+ readonly internalType: "address";
162
+ readonly name: "oldOwner";
163
+ readonly type: "address";
164
+ }, {
165
+ readonly indexed: true;
166
+ readonly internalType: "address";
167
+ readonly name: "newOwner";
168
+ readonly type: "address";
169
+ }];
170
+ readonly name: "OwnershipTransferred";
171
+ readonly type: "event";
172
+ }, {
173
+ readonly anonymous: false;
174
+ readonly inputs: readonly [{
175
+ readonly indexed: true;
176
+ readonly internalType: "enum ZkCoProcessorType";
177
+ readonly name: "zkCoProcessor";
178
+ readonly type: "uint8";
179
+ }, {
180
+ readonly indexed: true;
181
+ readonly internalType: "bytes32";
182
+ readonly name: "programId";
183
+ readonly type: "bytes32";
184
+ }, {
185
+ readonly indexed: false;
186
+ readonly internalType: "bool";
187
+ readonly name: "isAggregator";
188
+ readonly type: "bool";
189
+ }];
190
+ readonly name: "ProgramIdRemoved";
191
+ readonly type: "event";
192
+ }, {
193
+ readonly anonymous: false;
194
+ readonly inputs: readonly [{
195
+ readonly indexed: true;
196
+ readonly internalType: "enum ZkCoProcessorType";
197
+ readonly name: "zkCoProcessor";
198
+ readonly type: "uint8";
199
+ }, {
200
+ readonly indexed: true;
201
+ readonly internalType: "bytes32";
202
+ readonly name: "newId";
203
+ readonly type: "bytes32";
204
+ }, {
205
+ readonly indexed: false;
206
+ readonly internalType: "bytes32";
207
+ readonly name: "newProofId";
208
+ readonly type: "bytes32";
209
+ }];
210
+ readonly name: "VerifierIdUpdated";
211
+ readonly type: "event";
212
+ }, {
213
+ readonly anonymous: false;
214
+ readonly inputs: readonly [{
215
+ readonly indexed: true;
216
+ readonly internalType: "enum ZkCoProcessorType";
217
+ readonly name: "zkCoProcessor";
218
+ readonly type: "uint8";
219
+ }, {
220
+ readonly indexed: true;
221
+ readonly internalType: "bytes4";
222
+ readonly name: "selector";
223
+ readonly type: "bytes4";
224
+ }, {
225
+ readonly indexed: false;
226
+ readonly internalType: "address";
227
+ readonly name: "verifier";
228
+ readonly type: "address";
229
+ }];
230
+ readonly name: "ZkRouteAdded";
231
+ readonly type: "event";
232
+ }, {
233
+ readonly anonymous: false;
234
+ readonly inputs: readonly [{
235
+ readonly indexed: true;
236
+ readonly internalType: "enum ZkCoProcessorType";
237
+ readonly name: "zkCoProcessor";
238
+ readonly type: "uint8";
239
+ }, {
240
+ readonly indexed: true;
241
+ readonly internalType: "bytes4";
242
+ readonly name: "selector";
243
+ readonly type: "bytes4";
244
+ }];
245
+ readonly name: "ZkRouteWasFrozen";
246
+ readonly type: "event";
247
+ }, {
248
+ readonly inputs: readonly [{
249
+ readonly internalType: "enum ZkCoProcessorType";
250
+ readonly name: "_zkCoProcessor";
251
+ readonly type: "uint8";
252
+ }, {
253
+ readonly internalType: "bytes4";
254
+ readonly name: "_selector";
255
+ readonly type: "bytes4";
256
+ }, {
257
+ readonly internalType: "address";
258
+ readonly name: "_verifier";
259
+ readonly type: "address";
260
+ }];
261
+ readonly name: "addVerifyRoute";
262
+ readonly outputs: readonly [];
263
+ readonly stateMutability: "nonpayable";
264
+ readonly type: "function";
265
+ }, {
266
+ readonly inputs: readonly [{
267
+ readonly internalType: "bytes";
268
+ readonly name: "output";
269
+ readonly type: "bytes";
270
+ }, {
271
+ readonly internalType: "enum ZkCoProcessorType";
272
+ readonly name: "zkCoprocessor";
273
+ readonly type: "uint8";
274
+ }, {
275
+ readonly internalType: "bytes";
276
+ readonly name: "proofBytes";
277
+ readonly type: "bytes";
278
+ }];
279
+ readonly name: "batchVerify";
280
+ readonly outputs: readonly [{
281
+ readonly components: readonly [{
282
+ readonly internalType: "enum VerificationResult";
283
+ readonly name: "result";
284
+ readonly type: "uint8";
285
+ }, {
286
+ readonly internalType: "uint8";
287
+ readonly name: "trustedCertsPrefixLen";
288
+ readonly type: "uint8";
289
+ }, {
290
+ readonly internalType: "uint64";
291
+ readonly name: "timestamp";
292
+ readonly type: "uint64";
293
+ }, {
294
+ readonly internalType: "bytes32[]";
295
+ readonly name: "certs";
296
+ readonly type: "bytes32[]";
297
+ }, {
298
+ readonly internalType: "bytes";
299
+ readonly name: "userData";
300
+ readonly type: "bytes";
301
+ }, {
302
+ readonly internalType: "bytes";
303
+ readonly name: "nonce";
304
+ readonly type: "bytes";
305
+ }, {
306
+ readonly internalType: "bytes";
307
+ readonly name: "publicKey";
308
+ readonly type: "bytes";
309
+ }, {
310
+ readonly components: readonly [{
311
+ readonly internalType: "uint64";
312
+ readonly name: "index";
313
+ readonly type: "uint64";
314
+ }, {
315
+ readonly components: readonly [{
316
+ readonly internalType: "bytes32";
317
+ readonly name: "first";
318
+ readonly type: "bytes32";
319
+ }, {
320
+ readonly internalType: "bytes16";
321
+ readonly name: "second";
322
+ readonly type: "bytes16";
323
+ }];
324
+ readonly internalType: "struct Bytes48";
325
+ readonly name: "value";
326
+ readonly type: "tuple";
327
+ }];
328
+ readonly internalType: "struct Pcr[]";
329
+ readonly name: "pcrs";
330
+ readonly type: "tuple[]";
331
+ }, {
332
+ readonly internalType: "string";
333
+ readonly name: "moduleId";
334
+ readonly type: "string";
335
+ }];
336
+ readonly internalType: "struct VerifierJournal[]";
337
+ readonly name: "results";
338
+ readonly type: "tuple[]";
339
+ }];
340
+ readonly stateMutability: "nonpayable";
341
+ readonly type: "function";
342
+ }, {
343
+ readonly inputs: readonly [{
344
+ readonly internalType: "bytes";
345
+ readonly name: "output";
346
+ readonly type: "bytes";
347
+ }, {
348
+ readonly internalType: "enum ZkCoProcessorType";
349
+ readonly name: "zkCoprocessor";
350
+ readonly type: "uint8";
351
+ }, {
352
+ readonly internalType: "bytes32";
353
+ readonly name: "aggregatorId";
354
+ readonly type: "bytes32";
355
+ }, {
356
+ readonly internalType: "bytes32";
357
+ readonly name: "verifierId";
358
+ readonly type: "bytes32";
359
+ }, {
360
+ readonly internalType: "bytes";
361
+ readonly name: "proofBytes";
362
+ readonly type: "bytes";
363
+ }];
364
+ readonly name: "batchVerifyWithProgramId";
365
+ readonly outputs: readonly [{
366
+ readonly components: readonly [{
367
+ readonly internalType: "enum VerificationResult";
368
+ readonly name: "result";
369
+ readonly type: "uint8";
370
+ }, {
371
+ readonly internalType: "uint8";
372
+ readonly name: "trustedCertsPrefixLen";
373
+ readonly type: "uint8";
374
+ }, {
375
+ readonly internalType: "uint64";
376
+ readonly name: "timestamp";
377
+ readonly type: "uint64";
378
+ }, {
379
+ readonly internalType: "bytes32[]";
380
+ readonly name: "certs";
381
+ readonly type: "bytes32[]";
382
+ }, {
383
+ readonly internalType: "bytes";
384
+ readonly name: "userData";
385
+ readonly type: "bytes";
386
+ }, {
387
+ readonly internalType: "bytes";
388
+ readonly name: "nonce";
389
+ readonly type: "bytes";
390
+ }, {
391
+ readonly internalType: "bytes";
392
+ readonly name: "publicKey";
393
+ readonly type: "bytes";
394
+ }, {
395
+ readonly components: readonly [{
396
+ readonly internalType: "uint64";
397
+ readonly name: "index";
398
+ readonly type: "uint64";
399
+ }, {
400
+ readonly components: readonly [{
401
+ readonly internalType: "bytes32";
402
+ readonly name: "first";
403
+ readonly type: "bytes32";
404
+ }, {
405
+ readonly internalType: "bytes16";
406
+ readonly name: "second";
407
+ readonly type: "bytes16";
408
+ }];
409
+ readonly internalType: "struct Bytes48";
410
+ readonly name: "value";
411
+ readonly type: "tuple";
412
+ }];
413
+ readonly internalType: "struct Pcr[]";
414
+ readonly name: "pcrs";
415
+ readonly type: "tuple[]";
416
+ }, {
417
+ readonly internalType: "string";
418
+ readonly name: "moduleId";
419
+ readonly type: "string";
420
+ }];
421
+ readonly internalType: "struct VerifierJournal[]";
422
+ readonly name: "results";
423
+ readonly type: "tuple[]";
424
+ }];
425
+ readonly stateMutability: "nonpayable";
426
+ readonly type: "function";
427
+ }, {
428
+ readonly inputs: readonly [];
429
+ readonly name: "cancelOwnershipHandover";
430
+ readonly outputs: readonly [];
431
+ readonly stateMutability: "payable";
432
+ readonly type: "function";
433
+ }, {
434
+ readonly inputs: readonly [{
435
+ readonly internalType: "bytes32[][]";
436
+ readonly name: "_report_certs";
437
+ readonly type: "bytes32[][]";
438
+ }];
439
+ readonly name: "checkTrustedIntermediateCerts";
440
+ readonly outputs: readonly [{
441
+ readonly internalType: "uint8[]";
442
+ readonly name: "";
443
+ readonly type: "uint8[]";
444
+ }];
445
+ readonly stateMutability: "view";
446
+ readonly type: "function";
447
+ }, {
448
+ readonly inputs: readonly [{
449
+ readonly internalType: "address";
450
+ readonly name: "pendingOwner";
451
+ readonly type: "address";
452
+ }];
453
+ readonly name: "completeOwnershipHandover";
454
+ readonly outputs: readonly [];
455
+ readonly stateMutability: "payable";
456
+ readonly type: "function";
457
+ }, {
458
+ readonly inputs: readonly [{
459
+ readonly internalType: "enum ZkCoProcessorType";
460
+ readonly name: "_zkCoProcessor";
461
+ readonly type: "uint8";
462
+ }, {
463
+ readonly internalType: "bytes4";
464
+ readonly name: "_selector";
465
+ readonly type: "bytes4";
466
+ }];
467
+ readonly name: "freezeVerifyRoute";
468
+ readonly outputs: readonly [];
469
+ readonly stateMutability: "nonpayable";
470
+ readonly type: "function";
471
+ }, {
472
+ readonly inputs: readonly [{
473
+ readonly internalType: "enum ZkCoProcessorType";
474
+ readonly name: "_zkCoProcessor";
475
+ readonly type: "uint8";
476
+ }];
477
+ readonly name: "getAggregatorIds";
478
+ readonly outputs: readonly [{
479
+ readonly internalType: "bytes32[]";
480
+ readonly name: "";
481
+ readonly type: "bytes32[]";
482
+ }];
483
+ readonly stateMutability: "view";
484
+ readonly type: "function";
485
+ }, {
486
+ readonly inputs: readonly [{
487
+ readonly internalType: "enum ZkCoProcessorType";
488
+ readonly name: "_zkCoProcessor";
489
+ readonly type: "uint8";
490
+ }];
491
+ readonly name: "getVerifierIds";
492
+ readonly outputs: readonly [{
493
+ readonly internalType: "bytes32[]";
494
+ readonly name: "";
495
+ readonly type: "bytes32[]";
496
+ }];
497
+ readonly stateMutability: "view";
498
+ readonly type: "function";
499
+ }, {
500
+ readonly inputs: readonly [{
501
+ readonly internalType: "enum ZkCoProcessorType";
502
+ readonly name: "_zkCoProcessor";
503
+ readonly type: "uint8";
504
+ }, {
505
+ readonly internalType: "bytes32";
506
+ readonly name: "_verifierId";
507
+ readonly type: "bytes32";
508
+ }];
509
+ readonly name: "getVerifierProofId";
510
+ readonly outputs: readonly [{
511
+ readonly internalType: "bytes32";
512
+ readonly name: "";
513
+ readonly type: "bytes32";
514
+ }];
515
+ readonly stateMutability: "view";
516
+ readonly type: "function";
517
+ }, {
518
+ readonly inputs: readonly [{
519
+ readonly internalType: "enum ZkCoProcessorType";
520
+ readonly name: "_zkCoProcessor";
521
+ readonly type: "uint8";
522
+ }];
523
+ readonly name: "getZkConfig";
524
+ readonly outputs: readonly [{
525
+ readonly components: readonly [{
526
+ readonly internalType: "bytes32";
527
+ readonly name: "verifierId";
528
+ readonly type: "bytes32";
529
+ }, {
530
+ readonly internalType: "bytes32";
531
+ readonly name: "aggregatorId";
532
+ readonly type: "bytes32";
533
+ }, {
534
+ readonly internalType: "address";
535
+ readonly name: "zkVerifier";
536
+ readonly type: "address";
537
+ }];
538
+ readonly internalType: "struct ZkCoProcessorConfig";
539
+ readonly name: "";
540
+ readonly type: "tuple";
541
+ }];
542
+ readonly stateMutability: "view";
543
+ readonly type: "function";
544
+ }, {
545
+ readonly inputs: readonly [{
546
+ readonly internalType: "enum ZkCoProcessorType";
547
+ readonly name: "_zkCoProcessor";
548
+ readonly type: "uint8";
549
+ }, {
550
+ readonly internalType: "bytes4";
551
+ readonly name: "_selector";
552
+ readonly type: "bytes4";
553
+ }];
554
+ readonly name: "getZkVerifier";
555
+ readonly outputs: readonly [{
556
+ readonly internalType: "address";
557
+ readonly name: "";
558
+ readonly type: "address";
559
+ }];
560
+ readonly stateMutability: "view";
561
+ readonly type: "function";
562
+ }, {
563
+ readonly inputs: readonly [{
564
+ readonly internalType: "enum ZkCoProcessorType";
565
+ readonly name: "_zkCoProcessor";
566
+ readonly type: "uint8";
567
+ }, {
568
+ readonly internalType: "bytes32";
569
+ readonly name: "_aggregatorId";
570
+ readonly type: "bytes32";
571
+ }];
572
+ readonly name: "isAggregatorIdSupported";
573
+ readonly outputs: readonly [{
574
+ readonly internalType: "bool";
575
+ readonly name: "";
576
+ readonly type: "bool";
577
+ }];
578
+ readonly stateMutability: "view";
579
+ readonly type: "function";
580
+ }, {
581
+ readonly inputs: readonly [{
582
+ readonly internalType: "enum ZkCoProcessorType";
583
+ readonly name: "_zkCoProcessor";
584
+ readonly type: "uint8";
585
+ }, {
586
+ readonly internalType: "bytes32";
587
+ readonly name: "_verifierId";
588
+ readonly type: "bytes32";
589
+ }];
590
+ readonly name: "isVerifierIdSupported";
591
+ readonly outputs: readonly [{
592
+ readonly internalType: "bool";
593
+ readonly name: "";
594
+ readonly type: "bool";
595
+ }];
596
+ readonly stateMutability: "view";
597
+ readonly type: "function";
598
+ }, {
599
+ readonly inputs: readonly [];
600
+ readonly name: "maxTimeDiff";
601
+ readonly outputs: readonly [{
602
+ readonly internalType: "uint64";
603
+ readonly name: "";
604
+ readonly type: "uint64";
605
+ }];
606
+ readonly stateMutability: "view";
607
+ readonly type: "function";
608
+ }, {
609
+ readonly inputs: readonly [];
610
+ readonly name: "owner";
611
+ readonly outputs: readonly [{
612
+ readonly internalType: "address";
613
+ readonly name: "result";
614
+ readonly type: "address";
615
+ }];
616
+ readonly stateMutability: "view";
617
+ readonly type: "function";
618
+ }, {
619
+ readonly inputs: readonly [{
620
+ readonly internalType: "address";
621
+ readonly name: "pendingOwner";
622
+ readonly type: "address";
623
+ }];
624
+ readonly name: "ownershipHandoverExpiresAt";
625
+ readonly outputs: readonly [{
626
+ readonly internalType: "uint256";
627
+ readonly name: "result";
628
+ readonly type: "uint256";
629
+ }];
630
+ readonly stateMutability: "view";
631
+ readonly type: "function";
632
+ }, {
633
+ readonly inputs: readonly [{
634
+ readonly internalType: "enum ZkCoProcessorType";
635
+ readonly name: "_zkCoProcessor";
636
+ readonly type: "uint8";
637
+ }, {
638
+ readonly internalType: "bytes32";
639
+ readonly name: "_aggregatorId";
640
+ readonly type: "bytes32";
641
+ }];
642
+ readonly name: "removeAggregatorId";
643
+ readonly outputs: readonly [];
644
+ readonly stateMutability: "nonpayable";
645
+ readonly type: "function";
646
+ }, {
647
+ readonly inputs: readonly [{
648
+ readonly internalType: "enum ZkCoProcessorType";
649
+ readonly name: "_zkCoProcessor";
650
+ readonly type: "uint8";
651
+ }, {
652
+ readonly internalType: "bytes32";
653
+ readonly name: "_verifierId";
654
+ readonly type: "bytes32";
655
+ }];
656
+ readonly name: "removeVerifierId";
657
+ readonly outputs: readonly [];
658
+ readonly stateMutability: "nonpayable";
659
+ readonly type: "function";
660
+ }, {
661
+ readonly inputs: readonly [];
662
+ readonly name: "renounceOwnership";
663
+ readonly outputs: readonly [];
664
+ readonly stateMutability: "payable";
665
+ readonly type: "function";
666
+ }, {
667
+ readonly inputs: readonly [];
668
+ readonly name: "requestOwnershipHandover";
669
+ readonly outputs: readonly [];
670
+ readonly stateMutability: "payable";
671
+ readonly type: "function";
672
+ }, {
673
+ readonly inputs: readonly [{
674
+ readonly internalType: "bytes32";
675
+ readonly name: "_certHash";
676
+ readonly type: "bytes32";
677
+ }];
678
+ readonly name: "revokeCert";
679
+ readonly outputs: readonly [];
680
+ readonly stateMutability: "nonpayable";
681
+ readonly type: "function";
682
+ }, {
683
+ readonly inputs: readonly [{
684
+ readonly internalType: "bytes32";
685
+ readonly name: "revokedCertHash";
686
+ readonly type: "bytes32";
687
+ }];
688
+ readonly name: "revokedCerts";
689
+ readonly outputs: readonly [{
690
+ readonly internalType: "bool";
691
+ readonly name: "";
692
+ readonly type: "bool";
693
+ }];
694
+ readonly stateMutability: "view";
695
+ readonly type: "function";
696
+ }, {
697
+ readonly inputs: readonly [];
698
+ readonly name: "rootCert";
699
+ readonly outputs: readonly [{
700
+ readonly internalType: "bytes32";
701
+ readonly name: "";
702
+ readonly type: "bytes32";
703
+ }];
704
+ readonly stateMutability: "view";
705
+ readonly type: "function";
706
+ }, {
707
+ readonly inputs: readonly [{
708
+ readonly internalType: "bytes32";
709
+ readonly name: "_rootCert";
710
+ readonly type: "bytes32";
711
+ }];
712
+ readonly name: "setRootCert";
713
+ readonly outputs: readonly [];
714
+ readonly stateMutability: "nonpayable";
715
+ readonly type: "function";
716
+ }, {
717
+ readonly inputs: readonly [{
718
+ readonly internalType: "enum ZkCoProcessorType";
719
+ readonly name: "_zkCoProcessor";
720
+ readonly type: "uint8";
721
+ }, {
722
+ readonly components: readonly [{
723
+ readonly internalType: "bytes32";
724
+ readonly name: "verifierId";
725
+ readonly type: "bytes32";
726
+ }, {
727
+ readonly internalType: "bytes32";
728
+ readonly name: "aggregatorId";
729
+ readonly type: "bytes32";
730
+ }, {
731
+ readonly internalType: "address";
732
+ readonly name: "zkVerifier";
733
+ readonly type: "address";
734
+ }];
735
+ readonly internalType: "struct ZkCoProcessorConfig";
736
+ readonly name: "_config";
737
+ readonly type: "tuple";
738
+ }, {
739
+ readonly internalType: "bytes32";
740
+ readonly name: "_verifierProofId";
741
+ readonly type: "bytes32";
742
+ }];
743
+ readonly name: "setZkConfiguration";
744
+ readonly outputs: readonly [];
745
+ readonly stateMutability: "nonpayable";
746
+ readonly type: "function";
747
+ }, {
748
+ readonly inputs: readonly [{
749
+ readonly internalType: "address";
750
+ readonly name: "newOwner";
751
+ readonly type: "address";
752
+ }];
753
+ readonly name: "transferOwnership";
754
+ readonly outputs: readonly [];
755
+ readonly stateMutability: "payable";
756
+ readonly type: "function";
757
+ }, {
758
+ readonly inputs: readonly [{
759
+ readonly internalType: "bytes32";
760
+ readonly name: "trustedCertHash";
761
+ readonly type: "bytes32";
762
+ }];
763
+ readonly name: "trustedIntermediateCerts";
764
+ readonly outputs: readonly [{
765
+ readonly internalType: "bool";
766
+ readonly name: "";
767
+ readonly type: "bool";
768
+ }];
769
+ readonly stateMutability: "view";
770
+ readonly type: "function";
771
+ }, {
772
+ readonly inputs: readonly [{
773
+ readonly internalType: "enum ZkCoProcessorType";
774
+ readonly name: "_zkCoProcessor";
775
+ readonly type: "uint8";
776
+ }, {
777
+ readonly internalType: "bytes32";
778
+ readonly name: "_newAggregatorId";
779
+ readonly type: "bytes32";
780
+ }];
781
+ readonly name: "updateAggregatorId";
782
+ readonly outputs: readonly [];
783
+ readonly stateMutability: "nonpayable";
784
+ readonly type: "function";
785
+ }, {
786
+ readonly inputs: readonly [{
787
+ readonly internalType: "enum ZkCoProcessorType";
788
+ readonly name: "_zkCoProcessor";
789
+ readonly type: "uint8";
790
+ }, {
791
+ readonly internalType: "bytes32";
792
+ readonly name: "_newVerifierId";
793
+ readonly type: "bytes32";
794
+ }, {
795
+ readonly internalType: "bytes32";
796
+ readonly name: "_newVerifierProofId";
797
+ readonly type: "bytes32";
798
+ }];
799
+ readonly name: "updateVerifierId";
800
+ readonly outputs: readonly [];
801
+ readonly stateMutability: "nonpayable";
802
+ readonly type: "function";
803
+ }, {
804
+ readonly inputs: readonly [{
805
+ readonly internalType: "bytes";
806
+ readonly name: "output";
807
+ readonly type: "bytes";
808
+ }, {
809
+ readonly internalType: "enum ZkCoProcessorType";
810
+ readonly name: "zkCoprocessor";
811
+ readonly type: "uint8";
812
+ }, {
813
+ readonly internalType: "bytes";
814
+ readonly name: "proofBytes";
815
+ readonly type: "bytes";
816
+ }];
817
+ readonly name: "verify";
818
+ readonly outputs: readonly [{
819
+ readonly components: readonly [{
820
+ readonly internalType: "enum VerificationResult";
821
+ readonly name: "result";
822
+ readonly type: "uint8";
823
+ }, {
824
+ readonly internalType: "uint8";
825
+ readonly name: "trustedCertsPrefixLen";
826
+ readonly type: "uint8";
827
+ }, {
828
+ readonly internalType: "uint64";
829
+ readonly name: "timestamp";
830
+ readonly type: "uint64";
831
+ }, {
832
+ readonly internalType: "bytes32[]";
833
+ readonly name: "certs";
834
+ readonly type: "bytes32[]";
835
+ }, {
836
+ readonly internalType: "bytes";
837
+ readonly name: "userData";
838
+ readonly type: "bytes";
839
+ }, {
840
+ readonly internalType: "bytes";
841
+ readonly name: "nonce";
842
+ readonly type: "bytes";
843
+ }, {
844
+ readonly internalType: "bytes";
845
+ readonly name: "publicKey";
846
+ readonly type: "bytes";
847
+ }, {
848
+ readonly components: readonly [{
849
+ readonly internalType: "uint64";
850
+ readonly name: "index";
851
+ readonly type: "uint64";
852
+ }, {
853
+ readonly components: readonly [{
854
+ readonly internalType: "bytes32";
855
+ readonly name: "first";
856
+ readonly type: "bytes32";
857
+ }, {
858
+ readonly internalType: "bytes16";
859
+ readonly name: "second";
860
+ readonly type: "bytes16";
861
+ }];
862
+ readonly internalType: "struct Bytes48";
863
+ readonly name: "value";
864
+ readonly type: "tuple";
865
+ }];
866
+ readonly internalType: "struct Pcr[]";
867
+ readonly name: "pcrs";
868
+ readonly type: "tuple[]";
869
+ }, {
870
+ readonly internalType: "string";
871
+ readonly name: "moduleId";
872
+ readonly type: "string";
873
+ }];
874
+ readonly internalType: "struct VerifierJournal";
875
+ readonly name: "journal";
876
+ readonly type: "tuple";
877
+ }];
878
+ readonly stateMutability: "nonpayable";
879
+ readonly type: "function";
880
+ }, {
881
+ readonly inputs: readonly [{
882
+ readonly internalType: "bytes";
883
+ readonly name: "output";
884
+ readonly type: "bytes";
885
+ }, {
886
+ readonly internalType: "enum ZkCoProcessorType";
887
+ readonly name: "zkCoprocessor";
888
+ readonly type: "uint8";
889
+ }, {
890
+ readonly internalType: "bytes32";
891
+ readonly name: "programId";
892
+ readonly type: "bytes32";
893
+ }, {
894
+ readonly internalType: "bytes";
895
+ readonly name: "proofBytes";
896
+ readonly type: "bytes";
897
+ }];
898
+ readonly name: "verifyWithProgramId";
899
+ readonly outputs: readonly [{
900
+ readonly components: readonly [{
901
+ readonly internalType: "enum VerificationResult";
902
+ readonly name: "result";
903
+ readonly type: "uint8";
904
+ }, {
905
+ readonly internalType: "uint8";
906
+ readonly name: "trustedCertsPrefixLen";
907
+ readonly type: "uint8";
908
+ }, {
909
+ readonly internalType: "uint64";
910
+ readonly name: "timestamp";
911
+ readonly type: "uint64";
912
+ }, {
913
+ readonly internalType: "bytes32[]";
914
+ readonly name: "certs";
915
+ readonly type: "bytes32[]";
916
+ }, {
917
+ readonly internalType: "bytes";
918
+ readonly name: "userData";
919
+ readonly type: "bytes";
920
+ }, {
921
+ readonly internalType: "bytes";
922
+ readonly name: "nonce";
923
+ readonly type: "bytes";
924
+ }, {
925
+ readonly internalType: "bytes";
926
+ readonly name: "publicKey";
927
+ readonly type: "bytes";
928
+ }, {
929
+ readonly components: readonly [{
930
+ readonly internalType: "uint64";
931
+ readonly name: "index";
932
+ readonly type: "uint64";
933
+ }, {
934
+ readonly components: readonly [{
935
+ readonly internalType: "bytes32";
936
+ readonly name: "first";
937
+ readonly type: "bytes32";
938
+ }, {
939
+ readonly internalType: "bytes16";
940
+ readonly name: "second";
941
+ readonly type: "bytes16";
942
+ }];
943
+ readonly internalType: "struct Bytes48";
944
+ readonly name: "value";
945
+ readonly type: "tuple";
946
+ }];
947
+ readonly internalType: "struct Pcr[]";
948
+ readonly name: "pcrs";
949
+ readonly type: "tuple[]";
950
+ }, {
951
+ readonly internalType: "string";
952
+ readonly name: "moduleId";
953
+ readonly type: "string";
954
+ }];
955
+ readonly internalType: "struct VerifierJournal";
956
+ readonly name: "journal";
957
+ readonly type: "tuple";
958
+ }];
959
+ readonly stateMutability: "nonpayable";
960
+ readonly type: "function";
961
+ }, {
962
+ readonly inputs: readonly [{
963
+ readonly internalType: "enum ZkCoProcessorType";
964
+ readonly name: "";
965
+ readonly type: "uint8";
966
+ }];
967
+ readonly name: "zkConfig";
968
+ readonly outputs: readonly [{
969
+ readonly internalType: "bytes32";
970
+ readonly name: "verifierId";
971
+ readonly type: "bytes32";
972
+ }, {
973
+ readonly internalType: "bytes32";
974
+ readonly name: "aggregatorId";
975
+ readonly type: "bytes32";
976
+ }, {
977
+ readonly internalType: "address";
978
+ readonly name: "zkVerifier";
979
+ readonly type: "address";
980
+ }];
981
+ readonly stateMutability: "view";
982
+ readonly type: "function";
983
+ }];
984
+ //#endregion
985
+ export { _default as default };