@cofhe/mock-contracts 0.4.0 → 0.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.mts CHANGED
@@ -6,267 +6,2240 @@ type MockArtifact = {
6
6
  } & ({
7
7
  isFixed: true;
8
8
  fixedAddress: string;
9
- deployedBytecode: string;
10
9
  } | {
11
10
  isFixed: false;
12
- bytecode: string;
13
11
  });
14
12
 
15
13
  declare const MockTaskManagerArtifact: {
16
- contractName: string;
17
- isFixed: true;
18
- fixedAddress: string;
19
- abi: ({
20
- type: string;
21
- inputs: never[];
22
- stateMutability: string;
23
- name?: undefined;
24
- outputs?: undefined;
25
- anonymous?: undefined;
26
- } | {
27
- type: string;
28
- name: string;
29
- inputs: ({
30
- name: string;
31
- type: string;
32
- internalType: string;
33
- components: {
34
- name: string;
35
- type: string;
36
- internalType: string;
37
- }[];
38
- } | {
39
- name: string;
40
- type: string;
41
- internalType: string;
42
- components?: undefined;
43
- })[];
44
- outputs: {
45
- name: string;
46
- type: string;
47
- internalType: string;
48
- }[];
49
- stateMutability: string;
50
- anonymous?: undefined;
51
- } | {
52
- type: string;
53
- name: string;
54
- inputs: {
55
- name: string;
56
- type: string;
57
- indexed: boolean;
58
- internalType: string;
59
- }[];
60
- anonymous: boolean;
61
- stateMutability?: undefined;
62
- outputs?: undefined;
63
- } | {
64
- type: string;
65
- name: string;
66
- inputs: {
67
- name: string;
68
- type: string;
69
- internalType: string;
70
- }[];
71
- stateMutability?: undefined;
72
- outputs?: undefined;
73
- anonymous?: undefined;
74
- })[];
75
- deployedBytecode: string;
14
+ readonly contractName: "MockTaskManager";
15
+ readonly isFixed: true;
16
+ readonly fixedAddress: "0xeA30c4B8b44078Bbf8a6ef5b9f1eC1626C7848D9";
17
+ readonly abi: readonly [{
18
+ readonly type: "constructor";
19
+ readonly inputs: readonly [];
20
+ readonly stateMutability: "nonpayable";
21
+ }, {
22
+ readonly type: "function";
23
+ readonly name: "MOCK_logAllow";
24
+ readonly inputs: readonly [{
25
+ readonly name: "operation";
26
+ readonly type: "string";
27
+ readonly internalType: "string";
28
+ }, {
29
+ readonly name: "ctHash";
30
+ readonly type: "uint256";
31
+ readonly internalType: "uint256";
32
+ }, {
33
+ readonly name: "account";
34
+ readonly type: "address";
35
+ readonly internalType: "address";
36
+ }];
37
+ readonly outputs: readonly [];
38
+ readonly stateMutability: "view";
39
+ }, {
40
+ readonly type: "function";
41
+ readonly name: "MOCK_setInEuintKey";
42
+ readonly inputs: readonly [{
43
+ readonly name: "ctHash";
44
+ readonly type: "uint256";
45
+ readonly internalType: "uint256";
46
+ }, {
47
+ readonly name: "value";
48
+ readonly type: "uint256";
49
+ readonly internalType: "uint256";
50
+ }];
51
+ readonly outputs: readonly [];
52
+ readonly stateMutability: "nonpayable";
53
+ }, {
54
+ readonly type: "function";
55
+ readonly name: "acl";
56
+ readonly inputs: readonly [];
57
+ readonly outputs: readonly [{
58
+ readonly name: "";
59
+ readonly type: "address";
60
+ readonly internalType: "contract MockACL";
61
+ }];
62
+ readonly stateMutability: "view";
63
+ }, {
64
+ readonly type: "function";
65
+ readonly name: "aggregator";
66
+ readonly inputs: readonly [];
67
+ readonly outputs: readonly [{
68
+ readonly name: "";
69
+ readonly type: "address";
70
+ readonly internalType: "address";
71
+ }];
72
+ readonly stateMutability: "view";
73
+ }, {
74
+ readonly type: "function";
75
+ readonly name: "allow";
76
+ readonly inputs: readonly [{
77
+ readonly name: "ctHash";
78
+ readonly type: "uint256";
79
+ readonly internalType: "uint256";
80
+ }, {
81
+ readonly name: "account";
82
+ readonly type: "address";
83
+ readonly internalType: "address";
84
+ }];
85
+ readonly outputs: readonly [];
86
+ readonly stateMutability: "nonpayable";
87
+ }, {
88
+ readonly type: "function";
89
+ readonly name: "allowForDecryption";
90
+ readonly inputs: readonly [{
91
+ readonly name: "ctHash";
92
+ readonly type: "uint256";
93
+ readonly internalType: "uint256";
94
+ }];
95
+ readonly outputs: readonly [];
96
+ readonly stateMutability: "nonpayable";
97
+ }, {
98
+ readonly type: "function";
99
+ readonly name: "allowGlobal";
100
+ readonly inputs: readonly [{
101
+ readonly name: "ctHash";
102
+ readonly type: "uint256";
103
+ readonly internalType: "uint256";
104
+ }];
105
+ readonly outputs: readonly [];
106
+ readonly stateMutability: "nonpayable";
107
+ }, {
108
+ readonly type: "function";
109
+ readonly name: "allowTransient";
110
+ readonly inputs: readonly [{
111
+ readonly name: "ctHash";
112
+ readonly type: "uint256";
113
+ readonly internalType: "uint256";
114
+ }, {
115
+ readonly name: "account";
116
+ readonly type: "address";
117
+ readonly internalType: "address";
118
+ }];
119
+ readonly outputs: readonly [];
120
+ readonly stateMutability: "nonpayable";
121
+ }, {
122
+ readonly type: "function";
123
+ readonly name: "createDecryptTask";
124
+ readonly inputs: readonly [{
125
+ readonly name: "ctHash";
126
+ readonly type: "uint256";
127
+ readonly internalType: "uint256";
128
+ }, {
129
+ readonly name: "";
130
+ readonly type: "address";
131
+ readonly internalType: "address";
132
+ }];
133
+ readonly outputs: readonly [];
134
+ readonly stateMutability: "nonpayable";
135
+ }, {
136
+ readonly type: "function";
137
+ readonly name: "createRandomTask";
138
+ readonly inputs: readonly [{
139
+ readonly name: "returnType";
140
+ readonly type: "uint8";
141
+ readonly internalType: "uint8";
142
+ }, {
143
+ readonly name: "seed";
144
+ readonly type: "uint256";
145
+ readonly internalType: "uint256";
146
+ }, {
147
+ readonly name: "securityZone";
148
+ readonly type: "int32";
149
+ readonly internalType: "int32";
150
+ }];
151
+ readonly outputs: readonly [{
152
+ readonly name: "";
153
+ readonly type: "uint256";
154
+ readonly internalType: "uint256";
155
+ }];
156
+ readonly stateMutability: "nonpayable";
157
+ }, {
158
+ readonly type: "function";
159
+ readonly name: "createTask";
160
+ readonly inputs: readonly [{
161
+ readonly name: "returnType";
162
+ readonly type: "uint8";
163
+ readonly internalType: "uint8";
164
+ }, {
165
+ readonly name: "funcId";
166
+ readonly type: "uint8";
167
+ readonly internalType: "enum FunctionId";
168
+ }, {
169
+ readonly name: "encryptedHashes";
170
+ readonly type: "uint256[]";
171
+ readonly internalType: "uint256[]";
172
+ }, {
173
+ readonly name: "extraInputs";
174
+ readonly type: "uint256[]";
175
+ readonly internalType: "uint256[]";
176
+ }];
177
+ readonly outputs: readonly [{
178
+ readonly name: "";
179
+ readonly type: "uint256";
180
+ readonly internalType: "uint256";
181
+ }];
182
+ readonly stateMutability: "nonpayable";
183
+ }, {
184
+ readonly type: "function";
185
+ readonly name: "decryptResultSigner";
186
+ readonly inputs: readonly [];
187
+ readonly outputs: readonly [{
188
+ readonly name: "";
189
+ readonly type: "address";
190
+ readonly internalType: "address";
191
+ }];
192
+ readonly stateMutability: "view";
193
+ }, {
194
+ readonly type: "function";
195
+ readonly name: "exists";
196
+ readonly inputs: readonly [];
197
+ readonly outputs: readonly [{
198
+ readonly name: "";
199
+ readonly type: "bool";
200
+ readonly internalType: "bool";
201
+ }];
202
+ readonly stateMutability: "pure";
203
+ }, {
204
+ readonly type: "function";
205
+ readonly name: "getDecryptResult";
206
+ readonly inputs: readonly [{
207
+ readonly name: "ctHash";
208
+ readonly type: "uint256";
209
+ readonly internalType: "uint256";
210
+ }];
211
+ readonly outputs: readonly [{
212
+ readonly name: "";
213
+ readonly type: "uint256";
214
+ readonly internalType: "uint256";
215
+ }];
216
+ readonly stateMutability: "view";
217
+ }, {
218
+ readonly type: "function";
219
+ readonly name: "getDecryptResultSafe";
220
+ readonly inputs: readonly [{
221
+ readonly name: "ctHash";
222
+ readonly type: "uint256";
223
+ readonly internalType: "uint256";
224
+ }];
225
+ readonly outputs: readonly [{
226
+ readonly name: "result";
227
+ readonly type: "uint256";
228
+ readonly internalType: "uint256";
229
+ }, {
230
+ readonly name: "decrypted";
231
+ readonly type: "bool";
232
+ readonly internalType: "bool";
233
+ }];
234
+ readonly stateMutability: "view";
235
+ }, {
236
+ readonly type: "function";
237
+ readonly name: "handleDecryptResult";
238
+ readonly inputs: readonly [{
239
+ readonly name: "ctHash";
240
+ readonly type: "uint256";
241
+ readonly internalType: "uint256";
242
+ }, {
243
+ readonly name: "result";
244
+ readonly type: "uint256";
245
+ readonly internalType: "uint256";
246
+ }, {
247
+ readonly name: "";
248
+ readonly type: "address[]";
249
+ readonly internalType: "address[]";
250
+ }];
251
+ readonly outputs: readonly [];
252
+ readonly stateMutability: "nonpayable";
253
+ }, {
254
+ readonly type: "function";
255
+ readonly name: "handleError";
256
+ readonly inputs: readonly [{
257
+ readonly name: "ctHash";
258
+ readonly type: "uint256";
259
+ readonly internalType: "uint256";
260
+ }, {
261
+ readonly name: "operation";
262
+ readonly type: "string";
263
+ readonly internalType: "string";
264
+ }, {
265
+ readonly name: "errorMessage";
266
+ readonly type: "string";
267
+ readonly internalType: "string";
268
+ }];
269
+ readonly outputs: readonly [];
270
+ readonly stateMutability: "nonpayable";
271
+ }, {
272
+ readonly type: "function";
273
+ readonly name: "inMockStorage";
274
+ readonly inputs: readonly [{
275
+ readonly name: "";
276
+ readonly type: "uint256";
277
+ readonly internalType: "uint256";
278
+ }];
279
+ readonly outputs: readonly [{
280
+ readonly name: "";
281
+ readonly type: "bool";
282
+ readonly internalType: "bool";
283
+ }];
284
+ readonly stateMutability: "view";
285
+ }, {
286
+ readonly type: "function";
287
+ readonly name: "initialize";
288
+ readonly inputs: readonly [{
289
+ readonly name: "initialOwner";
290
+ readonly type: "address";
291
+ readonly internalType: "address";
292
+ }];
293
+ readonly outputs: readonly [];
294
+ readonly stateMutability: "nonpayable";
295
+ }, {
296
+ readonly type: "function";
297
+ readonly name: "isAllowed";
298
+ readonly inputs: readonly [{
299
+ readonly name: "ctHash";
300
+ readonly type: "uint256";
301
+ readonly internalType: "uint256";
302
+ }, {
303
+ readonly name: "account";
304
+ readonly type: "address";
305
+ readonly internalType: "address";
306
+ }];
307
+ readonly outputs: readonly [{
308
+ readonly name: "";
309
+ readonly type: "bool";
310
+ readonly internalType: "bool";
311
+ }];
312
+ readonly stateMutability: "view";
313
+ }, {
314
+ readonly type: "function";
315
+ readonly name: "isAllowedWithPermission";
316
+ readonly inputs: readonly [{
317
+ readonly name: "permission";
318
+ readonly type: "tuple";
319
+ readonly internalType: "struct Permission";
320
+ readonly components: readonly [{
321
+ readonly name: "issuer";
322
+ readonly type: "address";
323
+ readonly internalType: "address";
324
+ }, {
325
+ readonly name: "expiration";
326
+ readonly type: "uint64";
327
+ readonly internalType: "uint64";
328
+ }, {
329
+ readonly name: "recipient";
330
+ readonly type: "address";
331
+ readonly internalType: "address";
332
+ }, {
333
+ readonly name: "validatorId";
334
+ readonly type: "uint256";
335
+ readonly internalType: "uint256";
336
+ }, {
337
+ readonly name: "validatorContract";
338
+ readonly type: "address";
339
+ readonly internalType: "address";
340
+ }, {
341
+ readonly name: "sealingKey";
342
+ readonly type: "bytes32";
343
+ readonly internalType: "bytes32";
344
+ }, {
345
+ readonly name: "issuerSignature";
346
+ readonly type: "bytes";
347
+ readonly internalType: "bytes";
348
+ }, {
349
+ readonly name: "recipientSignature";
350
+ readonly type: "bytes";
351
+ readonly internalType: "bytes";
352
+ }];
353
+ }, {
354
+ readonly name: "handle";
355
+ readonly type: "uint256";
356
+ readonly internalType: "uint256";
357
+ }];
358
+ readonly outputs: readonly [{
359
+ readonly name: "";
360
+ readonly type: "bool";
361
+ readonly internalType: "bool";
362
+ }];
363
+ readonly stateMutability: "view";
364
+ }, {
365
+ readonly type: "function";
366
+ readonly name: "isInitialized";
367
+ readonly inputs: readonly [];
368
+ readonly outputs: readonly [{
369
+ readonly name: "";
370
+ readonly type: "bool";
371
+ readonly internalType: "bool";
372
+ }];
373
+ readonly stateMutability: "view";
374
+ }, {
375
+ readonly type: "function";
376
+ readonly name: "isPubliclyAllowed";
377
+ readonly inputs: readonly [{
378
+ readonly name: "ctHash";
379
+ readonly type: "uint256";
380
+ readonly internalType: "uint256";
381
+ }];
382
+ readonly outputs: readonly [{
383
+ readonly name: "";
384
+ readonly type: "bool";
385
+ readonly internalType: "bool";
386
+ }];
387
+ readonly stateMutability: "view";
388
+ }, {
389
+ readonly type: "function";
390
+ readonly name: "logOps";
391
+ readonly inputs: readonly [];
392
+ readonly outputs: readonly [{
393
+ readonly name: "";
394
+ readonly type: "bool";
395
+ readonly internalType: "bool";
396
+ }];
397
+ readonly stateMutability: "view";
398
+ }, {
399
+ readonly type: "function";
400
+ readonly name: "mockStorage";
401
+ readonly inputs: readonly [{
402
+ readonly name: "";
403
+ readonly type: "uint256";
404
+ readonly internalType: "uint256";
405
+ }];
406
+ readonly outputs: readonly [{
407
+ readonly name: "";
408
+ readonly type: "uint256";
409
+ readonly internalType: "uint256";
410
+ }];
411
+ readonly stateMutability: "view";
412
+ }, {
413
+ readonly type: "function";
414
+ readonly name: "publishDecryptResult";
415
+ readonly inputs: readonly [{
416
+ readonly name: "ctHash";
417
+ readonly type: "uint256";
418
+ readonly internalType: "uint256";
419
+ }, {
420
+ readonly name: "result";
421
+ readonly type: "uint256";
422
+ readonly internalType: "uint256";
423
+ }, {
424
+ readonly name: "signature";
425
+ readonly type: "bytes";
426
+ readonly internalType: "bytes";
427
+ }];
428
+ readonly outputs: readonly [];
429
+ readonly stateMutability: "nonpayable";
430
+ }, {
431
+ readonly type: "function";
432
+ readonly name: "publishDecryptResultBatch";
433
+ readonly inputs: readonly [{
434
+ readonly name: "ctHashes";
435
+ readonly type: "uint256[]";
436
+ readonly internalType: "uint256[]";
437
+ }, {
438
+ readonly name: "results";
439
+ readonly type: "uint256[]";
440
+ readonly internalType: "uint256[]";
441
+ }, {
442
+ readonly name: "signatures";
443
+ readonly type: "bytes[]";
444
+ readonly internalType: "bytes[]";
445
+ }];
446
+ readonly outputs: readonly [];
447
+ readonly stateMutability: "nonpayable";
448
+ }, {
449
+ readonly type: "function";
450
+ readonly name: "removeFirstLetter";
451
+ readonly inputs: readonly [{
452
+ readonly name: "str";
453
+ readonly type: "string";
454
+ readonly internalType: "string";
455
+ }];
456
+ readonly outputs: readonly [{
457
+ readonly name: "";
458
+ readonly type: "string";
459
+ readonly internalType: "string";
460
+ }];
461
+ readonly stateMutability: "pure";
462
+ }, {
463
+ readonly type: "function";
464
+ readonly name: "setACLContract";
465
+ readonly inputs: readonly [{
466
+ readonly name: "_aclAddress";
467
+ readonly type: "address";
468
+ readonly internalType: "address";
469
+ }];
470
+ readonly outputs: readonly [];
471
+ readonly stateMutability: "nonpayable";
472
+ }, {
473
+ readonly type: "function";
474
+ readonly name: "setAggregator";
475
+ readonly inputs: readonly [{
476
+ readonly name: "_aggregatorAddress";
477
+ readonly type: "address";
478
+ readonly internalType: "address";
479
+ }];
480
+ readonly outputs: readonly [];
481
+ readonly stateMutability: "nonpayable";
482
+ }, {
483
+ readonly type: "function";
484
+ readonly name: "setDecryptResultSigner";
485
+ readonly inputs: readonly [{
486
+ readonly name: "signer";
487
+ readonly type: "address";
488
+ readonly internalType: "address";
489
+ }];
490
+ readonly outputs: readonly [];
491
+ readonly stateMutability: "nonpayable";
492
+ }, {
493
+ readonly type: "function";
494
+ readonly name: "setLogOps";
495
+ readonly inputs: readonly [{
496
+ readonly name: "_logOps";
497
+ readonly type: "bool";
498
+ readonly internalType: "bool";
499
+ }];
500
+ readonly outputs: readonly [];
501
+ readonly stateMutability: "nonpayable";
502
+ }, {
503
+ readonly type: "function";
504
+ readonly name: "setSecurityZoneMax";
505
+ readonly inputs: readonly [{
506
+ readonly name: "securityZone";
507
+ readonly type: "int32";
508
+ readonly internalType: "int32";
509
+ }];
510
+ readonly outputs: readonly [];
511
+ readonly stateMutability: "nonpayable";
512
+ }, {
513
+ readonly type: "function";
514
+ readonly name: "setSecurityZoneMin";
515
+ readonly inputs: readonly [{
516
+ readonly name: "securityZone";
517
+ readonly type: "int32";
518
+ readonly internalType: "int32";
519
+ }];
520
+ readonly outputs: readonly [];
521
+ readonly stateMutability: "nonpayable";
522
+ }, {
523
+ readonly type: "function";
524
+ readonly name: "setSecurityZones";
525
+ readonly inputs: readonly [{
526
+ readonly name: "minSZ";
527
+ readonly type: "int32";
528
+ readonly internalType: "int32";
529
+ }, {
530
+ readonly name: "maxSZ";
531
+ readonly type: "int32";
532
+ readonly internalType: "int32";
533
+ }];
534
+ readonly outputs: readonly [];
535
+ readonly stateMutability: "nonpayable";
536
+ }, {
537
+ readonly type: "function";
538
+ readonly name: "setVerifierSigner";
539
+ readonly inputs: readonly [{
540
+ readonly name: "signer";
541
+ readonly type: "address";
542
+ readonly internalType: "address";
543
+ }];
544
+ readonly outputs: readonly [];
545
+ readonly stateMutability: "nonpayable";
546
+ }, {
547
+ readonly type: "function";
548
+ readonly name: "sliceString";
549
+ readonly inputs: readonly [{
550
+ readonly name: "str";
551
+ readonly type: "string";
552
+ readonly internalType: "string";
553
+ }, {
554
+ readonly name: "start";
555
+ readonly type: "uint256";
556
+ readonly internalType: "uint256";
557
+ }, {
558
+ readonly name: "length";
559
+ readonly type: "uint256";
560
+ readonly internalType: "uint256";
561
+ }];
562
+ readonly outputs: readonly [{
563
+ readonly name: "";
564
+ readonly type: "string";
565
+ readonly internalType: "string";
566
+ }];
567
+ readonly stateMutability: "pure";
568
+ }, {
569
+ readonly type: "function";
570
+ readonly name: "verifyDecryptResult";
571
+ readonly inputs: readonly [{
572
+ readonly name: "ctHash";
573
+ readonly type: "uint256";
574
+ readonly internalType: "uint256";
575
+ }, {
576
+ readonly name: "result";
577
+ readonly type: "uint256";
578
+ readonly internalType: "uint256";
579
+ }, {
580
+ readonly name: "signature";
581
+ readonly type: "bytes";
582
+ readonly internalType: "bytes";
583
+ }];
584
+ readonly outputs: readonly [{
585
+ readonly name: "";
586
+ readonly type: "bool";
587
+ readonly internalType: "bool";
588
+ }];
589
+ readonly stateMutability: "view";
590
+ }, {
591
+ readonly type: "function";
592
+ readonly name: "verifyDecryptResultBatch";
593
+ readonly inputs: readonly [{
594
+ readonly name: "ctHashes";
595
+ readonly type: "uint256[]";
596
+ readonly internalType: "uint256[]";
597
+ }, {
598
+ readonly name: "results";
599
+ readonly type: "uint256[]";
600
+ readonly internalType: "uint256[]";
601
+ }, {
602
+ readonly name: "signatures";
603
+ readonly type: "bytes[]";
604
+ readonly internalType: "bytes[]";
605
+ }];
606
+ readonly outputs: readonly [{
607
+ readonly name: "";
608
+ readonly type: "bool";
609
+ readonly internalType: "bool";
610
+ }];
611
+ readonly stateMutability: "view";
612
+ }, {
613
+ readonly type: "function";
614
+ readonly name: "verifyDecryptResultBatchSafe";
615
+ readonly inputs: readonly [{
616
+ readonly name: "ctHashes";
617
+ readonly type: "uint256[]";
618
+ readonly internalType: "uint256[]";
619
+ }, {
620
+ readonly name: "results";
621
+ readonly type: "uint256[]";
622
+ readonly internalType: "uint256[]";
623
+ }, {
624
+ readonly name: "signatures";
625
+ readonly type: "bytes[]";
626
+ readonly internalType: "bytes[]";
627
+ }];
628
+ readonly outputs: readonly [{
629
+ readonly name: "";
630
+ readonly type: "bool[]";
631
+ readonly internalType: "bool[]";
632
+ }];
633
+ readonly stateMutability: "view";
634
+ }, {
635
+ readonly type: "function";
636
+ readonly name: "verifyDecryptResultSafe";
637
+ readonly inputs: readonly [{
638
+ readonly name: "ctHash";
639
+ readonly type: "uint256";
640
+ readonly internalType: "uint256";
641
+ }, {
642
+ readonly name: "result";
643
+ readonly type: "uint256";
644
+ readonly internalType: "uint256";
645
+ }, {
646
+ readonly name: "signature";
647
+ readonly type: "bytes";
648
+ readonly internalType: "bytes";
649
+ }];
650
+ readonly outputs: readonly [{
651
+ readonly name: "";
652
+ readonly type: "bool";
653
+ readonly internalType: "bool";
654
+ }];
655
+ readonly stateMutability: "view";
656
+ }, {
657
+ readonly type: "function";
658
+ readonly name: "verifyInput";
659
+ readonly inputs: readonly [{
660
+ readonly name: "input";
661
+ readonly type: "tuple";
662
+ readonly internalType: "struct EncryptedInput";
663
+ readonly components: readonly [{
664
+ readonly name: "ctHash";
665
+ readonly type: "uint256";
666
+ readonly internalType: "uint256";
667
+ }, {
668
+ readonly name: "securityZone";
669
+ readonly type: "uint8";
670
+ readonly internalType: "uint8";
671
+ }, {
672
+ readonly name: "utype";
673
+ readonly type: "uint8";
674
+ readonly internalType: "uint8";
675
+ }, {
676
+ readonly name: "signature";
677
+ readonly type: "bytes";
678
+ readonly internalType: "bytes";
679
+ }];
680
+ }, {
681
+ readonly name: "sender";
682
+ readonly type: "address";
683
+ readonly internalType: "address";
684
+ }];
685
+ readonly outputs: readonly [{
686
+ readonly name: "";
687
+ readonly type: "uint256";
688
+ readonly internalType: "uint256";
689
+ }];
690
+ readonly stateMutability: "nonpayable";
691
+ }, {
692
+ readonly type: "event";
693
+ readonly name: "DecryptionResult";
694
+ readonly inputs: readonly [{
695
+ readonly name: "ctHash";
696
+ readonly type: "uint256";
697
+ readonly indexed: false;
698
+ readonly internalType: "uint256";
699
+ }, {
700
+ readonly name: "result";
701
+ readonly type: "uint256";
702
+ readonly indexed: false;
703
+ readonly internalType: "uint256";
704
+ }, {
705
+ readonly name: "requestor";
706
+ readonly type: "address";
707
+ readonly indexed: true;
708
+ readonly internalType: "address";
709
+ }];
710
+ readonly anonymous: false;
711
+ }, {
712
+ readonly type: "event";
713
+ readonly name: "ProtocolNotification";
714
+ readonly inputs: readonly [{
715
+ readonly name: "ctHash";
716
+ readonly type: "uint256";
717
+ readonly indexed: false;
718
+ readonly internalType: "uint256";
719
+ }, {
720
+ readonly name: "operation";
721
+ readonly type: "string";
722
+ readonly indexed: false;
723
+ readonly internalType: "string";
724
+ }, {
725
+ readonly name: "errorMessage";
726
+ readonly type: "string";
727
+ readonly indexed: false;
728
+ readonly internalType: "string";
729
+ }];
730
+ readonly anonymous: false;
731
+ }, {
732
+ readonly type: "event";
733
+ readonly name: "TaskCreated";
734
+ readonly inputs: readonly [{
735
+ readonly name: "ctHash";
736
+ readonly type: "uint256";
737
+ readonly indexed: false;
738
+ readonly internalType: "uint256";
739
+ }, {
740
+ readonly name: "operation";
741
+ readonly type: "string";
742
+ readonly indexed: false;
743
+ readonly internalType: "string";
744
+ }, {
745
+ readonly name: "input1";
746
+ readonly type: "uint256";
747
+ readonly indexed: false;
748
+ readonly internalType: "uint256";
749
+ }, {
750
+ readonly name: "input2";
751
+ readonly type: "uint256";
752
+ readonly indexed: false;
753
+ readonly internalType: "uint256";
754
+ }, {
755
+ readonly name: "input3";
756
+ readonly type: "uint256";
757
+ readonly indexed: false;
758
+ readonly internalType: "uint256";
759
+ }];
760
+ readonly anonymous: false;
761
+ }, {
762
+ readonly type: "error";
763
+ readonly name: "ACLNotAllowed";
764
+ readonly inputs: readonly [{
765
+ readonly name: "handle";
766
+ readonly type: "uint256";
767
+ readonly internalType: "uint256";
768
+ }, {
769
+ readonly name: "account";
770
+ readonly type: "address";
771
+ readonly internalType: "address";
772
+ }];
773
+ }, {
774
+ readonly type: "error";
775
+ readonly name: "DecryptionResultNotReady";
776
+ readonly inputs: readonly [{
777
+ readonly name: "ctHash";
778
+ readonly type: "uint256";
779
+ readonly internalType: "uint256";
780
+ }];
781
+ }, {
782
+ readonly type: "error";
783
+ readonly name: "ECDSAInvalidSignature";
784
+ readonly inputs: readonly [];
785
+ }, {
786
+ readonly type: "error";
787
+ readonly name: "ECDSAInvalidSignatureLength";
788
+ readonly inputs: readonly [{
789
+ readonly name: "length";
790
+ readonly type: "uint256";
791
+ readonly internalType: "uint256";
792
+ }];
793
+ }, {
794
+ readonly type: "error";
795
+ readonly name: "ECDSAInvalidSignatureS";
796
+ readonly inputs: readonly [{
797
+ readonly name: "s";
798
+ readonly type: "bytes32";
799
+ readonly internalType: "bytes32";
800
+ }];
801
+ }, {
802
+ readonly type: "error";
803
+ readonly name: "InputNotInMockStorage";
804
+ readonly inputs: readonly [{
805
+ readonly name: "ctHash";
806
+ readonly type: "uint256";
807
+ readonly internalType: "uint256";
808
+ }];
809
+ }, {
810
+ readonly type: "error";
811
+ readonly name: "InvalidAddress";
812
+ readonly inputs: readonly [];
813
+ }, {
814
+ readonly type: "error";
815
+ readonly name: "InvalidInputForFunction";
816
+ readonly inputs: readonly [{
817
+ readonly name: "functionName";
818
+ readonly type: "string";
819
+ readonly internalType: "string";
820
+ }, {
821
+ readonly name: "inputType";
822
+ readonly type: "uint8";
823
+ readonly internalType: "uint8";
824
+ }];
825
+ }, {
826
+ readonly type: "error";
827
+ readonly name: "InvalidInputType";
828
+ readonly inputs: readonly [{
829
+ readonly name: "actual";
830
+ readonly type: "uint8";
831
+ readonly internalType: "uint8";
832
+ }, {
833
+ readonly name: "expected";
834
+ readonly type: "uint8";
835
+ readonly internalType: "uint8";
836
+ }];
837
+ }, {
838
+ readonly type: "error";
839
+ readonly name: "InvalidInputsAmount";
840
+ readonly inputs: readonly [{
841
+ readonly name: "operation";
842
+ readonly type: "string";
843
+ readonly internalType: "string";
844
+ }, {
845
+ readonly name: "got";
846
+ readonly type: "uint256";
847
+ readonly internalType: "uint256";
848
+ }, {
849
+ readonly name: "expected";
850
+ readonly type: "uint256";
851
+ readonly internalType: "uint256";
852
+ }];
853
+ }, {
854
+ readonly type: "error";
855
+ readonly name: "InvalidOperationInputs";
856
+ readonly inputs: readonly [{
857
+ readonly name: "operation";
858
+ readonly type: "string";
859
+ readonly internalType: "string";
860
+ }];
861
+ }, {
862
+ readonly type: "error";
863
+ readonly name: "InvalidSecurityZone";
864
+ readonly inputs: readonly [{
865
+ readonly name: "zone";
866
+ readonly type: "int32";
867
+ readonly internalType: "int32";
868
+ }, {
869
+ readonly name: "min";
870
+ readonly type: "int32";
871
+ readonly internalType: "int32";
872
+ }, {
873
+ readonly name: "max";
874
+ readonly type: "int32";
875
+ readonly internalType: "int32";
876
+ }];
877
+ }, {
878
+ readonly type: "error";
879
+ readonly name: "InvalidSignature";
880
+ readonly inputs: readonly [];
881
+ }, {
882
+ readonly type: "error";
883
+ readonly name: "InvalidSigner";
884
+ readonly inputs: readonly [{
885
+ readonly name: "signer";
886
+ readonly type: "address";
887
+ readonly internalType: "address";
888
+ }, {
889
+ readonly name: "expectedSigner";
890
+ readonly type: "address";
891
+ readonly internalType: "address";
892
+ }];
893
+ }, {
894
+ readonly type: "error";
895
+ readonly name: "InvalidThreeInputOperation";
896
+ readonly inputs: readonly [{
897
+ readonly name: "operation";
898
+ readonly type: "string";
899
+ readonly internalType: "string";
900
+ }];
901
+ }, {
902
+ readonly type: "error";
903
+ readonly name: "InvalidTwoInputOperation";
904
+ readonly inputs: readonly [{
905
+ readonly name: "operation";
906
+ readonly type: "string";
907
+ readonly internalType: "string";
908
+ }];
909
+ }, {
910
+ readonly type: "error";
911
+ readonly name: "InvalidTypeOrSecurityZone";
912
+ readonly inputs: readonly [{
913
+ readonly name: "operation";
914
+ readonly type: "string";
915
+ readonly internalType: "string";
916
+ }];
917
+ }, {
918
+ readonly type: "error";
919
+ readonly name: "InvalidUnaryOperation";
920
+ readonly inputs: readonly [{
921
+ readonly name: "operation";
922
+ readonly type: "string";
923
+ readonly internalType: "string";
924
+ }];
925
+ }, {
926
+ readonly type: "error";
927
+ readonly name: "NotImplemented";
928
+ readonly inputs: readonly [];
929
+ }, {
930
+ readonly type: "error";
931
+ readonly name: "OnlyAggregatorAllowed";
932
+ readonly inputs: readonly [{
933
+ readonly name: "caller";
934
+ readonly type: "address";
935
+ readonly internalType: "address";
936
+ }];
937
+ }, {
938
+ readonly type: "error";
939
+ readonly name: "OnlyOwnerAllowed";
940
+ readonly inputs: readonly [{
941
+ readonly name: "caller";
942
+ readonly type: "address";
943
+ readonly internalType: "address";
944
+ }];
945
+ }, {
946
+ readonly type: "error";
947
+ readonly name: "RandomFunctionNotSupported";
948
+ readonly inputs: readonly [];
949
+ }, {
950
+ readonly type: "error";
951
+ readonly name: "StringsInsufficientHexLength";
952
+ readonly inputs: readonly [{
953
+ readonly name: "value";
954
+ readonly type: "uint256";
955
+ readonly internalType: "uint256";
956
+ }, {
957
+ readonly name: "length";
958
+ readonly type: "uint256";
959
+ readonly internalType: "uint256";
960
+ }];
961
+ }, {
962
+ readonly type: "error";
963
+ readonly name: "TooManyInputs";
964
+ readonly inputs: readonly [{
965
+ readonly name: "operation";
966
+ readonly type: "string";
967
+ readonly internalType: "string";
968
+ }, {
969
+ readonly name: "got";
970
+ readonly type: "uint256";
971
+ readonly internalType: "uint256";
972
+ }, {
973
+ readonly name: "maxAllowed";
974
+ readonly type: "uint256";
975
+ readonly internalType: "uint256";
976
+ }];
977
+ }];
76
978
  };
77
979
 
78
980
  declare const MockACLArtifact: {
79
- contractName: string;
80
- isFixed: false;
81
- abi: ({
82
- type: string;
83
- inputs: never[];
84
- stateMutability: string;
85
- name?: undefined;
86
- outputs?: undefined;
87
- anonymous?: undefined;
88
- } | {
89
- type: string;
90
- name: string;
91
- inputs: ({
92
- name: string;
93
- type: string;
94
- internalType: string;
95
- components: {
96
- name: string;
97
- type: string;
98
- internalType: string;
99
- }[];
100
- } | {
101
- name: string;
102
- type: string;
103
- internalType: string;
104
- components?: undefined;
105
- })[];
106
- outputs: {
107
- name: string;
108
- type: string;
109
- internalType: string;
110
- }[];
111
- stateMutability: string;
112
- anonymous?: undefined;
113
- } | {
114
- type: string;
115
- name: string;
116
- inputs: {
117
- name: string;
118
- type: string;
119
- indexed: boolean;
120
- internalType: string;
121
- }[];
122
- anonymous: boolean;
123
- stateMutability?: undefined;
124
- outputs?: undefined;
125
- } | {
126
- type: string;
127
- name: string;
128
- inputs: {
129
- name: string;
130
- type: string;
131
- internalType: string;
132
- }[];
133
- stateMutability?: undefined;
134
- outputs?: undefined;
135
- anonymous?: undefined;
136
- })[];
137
- bytecode: string;
981
+ readonly contractName: "MockACL";
982
+ readonly isFixed: false;
983
+ readonly abi: readonly [{
984
+ readonly type: "constructor";
985
+ readonly inputs: readonly [];
986
+ readonly stateMutability: "nonpayable";
987
+ }, {
988
+ readonly type: "function";
989
+ readonly name: "TASK_MANAGER_ADDRESS_";
990
+ readonly inputs: readonly [];
991
+ readonly outputs: readonly [{
992
+ readonly name: "";
993
+ readonly type: "address";
994
+ readonly internalType: "address";
995
+ }];
996
+ readonly stateMutability: "view";
997
+ }, {
998
+ readonly type: "function";
999
+ readonly name: "allow";
1000
+ readonly inputs: readonly [{
1001
+ readonly name: "handle";
1002
+ readonly type: "uint256";
1003
+ readonly internalType: "uint256";
1004
+ }, {
1005
+ readonly name: "account";
1006
+ readonly type: "address";
1007
+ readonly internalType: "address";
1008
+ }, {
1009
+ readonly name: "requester";
1010
+ readonly type: "address";
1011
+ readonly internalType: "address";
1012
+ }];
1013
+ readonly outputs: readonly [];
1014
+ readonly stateMutability: "nonpayable";
1015
+ }, {
1016
+ readonly type: "function";
1017
+ readonly name: "allowForDecryption";
1018
+ readonly inputs: readonly [{
1019
+ readonly name: "handlesList";
1020
+ readonly type: "uint256[]";
1021
+ readonly internalType: "uint256[]";
1022
+ }, {
1023
+ readonly name: "requester";
1024
+ readonly type: "address";
1025
+ readonly internalType: "address";
1026
+ }];
1027
+ readonly outputs: readonly [];
1028
+ readonly stateMutability: "nonpayable";
1029
+ }, {
1030
+ readonly type: "function";
1031
+ readonly name: "allowGlobal";
1032
+ readonly inputs: readonly [{
1033
+ readonly name: "handle";
1034
+ readonly type: "uint256";
1035
+ readonly internalType: "uint256";
1036
+ }, {
1037
+ readonly name: "requester";
1038
+ readonly type: "address";
1039
+ readonly internalType: "address";
1040
+ }];
1041
+ readonly outputs: readonly [];
1042
+ readonly stateMutability: "nonpayable";
1043
+ }, {
1044
+ readonly type: "function";
1045
+ readonly name: "allowTransient";
1046
+ readonly inputs: readonly [{
1047
+ readonly name: "handle";
1048
+ readonly type: "uint256";
1049
+ readonly internalType: "uint256";
1050
+ }, {
1051
+ readonly name: "account";
1052
+ readonly type: "address";
1053
+ readonly internalType: "address";
1054
+ }, {
1055
+ readonly name: "requester";
1056
+ readonly type: "address";
1057
+ readonly internalType: "address";
1058
+ }];
1059
+ readonly outputs: readonly [];
1060
+ readonly stateMutability: "nonpayable";
1061
+ }, {
1062
+ readonly type: "function";
1063
+ readonly name: "allowedOnBehalf";
1064
+ readonly inputs: readonly [{
1065
+ readonly name: "delegatee";
1066
+ readonly type: "address";
1067
+ readonly internalType: "address";
1068
+ }, {
1069
+ readonly name: "handle";
1070
+ readonly type: "uint256";
1071
+ readonly internalType: "uint256";
1072
+ }, {
1073
+ readonly name: "contractAddress";
1074
+ readonly type: "address";
1075
+ readonly internalType: "address";
1076
+ }, {
1077
+ readonly name: "account";
1078
+ readonly type: "address";
1079
+ readonly internalType: "address";
1080
+ }];
1081
+ readonly outputs: readonly [{
1082
+ readonly name: "";
1083
+ readonly type: "bool";
1084
+ readonly internalType: "bool";
1085
+ }];
1086
+ readonly stateMutability: "view";
1087
+ }, {
1088
+ readonly type: "function";
1089
+ readonly name: "allowedTransient";
1090
+ readonly inputs: readonly [{
1091
+ readonly name: "handle";
1092
+ readonly type: "uint256";
1093
+ readonly internalType: "uint256";
1094
+ }, {
1095
+ readonly name: "account";
1096
+ readonly type: "address";
1097
+ readonly internalType: "address";
1098
+ }];
1099
+ readonly outputs: readonly [{
1100
+ readonly name: "";
1101
+ readonly type: "bool";
1102
+ readonly internalType: "bool";
1103
+ }];
1104
+ readonly stateMutability: "view";
1105
+ }, {
1106
+ readonly type: "function";
1107
+ readonly name: "checkPermitValidity";
1108
+ readonly inputs: readonly [{
1109
+ readonly name: "permission";
1110
+ readonly type: "tuple";
1111
+ readonly internalType: "struct Permission";
1112
+ readonly components: readonly [{
1113
+ readonly name: "issuer";
1114
+ readonly type: "address";
1115
+ readonly internalType: "address";
1116
+ }, {
1117
+ readonly name: "expiration";
1118
+ readonly type: "uint64";
1119
+ readonly internalType: "uint64";
1120
+ }, {
1121
+ readonly name: "recipient";
1122
+ readonly type: "address";
1123
+ readonly internalType: "address";
1124
+ }, {
1125
+ readonly name: "validatorId";
1126
+ readonly type: "uint256";
1127
+ readonly internalType: "uint256";
1128
+ }, {
1129
+ readonly name: "validatorContract";
1130
+ readonly type: "address";
1131
+ readonly internalType: "address";
1132
+ }, {
1133
+ readonly name: "sealingKey";
1134
+ readonly type: "bytes32";
1135
+ readonly internalType: "bytes32";
1136
+ }, {
1137
+ readonly name: "issuerSignature";
1138
+ readonly type: "bytes";
1139
+ readonly internalType: "bytes";
1140
+ }, {
1141
+ readonly name: "recipientSignature";
1142
+ readonly type: "bytes";
1143
+ readonly internalType: "bytes";
1144
+ }];
1145
+ }];
1146
+ readonly outputs: readonly [{
1147
+ readonly name: "";
1148
+ readonly type: "bool";
1149
+ readonly internalType: "bool";
1150
+ }];
1151
+ readonly stateMutability: "view";
1152
+ }, {
1153
+ readonly type: "function";
1154
+ readonly name: "cleanTransientStorage";
1155
+ readonly inputs: readonly [];
1156
+ readonly outputs: readonly [];
1157
+ readonly stateMutability: "nonpayable";
1158
+ }, {
1159
+ readonly type: "function";
1160
+ readonly name: "delegateAccount";
1161
+ readonly inputs: readonly [{
1162
+ readonly name: "delegatee";
1163
+ readonly type: "address";
1164
+ readonly internalType: "address";
1165
+ }, {
1166
+ readonly name: "delegateeContract";
1167
+ readonly type: "address";
1168
+ readonly internalType: "address";
1169
+ }];
1170
+ readonly outputs: readonly [];
1171
+ readonly stateMutability: "nonpayable";
1172
+ }, {
1173
+ readonly type: "function";
1174
+ readonly name: "eip712Domain";
1175
+ readonly inputs: readonly [];
1176
+ readonly outputs: readonly [{
1177
+ readonly name: "fields";
1178
+ readonly type: "bytes1";
1179
+ readonly internalType: "bytes1";
1180
+ }, {
1181
+ readonly name: "name";
1182
+ readonly type: "string";
1183
+ readonly internalType: "string";
1184
+ }, {
1185
+ readonly name: "version";
1186
+ readonly type: "string";
1187
+ readonly internalType: "string";
1188
+ }, {
1189
+ readonly name: "chainId";
1190
+ readonly type: "uint256";
1191
+ readonly internalType: "uint256";
1192
+ }, {
1193
+ readonly name: "verifyingContract";
1194
+ readonly type: "address";
1195
+ readonly internalType: "address";
1196
+ }, {
1197
+ readonly name: "salt";
1198
+ readonly type: "bytes32";
1199
+ readonly internalType: "bytes32";
1200
+ }, {
1201
+ readonly name: "extensions";
1202
+ readonly type: "uint256[]";
1203
+ readonly internalType: "uint256[]";
1204
+ }];
1205
+ readonly stateMutability: "view";
1206
+ }, {
1207
+ readonly type: "function";
1208
+ readonly name: "exists";
1209
+ readonly inputs: readonly [];
1210
+ readonly outputs: readonly [{
1211
+ readonly name: "";
1212
+ readonly type: "bool";
1213
+ readonly internalType: "bool";
1214
+ }];
1215
+ readonly stateMutability: "pure";
1216
+ }, {
1217
+ readonly type: "function";
1218
+ readonly name: "getTaskManagerAddress";
1219
+ readonly inputs: readonly [];
1220
+ readonly outputs: readonly [{
1221
+ readonly name: "";
1222
+ readonly type: "address";
1223
+ readonly internalType: "address";
1224
+ }];
1225
+ readonly stateMutability: "view";
1226
+ }, {
1227
+ readonly type: "function";
1228
+ readonly name: "getVersion";
1229
+ readonly inputs: readonly [];
1230
+ readonly outputs: readonly [{
1231
+ readonly name: "";
1232
+ readonly type: "string";
1233
+ readonly internalType: "string";
1234
+ }];
1235
+ readonly stateMutability: "pure";
1236
+ }, {
1237
+ readonly type: "function";
1238
+ readonly name: "globalAllowed";
1239
+ readonly inputs: readonly [{
1240
+ readonly name: "handle";
1241
+ readonly type: "uint256";
1242
+ readonly internalType: "uint256";
1243
+ }];
1244
+ readonly outputs: readonly [{
1245
+ readonly name: "";
1246
+ readonly type: "bool";
1247
+ readonly internalType: "bool";
1248
+ }];
1249
+ readonly stateMutability: "view";
1250
+ }, {
1251
+ readonly type: "function";
1252
+ readonly name: "hashTypedDataV4";
1253
+ readonly inputs: readonly [{
1254
+ readonly name: "structHash";
1255
+ readonly type: "bytes32";
1256
+ readonly internalType: "bytes32";
1257
+ }];
1258
+ readonly outputs: readonly [{
1259
+ readonly name: "";
1260
+ readonly type: "bytes32";
1261
+ readonly internalType: "bytes32";
1262
+ }];
1263
+ readonly stateMutability: "view";
1264
+ }, {
1265
+ readonly type: "function";
1266
+ readonly name: "isAllowed";
1267
+ readonly inputs: readonly [{
1268
+ readonly name: "handle";
1269
+ readonly type: "uint256";
1270
+ readonly internalType: "uint256";
1271
+ }, {
1272
+ readonly name: "account";
1273
+ readonly type: "address";
1274
+ readonly internalType: "address";
1275
+ }];
1276
+ readonly outputs: readonly [{
1277
+ readonly name: "";
1278
+ readonly type: "bool";
1279
+ readonly internalType: "bool";
1280
+ }];
1281
+ readonly stateMutability: "view";
1282
+ }, {
1283
+ readonly type: "function";
1284
+ readonly name: "isAllowedForDecryption";
1285
+ readonly inputs: readonly [{
1286
+ readonly name: "handle";
1287
+ readonly type: "uint256";
1288
+ readonly internalType: "uint256";
1289
+ }];
1290
+ readonly outputs: readonly [{
1291
+ readonly name: "";
1292
+ readonly type: "bool";
1293
+ readonly internalType: "bool";
1294
+ }];
1295
+ readonly stateMutability: "view";
1296
+ }, {
1297
+ readonly type: "function";
1298
+ readonly name: "isAllowedWithPermission";
1299
+ readonly inputs: readonly [{
1300
+ readonly name: "permission";
1301
+ readonly type: "tuple";
1302
+ readonly internalType: "struct Permission";
1303
+ readonly components: readonly [{
1304
+ readonly name: "issuer";
1305
+ readonly type: "address";
1306
+ readonly internalType: "address";
1307
+ }, {
1308
+ readonly name: "expiration";
1309
+ readonly type: "uint64";
1310
+ readonly internalType: "uint64";
1311
+ }, {
1312
+ readonly name: "recipient";
1313
+ readonly type: "address";
1314
+ readonly internalType: "address";
1315
+ }, {
1316
+ readonly name: "validatorId";
1317
+ readonly type: "uint256";
1318
+ readonly internalType: "uint256";
1319
+ }, {
1320
+ readonly name: "validatorContract";
1321
+ readonly type: "address";
1322
+ readonly internalType: "address";
1323
+ }, {
1324
+ readonly name: "sealingKey";
1325
+ readonly type: "bytes32";
1326
+ readonly internalType: "bytes32";
1327
+ }, {
1328
+ readonly name: "issuerSignature";
1329
+ readonly type: "bytes";
1330
+ readonly internalType: "bytes";
1331
+ }, {
1332
+ readonly name: "recipientSignature";
1333
+ readonly type: "bytes";
1334
+ readonly internalType: "bytes";
1335
+ }];
1336
+ }, {
1337
+ readonly name: "handle";
1338
+ readonly type: "uint256";
1339
+ readonly internalType: "uint256";
1340
+ }];
1341
+ readonly outputs: readonly [{
1342
+ readonly name: "";
1343
+ readonly type: "bool";
1344
+ readonly internalType: "bool";
1345
+ }];
1346
+ readonly stateMutability: "view";
1347
+ }, {
1348
+ readonly type: "function";
1349
+ readonly name: "persistAllowed";
1350
+ readonly inputs: readonly [{
1351
+ readonly name: "handle";
1352
+ readonly type: "uint256";
1353
+ readonly internalType: "uint256";
1354
+ }, {
1355
+ readonly name: "account";
1356
+ readonly type: "address";
1357
+ readonly internalType: "address";
1358
+ }];
1359
+ readonly outputs: readonly [{
1360
+ readonly name: "";
1361
+ readonly type: "bool";
1362
+ readonly internalType: "bool";
1363
+ }];
1364
+ readonly stateMutability: "view";
1365
+ }, {
1366
+ readonly type: "event";
1367
+ readonly name: "AllowedForDecryption";
1368
+ readonly inputs: readonly [{
1369
+ readonly name: "handlesList";
1370
+ readonly type: "uint256[]";
1371
+ readonly indexed: false;
1372
+ readonly internalType: "uint256[]";
1373
+ }];
1374
+ readonly anonymous: false;
1375
+ }, {
1376
+ readonly type: "event";
1377
+ readonly name: "EIP712DomainChanged";
1378
+ readonly inputs: readonly [];
1379
+ readonly anonymous: false;
1380
+ }, {
1381
+ readonly type: "event";
1382
+ readonly name: "NewDelegation";
1383
+ readonly inputs: readonly [{
1384
+ readonly name: "sender";
1385
+ readonly type: "address";
1386
+ readonly indexed: true;
1387
+ readonly internalType: "address";
1388
+ }, {
1389
+ readonly name: "delegatee";
1390
+ readonly type: "address";
1391
+ readonly indexed: true;
1392
+ readonly internalType: "address";
1393
+ }, {
1394
+ readonly name: "contractAddress";
1395
+ readonly type: "address";
1396
+ readonly indexed: true;
1397
+ readonly internalType: "address";
1398
+ }];
1399
+ readonly anonymous: false;
1400
+ }, {
1401
+ readonly type: "error";
1402
+ readonly name: "AlreadyDelegated";
1403
+ readonly inputs: readonly [];
1404
+ }, {
1405
+ readonly type: "error";
1406
+ readonly name: "DirectAllowForbidden";
1407
+ readonly inputs: readonly [{
1408
+ readonly name: "sender";
1409
+ readonly type: "address";
1410
+ readonly internalType: "address";
1411
+ }];
1412
+ }, {
1413
+ readonly type: "error";
1414
+ readonly name: "InvalidShortString";
1415
+ readonly inputs: readonly [];
1416
+ }, {
1417
+ readonly type: "error";
1418
+ readonly name: "PermissionInvalid_Disabled";
1419
+ readonly inputs: readonly [];
1420
+ }, {
1421
+ readonly type: "error";
1422
+ readonly name: "PermissionInvalid_Expired";
1423
+ readonly inputs: readonly [];
1424
+ }, {
1425
+ readonly type: "error";
1426
+ readonly name: "PermissionInvalid_IssuerSignature";
1427
+ readonly inputs: readonly [];
1428
+ }, {
1429
+ readonly type: "error";
1430
+ readonly name: "PermissionInvalid_RecipientSignature";
1431
+ readonly inputs: readonly [];
1432
+ }, {
1433
+ readonly type: "error";
1434
+ readonly name: "SenderCannotBeDelegateeAddress";
1435
+ readonly inputs: readonly [];
1436
+ }, {
1437
+ readonly type: "error";
1438
+ readonly name: "SenderNotAllowed";
1439
+ readonly inputs: readonly [{
1440
+ readonly name: "sender";
1441
+ readonly type: "address";
1442
+ readonly internalType: "address";
1443
+ }];
1444
+ }, {
1445
+ readonly type: "error";
1446
+ readonly name: "StringTooLong";
1447
+ readonly inputs: readonly [{
1448
+ readonly name: "str";
1449
+ readonly type: "string";
1450
+ readonly internalType: "string";
1451
+ }];
1452
+ }];
138
1453
  };
139
1454
 
140
1455
  declare const MockZkVerifierArtifact: {
141
- contractName: string;
142
- isFixed: true;
143
- fixedAddress: string;
144
- abi: ({
145
- type: string;
146
- name: string;
147
- inputs: {
148
- name: string;
149
- type: string;
150
- internalType: string;
151
- }[];
152
- outputs: {
153
- name: string;
154
- type: string;
155
- internalType: string;
156
- components: {
157
- name: string;
158
- type: string;
159
- internalType: string;
160
- }[];
161
- }[];
162
- stateMutability: string;
163
- } | {
164
- type: string;
165
- name: string;
166
- inputs: {
167
- name: string;
168
- type: string;
169
- internalType: string;
170
- }[];
171
- outputs: {
172
- name: string;
173
- type: string;
174
- internalType: string;
175
- }[];
176
- stateMutability: string;
177
- } | {
178
- type: string;
179
- name: string;
180
- inputs: never[];
181
- outputs?: undefined;
182
- stateMutability?: undefined;
183
- })[];
184
- deployedBytecode: string;
1456
+ readonly contractName: "MockZkVerifier";
1457
+ readonly isFixed: true;
1458
+ readonly fixedAddress: "0x0000000000000000000000000000000000005001";
1459
+ readonly abi: readonly [{
1460
+ readonly type: "function";
1461
+ readonly name: "exists";
1462
+ readonly inputs: readonly [];
1463
+ readonly outputs: readonly [{
1464
+ readonly name: "";
1465
+ readonly type: "bool";
1466
+ readonly internalType: "bool";
1467
+ }];
1468
+ readonly stateMutability: "pure";
1469
+ }, {
1470
+ readonly type: "function";
1471
+ readonly name: "insertCtHash";
1472
+ readonly inputs: readonly [{
1473
+ readonly name: "ctHash";
1474
+ readonly type: "uint256";
1475
+ readonly internalType: "uint256";
1476
+ }, {
1477
+ readonly name: "value";
1478
+ readonly type: "uint256";
1479
+ readonly internalType: "uint256";
1480
+ }];
1481
+ readonly outputs: readonly [];
1482
+ readonly stateMutability: "nonpayable";
1483
+ }, {
1484
+ readonly type: "function";
1485
+ readonly name: "insertPackedCtHashes";
1486
+ readonly inputs: readonly [{
1487
+ readonly name: "ctHashes";
1488
+ readonly type: "uint256[]";
1489
+ readonly internalType: "uint256[]";
1490
+ }, {
1491
+ readonly name: "values";
1492
+ readonly type: "uint256[]";
1493
+ readonly internalType: "uint256[]";
1494
+ }];
1495
+ readonly outputs: readonly [];
1496
+ readonly stateMutability: "nonpayable";
1497
+ }, {
1498
+ readonly type: "function";
1499
+ readonly name: "zkVerify";
1500
+ readonly inputs: readonly [{
1501
+ readonly name: "value";
1502
+ readonly type: "uint256";
1503
+ readonly internalType: "uint256";
1504
+ }, {
1505
+ readonly name: "utype";
1506
+ readonly type: "uint8";
1507
+ readonly internalType: "uint8";
1508
+ }, {
1509
+ readonly name: "user";
1510
+ readonly type: "address";
1511
+ readonly internalType: "address";
1512
+ }, {
1513
+ readonly name: "securityZone";
1514
+ readonly type: "uint8";
1515
+ readonly internalType: "uint8";
1516
+ }, {
1517
+ readonly name: "";
1518
+ readonly type: "uint256";
1519
+ readonly internalType: "uint256";
1520
+ }];
1521
+ readonly outputs: readonly [{
1522
+ readonly name: "";
1523
+ readonly type: "tuple";
1524
+ readonly internalType: "struct EncryptedInput";
1525
+ readonly components: readonly [{
1526
+ readonly name: "ctHash";
1527
+ readonly type: "uint256";
1528
+ readonly internalType: "uint256";
1529
+ }, {
1530
+ readonly name: "securityZone";
1531
+ readonly type: "uint8";
1532
+ readonly internalType: "uint8";
1533
+ }, {
1534
+ readonly name: "utype";
1535
+ readonly type: "uint8";
1536
+ readonly internalType: "uint8";
1537
+ }, {
1538
+ readonly name: "signature";
1539
+ readonly type: "bytes";
1540
+ readonly internalType: "bytes";
1541
+ }];
1542
+ }];
1543
+ readonly stateMutability: "nonpayable";
1544
+ }, {
1545
+ readonly type: "function";
1546
+ readonly name: "zkVerifyCalcCtHash";
1547
+ readonly inputs: readonly [{
1548
+ readonly name: "value";
1549
+ readonly type: "uint256";
1550
+ readonly internalType: "uint256";
1551
+ }, {
1552
+ readonly name: "utype";
1553
+ readonly type: "uint8";
1554
+ readonly internalType: "uint8";
1555
+ }, {
1556
+ readonly name: "user";
1557
+ readonly type: "address";
1558
+ readonly internalType: "address";
1559
+ }, {
1560
+ readonly name: "securityZone";
1561
+ readonly type: "uint8";
1562
+ readonly internalType: "uint8";
1563
+ }, {
1564
+ readonly name: "";
1565
+ readonly type: "uint256";
1566
+ readonly internalType: "uint256";
1567
+ }];
1568
+ readonly outputs: readonly [{
1569
+ readonly name: "ctHash";
1570
+ readonly type: "uint256";
1571
+ readonly internalType: "uint256";
1572
+ }];
1573
+ readonly stateMutability: "view";
1574
+ }, {
1575
+ readonly type: "function";
1576
+ readonly name: "zkVerifyCalcCtHashesPacked";
1577
+ readonly inputs: readonly [{
1578
+ readonly name: "values";
1579
+ readonly type: "uint256[]";
1580
+ readonly internalType: "uint256[]";
1581
+ }, {
1582
+ readonly name: "utypes";
1583
+ readonly type: "uint8[]";
1584
+ readonly internalType: "uint8[]";
1585
+ }, {
1586
+ readonly name: "user";
1587
+ readonly type: "address";
1588
+ readonly internalType: "address";
1589
+ }, {
1590
+ readonly name: "securityZone";
1591
+ readonly type: "uint8";
1592
+ readonly internalType: "uint8";
1593
+ }, {
1594
+ readonly name: "chainId";
1595
+ readonly type: "uint256";
1596
+ readonly internalType: "uint256";
1597
+ }];
1598
+ readonly outputs: readonly [{
1599
+ readonly name: "ctHashes";
1600
+ readonly type: "uint256[]";
1601
+ readonly internalType: "uint256[]";
1602
+ }];
1603
+ readonly stateMutability: "view";
1604
+ }, {
1605
+ readonly type: "function";
1606
+ readonly name: "zkVerifyPacked";
1607
+ readonly inputs: readonly [{
1608
+ readonly name: "values";
1609
+ readonly type: "uint256[]";
1610
+ readonly internalType: "uint256[]";
1611
+ }, {
1612
+ readonly name: "utypes";
1613
+ readonly type: "uint8[]";
1614
+ readonly internalType: "uint8[]";
1615
+ }, {
1616
+ readonly name: "user";
1617
+ readonly type: "address";
1618
+ readonly internalType: "address";
1619
+ }, {
1620
+ readonly name: "securityZone";
1621
+ readonly type: "uint8";
1622
+ readonly internalType: "uint8";
1623
+ }, {
1624
+ readonly name: "chainId";
1625
+ readonly type: "uint256";
1626
+ readonly internalType: "uint256";
1627
+ }];
1628
+ readonly outputs: readonly [{
1629
+ readonly name: "inputs";
1630
+ readonly type: "tuple[]";
1631
+ readonly internalType: "struct EncryptedInput[]";
1632
+ readonly components: readonly [{
1633
+ readonly name: "ctHash";
1634
+ readonly type: "uint256";
1635
+ readonly internalType: "uint256";
1636
+ }, {
1637
+ readonly name: "securityZone";
1638
+ readonly type: "uint8";
1639
+ readonly internalType: "uint8";
1640
+ }, {
1641
+ readonly name: "utype";
1642
+ readonly type: "uint8";
1643
+ readonly internalType: "uint8";
1644
+ }, {
1645
+ readonly name: "signature";
1646
+ readonly type: "bytes";
1647
+ readonly internalType: "bytes";
1648
+ }];
1649
+ }];
1650
+ readonly stateMutability: "nonpayable";
1651
+ }, {
1652
+ readonly type: "error";
1653
+ readonly name: "InvalidInputs";
1654
+ readonly inputs: readonly [];
1655
+ }];
185
1656
  };
186
1657
 
187
1658
  declare const MockThresholdNetworkArtifact: {
188
- contractName: string;
189
- isFixed: true;
190
- fixedAddress: string;
191
- abi: ({
192
- type: string;
193
- name: string;
194
- inputs: ({
195
- name: string;
196
- type: string;
197
- internalType: string;
198
- components?: undefined;
199
- } | {
200
- name: string;
201
- type: string;
202
- internalType: string;
203
- components: {
204
- name: string;
205
- type: string;
206
- internalType: string;
207
- }[];
208
- })[];
209
- outputs: {
210
- name: string;
211
- type: string;
212
- internalType: string;
213
- }[];
214
- stateMutability: string;
215
- } | {
216
- type: string;
217
- name: string;
218
- inputs: never[];
219
- outputs?: undefined;
220
- stateMutability?: undefined;
221
- })[];
222
- deployedBytecode: string;
1659
+ readonly contractName: "MockThresholdNetwork";
1660
+ readonly isFixed: true;
1661
+ readonly fixedAddress: "0x0000000000000000000000000000000000005002";
1662
+ readonly abi: readonly [{
1663
+ readonly type: "function";
1664
+ readonly name: "decodeLowLevelReversion";
1665
+ readonly inputs: readonly [{
1666
+ readonly name: "data";
1667
+ readonly type: "bytes";
1668
+ readonly internalType: "bytes";
1669
+ }];
1670
+ readonly outputs: readonly [{
1671
+ readonly name: "error";
1672
+ readonly type: "string";
1673
+ readonly internalType: "string";
1674
+ }];
1675
+ readonly stateMutability: "pure";
1676
+ }, {
1677
+ readonly type: "function";
1678
+ readonly name: "decryptForTxWithPermit";
1679
+ readonly inputs: readonly [{
1680
+ readonly name: "ctHash";
1681
+ readonly type: "uint256";
1682
+ readonly internalType: "uint256";
1683
+ }, {
1684
+ readonly name: "permission";
1685
+ readonly type: "tuple";
1686
+ readonly internalType: "struct Permission";
1687
+ readonly components: readonly [{
1688
+ readonly name: "issuer";
1689
+ readonly type: "address";
1690
+ readonly internalType: "address";
1691
+ }, {
1692
+ readonly name: "expiration";
1693
+ readonly type: "uint64";
1694
+ readonly internalType: "uint64";
1695
+ }, {
1696
+ readonly name: "recipient";
1697
+ readonly type: "address";
1698
+ readonly internalType: "address";
1699
+ }, {
1700
+ readonly name: "validatorId";
1701
+ readonly type: "uint256";
1702
+ readonly internalType: "uint256";
1703
+ }, {
1704
+ readonly name: "validatorContract";
1705
+ readonly type: "address";
1706
+ readonly internalType: "address";
1707
+ }, {
1708
+ readonly name: "sealingKey";
1709
+ readonly type: "bytes32";
1710
+ readonly internalType: "bytes32";
1711
+ }, {
1712
+ readonly name: "issuerSignature";
1713
+ readonly type: "bytes";
1714
+ readonly internalType: "bytes";
1715
+ }, {
1716
+ readonly name: "recipientSignature";
1717
+ readonly type: "bytes";
1718
+ readonly internalType: "bytes";
1719
+ }];
1720
+ }];
1721
+ readonly outputs: readonly [{
1722
+ readonly name: "allowed";
1723
+ readonly type: "bool";
1724
+ readonly internalType: "bool";
1725
+ }, {
1726
+ readonly name: "error";
1727
+ readonly type: "string";
1728
+ readonly internalType: "string";
1729
+ }, {
1730
+ readonly name: "decryptedValue";
1731
+ readonly type: "uint256";
1732
+ readonly internalType: "uint256";
1733
+ }];
1734
+ readonly stateMutability: "view";
1735
+ }, {
1736
+ readonly type: "function";
1737
+ readonly name: "decryptForTxWithoutPermit";
1738
+ readonly inputs: readonly [{
1739
+ readonly name: "ctHash";
1740
+ readonly type: "uint256";
1741
+ readonly internalType: "uint256";
1742
+ }];
1743
+ readonly outputs: readonly [{
1744
+ readonly name: "allowed";
1745
+ readonly type: "bool";
1746
+ readonly internalType: "bool";
1747
+ }, {
1748
+ readonly name: "error";
1749
+ readonly type: "string";
1750
+ readonly internalType: "string";
1751
+ }, {
1752
+ readonly name: "decryptedValue";
1753
+ readonly type: "uint256";
1754
+ readonly internalType: "uint256";
1755
+ }];
1756
+ readonly stateMutability: "view";
1757
+ }, {
1758
+ readonly type: "function";
1759
+ readonly name: "exists";
1760
+ readonly inputs: readonly [];
1761
+ readonly outputs: readonly [{
1762
+ readonly name: "";
1763
+ readonly type: "bool";
1764
+ readonly internalType: "bool";
1765
+ }];
1766
+ readonly stateMutability: "pure";
1767
+ }, {
1768
+ readonly type: "function";
1769
+ readonly name: "initialize";
1770
+ readonly inputs: readonly [{
1771
+ readonly name: "_taskManager";
1772
+ readonly type: "address";
1773
+ readonly internalType: "address";
1774
+ }, {
1775
+ readonly name: "_acl";
1776
+ readonly type: "address";
1777
+ readonly internalType: "address";
1778
+ }];
1779
+ readonly outputs: readonly [];
1780
+ readonly stateMutability: "nonpayable";
1781
+ }, {
1782
+ readonly type: "function";
1783
+ readonly name: "mockAcl";
1784
+ readonly inputs: readonly [];
1785
+ readonly outputs: readonly [{
1786
+ readonly name: "";
1787
+ readonly type: "address";
1788
+ readonly internalType: "contract MockACL";
1789
+ }];
1790
+ readonly stateMutability: "view";
1791
+ }, {
1792
+ readonly type: "function";
1793
+ readonly name: "mockQueryDecrypt";
1794
+ readonly inputs: readonly [{
1795
+ readonly name: "ctHash";
1796
+ readonly type: "uint256";
1797
+ readonly internalType: "uint256";
1798
+ }, {
1799
+ readonly name: "";
1800
+ readonly type: "uint256";
1801
+ readonly internalType: "uint256";
1802
+ }, {
1803
+ readonly name: "issuer";
1804
+ readonly type: "address";
1805
+ readonly internalType: "address";
1806
+ }];
1807
+ readonly outputs: readonly [{
1808
+ readonly name: "allowed";
1809
+ readonly type: "bool";
1810
+ readonly internalType: "bool";
1811
+ }, {
1812
+ readonly name: "error";
1813
+ readonly type: "string";
1814
+ readonly internalType: "string";
1815
+ }, {
1816
+ readonly name: "";
1817
+ readonly type: "uint256";
1818
+ readonly internalType: "uint256";
1819
+ }];
1820
+ readonly stateMutability: "view";
1821
+ }, {
1822
+ readonly type: "function";
1823
+ readonly name: "mockTaskManager";
1824
+ readonly inputs: readonly [];
1825
+ readonly outputs: readonly [{
1826
+ readonly name: "";
1827
+ readonly type: "address";
1828
+ readonly internalType: "contract MockTaskManager";
1829
+ }];
1830
+ readonly stateMutability: "view";
1831
+ }, {
1832
+ readonly type: "function";
1833
+ readonly name: "queryDecrypt";
1834
+ readonly inputs: readonly [{
1835
+ readonly name: "ctHash";
1836
+ readonly type: "uint256";
1837
+ readonly internalType: "uint256";
1838
+ }, {
1839
+ readonly name: "";
1840
+ readonly type: "uint256";
1841
+ readonly internalType: "uint256";
1842
+ }, {
1843
+ readonly name: "permission";
1844
+ readonly type: "tuple";
1845
+ readonly internalType: "struct Permission";
1846
+ readonly components: readonly [{
1847
+ readonly name: "issuer";
1848
+ readonly type: "address";
1849
+ readonly internalType: "address";
1850
+ }, {
1851
+ readonly name: "expiration";
1852
+ readonly type: "uint64";
1853
+ readonly internalType: "uint64";
1854
+ }, {
1855
+ readonly name: "recipient";
1856
+ readonly type: "address";
1857
+ readonly internalType: "address";
1858
+ }, {
1859
+ readonly name: "validatorId";
1860
+ readonly type: "uint256";
1861
+ readonly internalType: "uint256";
1862
+ }, {
1863
+ readonly name: "validatorContract";
1864
+ readonly type: "address";
1865
+ readonly internalType: "address";
1866
+ }, {
1867
+ readonly name: "sealingKey";
1868
+ readonly type: "bytes32";
1869
+ readonly internalType: "bytes32";
1870
+ }, {
1871
+ readonly name: "issuerSignature";
1872
+ readonly type: "bytes";
1873
+ readonly internalType: "bytes";
1874
+ }, {
1875
+ readonly name: "recipientSignature";
1876
+ readonly type: "bytes";
1877
+ readonly internalType: "bytes";
1878
+ }];
1879
+ }];
1880
+ readonly outputs: readonly [{
1881
+ readonly name: "allowed";
1882
+ readonly type: "bool";
1883
+ readonly internalType: "bool";
1884
+ }, {
1885
+ readonly name: "error";
1886
+ readonly type: "string";
1887
+ readonly internalType: "string";
1888
+ }, {
1889
+ readonly name: "";
1890
+ readonly type: "uint256";
1891
+ readonly internalType: "uint256";
1892
+ }];
1893
+ readonly stateMutability: "view";
1894
+ }, {
1895
+ readonly type: "function";
1896
+ readonly name: "querySealOutput";
1897
+ readonly inputs: readonly [{
1898
+ readonly name: "ctHash";
1899
+ readonly type: "uint256";
1900
+ readonly internalType: "uint256";
1901
+ }, {
1902
+ readonly name: "";
1903
+ readonly type: "uint256";
1904
+ readonly internalType: "uint256";
1905
+ }, {
1906
+ readonly name: "permission";
1907
+ readonly type: "tuple";
1908
+ readonly internalType: "struct Permission";
1909
+ readonly components: readonly [{
1910
+ readonly name: "issuer";
1911
+ readonly type: "address";
1912
+ readonly internalType: "address";
1913
+ }, {
1914
+ readonly name: "expiration";
1915
+ readonly type: "uint64";
1916
+ readonly internalType: "uint64";
1917
+ }, {
1918
+ readonly name: "recipient";
1919
+ readonly type: "address";
1920
+ readonly internalType: "address";
1921
+ }, {
1922
+ readonly name: "validatorId";
1923
+ readonly type: "uint256";
1924
+ readonly internalType: "uint256";
1925
+ }, {
1926
+ readonly name: "validatorContract";
1927
+ readonly type: "address";
1928
+ readonly internalType: "address";
1929
+ }, {
1930
+ readonly name: "sealingKey";
1931
+ readonly type: "bytes32";
1932
+ readonly internalType: "bytes32";
1933
+ }, {
1934
+ readonly name: "issuerSignature";
1935
+ readonly type: "bytes";
1936
+ readonly internalType: "bytes";
1937
+ }, {
1938
+ readonly name: "recipientSignature";
1939
+ readonly type: "bytes";
1940
+ readonly internalType: "bytes";
1941
+ }];
1942
+ }];
1943
+ readonly outputs: readonly [{
1944
+ readonly name: "allowed";
1945
+ readonly type: "bool";
1946
+ readonly internalType: "bool";
1947
+ }, {
1948
+ readonly name: "error";
1949
+ readonly type: "string";
1950
+ readonly internalType: "string";
1951
+ }, {
1952
+ readonly name: "";
1953
+ readonly type: "bytes32";
1954
+ readonly internalType: "bytes32";
1955
+ }];
1956
+ readonly stateMutability: "view";
1957
+ }, {
1958
+ readonly type: "function";
1959
+ readonly name: "seal";
1960
+ readonly inputs: readonly [{
1961
+ readonly name: "input";
1962
+ readonly type: "uint256";
1963
+ readonly internalType: "uint256";
1964
+ }, {
1965
+ readonly name: "key";
1966
+ readonly type: "bytes32";
1967
+ readonly internalType: "bytes32";
1968
+ }];
1969
+ readonly outputs: readonly [{
1970
+ readonly name: "";
1971
+ readonly type: "bytes32";
1972
+ readonly internalType: "bytes32";
1973
+ }];
1974
+ readonly stateMutability: "pure";
1975
+ }, {
1976
+ readonly type: "function";
1977
+ readonly name: "unseal";
1978
+ readonly inputs: readonly [{
1979
+ readonly name: "hashed";
1980
+ readonly type: "bytes32";
1981
+ readonly internalType: "bytes32";
1982
+ }, {
1983
+ readonly name: "key";
1984
+ readonly type: "bytes32";
1985
+ readonly internalType: "bytes32";
1986
+ }];
1987
+ readonly outputs: readonly [{
1988
+ readonly name: "";
1989
+ readonly type: "uint256";
1990
+ readonly internalType: "uint256";
1991
+ }];
1992
+ readonly stateMutability: "pure";
1993
+ }, {
1994
+ readonly type: "error";
1995
+ readonly name: "NotAllowed";
1996
+ readonly inputs: readonly [];
1997
+ }, {
1998
+ readonly type: "error";
1999
+ readonly name: "SealingKeyInvalid";
2000
+ readonly inputs: readonly [];
2001
+ }, {
2002
+ readonly type: "error";
2003
+ readonly name: "SealingKeyMissing";
2004
+ readonly inputs: readonly [];
2005
+ }];
223
2006
  };
224
2007
 
225
2008
  declare const TestBedArtifact: {
226
- contractName: string;
227
- isFixed: true;
228
- fixedAddress: string;
229
- abi: ({
230
- type: string;
231
- name: string;
232
- inputs: {
233
- name: string;
234
- type: string;
235
- internalType: string;
236
- components: {
237
- name: string;
238
- type: string;
239
- internalType: string;
240
- }[];
241
- }[];
242
- outputs: never[];
243
- stateMutability: string;
244
- } | {
245
- type: string;
246
- name: string;
247
- inputs: {
248
- name: string;
249
- type: string;
250
- internalType: string;
251
- }[];
252
- outputs: {
253
- name: string;
254
- type: string;
255
- internalType: string;
256
- }[];
257
- stateMutability: string;
258
- } | {
259
- type: string;
260
- name: string;
261
- inputs: {
262
- name: string;
263
- type: string;
264
- internalType: string;
265
- }[];
266
- outputs?: undefined;
267
- stateMutability?: undefined;
268
- })[];
269
- deployedBytecode: string;
2009
+ readonly contractName: "TestBed";
2010
+ readonly isFixed: true;
2011
+ readonly fixedAddress: "0x0000000000000000000000000000000000005003";
2012
+ readonly abi: readonly [{
2013
+ readonly type: "function";
2014
+ readonly name: "add";
2015
+ readonly inputs: readonly [{
2016
+ readonly name: "inNumber";
2017
+ readonly type: "tuple";
2018
+ readonly internalType: "struct InEuint32";
2019
+ readonly components: readonly [{
2020
+ readonly name: "ctHash";
2021
+ readonly type: "uint256";
2022
+ readonly internalType: "uint256";
2023
+ }, {
2024
+ readonly name: "securityZone";
2025
+ readonly type: "uint8";
2026
+ readonly internalType: "uint8";
2027
+ }, {
2028
+ readonly name: "utype";
2029
+ readonly type: "uint8";
2030
+ readonly internalType: "uint8";
2031
+ }, {
2032
+ readonly name: "signature";
2033
+ readonly type: "bytes";
2034
+ readonly internalType: "bytes";
2035
+ }];
2036
+ }];
2037
+ readonly outputs: readonly [];
2038
+ readonly stateMutability: "nonpayable";
2039
+ }, {
2040
+ readonly type: "function";
2041
+ readonly name: "decrypt";
2042
+ readonly inputs: readonly [];
2043
+ readonly outputs: readonly [];
2044
+ readonly stateMutability: "nonpayable";
2045
+ }, {
2046
+ readonly type: "function";
2047
+ readonly name: "eNumber";
2048
+ readonly inputs: readonly [];
2049
+ readonly outputs: readonly [{
2050
+ readonly name: "";
2051
+ readonly type: "bytes32";
2052
+ readonly internalType: "euint32";
2053
+ }];
2054
+ readonly stateMutability: "view";
2055
+ }, {
2056
+ readonly type: "function";
2057
+ readonly name: "exists";
2058
+ readonly inputs: readonly [];
2059
+ readonly outputs: readonly [{
2060
+ readonly name: "";
2061
+ readonly type: "bool";
2062
+ readonly internalType: "bool";
2063
+ }];
2064
+ readonly stateMutability: "pure";
2065
+ }, {
2066
+ readonly type: "function";
2067
+ readonly name: "getDecryptResult";
2068
+ readonly inputs: readonly [{
2069
+ readonly name: "input1";
2070
+ readonly type: "bytes32";
2071
+ readonly internalType: "euint32";
2072
+ }];
2073
+ readonly outputs: readonly [{
2074
+ readonly name: "";
2075
+ readonly type: "uint32";
2076
+ readonly internalType: "uint32";
2077
+ }];
2078
+ readonly stateMutability: "view";
2079
+ }, {
2080
+ readonly type: "function";
2081
+ readonly name: "getDecryptResultSafe";
2082
+ readonly inputs: readonly [{
2083
+ readonly name: "input1";
2084
+ readonly type: "bytes32";
2085
+ readonly internalType: "euint32";
2086
+ }];
2087
+ readonly outputs: readonly [{
2088
+ readonly name: "value";
2089
+ readonly type: "uint32";
2090
+ readonly internalType: "uint32";
2091
+ }, {
2092
+ readonly name: "decrypted";
2093
+ readonly type: "bool";
2094
+ readonly internalType: "bool";
2095
+ }];
2096
+ readonly stateMutability: "view";
2097
+ }, {
2098
+ readonly type: "function";
2099
+ readonly name: "increment";
2100
+ readonly inputs: readonly [];
2101
+ readonly outputs: readonly [];
2102
+ readonly stateMutability: "nonpayable";
2103
+ }, {
2104
+ readonly type: "function";
2105
+ readonly name: "mul";
2106
+ readonly inputs: readonly [{
2107
+ readonly name: "inNumber";
2108
+ readonly type: "tuple";
2109
+ readonly internalType: "struct InEuint32";
2110
+ readonly components: readonly [{
2111
+ readonly name: "ctHash";
2112
+ readonly type: "uint256";
2113
+ readonly internalType: "uint256";
2114
+ }, {
2115
+ readonly name: "securityZone";
2116
+ readonly type: "uint8";
2117
+ readonly internalType: "uint8";
2118
+ }, {
2119
+ readonly name: "utype";
2120
+ readonly type: "uint8";
2121
+ readonly internalType: "uint8";
2122
+ }, {
2123
+ readonly name: "signature";
2124
+ readonly type: "bytes";
2125
+ readonly internalType: "bytes";
2126
+ }];
2127
+ }];
2128
+ readonly outputs: readonly [];
2129
+ readonly stateMutability: "nonpayable";
2130
+ }, {
2131
+ readonly type: "function";
2132
+ readonly name: "numberHash";
2133
+ readonly inputs: readonly [];
2134
+ readonly outputs: readonly [{
2135
+ readonly name: "";
2136
+ readonly type: "bytes32";
2137
+ readonly internalType: "bytes32";
2138
+ }];
2139
+ readonly stateMutability: "view";
2140
+ }, {
2141
+ readonly type: "function";
2142
+ readonly name: "publishDecryptResult";
2143
+ readonly inputs: readonly [{
2144
+ readonly name: "input";
2145
+ readonly type: "bytes32";
2146
+ readonly internalType: "euint32";
2147
+ }, {
2148
+ readonly name: "result";
2149
+ readonly type: "uint32";
2150
+ readonly internalType: "uint32";
2151
+ }, {
2152
+ readonly name: "signature";
2153
+ readonly type: "bytes";
2154
+ readonly internalType: "bytes";
2155
+ }];
2156
+ readonly outputs: readonly [];
2157
+ readonly stateMutability: "nonpayable";
2158
+ }, {
2159
+ readonly type: "function";
2160
+ readonly name: "setNumber";
2161
+ readonly inputs: readonly [{
2162
+ readonly name: "inNumber";
2163
+ readonly type: "tuple";
2164
+ readonly internalType: "struct InEuint32";
2165
+ readonly components: readonly [{
2166
+ readonly name: "ctHash";
2167
+ readonly type: "uint256";
2168
+ readonly internalType: "uint256";
2169
+ }, {
2170
+ readonly name: "securityZone";
2171
+ readonly type: "uint8";
2172
+ readonly internalType: "uint8";
2173
+ }, {
2174
+ readonly name: "utype";
2175
+ readonly type: "uint8";
2176
+ readonly internalType: "uint8";
2177
+ }, {
2178
+ readonly name: "signature";
2179
+ readonly type: "bytes";
2180
+ readonly internalType: "bytes";
2181
+ }];
2182
+ }];
2183
+ readonly outputs: readonly [];
2184
+ readonly stateMutability: "nonpayable";
2185
+ }, {
2186
+ readonly type: "function";
2187
+ readonly name: "setNumberTrivial";
2188
+ readonly inputs: readonly [{
2189
+ readonly name: "inNumber";
2190
+ readonly type: "uint32";
2191
+ readonly internalType: "uint32";
2192
+ }];
2193
+ readonly outputs: readonly [];
2194
+ readonly stateMutability: "nonpayable";
2195
+ }, {
2196
+ readonly type: "function";
2197
+ readonly name: "sub";
2198
+ readonly inputs: readonly [{
2199
+ readonly name: "inNumber";
2200
+ readonly type: "tuple";
2201
+ readonly internalType: "struct InEuint32";
2202
+ readonly components: readonly [{
2203
+ readonly name: "ctHash";
2204
+ readonly type: "uint256";
2205
+ readonly internalType: "uint256";
2206
+ }, {
2207
+ readonly name: "securityZone";
2208
+ readonly type: "uint8";
2209
+ readonly internalType: "uint8";
2210
+ }, {
2211
+ readonly name: "utype";
2212
+ readonly type: "uint8";
2213
+ readonly internalType: "uint8";
2214
+ }, {
2215
+ readonly name: "signature";
2216
+ readonly type: "bytes";
2217
+ readonly internalType: "bytes";
2218
+ }];
2219
+ }];
2220
+ readonly outputs: readonly [];
2221
+ readonly stateMutability: "nonpayable";
2222
+ }, {
2223
+ readonly type: "error";
2224
+ readonly name: "InvalidEncryptedInput";
2225
+ readonly inputs: readonly [{
2226
+ readonly name: "got";
2227
+ readonly type: "uint8";
2228
+ readonly internalType: "uint8";
2229
+ }, {
2230
+ readonly name: "expected";
2231
+ readonly type: "uint8";
2232
+ readonly internalType: "uint8";
2233
+ }];
2234
+ }, {
2235
+ readonly type: "error";
2236
+ readonly name: "SecurityZoneOutOfBounds";
2237
+ readonly inputs: readonly [{
2238
+ readonly name: "value";
2239
+ readonly type: "int32";
2240
+ readonly internalType: "int32";
2241
+ }];
2242
+ }];
270
2243
  };
271
2244
 
272
2245
  interface TypedDeferredTopicFilter<_TCEvent extends TypedContractEvent> extends DeferredTopicFilter {
@@ -545,7 +2518,7 @@ type EncryptedInputStruct = {
545
2518
  signature: BytesLike;
546
2519
  };
547
2520
  interface MockTaskManagerInterface extends Interface {
548
- getFunction(nameOrSignature: 'MOCK_logAllow' | 'MOCK_setInEuintKey' | 'acl' | 'aggregator' | 'allow' | 'allowForDecryption' | 'allowGlobal' | 'allowTransient' | 'createDecryptTask' | 'createRandomTask' | 'createTask' | 'decryptResultSigner' | 'exists' | 'getDecryptResult' | 'getDecryptResultSafe' | 'handleDecryptResult' | 'handleError' | 'inMockStorage' | 'initialize' | 'isAllowed' | 'isAllowedWithPermission' | 'isInitialized' | 'isPubliclyAllowed' | 'logOps' | 'mockStorage' | 'publishDecryptResult' | 'publishDecryptResultBatch' | 'removeFirstLetter' | 'setACLContract' | 'setAggregator' | 'setDecryptResultSigner' | 'setLogOps' | 'setSecurityZoneMax' | 'setSecurityZoneMin' | 'setSecurityZones' | 'setVerifierSigner' | 'sliceString' | 'verifyDecryptResult' | 'verifyDecryptResultSafe' | 'verifyInput'): FunctionFragment;
2521
+ getFunction(nameOrSignature: 'MOCK_logAllow' | 'MOCK_setInEuintKey' | 'acl' | 'aggregator' | 'allow' | 'allowForDecryption' | 'allowGlobal' | 'allowTransient' | 'createDecryptTask' | 'createRandomTask' | 'createTask' | 'decryptResultSigner' | 'exists' | 'getDecryptResult' | 'getDecryptResultSafe' | 'handleDecryptResult' | 'handleError' | 'inMockStorage' | 'initialize' | 'isAllowed' | 'isAllowedWithPermission' | 'isInitialized' | 'isPubliclyAllowed' | 'logOps' | 'mockStorage' | 'publishDecryptResult' | 'publishDecryptResultBatch' | 'removeFirstLetter' | 'setACLContract' | 'setAggregator' | 'setDecryptResultSigner' | 'setLogOps' | 'setSecurityZoneMax' | 'setSecurityZoneMin' | 'setSecurityZones' | 'setVerifierSigner' | 'sliceString' | 'verifyDecryptResult' | 'verifyDecryptResultBatch' | 'verifyDecryptResultBatchSafe' | 'verifyDecryptResultSafe' | 'verifyInput'): FunctionFragment;
549
2522
  getEvent(nameOrSignatureOrTopic: 'DecryptionResult' | 'ProtocolNotification' | 'TaskCreated'): EventFragment;
550
2523
  encodeFunctionData(functionFragment: 'MOCK_logAllow', values: [string, BigNumberish, AddressLike]): string;
551
2524
  encodeFunctionData(functionFragment: 'MOCK_setInEuintKey', values: [BigNumberish, BigNumberish]): string;
@@ -585,6 +2558,8 @@ interface MockTaskManagerInterface extends Interface {
585
2558
  encodeFunctionData(functionFragment: 'setVerifierSigner', values: [AddressLike]): string;
586
2559
  encodeFunctionData(functionFragment: 'sliceString', values: [string, BigNumberish, BigNumberish]): string;
587
2560
  encodeFunctionData(functionFragment: 'verifyDecryptResult', values: [BigNumberish, BigNumberish, BytesLike]): string;
2561
+ encodeFunctionData(functionFragment: 'verifyDecryptResultBatch', values: [BigNumberish[], BigNumberish[], BytesLike[]]): string;
2562
+ encodeFunctionData(functionFragment: 'verifyDecryptResultBatchSafe', values: [BigNumberish[], BigNumberish[], BytesLike[]]): string;
588
2563
  encodeFunctionData(functionFragment: 'verifyDecryptResultSafe', values: [BigNumberish, BigNumberish, BytesLike]): string;
589
2564
  encodeFunctionData(functionFragment: 'verifyInput', values: [EncryptedInputStruct, AddressLike]): string;
590
2565
  decodeFunctionResult(functionFragment: 'MOCK_logAllow', data: BytesLike): Result;
@@ -625,6 +2600,8 @@ interface MockTaskManagerInterface extends Interface {
625
2600
  decodeFunctionResult(functionFragment: 'setVerifierSigner', data: BytesLike): Result;
626
2601
  decodeFunctionResult(functionFragment: 'sliceString', data: BytesLike): Result;
627
2602
  decodeFunctionResult(functionFragment: 'verifyDecryptResult', data: BytesLike): Result;
2603
+ decodeFunctionResult(functionFragment: 'verifyDecryptResultBatch', data: BytesLike): Result;
2604
+ decodeFunctionResult(functionFragment: 'verifyDecryptResultBatchSafe', data: BytesLike): Result;
628
2605
  decodeFunctionResult(functionFragment: 'verifyDecryptResultSafe', data: BytesLike): Result;
629
2606
  decodeFunctionResult(functionFragment: 'verifyInput', data: BytesLike): Result;
630
2607
  }
@@ -776,6 +2753,20 @@ interface MockTaskManager extends BaseContract {
776
2753
  ], [
777
2754
  boolean
778
2755
  ], 'view'>;
2756
+ verifyDecryptResultBatch: TypedContractMethod<[
2757
+ ctHashes: BigNumberish[],
2758
+ results: BigNumberish[],
2759
+ signatures: BytesLike[]
2760
+ ], [
2761
+ boolean
2762
+ ], 'view'>;
2763
+ verifyDecryptResultBatchSafe: TypedContractMethod<[
2764
+ ctHashes: BigNumberish[],
2765
+ results: BigNumberish[],
2766
+ signatures: BytesLike[]
2767
+ ], [
2768
+ boolean[]
2769
+ ], 'view'>;
779
2770
  verifyDecryptResultSafe: TypedContractMethod<[
780
2771
  ctHash: BigNumberish,
781
2772
  result: BigNumberish,
@@ -845,6 +2836,20 @@ interface MockTaskManager extends BaseContract {
845
2836
  getFunction(nameOrSignature: 'setVerifierSigner'): TypedContractMethod<[signer: AddressLike], [void], 'nonpayable'>;
846
2837
  getFunction(nameOrSignature: 'sliceString'): TypedContractMethod<[str: string, start: BigNumberish, length: BigNumberish], [string], 'view'>;
847
2838
  getFunction(nameOrSignature: 'verifyDecryptResult'): TypedContractMethod<[ctHash: BigNumberish, result: BigNumberish, signature: BytesLike], [boolean], 'view'>;
2839
+ getFunction(nameOrSignature: 'verifyDecryptResultBatch'): TypedContractMethod<[
2840
+ ctHashes: BigNumberish[],
2841
+ results: BigNumberish[],
2842
+ signatures: BytesLike[]
2843
+ ], [
2844
+ boolean
2845
+ ], 'view'>;
2846
+ getFunction(nameOrSignature: 'verifyDecryptResultBatchSafe'): TypedContractMethod<[
2847
+ ctHashes: BigNumberish[],
2848
+ results: BigNumberish[],
2849
+ signatures: BytesLike[]
2850
+ ], [
2851
+ boolean[]
2852
+ ], 'view'>;
848
2853
  getFunction(nameOrSignature: 'verifyDecryptResultSafe'): TypedContractMethod<[ctHash: BigNumberish, result: BigNumberish, signature: BytesLike], [boolean], 'view'>;
849
2854
  getFunction(nameOrSignature: 'verifyInput'): TypedContractMethod<[input: EncryptedInputStruct, sender: AddressLike], [bigint], 'nonpayable'>;
850
2855
  getEvent(key: 'DecryptionResult'): TypedContractEvent<DecryptionResultEvent.InputTuple, DecryptionResultEvent.OutputTuple, DecryptionResultEvent.OutputObject>;