@zentity/fhevm-contracts 0.4.0 → 0.4.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.
@@ -0,0 +1,1698 @@
1
+ {
2
+ "address": "0xA06491fFd68277498eCcEbb229900Bb58991CB73",
3
+ "abi": [
4
+ {
5
+ "inputs": [],
6
+ "stateMutability": "nonpayable",
7
+ "type": "constructor"
8
+ },
9
+ {
10
+ "inputs": [],
11
+ "name": "AccessProhibited",
12
+ "type": "error"
13
+ },
14
+ {
15
+ "inputs": [
16
+ {
17
+ "internalType": "address",
18
+ "name": "target",
19
+ "type": "address"
20
+ }
21
+ ],
22
+ "name": "AddressEmptyCode",
23
+ "type": "error"
24
+ },
25
+ {
26
+ "inputs": [],
27
+ "name": "AlreadyAttested",
28
+ "type": "error"
29
+ },
30
+ {
31
+ "inputs": [],
32
+ "name": "ECDSAInvalidSignature",
33
+ "type": "error"
34
+ },
35
+ {
36
+ "inputs": [
37
+ {
38
+ "internalType": "uint256",
39
+ "name": "length",
40
+ "type": "uint256"
41
+ }
42
+ ],
43
+ "name": "ECDSAInvalidSignatureLength",
44
+ "type": "error"
45
+ },
46
+ {
47
+ "inputs": [
48
+ {
49
+ "internalType": "bytes32",
50
+ "name": "s",
51
+ "type": "bytes32"
52
+ }
53
+ ],
54
+ "name": "ECDSAInvalidSignatureS",
55
+ "type": "error"
56
+ },
57
+ {
58
+ "inputs": [
59
+ {
60
+ "internalType": "address",
61
+ "name": "implementation",
62
+ "type": "address"
63
+ }
64
+ ],
65
+ "name": "ERC1967InvalidImplementation",
66
+ "type": "error"
67
+ },
68
+ {
69
+ "inputs": [],
70
+ "name": "ERC1967NonPayable",
71
+ "type": "error"
72
+ },
73
+ {
74
+ "inputs": [],
75
+ "name": "FailedCall",
76
+ "type": "error"
77
+ },
78
+ {
79
+ "inputs": [],
80
+ "name": "InvalidInitialization",
81
+ "type": "error"
82
+ },
83
+ {
84
+ "inputs": [],
85
+ "name": "InvalidPermit",
86
+ "type": "error"
87
+ },
88
+ {
89
+ "inputs": [],
90
+ "name": "NotAttested",
91
+ "type": "error"
92
+ },
93
+ {
94
+ "inputs": [],
95
+ "name": "NotInitializing",
96
+ "type": "error"
97
+ },
98
+ {
99
+ "inputs": [],
100
+ "name": "OnlyRegistrar",
101
+ "type": "error"
102
+ },
103
+ {
104
+ "inputs": [
105
+ {
106
+ "internalType": "address",
107
+ "name": "owner",
108
+ "type": "address"
109
+ }
110
+ ],
111
+ "name": "OwnableInvalidOwner",
112
+ "type": "error"
113
+ },
114
+ {
115
+ "inputs": [
116
+ {
117
+ "internalType": "address",
118
+ "name": "account",
119
+ "type": "address"
120
+ }
121
+ ],
122
+ "name": "OwnableUnauthorizedAccount",
123
+ "type": "error"
124
+ },
125
+ {
126
+ "inputs": [],
127
+ "name": "PermitExpired",
128
+ "type": "error"
129
+ },
130
+ {
131
+ "inputs": [],
132
+ "name": "UUPSUnauthorizedCallContext",
133
+ "type": "error"
134
+ },
135
+ {
136
+ "inputs": [
137
+ {
138
+ "internalType": "bytes32",
139
+ "name": "slot",
140
+ "type": "bytes32"
141
+ }
142
+ ],
143
+ "name": "UUPSUnsupportedProxiableUUID",
144
+ "type": "error"
145
+ },
146
+ {
147
+ "inputs": [],
148
+ "name": "ZamaProtocolUnsupported",
149
+ "type": "error"
150
+ },
151
+ {
152
+ "inputs": [],
153
+ "name": "ZeroAddress",
154
+ "type": "error"
155
+ },
156
+ {
157
+ "anonymous": false,
158
+ "inputs": [
159
+ {
160
+ "indexed": true,
161
+ "internalType": "address",
162
+ "name": "user",
163
+ "type": "address"
164
+ },
165
+ {
166
+ "indexed": true,
167
+ "internalType": "address",
168
+ "name": "grantee",
169
+ "type": "address"
170
+ },
171
+ {
172
+ "indexed": false,
173
+ "internalType": "uint8",
174
+ "name": "attributeMask",
175
+ "type": "uint8"
176
+ },
177
+ {
178
+ "indexed": false,
179
+ "internalType": "enum IIdentityRegistry.Purpose",
180
+ "name": "purpose",
181
+ "type": "uint8"
182
+ }
183
+ ],
184
+ "name": "AttributeAccessGranted",
185
+ "type": "event"
186
+ },
187
+ {
188
+ "anonymous": false,
189
+ "inputs": [],
190
+ "name": "EIP712DomainChanged",
191
+ "type": "event"
192
+ },
193
+ {
194
+ "anonymous": false,
195
+ "inputs": [
196
+ {
197
+ "indexed": true,
198
+ "internalType": "address",
199
+ "name": "user",
200
+ "type": "address"
201
+ }
202
+ ],
203
+ "name": "IdentityAttested",
204
+ "type": "event"
205
+ },
206
+ {
207
+ "anonymous": false,
208
+ "inputs": [
209
+ {
210
+ "indexed": true,
211
+ "internalType": "address",
212
+ "name": "user",
213
+ "type": "address"
214
+ }
215
+ ],
216
+ "name": "IdentityRevoked",
217
+ "type": "event"
218
+ },
219
+ {
220
+ "anonymous": false,
221
+ "inputs": [
222
+ {
223
+ "indexed": false,
224
+ "internalType": "uint64",
225
+ "name": "version",
226
+ "type": "uint64"
227
+ }
228
+ ],
229
+ "name": "Initialized",
230
+ "type": "event"
231
+ },
232
+ {
233
+ "anonymous": false,
234
+ "inputs": [
235
+ {
236
+ "indexed": true,
237
+ "internalType": "address",
238
+ "name": "previousOwner",
239
+ "type": "address"
240
+ },
241
+ {
242
+ "indexed": true,
243
+ "internalType": "address",
244
+ "name": "newOwner",
245
+ "type": "address"
246
+ }
247
+ ],
248
+ "name": "OwnershipTransferStarted",
249
+ "type": "event"
250
+ },
251
+ {
252
+ "anonymous": false,
253
+ "inputs": [
254
+ {
255
+ "indexed": true,
256
+ "internalType": "address",
257
+ "name": "previousOwner",
258
+ "type": "address"
259
+ },
260
+ {
261
+ "indexed": true,
262
+ "internalType": "address",
263
+ "name": "newOwner",
264
+ "type": "address"
265
+ }
266
+ ],
267
+ "name": "OwnershipTransferred",
268
+ "type": "event"
269
+ },
270
+ {
271
+ "anonymous": false,
272
+ "inputs": [
273
+ {
274
+ "indexed": true,
275
+ "internalType": "address",
276
+ "name": "registrar",
277
+ "type": "address"
278
+ },
279
+ {
280
+ "indexed": false,
281
+ "internalType": "bool",
282
+ "name": "status",
283
+ "type": "bool"
284
+ }
285
+ ],
286
+ "name": "RegistrarUpdated",
287
+ "type": "event"
288
+ },
289
+ {
290
+ "anonymous": false,
291
+ "inputs": [
292
+ {
293
+ "indexed": true,
294
+ "internalType": "address",
295
+ "name": "implementation",
296
+ "type": "address"
297
+ }
298
+ ],
299
+ "name": "Upgraded",
300
+ "type": "event"
301
+ },
302
+ {
303
+ "inputs": [],
304
+ "name": "ATTEST_PERMIT_TYPEHASH",
305
+ "outputs": [
306
+ {
307
+ "internalType": "bytes32",
308
+ "name": "",
309
+ "type": "bytes32"
310
+ }
311
+ ],
312
+ "stateMutability": "view",
313
+ "type": "function"
314
+ },
315
+ {
316
+ "inputs": [],
317
+ "name": "ATTR_ALL",
318
+ "outputs": [
319
+ {
320
+ "internalType": "uint8",
321
+ "name": "",
322
+ "type": "uint8"
323
+ }
324
+ ],
325
+ "stateMutability": "view",
326
+ "type": "function"
327
+ },
328
+ {
329
+ "inputs": [],
330
+ "name": "ATTR_BIRTH_YEAR",
331
+ "outputs": [
332
+ {
333
+ "internalType": "uint8",
334
+ "name": "",
335
+ "type": "uint8"
336
+ }
337
+ ],
338
+ "stateMutability": "view",
339
+ "type": "function"
340
+ },
341
+ {
342
+ "inputs": [],
343
+ "name": "ATTR_BLACKLIST",
344
+ "outputs": [
345
+ {
346
+ "internalType": "uint8",
347
+ "name": "",
348
+ "type": "uint8"
349
+ }
350
+ ],
351
+ "stateMutability": "view",
352
+ "type": "function"
353
+ },
354
+ {
355
+ "inputs": [],
356
+ "name": "ATTR_COMPLIANCE",
357
+ "outputs": [
358
+ {
359
+ "internalType": "uint8",
360
+ "name": "",
361
+ "type": "uint8"
362
+ }
363
+ ],
364
+ "stateMutability": "view",
365
+ "type": "function"
366
+ },
367
+ {
368
+ "inputs": [],
369
+ "name": "ATTR_COUNTRY",
370
+ "outputs": [
371
+ {
372
+ "internalType": "uint8",
373
+ "name": "",
374
+ "type": "uint8"
375
+ }
376
+ ],
377
+ "stateMutability": "view",
378
+ "type": "function"
379
+ },
380
+ {
381
+ "inputs": [],
382
+ "name": "UPGRADE_INTERFACE_VERSION",
383
+ "outputs": [
384
+ {
385
+ "internalType": "string",
386
+ "name": "",
387
+ "type": "string"
388
+ }
389
+ ],
390
+ "stateMutability": "view",
391
+ "type": "function"
392
+ },
393
+ {
394
+ "inputs": [],
395
+ "name": "acceptOwnership",
396
+ "outputs": [],
397
+ "stateMutability": "nonpayable",
398
+ "type": "function"
399
+ },
400
+ {
401
+ "inputs": [
402
+ {
403
+ "components": [
404
+ {
405
+ "internalType": "uint8",
406
+ "name": "birthYearOffset",
407
+ "type": "uint8"
408
+ },
409
+ {
410
+ "internalType": "uint16",
411
+ "name": "countryCode",
412
+ "type": "uint16"
413
+ },
414
+ {
415
+ "internalType": "uint8",
416
+ "name": "complianceLevel",
417
+ "type": "uint8"
418
+ },
419
+ {
420
+ "internalType": "bool",
421
+ "name": "isBlacklisted",
422
+ "type": "bool"
423
+ },
424
+ {
425
+ "internalType": "bytes32",
426
+ "name": "proofSetHash",
427
+ "type": "bytes32"
428
+ },
429
+ {
430
+ "internalType": "uint32",
431
+ "name": "policyVersion",
432
+ "type": "uint32"
433
+ },
434
+ {
435
+ "internalType": "uint256",
436
+ "name": "deadline",
437
+ "type": "uint256"
438
+ },
439
+ {
440
+ "internalType": "uint8",
441
+ "name": "v",
442
+ "type": "uint8"
443
+ },
444
+ {
445
+ "internalType": "bytes32",
446
+ "name": "r",
447
+ "type": "bytes32"
448
+ },
449
+ {
450
+ "internalType": "bytes32",
451
+ "name": "s",
452
+ "type": "bytes32"
453
+ }
454
+ ],
455
+ "internalType": "struct IIdentityRegistry.AttestPermitData",
456
+ "name": "permit",
457
+ "type": "tuple"
458
+ },
459
+ {
460
+ "internalType": "externalEuint8",
461
+ "name": "encBirthYearOffset",
462
+ "type": "bytes32"
463
+ },
464
+ {
465
+ "internalType": "externalEuint16",
466
+ "name": "encCountryCode",
467
+ "type": "bytes32"
468
+ },
469
+ {
470
+ "internalType": "externalEuint8",
471
+ "name": "encComplianceLevel",
472
+ "type": "bytes32"
473
+ },
474
+ {
475
+ "internalType": "externalEbool",
476
+ "name": "encIsBlacklisted",
477
+ "type": "bytes32"
478
+ },
479
+ {
480
+ "internalType": "bytes",
481
+ "name": "inputProof",
482
+ "type": "bytes"
483
+ }
484
+ ],
485
+ "name": "attestWithPermit",
486
+ "outputs": [],
487
+ "stateMutability": "nonpayable",
488
+ "type": "function"
489
+ },
490
+ {
491
+ "inputs": [
492
+ {
493
+ "internalType": "address",
494
+ "name": "user",
495
+ "type": "address"
496
+ }
497
+ ],
498
+ "name": "attestationTimestamp",
499
+ "outputs": [
500
+ {
501
+ "internalType": "uint256",
502
+ "name": "ts",
503
+ "type": "uint256"
504
+ }
505
+ ],
506
+ "stateMutability": "view",
507
+ "type": "function"
508
+ },
509
+ {
510
+ "inputs": [
511
+ {
512
+ "internalType": "address",
513
+ "name": "user",
514
+ "type": "address"
515
+ },
516
+ {
517
+ "internalType": "uint8",
518
+ "name": "minLevel",
519
+ "type": "uint8"
520
+ }
521
+ ],
522
+ "name": "checkCompliance",
523
+ "outputs": [
524
+ {
525
+ "internalType": "ebool",
526
+ "name": "",
527
+ "type": "bytes32"
528
+ }
529
+ ],
530
+ "stateMutability": "nonpayable",
531
+ "type": "function"
532
+ },
533
+ {
534
+ "inputs": [
535
+ {
536
+ "internalType": "address",
537
+ "name": "user",
538
+ "type": "address"
539
+ }
540
+ ],
541
+ "name": "currentAttestationId",
542
+ "outputs": [
543
+ {
544
+ "internalType": "uint256",
545
+ "name": "id",
546
+ "type": "uint256"
547
+ }
548
+ ],
549
+ "stateMutability": "view",
550
+ "type": "function"
551
+ },
552
+ {
553
+ "inputs": [],
554
+ "name": "eip712Domain",
555
+ "outputs": [
556
+ {
557
+ "internalType": "bytes1",
558
+ "name": "fields",
559
+ "type": "bytes1"
560
+ },
561
+ {
562
+ "internalType": "string",
563
+ "name": "name",
564
+ "type": "string"
565
+ },
566
+ {
567
+ "internalType": "string",
568
+ "name": "version",
569
+ "type": "string"
570
+ },
571
+ {
572
+ "internalType": "uint256",
573
+ "name": "chainId",
574
+ "type": "uint256"
575
+ },
576
+ {
577
+ "internalType": "address",
578
+ "name": "verifyingContract",
579
+ "type": "address"
580
+ },
581
+ {
582
+ "internalType": "bytes32",
583
+ "name": "salt",
584
+ "type": "bytes32"
585
+ },
586
+ {
587
+ "internalType": "uint256[]",
588
+ "name": "extensions",
589
+ "type": "uint256[]"
590
+ }
591
+ ],
592
+ "stateMutability": "view",
593
+ "type": "function"
594
+ },
595
+ {
596
+ "inputs": [
597
+ {
598
+ "internalType": "address",
599
+ "name": "user",
600
+ "type": "address"
601
+ }
602
+ ],
603
+ "name": "getBirthYearOffset",
604
+ "outputs": [
605
+ {
606
+ "internalType": "euint8",
607
+ "name": "",
608
+ "type": "bytes32"
609
+ }
610
+ ],
611
+ "stateMutability": "view",
612
+ "type": "function"
613
+ },
614
+ {
615
+ "inputs": [
616
+ {
617
+ "internalType": "address",
618
+ "name": "user",
619
+ "type": "address"
620
+ }
621
+ ],
622
+ "name": "getBlacklistStatus",
623
+ "outputs": [
624
+ {
625
+ "internalType": "ebool",
626
+ "name": "",
627
+ "type": "bytes32"
628
+ }
629
+ ],
630
+ "stateMutability": "view",
631
+ "type": "function"
632
+ },
633
+ {
634
+ "inputs": [
635
+ {
636
+ "internalType": "address",
637
+ "name": "user",
638
+ "type": "address"
639
+ }
640
+ ],
641
+ "name": "getComplianceLevel",
642
+ "outputs": [
643
+ {
644
+ "internalType": "euint8",
645
+ "name": "",
646
+ "type": "bytes32"
647
+ }
648
+ ],
649
+ "stateMutability": "view",
650
+ "type": "function"
651
+ },
652
+ {
653
+ "inputs": [
654
+ {
655
+ "internalType": "address",
656
+ "name": "user",
657
+ "type": "address"
658
+ }
659
+ ],
660
+ "name": "getCountryCode",
661
+ "outputs": [
662
+ {
663
+ "internalType": "euint16",
664
+ "name": "",
665
+ "type": "bytes32"
666
+ }
667
+ ],
668
+ "stateMutability": "view",
669
+ "type": "function"
670
+ },
671
+ {
672
+ "inputs": [
673
+ {
674
+ "internalType": "address",
675
+ "name": "user",
676
+ "type": "address"
677
+ },
678
+ {
679
+ "internalType": "address",
680
+ "name": "grantee",
681
+ "type": "address"
682
+ }
683
+ ],
684
+ "name": "getGrantedAttributes",
685
+ "outputs": [
686
+ {
687
+ "internalType": "uint8",
688
+ "name": "",
689
+ "type": "uint8"
690
+ }
691
+ ],
692
+ "stateMutability": "view",
693
+ "type": "function"
694
+ },
695
+ {
696
+ "inputs": [
697
+ {
698
+ "internalType": "address",
699
+ "name": "user",
700
+ "type": "address"
701
+ }
702
+ ],
703
+ "name": "getPolicyVersion",
704
+ "outputs": [
705
+ {
706
+ "internalType": "uint32",
707
+ "name": "",
708
+ "type": "uint32"
709
+ }
710
+ ],
711
+ "stateMutability": "view",
712
+ "type": "function"
713
+ },
714
+ {
715
+ "inputs": [
716
+ {
717
+ "internalType": "address",
718
+ "name": "user",
719
+ "type": "address"
720
+ }
721
+ ],
722
+ "name": "getProofSetHash",
723
+ "outputs": [
724
+ {
725
+ "internalType": "bytes32",
726
+ "name": "",
727
+ "type": "bytes32"
728
+ }
729
+ ],
730
+ "stateMutability": "view",
731
+ "type": "function"
732
+ },
733
+ {
734
+ "inputs": [
735
+ {
736
+ "internalType": "bytes32",
737
+ "name": "key",
738
+ "type": "bytes32"
739
+ }
740
+ ],
741
+ "name": "getVerificationResult",
742
+ "outputs": [
743
+ {
744
+ "internalType": "ebool",
745
+ "name": "",
746
+ "type": "bytes32"
747
+ }
748
+ ],
749
+ "stateMutability": "view",
750
+ "type": "function"
751
+ },
752
+ {
753
+ "inputs": [
754
+ {
755
+ "internalType": "address",
756
+ "name": "grantee",
757
+ "type": "address"
758
+ }
759
+ ],
760
+ "name": "grantAccessTo",
761
+ "outputs": [],
762
+ "stateMutability": "nonpayable",
763
+ "type": "function"
764
+ },
765
+ {
766
+ "inputs": [
767
+ {
768
+ "internalType": "address",
769
+ "name": "grantee",
770
+ "type": "address"
771
+ },
772
+ {
773
+ "internalType": "uint8",
774
+ "name": "attributeMask",
775
+ "type": "uint8"
776
+ },
777
+ {
778
+ "internalType": "enum IIdentityRegistry.Purpose",
779
+ "name": "purpose",
780
+ "type": "uint8"
781
+ }
782
+ ],
783
+ "name": "grantAttributeAccess",
784
+ "outputs": [],
785
+ "stateMutability": "nonpayable",
786
+ "type": "function"
787
+ },
788
+ {
789
+ "inputs": [
790
+ {
791
+ "internalType": "address",
792
+ "name": "user",
793
+ "type": "address"
794
+ },
795
+ {
796
+ "internalType": "uint8",
797
+ "name": "minLevel",
798
+ "type": "uint8"
799
+ }
800
+ ],
801
+ "name": "hasMinComplianceLevel",
802
+ "outputs": [
803
+ {
804
+ "internalType": "ebool",
805
+ "name": "",
806
+ "type": "bytes32"
807
+ }
808
+ ],
809
+ "stateMutability": "nonpayable",
810
+ "type": "function"
811
+ },
812
+ {
813
+ "inputs": [
814
+ {
815
+ "internalType": "address",
816
+ "name": "initialOwner",
817
+ "type": "address"
818
+ }
819
+ ],
820
+ "name": "initialize",
821
+ "outputs": [],
822
+ "stateMutability": "nonpayable",
823
+ "type": "function"
824
+ },
825
+ {
826
+ "inputs": [
827
+ {
828
+ "internalType": "address",
829
+ "name": "user",
830
+ "type": "address"
831
+ }
832
+ ],
833
+ "name": "isAttested",
834
+ "outputs": [
835
+ {
836
+ "internalType": "bool",
837
+ "name": "",
838
+ "type": "bool"
839
+ }
840
+ ],
841
+ "stateMutability": "view",
842
+ "type": "function"
843
+ },
844
+ {
845
+ "inputs": [
846
+ {
847
+ "internalType": "address",
848
+ "name": "user",
849
+ "type": "address"
850
+ },
851
+ {
852
+ "internalType": "uint16",
853
+ "name": "country",
854
+ "type": "uint16"
855
+ }
856
+ ],
857
+ "name": "isFromCountry",
858
+ "outputs": [
859
+ {
860
+ "internalType": "ebool",
861
+ "name": "",
862
+ "type": "bytes32"
863
+ }
864
+ ],
865
+ "stateMutability": "nonpayable",
866
+ "type": "function"
867
+ },
868
+ {
869
+ "inputs": [
870
+ {
871
+ "internalType": "address",
872
+ "name": "user",
873
+ "type": "address"
874
+ }
875
+ ],
876
+ "name": "isNotBlacklisted",
877
+ "outputs": [
878
+ {
879
+ "internalType": "ebool",
880
+ "name": "",
881
+ "type": "bytes32"
882
+ }
883
+ ],
884
+ "stateMutability": "nonpayable",
885
+ "type": "function"
886
+ },
887
+ {
888
+ "inputs": [],
889
+ "name": "latestAttestationId",
890
+ "outputs": [
891
+ {
892
+ "internalType": "uint256",
893
+ "name": "",
894
+ "type": "uint256"
895
+ }
896
+ ],
897
+ "stateMutability": "view",
898
+ "type": "function"
899
+ },
900
+ {
901
+ "inputs": [
902
+ {
903
+ "internalType": "address",
904
+ "name": "user",
905
+ "type": "address"
906
+ }
907
+ ],
908
+ "name": "nonces",
909
+ "outputs": [
910
+ {
911
+ "internalType": "uint256",
912
+ "name": "nonce",
913
+ "type": "uint256"
914
+ }
915
+ ],
916
+ "stateMutability": "view",
917
+ "type": "function"
918
+ },
919
+ {
920
+ "inputs": [],
921
+ "name": "owner",
922
+ "outputs": [
923
+ {
924
+ "internalType": "address",
925
+ "name": "",
926
+ "type": "address"
927
+ }
928
+ ],
929
+ "stateMutability": "view",
930
+ "type": "function"
931
+ },
932
+ {
933
+ "inputs": [],
934
+ "name": "pendingOwner",
935
+ "outputs": [
936
+ {
937
+ "internalType": "address",
938
+ "name": "",
939
+ "type": "address"
940
+ }
941
+ ],
942
+ "stateMutability": "view",
943
+ "type": "function"
944
+ },
945
+ {
946
+ "inputs": [
947
+ {
948
+ "internalType": "address",
949
+ "name": "user",
950
+ "type": "address"
951
+ }
952
+ ],
953
+ "name": "policyVersions",
954
+ "outputs": [
955
+ {
956
+ "internalType": "uint32",
957
+ "name": "version",
958
+ "type": "uint32"
959
+ }
960
+ ],
961
+ "stateMutability": "view",
962
+ "type": "function"
963
+ },
964
+ {
965
+ "inputs": [
966
+ {
967
+ "internalType": "address",
968
+ "name": "user",
969
+ "type": "address"
970
+ }
971
+ ],
972
+ "name": "proofSetHashes",
973
+ "outputs": [
974
+ {
975
+ "internalType": "bytes32",
976
+ "name": "hash",
977
+ "type": "bytes32"
978
+ }
979
+ ],
980
+ "stateMutability": "view",
981
+ "type": "function"
982
+ },
983
+ {
984
+ "inputs": [],
985
+ "name": "proxiableUUID",
986
+ "outputs": [
987
+ {
988
+ "internalType": "bytes32",
989
+ "name": "",
990
+ "type": "bytes32"
991
+ }
992
+ ],
993
+ "stateMutability": "view",
994
+ "type": "function"
995
+ },
996
+ {
997
+ "inputs": [
998
+ {
999
+ "internalType": "address",
1000
+ "name": "registrar",
1001
+ "type": "address"
1002
+ }
1003
+ ],
1004
+ "name": "registrars",
1005
+ "outputs": [
1006
+ {
1007
+ "internalType": "bool",
1008
+ "name": "authorized",
1009
+ "type": "bool"
1010
+ }
1011
+ ],
1012
+ "stateMutability": "view",
1013
+ "type": "function"
1014
+ },
1015
+ {
1016
+ "inputs": [],
1017
+ "name": "renounceOwnership",
1018
+ "outputs": [],
1019
+ "stateMutability": "nonpayable",
1020
+ "type": "function"
1021
+ },
1022
+ {
1023
+ "inputs": [],
1024
+ "name": "revokeIdentity",
1025
+ "outputs": [],
1026
+ "stateMutability": "nonpayable",
1027
+ "type": "function"
1028
+ },
1029
+ {
1030
+ "inputs": [
1031
+ {
1032
+ "internalType": "address",
1033
+ "name": "user",
1034
+ "type": "address"
1035
+ }
1036
+ ],
1037
+ "name": "revokeIdentityFor",
1038
+ "outputs": [],
1039
+ "stateMutability": "nonpayable",
1040
+ "type": "function"
1041
+ },
1042
+ {
1043
+ "inputs": [
1044
+ {
1045
+ "internalType": "address",
1046
+ "name": "registrar",
1047
+ "type": "address"
1048
+ },
1049
+ {
1050
+ "internalType": "bool",
1051
+ "name": "status",
1052
+ "type": "bool"
1053
+ }
1054
+ ],
1055
+ "name": "setRegistrar",
1056
+ "outputs": [],
1057
+ "stateMutability": "nonpayable",
1058
+ "type": "function"
1059
+ },
1060
+ {
1061
+ "inputs": [
1062
+ {
1063
+ "internalType": "address",
1064
+ "name": "newOwner",
1065
+ "type": "address"
1066
+ }
1067
+ ],
1068
+ "name": "transferOwnership",
1069
+ "outputs": [],
1070
+ "stateMutability": "nonpayable",
1071
+ "type": "function"
1072
+ },
1073
+ {
1074
+ "inputs": [
1075
+ {
1076
+ "internalType": "address",
1077
+ "name": "newImplementation",
1078
+ "type": "address"
1079
+ },
1080
+ {
1081
+ "internalType": "bytes",
1082
+ "name": "data",
1083
+ "type": "bytes"
1084
+ }
1085
+ ],
1086
+ "name": "upgradeToAndCall",
1087
+ "outputs": [],
1088
+ "stateMutability": "payable",
1089
+ "type": "function"
1090
+ }
1091
+ ],
1092
+ "transactionHash": "0x45a1860c4ae798ad6677968b57fd0762395bbf14588d6cd38123ce958f54035a",
1093
+ "receipt": {
1094
+ "to": null,
1095
+ "from": "0x15CedFBe8aC7A1BC24e5a4AE8a9263EDBBdCa7e4",
1096
+ "contractAddress": "0xA06491fFd68277498eCcEbb229900Bb58991CB73",
1097
+ "transactionIndex": 61,
1098
+ "gasUsed": "2949932",
1099
+ "logsBloom": "0x00000000000000000002000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000800000000000000000000000080000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
1100
+ "blockHash": "0x427a9b3d8df2ff30f5f78d764429da77f6903852849f99209bcbf6634bb7d575",
1101
+ "transactionHash": "0x45a1860c4ae798ad6677968b57fd0762395bbf14588d6cd38123ce958f54035a",
1102
+ "logs": [
1103
+ {
1104
+ "transactionIndex": 61,
1105
+ "blockNumber": 10521894,
1106
+ "transactionHash": "0x45a1860c4ae798ad6677968b57fd0762395bbf14588d6cd38123ce958f54035a",
1107
+ "address": "0xA06491fFd68277498eCcEbb229900Bb58991CB73",
1108
+ "topics": ["0xc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2"],
1109
+ "data": "0x000000000000000000000000000000000000000000000000ffffffffffffffff",
1110
+ "logIndex": 448,
1111
+ "blockHash": "0x427a9b3d8df2ff30f5f78d764429da77f6903852849f99209bcbf6634bb7d575"
1112
+ }
1113
+ ],
1114
+ "blockNumber": 10521894,
1115
+ "cumulativeGasUsed": "12757688",
1116
+ "status": 1,
1117
+ "byzantium": true
1118
+ },
1119
+ "args": [],
1120
+ "numDeployments": 1,
1121
+ "solcInputHash": "c6ed5622dcd0cd73a6be490856a99482",
1122
+ "metadata": "{\"compiler\":{\"version\":\"0.8.27+commit.40a35a09\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"inputs\":[],\"name\":\"AccessProhibited\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"target\",\"type\":\"address\"}],\"name\":\"AddressEmptyCode\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"AlreadyAttested\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"ECDSAInvalidSignature\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"length\",\"type\":\"uint256\"}],\"name\":\"ECDSAInvalidSignatureLength\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"s\",\"type\":\"bytes32\"}],\"name\":\"ECDSAInvalidSignatureS\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"implementation\",\"type\":\"address\"}],\"name\":\"ERC1967InvalidImplementation\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"ERC1967NonPayable\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"FailedCall\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidInitialization\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidPermit\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"NotAttested\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"NotInitializing\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"OnlyRegistrar\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"}],\"name\":\"OwnableInvalidOwner\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"OwnableUnauthorizedAccount\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"PermitExpired\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"UUPSUnauthorizedCallContext\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"slot\",\"type\":\"bytes32\"}],\"name\":\"UUPSUnsupportedProxiableUUID\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"ZamaProtocolUnsupported\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"ZeroAddress\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"grantee\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint8\",\"name\":\"attributeMask\",\"type\":\"uint8\"},{\"indexed\":false,\"internalType\":\"enum IIdentityRegistry.Purpose\",\"name\":\"purpose\",\"type\":\"uint8\"}],\"name\":\"AttributeAccessGranted\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[],\"name\":\"EIP712DomainChanged\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"}],\"name\":\"IdentityAttested\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"}],\"name\":\"IdentityRevoked\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint64\",\"name\":\"version\",\"type\":\"uint64\"}],\"name\":\"Initialized\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"previousOwner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"OwnershipTransferStarted\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"previousOwner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"OwnershipTransferred\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"registrar\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"bool\",\"name\":\"status\",\"type\":\"bool\"}],\"name\":\"RegistrarUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"implementation\",\"type\":\"address\"}],\"name\":\"Upgraded\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"ATTEST_PERMIT_TYPEHASH\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"ATTR_ALL\",\"outputs\":[{\"internalType\":\"uint8\",\"name\":\"\",\"type\":\"uint8\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"ATTR_BIRTH_YEAR\",\"outputs\":[{\"internalType\":\"uint8\",\"name\":\"\",\"type\":\"uint8\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"ATTR_BLACKLIST\",\"outputs\":[{\"internalType\":\"uint8\",\"name\":\"\",\"type\":\"uint8\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"ATTR_COMPLIANCE\",\"outputs\":[{\"internalType\":\"uint8\",\"name\":\"\",\"type\":\"uint8\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"ATTR_COUNTRY\",\"outputs\":[{\"internalType\":\"uint8\",\"name\":\"\",\"type\":\"uint8\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"UPGRADE_INTERFACE_VERSION\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"acceptOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"uint8\",\"name\":\"birthYearOffset\",\"type\":\"uint8\"},{\"internalType\":\"uint16\",\"name\":\"countryCode\",\"type\":\"uint16\"},{\"internalType\":\"uint8\",\"name\":\"complianceLevel\",\"type\":\"uint8\"},{\"internalType\":\"bool\",\"name\":\"isBlacklisted\",\"type\":\"bool\"},{\"internalType\":\"bytes32\",\"name\":\"proofSetHash\",\"type\":\"bytes32\"},{\"internalType\":\"uint32\",\"name\":\"policyVersion\",\"type\":\"uint32\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"},{\"internalType\":\"uint8\",\"name\":\"v\",\"type\":\"uint8\"},{\"internalType\":\"bytes32\",\"name\":\"r\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"s\",\"type\":\"bytes32\"}],\"internalType\":\"struct IIdentityRegistry.AttestPermitData\",\"name\":\"permit\",\"type\":\"tuple\"},{\"internalType\":\"externalEuint8\",\"name\":\"encBirthYearOffset\",\"type\":\"bytes32\"},{\"internalType\":\"externalEuint16\",\"name\":\"encCountryCode\",\"type\":\"bytes32\"},{\"internalType\":\"externalEuint8\",\"name\":\"encComplianceLevel\",\"type\":\"bytes32\"},{\"internalType\":\"externalEbool\",\"name\":\"encIsBlacklisted\",\"type\":\"bytes32\"},{\"internalType\":\"bytes\",\"name\":\"inputProof\",\"type\":\"bytes\"}],\"name\":\"attestWithPermit\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"}],\"name\":\"attestationTimestamp\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"ts\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"},{\"internalType\":\"uint8\",\"name\":\"minLevel\",\"type\":\"uint8\"}],\"name\":\"checkCompliance\",\"outputs\":[{\"internalType\":\"ebool\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"}],\"name\":\"currentAttestationId\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"id\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"eip712Domain\",\"outputs\":[{\"internalType\":\"bytes1\",\"name\":\"fields\",\"type\":\"bytes1\"},{\"internalType\":\"string\",\"name\":\"name\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"version\",\"type\":\"string\"},{\"internalType\":\"uint256\",\"name\":\"chainId\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"verifyingContract\",\"type\":\"address\"},{\"internalType\":\"bytes32\",\"name\":\"salt\",\"type\":\"bytes32\"},{\"internalType\":\"uint256[]\",\"name\":\"extensions\",\"type\":\"uint256[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"}],\"name\":\"getBirthYearOffset\",\"outputs\":[{\"internalType\":\"euint8\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"}],\"name\":\"getBlacklistStatus\",\"outputs\":[{\"internalType\":\"ebool\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"}],\"name\":\"getComplianceLevel\",\"outputs\":[{\"internalType\":\"euint8\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"}],\"name\":\"getCountryCode\",\"outputs\":[{\"internalType\":\"euint16\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"grantee\",\"type\":\"address\"}],\"name\":\"getGrantedAttributes\",\"outputs\":[{\"internalType\":\"uint8\",\"name\":\"\",\"type\":\"uint8\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"}],\"name\":\"getPolicyVersion\",\"outputs\":[{\"internalType\":\"uint32\",\"name\":\"\",\"type\":\"uint32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"}],\"name\":\"getProofSetHash\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"key\",\"type\":\"bytes32\"}],\"name\":\"getVerificationResult\",\"outputs\":[{\"internalType\":\"ebool\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"grantee\",\"type\":\"address\"}],\"name\":\"grantAccessTo\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"grantee\",\"type\":\"address\"},{\"internalType\":\"uint8\",\"name\":\"attributeMask\",\"type\":\"uint8\"},{\"internalType\":\"enum IIdentityRegistry.Purpose\",\"name\":\"purpose\",\"type\":\"uint8\"}],\"name\":\"grantAttributeAccess\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"},{\"internalType\":\"uint8\",\"name\":\"minLevel\",\"type\":\"uint8\"}],\"name\":\"hasMinComplianceLevel\",\"outputs\":[{\"internalType\":\"ebool\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"initialOwner\",\"type\":\"address\"}],\"name\":\"initialize\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"}],\"name\":\"isAttested\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"},{\"internalType\":\"uint16\",\"name\":\"country\",\"type\":\"uint16\"}],\"name\":\"isFromCountry\",\"outputs\":[{\"internalType\":\"ebool\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"}],\"name\":\"isNotBlacklisted\",\"outputs\":[{\"internalType\":\"ebool\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"latestAttestationId\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"}],\"name\":\"nonces\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"nonce\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"pendingOwner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"}],\"name\":\"policyVersions\",\"outputs\":[{\"internalType\":\"uint32\",\"name\":\"version\",\"type\":\"uint32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"}],\"name\":\"proofSetHashes\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"hash\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"proxiableUUID\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"registrar\",\"type\":\"address\"}],\"name\":\"registrars\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"authorized\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"renounceOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"revokeIdentity\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"}],\"name\":\"revokeIdentityFor\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"registrar\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"status\",\"type\":\"bool\"}],\"name\":\"setRegistrar\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"transferOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newImplementation\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"upgradeToAndCall\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"}],\"devdoc\":{\"author\":\"Gustavo Valverde\",\"details\":\"UUPS-upgradeable. User submits attestation tx with registrar-signed permit. Compliance checks are composable by x402 facilitators and DeFi contracts via the branch-free FHE.select() pattern.\",\"errors\":{\"AddressEmptyCode(address)\":[{\"details\":\"There's no code at `target` (it is not a contract).\"}],\"ECDSAInvalidSignature()\":[{\"details\":\"The signature derives the `address(0)`.\"}],\"ECDSAInvalidSignatureLength(uint256)\":[{\"details\":\"The signature has an invalid length.\"}],\"ECDSAInvalidSignatureS(bytes32)\":[{\"details\":\"The signature has an S value that is in the upper half order.\"}],\"ERC1967InvalidImplementation(address)\":[{\"details\":\"The `implementation` of the proxy is invalid.\"}],\"ERC1967NonPayable()\":[{\"details\":\"An upgrade function sees `msg.value > 0` that may be lost.\"}],\"FailedCall()\":[{\"details\":\"A call to an address target failed. The target may have reverted.\"}],\"InvalidInitialization()\":[{\"details\":\"The contract is already initialized.\"}],\"NotInitializing()\":[{\"details\":\"The contract is not initializing.\"}],\"OwnableInvalidOwner(address)\":[{\"details\":\"The owner is not a valid owner account. (eg. `address(0)`)\"}],\"OwnableUnauthorizedAccount(address)\":[{\"details\":\"The caller account is not authorized to perform an operation.\"}],\"UUPSUnauthorizedCallContext()\":[{\"details\":\"The call is from an unauthorized context.\"}],\"UUPSUnsupportedProxiableUUID(bytes32)\":[{\"details\":\"The storage `slot` is unsupported as a UUID.\"}]},\"events\":{\"EIP712DomainChanged()\":{\"details\":\"MAY be emitted to signal that the domain could have changed.\"},\"Initialized(uint64)\":{\"details\":\"Triggered when the contract has been initialized or reinitialized.\"},\"Upgraded(address)\":{\"details\":\"Emitted when the implementation is upgraded.\"}},\"kind\":\"dev\",\"methods\":{\"acceptOwnership()\":{\"details\":\"The new owner accepts the ownership transfer.\"},\"attestWithPermit((uint8,uint16,uint8,bool,bytes32,uint32,uint256,uint8,bytes32,bytes32),bytes32,bytes32,bytes32,bytes32,bytes)\":{\"details\":\"The user submits this transaction with their own FHE-encrypted values. The contract verifies the registrar's signature over the plaintext values and stores the user's encrypted values. Nonce is auto-incremented.\",\"params\":{\"encBirthYearOffset\":\"FHE-encrypted birth year offset\",\"encComplianceLevel\":\"FHE-encrypted compliance level\",\"encCountryCode\":\"FHE-encrypted country code\",\"encIsBlacklisted\":\"FHE-encrypted blacklist status\",\"inputProof\":\"FHE input proof binding encrypted values to (contract, user)\",\"permit\":\"Registrar-signed permit containing plaintext values + ECDSA signature\"}},\"checkCompliance(address,uint8)\":{\"details\":\"State-mutating (FHE comparisons). Stores and returns encrypted result. x402 facilitators compose this inline: `euint64 amt = FHE.select(registry.checkCompliance(payer, 2), amount, zero);`\",\"params\":{\"minLevel\":\"Minimum compliance level required\",\"user\":\"Address to check\"},\"returns\":{\"_0\":\"Encrypted boolean: true if compliant\"}},\"constructor\":{\"custom:oz-upgrades-unsafe-allow\":\"constructor\"},\"eip712Domain()\":{\"details\":\"returns the fields and values that describe the domain separator used by this contract for EIP-712 signature.\"},\"getVerificationResult(bytes32)\":{\"params\":{\"key\":\"The result key (keccak256 of check parameters)\"}},\"grantAccessTo(address)\":{\"params\":{\"grantee\":\"Address receiving access permission\"}},\"grantAttributeAccess(address,uint8,uint8)\":{\"params\":{\"attributeMask\":\"Bitmask: 0x01=birthYear, 0x02=country, 0x04=compliance, 0x08=blacklist\",\"grantee\":\"Address receiving access permission\",\"purpose\":\"Why access is needed (on-chain audit trail)\"}},\"hasMinComplianceLevel(address,uint8)\":{\"params\":{\"minLevel\":\"Minimum level required\",\"user\":\"Address to check\"},\"returns\":{\"_0\":\"Encrypted boolean result\"}},\"initialize(address)\":{\"params\":{\"initialOwner\":\"Address that becomes owner and first registrar\"}},\"isFromCountry(address,uint16)\":{\"params\":{\"country\":\"ISO 3166-1 numeric country code\",\"user\":\"Address to check\"},\"returns\":{\"_0\":\"Encrypted boolean result\"}},\"isNotBlacklisted(address)\":{\"params\":{\"user\":\"Address to check\"},\"returns\":{\"_0\":\"Encrypted boolean (true if NOT blacklisted)\"}},\"owner()\":{\"details\":\"Returns the address of the current owner.\"},\"pendingOwner()\":{\"details\":\"Returns the address of the pending owner.\"},\"proxiableUUID()\":{\"details\":\"Implementation of the ERC-1822 {proxiableUUID} function. This returns the storage slot used by the implementation. It is used to validate the implementation's compatibility when performing an upgrade. IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this function revert if invoked through a proxy. This is guaranteed by the `notDelegated` modifier.\"},\"renounceOwnership()\":{\"details\":\"Leaves the contract without owner. It will not be possible to call `onlyOwner` functions. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby disabling any functionality that is only available to the owner.\"},\"revokeIdentityFor(address)\":{\"params\":{\"user\":\"Address of the user to revoke\"}},\"setRegistrar(address,bool)\":{\"params\":{\"registrar\":\"Address to update\",\"status\":\"true to add, false to remove\"}},\"transferOwnership(address)\":{\"details\":\"Starts the ownership transfer of the contract to a new account. Replaces the pending transfer if there is one. Can only be called by the current owner. Setting `newOwner` to the zero address is allowed; this can be used to cancel an initiated ownership transfer.\"},\"upgradeToAndCall(address,bytes)\":{\"custom:oz-upgrades-unsafe-allow-reachable\":\"delegatecall\",\"details\":\"Upgrade the implementation of the proxy to `newImplementation`, and subsequently execute the function call encoded in `data`. Calls {_authorizeUpgrade}. Emits an {Upgraded} event.\"}},\"stateVariables\":{\"ATTEST_PERMIT_TYPEHASH\":{\"details\":\"EIP-712 typehash for the attestation permit\"},\"__gap\":{\"details\":\"Reserved storage gap for future upgrades\"},\"attributeGrants\":{\"details\":\"keccak256(user, grantee) => attribute bitmask\"}},\"title\":\"IdentityRegistry\",\"version\":1},\"userdoc\":{\"errors\":{\"AccessProhibited()\":[{\"notice\":\"Thrown when caller lacks FHE permission for encrypted data\"}],\"AlreadyAttested()\":[{\"notice\":\"Thrown when attempting to attest an already-attested user\"}],\"InvalidPermit()\":[{\"notice\":\"Thrown when the EIP-712 permit signature is invalid\"}],\"NotAttested()\":[{\"notice\":\"Thrown when querying a user without attestation\"}],\"OnlyRegistrar()\":[{\"notice\":\"Thrown when caller is not an authorized registrar\"}],\"PermitExpired()\":[{\"notice\":\"Thrown when the permit deadline has passed\"}],\"ZamaProtocolUnsupported()\":[{\"notice\":\"Returned if the Zama protocol is not supported on the current chain\"}],\"ZeroAddress()\":[{\"notice\":\"Thrown when an address argument is the zero address\"}]},\"events\":{\"AttributeAccessGranted(address,address,uint8,uint8)\":{\"notice\":\"Emitted when a user grants per-attribute access to a grantee\"},\"IdentityAttested(address)\":{\"notice\":\"Emitted when an identity is attested via registrar permit\"},\"IdentityRevoked(address)\":{\"notice\":\"Emitted when an identity attestation is revoked\"},\"RegistrarUpdated(address,bool)\":{\"notice\":\"Emitted when a registrar is added or removed\"}},\"kind\":\"user\",\"methods\":{\"attestWithPermit((uint8,uint16,uint8,bool,bytes32,uint32,uint256,uint8,bytes32,bytes32),bytes32,bytes32,bytes32,bytes32,bytes)\":{\"notice\":\"Attest identity using a registrar-signed EIP-712 permit\"},\"attestationTimestamp(address)\":{\"notice\":\"Get the timestamp when a user was attested\"},\"checkCompliance(address,uint8)\":{\"notice\":\"Combined compliance check: level >= minLevel AND not blacklisted\"},\"currentAttestationId(address)\":{\"notice\":\"Get the current attestation ID for a user (0 if not attested)\"},\"getBirthYearOffset(address)\":{\"notice\":\"Get user's encrypted birth year offset (caller must have FHE ACL access)\"},\"getBlacklistStatus(address)\":{\"notice\":\"Get user's encrypted blacklist status (caller must have FHE ACL access)\"},\"getComplianceLevel(address)\":{\"notice\":\"Get user's encrypted compliance level (caller must have FHE ACL access)\"},\"getCountryCode(address)\":{\"notice\":\"Get user's encrypted country code (caller must have FHE ACL access)\"},\"getGrantedAttributes(address,address)\":{\"notice\":\"Get the attribute mask granted to a grantee by a user\"},\"getPolicyVersion(address)\":{\"notice\":\"Get the policy version for a user's attestation\"},\"getProofSetHash(address)\":{\"notice\":\"Get the proof set hash for a user's attestation\"},\"getVerificationResult(bytes32)\":{\"notice\":\"Get a previously stored verification result\"},\"grantAccessTo(address)\":{\"notice\":\"Grant FHE access to all attributes (convenience wrapper)\"},\"grantAttributeAccess(address,uint8,uint8)\":{\"notice\":\"Grant FHE access to specific attributes for a stated purpose\"},\"hasMinComplianceLevel(address,uint8)\":{\"notice\":\"Check if user meets minimum compliance level\"},\"initialize(address)\":{\"notice\":\"Initialize the registry (called once via proxy)\"},\"isAttested(address)\":{\"notice\":\"Check if a user has a valid attestation\"},\"isFromCountry(address,uint16)\":{\"notice\":\"Check if user is from a specific country\"},\"isNotBlacklisted(address)\":{\"notice\":\"Check if user is not blacklisted\"},\"nonces(address)\":{\"notice\":\"Get the EIP-712 nonce for a user (for permit construction)\"},\"registrars(address)\":{\"notice\":\"Check if an address is an authorized registrar\"},\"revokeIdentity()\":{\"notice\":\"Revoke caller's own attestation (user self-revocation)\"},\"revokeIdentityFor(address)\":{\"notice\":\"Revoke a user's attestation (registrar-only)\"},\"setRegistrar(address,bool)\":{\"notice\":\"Add or remove a registrar\"}},\"notice\":\"On-chain encrypted identity registry with EIP-712 registrar permits, per-attribute selective grants, and x402 compliance oracle surface.\",\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/core/IdentityRegistry.sol\":\"IdentityRegistry\"},\"evmVersion\":\"cancun\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\",\"useLiteralContent\":true},\"optimizer\":{\"enabled\":true,\"runs\":200},\"remappings\":[]},\"sources\":{\"@fhevm/solidity/config/ZamaConfig.sol\":{\"content\":\"// SPDX-License-Identifier: BSD-3-Clause-Clear\\npragma solidity ^0.8.24;\\n\\nimport {FHE} from \\\"@fhevm/solidity/lib/FHE.sol\\\";\\nimport {CoprocessorConfig} from \\\"@fhevm/solidity/lib/Impl.sol\\\";\\n\\n/**\\n * @title ZamaConfig.\\n * @notice This library returns the FHEVM config for different networks\\n * with the contract addresses for (1) ACL, (2) CoprocessorAddress, (3) KMSVerifier,\\n * which are deployed & maintained by Zama.\\n */\\nlibrary ZamaConfig {\\n /// @notice Returned if the Zama protocol is not supported on the current chain\\n error ZamaProtocolUnsupported();\\n\\n function getEthereumCoprocessorConfig() internal view returns (CoprocessorConfig memory config) {\\n if (block.chainid == 1) {\\n config = _getEthereumConfig();\\n } else if (block.chainid == 11155111) {\\n config = _getSepoliaConfig();\\n } else if (block.chainid == 31337) {\\n config = _getLocalConfig();\\n } else {\\n revert ZamaProtocolUnsupported();\\n }\\n }\\n\\n function getConfidentialProtocolId() internal view returns (uint256) {\\n if (block.chainid == 1) {\\n return _getEthereumProtocolId();\\n } else if (block.chainid == 11155111) {\\n return _getSepoliaProtocolId();\\n } else if (block.chainid == 31337) {\\n return _getLocalProtocolId();\\n }\\n return 0;\\n }\\n\\n /// @dev chainid == 1\\n function _getEthereumProtocolId() private pure returns (uint256) {\\n // Zama Ethereum protocol id is '1'\\n return 1;\\n }\\n\\n /// @dev chainid == 1\\n function _getEthereumConfig() private pure returns (CoprocessorConfig memory) {\\n // The addresses below are placeholders and should be replaced with actual addresses\\n // once deployed on the Ethereum mainnet.\\n return\\n CoprocessorConfig({ACLAddress: address(0), CoprocessorAddress: address(0), KMSVerifierAddress: address(0)});\\n }\\n\\n /// @dev chainid == 11155111\\n function _getSepoliaProtocolId() private pure returns (uint256) {\\n // Zama Ethereum Sepolia protocol id is '10000 + Zama Ethereum protocol id'\\n return 10001;\\n }\\n\\n /// @dev chainid == 11155111\\n function _getSepoliaConfig() private pure returns (CoprocessorConfig memory) {\\n return\\n CoprocessorConfig({\\n ACLAddress: 0xf0Ffdc93b7E186bC2f8CB3dAA75D86d1930A433D,\\n CoprocessorAddress: 0x92C920834Ec8941d2C77D188936E1f7A6f49c127,\\n KMSVerifierAddress: 0xbE0E383937d564D7FF0BC3b46c51f0bF8d5C311A\\n });\\n }\\n\\n /// @dev chainid == 31337\\n function _getLocalProtocolId() private pure returns (uint256) {\\n return type(uint256).max;\\n }\\n\\n function _getLocalConfig() private pure returns (CoprocessorConfig memory) {\\n return\\n CoprocessorConfig({\\n ACLAddress: 0xf0Ffdc93b7E186bC2f8CB3dAA75D86d1930A433D,\\n CoprocessorAddress: 0x92C920834Ec8941d2C77D188936E1f7A6f49c127,\\n KMSVerifierAddress: 0xbE0E383937d564D7FF0BC3b46c51f0bF8d5C311A\\n });\\n }\\n}\\n\\n/**\\n * @title ZamaEthereumConfig.\\n * @dev This contract can be inherited by a contract wishing to use the FHEVM contracts provided by Zama\\n * on the Ethereum (mainnet) network (chainId = 1) or Sepolia (testnet) network (chainId = 11155111).\\n * Other providers may offer similar contracts deployed at different addresses.\\n * If you wish to use them, you should rely on the instructions from these providers.\\n */\\nabstract contract ZamaEthereumConfig {\\n constructor() {\\n FHE.setCoprocessor(ZamaConfig.getEthereumCoprocessorConfig());\\n }\\n\\n function confidentialProtocolId() public view returns (uint256) {\\n return ZamaConfig.getConfidentialProtocolId();\\n }\\n}\\n\",\"keccak256\":\"0xa6e5421fb2a631825a980896055598620b5959bd1f5222031d95515fc1eb2a99\",\"license\":\"BSD-3-Clause-Clear\"},\"@fhevm/solidity/lib/FHE.sol\":{\"content\":\"// SPDX-License-Identifier: BSD-3-Clause-Clear\\npragma solidity ^0.8.24;\\n\\nimport \\\"./Impl.sol\\\";\\nimport {FheType} from \\\"./FheType.sol\\\";\\n\\nimport \\\"encrypted-types/EncryptedTypes.sol\\\";\\n\\n/**\\n * @title IKMSVerifier\\n * @notice This interface contains the only function required from KMSVerifier.\\n */\\ninterface IKMSVerifier {\\n function verifyDecryptionEIP712KMSSignatures(\\n bytes32[] memory handlesList,\\n bytes memory decryptedResult,\\n bytes memory decryptionProof\\n ) external returns (bool);\\n}\\n\\n/**\\n * @title FHE\\n * @notice This library is the interaction point for all smart contract developers\\n * that interact with the FHEVM protocol.\\n */\\nlibrary FHE {\\n /// @notice Returned if the returned KMS signatures are not valid.\\n error InvalidKMSSignatures();\\n\\n /// @notice This event is emitted when public decryption has been successfully verified.\\n event PublicDecryptionVerified(bytes32[] handlesList, bytes abiEncodedCleartexts);\\n\\n /**\\n * @notice Sets the coprocessor addresses.\\n * @param coprocessorConfig Coprocessor config struct that contains contract addresses.\\n */\\n function setCoprocessor(CoprocessorConfig memory coprocessorConfig) internal {\\n Impl.setCoprocessor(coprocessorConfig);\\n }\\n\\n /**\\n * @dev Returns true if the encrypted integer is initialized and false otherwise.\\n */\\n function isInitialized(ebool v) internal pure returns (bool) {\\n return ebool.unwrap(v) != 0;\\n }\\n\\n /**\\n * @dev Returns true if the encrypted integer is initialized and false otherwise.\\n */\\n function isInitialized(euint8 v) internal pure returns (bool) {\\n return euint8.unwrap(v) != 0;\\n }\\n\\n /**\\n * @dev Returns true if the encrypted integer is initialized and false otherwise.\\n */\\n function isInitialized(euint16 v) internal pure returns (bool) {\\n return euint16.unwrap(v) != 0;\\n }\\n\\n /**\\n * @dev Returns true if the encrypted integer is initialized and false otherwise.\\n */\\n function isInitialized(euint32 v) internal pure returns (bool) {\\n return euint32.unwrap(v) != 0;\\n }\\n\\n /**\\n * @dev Returns true if the encrypted integer is initialized and false otherwise.\\n */\\n function isInitialized(euint64 v) internal pure returns (bool) {\\n return euint64.unwrap(v) != 0;\\n }\\n\\n /**\\n * @dev Returns true if the encrypted integer is initialized and false otherwise.\\n */\\n function isInitialized(euint128 v) internal pure returns (bool) {\\n return euint128.unwrap(v) != 0;\\n }\\n\\n /**\\n * @dev Returns true if the encrypted integer is initialized and false otherwise.\\n */\\n function isInitialized(eaddress v) internal pure returns (bool) {\\n return eaddress.unwrap(v) != 0;\\n }\\n\\n /**\\n * @dev Returns true if the encrypted integer is initialized and false otherwise.\\n */\\n function isInitialized(euint256 v) internal pure returns (bool) {\\n return euint256.unwrap(v) != 0;\\n }\\n\\n /**\\n * @dev Evaluates and(ebool a, ebool b) and returns the result.\\n */\\n function and(ebool a, ebool b) internal returns (ebool) {\\n if (!isInitialized(a)) {\\n a = asEbool(false);\\n }\\n if (!isInitialized(b)) {\\n b = asEbool(false);\\n }\\n return ebool.wrap(Impl.and(ebool.unwrap(a), ebool.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates or(ebool a, ebool b) and returns the result.\\n */\\n function or(ebool a, ebool b) internal returns (ebool) {\\n if (!isInitialized(a)) {\\n a = asEbool(false);\\n }\\n if (!isInitialized(b)) {\\n b = asEbool(false);\\n }\\n return ebool.wrap(Impl.or(ebool.unwrap(a), ebool.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates xor(ebool a, ebool b) and returns the result.\\n */\\n function xor(ebool a, ebool b) internal returns (ebool) {\\n if (!isInitialized(a)) {\\n a = asEbool(false);\\n }\\n if (!isInitialized(b)) {\\n b = asEbool(false);\\n }\\n return ebool.wrap(Impl.xor(ebool.unwrap(a), ebool.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates eq(ebool a, ebool b) and returns the result.\\n */\\n function eq(ebool a, ebool b) internal returns (ebool) {\\n if (!isInitialized(a)) {\\n a = asEbool(false);\\n }\\n if (!isInitialized(b)) {\\n b = asEbool(false);\\n }\\n return ebool.wrap(Impl.eq(ebool.unwrap(a), ebool.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates ne(ebool a, ebool b) and returns the result.\\n */\\n function ne(ebool a, ebool b) internal returns (ebool) {\\n if (!isInitialized(a)) {\\n a = asEbool(false);\\n }\\n if (!isInitialized(b)) {\\n b = asEbool(false);\\n }\\n return ebool.wrap(Impl.ne(ebool.unwrap(a), ebool.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates add(euint8 a, euint8 b) and returns the result.\\n */\\n function add(euint8 a, euint8 b) internal returns (euint8) {\\n if (!isInitialized(a)) {\\n a = asEuint8(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint8(0);\\n }\\n return euint8.wrap(Impl.add(euint8.unwrap(a), euint8.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates sub(euint8 a, euint8 b) and returns the result.\\n */\\n function sub(euint8 a, euint8 b) internal returns (euint8) {\\n if (!isInitialized(a)) {\\n a = asEuint8(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint8(0);\\n }\\n return euint8.wrap(Impl.sub(euint8.unwrap(a), euint8.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates mul(euint8 a, euint8 b) and returns the result.\\n */\\n function mul(euint8 a, euint8 b) internal returns (euint8) {\\n if (!isInitialized(a)) {\\n a = asEuint8(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint8(0);\\n }\\n return euint8.wrap(Impl.mul(euint8.unwrap(a), euint8.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates and(euint8 a, euint8 b) and returns the result.\\n */\\n function and(euint8 a, euint8 b) internal returns (euint8) {\\n if (!isInitialized(a)) {\\n a = asEuint8(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint8(0);\\n }\\n return euint8.wrap(Impl.and(euint8.unwrap(a), euint8.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates or(euint8 a, euint8 b) and returns the result.\\n */\\n function or(euint8 a, euint8 b) internal returns (euint8) {\\n if (!isInitialized(a)) {\\n a = asEuint8(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint8(0);\\n }\\n return euint8.wrap(Impl.or(euint8.unwrap(a), euint8.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates xor(euint8 a, euint8 b) and returns the result.\\n */\\n function xor(euint8 a, euint8 b) internal returns (euint8) {\\n if (!isInitialized(a)) {\\n a = asEuint8(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint8(0);\\n }\\n return euint8.wrap(Impl.xor(euint8.unwrap(a), euint8.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates eq(euint8 a, euint8 b) and returns the result.\\n */\\n function eq(euint8 a, euint8 b) internal returns (ebool) {\\n if (!isInitialized(a)) {\\n a = asEuint8(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint8(0);\\n }\\n return ebool.wrap(Impl.eq(euint8.unwrap(a), euint8.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates ne(euint8 a, euint8 b) and returns the result.\\n */\\n function ne(euint8 a, euint8 b) internal returns (ebool) {\\n if (!isInitialized(a)) {\\n a = asEuint8(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint8(0);\\n }\\n return ebool.wrap(Impl.ne(euint8.unwrap(a), euint8.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates ge(euint8 a, euint8 b) and returns the result.\\n */\\n function ge(euint8 a, euint8 b) internal returns (ebool) {\\n if (!isInitialized(a)) {\\n a = asEuint8(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint8(0);\\n }\\n return ebool.wrap(Impl.ge(euint8.unwrap(a), euint8.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates gt(euint8 a, euint8 b) and returns the result.\\n */\\n function gt(euint8 a, euint8 b) internal returns (ebool) {\\n if (!isInitialized(a)) {\\n a = asEuint8(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint8(0);\\n }\\n return ebool.wrap(Impl.gt(euint8.unwrap(a), euint8.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates le(euint8 a, euint8 b) and returns the result.\\n */\\n function le(euint8 a, euint8 b) internal returns (ebool) {\\n if (!isInitialized(a)) {\\n a = asEuint8(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint8(0);\\n }\\n return ebool.wrap(Impl.le(euint8.unwrap(a), euint8.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates lt(euint8 a, euint8 b) and returns the result.\\n */\\n function lt(euint8 a, euint8 b) internal returns (ebool) {\\n if (!isInitialized(a)) {\\n a = asEuint8(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint8(0);\\n }\\n return ebool.wrap(Impl.lt(euint8.unwrap(a), euint8.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates min(euint8 a, euint8 b) and returns the result.\\n */\\n function min(euint8 a, euint8 b) internal returns (euint8) {\\n if (!isInitialized(a)) {\\n a = asEuint8(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint8(0);\\n }\\n return euint8.wrap(Impl.min(euint8.unwrap(a), euint8.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates max(euint8 a, euint8 b) and returns the result.\\n */\\n function max(euint8 a, euint8 b) internal returns (euint8) {\\n if (!isInitialized(a)) {\\n a = asEuint8(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint8(0);\\n }\\n return euint8.wrap(Impl.max(euint8.unwrap(a), euint8.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates add(euint8 a, euint16 b) and returns the result.\\n */\\n function add(euint8 a, euint16 b) internal returns (euint16) {\\n if (!isInitialized(a)) {\\n a = asEuint8(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint16(0);\\n }\\n return euint16.wrap(Impl.add(euint16.unwrap(asEuint16(a)), euint16.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates sub(euint8 a, euint16 b) and returns the result.\\n */\\n function sub(euint8 a, euint16 b) internal returns (euint16) {\\n if (!isInitialized(a)) {\\n a = asEuint8(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint16(0);\\n }\\n return euint16.wrap(Impl.sub(euint16.unwrap(asEuint16(a)), euint16.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates mul(euint8 a, euint16 b) and returns the result.\\n */\\n function mul(euint8 a, euint16 b) internal returns (euint16) {\\n if (!isInitialized(a)) {\\n a = asEuint8(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint16(0);\\n }\\n return euint16.wrap(Impl.mul(euint16.unwrap(asEuint16(a)), euint16.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates and(euint8 a, euint16 b) and returns the result.\\n */\\n function and(euint8 a, euint16 b) internal returns (euint16) {\\n if (!isInitialized(a)) {\\n a = asEuint8(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint16(0);\\n }\\n return euint16.wrap(Impl.and(euint16.unwrap(asEuint16(a)), euint16.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates or(euint8 a, euint16 b) and returns the result.\\n */\\n function or(euint8 a, euint16 b) internal returns (euint16) {\\n if (!isInitialized(a)) {\\n a = asEuint8(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint16(0);\\n }\\n return euint16.wrap(Impl.or(euint16.unwrap(asEuint16(a)), euint16.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates xor(euint8 a, euint16 b) and returns the result.\\n */\\n function xor(euint8 a, euint16 b) internal returns (euint16) {\\n if (!isInitialized(a)) {\\n a = asEuint8(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint16(0);\\n }\\n return euint16.wrap(Impl.xor(euint16.unwrap(asEuint16(a)), euint16.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates eq(euint8 a, euint16 b) and returns the result.\\n */\\n function eq(euint8 a, euint16 b) internal returns (ebool) {\\n if (!isInitialized(a)) {\\n a = asEuint8(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint16(0);\\n }\\n return ebool.wrap(Impl.eq(euint16.unwrap(asEuint16(a)), euint16.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates ne(euint8 a, euint16 b) and returns the result.\\n */\\n function ne(euint8 a, euint16 b) internal returns (ebool) {\\n if (!isInitialized(a)) {\\n a = asEuint8(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint16(0);\\n }\\n return ebool.wrap(Impl.ne(euint16.unwrap(asEuint16(a)), euint16.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates ge(euint8 a, euint16 b) and returns the result.\\n */\\n function ge(euint8 a, euint16 b) internal returns (ebool) {\\n if (!isInitialized(a)) {\\n a = asEuint8(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint16(0);\\n }\\n return ebool.wrap(Impl.ge(euint16.unwrap(asEuint16(a)), euint16.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates gt(euint8 a, euint16 b) and returns the result.\\n */\\n function gt(euint8 a, euint16 b) internal returns (ebool) {\\n if (!isInitialized(a)) {\\n a = asEuint8(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint16(0);\\n }\\n return ebool.wrap(Impl.gt(euint16.unwrap(asEuint16(a)), euint16.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates le(euint8 a, euint16 b) and returns the result.\\n */\\n function le(euint8 a, euint16 b) internal returns (ebool) {\\n if (!isInitialized(a)) {\\n a = asEuint8(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint16(0);\\n }\\n return ebool.wrap(Impl.le(euint16.unwrap(asEuint16(a)), euint16.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates lt(euint8 a, euint16 b) and returns the result.\\n */\\n function lt(euint8 a, euint16 b) internal returns (ebool) {\\n if (!isInitialized(a)) {\\n a = asEuint8(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint16(0);\\n }\\n return ebool.wrap(Impl.lt(euint16.unwrap(asEuint16(a)), euint16.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates min(euint8 a, euint16 b) and returns the result.\\n */\\n function min(euint8 a, euint16 b) internal returns (euint16) {\\n if (!isInitialized(a)) {\\n a = asEuint8(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint16(0);\\n }\\n return euint16.wrap(Impl.min(euint16.unwrap(asEuint16(a)), euint16.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates max(euint8 a, euint16 b) and returns the result.\\n */\\n function max(euint8 a, euint16 b) internal returns (euint16) {\\n if (!isInitialized(a)) {\\n a = asEuint8(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint16(0);\\n }\\n return euint16.wrap(Impl.max(euint16.unwrap(asEuint16(a)), euint16.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates add(euint8 a, euint32 b) and returns the result.\\n */\\n function add(euint8 a, euint32 b) internal returns (euint32) {\\n if (!isInitialized(a)) {\\n a = asEuint8(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint32(0);\\n }\\n return euint32.wrap(Impl.add(euint32.unwrap(asEuint32(a)), euint32.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates sub(euint8 a, euint32 b) and returns the result.\\n */\\n function sub(euint8 a, euint32 b) internal returns (euint32) {\\n if (!isInitialized(a)) {\\n a = asEuint8(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint32(0);\\n }\\n return euint32.wrap(Impl.sub(euint32.unwrap(asEuint32(a)), euint32.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates mul(euint8 a, euint32 b) and returns the result.\\n */\\n function mul(euint8 a, euint32 b) internal returns (euint32) {\\n if (!isInitialized(a)) {\\n a = asEuint8(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint32(0);\\n }\\n return euint32.wrap(Impl.mul(euint32.unwrap(asEuint32(a)), euint32.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates and(euint8 a, euint32 b) and returns the result.\\n */\\n function and(euint8 a, euint32 b) internal returns (euint32) {\\n if (!isInitialized(a)) {\\n a = asEuint8(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint32(0);\\n }\\n return euint32.wrap(Impl.and(euint32.unwrap(asEuint32(a)), euint32.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates or(euint8 a, euint32 b) and returns the result.\\n */\\n function or(euint8 a, euint32 b) internal returns (euint32) {\\n if (!isInitialized(a)) {\\n a = asEuint8(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint32(0);\\n }\\n return euint32.wrap(Impl.or(euint32.unwrap(asEuint32(a)), euint32.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates xor(euint8 a, euint32 b) and returns the result.\\n */\\n function xor(euint8 a, euint32 b) internal returns (euint32) {\\n if (!isInitialized(a)) {\\n a = asEuint8(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint32(0);\\n }\\n return euint32.wrap(Impl.xor(euint32.unwrap(asEuint32(a)), euint32.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates eq(euint8 a, euint32 b) and returns the result.\\n */\\n function eq(euint8 a, euint32 b) internal returns (ebool) {\\n if (!isInitialized(a)) {\\n a = asEuint8(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint32(0);\\n }\\n return ebool.wrap(Impl.eq(euint32.unwrap(asEuint32(a)), euint32.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates ne(euint8 a, euint32 b) and returns the result.\\n */\\n function ne(euint8 a, euint32 b) internal returns (ebool) {\\n if (!isInitialized(a)) {\\n a = asEuint8(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint32(0);\\n }\\n return ebool.wrap(Impl.ne(euint32.unwrap(asEuint32(a)), euint32.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates ge(euint8 a, euint32 b) and returns the result.\\n */\\n function ge(euint8 a, euint32 b) internal returns (ebool) {\\n if (!isInitialized(a)) {\\n a = asEuint8(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint32(0);\\n }\\n return ebool.wrap(Impl.ge(euint32.unwrap(asEuint32(a)), euint32.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates gt(euint8 a, euint32 b) and returns the result.\\n */\\n function gt(euint8 a, euint32 b) internal returns (ebool) {\\n if (!isInitialized(a)) {\\n a = asEuint8(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint32(0);\\n }\\n return ebool.wrap(Impl.gt(euint32.unwrap(asEuint32(a)), euint32.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates le(euint8 a, euint32 b) and returns the result.\\n */\\n function le(euint8 a, euint32 b) internal returns (ebool) {\\n if (!isInitialized(a)) {\\n a = asEuint8(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint32(0);\\n }\\n return ebool.wrap(Impl.le(euint32.unwrap(asEuint32(a)), euint32.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates lt(euint8 a, euint32 b) and returns the result.\\n */\\n function lt(euint8 a, euint32 b) internal returns (ebool) {\\n if (!isInitialized(a)) {\\n a = asEuint8(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint32(0);\\n }\\n return ebool.wrap(Impl.lt(euint32.unwrap(asEuint32(a)), euint32.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates min(euint8 a, euint32 b) and returns the result.\\n */\\n function min(euint8 a, euint32 b) internal returns (euint32) {\\n if (!isInitialized(a)) {\\n a = asEuint8(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint32(0);\\n }\\n return euint32.wrap(Impl.min(euint32.unwrap(asEuint32(a)), euint32.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates max(euint8 a, euint32 b) and returns the result.\\n */\\n function max(euint8 a, euint32 b) internal returns (euint32) {\\n if (!isInitialized(a)) {\\n a = asEuint8(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint32(0);\\n }\\n return euint32.wrap(Impl.max(euint32.unwrap(asEuint32(a)), euint32.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates add(euint8 a, euint64 b) and returns the result.\\n */\\n function add(euint8 a, euint64 b) internal returns (euint64) {\\n if (!isInitialized(a)) {\\n a = asEuint8(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint64(0);\\n }\\n return euint64.wrap(Impl.add(euint64.unwrap(asEuint64(a)), euint64.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates sub(euint8 a, euint64 b) and returns the result.\\n */\\n function sub(euint8 a, euint64 b) internal returns (euint64) {\\n if (!isInitialized(a)) {\\n a = asEuint8(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint64(0);\\n }\\n return euint64.wrap(Impl.sub(euint64.unwrap(asEuint64(a)), euint64.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates mul(euint8 a, euint64 b) and returns the result.\\n */\\n function mul(euint8 a, euint64 b) internal returns (euint64) {\\n if (!isInitialized(a)) {\\n a = asEuint8(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint64(0);\\n }\\n return euint64.wrap(Impl.mul(euint64.unwrap(asEuint64(a)), euint64.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates and(euint8 a, euint64 b) and returns the result.\\n */\\n function and(euint8 a, euint64 b) internal returns (euint64) {\\n if (!isInitialized(a)) {\\n a = asEuint8(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint64(0);\\n }\\n return euint64.wrap(Impl.and(euint64.unwrap(asEuint64(a)), euint64.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates or(euint8 a, euint64 b) and returns the result.\\n */\\n function or(euint8 a, euint64 b) internal returns (euint64) {\\n if (!isInitialized(a)) {\\n a = asEuint8(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint64(0);\\n }\\n return euint64.wrap(Impl.or(euint64.unwrap(asEuint64(a)), euint64.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates xor(euint8 a, euint64 b) and returns the result.\\n */\\n function xor(euint8 a, euint64 b) internal returns (euint64) {\\n if (!isInitialized(a)) {\\n a = asEuint8(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint64(0);\\n }\\n return euint64.wrap(Impl.xor(euint64.unwrap(asEuint64(a)), euint64.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates eq(euint8 a, euint64 b) and returns the result.\\n */\\n function eq(euint8 a, euint64 b) internal returns (ebool) {\\n if (!isInitialized(a)) {\\n a = asEuint8(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint64(0);\\n }\\n return ebool.wrap(Impl.eq(euint64.unwrap(asEuint64(a)), euint64.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates ne(euint8 a, euint64 b) and returns the result.\\n */\\n function ne(euint8 a, euint64 b) internal returns (ebool) {\\n if (!isInitialized(a)) {\\n a = asEuint8(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint64(0);\\n }\\n return ebool.wrap(Impl.ne(euint64.unwrap(asEuint64(a)), euint64.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates ge(euint8 a, euint64 b) and returns the result.\\n */\\n function ge(euint8 a, euint64 b) internal returns (ebool) {\\n if (!isInitialized(a)) {\\n a = asEuint8(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint64(0);\\n }\\n return ebool.wrap(Impl.ge(euint64.unwrap(asEuint64(a)), euint64.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates gt(euint8 a, euint64 b) and returns the result.\\n */\\n function gt(euint8 a, euint64 b) internal returns (ebool) {\\n if (!isInitialized(a)) {\\n a = asEuint8(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint64(0);\\n }\\n return ebool.wrap(Impl.gt(euint64.unwrap(asEuint64(a)), euint64.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates le(euint8 a, euint64 b) and returns the result.\\n */\\n function le(euint8 a, euint64 b) internal returns (ebool) {\\n if (!isInitialized(a)) {\\n a = asEuint8(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint64(0);\\n }\\n return ebool.wrap(Impl.le(euint64.unwrap(asEuint64(a)), euint64.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates lt(euint8 a, euint64 b) and returns the result.\\n */\\n function lt(euint8 a, euint64 b) internal returns (ebool) {\\n if (!isInitialized(a)) {\\n a = asEuint8(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint64(0);\\n }\\n return ebool.wrap(Impl.lt(euint64.unwrap(asEuint64(a)), euint64.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates min(euint8 a, euint64 b) and returns the result.\\n */\\n function min(euint8 a, euint64 b) internal returns (euint64) {\\n if (!isInitialized(a)) {\\n a = asEuint8(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint64(0);\\n }\\n return euint64.wrap(Impl.min(euint64.unwrap(asEuint64(a)), euint64.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates max(euint8 a, euint64 b) and returns the result.\\n */\\n function max(euint8 a, euint64 b) internal returns (euint64) {\\n if (!isInitialized(a)) {\\n a = asEuint8(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint64(0);\\n }\\n return euint64.wrap(Impl.max(euint64.unwrap(asEuint64(a)), euint64.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates add(euint8 a, euint128 b) and returns the result.\\n */\\n function add(euint8 a, euint128 b) internal returns (euint128) {\\n if (!isInitialized(a)) {\\n a = asEuint8(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint128(0);\\n }\\n return euint128.wrap(Impl.add(euint128.unwrap(asEuint128(a)), euint128.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates sub(euint8 a, euint128 b) and returns the result.\\n */\\n function sub(euint8 a, euint128 b) internal returns (euint128) {\\n if (!isInitialized(a)) {\\n a = asEuint8(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint128(0);\\n }\\n return euint128.wrap(Impl.sub(euint128.unwrap(asEuint128(a)), euint128.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates mul(euint8 a, euint128 b) and returns the result.\\n */\\n function mul(euint8 a, euint128 b) internal returns (euint128) {\\n if (!isInitialized(a)) {\\n a = asEuint8(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint128(0);\\n }\\n return euint128.wrap(Impl.mul(euint128.unwrap(asEuint128(a)), euint128.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates and(euint8 a, euint128 b) and returns the result.\\n */\\n function and(euint8 a, euint128 b) internal returns (euint128) {\\n if (!isInitialized(a)) {\\n a = asEuint8(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint128(0);\\n }\\n return euint128.wrap(Impl.and(euint128.unwrap(asEuint128(a)), euint128.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates or(euint8 a, euint128 b) and returns the result.\\n */\\n function or(euint8 a, euint128 b) internal returns (euint128) {\\n if (!isInitialized(a)) {\\n a = asEuint8(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint128(0);\\n }\\n return euint128.wrap(Impl.or(euint128.unwrap(asEuint128(a)), euint128.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates xor(euint8 a, euint128 b) and returns the result.\\n */\\n function xor(euint8 a, euint128 b) internal returns (euint128) {\\n if (!isInitialized(a)) {\\n a = asEuint8(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint128(0);\\n }\\n return euint128.wrap(Impl.xor(euint128.unwrap(asEuint128(a)), euint128.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates eq(euint8 a, euint128 b) and returns the result.\\n */\\n function eq(euint8 a, euint128 b) internal returns (ebool) {\\n if (!isInitialized(a)) {\\n a = asEuint8(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint128(0);\\n }\\n return ebool.wrap(Impl.eq(euint128.unwrap(asEuint128(a)), euint128.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates ne(euint8 a, euint128 b) and returns the result.\\n */\\n function ne(euint8 a, euint128 b) internal returns (ebool) {\\n if (!isInitialized(a)) {\\n a = asEuint8(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint128(0);\\n }\\n return ebool.wrap(Impl.ne(euint128.unwrap(asEuint128(a)), euint128.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates ge(euint8 a, euint128 b) and returns the result.\\n */\\n function ge(euint8 a, euint128 b) internal returns (ebool) {\\n if (!isInitialized(a)) {\\n a = asEuint8(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint128(0);\\n }\\n return ebool.wrap(Impl.ge(euint128.unwrap(asEuint128(a)), euint128.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates gt(euint8 a, euint128 b) and returns the result.\\n */\\n function gt(euint8 a, euint128 b) internal returns (ebool) {\\n if (!isInitialized(a)) {\\n a = asEuint8(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint128(0);\\n }\\n return ebool.wrap(Impl.gt(euint128.unwrap(asEuint128(a)), euint128.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates le(euint8 a, euint128 b) and returns the result.\\n */\\n function le(euint8 a, euint128 b) internal returns (ebool) {\\n if (!isInitialized(a)) {\\n a = asEuint8(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint128(0);\\n }\\n return ebool.wrap(Impl.le(euint128.unwrap(asEuint128(a)), euint128.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates lt(euint8 a, euint128 b) and returns the result.\\n */\\n function lt(euint8 a, euint128 b) internal returns (ebool) {\\n if (!isInitialized(a)) {\\n a = asEuint8(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint128(0);\\n }\\n return ebool.wrap(Impl.lt(euint128.unwrap(asEuint128(a)), euint128.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates min(euint8 a, euint128 b) and returns the result.\\n */\\n function min(euint8 a, euint128 b) internal returns (euint128) {\\n if (!isInitialized(a)) {\\n a = asEuint8(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint128(0);\\n }\\n return euint128.wrap(Impl.min(euint128.unwrap(asEuint128(a)), euint128.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates max(euint8 a, euint128 b) and returns the result.\\n */\\n function max(euint8 a, euint128 b) internal returns (euint128) {\\n if (!isInitialized(a)) {\\n a = asEuint8(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint128(0);\\n }\\n return euint128.wrap(Impl.max(euint128.unwrap(asEuint128(a)), euint128.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates and(euint8 a, euint256 b) and returns the result.\\n */\\n function and(euint8 a, euint256 b) internal returns (euint256) {\\n if (!isInitialized(a)) {\\n a = asEuint8(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint256(0);\\n }\\n return euint256.wrap(Impl.and(euint256.unwrap(asEuint256(a)), euint256.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates or(euint8 a, euint256 b) and returns the result.\\n */\\n function or(euint8 a, euint256 b) internal returns (euint256) {\\n if (!isInitialized(a)) {\\n a = asEuint8(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint256(0);\\n }\\n return euint256.wrap(Impl.or(euint256.unwrap(asEuint256(a)), euint256.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates xor(euint8 a, euint256 b) and returns the result.\\n */\\n function xor(euint8 a, euint256 b) internal returns (euint256) {\\n if (!isInitialized(a)) {\\n a = asEuint8(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint256(0);\\n }\\n return euint256.wrap(Impl.xor(euint256.unwrap(asEuint256(a)), euint256.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates eq(euint8 a, euint256 b) and returns the result.\\n */\\n function eq(euint8 a, euint256 b) internal returns (ebool) {\\n if (!isInitialized(a)) {\\n a = asEuint8(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint256(0);\\n }\\n return ebool.wrap(Impl.eq(euint256.unwrap(asEuint256(a)), euint256.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates ne(euint8 a, euint256 b) and returns the result.\\n */\\n function ne(euint8 a, euint256 b) internal returns (ebool) {\\n if (!isInitialized(a)) {\\n a = asEuint8(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint256(0);\\n }\\n return ebool.wrap(Impl.ne(euint256.unwrap(asEuint256(a)), euint256.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates add(euint16 a, euint8 b) and returns the result.\\n */\\n function add(euint16 a, euint8 b) internal returns (euint16) {\\n if (!isInitialized(a)) {\\n a = asEuint16(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint8(0);\\n }\\n return euint16.wrap(Impl.add(euint16.unwrap(a), euint16.unwrap(asEuint16(b)), false));\\n }\\n\\n /**\\n * @dev Evaluates sub(euint16 a, euint8 b) and returns the result.\\n */\\n function sub(euint16 a, euint8 b) internal returns (euint16) {\\n if (!isInitialized(a)) {\\n a = asEuint16(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint8(0);\\n }\\n return euint16.wrap(Impl.sub(euint16.unwrap(a), euint16.unwrap(asEuint16(b)), false));\\n }\\n\\n /**\\n * @dev Evaluates mul(euint16 a, euint8 b) and returns the result.\\n */\\n function mul(euint16 a, euint8 b) internal returns (euint16) {\\n if (!isInitialized(a)) {\\n a = asEuint16(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint8(0);\\n }\\n return euint16.wrap(Impl.mul(euint16.unwrap(a), euint16.unwrap(asEuint16(b)), false));\\n }\\n\\n /**\\n * @dev Evaluates and(euint16 a, euint8 b) and returns the result.\\n */\\n function and(euint16 a, euint8 b) internal returns (euint16) {\\n if (!isInitialized(a)) {\\n a = asEuint16(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint8(0);\\n }\\n return euint16.wrap(Impl.and(euint16.unwrap(a), euint16.unwrap(asEuint16(b)), false));\\n }\\n\\n /**\\n * @dev Evaluates or(euint16 a, euint8 b) and returns the result.\\n */\\n function or(euint16 a, euint8 b) internal returns (euint16) {\\n if (!isInitialized(a)) {\\n a = asEuint16(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint8(0);\\n }\\n return euint16.wrap(Impl.or(euint16.unwrap(a), euint16.unwrap(asEuint16(b)), false));\\n }\\n\\n /**\\n * @dev Evaluates xor(euint16 a, euint8 b) and returns the result.\\n */\\n function xor(euint16 a, euint8 b) internal returns (euint16) {\\n if (!isInitialized(a)) {\\n a = asEuint16(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint8(0);\\n }\\n return euint16.wrap(Impl.xor(euint16.unwrap(a), euint16.unwrap(asEuint16(b)), false));\\n }\\n\\n /**\\n * @dev Evaluates eq(euint16 a, euint8 b) and returns the result.\\n */\\n function eq(euint16 a, euint8 b) internal returns (ebool) {\\n if (!isInitialized(a)) {\\n a = asEuint16(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint8(0);\\n }\\n return ebool.wrap(Impl.eq(euint16.unwrap(a), euint16.unwrap(asEuint16(b)), false));\\n }\\n\\n /**\\n * @dev Evaluates ne(euint16 a, euint8 b) and returns the result.\\n */\\n function ne(euint16 a, euint8 b) internal returns (ebool) {\\n if (!isInitialized(a)) {\\n a = asEuint16(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint8(0);\\n }\\n return ebool.wrap(Impl.ne(euint16.unwrap(a), euint16.unwrap(asEuint16(b)), false));\\n }\\n\\n /**\\n * @dev Evaluates ge(euint16 a, euint8 b) and returns the result.\\n */\\n function ge(euint16 a, euint8 b) internal returns (ebool) {\\n if (!isInitialized(a)) {\\n a = asEuint16(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint8(0);\\n }\\n return ebool.wrap(Impl.ge(euint16.unwrap(a), euint16.unwrap(asEuint16(b)), false));\\n }\\n\\n /**\\n * @dev Evaluates gt(euint16 a, euint8 b) and returns the result.\\n */\\n function gt(euint16 a, euint8 b) internal returns (ebool) {\\n if (!isInitialized(a)) {\\n a = asEuint16(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint8(0);\\n }\\n return ebool.wrap(Impl.gt(euint16.unwrap(a), euint16.unwrap(asEuint16(b)), false));\\n }\\n\\n /**\\n * @dev Evaluates le(euint16 a, euint8 b) and returns the result.\\n */\\n function le(euint16 a, euint8 b) internal returns (ebool) {\\n if (!isInitialized(a)) {\\n a = asEuint16(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint8(0);\\n }\\n return ebool.wrap(Impl.le(euint16.unwrap(a), euint16.unwrap(asEuint16(b)), false));\\n }\\n\\n /**\\n * @dev Evaluates lt(euint16 a, euint8 b) and returns the result.\\n */\\n function lt(euint16 a, euint8 b) internal returns (ebool) {\\n if (!isInitialized(a)) {\\n a = asEuint16(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint8(0);\\n }\\n return ebool.wrap(Impl.lt(euint16.unwrap(a), euint16.unwrap(asEuint16(b)), false));\\n }\\n\\n /**\\n * @dev Evaluates min(euint16 a, euint8 b) and returns the result.\\n */\\n function min(euint16 a, euint8 b) internal returns (euint16) {\\n if (!isInitialized(a)) {\\n a = asEuint16(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint8(0);\\n }\\n return euint16.wrap(Impl.min(euint16.unwrap(a), euint16.unwrap(asEuint16(b)), false));\\n }\\n\\n /**\\n * @dev Evaluates max(euint16 a, euint8 b) and returns the result.\\n */\\n function max(euint16 a, euint8 b) internal returns (euint16) {\\n if (!isInitialized(a)) {\\n a = asEuint16(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint8(0);\\n }\\n return euint16.wrap(Impl.max(euint16.unwrap(a), euint16.unwrap(asEuint16(b)), false));\\n }\\n\\n /**\\n * @dev Evaluates add(euint16 a, euint16 b) and returns the result.\\n */\\n function add(euint16 a, euint16 b) internal returns (euint16) {\\n if (!isInitialized(a)) {\\n a = asEuint16(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint16(0);\\n }\\n return euint16.wrap(Impl.add(euint16.unwrap(a), euint16.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates sub(euint16 a, euint16 b) and returns the result.\\n */\\n function sub(euint16 a, euint16 b) internal returns (euint16) {\\n if (!isInitialized(a)) {\\n a = asEuint16(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint16(0);\\n }\\n return euint16.wrap(Impl.sub(euint16.unwrap(a), euint16.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates mul(euint16 a, euint16 b) and returns the result.\\n */\\n function mul(euint16 a, euint16 b) internal returns (euint16) {\\n if (!isInitialized(a)) {\\n a = asEuint16(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint16(0);\\n }\\n return euint16.wrap(Impl.mul(euint16.unwrap(a), euint16.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates and(euint16 a, euint16 b) and returns the result.\\n */\\n function and(euint16 a, euint16 b) internal returns (euint16) {\\n if (!isInitialized(a)) {\\n a = asEuint16(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint16(0);\\n }\\n return euint16.wrap(Impl.and(euint16.unwrap(a), euint16.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates or(euint16 a, euint16 b) and returns the result.\\n */\\n function or(euint16 a, euint16 b) internal returns (euint16) {\\n if (!isInitialized(a)) {\\n a = asEuint16(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint16(0);\\n }\\n return euint16.wrap(Impl.or(euint16.unwrap(a), euint16.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates xor(euint16 a, euint16 b) and returns the result.\\n */\\n function xor(euint16 a, euint16 b) internal returns (euint16) {\\n if (!isInitialized(a)) {\\n a = asEuint16(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint16(0);\\n }\\n return euint16.wrap(Impl.xor(euint16.unwrap(a), euint16.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates eq(euint16 a, euint16 b) and returns the result.\\n */\\n function eq(euint16 a, euint16 b) internal returns (ebool) {\\n if (!isInitialized(a)) {\\n a = asEuint16(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint16(0);\\n }\\n return ebool.wrap(Impl.eq(euint16.unwrap(a), euint16.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates ne(euint16 a, euint16 b) and returns the result.\\n */\\n function ne(euint16 a, euint16 b) internal returns (ebool) {\\n if (!isInitialized(a)) {\\n a = asEuint16(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint16(0);\\n }\\n return ebool.wrap(Impl.ne(euint16.unwrap(a), euint16.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates ge(euint16 a, euint16 b) and returns the result.\\n */\\n function ge(euint16 a, euint16 b) internal returns (ebool) {\\n if (!isInitialized(a)) {\\n a = asEuint16(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint16(0);\\n }\\n return ebool.wrap(Impl.ge(euint16.unwrap(a), euint16.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates gt(euint16 a, euint16 b) and returns the result.\\n */\\n function gt(euint16 a, euint16 b) internal returns (ebool) {\\n if (!isInitialized(a)) {\\n a = asEuint16(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint16(0);\\n }\\n return ebool.wrap(Impl.gt(euint16.unwrap(a), euint16.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates le(euint16 a, euint16 b) and returns the result.\\n */\\n function le(euint16 a, euint16 b) internal returns (ebool) {\\n if (!isInitialized(a)) {\\n a = asEuint16(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint16(0);\\n }\\n return ebool.wrap(Impl.le(euint16.unwrap(a), euint16.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates lt(euint16 a, euint16 b) and returns the result.\\n */\\n function lt(euint16 a, euint16 b) internal returns (ebool) {\\n if (!isInitialized(a)) {\\n a = asEuint16(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint16(0);\\n }\\n return ebool.wrap(Impl.lt(euint16.unwrap(a), euint16.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates min(euint16 a, euint16 b) and returns the result.\\n */\\n function min(euint16 a, euint16 b) internal returns (euint16) {\\n if (!isInitialized(a)) {\\n a = asEuint16(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint16(0);\\n }\\n return euint16.wrap(Impl.min(euint16.unwrap(a), euint16.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates max(euint16 a, euint16 b) and returns the result.\\n */\\n function max(euint16 a, euint16 b) internal returns (euint16) {\\n if (!isInitialized(a)) {\\n a = asEuint16(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint16(0);\\n }\\n return euint16.wrap(Impl.max(euint16.unwrap(a), euint16.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates add(euint16 a, euint32 b) and returns the result.\\n */\\n function add(euint16 a, euint32 b) internal returns (euint32) {\\n if (!isInitialized(a)) {\\n a = asEuint16(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint32(0);\\n }\\n return euint32.wrap(Impl.add(euint32.unwrap(asEuint32(a)), euint32.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates sub(euint16 a, euint32 b) and returns the result.\\n */\\n function sub(euint16 a, euint32 b) internal returns (euint32) {\\n if (!isInitialized(a)) {\\n a = asEuint16(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint32(0);\\n }\\n return euint32.wrap(Impl.sub(euint32.unwrap(asEuint32(a)), euint32.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates mul(euint16 a, euint32 b) and returns the result.\\n */\\n function mul(euint16 a, euint32 b) internal returns (euint32) {\\n if (!isInitialized(a)) {\\n a = asEuint16(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint32(0);\\n }\\n return euint32.wrap(Impl.mul(euint32.unwrap(asEuint32(a)), euint32.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates and(euint16 a, euint32 b) and returns the result.\\n */\\n function and(euint16 a, euint32 b) internal returns (euint32) {\\n if (!isInitialized(a)) {\\n a = asEuint16(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint32(0);\\n }\\n return euint32.wrap(Impl.and(euint32.unwrap(asEuint32(a)), euint32.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates or(euint16 a, euint32 b) and returns the result.\\n */\\n function or(euint16 a, euint32 b) internal returns (euint32) {\\n if (!isInitialized(a)) {\\n a = asEuint16(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint32(0);\\n }\\n return euint32.wrap(Impl.or(euint32.unwrap(asEuint32(a)), euint32.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates xor(euint16 a, euint32 b) and returns the result.\\n */\\n function xor(euint16 a, euint32 b) internal returns (euint32) {\\n if (!isInitialized(a)) {\\n a = asEuint16(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint32(0);\\n }\\n return euint32.wrap(Impl.xor(euint32.unwrap(asEuint32(a)), euint32.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates eq(euint16 a, euint32 b) and returns the result.\\n */\\n function eq(euint16 a, euint32 b) internal returns (ebool) {\\n if (!isInitialized(a)) {\\n a = asEuint16(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint32(0);\\n }\\n return ebool.wrap(Impl.eq(euint32.unwrap(asEuint32(a)), euint32.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates ne(euint16 a, euint32 b) and returns the result.\\n */\\n function ne(euint16 a, euint32 b) internal returns (ebool) {\\n if (!isInitialized(a)) {\\n a = asEuint16(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint32(0);\\n }\\n return ebool.wrap(Impl.ne(euint32.unwrap(asEuint32(a)), euint32.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates ge(euint16 a, euint32 b) and returns the result.\\n */\\n function ge(euint16 a, euint32 b) internal returns (ebool) {\\n if (!isInitialized(a)) {\\n a = asEuint16(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint32(0);\\n }\\n return ebool.wrap(Impl.ge(euint32.unwrap(asEuint32(a)), euint32.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates gt(euint16 a, euint32 b) and returns the result.\\n */\\n function gt(euint16 a, euint32 b) internal returns (ebool) {\\n if (!isInitialized(a)) {\\n a = asEuint16(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint32(0);\\n }\\n return ebool.wrap(Impl.gt(euint32.unwrap(asEuint32(a)), euint32.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates le(euint16 a, euint32 b) and returns the result.\\n */\\n function le(euint16 a, euint32 b) internal returns (ebool) {\\n if (!isInitialized(a)) {\\n a = asEuint16(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint32(0);\\n }\\n return ebool.wrap(Impl.le(euint32.unwrap(asEuint32(a)), euint32.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates lt(euint16 a, euint32 b) and returns the result.\\n */\\n function lt(euint16 a, euint32 b) internal returns (ebool) {\\n if (!isInitialized(a)) {\\n a = asEuint16(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint32(0);\\n }\\n return ebool.wrap(Impl.lt(euint32.unwrap(asEuint32(a)), euint32.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates min(euint16 a, euint32 b) and returns the result.\\n */\\n function min(euint16 a, euint32 b) internal returns (euint32) {\\n if (!isInitialized(a)) {\\n a = asEuint16(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint32(0);\\n }\\n return euint32.wrap(Impl.min(euint32.unwrap(asEuint32(a)), euint32.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates max(euint16 a, euint32 b) and returns the result.\\n */\\n function max(euint16 a, euint32 b) internal returns (euint32) {\\n if (!isInitialized(a)) {\\n a = asEuint16(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint32(0);\\n }\\n return euint32.wrap(Impl.max(euint32.unwrap(asEuint32(a)), euint32.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates add(euint16 a, euint64 b) and returns the result.\\n */\\n function add(euint16 a, euint64 b) internal returns (euint64) {\\n if (!isInitialized(a)) {\\n a = asEuint16(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint64(0);\\n }\\n return euint64.wrap(Impl.add(euint64.unwrap(asEuint64(a)), euint64.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates sub(euint16 a, euint64 b) and returns the result.\\n */\\n function sub(euint16 a, euint64 b) internal returns (euint64) {\\n if (!isInitialized(a)) {\\n a = asEuint16(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint64(0);\\n }\\n return euint64.wrap(Impl.sub(euint64.unwrap(asEuint64(a)), euint64.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates mul(euint16 a, euint64 b) and returns the result.\\n */\\n function mul(euint16 a, euint64 b) internal returns (euint64) {\\n if (!isInitialized(a)) {\\n a = asEuint16(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint64(0);\\n }\\n return euint64.wrap(Impl.mul(euint64.unwrap(asEuint64(a)), euint64.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates and(euint16 a, euint64 b) and returns the result.\\n */\\n function and(euint16 a, euint64 b) internal returns (euint64) {\\n if (!isInitialized(a)) {\\n a = asEuint16(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint64(0);\\n }\\n return euint64.wrap(Impl.and(euint64.unwrap(asEuint64(a)), euint64.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates or(euint16 a, euint64 b) and returns the result.\\n */\\n function or(euint16 a, euint64 b) internal returns (euint64) {\\n if (!isInitialized(a)) {\\n a = asEuint16(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint64(0);\\n }\\n return euint64.wrap(Impl.or(euint64.unwrap(asEuint64(a)), euint64.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates xor(euint16 a, euint64 b) and returns the result.\\n */\\n function xor(euint16 a, euint64 b) internal returns (euint64) {\\n if (!isInitialized(a)) {\\n a = asEuint16(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint64(0);\\n }\\n return euint64.wrap(Impl.xor(euint64.unwrap(asEuint64(a)), euint64.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates eq(euint16 a, euint64 b) and returns the result.\\n */\\n function eq(euint16 a, euint64 b) internal returns (ebool) {\\n if (!isInitialized(a)) {\\n a = asEuint16(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint64(0);\\n }\\n return ebool.wrap(Impl.eq(euint64.unwrap(asEuint64(a)), euint64.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates ne(euint16 a, euint64 b) and returns the result.\\n */\\n function ne(euint16 a, euint64 b) internal returns (ebool) {\\n if (!isInitialized(a)) {\\n a = asEuint16(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint64(0);\\n }\\n return ebool.wrap(Impl.ne(euint64.unwrap(asEuint64(a)), euint64.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates ge(euint16 a, euint64 b) and returns the result.\\n */\\n function ge(euint16 a, euint64 b) internal returns (ebool) {\\n if (!isInitialized(a)) {\\n a = asEuint16(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint64(0);\\n }\\n return ebool.wrap(Impl.ge(euint64.unwrap(asEuint64(a)), euint64.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates gt(euint16 a, euint64 b) and returns the result.\\n */\\n function gt(euint16 a, euint64 b) internal returns (ebool) {\\n if (!isInitialized(a)) {\\n a = asEuint16(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint64(0);\\n }\\n return ebool.wrap(Impl.gt(euint64.unwrap(asEuint64(a)), euint64.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates le(euint16 a, euint64 b) and returns the result.\\n */\\n function le(euint16 a, euint64 b) internal returns (ebool) {\\n if (!isInitialized(a)) {\\n a = asEuint16(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint64(0);\\n }\\n return ebool.wrap(Impl.le(euint64.unwrap(asEuint64(a)), euint64.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates lt(euint16 a, euint64 b) and returns the result.\\n */\\n function lt(euint16 a, euint64 b) internal returns (ebool) {\\n if (!isInitialized(a)) {\\n a = asEuint16(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint64(0);\\n }\\n return ebool.wrap(Impl.lt(euint64.unwrap(asEuint64(a)), euint64.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates min(euint16 a, euint64 b) and returns the result.\\n */\\n function min(euint16 a, euint64 b) internal returns (euint64) {\\n if (!isInitialized(a)) {\\n a = asEuint16(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint64(0);\\n }\\n return euint64.wrap(Impl.min(euint64.unwrap(asEuint64(a)), euint64.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates max(euint16 a, euint64 b) and returns the result.\\n */\\n function max(euint16 a, euint64 b) internal returns (euint64) {\\n if (!isInitialized(a)) {\\n a = asEuint16(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint64(0);\\n }\\n return euint64.wrap(Impl.max(euint64.unwrap(asEuint64(a)), euint64.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates add(euint16 a, euint128 b) and returns the result.\\n */\\n function add(euint16 a, euint128 b) internal returns (euint128) {\\n if (!isInitialized(a)) {\\n a = asEuint16(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint128(0);\\n }\\n return euint128.wrap(Impl.add(euint128.unwrap(asEuint128(a)), euint128.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates sub(euint16 a, euint128 b) and returns the result.\\n */\\n function sub(euint16 a, euint128 b) internal returns (euint128) {\\n if (!isInitialized(a)) {\\n a = asEuint16(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint128(0);\\n }\\n return euint128.wrap(Impl.sub(euint128.unwrap(asEuint128(a)), euint128.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates mul(euint16 a, euint128 b) and returns the result.\\n */\\n function mul(euint16 a, euint128 b) internal returns (euint128) {\\n if (!isInitialized(a)) {\\n a = asEuint16(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint128(0);\\n }\\n return euint128.wrap(Impl.mul(euint128.unwrap(asEuint128(a)), euint128.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates and(euint16 a, euint128 b) and returns the result.\\n */\\n function and(euint16 a, euint128 b) internal returns (euint128) {\\n if (!isInitialized(a)) {\\n a = asEuint16(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint128(0);\\n }\\n return euint128.wrap(Impl.and(euint128.unwrap(asEuint128(a)), euint128.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates or(euint16 a, euint128 b) and returns the result.\\n */\\n function or(euint16 a, euint128 b) internal returns (euint128) {\\n if (!isInitialized(a)) {\\n a = asEuint16(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint128(0);\\n }\\n return euint128.wrap(Impl.or(euint128.unwrap(asEuint128(a)), euint128.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates xor(euint16 a, euint128 b) and returns the result.\\n */\\n function xor(euint16 a, euint128 b) internal returns (euint128) {\\n if (!isInitialized(a)) {\\n a = asEuint16(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint128(0);\\n }\\n return euint128.wrap(Impl.xor(euint128.unwrap(asEuint128(a)), euint128.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates eq(euint16 a, euint128 b) and returns the result.\\n */\\n function eq(euint16 a, euint128 b) internal returns (ebool) {\\n if (!isInitialized(a)) {\\n a = asEuint16(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint128(0);\\n }\\n return ebool.wrap(Impl.eq(euint128.unwrap(asEuint128(a)), euint128.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates ne(euint16 a, euint128 b) and returns the result.\\n */\\n function ne(euint16 a, euint128 b) internal returns (ebool) {\\n if (!isInitialized(a)) {\\n a = asEuint16(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint128(0);\\n }\\n return ebool.wrap(Impl.ne(euint128.unwrap(asEuint128(a)), euint128.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates ge(euint16 a, euint128 b) and returns the result.\\n */\\n function ge(euint16 a, euint128 b) internal returns (ebool) {\\n if (!isInitialized(a)) {\\n a = asEuint16(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint128(0);\\n }\\n return ebool.wrap(Impl.ge(euint128.unwrap(asEuint128(a)), euint128.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates gt(euint16 a, euint128 b) and returns the result.\\n */\\n function gt(euint16 a, euint128 b) internal returns (ebool) {\\n if (!isInitialized(a)) {\\n a = asEuint16(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint128(0);\\n }\\n return ebool.wrap(Impl.gt(euint128.unwrap(asEuint128(a)), euint128.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates le(euint16 a, euint128 b) and returns the result.\\n */\\n function le(euint16 a, euint128 b) internal returns (ebool) {\\n if (!isInitialized(a)) {\\n a = asEuint16(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint128(0);\\n }\\n return ebool.wrap(Impl.le(euint128.unwrap(asEuint128(a)), euint128.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates lt(euint16 a, euint128 b) and returns the result.\\n */\\n function lt(euint16 a, euint128 b) internal returns (ebool) {\\n if (!isInitialized(a)) {\\n a = asEuint16(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint128(0);\\n }\\n return ebool.wrap(Impl.lt(euint128.unwrap(asEuint128(a)), euint128.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates min(euint16 a, euint128 b) and returns the result.\\n */\\n function min(euint16 a, euint128 b) internal returns (euint128) {\\n if (!isInitialized(a)) {\\n a = asEuint16(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint128(0);\\n }\\n return euint128.wrap(Impl.min(euint128.unwrap(asEuint128(a)), euint128.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates max(euint16 a, euint128 b) and returns the result.\\n */\\n function max(euint16 a, euint128 b) internal returns (euint128) {\\n if (!isInitialized(a)) {\\n a = asEuint16(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint128(0);\\n }\\n return euint128.wrap(Impl.max(euint128.unwrap(asEuint128(a)), euint128.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates and(euint16 a, euint256 b) and returns the result.\\n */\\n function and(euint16 a, euint256 b) internal returns (euint256) {\\n if (!isInitialized(a)) {\\n a = asEuint16(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint256(0);\\n }\\n return euint256.wrap(Impl.and(euint256.unwrap(asEuint256(a)), euint256.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates or(euint16 a, euint256 b) and returns the result.\\n */\\n function or(euint16 a, euint256 b) internal returns (euint256) {\\n if (!isInitialized(a)) {\\n a = asEuint16(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint256(0);\\n }\\n return euint256.wrap(Impl.or(euint256.unwrap(asEuint256(a)), euint256.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates xor(euint16 a, euint256 b) and returns the result.\\n */\\n function xor(euint16 a, euint256 b) internal returns (euint256) {\\n if (!isInitialized(a)) {\\n a = asEuint16(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint256(0);\\n }\\n return euint256.wrap(Impl.xor(euint256.unwrap(asEuint256(a)), euint256.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates eq(euint16 a, euint256 b) and returns the result.\\n */\\n function eq(euint16 a, euint256 b) internal returns (ebool) {\\n if (!isInitialized(a)) {\\n a = asEuint16(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint256(0);\\n }\\n return ebool.wrap(Impl.eq(euint256.unwrap(asEuint256(a)), euint256.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates ne(euint16 a, euint256 b) and returns the result.\\n */\\n function ne(euint16 a, euint256 b) internal returns (ebool) {\\n if (!isInitialized(a)) {\\n a = asEuint16(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint256(0);\\n }\\n return ebool.wrap(Impl.ne(euint256.unwrap(asEuint256(a)), euint256.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates add(euint32 a, euint8 b) and returns the result.\\n */\\n function add(euint32 a, euint8 b) internal returns (euint32) {\\n if (!isInitialized(a)) {\\n a = asEuint32(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint8(0);\\n }\\n return euint32.wrap(Impl.add(euint32.unwrap(a), euint32.unwrap(asEuint32(b)), false));\\n }\\n\\n /**\\n * @dev Evaluates sub(euint32 a, euint8 b) and returns the result.\\n */\\n function sub(euint32 a, euint8 b) internal returns (euint32) {\\n if (!isInitialized(a)) {\\n a = asEuint32(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint8(0);\\n }\\n return euint32.wrap(Impl.sub(euint32.unwrap(a), euint32.unwrap(asEuint32(b)), false));\\n }\\n\\n /**\\n * @dev Evaluates mul(euint32 a, euint8 b) and returns the result.\\n */\\n function mul(euint32 a, euint8 b) internal returns (euint32) {\\n if (!isInitialized(a)) {\\n a = asEuint32(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint8(0);\\n }\\n return euint32.wrap(Impl.mul(euint32.unwrap(a), euint32.unwrap(asEuint32(b)), false));\\n }\\n\\n /**\\n * @dev Evaluates and(euint32 a, euint8 b) and returns the result.\\n */\\n function and(euint32 a, euint8 b) internal returns (euint32) {\\n if (!isInitialized(a)) {\\n a = asEuint32(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint8(0);\\n }\\n return euint32.wrap(Impl.and(euint32.unwrap(a), euint32.unwrap(asEuint32(b)), false));\\n }\\n\\n /**\\n * @dev Evaluates or(euint32 a, euint8 b) and returns the result.\\n */\\n function or(euint32 a, euint8 b) internal returns (euint32) {\\n if (!isInitialized(a)) {\\n a = asEuint32(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint8(0);\\n }\\n return euint32.wrap(Impl.or(euint32.unwrap(a), euint32.unwrap(asEuint32(b)), false));\\n }\\n\\n /**\\n * @dev Evaluates xor(euint32 a, euint8 b) and returns the result.\\n */\\n function xor(euint32 a, euint8 b) internal returns (euint32) {\\n if (!isInitialized(a)) {\\n a = asEuint32(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint8(0);\\n }\\n return euint32.wrap(Impl.xor(euint32.unwrap(a), euint32.unwrap(asEuint32(b)), false));\\n }\\n\\n /**\\n * @dev Evaluates eq(euint32 a, euint8 b) and returns the result.\\n */\\n function eq(euint32 a, euint8 b) internal returns (ebool) {\\n if (!isInitialized(a)) {\\n a = asEuint32(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint8(0);\\n }\\n return ebool.wrap(Impl.eq(euint32.unwrap(a), euint32.unwrap(asEuint32(b)), false));\\n }\\n\\n /**\\n * @dev Evaluates ne(euint32 a, euint8 b) and returns the result.\\n */\\n function ne(euint32 a, euint8 b) internal returns (ebool) {\\n if (!isInitialized(a)) {\\n a = asEuint32(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint8(0);\\n }\\n return ebool.wrap(Impl.ne(euint32.unwrap(a), euint32.unwrap(asEuint32(b)), false));\\n }\\n\\n /**\\n * @dev Evaluates ge(euint32 a, euint8 b) and returns the result.\\n */\\n function ge(euint32 a, euint8 b) internal returns (ebool) {\\n if (!isInitialized(a)) {\\n a = asEuint32(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint8(0);\\n }\\n return ebool.wrap(Impl.ge(euint32.unwrap(a), euint32.unwrap(asEuint32(b)), false));\\n }\\n\\n /**\\n * @dev Evaluates gt(euint32 a, euint8 b) and returns the result.\\n */\\n function gt(euint32 a, euint8 b) internal returns (ebool) {\\n if (!isInitialized(a)) {\\n a = asEuint32(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint8(0);\\n }\\n return ebool.wrap(Impl.gt(euint32.unwrap(a), euint32.unwrap(asEuint32(b)), false));\\n }\\n\\n /**\\n * @dev Evaluates le(euint32 a, euint8 b) and returns the result.\\n */\\n function le(euint32 a, euint8 b) internal returns (ebool) {\\n if (!isInitialized(a)) {\\n a = asEuint32(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint8(0);\\n }\\n return ebool.wrap(Impl.le(euint32.unwrap(a), euint32.unwrap(asEuint32(b)), false));\\n }\\n\\n /**\\n * @dev Evaluates lt(euint32 a, euint8 b) and returns the result.\\n */\\n function lt(euint32 a, euint8 b) internal returns (ebool) {\\n if (!isInitialized(a)) {\\n a = asEuint32(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint8(0);\\n }\\n return ebool.wrap(Impl.lt(euint32.unwrap(a), euint32.unwrap(asEuint32(b)), false));\\n }\\n\\n /**\\n * @dev Evaluates min(euint32 a, euint8 b) and returns the result.\\n */\\n function min(euint32 a, euint8 b) internal returns (euint32) {\\n if (!isInitialized(a)) {\\n a = asEuint32(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint8(0);\\n }\\n return euint32.wrap(Impl.min(euint32.unwrap(a), euint32.unwrap(asEuint32(b)), false));\\n }\\n\\n /**\\n * @dev Evaluates max(euint32 a, euint8 b) and returns the result.\\n */\\n function max(euint32 a, euint8 b) internal returns (euint32) {\\n if (!isInitialized(a)) {\\n a = asEuint32(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint8(0);\\n }\\n return euint32.wrap(Impl.max(euint32.unwrap(a), euint32.unwrap(asEuint32(b)), false));\\n }\\n\\n /**\\n * @dev Evaluates add(euint32 a, euint16 b) and returns the result.\\n */\\n function add(euint32 a, euint16 b) internal returns (euint32) {\\n if (!isInitialized(a)) {\\n a = asEuint32(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint16(0);\\n }\\n return euint32.wrap(Impl.add(euint32.unwrap(a), euint32.unwrap(asEuint32(b)), false));\\n }\\n\\n /**\\n * @dev Evaluates sub(euint32 a, euint16 b) and returns the result.\\n */\\n function sub(euint32 a, euint16 b) internal returns (euint32) {\\n if (!isInitialized(a)) {\\n a = asEuint32(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint16(0);\\n }\\n return euint32.wrap(Impl.sub(euint32.unwrap(a), euint32.unwrap(asEuint32(b)), false));\\n }\\n\\n /**\\n * @dev Evaluates mul(euint32 a, euint16 b) and returns the result.\\n */\\n function mul(euint32 a, euint16 b) internal returns (euint32) {\\n if (!isInitialized(a)) {\\n a = asEuint32(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint16(0);\\n }\\n return euint32.wrap(Impl.mul(euint32.unwrap(a), euint32.unwrap(asEuint32(b)), false));\\n }\\n\\n /**\\n * @dev Evaluates and(euint32 a, euint16 b) and returns the result.\\n */\\n function and(euint32 a, euint16 b) internal returns (euint32) {\\n if (!isInitialized(a)) {\\n a = asEuint32(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint16(0);\\n }\\n return euint32.wrap(Impl.and(euint32.unwrap(a), euint32.unwrap(asEuint32(b)), false));\\n }\\n\\n /**\\n * @dev Evaluates or(euint32 a, euint16 b) and returns the result.\\n */\\n function or(euint32 a, euint16 b) internal returns (euint32) {\\n if (!isInitialized(a)) {\\n a = asEuint32(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint16(0);\\n }\\n return euint32.wrap(Impl.or(euint32.unwrap(a), euint32.unwrap(asEuint32(b)), false));\\n }\\n\\n /**\\n * @dev Evaluates xor(euint32 a, euint16 b) and returns the result.\\n */\\n function xor(euint32 a, euint16 b) internal returns (euint32) {\\n if (!isInitialized(a)) {\\n a = asEuint32(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint16(0);\\n }\\n return euint32.wrap(Impl.xor(euint32.unwrap(a), euint32.unwrap(asEuint32(b)), false));\\n }\\n\\n /**\\n * @dev Evaluates eq(euint32 a, euint16 b) and returns the result.\\n */\\n function eq(euint32 a, euint16 b) internal returns (ebool) {\\n if (!isInitialized(a)) {\\n a = asEuint32(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint16(0);\\n }\\n return ebool.wrap(Impl.eq(euint32.unwrap(a), euint32.unwrap(asEuint32(b)), false));\\n }\\n\\n /**\\n * @dev Evaluates ne(euint32 a, euint16 b) and returns the result.\\n */\\n function ne(euint32 a, euint16 b) internal returns (ebool) {\\n if (!isInitialized(a)) {\\n a = asEuint32(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint16(0);\\n }\\n return ebool.wrap(Impl.ne(euint32.unwrap(a), euint32.unwrap(asEuint32(b)), false));\\n }\\n\\n /**\\n * @dev Evaluates ge(euint32 a, euint16 b) and returns the result.\\n */\\n function ge(euint32 a, euint16 b) internal returns (ebool) {\\n if (!isInitialized(a)) {\\n a = asEuint32(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint16(0);\\n }\\n return ebool.wrap(Impl.ge(euint32.unwrap(a), euint32.unwrap(asEuint32(b)), false));\\n }\\n\\n /**\\n * @dev Evaluates gt(euint32 a, euint16 b) and returns the result.\\n */\\n function gt(euint32 a, euint16 b) internal returns (ebool) {\\n if (!isInitialized(a)) {\\n a = asEuint32(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint16(0);\\n }\\n return ebool.wrap(Impl.gt(euint32.unwrap(a), euint32.unwrap(asEuint32(b)), false));\\n }\\n\\n /**\\n * @dev Evaluates le(euint32 a, euint16 b) and returns the result.\\n */\\n function le(euint32 a, euint16 b) internal returns (ebool) {\\n if (!isInitialized(a)) {\\n a = asEuint32(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint16(0);\\n }\\n return ebool.wrap(Impl.le(euint32.unwrap(a), euint32.unwrap(asEuint32(b)), false));\\n }\\n\\n /**\\n * @dev Evaluates lt(euint32 a, euint16 b) and returns the result.\\n */\\n function lt(euint32 a, euint16 b) internal returns (ebool) {\\n if (!isInitialized(a)) {\\n a = asEuint32(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint16(0);\\n }\\n return ebool.wrap(Impl.lt(euint32.unwrap(a), euint32.unwrap(asEuint32(b)), false));\\n }\\n\\n /**\\n * @dev Evaluates min(euint32 a, euint16 b) and returns the result.\\n */\\n function min(euint32 a, euint16 b) internal returns (euint32) {\\n if (!isInitialized(a)) {\\n a = asEuint32(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint16(0);\\n }\\n return euint32.wrap(Impl.min(euint32.unwrap(a), euint32.unwrap(asEuint32(b)), false));\\n }\\n\\n /**\\n * @dev Evaluates max(euint32 a, euint16 b) and returns the result.\\n */\\n function max(euint32 a, euint16 b) internal returns (euint32) {\\n if (!isInitialized(a)) {\\n a = asEuint32(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint16(0);\\n }\\n return euint32.wrap(Impl.max(euint32.unwrap(a), euint32.unwrap(asEuint32(b)), false));\\n }\\n\\n /**\\n * @dev Evaluates add(euint32 a, euint32 b) and returns the result.\\n */\\n function add(euint32 a, euint32 b) internal returns (euint32) {\\n if (!isInitialized(a)) {\\n a = asEuint32(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint32(0);\\n }\\n return euint32.wrap(Impl.add(euint32.unwrap(a), euint32.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates sub(euint32 a, euint32 b) and returns the result.\\n */\\n function sub(euint32 a, euint32 b) internal returns (euint32) {\\n if (!isInitialized(a)) {\\n a = asEuint32(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint32(0);\\n }\\n return euint32.wrap(Impl.sub(euint32.unwrap(a), euint32.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates mul(euint32 a, euint32 b) and returns the result.\\n */\\n function mul(euint32 a, euint32 b) internal returns (euint32) {\\n if (!isInitialized(a)) {\\n a = asEuint32(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint32(0);\\n }\\n return euint32.wrap(Impl.mul(euint32.unwrap(a), euint32.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates and(euint32 a, euint32 b) and returns the result.\\n */\\n function and(euint32 a, euint32 b) internal returns (euint32) {\\n if (!isInitialized(a)) {\\n a = asEuint32(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint32(0);\\n }\\n return euint32.wrap(Impl.and(euint32.unwrap(a), euint32.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates or(euint32 a, euint32 b) and returns the result.\\n */\\n function or(euint32 a, euint32 b) internal returns (euint32) {\\n if (!isInitialized(a)) {\\n a = asEuint32(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint32(0);\\n }\\n return euint32.wrap(Impl.or(euint32.unwrap(a), euint32.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates xor(euint32 a, euint32 b) and returns the result.\\n */\\n function xor(euint32 a, euint32 b) internal returns (euint32) {\\n if (!isInitialized(a)) {\\n a = asEuint32(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint32(0);\\n }\\n return euint32.wrap(Impl.xor(euint32.unwrap(a), euint32.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates eq(euint32 a, euint32 b) and returns the result.\\n */\\n function eq(euint32 a, euint32 b) internal returns (ebool) {\\n if (!isInitialized(a)) {\\n a = asEuint32(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint32(0);\\n }\\n return ebool.wrap(Impl.eq(euint32.unwrap(a), euint32.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates ne(euint32 a, euint32 b) and returns the result.\\n */\\n function ne(euint32 a, euint32 b) internal returns (ebool) {\\n if (!isInitialized(a)) {\\n a = asEuint32(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint32(0);\\n }\\n return ebool.wrap(Impl.ne(euint32.unwrap(a), euint32.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates ge(euint32 a, euint32 b) and returns the result.\\n */\\n function ge(euint32 a, euint32 b) internal returns (ebool) {\\n if (!isInitialized(a)) {\\n a = asEuint32(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint32(0);\\n }\\n return ebool.wrap(Impl.ge(euint32.unwrap(a), euint32.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates gt(euint32 a, euint32 b) and returns the result.\\n */\\n function gt(euint32 a, euint32 b) internal returns (ebool) {\\n if (!isInitialized(a)) {\\n a = asEuint32(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint32(0);\\n }\\n return ebool.wrap(Impl.gt(euint32.unwrap(a), euint32.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates le(euint32 a, euint32 b) and returns the result.\\n */\\n function le(euint32 a, euint32 b) internal returns (ebool) {\\n if (!isInitialized(a)) {\\n a = asEuint32(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint32(0);\\n }\\n return ebool.wrap(Impl.le(euint32.unwrap(a), euint32.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates lt(euint32 a, euint32 b) and returns the result.\\n */\\n function lt(euint32 a, euint32 b) internal returns (ebool) {\\n if (!isInitialized(a)) {\\n a = asEuint32(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint32(0);\\n }\\n return ebool.wrap(Impl.lt(euint32.unwrap(a), euint32.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates min(euint32 a, euint32 b) and returns the result.\\n */\\n function min(euint32 a, euint32 b) internal returns (euint32) {\\n if (!isInitialized(a)) {\\n a = asEuint32(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint32(0);\\n }\\n return euint32.wrap(Impl.min(euint32.unwrap(a), euint32.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates max(euint32 a, euint32 b) and returns the result.\\n */\\n function max(euint32 a, euint32 b) internal returns (euint32) {\\n if (!isInitialized(a)) {\\n a = asEuint32(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint32(0);\\n }\\n return euint32.wrap(Impl.max(euint32.unwrap(a), euint32.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates add(euint32 a, euint64 b) and returns the result.\\n */\\n function add(euint32 a, euint64 b) internal returns (euint64) {\\n if (!isInitialized(a)) {\\n a = asEuint32(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint64(0);\\n }\\n return euint64.wrap(Impl.add(euint64.unwrap(asEuint64(a)), euint64.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates sub(euint32 a, euint64 b) and returns the result.\\n */\\n function sub(euint32 a, euint64 b) internal returns (euint64) {\\n if (!isInitialized(a)) {\\n a = asEuint32(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint64(0);\\n }\\n return euint64.wrap(Impl.sub(euint64.unwrap(asEuint64(a)), euint64.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates mul(euint32 a, euint64 b) and returns the result.\\n */\\n function mul(euint32 a, euint64 b) internal returns (euint64) {\\n if (!isInitialized(a)) {\\n a = asEuint32(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint64(0);\\n }\\n return euint64.wrap(Impl.mul(euint64.unwrap(asEuint64(a)), euint64.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates and(euint32 a, euint64 b) and returns the result.\\n */\\n function and(euint32 a, euint64 b) internal returns (euint64) {\\n if (!isInitialized(a)) {\\n a = asEuint32(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint64(0);\\n }\\n return euint64.wrap(Impl.and(euint64.unwrap(asEuint64(a)), euint64.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates or(euint32 a, euint64 b) and returns the result.\\n */\\n function or(euint32 a, euint64 b) internal returns (euint64) {\\n if (!isInitialized(a)) {\\n a = asEuint32(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint64(0);\\n }\\n return euint64.wrap(Impl.or(euint64.unwrap(asEuint64(a)), euint64.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates xor(euint32 a, euint64 b) and returns the result.\\n */\\n function xor(euint32 a, euint64 b) internal returns (euint64) {\\n if (!isInitialized(a)) {\\n a = asEuint32(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint64(0);\\n }\\n return euint64.wrap(Impl.xor(euint64.unwrap(asEuint64(a)), euint64.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates eq(euint32 a, euint64 b) and returns the result.\\n */\\n function eq(euint32 a, euint64 b) internal returns (ebool) {\\n if (!isInitialized(a)) {\\n a = asEuint32(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint64(0);\\n }\\n return ebool.wrap(Impl.eq(euint64.unwrap(asEuint64(a)), euint64.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates ne(euint32 a, euint64 b) and returns the result.\\n */\\n function ne(euint32 a, euint64 b) internal returns (ebool) {\\n if (!isInitialized(a)) {\\n a = asEuint32(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint64(0);\\n }\\n return ebool.wrap(Impl.ne(euint64.unwrap(asEuint64(a)), euint64.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates ge(euint32 a, euint64 b) and returns the result.\\n */\\n function ge(euint32 a, euint64 b) internal returns (ebool) {\\n if (!isInitialized(a)) {\\n a = asEuint32(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint64(0);\\n }\\n return ebool.wrap(Impl.ge(euint64.unwrap(asEuint64(a)), euint64.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates gt(euint32 a, euint64 b) and returns the result.\\n */\\n function gt(euint32 a, euint64 b) internal returns (ebool) {\\n if (!isInitialized(a)) {\\n a = asEuint32(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint64(0);\\n }\\n return ebool.wrap(Impl.gt(euint64.unwrap(asEuint64(a)), euint64.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates le(euint32 a, euint64 b) and returns the result.\\n */\\n function le(euint32 a, euint64 b) internal returns (ebool) {\\n if (!isInitialized(a)) {\\n a = asEuint32(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint64(0);\\n }\\n return ebool.wrap(Impl.le(euint64.unwrap(asEuint64(a)), euint64.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates lt(euint32 a, euint64 b) and returns the result.\\n */\\n function lt(euint32 a, euint64 b) internal returns (ebool) {\\n if (!isInitialized(a)) {\\n a = asEuint32(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint64(0);\\n }\\n return ebool.wrap(Impl.lt(euint64.unwrap(asEuint64(a)), euint64.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates min(euint32 a, euint64 b) and returns the result.\\n */\\n function min(euint32 a, euint64 b) internal returns (euint64) {\\n if (!isInitialized(a)) {\\n a = asEuint32(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint64(0);\\n }\\n return euint64.wrap(Impl.min(euint64.unwrap(asEuint64(a)), euint64.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates max(euint32 a, euint64 b) and returns the result.\\n */\\n function max(euint32 a, euint64 b) internal returns (euint64) {\\n if (!isInitialized(a)) {\\n a = asEuint32(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint64(0);\\n }\\n return euint64.wrap(Impl.max(euint64.unwrap(asEuint64(a)), euint64.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates add(euint32 a, euint128 b) and returns the result.\\n */\\n function add(euint32 a, euint128 b) internal returns (euint128) {\\n if (!isInitialized(a)) {\\n a = asEuint32(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint128(0);\\n }\\n return euint128.wrap(Impl.add(euint128.unwrap(asEuint128(a)), euint128.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates sub(euint32 a, euint128 b) and returns the result.\\n */\\n function sub(euint32 a, euint128 b) internal returns (euint128) {\\n if (!isInitialized(a)) {\\n a = asEuint32(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint128(0);\\n }\\n return euint128.wrap(Impl.sub(euint128.unwrap(asEuint128(a)), euint128.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates mul(euint32 a, euint128 b) and returns the result.\\n */\\n function mul(euint32 a, euint128 b) internal returns (euint128) {\\n if (!isInitialized(a)) {\\n a = asEuint32(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint128(0);\\n }\\n return euint128.wrap(Impl.mul(euint128.unwrap(asEuint128(a)), euint128.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates and(euint32 a, euint128 b) and returns the result.\\n */\\n function and(euint32 a, euint128 b) internal returns (euint128) {\\n if (!isInitialized(a)) {\\n a = asEuint32(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint128(0);\\n }\\n return euint128.wrap(Impl.and(euint128.unwrap(asEuint128(a)), euint128.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates or(euint32 a, euint128 b) and returns the result.\\n */\\n function or(euint32 a, euint128 b) internal returns (euint128) {\\n if (!isInitialized(a)) {\\n a = asEuint32(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint128(0);\\n }\\n return euint128.wrap(Impl.or(euint128.unwrap(asEuint128(a)), euint128.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates xor(euint32 a, euint128 b) and returns the result.\\n */\\n function xor(euint32 a, euint128 b) internal returns (euint128) {\\n if (!isInitialized(a)) {\\n a = asEuint32(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint128(0);\\n }\\n return euint128.wrap(Impl.xor(euint128.unwrap(asEuint128(a)), euint128.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates eq(euint32 a, euint128 b) and returns the result.\\n */\\n function eq(euint32 a, euint128 b) internal returns (ebool) {\\n if (!isInitialized(a)) {\\n a = asEuint32(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint128(0);\\n }\\n return ebool.wrap(Impl.eq(euint128.unwrap(asEuint128(a)), euint128.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates ne(euint32 a, euint128 b) and returns the result.\\n */\\n function ne(euint32 a, euint128 b) internal returns (ebool) {\\n if (!isInitialized(a)) {\\n a = asEuint32(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint128(0);\\n }\\n return ebool.wrap(Impl.ne(euint128.unwrap(asEuint128(a)), euint128.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates ge(euint32 a, euint128 b) and returns the result.\\n */\\n function ge(euint32 a, euint128 b) internal returns (ebool) {\\n if (!isInitialized(a)) {\\n a = asEuint32(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint128(0);\\n }\\n return ebool.wrap(Impl.ge(euint128.unwrap(asEuint128(a)), euint128.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates gt(euint32 a, euint128 b) and returns the result.\\n */\\n function gt(euint32 a, euint128 b) internal returns (ebool) {\\n if (!isInitialized(a)) {\\n a = asEuint32(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint128(0);\\n }\\n return ebool.wrap(Impl.gt(euint128.unwrap(asEuint128(a)), euint128.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates le(euint32 a, euint128 b) and returns the result.\\n */\\n function le(euint32 a, euint128 b) internal returns (ebool) {\\n if (!isInitialized(a)) {\\n a = asEuint32(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint128(0);\\n }\\n return ebool.wrap(Impl.le(euint128.unwrap(asEuint128(a)), euint128.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates lt(euint32 a, euint128 b) and returns the result.\\n */\\n function lt(euint32 a, euint128 b) internal returns (ebool) {\\n if (!isInitialized(a)) {\\n a = asEuint32(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint128(0);\\n }\\n return ebool.wrap(Impl.lt(euint128.unwrap(asEuint128(a)), euint128.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates min(euint32 a, euint128 b) and returns the result.\\n */\\n function min(euint32 a, euint128 b) internal returns (euint128) {\\n if (!isInitialized(a)) {\\n a = asEuint32(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint128(0);\\n }\\n return euint128.wrap(Impl.min(euint128.unwrap(asEuint128(a)), euint128.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates max(euint32 a, euint128 b) and returns the result.\\n */\\n function max(euint32 a, euint128 b) internal returns (euint128) {\\n if (!isInitialized(a)) {\\n a = asEuint32(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint128(0);\\n }\\n return euint128.wrap(Impl.max(euint128.unwrap(asEuint128(a)), euint128.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates and(euint32 a, euint256 b) and returns the result.\\n */\\n function and(euint32 a, euint256 b) internal returns (euint256) {\\n if (!isInitialized(a)) {\\n a = asEuint32(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint256(0);\\n }\\n return euint256.wrap(Impl.and(euint256.unwrap(asEuint256(a)), euint256.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates or(euint32 a, euint256 b) and returns the result.\\n */\\n function or(euint32 a, euint256 b) internal returns (euint256) {\\n if (!isInitialized(a)) {\\n a = asEuint32(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint256(0);\\n }\\n return euint256.wrap(Impl.or(euint256.unwrap(asEuint256(a)), euint256.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates xor(euint32 a, euint256 b) and returns the result.\\n */\\n function xor(euint32 a, euint256 b) internal returns (euint256) {\\n if (!isInitialized(a)) {\\n a = asEuint32(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint256(0);\\n }\\n return euint256.wrap(Impl.xor(euint256.unwrap(asEuint256(a)), euint256.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates eq(euint32 a, euint256 b) and returns the result.\\n */\\n function eq(euint32 a, euint256 b) internal returns (ebool) {\\n if (!isInitialized(a)) {\\n a = asEuint32(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint256(0);\\n }\\n return ebool.wrap(Impl.eq(euint256.unwrap(asEuint256(a)), euint256.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates ne(euint32 a, euint256 b) and returns the result.\\n */\\n function ne(euint32 a, euint256 b) internal returns (ebool) {\\n if (!isInitialized(a)) {\\n a = asEuint32(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint256(0);\\n }\\n return ebool.wrap(Impl.ne(euint256.unwrap(asEuint256(a)), euint256.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates add(euint64 a, euint8 b) and returns the result.\\n */\\n function add(euint64 a, euint8 b) internal returns (euint64) {\\n if (!isInitialized(a)) {\\n a = asEuint64(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint8(0);\\n }\\n return euint64.wrap(Impl.add(euint64.unwrap(a), euint64.unwrap(asEuint64(b)), false));\\n }\\n\\n /**\\n * @dev Evaluates sub(euint64 a, euint8 b) and returns the result.\\n */\\n function sub(euint64 a, euint8 b) internal returns (euint64) {\\n if (!isInitialized(a)) {\\n a = asEuint64(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint8(0);\\n }\\n return euint64.wrap(Impl.sub(euint64.unwrap(a), euint64.unwrap(asEuint64(b)), false));\\n }\\n\\n /**\\n * @dev Evaluates mul(euint64 a, euint8 b) and returns the result.\\n */\\n function mul(euint64 a, euint8 b) internal returns (euint64) {\\n if (!isInitialized(a)) {\\n a = asEuint64(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint8(0);\\n }\\n return euint64.wrap(Impl.mul(euint64.unwrap(a), euint64.unwrap(asEuint64(b)), false));\\n }\\n\\n /**\\n * @dev Evaluates and(euint64 a, euint8 b) and returns the result.\\n */\\n function and(euint64 a, euint8 b) internal returns (euint64) {\\n if (!isInitialized(a)) {\\n a = asEuint64(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint8(0);\\n }\\n return euint64.wrap(Impl.and(euint64.unwrap(a), euint64.unwrap(asEuint64(b)), false));\\n }\\n\\n /**\\n * @dev Evaluates or(euint64 a, euint8 b) and returns the result.\\n */\\n function or(euint64 a, euint8 b) internal returns (euint64) {\\n if (!isInitialized(a)) {\\n a = asEuint64(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint8(0);\\n }\\n return euint64.wrap(Impl.or(euint64.unwrap(a), euint64.unwrap(asEuint64(b)), false));\\n }\\n\\n /**\\n * @dev Evaluates xor(euint64 a, euint8 b) and returns the result.\\n */\\n function xor(euint64 a, euint8 b) internal returns (euint64) {\\n if (!isInitialized(a)) {\\n a = asEuint64(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint8(0);\\n }\\n return euint64.wrap(Impl.xor(euint64.unwrap(a), euint64.unwrap(asEuint64(b)), false));\\n }\\n\\n /**\\n * @dev Evaluates eq(euint64 a, euint8 b) and returns the result.\\n */\\n function eq(euint64 a, euint8 b) internal returns (ebool) {\\n if (!isInitialized(a)) {\\n a = asEuint64(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint8(0);\\n }\\n return ebool.wrap(Impl.eq(euint64.unwrap(a), euint64.unwrap(asEuint64(b)), false));\\n }\\n\\n /**\\n * @dev Evaluates ne(euint64 a, euint8 b) and returns the result.\\n */\\n function ne(euint64 a, euint8 b) internal returns (ebool) {\\n if (!isInitialized(a)) {\\n a = asEuint64(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint8(0);\\n }\\n return ebool.wrap(Impl.ne(euint64.unwrap(a), euint64.unwrap(asEuint64(b)), false));\\n }\\n\\n /**\\n * @dev Evaluates ge(euint64 a, euint8 b) and returns the result.\\n */\\n function ge(euint64 a, euint8 b) internal returns (ebool) {\\n if (!isInitialized(a)) {\\n a = asEuint64(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint8(0);\\n }\\n return ebool.wrap(Impl.ge(euint64.unwrap(a), euint64.unwrap(asEuint64(b)), false));\\n }\\n\\n /**\\n * @dev Evaluates gt(euint64 a, euint8 b) and returns the result.\\n */\\n function gt(euint64 a, euint8 b) internal returns (ebool) {\\n if (!isInitialized(a)) {\\n a = asEuint64(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint8(0);\\n }\\n return ebool.wrap(Impl.gt(euint64.unwrap(a), euint64.unwrap(asEuint64(b)), false));\\n }\\n\\n /**\\n * @dev Evaluates le(euint64 a, euint8 b) and returns the result.\\n */\\n function le(euint64 a, euint8 b) internal returns (ebool) {\\n if (!isInitialized(a)) {\\n a = asEuint64(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint8(0);\\n }\\n return ebool.wrap(Impl.le(euint64.unwrap(a), euint64.unwrap(asEuint64(b)), false));\\n }\\n\\n /**\\n * @dev Evaluates lt(euint64 a, euint8 b) and returns the result.\\n */\\n function lt(euint64 a, euint8 b) internal returns (ebool) {\\n if (!isInitialized(a)) {\\n a = asEuint64(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint8(0);\\n }\\n return ebool.wrap(Impl.lt(euint64.unwrap(a), euint64.unwrap(asEuint64(b)), false));\\n }\\n\\n /**\\n * @dev Evaluates min(euint64 a, euint8 b) and returns the result.\\n */\\n function min(euint64 a, euint8 b) internal returns (euint64) {\\n if (!isInitialized(a)) {\\n a = asEuint64(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint8(0);\\n }\\n return euint64.wrap(Impl.min(euint64.unwrap(a), euint64.unwrap(asEuint64(b)), false));\\n }\\n\\n /**\\n * @dev Evaluates max(euint64 a, euint8 b) and returns the result.\\n */\\n function max(euint64 a, euint8 b) internal returns (euint64) {\\n if (!isInitialized(a)) {\\n a = asEuint64(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint8(0);\\n }\\n return euint64.wrap(Impl.max(euint64.unwrap(a), euint64.unwrap(asEuint64(b)), false));\\n }\\n\\n /**\\n * @dev Evaluates add(euint64 a, euint16 b) and returns the result.\\n */\\n function add(euint64 a, euint16 b) internal returns (euint64) {\\n if (!isInitialized(a)) {\\n a = asEuint64(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint16(0);\\n }\\n return euint64.wrap(Impl.add(euint64.unwrap(a), euint64.unwrap(asEuint64(b)), false));\\n }\\n\\n /**\\n * @dev Evaluates sub(euint64 a, euint16 b) and returns the result.\\n */\\n function sub(euint64 a, euint16 b) internal returns (euint64) {\\n if (!isInitialized(a)) {\\n a = asEuint64(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint16(0);\\n }\\n return euint64.wrap(Impl.sub(euint64.unwrap(a), euint64.unwrap(asEuint64(b)), false));\\n }\\n\\n /**\\n * @dev Evaluates mul(euint64 a, euint16 b) and returns the result.\\n */\\n function mul(euint64 a, euint16 b) internal returns (euint64) {\\n if (!isInitialized(a)) {\\n a = asEuint64(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint16(0);\\n }\\n return euint64.wrap(Impl.mul(euint64.unwrap(a), euint64.unwrap(asEuint64(b)), false));\\n }\\n\\n /**\\n * @dev Evaluates and(euint64 a, euint16 b) and returns the result.\\n */\\n function and(euint64 a, euint16 b) internal returns (euint64) {\\n if (!isInitialized(a)) {\\n a = asEuint64(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint16(0);\\n }\\n return euint64.wrap(Impl.and(euint64.unwrap(a), euint64.unwrap(asEuint64(b)), false));\\n }\\n\\n /**\\n * @dev Evaluates or(euint64 a, euint16 b) and returns the result.\\n */\\n function or(euint64 a, euint16 b) internal returns (euint64) {\\n if (!isInitialized(a)) {\\n a = asEuint64(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint16(0);\\n }\\n return euint64.wrap(Impl.or(euint64.unwrap(a), euint64.unwrap(asEuint64(b)), false));\\n }\\n\\n /**\\n * @dev Evaluates xor(euint64 a, euint16 b) and returns the result.\\n */\\n function xor(euint64 a, euint16 b) internal returns (euint64) {\\n if (!isInitialized(a)) {\\n a = asEuint64(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint16(0);\\n }\\n return euint64.wrap(Impl.xor(euint64.unwrap(a), euint64.unwrap(asEuint64(b)), false));\\n }\\n\\n /**\\n * @dev Evaluates eq(euint64 a, euint16 b) and returns the result.\\n */\\n function eq(euint64 a, euint16 b) internal returns (ebool) {\\n if (!isInitialized(a)) {\\n a = asEuint64(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint16(0);\\n }\\n return ebool.wrap(Impl.eq(euint64.unwrap(a), euint64.unwrap(asEuint64(b)), false));\\n }\\n\\n /**\\n * @dev Evaluates ne(euint64 a, euint16 b) and returns the result.\\n */\\n function ne(euint64 a, euint16 b) internal returns (ebool) {\\n if (!isInitialized(a)) {\\n a = asEuint64(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint16(0);\\n }\\n return ebool.wrap(Impl.ne(euint64.unwrap(a), euint64.unwrap(asEuint64(b)), false));\\n }\\n\\n /**\\n * @dev Evaluates ge(euint64 a, euint16 b) and returns the result.\\n */\\n function ge(euint64 a, euint16 b) internal returns (ebool) {\\n if (!isInitialized(a)) {\\n a = asEuint64(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint16(0);\\n }\\n return ebool.wrap(Impl.ge(euint64.unwrap(a), euint64.unwrap(asEuint64(b)), false));\\n }\\n\\n /**\\n * @dev Evaluates gt(euint64 a, euint16 b) and returns the result.\\n */\\n function gt(euint64 a, euint16 b) internal returns (ebool) {\\n if (!isInitialized(a)) {\\n a = asEuint64(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint16(0);\\n }\\n return ebool.wrap(Impl.gt(euint64.unwrap(a), euint64.unwrap(asEuint64(b)), false));\\n }\\n\\n /**\\n * @dev Evaluates le(euint64 a, euint16 b) and returns the result.\\n */\\n function le(euint64 a, euint16 b) internal returns (ebool) {\\n if (!isInitialized(a)) {\\n a = asEuint64(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint16(0);\\n }\\n return ebool.wrap(Impl.le(euint64.unwrap(a), euint64.unwrap(asEuint64(b)), false));\\n }\\n\\n /**\\n * @dev Evaluates lt(euint64 a, euint16 b) and returns the result.\\n */\\n function lt(euint64 a, euint16 b) internal returns (ebool) {\\n if (!isInitialized(a)) {\\n a = asEuint64(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint16(0);\\n }\\n return ebool.wrap(Impl.lt(euint64.unwrap(a), euint64.unwrap(asEuint64(b)), false));\\n }\\n\\n /**\\n * @dev Evaluates min(euint64 a, euint16 b) and returns the result.\\n */\\n function min(euint64 a, euint16 b) internal returns (euint64) {\\n if (!isInitialized(a)) {\\n a = asEuint64(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint16(0);\\n }\\n return euint64.wrap(Impl.min(euint64.unwrap(a), euint64.unwrap(asEuint64(b)), false));\\n }\\n\\n /**\\n * @dev Evaluates max(euint64 a, euint16 b) and returns the result.\\n */\\n function max(euint64 a, euint16 b) internal returns (euint64) {\\n if (!isInitialized(a)) {\\n a = asEuint64(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint16(0);\\n }\\n return euint64.wrap(Impl.max(euint64.unwrap(a), euint64.unwrap(asEuint64(b)), false));\\n }\\n\\n /**\\n * @dev Evaluates add(euint64 a, euint32 b) and returns the result.\\n */\\n function add(euint64 a, euint32 b) internal returns (euint64) {\\n if (!isInitialized(a)) {\\n a = asEuint64(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint32(0);\\n }\\n return euint64.wrap(Impl.add(euint64.unwrap(a), euint64.unwrap(asEuint64(b)), false));\\n }\\n\\n /**\\n * @dev Evaluates sub(euint64 a, euint32 b) and returns the result.\\n */\\n function sub(euint64 a, euint32 b) internal returns (euint64) {\\n if (!isInitialized(a)) {\\n a = asEuint64(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint32(0);\\n }\\n return euint64.wrap(Impl.sub(euint64.unwrap(a), euint64.unwrap(asEuint64(b)), false));\\n }\\n\\n /**\\n * @dev Evaluates mul(euint64 a, euint32 b) and returns the result.\\n */\\n function mul(euint64 a, euint32 b) internal returns (euint64) {\\n if (!isInitialized(a)) {\\n a = asEuint64(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint32(0);\\n }\\n return euint64.wrap(Impl.mul(euint64.unwrap(a), euint64.unwrap(asEuint64(b)), false));\\n }\\n\\n /**\\n * @dev Evaluates and(euint64 a, euint32 b) and returns the result.\\n */\\n function and(euint64 a, euint32 b) internal returns (euint64) {\\n if (!isInitialized(a)) {\\n a = asEuint64(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint32(0);\\n }\\n return euint64.wrap(Impl.and(euint64.unwrap(a), euint64.unwrap(asEuint64(b)), false));\\n }\\n\\n /**\\n * @dev Evaluates or(euint64 a, euint32 b) and returns the result.\\n */\\n function or(euint64 a, euint32 b) internal returns (euint64) {\\n if (!isInitialized(a)) {\\n a = asEuint64(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint32(0);\\n }\\n return euint64.wrap(Impl.or(euint64.unwrap(a), euint64.unwrap(asEuint64(b)), false));\\n }\\n\\n /**\\n * @dev Evaluates xor(euint64 a, euint32 b) and returns the result.\\n */\\n function xor(euint64 a, euint32 b) internal returns (euint64) {\\n if (!isInitialized(a)) {\\n a = asEuint64(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint32(0);\\n }\\n return euint64.wrap(Impl.xor(euint64.unwrap(a), euint64.unwrap(asEuint64(b)), false));\\n }\\n\\n /**\\n * @dev Evaluates eq(euint64 a, euint32 b) and returns the result.\\n */\\n function eq(euint64 a, euint32 b) internal returns (ebool) {\\n if (!isInitialized(a)) {\\n a = asEuint64(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint32(0);\\n }\\n return ebool.wrap(Impl.eq(euint64.unwrap(a), euint64.unwrap(asEuint64(b)), false));\\n }\\n\\n /**\\n * @dev Evaluates ne(euint64 a, euint32 b) and returns the result.\\n */\\n function ne(euint64 a, euint32 b) internal returns (ebool) {\\n if (!isInitialized(a)) {\\n a = asEuint64(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint32(0);\\n }\\n return ebool.wrap(Impl.ne(euint64.unwrap(a), euint64.unwrap(asEuint64(b)), false));\\n }\\n\\n /**\\n * @dev Evaluates ge(euint64 a, euint32 b) and returns the result.\\n */\\n function ge(euint64 a, euint32 b) internal returns (ebool) {\\n if (!isInitialized(a)) {\\n a = asEuint64(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint32(0);\\n }\\n return ebool.wrap(Impl.ge(euint64.unwrap(a), euint64.unwrap(asEuint64(b)), false));\\n }\\n\\n /**\\n * @dev Evaluates gt(euint64 a, euint32 b) and returns the result.\\n */\\n function gt(euint64 a, euint32 b) internal returns (ebool) {\\n if (!isInitialized(a)) {\\n a = asEuint64(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint32(0);\\n }\\n return ebool.wrap(Impl.gt(euint64.unwrap(a), euint64.unwrap(asEuint64(b)), false));\\n }\\n\\n /**\\n * @dev Evaluates le(euint64 a, euint32 b) and returns the result.\\n */\\n function le(euint64 a, euint32 b) internal returns (ebool) {\\n if (!isInitialized(a)) {\\n a = asEuint64(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint32(0);\\n }\\n return ebool.wrap(Impl.le(euint64.unwrap(a), euint64.unwrap(asEuint64(b)), false));\\n }\\n\\n /**\\n * @dev Evaluates lt(euint64 a, euint32 b) and returns the result.\\n */\\n function lt(euint64 a, euint32 b) internal returns (ebool) {\\n if (!isInitialized(a)) {\\n a = asEuint64(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint32(0);\\n }\\n return ebool.wrap(Impl.lt(euint64.unwrap(a), euint64.unwrap(asEuint64(b)), false));\\n }\\n\\n /**\\n * @dev Evaluates min(euint64 a, euint32 b) and returns the result.\\n */\\n function min(euint64 a, euint32 b) internal returns (euint64) {\\n if (!isInitialized(a)) {\\n a = asEuint64(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint32(0);\\n }\\n return euint64.wrap(Impl.min(euint64.unwrap(a), euint64.unwrap(asEuint64(b)), false));\\n }\\n\\n /**\\n * @dev Evaluates max(euint64 a, euint32 b) and returns the result.\\n */\\n function max(euint64 a, euint32 b) internal returns (euint64) {\\n if (!isInitialized(a)) {\\n a = asEuint64(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint32(0);\\n }\\n return euint64.wrap(Impl.max(euint64.unwrap(a), euint64.unwrap(asEuint64(b)), false));\\n }\\n\\n /**\\n * @dev Evaluates add(euint64 a, euint64 b) and returns the result.\\n */\\n function add(euint64 a, euint64 b) internal returns (euint64) {\\n if (!isInitialized(a)) {\\n a = asEuint64(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint64(0);\\n }\\n return euint64.wrap(Impl.add(euint64.unwrap(a), euint64.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates sub(euint64 a, euint64 b) and returns the result.\\n */\\n function sub(euint64 a, euint64 b) internal returns (euint64) {\\n if (!isInitialized(a)) {\\n a = asEuint64(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint64(0);\\n }\\n return euint64.wrap(Impl.sub(euint64.unwrap(a), euint64.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates mul(euint64 a, euint64 b) and returns the result.\\n */\\n function mul(euint64 a, euint64 b) internal returns (euint64) {\\n if (!isInitialized(a)) {\\n a = asEuint64(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint64(0);\\n }\\n return euint64.wrap(Impl.mul(euint64.unwrap(a), euint64.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates and(euint64 a, euint64 b) and returns the result.\\n */\\n function and(euint64 a, euint64 b) internal returns (euint64) {\\n if (!isInitialized(a)) {\\n a = asEuint64(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint64(0);\\n }\\n return euint64.wrap(Impl.and(euint64.unwrap(a), euint64.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates or(euint64 a, euint64 b) and returns the result.\\n */\\n function or(euint64 a, euint64 b) internal returns (euint64) {\\n if (!isInitialized(a)) {\\n a = asEuint64(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint64(0);\\n }\\n return euint64.wrap(Impl.or(euint64.unwrap(a), euint64.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates xor(euint64 a, euint64 b) and returns the result.\\n */\\n function xor(euint64 a, euint64 b) internal returns (euint64) {\\n if (!isInitialized(a)) {\\n a = asEuint64(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint64(0);\\n }\\n return euint64.wrap(Impl.xor(euint64.unwrap(a), euint64.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates eq(euint64 a, euint64 b) and returns the result.\\n */\\n function eq(euint64 a, euint64 b) internal returns (ebool) {\\n if (!isInitialized(a)) {\\n a = asEuint64(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint64(0);\\n }\\n return ebool.wrap(Impl.eq(euint64.unwrap(a), euint64.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates ne(euint64 a, euint64 b) and returns the result.\\n */\\n function ne(euint64 a, euint64 b) internal returns (ebool) {\\n if (!isInitialized(a)) {\\n a = asEuint64(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint64(0);\\n }\\n return ebool.wrap(Impl.ne(euint64.unwrap(a), euint64.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates ge(euint64 a, euint64 b) and returns the result.\\n */\\n function ge(euint64 a, euint64 b) internal returns (ebool) {\\n if (!isInitialized(a)) {\\n a = asEuint64(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint64(0);\\n }\\n return ebool.wrap(Impl.ge(euint64.unwrap(a), euint64.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates gt(euint64 a, euint64 b) and returns the result.\\n */\\n function gt(euint64 a, euint64 b) internal returns (ebool) {\\n if (!isInitialized(a)) {\\n a = asEuint64(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint64(0);\\n }\\n return ebool.wrap(Impl.gt(euint64.unwrap(a), euint64.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates le(euint64 a, euint64 b) and returns the result.\\n */\\n function le(euint64 a, euint64 b) internal returns (ebool) {\\n if (!isInitialized(a)) {\\n a = asEuint64(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint64(0);\\n }\\n return ebool.wrap(Impl.le(euint64.unwrap(a), euint64.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates lt(euint64 a, euint64 b) and returns the result.\\n */\\n function lt(euint64 a, euint64 b) internal returns (ebool) {\\n if (!isInitialized(a)) {\\n a = asEuint64(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint64(0);\\n }\\n return ebool.wrap(Impl.lt(euint64.unwrap(a), euint64.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates min(euint64 a, euint64 b) and returns the result.\\n */\\n function min(euint64 a, euint64 b) internal returns (euint64) {\\n if (!isInitialized(a)) {\\n a = asEuint64(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint64(0);\\n }\\n return euint64.wrap(Impl.min(euint64.unwrap(a), euint64.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates max(euint64 a, euint64 b) and returns the result.\\n */\\n function max(euint64 a, euint64 b) internal returns (euint64) {\\n if (!isInitialized(a)) {\\n a = asEuint64(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint64(0);\\n }\\n return euint64.wrap(Impl.max(euint64.unwrap(a), euint64.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates add(euint64 a, euint128 b) and returns the result.\\n */\\n function add(euint64 a, euint128 b) internal returns (euint128) {\\n if (!isInitialized(a)) {\\n a = asEuint64(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint128(0);\\n }\\n return euint128.wrap(Impl.add(euint128.unwrap(asEuint128(a)), euint128.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates sub(euint64 a, euint128 b) and returns the result.\\n */\\n function sub(euint64 a, euint128 b) internal returns (euint128) {\\n if (!isInitialized(a)) {\\n a = asEuint64(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint128(0);\\n }\\n return euint128.wrap(Impl.sub(euint128.unwrap(asEuint128(a)), euint128.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates mul(euint64 a, euint128 b) and returns the result.\\n */\\n function mul(euint64 a, euint128 b) internal returns (euint128) {\\n if (!isInitialized(a)) {\\n a = asEuint64(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint128(0);\\n }\\n return euint128.wrap(Impl.mul(euint128.unwrap(asEuint128(a)), euint128.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates and(euint64 a, euint128 b) and returns the result.\\n */\\n function and(euint64 a, euint128 b) internal returns (euint128) {\\n if (!isInitialized(a)) {\\n a = asEuint64(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint128(0);\\n }\\n return euint128.wrap(Impl.and(euint128.unwrap(asEuint128(a)), euint128.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates or(euint64 a, euint128 b) and returns the result.\\n */\\n function or(euint64 a, euint128 b) internal returns (euint128) {\\n if (!isInitialized(a)) {\\n a = asEuint64(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint128(0);\\n }\\n return euint128.wrap(Impl.or(euint128.unwrap(asEuint128(a)), euint128.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates xor(euint64 a, euint128 b) and returns the result.\\n */\\n function xor(euint64 a, euint128 b) internal returns (euint128) {\\n if (!isInitialized(a)) {\\n a = asEuint64(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint128(0);\\n }\\n return euint128.wrap(Impl.xor(euint128.unwrap(asEuint128(a)), euint128.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates eq(euint64 a, euint128 b) and returns the result.\\n */\\n function eq(euint64 a, euint128 b) internal returns (ebool) {\\n if (!isInitialized(a)) {\\n a = asEuint64(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint128(0);\\n }\\n return ebool.wrap(Impl.eq(euint128.unwrap(asEuint128(a)), euint128.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates ne(euint64 a, euint128 b) and returns the result.\\n */\\n function ne(euint64 a, euint128 b) internal returns (ebool) {\\n if (!isInitialized(a)) {\\n a = asEuint64(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint128(0);\\n }\\n return ebool.wrap(Impl.ne(euint128.unwrap(asEuint128(a)), euint128.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates ge(euint64 a, euint128 b) and returns the result.\\n */\\n function ge(euint64 a, euint128 b) internal returns (ebool) {\\n if (!isInitialized(a)) {\\n a = asEuint64(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint128(0);\\n }\\n return ebool.wrap(Impl.ge(euint128.unwrap(asEuint128(a)), euint128.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates gt(euint64 a, euint128 b) and returns the result.\\n */\\n function gt(euint64 a, euint128 b) internal returns (ebool) {\\n if (!isInitialized(a)) {\\n a = asEuint64(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint128(0);\\n }\\n return ebool.wrap(Impl.gt(euint128.unwrap(asEuint128(a)), euint128.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates le(euint64 a, euint128 b) and returns the result.\\n */\\n function le(euint64 a, euint128 b) internal returns (ebool) {\\n if (!isInitialized(a)) {\\n a = asEuint64(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint128(0);\\n }\\n return ebool.wrap(Impl.le(euint128.unwrap(asEuint128(a)), euint128.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates lt(euint64 a, euint128 b) and returns the result.\\n */\\n function lt(euint64 a, euint128 b) internal returns (ebool) {\\n if (!isInitialized(a)) {\\n a = asEuint64(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint128(0);\\n }\\n return ebool.wrap(Impl.lt(euint128.unwrap(asEuint128(a)), euint128.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates min(euint64 a, euint128 b) and returns the result.\\n */\\n function min(euint64 a, euint128 b) internal returns (euint128) {\\n if (!isInitialized(a)) {\\n a = asEuint64(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint128(0);\\n }\\n return euint128.wrap(Impl.min(euint128.unwrap(asEuint128(a)), euint128.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates max(euint64 a, euint128 b) and returns the result.\\n */\\n function max(euint64 a, euint128 b) internal returns (euint128) {\\n if (!isInitialized(a)) {\\n a = asEuint64(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint128(0);\\n }\\n return euint128.wrap(Impl.max(euint128.unwrap(asEuint128(a)), euint128.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates and(euint64 a, euint256 b) and returns the result.\\n */\\n function and(euint64 a, euint256 b) internal returns (euint256) {\\n if (!isInitialized(a)) {\\n a = asEuint64(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint256(0);\\n }\\n return euint256.wrap(Impl.and(euint256.unwrap(asEuint256(a)), euint256.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates or(euint64 a, euint256 b) and returns the result.\\n */\\n function or(euint64 a, euint256 b) internal returns (euint256) {\\n if (!isInitialized(a)) {\\n a = asEuint64(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint256(0);\\n }\\n return euint256.wrap(Impl.or(euint256.unwrap(asEuint256(a)), euint256.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates xor(euint64 a, euint256 b) and returns the result.\\n */\\n function xor(euint64 a, euint256 b) internal returns (euint256) {\\n if (!isInitialized(a)) {\\n a = asEuint64(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint256(0);\\n }\\n return euint256.wrap(Impl.xor(euint256.unwrap(asEuint256(a)), euint256.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates eq(euint64 a, euint256 b) and returns the result.\\n */\\n function eq(euint64 a, euint256 b) internal returns (ebool) {\\n if (!isInitialized(a)) {\\n a = asEuint64(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint256(0);\\n }\\n return ebool.wrap(Impl.eq(euint256.unwrap(asEuint256(a)), euint256.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates ne(euint64 a, euint256 b) and returns the result.\\n */\\n function ne(euint64 a, euint256 b) internal returns (ebool) {\\n if (!isInitialized(a)) {\\n a = asEuint64(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint256(0);\\n }\\n return ebool.wrap(Impl.ne(euint256.unwrap(asEuint256(a)), euint256.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates add(euint128 a, euint8 b) and returns the result.\\n */\\n function add(euint128 a, euint8 b) internal returns (euint128) {\\n if (!isInitialized(a)) {\\n a = asEuint128(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint8(0);\\n }\\n return euint128.wrap(Impl.add(euint128.unwrap(a), euint128.unwrap(asEuint128(b)), false));\\n }\\n\\n /**\\n * @dev Evaluates sub(euint128 a, euint8 b) and returns the result.\\n */\\n function sub(euint128 a, euint8 b) internal returns (euint128) {\\n if (!isInitialized(a)) {\\n a = asEuint128(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint8(0);\\n }\\n return euint128.wrap(Impl.sub(euint128.unwrap(a), euint128.unwrap(asEuint128(b)), false));\\n }\\n\\n /**\\n * @dev Evaluates mul(euint128 a, euint8 b) and returns the result.\\n */\\n function mul(euint128 a, euint8 b) internal returns (euint128) {\\n if (!isInitialized(a)) {\\n a = asEuint128(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint8(0);\\n }\\n return euint128.wrap(Impl.mul(euint128.unwrap(a), euint128.unwrap(asEuint128(b)), false));\\n }\\n\\n /**\\n * @dev Evaluates and(euint128 a, euint8 b) and returns the result.\\n */\\n function and(euint128 a, euint8 b) internal returns (euint128) {\\n if (!isInitialized(a)) {\\n a = asEuint128(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint8(0);\\n }\\n return euint128.wrap(Impl.and(euint128.unwrap(a), euint128.unwrap(asEuint128(b)), false));\\n }\\n\\n /**\\n * @dev Evaluates or(euint128 a, euint8 b) and returns the result.\\n */\\n function or(euint128 a, euint8 b) internal returns (euint128) {\\n if (!isInitialized(a)) {\\n a = asEuint128(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint8(0);\\n }\\n return euint128.wrap(Impl.or(euint128.unwrap(a), euint128.unwrap(asEuint128(b)), false));\\n }\\n\\n /**\\n * @dev Evaluates xor(euint128 a, euint8 b) and returns the result.\\n */\\n function xor(euint128 a, euint8 b) internal returns (euint128) {\\n if (!isInitialized(a)) {\\n a = asEuint128(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint8(0);\\n }\\n return euint128.wrap(Impl.xor(euint128.unwrap(a), euint128.unwrap(asEuint128(b)), false));\\n }\\n\\n /**\\n * @dev Evaluates eq(euint128 a, euint8 b) and returns the result.\\n */\\n function eq(euint128 a, euint8 b) internal returns (ebool) {\\n if (!isInitialized(a)) {\\n a = asEuint128(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint8(0);\\n }\\n return ebool.wrap(Impl.eq(euint128.unwrap(a), euint128.unwrap(asEuint128(b)), false));\\n }\\n\\n /**\\n * @dev Evaluates ne(euint128 a, euint8 b) and returns the result.\\n */\\n function ne(euint128 a, euint8 b) internal returns (ebool) {\\n if (!isInitialized(a)) {\\n a = asEuint128(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint8(0);\\n }\\n return ebool.wrap(Impl.ne(euint128.unwrap(a), euint128.unwrap(asEuint128(b)), false));\\n }\\n\\n /**\\n * @dev Evaluates ge(euint128 a, euint8 b) and returns the result.\\n */\\n function ge(euint128 a, euint8 b) internal returns (ebool) {\\n if (!isInitialized(a)) {\\n a = asEuint128(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint8(0);\\n }\\n return ebool.wrap(Impl.ge(euint128.unwrap(a), euint128.unwrap(asEuint128(b)), false));\\n }\\n\\n /**\\n * @dev Evaluates gt(euint128 a, euint8 b) and returns the result.\\n */\\n function gt(euint128 a, euint8 b) internal returns (ebool) {\\n if (!isInitialized(a)) {\\n a = asEuint128(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint8(0);\\n }\\n return ebool.wrap(Impl.gt(euint128.unwrap(a), euint128.unwrap(asEuint128(b)), false));\\n }\\n\\n /**\\n * @dev Evaluates le(euint128 a, euint8 b) and returns the result.\\n */\\n function le(euint128 a, euint8 b) internal returns (ebool) {\\n if (!isInitialized(a)) {\\n a = asEuint128(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint8(0);\\n }\\n return ebool.wrap(Impl.le(euint128.unwrap(a), euint128.unwrap(asEuint128(b)), false));\\n }\\n\\n /**\\n * @dev Evaluates lt(euint128 a, euint8 b) and returns the result.\\n */\\n function lt(euint128 a, euint8 b) internal returns (ebool) {\\n if (!isInitialized(a)) {\\n a = asEuint128(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint8(0);\\n }\\n return ebool.wrap(Impl.lt(euint128.unwrap(a), euint128.unwrap(asEuint128(b)), false));\\n }\\n\\n /**\\n * @dev Evaluates min(euint128 a, euint8 b) and returns the result.\\n */\\n function min(euint128 a, euint8 b) internal returns (euint128) {\\n if (!isInitialized(a)) {\\n a = asEuint128(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint8(0);\\n }\\n return euint128.wrap(Impl.min(euint128.unwrap(a), euint128.unwrap(asEuint128(b)), false));\\n }\\n\\n /**\\n * @dev Evaluates max(euint128 a, euint8 b) and returns the result.\\n */\\n function max(euint128 a, euint8 b) internal returns (euint128) {\\n if (!isInitialized(a)) {\\n a = asEuint128(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint8(0);\\n }\\n return euint128.wrap(Impl.max(euint128.unwrap(a), euint128.unwrap(asEuint128(b)), false));\\n }\\n\\n /**\\n * @dev Evaluates add(euint128 a, euint16 b) and returns the result.\\n */\\n function add(euint128 a, euint16 b) internal returns (euint128) {\\n if (!isInitialized(a)) {\\n a = asEuint128(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint16(0);\\n }\\n return euint128.wrap(Impl.add(euint128.unwrap(a), euint128.unwrap(asEuint128(b)), false));\\n }\\n\\n /**\\n * @dev Evaluates sub(euint128 a, euint16 b) and returns the result.\\n */\\n function sub(euint128 a, euint16 b) internal returns (euint128) {\\n if (!isInitialized(a)) {\\n a = asEuint128(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint16(0);\\n }\\n return euint128.wrap(Impl.sub(euint128.unwrap(a), euint128.unwrap(asEuint128(b)), false));\\n }\\n\\n /**\\n * @dev Evaluates mul(euint128 a, euint16 b) and returns the result.\\n */\\n function mul(euint128 a, euint16 b) internal returns (euint128) {\\n if (!isInitialized(a)) {\\n a = asEuint128(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint16(0);\\n }\\n return euint128.wrap(Impl.mul(euint128.unwrap(a), euint128.unwrap(asEuint128(b)), false));\\n }\\n\\n /**\\n * @dev Evaluates and(euint128 a, euint16 b) and returns the result.\\n */\\n function and(euint128 a, euint16 b) internal returns (euint128) {\\n if (!isInitialized(a)) {\\n a = asEuint128(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint16(0);\\n }\\n return euint128.wrap(Impl.and(euint128.unwrap(a), euint128.unwrap(asEuint128(b)), false));\\n }\\n\\n /**\\n * @dev Evaluates or(euint128 a, euint16 b) and returns the result.\\n */\\n function or(euint128 a, euint16 b) internal returns (euint128) {\\n if (!isInitialized(a)) {\\n a = asEuint128(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint16(0);\\n }\\n return euint128.wrap(Impl.or(euint128.unwrap(a), euint128.unwrap(asEuint128(b)), false));\\n }\\n\\n /**\\n * @dev Evaluates xor(euint128 a, euint16 b) and returns the result.\\n */\\n function xor(euint128 a, euint16 b) internal returns (euint128) {\\n if (!isInitialized(a)) {\\n a = asEuint128(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint16(0);\\n }\\n return euint128.wrap(Impl.xor(euint128.unwrap(a), euint128.unwrap(asEuint128(b)), false));\\n }\\n\\n /**\\n * @dev Evaluates eq(euint128 a, euint16 b) and returns the result.\\n */\\n function eq(euint128 a, euint16 b) internal returns (ebool) {\\n if (!isInitialized(a)) {\\n a = asEuint128(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint16(0);\\n }\\n return ebool.wrap(Impl.eq(euint128.unwrap(a), euint128.unwrap(asEuint128(b)), false));\\n }\\n\\n /**\\n * @dev Evaluates ne(euint128 a, euint16 b) and returns the result.\\n */\\n function ne(euint128 a, euint16 b) internal returns (ebool) {\\n if (!isInitialized(a)) {\\n a = asEuint128(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint16(0);\\n }\\n return ebool.wrap(Impl.ne(euint128.unwrap(a), euint128.unwrap(asEuint128(b)), false));\\n }\\n\\n /**\\n * @dev Evaluates ge(euint128 a, euint16 b) and returns the result.\\n */\\n function ge(euint128 a, euint16 b) internal returns (ebool) {\\n if (!isInitialized(a)) {\\n a = asEuint128(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint16(0);\\n }\\n return ebool.wrap(Impl.ge(euint128.unwrap(a), euint128.unwrap(asEuint128(b)), false));\\n }\\n\\n /**\\n * @dev Evaluates gt(euint128 a, euint16 b) and returns the result.\\n */\\n function gt(euint128 a, euint16 b) internal returns (ebool) {\\n if (!isInitialized(a)) {\\n a = asEuint128(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint16(0);\\n }\\n return ebool.wrap(Impl.gt(euint128.unwrap(a), euint128.unwrap(asEuint128(b)), false));\\n }\\n\\n /**\\n * @dev Evaluates le(euint128 a, euint16 b) and returns the result.\\n */\\n function le(euint128 a, euint16 b) internal returns (ebool) {\\n if (!isInitialized(a)) {\\n a = asEuint128(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint16(0);\\n }\\n return ebool.wrap(Impl.le(euint128.unwrap(a), euint128.unwrap(asEuint128(b)), false));\\n }\\n\\n /**\\n * @dev Evaluates lt(euint128 a, euint16 b) and returns the result.\\n */\\n function lt(euint128 a, euint16 b) internal returns (ebool) {\\n if (!isInitialized(a)) {\\n a = asEuint128(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint16(0);\\n }\\n return ebool.wrap(Impl.lt(euint128.unwrap(a), euint128.unwrap(asEuint128(b)), false));\\n }\\n\\n /**\\n * @dev Evaluates min(euint128 a, euint16 b) and returns the result.\\n */\\n function min(euint128 a, euint16 b) internal returns (euint128) {\\n if (!isInitialized(a)) {\\n a = asEuint128(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint16(0);\\n }\\n return euint128.wrap(Impl.min(euint128.unwrap(a), euint128.unwrap(asEuint128(b)), false));\\n }\\n\\n /**\\n * @dev Evaluates max(euint128 a, euint16 b) and returns the result.\\n */\\n function max(euint128 a, euint16 b) internal returns (euint128) {\\n if (!isInitialized(a)) {\\n a = asEuint128(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint16(0);\\n }\\n return euint128.wrap(Impl.max(euint128.unwrap(a), euint128.unwrap(asEuint128(b)), false));\\n }\\n\\n /**\\n * @dev Evaluates add(euint128 a, euint32 b) and returns the result.\\n */\\n function add(euint128 a, euint32 b) internal returns (euint128) {\\n if (!isInitialized(a)) {\\n a = asEuint128(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint32(0);\\n }\\n return euint128.wrap(Impl.add(euint128.unwrap(a), euint128.unwrap(asEuint128(b)), false));\\n }\\n\\n /**\\n * @dev Evaluates sub(euint128 a, euint32 b) and returns the result.\\n */\\n function sub(euint128 a, euint32 b) internal returns (euint128) {\\n if (!isInitialized(a)) {\\n a = asEuint128(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint32(0);\\n }\\n return euint128.wrap(Impl.sub(euint128.unwrap(a), euint128.unwrap(asEuint128(b)), false));\\n }\\n\\n /**\\n * @dev Evaluates mul(euint128 a, euint32 b) and returns the result.\\n */\\n function mul(euint128 a, euint32 b) internal returns (euint128) {\\n if (!isInitialized(a)) {\\n a = asEuint128(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint32(0);\\n }\\n return euint128.wrap(Impl.mul(euint128.unwrap(a), euint128.unwrap(asEuint128(b)), false));\\n }\\n\\n /**\\n * @dev Evaluates and(euint128 a, euint32 b) and returns the result.\\n */\\n function and(euint128 a, euint32 b) internal returns (euint128) {\\n if (!isInitialized(a)) {\\n a = asEuint128(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint32(0);\\n }\\n return euint128.wrap(Impl.and(euint128.unwrap(a), euint128.unwrap(asEuint128(b)), false));\\n }\\n\\n /**\\n * @dev Evaluates or(euint128 a, euint32 b) and returns the result.\\n */\\n function or(euint128 a, euint32 b) internal returns (euint128) {\\n if (!isInitialized(a)) {\\n a = asEuint128(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint32(0);\\n }\\n return euint128.wrap(Impl.or(euint128.unwrap(a), euint128.unwrap(asEuint128(b)), false));\\n }\\n\\n /**\\n * @dev Evaluates xor(euint128 a, euint32 b) and returns the result.\\n */\\n function xor(euint128 a, euint32 b) internal returns (euint128) {\\n if (!isInitialized(a)) {\\n a = asEuint128(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint32(0);\\n }\\n return euint128.wrap(Impl.xor(euint128.unwrap(a), euint128.unwrap(asEuint128(b)), false));\\n }\\n\\n /**\\n * @dev Evaluates eq(euint128 a, euint32 b) and returns the result.\\n */\\n function eq(euint128 a, euint32 b) internal returns (ebool) {\\n if (!isInitialized(a)) {\\n a = asEuint128(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint32(0);\\n }\\n return ebool.wrap(Impl.eq(euint128.unwrap(a), euint128.unwrap(asEuint128(b)), false));\\n }\\n\\n /**\\n * @dev Evaluates ne(euint128 a, euint32 b) and returns the result.\\n */\\n function ne(euint128 a, euint32 b) internal returns (ebool) {\\n if (!isInitialized(a)) {\\n a = asEuint128(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint32(0);\\n }\\n return ebool.wrap(Impl.ne(euint128.unwrap(a), euint128.unwrap(asEuint128(b)), false));\\n }\\n\\n /**\\n * @dev Evaluates ge(euint128 a, euint32 b) and returns the result.\\n */\\n function ge(euint128 a, euint32 b) internal returns (ebool) {\\n if (!isInitialized(a)) {\\n a = asEuint128(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint32(0);\\n }\\n return ebool.wrap(Impl.ge(euint128.unwrap(a), euint128.unwrap(asEuint128(b)), false));\\n }\\n\\n /**\\n * @dev Evaluates gt(euint128 a, euint32 b) and returns the result.\\n */\\n function gt(euint128 a, euint32 b) internal returns (ebool) {\\n if (!isInitialized(a)) {\\n a = asEuint128(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint32(0);\\n }\\n return ebool.wrap(Impl.gt(euint128.unwrap(a), euint128.unwrap(asEuint128(b)), false));\\n }\\n\\n /**\\n * @dev Evaluates le(euint128 a, euint32 b) and returns the result.\\n */\\n function le(euint128 a, euint32 b) internal returns (ebool) {\\n if (!isInitialized(a)) {\\n a = asEuint128(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint32(0);\\n }\\n return ebool.wrap(Impl.le(euint128.unwrap(a), euint128.unwrap(asEuint128(b)), false));\\n }\\n\\n /**\\n * @dev Evaluates lt(euint128 a, euint32 b) and returns the result.\\n */\\n function lt(euint128 a, euint32 b) internal returns (ebool) {\\n if (!isInitialized(a)) {\\n a = asEuint128(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint32(0);\\n }\\n return ebool.wrap(Impl.lt(euint128.unwrap(a), euint128.unwrap(asEuint128(b)), false));\\n }\\n\\n /**\\n * @dev Evaluates min(euint128 a, euint32 b) and returns the result.\\n */\\n function min(euint128 a, euint32 b) internal returns (euint128) {\\n if (!isInitialized(a)) {\\n a = asEuint128(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint32(0);\\n }\\n return euint128.wrap(Impl.min(euint128.unwrap(a), euint128.unwrap(asEuint128(b)), false));\\n }\\n\\n /**\\n * @dev Evaluates max(euint128 a, euint32 b) and returns the result.\\n */\\n function max(euint128 a, euint32 b) internal returns (euint128) {\\n if (!isInitialized(a)) {\\n a = asEuint128(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint32(0);\\n }\\n return euint128.wrap(Impl.max(euint128.unwrap(a), euint128.unwrap(asEuint128(b)), false));\\n }\\n\\n /**\\n * @dev Evaluates add(euint128 a, euint64 b) and returns the result.\\n */\\n function add(euint128 a, euint64 b) internal returns (euint128) {\\n if (!isInitialized(a)) {\\n a = asEuint128(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint64(0);\\n }\\n return euint128.wrap(Impl.add(euint128.unwrap(a), euint128.unwrap(asEuint128(b)), false));\\n }\\n\\n /**\\n * @dev Evaluates sub(euint128 a, euint64 b) and returns the result.\\n */\\n function sub(euint128 a, euint64 b) internal returns (euint128) {\\n if (!isInitialized(a)) {\\n a = asEuint128(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint64(0);\\n }\\n return euint128.wrap(Impl.sub(euint128.unwrap(a), euint128.unwrap(asEuint128(b)), false));\\n }\\n\\n /**\\n * @dev Evaluates mul(euint128 a, euint64 b) and returns the result.\\n */\\n function mul(euint128 a, euint64 b) internal returns (euint128) {\\n if (!isInitialized(a)) {\\n a = asEuint128(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint64(0);\\n }\\n return euint128.wrap(Impl.mul(euint128.unwrap(a), euint128.unwrap(asEuint128(b)), false));\\n }\\n\\n /**\\n * @dev Evaluates and(euint128 a, euint64 b) and returns the result.\\n */\\n function and(euint128 a, euint64 b) internal returns (euint128) {\\n if (!isInitialized(a)) {\\n a = asEuint128(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint64(0);\\n }\\n return euint128.wrap(Impl.and(euint128.unwrap(a), euint128.unwrap(asEuint128(b)), false));\\n }\\n\\n /**\\n * @dev Evaluates or(euint128 a, euint64 b) and returns the result.\\n */\\n function or(euint128 a, euint64 b) internal returns (euint128) {\\n if (!isInitialized(a)) {\\n a = asEuint128(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint64(0);\\n }\\n return euint128.wrap(Impl.or(euint128.unwrap(a), euint128.unwrap(asEuint128(b)), false));\\n }\\n\\n /**\\n * @dev Evaluates xor(euint128 a, euint64 b) and returns the result.\\n */\\n function xor(euint128 a, euint64 b) internal returns (euint128) {\\n if (!isInitialized(a)) {\\n a = asEuint128(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint64(0);\\n }\\n return euint128.wrap(Impl.xor(euint128.unwrap(a), euint128.unwrap(asEuint128(b)), false));\\n }\\n\\n /**\\n * @dev Evaluates eq(euint128 a, euint64 b) and returns the result.\\n */\\n function eq(euint128 a, euint64 b) internal returns (ebool) {\\n if (!isInitialized(a)) {\\n a = asEuint128(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint64(0);\\n }\\n return ebool.wrap(Impl.eq(euint128.unwrap(a), euint128.unwrap(asEuint128(b)), false));\\n }\\n\\n /**\\n * @dev Evaluates ne(euint128 a, euint64 b) and returns the result.\\n */\\n function ne(euint128 a, euint64 b) internal returns (ebool) {\\n if (!isInitialized(a)) {\\n a = asEuint128(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint64(0);\\n }\\n return ebool.wrap(Impl.ne(euint128.unwrap(a), euint128.unwrap(asEuint128(b)), false));\\n }\\n\\n /**\\n * @dev Evaluates ge(euint128 a, euint64 b) and returns the result.\\n */\\n function ge(euint128 a, euint64 b) internal returns (ebool) {\\n if (!isInitialized(a)) {\\n a = asEuint128(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint64(0);\\n }\\n return ebool.wrap(Impl.ge(euint128.unwrap(a), euint128.unwrap(asEuint128(b)), false));\\n }\\n\\n /**\\n * @dev Evaluates gt(euint128 a, euint64 b) and returns the result.\\n */\\n function gt(euint128 a, euint64 b) internal returns (ebool) {\\n if (!isInitialized(a)) {\\n a = asEuint128(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint64(0);\\n }\\n return ebool.wrap(Impl.gt(euint128.unwrap(a), euint128.unwrap(asEuint128(b)), false));\\n }\\n\\n /**\\n * @dev Evaluates le(euint128 a, euint64 b) and returns the result.\\n */\\n function le(euint128 a, euint64 b) internal returns (ebool) {\\n if (!isInitialized(a)) {\\n a = asEuint128(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint64(0);\\n }\\n return ebool.wrap(Impl.le(euint128.unwrap(a), euint128.unwrap(asEuint128(b)), false));\\n }\\n\\n /**\\n * @dev Evaluates lt(euint128 a, euint64 b) and returns the result.\\n */\\n function lt(euint128 a, euint64 b) internal returns (ebool) {\\n if (!isInitialized(a)) {\\n a = asEuint128(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint64(0);\\n }\\n return ebool.wrap(Impl.lt(euint128.unwrap(a), euint128.unwrap(asEuint128(b)), false));\\n }\\n\\n /**\\n * @dev Evaluates min(euint128 a, euint64 b) and returns the result.\\n */\\n function min(euint128 a, euint64 b) internal returns (euint128) {\\n if (!isInitialized(a)) {\\n a = asEuint128(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint64(0);\\n }\\n return euint128.wrap(Impl.min(euint128.unwrap(a), euint128.unwrap(asEuint128(b)), false));\\n }\\n\\n /**\\n * @dev Evaluates max(euint128 a, euint64 b) and returns the result.\\n */\\n function max(euint128 a, euint64 b) internal returns (euint128) {\\n if (!isInitialized(a)) {\\n a = asEuint128(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint64(0);\\n }\\n return euint128.wrap(Impl.max(euint128.unwrap(a), euint128.unwrap(asEuint128(b)), false));\\n }\\n\\n /**\\n * @dev Evaluates add(euint128 a, euint128 b) and returns the result.\\n */\\n function add(euint128 a, euint128 b) internal returns (euint128) {\\n if (!isInitialized(a)) {\\n a = asEuint128(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint128(0);\\n }\\n return euint128.wrap(Impl.add(euint128.unwrap(a), euint128.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates sub(euint128 a, euint128 b) and returns the result.\\n */\\n function sub(euint128 a, euint128 b) internal returns (euint128) {\\n if (!isInitialized(a)) {\\n a = asEuint128(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint128(0);\\n }\\n return euint128.wrap(Impl.sub(euint128.unwrap(a), euint128.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates mul(euint128 a, euint128 b) and returns the result.\\n */\\n function mul(euint128 a, euint128 b) internal returns (euint128) {\\n if (!isInitialized(a)) {\\n a = asEuint128(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint128(0);\\n }\\n return euint128.wrap(Impl.mul(euint128.unwrap(a), euint128.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates and(euint128 a, euint128 b) and returns the result.\\n */\\n function and(euint128 a, euint128 b) internal returns (euint128) {\\n if (!isInitialized(a)) {\\n a = asEuint128(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint128(0);\\n }\\n return euint128.wrap(Impl.and(euint128.unwrap(a), euint128.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates or(euint128 a, euint128 b) and returns the result.\\n */\\n function or(euint128 a, euint128 b) internal returns (euint128) {\\n if (!isInitialized(a)) {\\n a = asEuint128(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint128(0);\\n }\\n return euint128.wrap(Impl.or(euint128.unwrap(a), euint128.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates xor(euint128 a, euint128 b) and returns the result.\\n */\\n function xor(euint128 a, euint128 b) internal returns (euint128) {\\n if (!isInitialized(a)) {\\n a = asEuint128(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint128(0);\\n }\\n return euint128.wrap(Impl.xor(euint128.unwrap(a), euint128.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates eq(euint128 a, euint128 b) and returns the result.\\n */\\n function eq(euint128 a, euint128 b) internal returns (ebool) {\\n if (!isInitialized(a)) {\\n a = asEuint128(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint128(0);\\n }\\n return ebool.wrap(Impl.eq(euint128.unwrap(a), euint128.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates ne(euint128 a, euint128 b) and returns the result.\\n */\\n function ne(euint128 a, euint128 b) internal returns (ebool) {\\n if (!isInitialized(a)) {\\n a = asEuint128(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint128(0);\\n }\\n return ebool.wrap(Impl.ne(euint128.unwrap(a), euint128.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates ge(euint128 a, euint128 b) and returns the result.\\n */\\n function ge(euint128 a, euint128 b) internal returns (ebool) {\\n if (!isInitialized(a)) {\\n a = asEuint128(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint128(0);\\n }\\n return ebool.wrap(Impl.ge(euint128.unwrap(a), euint128.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates gt(euint128 a, euint128 b) and returns the result.\\n */\\n function gt(euint128 a, euint128 b) internal returns (ebool) {\\n if (!isInitialized(a)) {\\n a = asEuint128(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint128(0);\\n }\\n return ebool.wrap(Impl.gt(euint128.unwrap(a), euint128.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates le(euint128 a, euint128 b) and returns the result.\\n */\\n function le(euint128 a, euint128 b) internal returns (ebool) {\\n if (!isInitialized(a)) {\\n a = asEuint128(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint128(0);\\n }\\n return ebool.wrap(Impl.le(euint128.unwrap(a), euint128.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates lt(euint128 a, euint128 b) and returns the result.\\n */\\n function lt(euint128 a, euint128 b) internal returns (ebool) {\\n if (!isInitialized(a)) {\\n a = asEuint128(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint128(0);\\n }\\n return ebool.wrap(Impl.lt(euint128.unwrap(a), euint128.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates min(euint128 a, euint128 b) and returns the result.\\n */\\n function min(euint128 a, euint128 b) internal returns (euint128) {\\n if (!isInitialized(a)) {\\n a = asEuint128(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint128(0);\\n }\\n return euint128.wrap(Impl.min(euint128.unwrap(a), euint128.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates max(euint128 a, euint128 b) and returns the result.\\n */\\n function max(euint128 a, euint128 b) internal returns (euint128) {\\n if (!isInitialized(a)) {\\n a = asEuint128(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint128(0);\\n }\\n return euint128.wrap(Impl.max(euint128.unwrap(a), euint128.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates and(euint128 a, euint256 b) and returns the result.\\n */\\n function and(euint128 a, euint256 b) internal returns (euint256) {\\n if (!isInitialized(a)) {\\n a = asEuint128(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint256(0);\\n }\\n return euint256.wrap(Impl.and(euint256.unwrap(asEuint256(a)), euint256.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates or(euint128 a, euint256 b) and returns the result.\\n */\\n function or(euint128 a, euint256 b) internal returns (euint256) {\\n if (!isInitialized(a)) {\\n a = asEuint128(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint256(0);\\n }\\n return euint256.wrap(Impl.or(euint256.unwrap(asEuint256(a)), euint256.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates xor(euint128 a, euint256 b) and returns the result.\\n */\\n function xor(euint128 a, euint256 b) internal returns (euint256) {\\n if (!isInitialized(a)) {\\n a = asEuint128(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint256(0);\\n }\\n return euint256.wrap(Impl.xor(euint256.unwrap(asEuint256(a)), euint256.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates eq(euint128 a, euint256 b) and returns the result.\\n */\\n function eq(euint128 a, euint256 b) internal returns (ebool) {\\n if (!isInitialized(a)) {\\n a = asEuint128(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint256(0);\\n }\\n return ebool.wrap(Impl.eq(euint256.unwrap(asEuint256(a)), euint256.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates ne(euint128 a, euint256 b) and returns the result.\\n */\\n function ne(euint128 a, euint256 b) internal returns (ebool) {\\n if (!isInitialized(a)) {\\n a = asEuint128(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint256(0);\\n }\\n return ebool.wrap(Impl.ne(euint256.unwrap(asEuint256(a)), euint256.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates eq(eaddress a, eaddress b) and returns the result.\\n */\\n function eq(eaddress a, eaddress b) internal returns (ebool) {\\n if (!isInitialized(a)) {\\n a = asEaddress(address(0));\\n }\\n if (!isInitialized(b)) {\\n b = asEaddress(address(0));\\n }\\n return ebool.wrap(Impl.eq(eaddress.unwrap(a), eaddress.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates ne(eaddress a, eaddress b) and returns the result.\\n */\\n function ne(eaddress a, eaddress b) internal returns (ebool) {\\n if (!isInitialized(a)) {\\n a = asEaddress(address(0));\\n }\\n if (!isInitialized(b)) {\\n b = asEaddress(address(0));\\n }\\n return ebool.wrap(Impl.ne(eaddress.unwrap(a), eaddress.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates and(euint256 a, euint8 b) and returns the result.\\n */\\n function and(euint256 a, euint8 b) internal returns (euint256) {\\n if (!isInitialized(a)) {\\n a = asEuint256(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint8(0);\\n }\\n return euint256.wrap(Impl.and(euint256.unwrap(a), euint256.unwrap(asEuint256(b)), false));\\n }\\n\\n /**\\n * @dev Evaluates or(euint256 a, euint8 b) and returns the result.\\n */\\n function or(euint256 a, euint8 b) internal returns (euint256) {\\n if (!isInitialized(a)) {\\n a = asEuint256(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint8(0);\\n }\\n return euint256.wrap(Impl.or(euint256.unwrap(a), euint256.unwrap(asEuint256(b)), false));\\n }\\n\\n /**\\n * @dev Evaluates xor(euint256 a, euint8 b) and returns the result.\\n */\\n function xor(euint256 a, euint8 b) internal returns (euint256) {\\n if (!isInitialized(a)) {\\n a = asEuint256(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint8(0);\\n }\\n return euint256.wrap(Impl.xor(euint256.unwrap(a), euint256.unwrap(asEuint256(b)), false));\\n }\\n\\n /**\\n * @dev Evaluates eq(euint256 a, euint8 b) and returns the result.\\n */\\n function eq(euint256 a, euint8 b) internal returns (ebool) {\\n if (!isInitialized(a)) {\\n a = asEuint256(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint8(0);\\n }\\n return ebool.wrap(Impl.eq(euint256.unwrap(a), euint256.unwrap(asEuint256(b)), false));\\n }\\n\\n /**\\n * @dev Evaluates ne(euint256 a, euint8 b) and returns the result.\\n */\\n function ne(euint256 a, euint8 b) internal returns (ebool) {\\n if (!isInitialized(a)) {\\n a = asEuint256(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint8(0);\\n }\\n return ebool.wrap(Impl.ne(euint256.unwrap(a), euint256.unwrap(asEuint256(b)), false));\\n }\\n\\n /**\\n * @dev Evaluates and(euint256 a, euint16 b) and returns the result.\\n */\\n function and(euint256 a, euint16 b) internal returns (euint256) {\\n if (!isInitialized(a)) {\\n a = asEuint256(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint16(0);\\n }\\n return euint256.wrap(Impl.and(euint256.unwrap(a), euint256.unwrap(asEuint256(b)), false));\\n }\\n\\n /**\\n * @dev Evaluates or(euint256 a, euint16 b) and returns the result.\\n */\\n function or(euint256 a, euint16 b) internal returns (euint256) {\\n if (!isInitialized(a)) {\\n a = asEuint256(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint16(0);\\n }\\n return euint256.wrap(Impl.or(euint256.unwrap(a), euint256.unwrap(asEuint256(b)), false));\\n }\\n\\n /**\\n * @dev Evaluates xor(euint256 a, euint16 b) and returns the result.\\n */\\n function xor(euint256 a, euint16 b) internal returns (euint256) {\\n if (!isInitialized(a)) {\\n a = asEuint256(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint16(0);\\n }\\n return euint256.wrap(Impl.xor(euint256.unwrap(a), euint256.unwrap(asEuint256(b)), false));\\n }\\n\\n /**\\n * @dev Evaluates eq(euint256 a, euint16 b) and returns the result.\\n */\\n function eq(euint256 a, euint16 b) internal returns (ebool) {\\n if (!isInitialized(a)) {\\n a = asEuint256(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint16(0);\\n }\\n return ebool.wrap(Impl.eq(euint256.unwrap(a), euint256.unwrap(asEuint256(b)), false));\\n }\\n\\n /**\\n * @dev Evaluates ne(euint256 a, euint16 b) and returns the result.\\n */\\n function ne(euint256 a, euint16 b) internal returns (ebool) {\\n if (!isInitialized(a)) {\\n a = asEuint256(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint16(0);\\n }\\n return ebool.wrap(Impl.ne(euint256.unwrap(a), euint256.unwrap(asEuint256(b)), false));\\n }\\n\\n /**\\n * @dev Evaluates and(euint256 a, euint32 b) and returns the result.\\n */\\n function and(euint256 a, euint32 b) internal returns (euint256) {\\n if (!isInitialized(a)) {\\n a = asEuint256(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint32(0);\\n }\\n return euint256.wrap(Impl.and(euint256.unwrap(a), euint256.unwrap(asEuint256(b)), false));\\n }\\n\\n /**\\n * @dev Evaluates or(euint256 a, euint32 b) and returns the result.\\n */\\n function or(euint256 a, euint32 b) internal returns (euint256) {\\n if (!isInitialized(a)) {\\n a = asEuint256(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint32(0);\\n }\\n return euint256.wrap(Impl.or(euint256.unwrap(a), euint256.unwrap(asEuint256(b)), false));\\n }\\n\\n /**\\n * @dev Evaluates xor(euint256 a, euint32 b) and returns the result.\\n */\\n function xor(euint256 a, euint32 b) internal returns (euint256) {\\n if (!isInitialized(a)) {\\n a = asEuint256(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint32(0);\\n }\\n return euint256.wrap(Impl.xor(euint256.unwrap(a), euint256.unwrap(asEuint256(b)), false));\\n }\\n\\n /**\\n * @dev Evaluates eq(euint256 a, euint32 b) and returns the result.\\n */\\n function eq(euint256 a, euint32 b) internal returns (ebool) {\\n if (!isInitialized(a)) {\\n a = asEuint256(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint32(0);\\n }\\n return ebool.wrap(Impl.eq(euint256.unwrap(a), euint256.unwrap(asEuint256(b)), false));\\n }\\n\\n /**\\n * @dev Evaluates ne(euint256 a, euint32 b) and returns the result.\\n */\\n function ne(euint256 a, euint32 b) internal returns (ebool) {\\n if (!isInitialized(a)) {\\n a = asEuint256(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint32(0);\\n }\\n return ebool.wrap(Impl.ne(euint256.unwrap(a), euint256.unwrap(asEuint256(b)), false));\\n }\\n\\n /**\\n * @dev Evaluates and(euint256 a, euint64 b) and returns the result.\\n */\\n function and(euint256 a, euint64 b) internal returns (euint256) {\\n if (!isInitialized(a)) {\\n a = asEuint256(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint64(0);\\n }\\n return euint256.wrap(Impl.and(euint256.unwrap(a), euint256.unwrap(asEuint256(b)), false));\\n }\\n\\n /**\\n * @dev Evaluates or(euint256 a, euint64 b) and returns the result.\\n */\\n function or(euint256 a, euint64 b) internal returns (euint256) {\\n if (!isInitialized(a)) {\\n a = asEuint256(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint64(0);\\n }\\n return euint256.wrap(Impl.or(euint256.unwrap(a), euint256.unwrap(asEuint256(b)), false));\\n }\\n\\n /**\\n * @dev Evaluates xor(euint256 a, euint64 b) and returns the result.\\n */\\n function xor(euint256 a, euint64 b) internal returns (euint256) {\\n if (!isInitialized(a)) {\\n a = asEuint256(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint64(0);\\n }\\n return euint256.wrap(Impl.xor(euint256.unwrap(a), euint256.unwrap(asEuint256(b)), false));\\n }\\n\\n /**\\n * @dev Evaluates eq(euint256 a, euint64 b) and returns the result.\\n */\\n function eq(euint256 a, euint64 b) internal returns (ebool) {\\n if (!isInitialized(a)) {\\n a = asEuint256(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint64(0);\\n }\\n return ebool.wrap(Impl.eq(euint256.unwrap(a), euint256.unwrap(asEuint256(b)), false));\\n }\\n\\n /**\\n * @dev Evaluates ne(euint256 a, euint64 b) and returns the result.\\n */\\n function ne(euint256 a, euint64 b) internal returns (ebool) {\\n if (!isInitialized(a)) {\\n a = asEuint256(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint64(0);\\n }\\n return ebool.wrap(Impl.ne(euint256.unwrap(a), euint256.unwrap(asEuint256(b)), false));\\n }\\n\\n /**\\n * @dev Evaluates and(euint256 a, euint128 b) and returns the result.\\n */\\n function and(euint256 a, euint128 b) internal returns (euint256) {\\n if (!isInitialized(a)) {\\n a = asEuint256(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint128(0);\\n }\\n return euint256.wrap(Impl.and(euint256.unwrap(a), euint256.unwrap(asEuint256(b)), false));\\n }\\n\\n /**\\n * @dev Evaluates or(euint256 a, euint128 b) and returns the result.\\n */\\n function or(euint256 a, euint128 b) internal returns (euint256) {\\n if (!isInitialized(a)) {\\n a = asEuint256(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint128(0);\\n }\\n return euint256.wrap(Impl.or(euint256.unwrap(a), euint256.unwrap(asEuint256(b)), false));\\n }\\n\\n /**\\n * @dev Evaluates xor(euint256 a, euint128 b) and returns the result.\\n */\\n function xor(euint256 a, euint128 b) internal returns (euint256) {\\n if (!isInitialized(a)) {\\n a = asEuint256(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint128(0);\\n }\\n return euint256.wrap(Impl.xor(euint256.unwrap(a), euint256.unwrap(asEuint256(b)), false));\\n }\\n\\n /**\\n * @dev Evaluates eq(euint256 a, euint128 b) and returns the result.\\n */\\n function eq(euint256 a, euint128 b) internal returns (ebool) {\\n if (!isInitialized(a)) {\\n a = asEuint256(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint128(0);\\n }\\n return ebool.wrap(Impl.eq(euint256.unwrap(a), euint256.unwrap(asEuint256(b)), false));\\n }\\n\\n /**\\n * @dev Evaluates ne(euint256 a, euint128 b) and returns the result.\\n */\\n function ne(euint256 a, euint128 b) internal returns (ebool) {\\n if (!isInitialized(a)) {\\n a = asEuint256(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint128(0);\\n }\\n return ebool.wrap(Impl.ne(euint256.unwrap(a), euint256.unwrap(asEuint256(b)), false));\\n }\\n\\n /**\\n * @dev Evaluates and(euint256 a, euint256 b) and returns the result.\\n */\\n function and(euint256 a, euint256 b) internal returns (euint256) {\\n if (!isInitialized(a)) {\\n a = asEuint256(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint256(0);\\n }\\n return euint256.wrap(Impl.and(euint256.unwrap(a), euint256.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates or(euint256 a, euint256 b) and returns the result.\\n */\\n function or(euint256 a, euint256 b) internal returns (euint256) {\\n if (!isInitialized(a)) {\\n a = asEuint256(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint256(0);\\n }\\n return euint256.wrap(Impl.or(euint256.unwrap(a), euint256.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates xor(euint256 a, euint256 b) and returns the result.\\n */\\n function xor(euint256 a, euint256 b) internal returns (euint256) {\\n if (!isInitialized(a)) {\\n a = asEuint256(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint256(0);\\n }\\n return euint256.wrap(Impl.xor(euint256.unwrap(a), euint256.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates eq(euint256 a, euint256 b) and returns the result.\\n */\\n function eq(euint256 a, euint256 b) internal returns (ebool) {\\n if (!isInitialized(a)) {\\n a = asEuint256(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint256(0);\\n }\\n return ebool.wrap(Impl.eq(euint256.unwrap(a), euint256.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates ne(euint256 a, euint256 b) and returns the result.\\n */\\n function ne(euint256 a, euint256 b) internal returns (ebool) {\\n if (!isInitialized(a)) {\\n a = asEuint256(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint256(0);\\n }\\n return ebool.wrap(Impl.ne(euint256.unwrap(a), euint256.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates and(ebool a, bool b) and returns the result.\\n */\\n function and(ebool a, bool b) internal returns (ebool) {\\n if (!isInitialized(a)) {\\n a = asEbool(false);\\n }\\n return ebool.wrap(Impl.and(ebool.unwrap(a), bytes32(uint256(b ? 1 : 0)), true));\\n }\\n\\n /**\\n * @dev Evaluates and(bool a, ebool b) and returns the result.\\n */\\n function and(bool a, ebool b) internal returns (ebool) {\\n if (!isInitialized(b)) {\\n b = asEbool(false);\\n }\\n return ebool.wrap(Impl.and(ebool.unwrap(b), bytes32(uint256(a ? 1 : 0)), true));\\n }\\n\\n /**\\n * @dev Evaluates or(ebool a, bool b) and returns the result.\\n */\\n function or(ebool a, bool b) internal returns (ebool) {\\n if (!isInitialized(a)) {\\n a = asEbool(false);\\n }\\n return ebool.wrap(Impl.or(ebool.unwrap(a), bytes32(uint256(b ? 1 : 0)), true));\\n }\\n\\n /**\\n * @dev Evaluates or(bool a, ebool b) and returns the result.\\n */\\n function or(bool a, ebool b) internal returns (ebool) {\\n if (!isInitialized(b)) {\\n b = asEbool(false);\\n }\\n return ebool.wrap(Impl.or(ebool.unwrap(b), bytes32(uint256(a ? 1 : 0)), true));\\n }\\n\\n /**\\n * @dev Evaluates xor(ebool a, bool b) and returns the result.\\n */\\n function xor(ebool a, bool b) internal returns (ebool) {\\n if (!isInitialized(a)) {\\n a = asEbool(false);\\n }\\n return ebool.wrap(Impl.xor(ebool.unwrap(a), bytes32(uint256(b ? 1 : 0)), true));\\n }\\n\\n /**\\n * @dev Evaluates xor(bool a, ebool b) and returns the result.\\n */\\n function xor(bool a, ebool b) internal returns (ebool) {\\n if (!isInitialized(b)) {\\n b = asEbool(false);\\n }\\n return ebool.wrap(Impl.xor(ebool.unwrap(b), bytes32(uint256(a ? 1 : 0)), true));\\n }\\n\\n /**\\n * @dev Evaluates eq(ebool a, bool b) and returns the result.\\n */\\n function eq(ebool a, bool b) internal returns (ebool) {\\n if (!isInitialized(a)) {\\n a = asEbool(false);\\n }\\n return ebool.wrap(Impl.eq(ebool.unwrap(a), bytes32(uint256(b ? 1 : 0)), true));\\n }\\n\\n /**\\n * @dev Evaluates eq(bool a, ebool b) and returns the result.\\n */\\n function eq(bool a, ebool b) internal returns (ebool) {\\n if (!isInitialized(b)) {\\n b = asEbool(false);\\n }\\n return ebool.wrap(Impl.eq(ebool.unwrap(b), bytes32(uint256(a ? 1 : 0)), true));\\n }\\n\\n /**\\n * @dev Evaluates ne(ebool a, bool b) and returns the result.\\n */\\n function ne(ebool a, bool b) internal returns (ebool) {\\n if (!isInitialized(a)) {\\n a = asEbool(false);\\n }\\n return ebool.wrap(Impl.ne(ebool.unwrap(a), bytes32(uint256(b ? 1 : 0)), true));\\n }\\n\\n /**\\n * @dev Evaluates ne(bool a, ebool b) and returns the result.\\n */\\n function ne(bool a, ebool b) internal returns (ebool) {\\n if (!isInitialized(b)) {\\n b = asEbool(false);\\n }\\n return ebool.wrap(Impl.ne(ebool.unwrap(b), bytes32(uint256(a ? 1 : 0)), true));\\n }\\n\\n /**\\n * @dev Evaluates add(euint8 a, uint8 b) and returns the result.\\n */\\n function add(euint8 a, uint8 b) internal returns (euint8) {\\n if (!isInitialized(a)) {\\n a = asEuint8(0);\\n }\\n return euint8.wrap(Impl.add(euint8.unwrap(a), bytes32(uint256(b)), true));\\n }\\n\\n /**\\n * @dev Evaluates add(uint8 a, euint8 b) and returns the result.\\n */\\n function add(uint8 a, euint8 b) internal returns (euint8) {\\n if (!isInitialized(b)) {\\n b = asEuint8(0);\\n }\\n return euint8.wrap(Impl.add(euint8.unwrap(b), bytes32(uint256(a)), true));\\n }\\n\\n /**\\n * @dev Evaluates sub(euint8 a, uint8 b) and returns the result.\\n */\\n function sub(euint8 a, uint8 b) internal returns (euint8) {\\n if (!isInitialized(a)) {\\n a = asEuint8(0);\\n }\\n return euint8.wrap(Impl.sub(euint8.unwrap(a), bytes32(uint256(b)), true));\\n }\\n\\n /**\\n * @dev Evaluates sub(uint8 a, euint8 b) and returns the result.\\n */\\n function sub(uint8 a, euint8 b) internal returns (euint8) {\\n euint8 aEnc = asEuint8(a);\\n if (!isInitialized(b)) {\\n b = asEuint8(0);\\n }\\n return euint8.wrap(Impl.sub(euint8.unwrap(aEnc), euint8.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates mul(euint8 a, uint8 b) and returns the result.\\n */\\n function mul(euint8 a, uint8 b) internal returns (euint8) {\\n if (!isInitialized(a)) {\\n a = asEuint8(0);\\n }\\n return euint8.wrap(Impl.mul(euint8.unwrap(a), bytes32(uint256(b)), true));\\n }\\n\\n /**\\n * @dev Evaluates mul(uint8 a, euint8 b) and returns the result.\\n */\\n function mul(uint8 a, euint8 b) internal returns (euint8) {\\n if (!isInitialized(b)) {\\n b = asEuint8(0);\\n }\\n return euint8.wrap(Impl.mul(euint8.unwrap(b), bytes32(uint256(a)), true));\\n }\\n\\n /**\\n * @dev Evaluates div(euint8 a, uint8 b) and returns the result.\\n */\\n function div(euint8 a, uint8 b) internal returns (euint8) {\\n if (!isInitialized(a)) {\\n a = asEuint8(0);\\n }\\n return euint8.wrap(Impl.div(euint8.unwrap(a), bytes32(uint256(b))));\\n }\\n\\n /**\\n * @dev Evaluates rem(euint8 a, uint8 b) and returns the result.\\n */\\n function rem(euint8 a, uint8 b) internal returns (euint8) {\\n if (!isInitialized(a)) {\\n a = asEuint8(0);\\n }\\n return euint8.wrap(Impl.rem(euint8.unwrap(a), bytes32(uint256(b))));\\n }\\n\\n /**\\n * @dev Evaluates and(euint8 a, uint8 b) and returns the result.\\n */\\n function and(euint8 a, uint8 b) internal returns (euint8) {\\n if (!isInitialized(a)) {\\n a = asEuint8(0);\\n }\\n return euint8.wrap(Impl.and(euint8.unwrap(a), bytes32(uint256(b)), true));\\n }\\n\\n /**\\n * @dev Evaluates and(uint8 a, euint8 b) and returns the result.\\n */\\n function and(uint8 a, euint8 b) internal returns (euint8) {\\n if (!isInitialized(b)) {\\n b = asEuint8(0);\\n }\\n return euint8.wrap(Impl.and(euint8.unwrap(b), bytes32(uint256(a)), true));\\n }\\n\\n /**\\n * @dev Evaluates or(euint8 a, uint8 b) and returns the result.\\n */\\n function or(euint8 a, uint8 b) internal returns (euint8) {\\n if (!isInitialized(a)) {\\n a = asEuint8(0);\\n }\\n return euint8.wrap(Impl.or(euint8.unwrap(a), bytes32(uint256(b)), true));\\n }\\n\\n /**\\n * @dev Evaluates or(uint8 a, euint8 b) and returns the result.\\n */\\n function or(uint8 a, euint8 b) internal returns (euint8) {\\n if (!isInitialized(b)) {\\n b = asEuint8(0);\\n }\\n return euint8.wrap(Impl.or(euint8.unwrap(b), bytes32(uint256(a)), true));\\n }\\n\\n /**\\n * @dev Evaluates xor(euint8 a, uint8 b) and returns the result.\\n */\\n function xor(euint8 a, uint8 b) internal returns (euint8) {\\n if (!isInitialized(a)) {\\n a = asEuint8(0);\\n }\\n return euint8.wrap(Impl.xor(euint8.unwrap(a), bytes32(uint256(b)), true));\\n }\\n\\n /**\\n * @dev Evaluates xor(uint8 a, euint8 b) and returns the result.\\n */\\n function xor(uint8 a, euint8 b) internal returns (euint8) {\\n if (!isInitialized(b)) {\\n b = asEuint8(0);\\n }\\n return euint8.wrap(Impl.xor(euint8.unwrap(b), bytes32(uint256(a)), true));\\n }\\n\\n /**\\n * @dev Evaluates eq(euint8 a, uint8 b) and returns the result.\\n */\\n function eq(euint8 a, uint8 b) internal returns (ebool) {\\n if (!isInitialized(a)) {\\n a = asEuint8(0);\\n }\\n return ebool.wrap(Impl.eq(euint8.unwrap(a), bytes32(uint256(b)), true));\\n }\\n\\n /**\\n * @dev Evaluates eq(uint8 a, euint8 b) and returns the result.\\n */\\n function eq(uint8 a, euint8 b) internal returns (ebool) {\\n if (!isInitialized(b)) {\\n b = asEuint8(0);\\n }\\n return ebool.wrap(Impl.eq(euint8.unwrap(b), bytes32(uint256(a)), true));\\n }\\n\\n /**\\n * @dev Evaluates ne(euint8 a, uint8 b) and returns the result.\\n */\\n function ne(euint8 a, uint8 b) internal returns (ebool) {\\n if (!isInitialized(a)) {\\n a = asEuint8(0);\\n }\\n return ebool.wrap(Impl.ne(euint8.unwrap(a), bytes32(uint256(b)), true));\\n }\\n\\n /**\\n * @dev Evaluates ne(uint8 a, euint8 b) and returns the result.\\n */\\n function ne(uint8 a, euint8 b) internal returns (ebool) {\\n if (!isInitialized(b)) {\\n b = asEuint8(0);\\n }\\n return ebool.wrap(Impl.ne(euint8.unwrap(b), bytes32(uint256(a)), true));\\n }\\n\\n /**\\n * @dev Evaluates ge(euint8 a, uint8 b) and returns the result.\\n */\\n function ge(euint8 a, uint8 b) internal returns (ebool) {\\n if (!isInitialized(a)) {\\n a = asEuint8(0);\\n }\\n return ebool.wrap(Impl.ge(euint8.unwrap(a), bytes32(uint256(b)), true));\\n }\\n\\n /**\\n * @dev Evaluates ge(uint8 a, euint8 b) and returns the result.\\n */\\n function ge(uint8 a, euint8 b) internal returns (ebool) {\\n if (!isInitialized(b)) {\\n b = asEuint8(0);\\n }\\n return ebool.wrap(Impl.le(euint8.unwrap(b), bytes32(uint256(a)), true));\\n }\\n\\n /**\\n * @dev Evaluates gt(euint8 a, uint8 b) and returns the result.\\n */\\n function gt(euint8 a, uint8 b) internal returns (ebool) {\\n if (!isInitialized(a)) {\\n a = asEuint8(0);\\n }\\n return ebool.wrap(Impl.gt(euint8.unwrap(a), bytes32(uint256(b)), true));\\n }\\n\\n /**\\n * @dev Evaluates gt(uint8 a, euint8 b) and returns the result.\\n */\\n function gt(uint8 a, euint8 b) internal returns (ebool) {\\n if (!isInitialized(b)) {\\n b = asEuint8(0);\\n }\\n return ebool.wrap(Impl.lt(euint8.unwrap(b), bytes32(uint256(a)), true));\\n }\\n\\n /**\\n * @dev Evaluates le(euint8 a, uint8 b) and returns the result.\\n */\\n function le(euint8 a, uint8 b) internal returns (ebool) {\\n if (!isInitialized(a)) {\\n a = asEuint8(0);\\n }\\n return ebool.wrap(Impl.le(euint8.unwrap(a), bytes32(uint256(b)), true));\\n }\\n\\n /**\\n * @dev Evaluates le(uint8 a, euint8 b) and returns the result.\\n */\\n function le(uint8 a, euint8 b) internal returns (ebool) {\\n if (!isInitialized(b)) {\\n b = asEuint8(0);\\n }\\n return ebool.wrap(Impl.ge(euint8.unwrap(b), bytes32(uint256(a)), true));\\n }\\n\\n /**\\n * @dev Evaluates lt(euint8 a, uint8 b) and returns the result.\\n */\\n function lt(euint8 a, uint8 b) internal returns (ebool) {\\n if (!isInitialized(a)) {\\n a = asEuint8(0);\\n }\\n return ebool.wrap(Impl.lt(euint8.unwrap(a), bytes32(uint256(b)), true));\\n }\\n\\n /**\\n * @dev Evaluates lt(uint8 a, euint8 b) and returns the result.\\n */\\n function lt(uint8 a, euint8 b) internal returns (ebool) {\\n if (!isInitialized(b)) {\\n b = asEuint8(0);\\n }\\n return ebool.wrap(Impl.gt(euint8.unwrap(b), bytes32(uint256(a)), true));\\n }\\n\\n /**\\n * @dev Evaluates min(euint8 a, uint8 b) and returns the result.\\n */\\n function min(euint8 a, uint8 b) internal returns (euint8) {\\n if (!isInitialized(a)) {\\n a = asEuint8(0);\\n }\\n return euint8.wrap(Impl.min(euint8.unwrap(a), bytes32(uint256(b)), true));\\n }\\n\\n /**\\n * @dev Evaluates min(uint8 a, euint8 b) and returns the result.\\n */\\n function min(uint8 a, euint8 b) internal returns (euint8) {\\n if (!isInitialized(b)) {\\n b = asEuint8(0);\\n }\\n return euint8.wrap(Impl.min(euint8.unwrap(b), bytes32(uint256(a)), true));\\n }\\n\\n /**\\n * @dev Evaluates max(euint8 a, uint8 b) and returns the result.\\n */\\n function max(euint8 a, uint8 b) internal returns (euint8) {\\n if (!isInitialized(a)) {\\n a = asEuint8(0);\\n }\\n return euint8.wrap(Impl.max(euint8.unwrap(a), bytes32(uint256(b)), true));\\n }\\n\\n /**\\n * @dev Evaluates max(uint8 a, euint8 b) and returns the result.\\n */\\n function max(uint8 a, euint8 b) internal returns (euint8) {\\n if (!isInitialized(b)) {\\n b = asEuint8(0);\\n }\\n return euint8.wrap(Impl.max(euint8.unwrap(b), bytes32(uint256(a)), true));\\n }\\n\\n /**\\n * @dev Evaluates add(euint16 a, uint16 b) and returns the result.\\n */\\n function add(euint16 a, uint16 b) internal returns (euint16) {\\n if (!isInitialized(a)) {\\n a = asEuint16(0);\\n }\\n return euint16.wrap(Impl.add(euint16.unwrap(a), bytes32(uint256(b)), true));\\n }\\n\\n /**\\n * @dev Evaluates add(uint16 a, euint16 b) and returns the result.\\n */\\n function add(uint16 a, euint16 b) internal returns (euint16) {\\n if (!isInitialized(b)) {\\n b = asEuint16(0);\\n }\\n return euint16.wrap(Impl.add(euint16.unwrap(b), bytes32(uint256(a)), true));\\n }\\n\\n /**\\n * @dev Evaluates sub(euint16 a, uint16 b) and returns the result.\\n */\\n function sub(euint16 a, uint16 b) internal returns (euint16) {\\n if (!isInitialized(a)) {\\n a = asEuint16(0);\\n }\\n return euint16.wrap(Impl.sub(euint16.unwrap(a), bytes32(uint256(b)), true));\\n }\\n\\n /**\\n * @dev Evaluates sub(uint16 a, euint16 b) and returns the result.\\n */\\n function sub(uint16 a, euint16 b) internal returns (euint16) {\\n euint16 aEnc = asEuint16(a);\\n if (!isInitialized(b)) {\\n b = asEuint16(0);\\n }\\n return euint16.wrap(Impl.sub(euint16.unwrap(aEnc), euint16.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates mul(euint16 a, uint16 b) and returns the result.\\n */\\n function mul(euint16 a, uint16 b) internal returns (euint16) {\\n if (!isInitialized(a)) {\\n a = asEuint16(0);\\n }\\n return euint16.wrap(Impl.mul(euint16.unwrap(a), bytes32(uint256(b)), true));\\n }\\n\\n /**\\n * @dev Evaluates mul(uint16 a, euint16 b) and returns the result.\\n */\\n function mul(uint16 a, euint16 b) internal returns (euint16) {\\n if (!isInitialized(b)) {\\n b = asEuint16(0);\\n }\\n return euint16.wrap(Impl.mul(euint16.unwrap(b), bytes32(uint256(a)), true));\\n }\\n\\n /**\\n * @dev Evaluates div(euint16 a, uint16 b) and returns the result.\\n */\\n function div(euint16 a, uint16 b) internal returns (euint16) {\\n if (!isInitialized(a)) {\\n a = asEuint16(0);\\n }\\n return euint16.wrap(Impl.div(euint16.unwrap(a), bytes32(uint256(b))));\\n }\\n\\n /**\\n * @dev Evaluates rem(euint16 a, uint16 b) and returns the result.\\n */\\n function rem(euint16 a, uint16 b) internal returns (euint16) {\\n if (!isInitialized(a)) {\\n a = asEuint16(0);\\n }\\n return euint16.wrap(Impl.rem(euint16.unwrap(a), bytes32(uint256(b))));\\n }\\n\\n /**\\n * @dev Evaluates and(euint16 a, uint16 b) and returns the result.\\n */\\n function and(euint16 a, uint16 b) internal returns (euint16) {\\n if (!isInitialized(a)) {\\n a = asEuint16(0);\\n }\\n return euint16.wrap(Impl.and(euint16.unwrap(a), bytes32(uint256(b)), true));\\n }\\n\\n /**\\n * @dev Evaluates and(uint16 a, euint16 b) and returns the result.\\n */\\n function and(uint16 a, euint16 b) internal returns (euint16) {\\n if (!isInitialized(b)) {\\n b = asEuint16(0);\\n }\\n return euint16.wrap(Impl.and(euint16.unwrap(b), bytes32(uint256(a)), true));\\n }\\n\\n /**\\n * @dev Evaluates or(euint16 a, uint16 b) and returns the result.\\n */\\n function or(euint16 a, uint16 b) internal returns (euint16) {\\n if (!isInitialized(a)) {\\n a = asEuint16(0);\\n }\\n return euint16.wrap(Impl.or(euint16.unwrap(a), bytes32(uint256(b)), true));\\n }\\n\\n /**\\n * @dev Evaluates or(uint16 a, euint16 b) and returns the result.\\n */\\n function or(uint16 a, euint16 b) internal returns (euint16) {\\n if (!isInitialized(b)) {\\n b = asEuint16(0);\\n }\\n return euint16.wrap(Impl.or(euint16.unwrap(b), bytes32(uint256(a)), true));\\n }\\n\\n /**\\n * @dev Evaluates xor(euint16 a, uint16 b) and returns the result.\\n */\\n function xor(euint16 a, uint16 b) internal returns (euint16) {\\n if (!isInitialized(a)) {\\n a = asEuint16(0);\\n }\\n return euint16.wrap(Impl.xor(euint16.unwrap(a), bytes32(uint256(b)), true));\\n }\\n\\n /**\\n * @dev Evaluates xor(uint16 a, euint16 b) and returns the result.\\n */\\n function xor(uint16 a, euint16 b) internal returns (euint16) {\\n if (!isInitialized(b)) {\\n b = asEuint16(0);\\n }\\n return euint16.wrap(Impl.xor(euint16.unwrap(b), bytes32(uint256(a)), true));\\n }\\n\\n /**\\n * @dev Evaluates eq(euint16 a, uint16 b) and returns the result.\\n */\\n function eq(euint16 a, uint16 b) internal returns (ebool) {\\n if (!isInitialized(a)) {\\n a = asEuint16(0);\\n }\\n return ebool.wrap(Impl.eq(euint16.unwrap(a), bytes32(uint256(b)), true));\\n }\\n\\n /**\\n * @dev Evaluates eq(uint16 a, euint16 b) and returns the result.\\n */\\n function eq(uint16 a, euint16 b) internal returns (ebool) {\\n if (!isInitialized(b)) {\\n b = asEuint16(0);\\n }\\n return ebool.wrap(Impl.eq(euint16.unwrap(b), bytes32(uint256(a)), true));\\n }\\n\\n /**\\n * @dev Evaluates ne(euint16 a, uint16 b) and returns the result.\\n */\\n function ne(euint16 a, uint16 b) internal returns (ebool) {\\n if (!isInitialized(a)) {\\n a = asEuint16(0);\\n }\\n return ebool.wrap(Impl.ne(euint16.unwrap(a), bytes32(uint256(b)), true));\\n }\\n\\n /**\\n * @dev Evaluates ne(uint16 a, euint16 b) and returns the result.\\n */\\n function ne(uint16 a, euint16 b) internal returns (ebool) {\\n if (!isInitialized(b)) {\\n b = asEuint16(0);\\n }\\n return ebool.wrap(Impl.ne(euint16.unwrap(b), bytes32(uint256(a)), true));\\n }\\n\\n /**\\n * @dev Evaluates ge(euint16 a, uint16 b) and returns the result.\\n */\\n function ge(euint16 a, uint16 b) internal returns (ebool) {\\n if (!isInitialized(a)) {\\n a = asEuint16(0);\\n }\\n return ebool.wrap(Impl.ge(euint16.unwrap(a), bytes32(uint256(b)), true));\\n }\\n\\n /**\\n * @dev Evaluates ge(uint16 a, euint16 b) and returns the result.\\n */\\n function ge(uint16 a, euint16 b) internal returns (ebool) {\\n if (!isInitialized(b)) {\\n b = asEuint16(0);\\n }\\n return ebool.wrap(Impl.le(euint16.unwrap(b), bytes32(uint256(a)), true));\\n }\\n\\n /**\\n * @dev Evaluates gt(euint16 a, uint16 b) and returns the result.\\n */\\n function gt(euint16 a, uint16 b) internal returns (ebool) {\\n if (!isInitialized(a)) {\\n a = asEuint16(0);\\n }\\n return ebool.wrap(Impl.gt(euint16.unwrap(a), bytes32(uint256(b)), true));\\n }\\n\\n /**\\n * @dev Evaluates gt(uint16 a, euint16 b) and returns the result.\\n */\\n function gt(uint16 a, euint16 b) internal returns (ebool) {\\n if (!isInitialized(b)) {\\n b = asEuint16(0);\\n }\\n return ebool.wrap(Impl.lt(euint16.unwrap(b), bytes32(uint256(a)), true));\\n }\\n\\n /**\\n * @dev Evaluates le(euint16 a, uint16 b) and returns the result.\\n */\\n function le(euint16 a, uint16 b) internal returns (ebool) {\\n if (!isInitialized(a)) {\\n a = asEuint16(0);\\n }\\n return ebool.wrap(Impl.le(euint16.unwrap(a), bytes32(uint256(b)), true));\\n }\\n\\n /**\\n * @dev Evaluates le(uint16 a, euint16 b) and returns the result.\\n */\\n function le(uint16 a, euint16 b) internal returns (ebool) {\\n if (!isInitialized(b)) {\\n b = asEuint16(0);\\n }\\n return ebool.wrap(Impl.ge(euint16.unwrap(b), bytes32(uint256(a)), true));\\n }\\n\\n /**\\n * @dev Evaluates lt(euint16 a, uint16 b) and returns the result.\\n */\\n function lt(euint16 a, uint16 b) internal returns (ebool) {\\n if (!isInitialized(a)) {\\n a = asEuint16(0);\\n }\\n return ebool.wrap(Impl.lt(euint16.unwrap(a), bytes32(uint256(b)), true));\\n }\\n\\n /**\\n * @dev Evaluates lt(uint16 a, euint16 b) and returns the result.\\n */\\n function lt(uint16 a, euint16 b) internal returns (ebool) {\\n if (!isInitialized(b)) {\\n b = asEuint16(0);\\n }\\n return ebool.wrap(Impl.gt(euint16.unwrap(b), bytes32(uint256(a)), true));\\n }\\n\\n /**\\n * @dev Evaluates min(euint16 a, uint16 b) and returns the result.\\n */\\n function min(euint16 a, uint16 b) internal returns (euint16) {\\n if (!isInitialized(a)) {\\n a = asEuint16(0);\\n }\\n return euint16.wrap(Impl.min(euint16.unwrap(a), bytes32(uint256(b)), true));\\n }\\n\\n /**\\n * @dev Evaluates min(uint16 a, euint16 b) and returns the result.\\n */\\n function min(uint16 a, euint16 b) internal returns (euint16) {\\n if (!isInitialized(b)) {\\n b = asEuint16(0);\\n }\\n return euint16.wrap(Impl.min(euint16.unwrap(b), bytes32(uint256(a)), true));\\n }\\n\\n /**\\n * @dev Evaluates max(euint16 a, uint16 b) and returns the result.\\n */\\n function max(euint16 a, uint16 b) internal returns (euint16) {\\n if (!isInitialized(a)) {\\n a = asEuint16(0);\\n }\\n return euint16.wrap(Impl.max(euint16.unwrap(a), bytes32(uint256(b)), true));\\n }\\n\\n /**\\n * @dev Evaluates max(uint16 a, euint16 b) and returns the result.\\n */\\n function max(uint16 a, euint16 b) internal returns (euint16) {\\n if (!isInitialized(b)) {\\n b = asEuint16(0);\\n }\\n return euint16.wrap(Impl.max(euint16.unwrap(b), bytes32(uint256(a)), true));\\n }\\n\\n /**\\n * @dev Evaluates add(euint32 a, uint32 b) and returns the result.\\n */\\n function add(euint32 a, uint32 b) internal returns (euint32) {\\n if (!isInitialized(a)) {\\n a = asEuint32(0);\\n }\\n return euint32.wrap(Impl.add(euint32.unwrap(a), bytes32(uint256(b)), true));\\n }\\n\\n /**\\n * @dev Evaluates add(uint32 a, euint32 b) and returns the result.\\n */\\n function add(uint32 a, euint32 b) internal returns (euint32) {\\n if (!isInitialized(b)) {\\n b = asEuint32(0);\\n }\\n return euint32.wrap(Impl.add(euint32.unwrap(b), bytes32(uint256(a)), true));\\n }\\n\\n /**\\n * @dev Evaluates sub(euint32 a, uint32 b) and returns the result.\\n */\\n function sub(euint32 a, uint32 b) internal returns (euint32) {\\n if (!isInitialized(a)) {\\n a = asEuint32(0);\\n }\\n return euint32.wrap(Impl.sub(euint32.unwrap(a), bytes32(uint256(b)), true));\\n }\\n\\n /**\\n * @dev Evaluates sub(uint32 a, euint32 b) and returns the result.\\n */\\n function sub(uint32 a, euint32 b) internal returns (euint32) {\\n euint32 aEnc = asEuint32(a);\\n if (!isInitialized(b)) {\\n b = asEuint32(0);\\n }\\n return euint32.wrap(Impl.sub(euint32.unwrap(aEnc), euint32.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates mul(euint32 a, uint32 b) and returns the result.\\n */\\n function mul(euint32 a, uint32 b) internal returns (euint32) {\\n if (!isInitialized(a)) {\\n a = asEuint32(0);\\n }\\n return euint32.wrap(Impl.mul(euint32.unwrap(a), bytes32(uint256(b)), true));\\n }\\n\\n /**\\n * @dev Evaluates mul(uint32 a, euint32 b) and returns the result.\\n */\\n function mul(uint32 a, euint32 b) internal returns (euint32) {\\n if (!isInitialized(b)) {\\n b = asEuint32(0);\\n }\\n return euint32.wrap(Impl.mul(euint32.unwrap(b), bytes32(uint256(a)), true));\\n }\\n\\n /**\\n * @dev Evaluates div(euint32 a, uint32 b) and returns the result.\\n */\\n function div(euint32 a, uint32 b) internal returns (euint32) {\\n if (!isInitialized(a)) {\\n a = asEuint32(0);\\n }\\n return euint32.wrap(Impl.div(euint32.unwrap(a), bytes32(uint256(b))));\\n }\\n\\n /**\\n * @dev Evaluates rem(euint32 a, uint32 b) and returns the result.\\n */\\n function rem(euint32 a, uint32 b) internal returns (euint32) {\\n if (!isInitialized(a)) {\\n a = asEuint32(0);\\n }\\n return euint32.wrap(Impl.rem(euint32.unwrap(a), bytes32(uint256(b))));\\n }\\n\\n /**\\n * @dev Evaluates and(euint32 a, uint32 b) and returns the result.\\n */\\n function and(euint32 a, uint32 b) internal returns (euint32) {\\n if (!isInitialized(a)) {\\n a = asEuint32(0);\\n }\\n return euint32.wrap(Impl.and(euint32.unwrap(a), bytes32(uint256(b)), true));\\n }\\n\\n /**\\n * @dev Evaluates and(uint32 a, euint32 b) and returns the result.\\n */\\n function and(uint32 a, euint32 b) internal returns (euint32) {\\n if (!isInitialized(b)) {\\n b = asEuint32(0);\\n }\\n return euint32.wrap(Impl.and(euint32.unwrap(b), bytes32(uint256(a)), true));\\n }\\n\\n /**\\n * @dev Evaluates or(euint32 a, uint32 b) and returns the result.\\n */\\n function or(euint32 a, uint32 b) internal returns (euint32) {\\n if (!isInitialized(a)) {\\n a = asEuint32(0);\\n }\\n return euint32.wrap(Impl.or(euint32.unwrap(a), bytes32(uint256(b)), true));\\n }\\n\\n /**\\n * @dev Evaluates or(uint32 a, euint32 b) and returns the result.\\n */\\n function or(uint32 a, euint32 b) internal returns (euint32) {\\n if (!isInitialized(b)) {\\n b = asEuint32(0);\\n }\\n return euint32.wrap(Impl.or(euint32.unwrap(b), bytes32(uint256(a)), true));\\n }\\n\\n /**\\n * @dev Evaluates xor(euint32 a, uint32 b) and returns the result.\\n */\\n function xor(euint32 a, uint32 b) internal returns (euint32) {\\n if (!isInitialized(a)) {\\n a = asEuint32(0);\\n }\\n return euint32.wrap(Impl.xor(euint32.unwrap(a), bytes32(uint256(b)), true));\\n }\\n\\n /**\\n * @dev Evaluates xor(uint32 a, euint32 b) and returns the result.\\n */\\n function xor(uint32 a, euint32 b) internal returns (euint32) {\\n if (!isInitialized(b)) {\\n b = asEuint32(0);\\n }\\n return euint32.wrap(Impl.xor(euint32.unwrap(b), bytes32(uint256(a)), true));\\n }\\n\\n /**\\n * @dev Evaluates eq(euint32 a, uint32 b) and returns the result.\\n */\\n function eq(euint32 a, uint32 b) internal returns (ebool) {\\n if (!isInitialized(a)) {\\n a = asEuint32(0);\\n }\\n return ebool.wrap(Impl.eq(euint32.unwrap(a), bytes32(uint256(b)), true));\\n }\\n\\n /**\\n * @dev Evaluates eq(uint32 a, euint32 b) and returns the result.\\n */\\n function eq(uint32 a, euint32 b) internal returns (ebool) {\\n if (!isInitialized(b)) {\\n b = asEuint32(0);\\n }\\n return ebool.wrap(Impl.eq(euint32.unwrap(b), bytes32(uint256(a)), true));\\n }\\n\\n /**\\n * @dev Evaluates ne(euint32 a, uint32 b) and returns the result.\\n */\\n function ne(euint32 a, uint32 b) internal returns (ebool) {\\n if (!isInitialized(a)) {\\n a = asEuint32(0);\\n }\\n return ebool.wrap(Impl.ne(euint32.unwrap(a), bytes32(uint256(b)), true));\\n }\\n\\n /**\\n * @dev Evaluates ne(uint32 a, euint32 b) and returns the result.\\n */\\n function ne(uint32 a, euint32 b) internal returns (ebool) {\\n if (!isInitialized(b)) {\\n b = asEuint32(0);\\n }\\n return ebool.wrap(Impl.ne(euint32.unwrap(b), bytes32(uint256(a)), true));\\n }\\n\\n /**\\n * @dev Evaluates ge(euint32 a, uint32 b) and returns the result.\\n */\\n function ge(euint32 a, uint32 b) internal returns (ebool) {\\n if (!isInitialized(a)) {\\n a = asEuint32(0);\\n }\\n return ebool.wrap(Impl.ge(euint32.unwrap(a), bytes32(uint256(b)), true));\\n }\\n\\n /**\\n * @dev Evaluates ge(uint32 a, euint32 b) and returns the result.\\n */\\n function ge(uint32 a, euint32 b) internal returns (ebool) {\\n if (!isInitialized(b)) {\\n b = asEuint32(0);\\n }\\n return ebool.wrap(Impl.le(euint32.unwrap(b), bytes32(uint256(a)), true));\\n }\\n\\n /**\\n * @dev Evaluates gt(euint32 a, uint32 b) and returns the result.\\n */\\n function gt(euint32 a, uint32 b) internal returns (ebool) {\\n if (!isInitialized(a)) {\\n a = asEuint32(0);\\n }\\n return ebool.wrap(Impl.gt(euint32.unwrap(a), bytes32(uint256(b)), true));\\n }\\n\\n /**\\n * @dev Evaluates gt(uint32 a, euint32 b) and returns the result.\\n */\\n function gt(uint32 a, euint32 b) internal returns (ebool) {\\n if (!isInitialized(b)) {\\n b = asEuint32(0);\\n }\\n return ebool.wrap(Impl.lt(euint32.unwrap(b), bytes32(uint256(a)), true));\\n }\\n\\n /**\\n * @dev Evaluates le(euint32 a, uint32 b) and returns the result.\\n */\\n function le(euint32 a, uint32 b) internal returns (ebool) {\\n if (!isInitialized(a)) {\\n a = asEuint32(0);\\n }\\n return ebool.wrap(Impl.le(euint32.unwrap(a), bytes32(uint256(b)), true));\\n }\\n\\n /**\\n * @dev Evaluates le(uint32 a, euint32 b) and returns the result.\\n */\\n function le(uint32 a, euint32 b) internal returns (ebool) {\\n if (!isInitialized(b)) {\\n b = asEuint32(0);\\n }\\n return ebool.wrap(Impl.ge(euint32.unwrap(b), bytes32(uint256(a)), true));\\n }\\n\\n /**\\n * @dev Evaluates lt(euint32 a, uint32 b) and returns the result.\\n */\\n function lt(euint32 a, uint32 b) internal returns (ebool) {\\n if (!isInitialized(a)) {\\n a = asEuint32(0);\\n }\\n return ebool.wrap(Impl.lt(euint32.unwrap(a), bytes32(uint256(b)), true));\\n }\\n\\n /**\\n * @dev Evaluates lt(uint32 a, euint32 b) and returns the result.\\n */\\n function lt(uint32 a, euint32 b) internal returns (ebool) {\\n if (!isInitialized(b)) {\\n b = asEuint32(0);\\n }\\n return ebool.wrap(Impl.gt(euint32.unwrap(b), bytes32(uint256(a)), true));\\n }\\n\\n /**\\n * @dev Evaluates min(euint32 a, uint32 b) and returns the result.\\n */\\n function min(euint32 a, uint32 b) internal returns (euint32) {\\n if (!isInitialized(a)) {\\n a = asEuint32(0);\\n }\\n return euint32.wrap(Impl.min(euint32.unwrap(a), bytes32(uint256(b)), true));\\n }\\n\\n /**\\n * @dev Evaluates min(uint32 a, euint32 b) and returns the result.\\n */\\n function min(uint32 a, euint32 b) internal returns (euint32) {\\n if (!isInitialized(b)) {\\n b = asEuint32(0);\\n }\\n return euint32.wrap(Impl.min(euint32.unwrap(b), bytes32(uint256(a)), true));\\n }\\n\\n /**\\n * @dev Evaluates max(euint32 a, uint32 b) and returns the result.\\n */\\n function max(euint32 a, uint32 b) internal returns (euint32) {\\n if (!isInitialized(a)) {\\n a = asEuint32(0);\\n }\\n return euint32.wrap(Impl.max(euint32.unwrap(a), bytes32(uint256(b)), true));\\n }\\n\\n /**\\n * @dev Evaluates max(uint32 a, euint32 b) and returns the result.\\n */\\n function max(uint32 a, euint32 b) internal returns (euint32) {\\n if (!isInitialized(b)) {\\n b = asEuint32(0);\\n }\\n return euint32.wrap(Impl.max(euint32.unwrap(b), bytes32(uint256(a)), true));\\n }\\n\\n /**\\n * @dev Evaluates add(euint64 a, uint64 b) and returns the result.\\n */\\n function add(euint64 a, uint64 b) internal returns (euint64) {\\n if (!isInitialized(a)) {\\n a = asEuint64(0);\\n }\\n return euint64.wrap(Impl.add(euint64.unwrap(a), bytes32(uint256(b)), true));\\n }\\n\\n /**\\n * @dev Evaluates add(uint64 a, euint64 b) and returns the result.\\n */\\n function add(uint64 a, euint64 b) internal returns (euint64) {\\n if (!isInitialized(b)) {\\n b = asEuint64(0);\\n }\\n return euint64.wrap(Impl.add(euint64.unwrap(b), bytes32(uint256(a)), true));\\n }\\n\\n /**\\n * @dev Evaluates sub(euint64 a, uint64 b) and returns the result.\\n */\\n function sub(euint64 a, uint64 b) internal returns (euint64) {\\n if (!isInitialized(a)) {\\n a = asEuint64(0);\\n }\\n return euint64.wrap(Impl.sub(euint64.unwrap(a), bytes32(uint256(b)), true));\\n }\\n\\n /**\\n * @dev Evaluates sub(uint64 a, euint64 b) and returns the result.\\n */\\n function sub(uint64 a, euint64 b) internal returns (euint64) {\\n euint64 aEnc = asEuint64(a);\\n if (!isInitialized(b)) {\\n b = asEuint64(0);\\n }\\n return euint64.wrap(Impl.sub(euint64.unwrap(aEnc), euint64.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates mul(euint64 a, uint64 b) and returns the result.\\n */\\n function mul(euint64 a, uint64 b) internal returns (euint64) {\\n if (!isInitialized(a)) {\\n a = asEuint64(0);\\n }\\n return euint64.wrap(Impl.mul(euint64.unwrap(a), bytes32(uint256(b)), true));\\n }\\n\\n /**\\n * @dev Evaluates mul(uint64 a, euint64 b) and returns the result.\\n */\\n function mul(uint64 a, euint64 b) internal returns (euint64) {\\n if (!isInitialized(b)) {\\n b = asEuint64(0);\\n }\\n return euint64.wrap(Impl.mul(euint64.unwrap(b), bytes32(uint256(a)), true));\\n }\\n\\n /**\\n * @dev Evaluates div(euint64 a, uint64 b) and returns the result.\\n */\\n function div(euint64 a, uint64 b) internal returns (euint64) {\\n if (!isInitialized(a)) {\\n a = asEuint64(0);\\n }\\n return euint64.wrap(Impl.div(euint64.unwrap(a), bytes32(uint256(b))));\\n }\\n\\n /**\\n * @dev Evaluates rem(euint64 a, uint64 b) and returns the result.\\n */\\n function rem(euint64 a, uint64 b) internal returns (euint64) {\\n if (!isInitialized(a)) {\\n a = asEuint64(0);\\n }\\n return euint64.wrap(Impl.rem(euint64.unwrap(a), bytes32(uint256(b))));\\n }\\n\\n /**\\n * @dev Evaluates and(euint64 a, uint64 b) and returns the result.\\n */\\n function and(euint64 a, uint64 b) internal returns (euint64) {\\n if (!isInitialized(a)) {\\n a = asEuint64(0);\\n }\\n return euint64.wrap(Impl.and(euint64.unwrap(a), bytes32(uint256(b)), true));\\n }\\n\\n /**\\n * @dev Evaluates and(uint64 a, euint64 b) and returns the result.\\n */\\n function and(uint64 a, euint64 b) internal returns (euint64) {\\n if (!isInitialized(b)) {\\n b = asEuint64(0);\\n }\\n return euint64.wrap(Impl.and(euint64.unwrap(b), bytes32(uint256(a)), true));\\n }\\n\\n /**\\n * @dev Evaluates or(euint64 a, uint64 b) and returns the result.\\n */\\n function or(euint64 a, uint64 b) internal returns (euint64) {\\n if (!isInitialized(a)) {\\n a = asEuint64(0);\\n }\\n return euint64.wrap(Impl.or(euint64.unwrap(a), bytes32(uint256(b)), true));\\n }\\n\\n /**\\n * @dev Evaluates or(uint64 a, euint64 b) and returns the result.\\n */\\n function or(uint64 a, euint64 b) internal returns (euint64) {\\n if (!isInitialized(b)) {\\n b = asEuint64(0);\\n }\\n return euint64.wrap(Impl.or(euint64.unwrap(b), bytes32(uint256(a)), true));\\n }\\n\\n /**\\n * @dev Evaluates xor(euint64 a, uint64 b) and returns the result.\\n */\\n function xor(euint64 a, uint64 b) internal returns (euint64) {\\n if (!isInitialized(a)) {\\n a = asEuint64(0);\\n }\\n return euint64.wrap(Impl.xor(euint64.unwrap(a), bytes32(uint256(b)), true));\\n }\\n\\n /**\\n * @dev Evaluates xor(uint64 a, euint64 b) and returns the result.\\n */\\n function xor(uint64 a, euint64 b) internal returns (euint64) {\\n if (!isInitialized(b)) {\\n b = asEuint64(0);\\n }\\n return euint64.wrap(Impl.xor(euint64.unwrap(b), bytes32(uint256(a)), true));\\n }\\n\\n /**\\n * @dev Evaluates eq(euint64 a, uint64 b) and returns the result.\\n */\\n function eq(euint64 a, uint64 b) internal returns (ebool) {\\n if (!isInitialized(a)) {\\n a = asEuint64(0);\\n }\\n return ebool.wrap(Impl.eq(euint64.unwrap(a), bytes32(uint256(b)), true));\\n }\\n\\n /**\\n * @dev Evaluates eq(uint64 a, euint64 b) and returns the result.\\n */\\n function eq(uint64 a, euint64 b) internal returns (ebool) {\\n if (!isInitialized(b)) {\\n b = asEuint64(0);\\n }\\n return ebool.wrap(Impl.eq(euint64.unwrap(b), bytes32(uint256(a)), true));\\n }\\n\\n /**\\n * @dev Evaluates ne(euint64 a, uint64 b) and returns the result.\\n */\\n function ne(euint64 a, uint64 b) internal returns (ebool) {\\n if (!isInitialized(a)) {\\n a = asEuint64(0);\\n }\\n return ebool.wrap(Impl.ne(euint64.unwrap(a), bytes32(uint256(b)), true));\\n }\\n\\n /**\\n * @dev Evaluates ne(uint64 a, euint64 b) and returns the result.\\n */\\n function ne(uint64 a, euint64 b) internal returns (ebool) {\\n if (!isInitialized(b)) {\\n b = asEuint64(0);\\n }\\n return ebool.wrap(Impl.ne(euint64.unwrap(b), bytes32(uint256(a)), true));\\n }\\n\\n /**\\n * @dev Evaluates ge(euint64 a, uint64 b) and returns the result.\\n */\\n function ge(euint64 a, uint64 b) internal returns (ebool) {\\n if (!isInitialized(a)) {\\n a = asEuint64(0);\\n }\\n return ebool.wrap(Impl.ge(euint64.unwrap(a), bytes32(uint256(b)), true));\\n }\\n\\n /**\\n * @dev Evaluates ge(uint64 a, euint64 b) and returns the result.\\n */\\n function ge(uint64 a, euint64 b) internal returns (ebool) {\\n if (!isInitialized(b)) {\\n b = asEuint64(0);\\n }\\n return ebool.wrap(Impl.le(euint64.unwrap(b), bytes32(uint256(a)), true));\\n }\\n\\n /**\\n * @dev Evaluates gt(euint64 a, uint64 b) and returns the result.\\n */\\n function gt(euint64 a, uint64 b) internal returns (ebool) {\\n if (!isInitialized(a)) {\\n a = asEuint64(0);\\n }\\n return ebool.wrap(Impl.gt(euint64.unwrap(a), bytes32(uint256(b)), true));\\n }\\n\\n /**\\n * @dev Evaluates gt(uint64 a, euint64 b) and returns the result.\\n */\\n function gt(uint64 a, euint64 b) internal returns (ebool) {\\n if (!isInitialized(b)) {\\n b = asEuint64(0);\\n }\\n return ebool.wrap(Impl.lt(euint64.unwrap(b), bytes32(uint256(a)), true));\\n }\\n\\n /**\\n * @dev Evaluates le(euint64 a, uint64 b) and returns the result.\\n */\\n function le(euint64 a, uint64 b) internal returns (ebool) {\\n if (!isInitialized(a)) {\\n a = asEuint64(0);\\n }\\n return ebool.wrap(Impl.le(euint64.unwrap(a), bytes32(uint256(b)), true));\\n }\\n\\n /**\\n * @dev Evaluates le(uint64 a, euint64 b) and returns the result.\\n */\\n function le(uint64 a, euint64 b) internal returns (ebool) {\\n if (!isInitialized(b)) {\\n b = asEuint64(0);\\n }\\n return ebool.wrap(Impl.ge(euint64.unwrap(b), bytes32(uint256(a)), true));\\n }\\n\\n /**\\n * @dev Evaluates lt(euint64 a, uint64 b) and returns the result.\\n */\\n function lt(euint64 a, uint64 b) internal returns (ebool) {\\n if (!isInitialized(a)) {\\n a = asEuint64(0);\\n }\\n return ebool.wrap(Impl.lt(euint64.unwrap(a), bytes32(uint256(b)), true));\\n }\\n\\n /**\\n * @dev Evaluates lt(uint64 a, euint64 b) and returns the result.\\n */\\n function lt(uint64 a, euint64 b) internal returns (ebool) {\\n if (!isInitialized(b)) {\\n b = asEuint64(0);\\n }\\n return ebool.wrap(Impl.gt(euint64.unwrap(b), bytes32(uint256(a)), true));\\n }\\n\\n /**\\n * @dev Evaluates min(euint64 a, uint64 b) and returns the result.\\n */\\n function min(euint64 a, uint64 b) internal returns (euint64) {\\n if (!isInitialized(a)) {\\n a = asEuint64(0);\\n }\\n return euint64.wrap(Impl.min(euint64.unwrap(a), bytes32(uint256(b)), true));\\n }\\n\\n /**\\n * @dev Evaluates min(uint64 a, euint64 b) and returns the result.\\n */\\n function min(uint64 a, euint64 b) internal returns (euint64) {\\n if (!isInitialized(b)) {\\n b = asEuint64(0);\\n }\\n return euint64.wrap(Impl.min(euint64.unwrap(b), bytes32(uint256(a)), true));\\n }\\n\\n /**\\n * @dev Evaluates max(euint64 a, uint64 b) and returns the result.\\n */\\n function max(euint64 a, uint64 b) internal returns (euint64) {\\n if (!isInitialized(a)) {\\n a = asEuint64(0);\\n }\\n return euint64.wrap(Impl.max(euint64.unwrap(a), bytes32(uint256(b)), true));\\n }\\n\\n /**\\n * @dev Evaluates max(uint64 a, euint64 b) and returns the result.\\n */\\n function max(uint64 a, euint64 b) internal returns (euint64) {\\n if (!isInitialized(b)) {\\n b = asEuint64(0);\\n }\\n return euint64.wrap(Impl.max(euint64.unwrap(b), bytes32(uint256(a)), true));\\n }\\n\\n /**\\n * @dev Evaluates add(euint128 a, uint128 b) and returns the result.\\n */\\n function add(euint128 a, uint128 b) internal returns (euint128) {\\n if (!isInitialized(a)) {\\n a = asEuint128(0);\\n }\\n return euint128.wrap(Impl.add(euint128.unwrap(a), bytes32(uint256(b)), true));\\n }\\n\\n /**\\n * @dev Evaluates add(uint128 a, euint128 b) and returns the result.\\n */\\n function add(uint128 a, euint128 b) internal returns (euint128) {\\n if (!isInitialized(b)) {\\n b = asEuint128(0);\\n }\\n return euint128.wrap(Impl.add(euint128.unwrap(b), bytes32(uint256(a)), true));\\n }\\n\\n /**\\n * @dev Evaluates sub(euint128 a, uint128 b) and returns the result.\\n */\\n function sub(euint128 a, uint128 b) internal returns (euint128) {\\n if (!isInitialized(a)) {\\n a = asEuint128(0);\\n }\\n return euint128.wrap(Impl.sub(euint128.unwrap(a), bytes32(uint256(b)), true));\\n }\\n\\n /**\\n * @dev Evaluates sub(uint128 a, euint128 b) and returns the result.\\n */\\n function sub(uint128 a, euint128 b) internal returns (euint128) {\\n euint128 aEnc = asEuint128(a);\\n if (!isInitialized(b)) {\\n b = asEuint128(0);\\n }\\n return euint128.wrap(Impl.sub(euint128.unwrap(aEnc), euint128.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates mul(euint128 a, uint128 b) and returns the result.\\n */\\n function mul(euint128 a, uint128 b) internal returns (euint128) {\\n if (!isInitialized(a)) {\\n a = asEuint128(0);\\n }\\n return euint128.wrap(Impl.mul(euint128.unwrap(a), bytes32(uint256(b)), true));\\n }\\n\\n /**\\n * @dev Evaluates mul(uint128 a, euint128 b) and returns the result.\\n */\\n function mul(uint128 a, euint128 b) internal returns (euint128) {\\n if (!isInitialized(b)) {\\n b = asEuint128(0);\\n }\\n return euint128.wrap(Impl.mul(euint128.unwrap(b), bytes32(uint256(a)), true));\\n }\\n\\n /**\\n * @dev Evaluates div(euint128 a, uint128 b) and returns the result.\\n */\\n function div(euint128 a, uint128 b) internal returns (euint128) {\\n if (!isInitialized(a)) {\\n a = asEuint128(0);\\n }\\n return euint128.wrap(Impl.div(euint128.unwrap(a), bytes32(uint256(b))));\\n }\\n\\n /**\\n * @dev Evaluates rem(euint128 a, uint128 b) and returns the result.\\n */\\n function rem(euint128 a, uint128 b) internal returns (euint128) {\\n if (!isInitialized(a)) {\\n a = asEuint128(0);\\n }\\n return euint128.wrap(Impl.rem(euint128.unwrap(a), bytes32(uint256(b))));\\n }\\n\\n /**\\n * @dev Evaluates and(euint128 a, uint128 b) and returns the result.\\n */\\n function and(euint128 a, uint128 b) internal returns (euint128) {\\n if (!isInitialized(a)) {\\n a = asEuint128(0);\\n }\\n return euint128.wrap(Impl.and(euint128.unwrap(a), bytes32(uint256(b)), true));\\n }\\n\\n /**\\n * @dev Evaluates and(uint128 a, euint128 b) and returns the result.\\n */\\n function and(uint128 a, euint128 b) internal returns (euint128) {\\n if (!isInitialized(b)) {\\n b = asEuint128(0);\\n }\\n return euint128.wrap(Impl.and(euint128.unwrap(b), bytes32(uint256(a)), true));\\n }\\n\\n /**\\n * @dev Evaluates or(euint128 a, uint128 b) and returns the result.\\n */\\n function or(euint128 a, uint128 b) internal returns (euint128) {\\n if (!isInitialized(a)) {\\n a = asEuint128(0);\\n }\\n return euint128.wrap(Impl.or(euint128.unwrap(a), bytes32(uint256(b)), true));\\n }\\n\\n /**\\n * @dev Evaluates or(uint128 a, euint128 b) and returns the result.\\n */\\n function or(uint128 a, euint128 b) internal returns (euint128) {\\n if (!isInitialized(b)) {\\n b = asEuint128(0);\\n }\\n return euint128.wrap(Impl.or(euint128.unwrap(b), bytes32(uint256(a)), true));\\n }\\n\\n /**\\n * @dev Evaluates xor(euint128 a, uint128 b) and returns the result.\\n */\\n function xor(euint128 a, uint128 b) internal returns (euint128) {\\n if (!isInitialized(a)) {\\n a = asEuint128(0);\\n }\\n return euint128.wrap(Impl.xor(euint128.unwrap(a), bytes32(uint256(b)), true));\\n }\\n\\n /**\\n * @dev Evaluates xor(uint128 a, euint128 b) and returns the result.\\n */\\n function xor(uint128 a, euint128 b) internal returns (euint128) {\\n if (!isInitialized(b)) {\\n b = asEuint128(0);\\n }\\n return euint128.wrap(Impl.xor(euint128.unwrap(b), bytes32(uint256(a)), true));\\n }\\n\\n /**\\n * @dev Evaluates eq(euint128 a, uint128 b) and returns the result.\\n */\\n function eq(euint128 a, uint128 b) internal returns (ebool) {\\n if (!isInitialized(a)) {\\n a = asEuint128(0);\\n }\\n return ebool.wrap(Impl.eq(euint128.unwrap(a), bytes32(uint256(b)), true));\\n }\\n\\n /**\\n * @dev Evaluates eq(uint128 a, euint128 b) and returns the result.\\n */\\n function eq(uint128 a, euint128 b) internal returns (ebool) {\\n if (!isInitialized(b)) {\\n b = asEuint128(0);\\n }\\n return ebool.wrap(Impl.eq(euint128.unwrap(b), bytes32(uint256(a)), true));\\n }\\n\\n /**\\n * @dev Evaluates ne(euint128 a, uint128 b) and returns the result.\\n */\\n function ne(euint128 a, uint128 b) internal returns (ebool) {\\n if (!isInitialized(a)) {\\n a = asEuint128(0);\\n }\\n return ebool.wrap(Impl.ne(euint128.unwrap(a), bytes32(uint256(b)), true));\\n }\\n\\n /**\\n * @dev Evaluates ne(uint128 a, euint128 b) and returns the result.\\n */\\n function ne(uint128 a, euint128 b) internal returns (ebool) {\\n if (!isInitialized(b)) {\\n b = asEuint128(0);\\n }\\n return ebool.wrap(Impl.ne(euint128.unwrap(b), bytes32(uint256(a)), true));\\n }\\n\\n /**\\n * @dev Evaluates ge(euint128 a, uint128 b) and returns the result.\\n */\\n function ge(euint128 a, uint128 b) internal returns (ebool) {\\n if (!isInitialized(a)) {\\n a = asEuint128(0);\\n }\\n return ebool.wrap(Impl.ge(euint128.unwrap(a), bytes32(uint256(b)), true));\\n }\\n\\n /**\\n * @dev Evaluates ge(uint128 a, euint128 b) and returns the result.\\n */\\n function ge(uint128 a, euint128 b) internal returns (ebool) {\\n if (!isInitialized(b)) {\\n b = asEuint128(0);\\n }\\n return ebool.wrap(Impl.le(euint128.unwrap(b), bytes32(uint256(a)), true));\\n }\\n\\n /**\\n * @dev Evaluates gt(euint128 a, uint128 b) and returns the result.\\n */\\n function gt(euint128 a, uint128 b) internal returns (ebool) {\\n if (!isInitialized(a)) {\\n a = asEuint128(0);\\n }\\n return ebool.wrap(Impl.gt(euint128.unwrap(a), bytes32(uint256(b)), true));\\n }\\n\\n /**\\n * @dev Evaluates gt(uint128 a, euint128 b) and returns the result.\\n */\\n function gt(uint128 a, euint128 b) internal returns (ebool) {\\n if (!isInitialized(b)) {\\n b = asEuint128(0);\\n }\\n return ebool.wrap(Impl.lt(euint128.unwrap(b), bytes32(uint256(a)), true));\\n }\\n\\n /**\\n * @dev Evaluates le(euint128 a, uint128 b) and returns the result.\\n */\\n function le(euint128 a, uint128 b) internal returns (ebool) {\\n if (!isInitialized(a)) {\\n a = asEuint128(0);\\n }\\n return ebool.wrap(Impl.le(euint128.unwrap(a), bytes32(uint256(b)), true));\\n }\\n\\n /**\\n * @dev Evaluates le(uint128 a, euint128 b) and returns the result.\\n */\\n function le(uint128 a, euint128 b) internal returns (ebool) {\\n if (!isInitialized(b)) {\\n b = asEuint128(0);\\n }\\n return ebool.wrap(Impl.ge(euint128.unwrap(b), bytes32(uint256(a)), true));\\n }\\n\\n /**\\n * @dev Evaluates lt(euint128 a, uint128 b) and returns the result.\\n */\\n function lt(euint128 a, uint128 b) internal returns (ebool) {\\n if (!isInitialized(a)) {\\n a = asEuint128(0);\\n }\\n return ebool.wrap(Impl.lt(euint128.unwrap(a), bytes32(uint256(b)), true));\\n }\\n\\n /**\\n * @dev Evaluates lt(uint128 a, euint128 b) and returns the result.\\n */\\n function lt(uint128 a, euint128 b) internal returns (ebool) {\\n if (!isInitialized(b)) {\\n b = asEuint128(0);\\n }\\n return ebool.wrap(Impl.gt(euint128.unwrap(b), bytes32(uint256(a)), true));\\n }\\n\\n /**\\n * @dev Evaluates min(euint128 a, uint128 b) and returns the result.\\n */\\n function min(euint128 a, uint128 b) internal returns (euint128) {\\n if (!isInitialized(a)) {\\n a = asEuint128(0);\\n }\\n return euint128.wrap(Impl.min(euint128.unwrap(a), bytes32(uint256(b)), true));\\n }\\n\\n /**\\n * @dev Evaluates min(uint128 a, euint128 b) and returns the result.\\n */\\n function min(uint128 a, euint128 b) internal returns (euint128) {\\n if (!isInitialized(b)) {\\n b = asEuint128(0);\\n }\\n return euint128.wrap(Impl.min(euint128.unwrap(b), bytes32(uint256(a)), true));\\n }\\n\\n /**\\n * @dev Evaluates max(euint128 a, uint128 b) and returns the result.\\n */\\n function max(euint128 a, uint128 b) internal returns (euint128) {\\n if (!isInitialized(a)) {\\n a = asEuint128(0);\\n }\\n return euint128.wrap(Impl.max(euint128.unwrap(a), bytes32(uint256(b)), true));\\n }\\n\\n /**\\n * @dev Evaluates max(uint128 a, euint128 b) and returns the result.\\n */\\n function max(uint128 a, euint128 b) internal returns (euint128) {\\n if (!isInitialized(b)) {\\n b = asEuint128(0);\\n }\\n return euint128.wrap(Impl.max(euint128.unwrap(b), bytes32(uint256(a)), true));\\n }\\n\\n /**\\n * @dev Evaluates eq(eaddress a, address b) and returns the result.\\n */\\n function eq(eaddress a, address b) internal returns (ebool) {\\n if (!isInitialized(a)) {\\n a = asEaddress(address(0));\\n }\\n return ebool.wrap(Impl.eq(eaddress.unwrap(a), bytes32(uint256(uint160(b))), true));\\n }\\n\\n /**\\n * @dev Evaluates eq(address a, eaddress b) and returns the result.\\n */\\n function eq(address a, eaddress b) internal returns (ebool) {\\n if (!isInitialized(b)) {\\n b = asEaddress(address(0));\\n }\\n return ebool.wrap(Impl.eq(eaddress.unwrap(b), bytes32(uint256(uint160(a))), true));\\n }\\n\\n /**\\n * @dev Evaluates ne(eaddress a, address b) and returns the result.\\n */\\n function ne(eaddress a, address b) internal returns (ebool) {\\n if (!isInitialized(a)) {\\n a = asEaddress(address(0));\\n }\\n return ebool.wrap(Impl.ne(eaddress.unwrap(a), bytes32(uint256(uint160(b))), true));\\n }\\n\\n /**\\n * @dev Evaluates ne(address a, eaddress b) and returns the result.\\n */\\n function ne(address a, eaddress b) internal returns (ebool) {\\n if (!isInitialized(b)) {\\n b = asEaddress(address(0));\\n }\\n return ebool.wrap(Impl.ne(eaddress.unwrap(b), bytes32(uint256(uint160(a))), true));\\n }\\n\\n /**\\n * @dev Evaluates and(euint256 a, uint256 b) and returns the result.\\n */\\n function and(euint256 a, uint256 b) internal returns (euint256) {\\n if (!isInitialized(a)) {\\n a = asEuint256(0);\\n }\\n return euint256.wrap(Impl.and(euint256.unwrap(a), bytes32(uint256(b)), true));\\n }\\n\\n /**\\n * @dev Evaluates and(uint256 a, euint256 b) and returns the result.\\n */\\n function and(uint256 a, euint256 b) internal returns (euint256) {\\n if (!isInitialized(b)) {\\n b = asEuint256(0);\\n }\\n return euint256.wrap(Impl.and(euint256.unwrap(b), bytes32(uint256(a)), true));\\n }\\n\\n /**\\n * @dev Evaluates or(euint256 a, uint256 b) and returns the result.\\n */\\n function or(euint256 a, uint256 b) internal returns (euint256) {\\n if (!isInitialized(a)) {\\n a = asEuint256(0);\\n }\\n return euint256.wrap(Impl.or(euint256.unwrap(a), bytes32(uint256(b)), true));\\n }\\n\\n /**\\n * @dev Evaluates or(uint256 a, euint256 b) and returns the result.\\n */\\n function or(uint256 a, euint256 b) internal returns (euint256) {\\n if (!isInitialized(b)) {\\n b = asEuint256(0);\\n }\\n return euint256.wrap(Impl.or(euint256.unwrap(b), bytes32(uint256(a)), true));\\n }\\n\\n /**\\n * @dev Evaluates xor(euint256 a, uint256 b) and returns the result.\\n */\\n function xor(euint256 a, uint256 b) internal returns (euint256) {\\n if (!isInitialized(a)) {\\n a = asEuint256(0);\\n }\\n return euint256.wrap(Impl.xor(euint256.unwrap(a), bytes32(uint256(b)), true));\\n }\\n\\n /**\\n * @dev Evaluates xor(uint256 a, euint256 b) and returns the result.\\n */\\n function xor(uint256 a, euint256 b) internal returns (euint256) {\\n if (!isInitialized(b)) {\\n b = asEuint256(0);\\n }\\n return euint256.wrap(Impl.xor(euint256.unwrap(b), bytes32(uint256(a)), true));\\n }\\n\\n /**\\n * @dev Evaluates eq(euint256 a, uint256 b) and returns the result.\\n */\\n function eq(euint256 a, uint256 b) internal returns (ebool) {\\n if (!isInitialized(a)) {\\n a = asEuint256(0);\\n }\\n return ebool.wrap(Impl.eq(euint256.unwrap(a), bytes32(uint256(b)), true));\\n }\\n\\n /**\\n * @dev Evaluates eq(uint256 a, euint256 b) and returns the result.\\n */\\n function eq(uint256 a, euint256 b) internal returns (ebool) {\\n if (!isInitialized(b)) {\\n b = asEuint256(0);\\n }\\n return ebool.wrap(Impl.eq(euint256.unwrap(b), bytes32(uint256(a)), true));\\n }\\n\\n /**\\n * @dev Evaluates ne(euint256 a, uint256 b) and returns the result.\\n */\\n function ne(euint256 a, uint256 b) internal returns (ebool) {\\n if (!isInitialized(a)) {\\n a = asEuint256(0);\\n }\\n return ebool.wrap(Impl.ne(euint256.unwrap(a), bytes32(uint256(b)), true));\\n }\\n\\n /**\\n * @dev Evaluates ne(uint256 a, euint256 b) and returns the result.\\n */\\n function ne(uint256 a, euint256 b) internal returns (ebool) {\\n if (!isInitialized(b)) {\\n b = asEuint256(0);\\n }\\n return ebool.wrap(Impl.ne(euint256.unwrap(b), bytes32(uint256(a)), true));\\n }\\n\\n /**\\n * @dev Evaluates shl(euint8 a, euint8 b) and returns the result.\\n */\\n function shl(euint8 a, euint8 b) internal returns (euint8) {\\n if (!isInitialized(a)) {\\n a = asEuint8(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint8(0);\\n }\\n return euint8.wrap(Impl.shl(euint8.unwrap(a), euint8.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates shl(euint8 a, uint8) and returns the result.\\n */\\n function shl(euint8 a, uint8 b) internal returns (euint8) {\\n if (!isInitialized(a)) {\\n a = asEuint8(0);\\n }\\n return euint8.wrap(Impl.shl(euint8.unwrap(a), bytes32(uint256(b)), true));\\n }\\n\\n /**\\n * @dev Evaluates shr(euint8 a, euint8 b) and returns the result.\\n */\\n function shr(euint8 a, euint8 b) internal returns (euint8) {\\n if (!isInitialized(a)) {\\n a = asEuint8(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint8(0);\\n }\\n return euint8.wrap(Impl.shr(euint8.unwrap(a), euint8.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates shr(euint8 a, uint8) and returns the result.\\n */\\n function shr(euint8 a, uint8 b) internal returns (euint8) {\\n if (!isInitialized(a)) {\\n a = asEuint8(0);\\n }\\n return euint8.wrap(Impl.shr(euint8.unwrap(a), bytes32(uint256(b)), true));\\n }\\n\\n /**\\n * @dev Evaluates rotl(euint8 a, euint8 b) and returns the result.\\n */\\n function rotl(euint8 a, euint8 b) internal returns (euint8) {\\n if (!isInitialized(a)) {\\n a = asEuint8(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint8(0);\\n }\\n return euint8.wrap(Impl.rotl(euint8.unwrap(a), euint8.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates rotl(euint8 a, uint8) and returns the result.\\n */\\n function rotl(euint8 a, uint8 b) internal returns (euint8) {\\n if (!isInitialized(a)) {\\n a = asEuint8(0);\\n }\\n return euint8.wrap(Impl.rotl(euint8.unwrap(a), bytes32(uint256(b)), true));\\n }\\n\\n /**\\n * @dev Evaluates rotr(euint8 a, euint8 b) and returns the result.\\n */\\n function rotr(euint8 a, euint8 b) internal returns (euint8) {\\n if (!isInitialized(a)) {\\n a = asEuint8(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint8(0);\\n }\\n return euint8.wrap(Impl.rotr(euint8.unwrap(a), euint8.unwrap(b), false));\\n }\\n\\n /**\\n * @dev Evaluates rotr(euint8 a, uint8) and returns the result.\\n */\\n function rotr(euint8 a, uint8 b) internal returns (euint8) {\\n if (!isInitialized(a)) {\\n a = asEuint8(0);\\n }\\n return euint8.wrap(Impl.rotr(euint8.unwrap(a), bytes32(uint256(b)), true));\\n }\\n\\n /**\\n * @dev Evaluates shl(euint16 a, euint8 b) and returns the result.\\n */\\n function shl(euint16 a, euint8 b) internal returns (euint16) {\\n if (!isInitialized(a)) {\\n a = asEuint16(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint8(0);\\n }\\n return euint16.wrap(Impl.shl(euint16.unwrap(a), euint16.unwrap(asEuint16(b)), false));\\n }\\n\\n /**\\n * @dev Evaluates shl(euint16 a, uint8) and returns the result.\\n */\\n function shl(euint16 a, uint8 b) internal returns (euint16) {\\n if (!isInitialized(a)) {\\n a = asEuint16(0);\\n }\\n return euint16.wrap(Impl.shl(euint16.unwrap(a), bytes32(uint256(b)), true));\\n }\\n\\n /**\\n * @dev Evaluates shr(euint16 a, euint8 b) and returns the result.\\n */\\n function shr(euint16 a, euint8 b) internal returns (euint16) {\\n if (!isInitialized(a)) {\\n a = asEuint16(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint8(0);\\n }\\n return euint16.wrap(Impl.shr(euint16.unwrap(a), euint16.unwrap(asEuint16(b)), false));\\n }\\n\\n /**\\n * @dev Evaluates shr(euint16 a, uint8) and returns the result.\\n */\\n function shr(euint16 a, uint8 b) internal returns (euint16) {\\n if (!isInitialized(a)) {\\n a = asEuint16(0);\\n }\\n return euint16.wrap(Impl.shr(euint16.unwrap(a), bytes32(uint256(b)), true));\\n }\\n\\n /**\\n * @dev Evaluates rotl(euint16 a, euint8 b) and returns the result.\\n */\\n function rotl(euint16 a, euint8 b) internal returns (euint16) {\\n if (!isInitialized(a)) {\\n a = asEuint16(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint8(0);\\n }\\n return euint16.wrap(Impl.rotl(euint16.unwrap(a), euint16.unwrap(asEuint16(b)), false));\\n }\\n\\n /**\\n * @dev Evaluates rotl(euint16 a, uint8) and returns the result.\\n */\\n function rotl(euint16 a, uint8 b) internal returns (euint16) {\\n if (!isInitialized(a)) {\\n a = asEuint16(0);\\n }\\n return euint16.wrap(Impl.rotl(euint16.unwrap(a), bytes32(uint256(b)), true));\\n }\\n\\n /**\\n * @dev Evaluates rotr(euint16 a, euint8 b) and returns the result.\\n */\\n function rotr(euint16 a, euint8 b) internal returns (euint16) {\\n if (!isInitialized(a)) {\\n a = asEuint16(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint8(0);\\n }\\n return euint16.wrap(Impl.rotr(euint16.unwrap(a), euint16.unwrap(asEuint16(b)), false));\\n }\\n\\n /**\\n * @dev Evaluates rotr(euint16 a, uint8) and returns the result.\\n */\\n function rotr(euint16 a, uint8 b) internal returns (euint16) {\\n if (!isInitialized(a)) {\\n a = asEuint16(0);\\n }\\n return euint16.wrap(Impl.rotr(euint16.unwrap(a), bytes32(uint256(b)), true));\\n }\\n\\n /**\\n * @dev Evaluates shl(euint32 a, euint8 b) and returns the result.\\n */\\n function shl(euint32 a, euint8 b) internal returns (euint32) {\\n if (!isInitialized(a)) {\\n a = asEuint32(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint8(0);\\n }\\n return euint32.wrap(Impl.shl(euint32.unwrap(a), euint32.unwrap(asEuint32(b)), false));\\n }\\n\\n /**\\n * @dev Evaluates shl(euint32 a, uint8) and returns the result.\\n */\\n function shl(euint32 a, uint8 b) internal returns (euint32) {\\n if (!isInitialized(a)) {\\n a = asEuint32(0);\\n }\\n return euint32.wrap(Impl.shl(euint32.unwrap(a), bytes32(uint256(b)), true));\\n }\\n\\n /**\\n * @dev Evaluates shr(euint32 a, euint8 b) and returns the result.\\n */\\n function shr(euint32 a, euint8 b) internal returns (euint32) {\\n if (!isInitialized(a)) {\\n a = asEuint32(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint8(0);\\n }\\n return euint32.wrap(Impl.shr(euint32.unwrap(a), euint32.unwrap(asEuint32(b)), false));\\n }\\n\\n /**\\n * @dev Evaluates shr(euint32 a, uint8) and returns the result.\\n */\\n function shr(euint32 a, uint8 b) internal returns (euint32) {\\n if (!isInitialized(a)) {\\n a = asEuint32(0);\\n }\\n return euint32.wrap(Impl.shr(euint32.unwrap(a), bytes32(uint256(b)), true));\\n }\\n\\n /**\\n * @dev Evaluates rotl(euint32 a, euint8 b) and returns the result.\\n */\\n function rotl(euint32 a, euint8 b) internal returns (euint32) {\\n if (!isInitialized(a)) {\\n a = asEuint32(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint8(0);\\n }\\n return euint32.wrap(Impl.rotl(euint32.unwrap(a), euint32.unwrap(asEuint32(b)), false));\\n }\\n\\n /**\\n * @dev Evaluates rotl(euint32 a, uint8) and returns the result.\\n */\\n function rotl(euint32 a, uint8 b) internal returns (euint32) {\\n if (!isInitialized(a)) {\\n a = asEuint32(0);\\n }\\n return euint32.wrap(Impl.rotl(euint32.unwrap(a), bytes32(uint256(b)), true));\\n }\\n\\n /**\\n * @dev Evaluates rotr(euint32 a, euint8 b) and returns the result.\\n */\\n function rotr(euint32 a, euint8 b) internal returns (euint32) {\\n if (!isInitialized(a)) {\\n a = asEuint32(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint8(0);\\n }\\n return euint32.wrap(Impl.rotr(euint32.unwrap(a), euint32.unwrap(asEuint32(b)), false));\\n }\\n\\n /**\\n * @dev Evaluates rotr(euint32 a, uint8) and returns the result.\\n */\\n function rotr(euint32 a, uint8 b) internal returns (euint32) {\\n if (!isInitialized(a)) {\\n a = asEuint32(0);\\n }\\n return euint32.wrap(Impl.rotr(euint32.unwrap(a), bytes32(uint256(b)), true));\\n }\\n\\n /**\\n * @dev Evaluates shl(euint64 a, euint8 b) and returns the result.\\n */\\n function shl(euint64 a, euint8 b) internal returns (euint64) {\\n if (!isInitialized(a)) {\\n a = asEuint64(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint8(0);\\n }\\n return euint64.wrap(Impl.shl(euint64.unwrap(a), euint64.unwrap(asEuint64(b)), false));\\n }\\n\\n /**\\n * @dev Evaluates shl(euint64 a, uint8) and returns the result.\\n */\\n function shl(euint64 a, uint8 b) internal returns (euint64) {\\n if (!isInitialized(a)) {\\n a = asEuint64(0);\\n }\\n return euint64.wrap(Impl.shl(euint64.unwrap(a), bytes32(uint256(b)), true));\\n }\\n\\n /**\\n * @dev Evaluates shr(euint64 a, euint8 b) and returns the result.\\n */\\n function shr(euint64 a, euint8 b) internal returns (euint64) {\\n if (!isInitialized(a)) {\\n a = asEuint64(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint8(0);\\n }\\n return euint64.wrap(Impl.shr(euint64.unwrap(a), euint64.unwrap(asEuint64(b)), false));\\n }\\n\\n /**\\n * @dev Evaluates shr(euint64 a, uint8) and returns the result.\\n */\\n function shr(euint64 a, uint8 b) internal returns (euint64) {\\n if (!isInitialized(a)) {\\n a = asEuint64(0);\\n }\\n return euint64.wrap(Impl.shr(euint64.unwrap(a), bytes32(uint256(b)), true));\\n }\\n\\n /**\\n * @dev Evaluates rotl(euint64 a, euint8 b) and returns the result.\\n */\\n function rotl(euint64 a, euint8 b) internal returns (euint64) {\\n if (!isInitialized(a)) {\\n a = asEuint64(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint8(0);\\n }\\n return euint64.wrap(Impl.rotl(euint64.unwrap(a), euint64.unwrap(asEuint64(b)), false));\\n }\\n\\n /**\\n * @dev Evaluates rotl(euint64 a, uint8) and returns the result.\\n */\\n function rotl(euint64 a, uint8 b) internal returns (euint64) {\\n if (!isInitialized(a)) {\\n a = asEuint64(0);\\n }\\n return euint64.wrap(Impl.rotl(euint64.unwrap(a), bytes32(uint256(b)), true));\\n }\\n\\n /**\\n * @dev Evaluates rotr(euint64 a, euint8 b) and returns the result.\\n */\\n function rotr(euint64 a, euint8 b) internal returns (euint64) {\\n if (!isInitialized(a)) {\\n a = asEuint64(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint8(0);\\n }\\n return euint64.wrap(Impl.rotr(euint64.unwrap(a), euint64.unwrap(asEuint64(b)), false));\\n }\\n\\n /**\\n * @dev Evaluates rotr(euint64 a, uint8) and returns the result.\\n */\\n function rotr(euint64 a, uint8 b) internal returns (euint64) {\\n if (!isInitialized(a)) {\\n a = asEuint64(0);\\n }\\n return euint64.wrap(Impl.rotr(euint64.unwrap(a), bytes32(uint256(b)), true));\\n }\\n\\n /**\\n * @dev Evaluates shl(euint128 a, euint8 b) and returns the result.\\n */\\n function shl(euint128 a, euint8 b) internal returns (euint128) {\\n if (!isInitialized(a)) {\\n a = asEuint128(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint8(0);\\n }\\n return euint128.wrap(Impl.shl(euint128.unwrap(a), euint128.unwrap(asEuint128(b)), false));\\n }\\n\\n /**\\n * @dev Evaluates shl(euint128 a, uint8) and returns the result.\\n */\\n function shl(euint128 a, uint8 b) internal returns (euint128) {\\n if (!isInitialized(a)) {\\n a = asEuint128(0);\\n }\\n return euint128.wrap(Impl.shl(euint128.unwrap(a), bytes32(uint256(b)), true));\\n }\\n\\n /**\\n * @dev Evaluates shr(euint128 a, euint8 b) and returns the result.\\n */\\n function shr(euint128 a, euint8 b) internal returns (euint128) {\\n if (!isInitialized(a)) {\\n a = asEuint128(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint8(0);\\n }\\n return euint128.wrap(Impl.shr(euint128.unwrap(a), euint128.unwrap(asEuint128(b)), false));\\n }\\n\\n /**\\n * @dev Evaluates shr(euint128 a, uint8) and returns the result.\\n */\\n function shr(euint128 a, uint8 b) internal returns (euint128) {\\n if (!isInitialized(a)) {\\n a = asEuint128(0);\\n }\\n return euint128.wrap(Impl.shr(euint128.unwrap(a), bytes32(uint256(b)), true));\\n }\\n\\n /**\\n * @dev Evaluates rotl(euint128 a, euint8 b) and returns the result.\\n */\\n function rotl(euint128 a, euint8 b) internal returns (euint128) {\\n if (!isInitialized(a)) {\\n a = asEuint128(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint8(0);\\n }\\n return euint128.wrap(Impl.rotl(euint128.unwrap(a), euint128.unwrap(asEuint128(b)), false));\\n }\\n\\n /**\\n * @dev Evaluates rotl(euint128 a, uint8) and returns the result.\\n */\\n function rotl(euint128 a, uint8 b) internal returns (euint128) {\\n if (!isInitialized(a)) {\\n a = asEuint128(0);\\n }\\n return euint128.wrap(Impl.rotl(euint128.unwrap(a), bytes32(uint256(b)), true));\\n }\\n\\n /**\\n * @dev Evaluates rotr(euint128 a, euint8 b) and returns the result.\\n */\\n function rotr(euint128 a, euint8 b) internal returns (euint128) {\\n if (!isInitialized(a)) {\\n a = asEuint128(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint8(0);\\n }\\n return euint128.wrap(Impl.rotr(euint128.unwrap(a), euint128.unwrap(asEuint128(b)), false));\\n }\\n\\n /**\\n * @dev Evaluates rotr(euint128 a, uint8) and returns the result.\\n */\\n function rotr(euint128 a, uint8 b) internal returns (euint128) {\\n if (!isInitialized(a)) {\\n a = asEuint128(0);\\n }\\n return euint128.wrap(Impl.rotr(euint128.unwrap(a), bytes32(uint256(b)), true));\\n }\\n\\n /**\\n * @dev Evaluates shl(euint256 a, euint8 b) and returns the result.\\n */\\n function shl(euint256 a, euint8 b) internal returns (euint256) {\\n if (!isInitialized(a)) {\\n a = asEuint256(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint8(0);\\n }\\n return euint256.wrap(Impl.shl(euint256.unwrap(a), euint256.unwrap(asEuint256(b)), false));\\n }\\n\\n /**\\n * @dev Evaluates shl(euint256 a, uint8) and returns the result.\\n */\\n function shl(euint256 a, uint8 b) internal returns (euint256) {\\n if (!isInitialized(a)) {\\n a = asEuint256(0);\\n }\\n return euint256.wrap(Impl.shl(euint256.unwrap(a), bytes32(uint256(b)), true));\\n }\\n\\n /**\\n * @dev Evaluates shr(euint256 a, euint8 b) and returns the result.\\n */\\n function shr(euint256 a, euint8 b) internal returns (euint256) {\\n if (!isInitialized(a)) {\\n a = asEuint256(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint8(0);\\n }\\n return euint256.wrap(Impl.shr(euint256.unwrap(a), euint256.unwrap(asEuint256(b)), false));\\n }\\n\\n /**\\n * @dev Evaluates shr(euint256 a, uint8) and returns the result.\\n */\\n function shr(euint256 a, uint8 b) internal returns (euint256) {\\n if (!isInitialized(a)) {\\n a = asEuint256(0);\\n }\\n return euint256.wrap(Impl.shr(euint256.unwrap(a), bytes32(uint256(b)), true));\\n }\\n\\n /**\\n * @dev Evaluates rotl(euint256 a, euint8 b) and returns the result.\\n */\\n function rotl(euint256 a, euint8 b) internal returns (euint256) {\\n if (!isInitialized(a)) {\\n a = asEuint256(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint8(0);\\n }\\n return euint256.wrap(Impl.rotl(euint256.unwrap(a), euint256.unwrap(asEuint256(b)), false));\\n }\\n\\n /**\\n * @dev Evaluates rotl(euint256 a, uint8) and returns the result.\\n */\\n function rotl(euint256 a, uint8 b) internal returns (euint256) {\\n if (!isInitialized(a)) {\\n a = asEuint256(0);\\n }\\n return euint256.wrap(Impl.rotl(euint256.unwrap(a), bytes32(uint256(b)), true));\\n }\\n\\n /**\\n * @dev Evaluates rotr(euint256 a, euint8 b) and returns the result.\\n */\\n function rotr(euint256 a, euint8 b) internal returns (euint256) {\\n if (!isInitialized(a)) {\\n a = asEuint256(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint8(0);\\n }\\n return euint256.wrap(Impl.rotr(euint256.unwrap(a), euint256.unwrap(asEuint256(b)), false));\\n }\\n\\n /**\\n * @dev Evaluates rotr(euint256 a, uint8) and returns the result.\\n */\\n function rotr(euint256 a, uint8 b) internal returns (euint256) {\\n if (!isInitialized(a)) {\\n a = asEuint256(0);\\n }\\n return euint256.wrap(Impl.rotr(euint256.unwrap(a), bytes32(uint256(b)), true));\\n }\\n\\n /**\\n * @dev If 'control's value is 'true', the result has the same value as 'ifTrue'.\\n * If 'control's value is 'false', the result has the same value as 'ifFalse'.\\n */\\n function select(ebool control, ebool a, ebool b) internal returns (ebool) {\\n if (!isInitialized(control)) {\\n control = asEbool(false);\\n }\\n if (!isInitialized(a)) {\\n a = asEbool(false);\\n }\\n if (!isInitialized(b)) {\\n b = asEbool(false);\\n }\\n return ebool.wrap(Impl.select(ebool.unwrap(control), ebool.unwrap(a), ebool.unwrap(b)));\\n }\\n\\n /**\\n * @dev If 'control's value is 'true', the result has the same value as 'ifTrue'.\\n * If 'control's value is 'false', the result has the same value as 'ifFalse'.\\n */\\n function select(ebool control, euint8 a, euint8 b) internal returns (euint8) {\\n if (!isInitialized(control)) {\\n control = asEbool(false);\\n }\\n if (!isInitialized(a)) {\\n a = asEuint8(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint8(0);\\n }\\n return euint8.wrap(Impl.select(ebool.unwrap(control), euint8.unwrap(a), euint8.unwrap(b)));\\n }\\n\\n /**\\n * @dev If 'control's value is 'true', the result has the same value as 'ifTrue'.\\n * If 'control's value is 'false', the result has the same value as 'ifFalse'.\\n */\\n function select(ebool control, euint16 a, euint16 b) internal returns (euint16) {\\n if (!isInitialized(control)) {\\n control = asEbool(false);\\n }\\n if (!isInitialized(a)) {\\n a = asEuint16(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint16(0);\\n }\\n return euint16.wrap(Impl.select(ebool.unwrap(control), euint16.unwrap(a), euint16.unwrap(b)));\\n }\\n\\n /**\\n * @dev If 'control's value is 'true', the result has the same value as 'ifTrue'.\\n * If 'control's value is 'false', the result has the same value as 'ifFalse'.\\n */\\n function select(ebool control, euint32 a, euint32 b) internal returns (euint32) {\\n if (!isInitialized(control)) {\\n control = asEbool(false);\\n }\\n if (!isInitialized(a)) {\\n a = asEuint32(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint32(0);\\n }\\n return euint32.wrap(Impl.select(ebool.unwrap(control), euint32.unwrap(a), euint32.unwrap(b)));\\n }\\n\\n /**\\n * @dev If 'control's value is 'true', the result has the same value as 'ifTrue'.\\n * If 'control's value is 'false', the result has the same value as 'ifFalse'.\\n */\\n function select(ebool control, euint64 a, euint64 b) internal returns (euint64) {\\n if (!isInitialized(control)) {\\n control = asEbool(false);\\n }\\n if (!isInitialized(a)) {\\n a = asEuint64(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint64(0);\\n }\\n return euint64.wrap(Impl.select(ebool.unwrap(control), euint64.unwrap(a), euint64.unwrap(b)));\\n }\\n\\n /**\\n * @dev If 'control's value is 'true', the result has the same value as 'ifTrue'.\\n * If 'control's value is 'false', the result has the same value as 'ifFalse'.\\n */\\n function select(ebool control, euint128 a, euint128 b) internal returns (euint128) {\\n if (!isInitialized(control)) {\\n control = asEbool(false);\\n }\\n if (!isInitialized(a)) {\\n a = asEuint128(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint128(0);\\n }\\n return euint128.wrap(Impl.select(ebool.unwrap(control), euint128.unwrap(a), euint128.unwrap(b)));\\n }\\n\\n /**\\n * @dev If 'control's value is 'true', the result has the same value as 'ifTrue'.\\n * If 'control's value is 'false', the result has the same value as 'ifFalse'.\\n */\\n function select(ebool control, eaddress a, eaddress b) internal returns (eaddress) {\\n if (!isInitialized(control)) {\\n control = asEbool(false);\\n }\\n if (!isInitialized(a)) {\\n a = asEaddress(address(0));\\n }\\n if (!isInitialized(b)) {\\n b = asEaddress(address(0));\\n }\\n return eaddress.wrap(Impl.select(ebool.unwrap(control), eaddress.unwrap(a), eaddress.unwrap(b)));\\n }\\n\\n /**\\n * @dev If 'control's value is 'true', the result has the same value as 'ifTrue'.\\n * If 'control's value is 'false', the result has the same value as 'ifFalse'.\\n */\\n function select(ebool control, euint256 a, euint256 b) internal returns (euint256) {\\n if (!isInitialized(control)) {\\n control = asEbool(false);\\n }\\n if (!isInitialized(a)) {\\n a = asEuint256(0);\\n }\\n if (!isInitialized(b)) {\\n b = asEuint256(0);\\n }\\n return euint256.wrap(Impl.select(ebool.unwrap(control), euint256.unwrap(a), euint256.unwrap(b)));\\n }\\n\\n /**\\n * @dev Casts an encrypted integer from 'euint16' to 'euint8'.\\n */\\n function asEuint8(euint16 value) internal returns (euint8) {\\n return euint8.wrap(Impl.cast(euint16.unwrap(value), FheType.Uint8));\\n }\\n\\n /**\\n * @dev Casts an encrypted integer from 'euint32' to 'euint8'.\\n */\\n function asEuint8(euint32 value) internal returns (euint8) {\\n return euint8.wrap(Impl.cast(euint32.unwrap(value), FheType.Uint8));\\n }\\n\\n /**\\n * @dev Casts an encrypted integer from 'euint64' to 'euint8'.\\n */\\n function asEuint8(euint64 value) internal returns (euint8) {\\n return euint8.wrap(Impl.cast(euint64.unwrap(value), FheType.Uint8));\\n }\\n\\n /**\\n * @dev Casts an encrypted integer from 'euint128' to 'euint8'.\\n */\\n function asEuint8(euint128 value) internal returns (euint8) {\\n return euint8.wrap(Impl.cast(euint128.unwrap(value), FheType.Uint8));\\n }\\n\\n /**\\n * @dev Casts an encrypted integer from 'euint256' to 'euint8'.\\n */\\n function asEuint8(euint256 value) internal returns (euint8) {\\n return euint8.wrap(Impl.cast(euint256.unwrap(value), FheType.Uint8));\\n }\\n\\n /**\\n /** \\n * @dev Converts an 'ebool' to an 'euint8'.\\n */\\n function asEuint8(ebool b) internal returns (euint8) {\\n return euint8.wrap(Impl.cast(ebool.unwrap(b), FheType.Uint8));\\n }\\n\\n /**\\n * @dev Casts an encrypted integer from 'euint8' to 'ebool'.\\n */\\n function asEbool(euint8 value) internal returns (ebool) {\\n return ne(value, 0);\\n }\\n\\n /**\\n * @dev Casts an encrypted integer from 'euint8' to 'euint16'.\\n */\\n function asEuint16(euint8 value) internal returns (euint16) {\\n return euint16.wrap(Impl.cast(euint8.unwrap(value), FheType.Uint16));\\n }\\n\\n /**\\n * @dev Casts an encrypted integer from 'euint32' to 'euint16'.\\n */\\n function asEuint16(euint32 value) internal returns (euint16) {\\n return euint16.wrap(Impl.cast(euint32.unwrap(value), FheType.Uint16));\\n }\\n\\n /**\\n * @dev Casts an encrypted integer from 'euint64' to 'euint16'.\\n */\\n function asEuint16(euint64 value) internal returns (euint16) {\\n return euint16.wrap(Impl.cast(euint64.unwrap(value), FheType.Uint16));\\n }\\n\\n /**\\n * @dev Casts an encrypted integer from 'euint128' to 'euint16'.\\n */\\n function asEuint16(euint128 value) internal returns (euint16) {\\n return euint16.wrap(Impl.cast(euint128.unwrap(value), FheType.Uint16));\\n }\\n\\n /**\\n * @dev Casts an encrypted integer from 'euint256' to 'euint16'.\\n */\\n function asEuint16(euint256 value) internal returns (euint16) {\\n return euint16.wrap(Impl.cast(euint256.unwrap(value), FheType.Uint16));\\n }\\n\\n /**\\n /** \\n * @dev Converts an 'ebool' to an 'euint16'.\\n */\\n function asEuint16(ebool b) internal returns (euint16) {\\n return euint16.wrap(Impl.cast(ebool.unwrap(b), FheType.Uint16));\\n }\\n\\n /**\\n * @dev Casts an encrypted integer from 'euint16' to 'ebool'.\\n */\\n function asEbool(euint16 value) internal returns (ebool) {\\n return ne(value, 0);\\n }\\n\\n /**\\n * @dev Casts an encrypted integer from 'euint8' to 'euint32'.\\n */\\n function asEuint32(euint8 value) internal returns (euint32) {\\n return euint32.wrap(Impl.cast(euint8.unwrap(value), FheType.Uint32));\\n }\\n\\n /**\\n * @dev Casts an encrypted integer from 'euint16' to 'euint32'.\\n */\\n function asEuint32(euint16 value) internal returns (euint32) {\\n return euint32.wrap(Impl.cast(euint16.unwrap(value), FheType.Uint32));\\n }\\n\\n /**\\n * @dev Casts an encrypted integer from 'euint64' to 'euint32'.\\n */\\n function asEuint32(euint64 value) internal returns (euint32) {\\n return euint32.wrap(Impl.cast(euint64.unwrap(value), FheType.Uint32));\\n }\\n\\n /**\\n * @dev Casts an encrypted integer from 'euint128' to 'euint32'.\\n */\\n function asEuint32(euint128 value) internal returns (euint32) {\\n return euint32.wrap(Impl.cast(euint128.unwrap(value), FheType.Uint32));\\n }\\n\\n /**\\n * @dev Casts an encrypted integer from 'euint256' to 'euint32'.\\n */\\n function asEuint32(euint256 value) internal returns (euint32) {\\n return euint32.wrap(Impl.cast(euint256.unwrap(value), FheType.Uint32));\\n }\\n\\n /**\\n /** \\n * @dev Converts an 'ebool' to an 'euint32'.\\n */\\n function asEuint32(ebool b) internal returns (euint32) {\\n return euint32.wrap(Impl.cast(ebool.unwrap(b), FheType.Uint32));\\n }\\n\\n /**\\n * @dev Casts an encrypted integer from 'euint32' to 'ebool'.\\n */\\n function asEbool(euint32 value) internal returns (ebool) {\\n return ne(value, 0);\\n }\\n\\n /**\\n * @dev Casts an encrypted integer from 'euint8' to 'euint64'.\\n */\\n function asEuint64(euint8 value) internal returns (euint64) {\\n return euint64.wrap(Impl.cast(euint8.unwrap(value), FheType.Uint64));\\n }\\n\\n /**\\n * @dev Casts an encrypted integer from 'euint16' to 'euint64'.\\n */\\n function asEuint64(euint16 value) internal returns (euint64) {\\n return euint64.wrap(Impl.cast(euint16.unwrap(value), FheType.Uint64));\\n }\\n\\n /**\\n * @dev Casts an encrypted integer from 'euint32' to 'euint64'.\\n */\\n function asEuint64(euint32 value) internal returns (euint64) {\\n return euint64.wrap(Impl.cast(euint32.unwrap(value), FheType.Uint64));\\n }\\n\\n /**\\n * @dev Casts an encrypted integer from 'euint128' to 'euint64'.\\n */\\n function asEuint64(euint128 value) internal returns (euint64) {\\n return euint64.wrap(Impl.cast(euint128.unwrap(value), FheType.Uint64));\\n }\\n\\n /**\\n * @dev Casts an encrypted integer from 'euint256' to 'euint64'.\\n */\\n function asEuint64(euint256 value) internal returns (euint64) {\\n return euint64.wrap(Impl.cast(euint256.unwrap(value), FheType.Uint64));\\n }\\n\\n /**\\n /** \\n * @dev Converts an 'ebool' to an 'euint64'.\\n */\\n function asEuint64(ebool b) internal returns (euint64) {\\n return euint64.wrap(Impl.cast(ebool.unwrap(b), FheType.Uint64));\\n }\\n\\n /**\\n * @dev Casts an encrypted integer from 'euint64' to 'ebool'.\\n */\\n function asEbool(euint64 value) internal returns (ebool) {\\n return ne(value, 0);\\n }\\n\\n /**\\n * @dev Casts an encrypted integer from 'euint8' to 'euint128'.\\n */\\n function asEuint128(euint8 value) internal returns (euint128) {\\n return euint128.wrap(Impl.cast(euint8.unwrap(value), FheType.Uint128));\\n }\\n\\n /**\\n * @dev Casts an encrypted integer from 'euint16' to 'euint128'.\\n */\\n function asEuint128(euint16 value) internal returns (euint128) {\\n return euint128.wrap(Impl.cast(euint16.unwrap(value), FheType.Uint128));\\n }\\n\\n /**\\n * @dev Casts an encrypted integer from 'euint32' to 'euint128'.\\n */\\n function asEuint128(euint32 value) internal returns (euint128) {\\n return euint128.wrap(Impl.cast(euint32.unwrap(value), FheType.Uint128));\\n }\\n\\n /**\\n * @dev Casts an encrypted integer from 'euint64' to 'euint128'.\\n */\\n function asEuint128(euint64 value) internal returns (euint128) {\\n return euint128.wrap(Impl.cast(euint64.unwrap(value), FheType.Uint128));\\n }\\n\\n /**\\n * @dev Casts an encrypted integer from 'euint256' to 'euint128'.\\n */\\n function asEuint128(euint256 value) internal returns (euint128) {\\n return euint128.wrap(Impl.cast(euint256.unwrap(value), FheType.Uint128));\\n }\\n\\n /**\\n /** \\n * @dev Converts an 'ebool' to an 'euint128'.\\n */\\n function asEuint128(ebool b) internal returns (euint128) {\\n return euint128.wrap(Impl.cast(ebool.unwrap(b), FheType.Uint128));\\n }\\n\\n /**\\n * @dev Casts an encrypted integer from 'euint128' to 'ebool'.\\n */\\n function asEbool(euint128 value) internal returns (ebool) {\\n return ne(value, 0);\\n }\\n\\n /**\\n * @dev Casts an encrypted integer from 'euint8' to 'euint256'.\\n */\\n function asEuint256(euint8 value) internal returns (euint256) {\\n return euint256.wrap(Impl.cast(euint8.unwrap(value), FheType.Uint256));\\n }\\n\\n /**\\n * @dev Casts an encrypted integer from 'euint16' to 'euint256'.\\n */\\n function asEuint256(euint16 value) internal returns (euint256) {\\n return euint256.wrap(Impl.cast(euint16.unwrap(value), FheType.Uint256));\\n }\\n\\n /**\\n * @dev Casts an encrypted integer from 'euint32' to 'euint256'.\\n */\\n function asEuint256(euint32 value) internal returns (euint256) {\\n return euint256.wrap(Impl.cast(euint32.unwrap(value), FheType.Uint256));\\n }\\n\\n /**\\n * @dev Casts an encrypted integer from 'euint64' to 'euint256'.\\n */\\n function asEuint256(euint64 value) internal returns (euint256) {\\n return euint256.wrap(Impl.cast(euint64.unwrap(value), FheType.Uint256));\\n }\\n\\n /**\\n * @dev Casts an encrypted integer from 'euint128' to 'euint256'.\\n */\\n function asEuint256(euint128 value) internal returns (euint256) {\\n return euint256.wrap(Impl.cast(euint128.unwrap(value), FheType.Uint256));\\n }\\n\\n /**\\n /** \\n * @dev Converts an 'ebool' to an 'euint256'.\\n */\\n function asEuint256(ebool b) internal returns (euint256) {\\n return euint256.wrap(Impl.cast(ebool.unwrap(b), FheType.Uint256));\\n }\\n\\n /**\\n * @dev Casts an encrypted integer from 'euint256' to 'ebool'.\\n */\\n function asEbool(euint256 value) internal returns (ebool) {\\n return ne(value, 0);\\n }\\n\\n /**\\n * @dev Evaluates not(ebool value) and returns the result.\\n */\\n function not(ebool value) internal returns (ebool) {\\n return ebool.wrap(Impl.not(ebool.unwrap(value)));\\n }\\n\\n /**\\n * @dev Evaluates neg(euint8 value) and returns the result.\\n */\\n function neg(euint8 value) internal returns (euint8) {\\n return euint8.wrap(Impl.neg(euint8.unwrap(value)));\\n }\\n\\n /**\\n * @dev Evaluates not(euint8 value) and returns the result.\\n */\\n function not(euint8 value) internal returns (euint8) {\\n return euint8.wrap(Impl.not(euint8.unwrap(value)));\\n }\\n\\n /**\\n * @dev Evaluates neg(euint16 value) and returns the result.\\n */\\n function neg(euint16 value) internal returns (euint16) {\\n return euint16.wrap(Impl.neg(euint16.unwrap(value)));\\n }\\n\\n /**\\n * @dev Evaluates not(euint16 value) and returns the result.\\n */\\n function not(euint16 value) internal returns (euint16) {\\n return euint16.wrap(Impl.not(euint16.unwrap(value)));\\n }\\n\\n /**\\n * @dev Evaluates neg(euint32 value) and returns the result.\\n */\\n function neg(euint32 value) internal returns (euint32) {\\n return euint32.wrap(Impl.neg(euint32.unwrap(value)));\\n }\\n\\n /**\\n * @dev Evaluates not(euint32 value) and returns the result.\\n */\\n function not(euint32 value) internal returns (euint32) {\\n return euint32.wrap(Impl.not(euint32.unwrap(value)));\\n }\\n\\n /**\\n * @dev Evaluates neg(euint64 value) and returns the result.\\n */\\n function neg(euint64 value) internal returns (euint64) {\\n return euint64.wrap(Impl.neg(euint64.unwrap(value)));\\n }\\n\\n /**\\n * @dev Evaluates not(euint64 value) and returns the result.\\n */\\n function not(euint64 value) internal returns (euint64) {\\n return euint64.wrap(Impl.not(euint64.unwrap(value)));\\n }\\n\\n /**\\n * @dev Evaluates neg(euint128 value) and returns the result.\\n */\\n function neg(euint128 value) internal returns (euint128) {\\n return euint128.wrap(Impl.neg(euint128.unwrap(value)));\\n }\\n\\n /**\\n * @dev Evaluates not(euint128 value) and returns the result.\\n */\\n function not(euint128 value) internal returns (euint128) {\\n return euint128.wrap(Impl.not(euint128.unwrap(value)));\\n }\\n\\n /**\\n * @dev Evaluates neg(euint256 value) and returns the result.\\n */\\n function neg(euint256 value) internal returns (euint256) {\\n return euint256.wrap(Impl.neg(euint256.unwrap(value)));\\n }\\n\\n /**\\n * @dev Evaluates not(euint256 value) and returns the result.\\n */\\n function not(euint256 value) internal returns (euint256) {\\n return euint256.wrap(Impl.not(euint256.unwrap(value)));\\n }\\n\\n /**\\n * @dev Convert an inputHandle with corresponding inputProof to an encrypted ebool integer.\\n */\\n function fromExternal(externalEbool inputHandle, bytes memory inputProof) internal returns (ebool) {\\n return ebool.wrap(Impl.verify(externalEbool.unwrap(inputHandle), inputProof, FheType.Bool));\\n }\\n\\n /**\\n * @dev Converts a plaintext boolean to an encrypted boolean.\\n */\\n function asEbool(bool value) internal returns (ebool) {\\n return ebool.wrap(Impl.trivialEncrypt(value ? 1 : 0, FheType.Bool));\\n }\\n\\n /**\\n * @dev Convert an inputHandle with corresponding inputProof to an encrypted euint8 integer.\\n */\\n function fromExternal(externalEuint8 inputHandle, bytes memory inputProof) internal returns (euint8) {\\n return euint8.wrap(Impl.verify(externalEuint8.unwrap(inputHandle), inputProof, FheType.Uint8));\\n }\\n\\n /**\\n * @dev Convert a plaintext value to an encrypted euint8 integer.\\n */\\n function asEuint8(uint8 value) internal returns (euint8) {\\n return euint8.wrap(Impl.trivialEncrypt(uint256(value), FheType.Uint8));\\n }\\n\\n /**\\n * @dev Convert an inputHandle with corresponding inputProof to an encrypted euint16 integer.\\n */\\n function fromExternal(externalEuint16 inputHandle, bytes memory inputProof) internal returns (euint16) {\\n return euint16.wrap(Impl.verify(externalEuint16.unwrap(inputHandle), inputProof, FheType.Uint16));\\n }\\n\\n /**\\n * @dev Convert a plaintext value to an encrypted euint16 integer.\\n */\\n function asEuint16(uint16 value) internal returns (euint16) {\\n return euint16.wrap(Impl.trivialEncrypt(uint256(value), FheType.Uint16));\\n }\\n\\n /**\\n * @dev Convert an inputHandle with corresponding inputProof to an encrypted euint32 integer.\\n */\\n function fromExternal(externalEuint32 inputHandle, bytes memory inputProof) internal returns (euint32) {\\n return euint32.wrap(Impl.verify(externalEuint32.unwrap(inputHandle), inputProof, FheType.Uint32));\\n }\\n\\n /**\\n * @dev Convert a plaintext value to an encrypted euint32 integer.\\n */\\n function asEuint32(uint32 value) internal returns (euint32) {\\n return euint32.wrap(Impl.trivialEncrypt(uint256(value), FheType.Uint32));\\n }\\n\\n /**\\n * @dev Convert an inputHandle with corresponding inputProof to an encrypted euint64 integer.\\n */\\n function fromExternal(externalEuint64 inputHandle, bytes memory inputProof) internal returns (euint64) {\\n return euint64.wrap(Impl.verify(externalEuint64.unwrap(inputHandle), inputProof, FheType.Uint64));\\n }\\n\\n /**\\n * @dev Convert a plaintext value to an encrypted euint64 integer.\\n */\\n function asEuint64(uint64 value) internal returns (euint64) {\\n return euint64.wrap(Impl.trivialEncrypt(uint256(value), FheType.Uint64));\\n }\\n\\n /**\\n * @dev Convert an inputHandle with corresponding inputProof to an encrypted euint128 integer.\\n */\\n function fromExternal(externalEuint128 inputHandle, bytes memory inputProof) internal returns (euint128) {\\n return euint128.wrap(Impl.verify(externalEuint128.unwrap(inputHandle), inputProof, FheType.Uint128));\\n }\\n\\n /**\\n * @dev Convert a plaintext value to an encrypted euint128 integer.\\n */\\n function asEuint128(uint128 value) internal returns (euint128) {\\n return euint128.wrap(Impl.trivialEncrypt(uint256(value), FheType.Uint128));\\n }\\n\\n /**\\n * @dev Convert an inputHandle with corresponding inputProof to an encrypted eaddress integer.\\n */\\n function fromExternal(externalEaddress inputHandle, bytes memory inputProof) internal returns (eaddress) {\\n return eaddress.wrap(Impl.verify(externalEaddress.unwrap(inputHandle), inputProof, FheType.Uint160));\\n }\\n\\n /**\\n * @dev Convert a plaintext value to an encrypted eaddress integer.\\n */\\n function asEaddress(address value) internal returns (eaddress) {\\n return eaddress.wrap(Impl.trivialEncrypt(uint256(uint160(value)), FheType.Uint160));\\n }\\n\\n /**\\n * @dev Convert an inputHandle with corresponding inputProof to an encrypted euint256 integer.\\n */\\n function fromExternal(externalEuint256 inputHandle, bytes memory inputProof) internal returns (euint256) {\\n return euint256.wrap(Impl.verify(externalEuint256.unwrap(inputHandle), inputProof, FheType.Uint256));\\n }\\n\\n /**\\n * @dev Convert a plaintext value to an encrypted euint256 integer.\\n */\\n function asEuint256(uint256 value) internal returns (euint256) {\\n return euint256.wrap(Impl.trivialEncrypt(uint256(value), FheType.Uint256));\\n }\\n\\n /**\\n * @dev Generates a random encrypted value.\\n */\\n function randEbool() internal returns (ebool) {\\n return ebool.wrap(Impl.rand(FheType.Bool));\\n }\\n\\n /**\\n * @dev Generates a random encrypted value.\\n */\\n function randEuint8() internal returns (euint8) {\\n return euint8.wrap(Impl.rand(FheType.Uint8));\\n }\\n\\n /**\\n * @dev Generates a random encrypted 8-bit unsigned integer in the [0, upperBound) range.\\n * The upperBound must be a power of 2.\\n */\\n function randEuint8(uint8 upperBound) internal returns (euint8) {\\n return euint8.wrap(Impl.randBounded(upperBound, FheType.Uint8));\\n }\\n\\n /**\\n * @dev Generates a random encrypted value.\\n */\\n function randEuint16() internal returns (euint16) {\\n return euint16.wrap(Impl.rand(FheType.Uint16));\\n }\\n\\n /**\\n * @dev Generates a random encrypted 16-bit unsigned integer in the [0, upperBound) range.\\n * The upperBound must be a power of 2.\\n */\\n function randEuint16(uint16 upperBound) internal returns (euint16) {\\n return euint16.wrap(Impl.randBounded(upperBound, FheType.Uint16));\\n }\\n\\n /**\\n * @dev Generates a random encrypted value.\\n */\\n function randEuint32() internal returns (euint32) {\\n return euint32.wrap(Impl.rand(FheType.Uint32));\\n }\\n\\n /**\\n * @dev Generates a random encrypted 32-bit unsigned integer in the [0, upperBound) range.\\n * The upperBound must be a power of 2.\\n */\\n function randEuint32(uint32 upperBound) internal returns (euint32) {\\n return euint32.wrap(Impl.randBounded(upperBound, FheType.Uint32));\\n }\\n\\n /**\\n * @dev Generates a random encrypted value.\\n */\\n function randEuint64() internal returns (euint64) {\\n return euint64.wrap(Impl.rand(FheType.Uint64));\\n }\\n\\n /**\\n * @dev Generates a random encrypted 64-bit unsigned integer in the [0, upperBound) range.\\n * The upperBound must be a power of 2.\\n */\\n function randEuint64(uint64 upperBound) internal returns (euint64) {\\n return euint64.wrap(Impl.randBounded(upperBound, FheType.Uint64));\\n }\\n\\n /**\\n * @dev Generates a random encrypted value.\\n */\\n function randEuint128() internal returns (euint128) {\\n return euint128.wrap(Impl.rand(FheType.Uint128));\\n }\\n\\n /**\\n * @dev Generates a random encrypted 128-bit unsigned integer in the [0, upperBound) range.\\n * The upperBound must be a power of 2.\\n */\\n function randEuint128(uint128 upperBound) internal returns (euint128) {\\n return euint128.wrap(Impl.randBounded(upperBound, FheType.Uint128));\\n }\\n\\n /**\\n * @dev Generates a random encrypted value.\\n */\\n function randEuint256() internal returns (euint256) {\\n return euint256.wrap(Impl.rand(FheType.Uint256));\\n }\\n\\n /**\\n * @dev Generates a random encrypted 256-bit unsigned integer in the [0, upperBound) range.\\n * The upperBound must be a power of 2.\\n */\\n function randEuint256(uint256 upperBound) internal returns (euint256) {\\n return euint256.wrap(Impl.randBounded(upperBound, FheType.Uint256));\\n }\\n\\n /**\\n * @dev This function cleans the transient storage for the ACL (accounts) and the InputVerifier\\n * (input proofs).\\n * This could be useful for integration with Account Abstraction when bundling several\\n * UserOps calling the FHEVMExecutor.\\n */\\n function cleanTransientStorage() internal {\\n Impl.cleanTransientStorageACL();\\n Impl.cleanTransientStorageInputVerifier();\\n }\\n\\n /**\\n * @dev Returns whether the account is allowed to use the value.\\n */\\n function isAllowed(ebool value, address account) internal view returns (bool) {\\n return Impl.isAllowed(ebool.unwrap(value), account);\\n }\\n\\n /**\\n * @dev Returns whether the sender is allowed to use the value.\\n */\\n function isSenderAllowed(ebool value) internal view returns (bool) {\\n return Impl.isAllowed(ebool.unwrap(value), msg.sender);\\n }\\n\\n /**\\n * @dev Allows the use of value for the address account.\\n */\\n function allow(ebool value, address account) internal returns (ebool) {\\n Impl.allow(ebool.unwrap(value), account);\\n return value;\\n }\\n\\n /**\\n * @dev Allows the use of value for this address (address(this)).\\n */\\n function allowThis(ebool value) internal returns (ebool) {\\n Impl.allow(ebool.unwrap(value), address(this));\\n return value;\\n }\\n\\n /**\\n * @dev Allows the use of value by address account for this transaction.\\n */\\n function allowTransient(ebool value, address account) internal returns (ebool) {\\n Impl.allowTransient(ebool.unwrap(value), account);\\n return value;\\n }\\n\\n /**\\n * @dev Makes the value publicly decryptable.\\n */\\n function makePubliclyDecryptable(ebool value) internal returns (ebool) {\\n Impl.makePubliclyDecryptable(ebool.unwrap(value));\\n return value;\\n }\\n\\n /**\\n * @dev Returns whether the the value is publicly decryptable.\\n */\\n function isPubliclyDecryptable(ebool value) internal view returns (bool) {\\n return Impl.isPubliclyDecryptable(ebool.unwrap(value));\\n }\\n\\n /**\\n * @dev Returns whether the account is allowed to use the value.\\n */\\n function isAllowed(euint8 value, address account) internal view returns (bool) {\\n return Impl.isAllowed(euint8.unwrap(value), account);\\n }\\n\\n /**\\n * @dev Returns whether the sender is allowed to use the value.\\n */\\n function isSenderAllowed(euint8 value) internal view returns (bool) {\\n return Impl.isAllowed(euint8.unwrap(value), msg.sender);\\n }\\n\\n /**\\n * @dev Allows the use of value for the address account.\\n */\\n function allow(euint8 value, address account) internal returns (euint8) {\\n Impl.allow(euint8.unwrap(value), account);\\n return value;\\n }\\n\\n /**\\n * @dev Allows the use of value for this address (address(this)).\\n */\\n function allowThis(euint8 value) internal returns (euint8) {\\n Impl.allow(euint8.unwrap(value), address(this));\\n return value;\\n }\\n\\n /**\\n * @dev Allows the use of value by address account for this transaction.\\n */\\n function allowTransient(euint8 value, address account) internal returns (euint8) {\\n Impl.allowTransient(euint8.unwrap(value), account);\\n return value;\\n }\\n\\n /**\\n * @dev Makes the value publicly decryptable.\\n */\\n function makePubliclyDecryptable(euint8 value) internal returns (euint8) {\\n Impl.makePubliclyDecryptable(euint8.unwrap(value));\\n return value;\\n }\\n\\n /**\\n * @dev Returns whether the the value is publicly decryptable.\\n */\\n function isPubliclyDecryptable(euint8 value) internal view returns (bool) {\\n return Impl.isPubliclyDecryptable(euint8.unwrap(value));\\n }\\n\\n /**\\n * @dev Returns whether the account is allowed to use the value.\\n */\\n function isAllowed(euint16 value, address account) internal view returns (bool) {\\n return Impl.isAllowed(euint16.unwrap(value), account);\\n }\\n\\n /**\\n * @dev Returns whether the sender is allowed to use the value.\\n */\\n function isSenderAllowed(euint16 value) internal view returns (bool) {\\n return Impl.isAllowed(euint16.unwrap(value), msg.sender);\\n }\\n\\n /**\\n * @dev Allows the use of value for the address account.\\n */\\n function allow(euint16 value, address account) internal returns (euint16) {\\n Impl.allow(euint16.unwrap(value), account);\\n return value;\\n }\\n\\n /**\\n * @dev Allows the use of value for this address (address(this)).\\n */\\n function allowThis(euint16 value) internal returns (euint16) {\\n Impl.allow(euint16.unwrap(value), address(this));\\n return value;\\n }\\n\\n /**\\n * @dev Allows the use of value by address account for this transaction.\\n */\\n function allowTransient(euint16 value, address account) internal returns (euint16) {\\n Impl.allowTransient(euint16.unwrap(value), account);\\n return value;\\n }\\n\\n /**\\n * @dev Makes the value publicly decryptable.\\n */\\n function makePubliclyDecryptable(euint16 value) internal returns (euint16) {\\n Impl.makePubliclyDecryptable(euint16.unwrap(value));\\n return value;\\n }\\n\\n /**\\n * @dev Returns whether the the value is publicly decryptable.\\n */\\n function isPubliclyDecryptable(euint16 value) internal view returns (bool) {\\n return Impl.isPubliclyDecryptable(euint16.unwrap(value));\\n }\\n\\n /**\\n * @dev Returns whether the account is allowed to use the value.\\n */\\n function isAllowed(euint32 value, address account) internal view returns (bool) {\\n return Impl.isAllowed(euint32.unwrap(value), account);\\n }\\n\\n /**\\n * @dev Returns whether the sender is allowed to use the value.\\n */\\n function isSenderAllowed(euint32 value) internal view returns (bool) {\\n return Impl.isAllowed(euint32.unwrap(value), msg.sender);\\n }\\n\\n /**\\n * @dev Allows the use of value for the address account.\\n */\\n function allow(euint32 value, address account) internal returns (euint32) {\\n Impl.allow(euint32.unwrap(value), account);\\n return value;\\n }\\n\\n /**\\n * @dev Allows the use of value for this address (address(this)).\\n */\\n function allowThis(euint32 value) internal returns (euint32) {\\n Impl.allow(euint32.unwrap(value), address(this));\\n return value;\\n }\\n\\n /**\\n * @dev Allows the use of value by address account for this transaction.\\n */\\n function allowTransient(euint32 value, address account) internal returns (euint32) {\\n Impl.allowTransient(euint32.unwrap(value), account);\\n return value;\\n }\\n\\n /**\\n * @dev Makes the value publicly decryptable.\\n */\\n function makePubliclyDecryptable(euint32 value) internal returns (euint32) {\\n Impl.makePubliclyDecryptable(euint32.unwrap(value));\\n return value;\\n }\\n\\n /**\\n * @dev Returns whether the the value is publicly decryptable.\\n */\\n function isPubliclyDecryptable(euint32 value) internal view returns (bool) {\\n return Impl.isPubliclyDecryptable(euint32.unwrap(value));\\n }\\n\\n /**\\n * @dev Returns whether the account is allowed to use the value.\\n */\\n function isAllowed(euint64 value, address account) internal view returns (bool) {\\n return Impl.isAllowed(euint64.unwrap(value), account);\\n }\\n\\n /**\\n * @dev Returns whether the sender is allowed to use the value.\\n */\\n function isSenderAllowed(euint64 value) internal view returns (bool) {\\n return Impl.isAllowed(euint64.unwrap(value), msg.sender);\\n }\\n\\n /**\\n * @dev Allows the use of value for the address account.\\n */\\n function allow(euint64 value, address account) internal returns (euint64) {\\n Impl.allow(euint64.unwrap(value), account);\\n return value;\\n }\\n\\n /**\\n * @dev Allows the use of value for this address (address(this)).\\n */\\n function allowThis(euint64 value) internal returns (euint64) {\\n Impl.allow(euint64.unwrap(value), address(this));\\n return value;\\n }\\n\\n /**\\n * @dev Allows the use of value by address account for this transaction.\\n */\\n function allowTransient(euint64 value, address account) internal returns (euint64) {\\n Impl.allowTransient(euint64.unwrap(value), account);\\n return value;\\n }\\n\\n /**\\n * @dev Makes the value publicly decryptable.\\n */\\n function makePubliclyDecryptable(euint64 value) internal returns (euint64) {\\n Impl.makePubliclyDecryptable(euint64.unwrap(value));\\n return value;\\n }\\n\\n /**\\n * @dev Returns whether the the value is publicly decryptable.\\n */\\n function isPubliclyDecryptable(euint64 value) internal view returns (bool) {\\n return Impl.isPubliclyDecryptable(euint64.unwrap(value));\\n }\\n\\n /**\\n * @dev Returns whether the account is allowed to use the value.\\n */\\n function isAllowed(euint128 value, address account) internal view returns (bool) {\\n return Impl.isAllowed(euint128.unwrap(value), account);\\n }\\n\\n /**\\n * @dev Returns whether the sender is allowed to use the value.\\n */\\n function isSenderAllowed(euint128 value) internal view returns (bool) {\\n return Impl.isAllowed(euint128.unwrap(value), msg.sender);\\n }\\n\\n /**\\n * @dev Allows the use of value for the address account.\\n */\\n function allow(euint128 value, address account) internal returns (euint128) {\\n Impl.allow(euint128.unwrap(value), account);\\n return value;\\n }\\n\\n /**\\n * @dev Allows the use of value for this address (address(this)).\\n */\\n function allowThis(euint128 value) internal returns (euint128) {\\n Impl.allow(euint128.unwrap(value), address(this));\\n return value;\\n }\\n\\n /**\\n * @dev Allows the use of value by address account for this transaction.\\n */\\n function allowTransient(euint128 value, address account) internal returns (euint128) {\\n Impl.allowTransient(euint128.unwrap(value), account);\\n return value;\\n }\\n\\n /**\\n * @dev Makes the value publicly decryptable.\\n */\\n function makePubliclyDecryptable(euint128 value) internal returns (euint128) {\\n Impl.makePubliclyDecryptable(euint128.unwrap(value));\\n return value;\\n }\\n\\n /**\\n * @dev Returns whether the the value is publicly decryptable.\\n */\\n function isPubliclyDecryptable(euint128 value) internal view returns (bool) {\\n return Impl.isPubliclyDecryptable(euint128.unwrap(value));\\n }\\n\\n /**\\n * @dev Returns whether the account is allowed to use the value.\\n */\\n function isAllowed(eaddress value, address account) internal view returns (bool) {\\n return Impl.isAllowed(eaddress.unwrap(value), account);\\n }\\n\\n /**\\n * @dev Returns whether the sender is allowed to use the value.\\n */\\n function isSenderAllowed(eaddress value) internal view returns (bool) {\\n return Impl.isAllowed(eaddress.unwrap(value), msg.sender);\\n }\\n\\n /**\\n * @dev Allows the use of value for the address account.\\n */\\n function allow(eaddress value, address account) internal returns (eaddress) {\\n Impl.allow(eaddress.unwrap(value), account);\\n return value;\\n }\\n\\n /**\\n * @dev Allows the use of value for this address (address(this)).\\n */\\n function allowThis(eaddress value) internal returns (eaddress) {\\n Impl.allow(eaddress.unwrap(value), address(this));\\n return value;\\n }\\n\\n /**\\n * @dev Allows the use of value by address account for this transaction.\\n */\\n function allowTransient(eaddress value, address account) internal returns (eaddress) {\\n Impl.allowTransient(eaddress.unwrap(value), account);\\n return value;\\n }\\n\\n /**\\n * @dev Makes the value publicly decryptable.\\n */\\n function makePubliclyDecryptable(eaddress value) internal returns (eaddress) {\\n Impl.makePubliclyDecryptable(eaddress.unwrap(value));\\n return value;\\n }\\n\\n /**\\n * @dev Returns whether the the value is publicly decryptable.\\n */\\n function isPubliclyDecryptable(eaddress value) internal view returns (bool) {\\n return Impl.isPubliclyDecryptable(eaddress.unwrap(value));\\n }\\n\\n /**\\n * @dev Returns whether the account is allowed to use the value.\\n */\\n function isAllowed(euint256 value, address account) internal view returns (bool) {\\n return Impl.isAllowed(euint256.unwrap(value), account);\\n }\\n\\n /**\\n * @dev Returns whether the sender is allowed to use the value.\\n */\\n function isSenderAllowed(euint256 value) internal view returns (bool) {\\n return Impl.isAllowed(euint256.unwrap(value), msg.sender);\\n }\\n\\n /**\\n * @dev Allows the use of value for the address account.\\n */\\n function allow(euint256 value, address account) internal returns (euint256) {\\n Impl.allow(euint256.unwrap(value), account);\\n return value;\\n }\\n\\n /**\\n * @dev Allows the use of value for this address (address(this)).\\n */\\n function allowThis(euint256 value) internal returns (euint256) {\\n Impl.allow(euint256.unwrap(value), address(this));\\n return value;\\n }\\n\\n /**\\n * @dev Allows the use of value by address account for this transaction.\\n */\\n function allowTransient(euint256 value, address account) internal returns (euint256) {\\n Impl.allowTransient(euint256.unwrap(value), account);\\n return value;\\n }\\n\\n /**\\n * @dev Makes the value publicly decryptable.\\n */\\n function makePubliclyDecryptable(euint256 value) internal returns (euint256) {\\n Impl.makePubliclyDecryptable(euint256.unwrap(value));\\n return value;\\n }\\n\\n /**\\n * @dev Returns whether the the value is publicly decryptable.\\n */\\n function isPubliclyDecryptable(euint256 value) internal view returns (bool) {\\n return Impl.isPubliclyDecryptable(euint256.unwrap(value));\\n }\\n\\n /// @notice Reverts if the KMS signatures verification against the provided handles and public decryption data\\n /// fails.\\n /// @dev The function MUST be called inside a public decryption callback function of a dApp contract\\n /// to verify the signatures and prevent fake decryption results for being submitted.\\n /// @param handlesList The list of handles as an array of bytes32 to check\\n /// @param abiEncodedCleartexts The ABI-encoded list of decrypted values associated with each handle in the `handlesList`.\\n /// The ABI-encoded list order must match the `handlesList` order.\\n /// @param decryptionProof The KMS public decryption proof. It includes the KMS signatures, associated metadata,\\n /// and the context needed for verification.\\n /// @dev Reverts if any of the following conditions are met:\\n /// - The `decryptionProof` is empty or has an invalid length.\\n /// - The number of valid signatures is zero or less than the configured KMS signers threshold.\\n /// - Any signature is produced by an address that is not a registered KMS signer.\\n /// - The signatures verification returns false.\\n function checkSignatures(\\n bytes32[] memory handlesList,\\n bytes memory abiEncodedCleartexts,\\n bytes memory decryptionProof\\n ) internal {\\n bool isVerified = _verifySignatures(handlesList, abiEncodedCleartexts, decryptionProof);\\n if (!isVerified) {\\n revert InvalidKMSSignatures();\\n }\\n emit PublicDecryptionVerified(handlesList, abiEncodedCleartexts);\\n }\\n\\n /// @notice Verifies KMS signatures against the provided handles and public decryption data.\\n /// @param handlesList The list of handles as an array of bytes32 to verify\\n /// @param abiEncodedCleartexts The ABI-encoded list of decrypted values associated with each handle in the `handlesList`.\\n /// The list order must match the list of handles in `handlesList`\\n /// @param decryptionProof The KMS public decryption proof computed by the KMS Signers assiciated to `handlesList` and\\n /// `abiEncodedCleartexts`\\n /// @return true if the signatures verification succeeds, false otherwise\\n /// @dev Private low-level function used to verify the KMS signatures.\\n /// Warning: this function never reverts, its boolean return value must be checked.\\n /// The decryptionProof is the numSigners + kmsSignatures + extraData (1 + 65*numSigners + extraData bytes)\\n /// Only static native solidity types for clear values are supported, so `abiEncodedCleartexts` is the concatenation of all clear values appended to 32 bytes.\\n /// @dev Reverts if any of the following conditions are met by the underlying KMS verifier:\\n /// - The `decryptionProof` is empty or has an invalid length.\\n /// - The number of valid signatures is zero or less than the configured KMS signers threshold.\\n /// - Any signature is produced by an address that is not a registered KMS signer.\\n function _verifySignatures(\\n bytes32[] memory handlesList,\\n bytes memory abiEncodedCleartexts,\\n bytes memory decryptionProof\\n ) private returns (bool) {\\n CoprocessorConfig storage $ = Impl.getCoprocessorConfig();\\n return\\n IKMSVerifier($.KMSVerifierAddress).verifyDecryptionEIP712KMSSignatures(\\n handlesList,\\n abiEncodedCleartexts,\\n decryptionProof\\n );\\n }\\n\\n /**\\n * @dev Converts handle from its custom type to the underlying bytes32. Used when requesting a decryption.\\n */\\n function toBytes32(ebool value) internal pure returns (bytes32 ct) {\\n ct = ebool.unwrap(value);\\n }\\n\\n /**\\n * @dev Converts handle from its custom type to the underlying bytes32. Used when requesting a decryption.\\n */\\n function toBytes32(euint8 value) internal pure returns (bytes32 ct) {\\n ct = euint8.unwrap(value);\\n }\\n\\n /**\\n * @dev Converts handle from its custom type to the underlying bytes32. Used when requesting a decryption.\\n */\\n function toBytes32(euint16 value) internal pure returns (bytes32 ct) {\\n ct = euint16.unwrap(value);\\n }\\n\\n /**\\n * @dev Converts handle from its custom type to the underlying bytes32. Used when requesting a decryption.\\n */\\n function toBytes32(euint32 value) internal pure returns (bytes32 ct) {\\n ct = euint32.unwrap(value);\\n }\\n\\n /**\\n * @dev Converts handle from its custom type to the underlying bytes32. Used when requesting a decryption.\\n */\\n function toBytes32(euint64 value) internal pure returns (bytes32 ct) {\\n ct = euint64.unwrap(value);\\n }\\n\\n /**\\n * @dev Converts handle from its custom type to the underlying bytes32. Used when requesting a decryption.\\n */\\n function toBytes32(euint128 value) internal pure returns (bytes32 ct) {\\n ct = euint128.unwrap(value);\\n }\\n\\n /**\\n * @dev Converts handle from its custom type to the underlying bytes32. Used when requesting a decryption.\\n */\\n function toBytes32(eaddress value) internal pure returns (bytes32 ct) {\\n ct = eaddress.unwrap(value);\\n }\\n\\n /**\\n * @dev Converts handle from its custom type to the underlying bytes32. Used when requesting a decryption.\\n */\\n function toBytes32(euint256 value) internal pure returns (bytes32 ct) {\\n ct = euint256.unwrap(value);\\n }\\n}\\n\",\"keccak256\":\"0x40fa1fd7a983b88f68b2efd87e879bc12ac363b2585bb39e9aa52fa168851d2b\",\"license\":\"BSD-3-Clause-Clear\"},\"@fhevm/solidity/lib/FheType.sol\":{\"content\":\"// SPDX-License-Identifier: BSD-3-Clause-Clear\\npragma solidity ^0.8.24;\\n\\nenum FheType {\\n Bool,\\n Uint4,\\n Uint8,\\n Uint16,\\n Uint32,\\n Uint64,\\n Uint128,\\n Uint160,\\n Uint256,\\n Uint512,\\n Uint1024,\\n Uint2048,\\n Uint2,\\n Uint6,\\n Uint10,\\n Uint12,\\n Uint14,\\n Int2,\\n Int4,\\n Int6,\\n Int8,\\n Int10,\\n Int12,\\n Int14,\\n Int16,\\n Int32,\\n Int64,\\n Int128,\\n Int160,\\n Int256,\\n AsciiString,\\n Int512,\\n Int1024,\\n Int2048,\\n Uint24,\\n Uint40,\\n Uint48,\\n Uint56,\\n Uint72,\\n Uint80,\\n Uint88,\\n Uint96,\\n Uint104,\\n Uint112,\\n Uint120,\\n Uint136,\\n Uint144,\\n Uint152,\\n Uint168,\\n Uint176,\\n Uint184,\\n Uint192,\\n Uint200,\\n Uint208,\\n Uint216,\\n Uint224,\\n Uint232,\\n Uint240,\\n Uint248,\\n Int24,\\n Int40,\\n Int48,\\n Int56,\\n Int72,\\n Int80,\\n Int88,\\n Int96,\\n Int104,\\n Int112,\\n Int120,\\n Int136,\\n Int144,\\n Int152,\\n Int168,\\n Int176,\\n Int184,\\n Int192,\\n Int200,\\n Int208,\\n Int216,\\n Int224,\\n Int232,\\n Int240,\\n Int248\\n}\\n\",\"keccak256\":\"0x945f006108fab92cb082a6e5a80525953f17b8d8dcf88a283a83fc80c765497a\",\"license\":\"BSD-3-Clause-Clear\"},\"@fhevm/solidity/lib/Impl.sol\":{\"content\":\"// SPDX-License-Identifier: BSD-3-Clause-Clear\\npragma solidity ^0.8.24;\\n\\nimport {FheType} from \\\"./FheType.sol\\\";\\n\\n/**\\n * @title CoprocessorConfig\\n * @notice This struct contains all addresses of core contracts, which are needed in a typical dApp.\\n */\\nstruct CoprocessorConfig {\\n address ACLAddress;\\n address CoprocessorAddress;\\n address KMSVerifierAddress;\\n}\\n\\n/**\\n * @title IFHEVMExecutor\\n * @notice This interface contains all functions to conduct FHE operations.\\n */\\ninterface IFHEVMExecutor {\\n /**\\n * @notice Computes fheAdd operation.\\n * @param lhs LHS.\\n * @param rhs RHS.\\n * @param scalarByte Scalar byte.\\n * @return result Result.\\n */\\n function fheAdd(bytes32 lhs, bytes32 rhs, bytes1 scalarByte) external returns (bytes32 result);\\n\\n /**\\n * @notice Computes fheSub operation.\\n * @param lhs LHS.\\n * @param rhs RHS.\\n * @param scalarByte Scalar byte.\\n * @return result Result.\\n */\\n function fheSub(bytes32 lhs, bytes32 rhs, bytes1 scalarByte) external returns (bytes32 result);\\n\\n /**\\n * @notice Computes fheMul operation.\\n * @param lhs LHS.\\n * @param rhs RHS.\\n * @param scalarByte Scalar byte.\\n * @return result Result.\\n */\\n function fheMul(bytes32 lhs, bytes32 rhs, bytes1 scalarByte) external returns (bytes32 result);\\n\\n /**\\n * @notice Computes fheDiv operation.\\n * @param lhs LHS.\\n * @param rhs RHS.\\n * @param scalarByte Scalar byte.\\n * @return result Result.\\n */\\n function fheDiv(bytes32 lhs, bytes32 rhs, bytes1 scalarByte) external returns (bytes32 result);\\n\\n /**\\n * @notice Computes fheRem operation.\\n * @param lhs LHS.\\n * @param rhs RHS.\\n * @param scalarByte Scalar byte.\\n * @return result Result.\\n */\\n function fheRem(bytes32 lhs, bytes32 rhs, bytes1 scalarByte) external returns (bytes32 result);\\n\\n /**\\n * @notice Computes fheBitAnd operation.\\n * @param lhs LHS.\\n * @param rhs RHS.\\n * @param scalarByte Scalar byte.\\n * @return result Result.\\n */\\n function fheBitAnd(bytes32 lhs, bytes32 rhs, bytes1 scalarByte) external returns (bytes32 result);\\n\\n /**\\n * @notice Computes fheBitOr operation.\\n * @param lhs LHS.\\n * @param rhs RHS.\\n * @param scalarByte Scalar byte.\\n * @return result Result.\\n */\\n function fheBitOr(bytes32 lhs, bytes32 rhs, bytes1 scalarByte) external returns (bytes32 result);\\n\\n /**\\n * @notice Computes fheBitXor operation.\\n * @param lhs LHS.\\n * @param rhs RHS.\\n * @param scalarByte Scalar byte.\\n * @return result Result.\\n */\\n function fheBitXor(bytes32 lhs, bytes32 rhs, bytes1 scalarByte) external returns (bytes32 result);\\n\\n /**\\n * @notice Computes fheShl operation.\\n * @param lhs LHS.\\n * @param rhs RHS.\\n * @param scalarByte Scalar byte.\\n * @return result Result.\\n */\\n function fheShl(bytes32 lhs, bytes32 rhs, bytes1 scalarByte) external returns (bytes32 result);\\n\\n /**\\n * @notice Computes fheShr operation.\\n * @param lhs LHS.\\n * @param rhs RHS.\\n * @param scalarByte Scalar byte.\\n * @return result Result.\\n */\\n function fheShr(bytes32 lhs, bytes32 rhs, bytes1 scalarByte) external returns (bytes32 result);\\n\\n /**\\n * @notice Computes fheRotl operation.\\n * @param lhs LHS.\\n * @param rhs RHS.\\n * @param scalarByte Scalar byte.\\n * @return result Result.\\n */\\n function fheRotl(bytes32 lhs, bytes32 rhs, bytes1 scalarByte) external returns (bytes32 result);\\n\\n /**\\n * @notice Computes fheRotr operation.\\n * @param lhs LHS.\\n * @param rhs RHS.\\n * @param scalarByte Scalar byte.\\n * @return result Result.\\n */\\n function fheRotr(bytes32 lhs, bytes32 rhs, bytes1 scalarByte) external returns (bytes32 result);\\n\\n /**\\n * @notice Computes fheEq operation.\\n * @param lhs LHS.\\n * @param rhs RHS.\\n * @param scalarByte Scalar byte.\\n * @return result Result.\\n */\\n function fheEq(bytes32 lhs, bytes32 rhs, bytes1 scalarByte) external returns (bytes32 result);\\n\\n /**\\n * @notice Computes fheNe operation.\\n * @param lhs LHS.\\n * @param rhs RHS.\\n * @param scalarByte Scalar byte.\\n * @return result Result.\\n */\\n function fheNe(bytes32 lhs, bytes32 rhs, bytes1 scalarByte) external returns (bytes32 result);\\n\\n /**\\n * @notice Computes fheGe operation.\\n * @param lhs LHS.\\n * @param rhs RHS.\\n * @param scalarByte Scalar byte.\\n * @return result Result.\\n */\\n function fheGe(bytes32 lhs, bytes32 rhs, bytes1 scalarByte) external returns (bytes32 result);\\n\\n /**\\n * @notice Computes fheGt operation.\\n * @param lhs LHS.\\n * @param rhs RHS.\\n * @param scalarByte Scalar byte.\\n * @return result Result.\\n */\\n function fheGt(bytes32 lhs, bytes32 rhs, bytes1 scalarByte) external returns (bytes32 result);\\n\\n /**\\n * @notice Computes fheLe operation.\\n * @param lhs LHS.\\n * @param rhs RHS.\\n * @param scalarByte Scalar byte.\\n * @return result Result.\\n */\\n function fheLe(bytes32 lhs, bytes32 rhs, bytes1 scalarByte) external returns (bytes32 result);\\n\\n /**\\n * @notice Computes fheLt operation.\\n * @param lhs LHS.\\n * @param rhs RHS.\\n * @param scalarByte Scalar byte.\\n * @return result Result.\\n */\\n function fheLt(bytes32 lhs, bytes32 rhs, bytes1 scalarByte) external returns (bytes32 result);\\n\\n /**\\n * @notice Computes fheMin operation.\\n * @param lhs LHS.\\n * @param rhs RHS.\\n * @param scalarByte Scalar byte.\\n * @return result Result.\\n */\\n function fheMin(bytes32 lhs, bytes32 rhs, bytes1 scalarByte) external returns (bytes32 result);\\n\\n /**\\n * @notice Computes fheMax operation.\\n * @param lhs LHS.\\n * @param rhs RHS.\\n * @param scalarByte Scalar byte.\\n * @return result Result.\\n */\\n function fheMax(bytes32 lhs, bytes32 rhs, bytes1 scalarByte) external returns (bytes32 result);\\n\\n /**\\n * @notice Computes fheNeg operation.\\n * @param ct Ct\\n * @return result Result.\\n */\\n function fheNeg(bytes32 ct) external returns (bytes32 result);\\n\\n /**\\n * @notice Computes fheNot operation.\\n * @param ct Ct\\n * @return result Result.\\n */\\n function fheNot(bytes32 ct) external returns (bytes32 result);\\n\\n /**\\n * @notice Verifies the ciphertext.\\n * @param inputHandle Input handle.\\n * @param callerAddress Address of the caller.\\n * @param inputProof Input proof.\\n * @param inputType Input type.\\n * @return result Result.\\n */\\n function verifyInput(\\n bytes32 inputHandle,\\n address callerAddress,\\n bytes memory inputProof,\\n FheType inputType\\n ) external returns (bytes32 result);\\n\\n /**\\n * @notice Performs the casting to a target type.\\n * @param ct Value to cast.\\n * @param toType Target type.\\n * @return result Result value of the target type.\\n */\\n function cast(bytes32 ct, FheType toType) external returns (bytes32 result);\\n\\n /**\\n * @notice Does trivial encryption.\\n * @param ct Value to encrypt.\\n * @param toType Target type.\\n * @return result Result value of the target type.\\n */\\n function trivialEncrypt(uint256 ct, FheType toType) external returns (bytes32 result);\\n\\n /**\\n * @notice Computes FHEIfThenElse operation.\\n * @param control Control value.\\n * @param ifTrue If true.\\n * @param ifFalse If false.\\n * @return result Result.\\n */\\n function fheIfThenElse(bytes32 control, bytes32 ifTrue, bytes32 ifFalse) external returns (bytes32 result);\\n\\n /**\\n * @notice Computes FHERand operation.\\n * @param randType Type for the random result.\\n * @return result Result.\\n */\\n function fheRand(FheType randType) external returns (bytes32 result);\\n\\n /**\\n * @notice Computes FHERandBounded operation.\\n * @param upperBound Upper bound value.\\n * @param randType Type for the random result.\\n * @return result Result.\\n */\\n function fheRandBounded(uint256 upperBound, FheType randType) external returns (bytes32 result);\\n\\n /**\\n * @notice Returns the address of the InputVerifier contract used by the coprocessor.\\n * @return inputVerifierAddress Address of the InputVerifier.\\n */\\n function getInputVerifierAddress() external view returns (address);\\n}\\n\\n/**\\n * @title IACL.\\n * @notice This interface contains all functions that are used to conduct operations\\n * with the ACL contract.\\n */\\ninterface IACL {\\n /**\\n * @notice Allows the use of handle by address account for this transaction.\\n * @dev The caller must be allowed to use handle for allowTransient() to succeed.\\n * If not, allowTransient() reverts.\\n * The Coprocessor contract can always allowTransient(), contrarily to allow().\\n * @param ciphertext Ciphertext.\\n * @param account Address of the account.\\n */\\n function allowTransient(bytes32 ciphertext, address account) external;\\n\\n /**\\n * @notice Allows the use of handle for the address account.\\n * @dev The caller must be allowed to use handle for allow() to succeed. If not, allow() reverts.\\n * @param handle Handle.\\n * @param account Address of the account.\\n */\\n function allow(bytes32 handle, address account) external;\\n\\n /**\\n * @dev This function removes the transient allowances, which could be useful for integration with\\n * Account Abstraction when bundling several UserOps calling the FHEVMExecutor Coprocessor.\\n */\\n function cleanTransientStorage() external;\\n\\n /**\\n * @notice Returns whether the account is allowed to use the handle, either due to\\n * allowTransient() or allow().\\n * @param handle Handle.\\n * @param account Address of the account.\\n * @return isAllowed Whether the account can access the handle.\\n */\\n function isAllowed(bytes32 handle, address account) external view returns (bool);\\n\\n /**\\n * @notice Allows a list of handles to be decrypted.\\n * @param handlesList List of handles.\\n */\\n function allowForDecryption(bytes32[] memory handlesList) external;\\n\\n /**\\n * @notice Returns wether a handle is allowed to be publicly decrypted.\\n * @param handle Handle.\\n * @return isDecryptable Whether the handle can be publicly decrypted.\\n */\\n function isAllowedForDecryption(bytes32 handle) external view returns (bool);\\n}\\n\\n/**\\n * @title IInputVerifier\\n * @notice This interface contains the only function required from InputVerifier.\\n */\\ninterface IInputVerifier {\\n /**\\n * @dev This function removes the transient allowances, which could be useful for integration with\\n * Account Abstraction when bundling several UserOps calling the FHEVMExecutor Coprocessor.\\n */\\n function cleanTransientStorage() external;\\n}\\n\\n/**\\n * @title Impl\\n * @notice This library is the core implementation for computing FHE operations (e.g. add, sub, xor).\\n */\\nlibrary Impl {\\n /// keccak256(abi.encode(uint256(keccak256(\\\"confidential.storage.config\\\")) - 1)) & ~bytes32(uint256(0xff))\\n bytes32 private constant CoprocessorConfigLocation =\\n 0x9e7b61f58c47dc699ac88507c4f5bb9f121c03808c5676a8078fe583e4649700;\\n\\n /**\\n * @dev Returns the Coprocessor config.\\n */\\n function getCoprocessorConfig() internal pure returns (CoprocessorConfig storage $) {\\n assembly {\\n $.slot := CoprocessorConfigLocation\\n }\\n }\\n\\n /**\\n * @notice Sets the coprocessor addresses.\\n * @param coprocessorConfig Coprocessor config struct that contains contract addresses.\\n */\\n function setCoprocessor(CoprocessorConfig memory coprocessorConfig) internal {\\n CoprocessorConfig storage $ = getCoprocessorConfig();\\n $.ACLAddress = coprocessorConfig.ACLAddress;\\n $.CoprocessorAddress = coprocessorConfig.CoprocessorAddress;\\n $.KMSVerifierAddress = coprocessorConfig.KMSVerifierAddress;\\n }\\n\\n function add(bytes32 lhs, bytes32 rhs, bool scalar) internal returns (bytes32 result) {\\n bytes1 scalarByte;\\n if (scalar) {\\n scalarByte = 0x01;\\n } else {\\n scalarByte = 0x00;\\n }\\n CoprocessorConfig storage $ = getCoprocessorConfig();\\n result = IFHEVMExecutor($.CoprocessorAddress).fheAdd(lhs, rhs, scalarByte);\\n }\\n\\n function sub(bytes32 lhs, bytes32 rhs, bool scalar) internal returns (bytes32 result) {\\n bytes1 scalarByte;\\n if (scalar) {\\n scalarByte = 0x01;\\n } else {\\n scalarByte = 0x00;\\n }\\n CoprocessorConfig storage $ = getCoprocessorConfig();\\n result = IFHEVMExecutor($.CoprocessorAddress).fheSub(lhs, rhs, scalarByte);\\n }\\n\\n function mul(bytes32 lhs, bytes32 rhs, bool scalar) internal returns (bytes32 result) {\\n bytes1 scalarByte;\\n if (scalar) {\\n scalarByte = 0x01;\\n } else {\\n scalarByte = 0x00;\\n }\\n CoprocessorConfig storage $ = getCoprocessorConfig();\\n result = IFHEVMExecutor($.CoprocessorAddress).fheMul(lhs, rhs, scalarByte);\\n }\\n\\n function div(bytes32 lhs, bytes32 rhs) internal returns (bytes32 result) {\\n bytes1 scalarByte = 0x01;\\n CoprocessorConfig storage $ = getCoprocessorConfig();\\n result = IFHEVMExecutor($.CoprocessorAddress).fheDiv(lhs, rhs, scalarByte);\\n }\\n\\n function rem(bytes32 lhs, bytes32 rhs) internal returns (bytes32 result) {\\n bytes1 scalarByte = 0x01;\\n CoprocessorConfig storage $ = getCoprocessorConfig();\\n result = IFHEVMExecutor($.CoprocessorAddress).fheRem(lhs, rhs, scalarByte);\\n }\\n\\n function and(bytes32 lhs, bytes32 rhs, bool scalar) internal returns (bytes32 result) {\\n bytes1 scalarByte;\\n if (scalar) {\\n scalarByte = 0x01;\\n } else {\\n scalarByte = 0x00;\\n }\\n CoprocessorConfig storage $ = getCoprocessorConfig();\\n result = IFHEVMExecutor($.CoprocessorAddress).fheBitAnd(lhs, rhs, scalarByte);\\n }\\n\\n function or(bytes32 lhs, bytes32 rhs, bool scalar) internal returns (bytes32 result) {\\n bytes1 scalarByte;\\n if (scalar) {\\n scalarByte = 0x01;\\n } else {\\n scalarByte = 0x00;\\n }\\n CoprocessorConfig storage $ = getCoprocessorConfig();\\n result = IFHEVMExecutor($.CoprocessorAddress).fheBitOr(lhs, rhs, scalarByte);\\n }\\n\\n function xor(bytes32 lhs, bytes32 rhs, bool scalar) internal returns (bytes32 result) {\\n bytes1 scalarByte;\\n if (scalar) {\\n scalarByte = 0x01;\\n } else {\\n scalarByte = 0x00;\\n }\\n CoprocessorConfig storage $ = getCoprocessorConfig();\\n result = IFHEVMExecutor($.CoprocessorAddress).fheBitXor(lhs, rhs, scalarByte);\\n }\\n\\n function shl(bytes32 lhs, bytes32 rhs, bool scalar) internal returns (bytes32 result) {\\n bytes1 scalarByte;\\n if (scalar) {\\n scalarByte = 0x01;\\n } else {\\n scalarByte = 0x00;\\n }\\n CoprocessorConfig storage $ = getCoprocessorConfig();\\n result = IFHEVMExecutor($.CoprocessorAddress).fheShl(lhs, rhs, scalarByte);\\n }\\n\\n function shr(bytes32 lhs, bytes32 rhs, bool scalar) internal returns (bytes32 result) {\\n bytes1 scalarByte;\\n if (scalar) {\\n scalarByte = 0x01;\\n } else {\\n scalarByte = 0x00;\\n }\\n CoprocessorConfig storage $ = getCoprocessorConfig();\\n result = IFHEVMExecutor($.CoprocessorAddress).fheShr(lhs, rhs, scalarByte);\\n }\\n\\n function rotl(bytes32 lhs, bytes32 rhs, bool scalar) internal returns (bytes32 result) {\\n bytes1 scalarByte;\\n if (scalar) {\\n scalarByte = 0x01;\\n } else {\\n scalarByte = 0x00;\\n }\\n CoprocessorConfig storage $ = getCoprocessorConfig();\\n result = IFHEVMExecutor($.CoprocessorAddress).fheRotl(lhs, rhs, scalarByte);\\n }\\n\\n function rotr(bytes32 lhs, bytes32 rhs, bool scalar) internal returns (bytes32 result) {\\n bytes1 scalarByte;\\n if (scalar) {\\n scalarByte = 0x01;\\n } else {\\n scalarByte = 0x00;\\n }\\n CoprocessorConfig storage $ = getCoprocessorConfig();\\n result = IFHEVMExecutor($.CoprocessorAddress).fheRotr(lhs, rhs, scalarByte);\\n }\\n\\n function eq(bytes32 lhs, bytes32 rhs, bool scalar) internal returns (bytes32 result) {\\n bytes1 scalarByte;\\n if (scalar) {\\n scalarByte = 0x01;\\n } else {\\n scalarByte = 0x00;\\n }\\n CoprocessorConfig storage $ = getCoprocessorConfig();\\n result = IFHEVMExecutor($.CoprocessorAddress).fheEq(lhs, rhs, scalarByte);\\n }\\n\\n function ne(bytes32 lhs, bytes32 rhs, bool scalar) internal returns (bytes32 result) {\\n bytes1 scalarByte;\\n if (scalar) {\\n scalarByte = 0x01;\\n } else {\\n scalarByte = 0x00;\\n }\\n CoprocessorConfig storage $ = getCoprocessorConfig();\\n result = IFHEVMExecutor($.CoprocessorAddress).fheNe(lhs, rhs, scalarByte);\\n }\\n\\n function ge(bytes32 lhs, bytes32 rhs, bool scalar) internal returns (bytes32 result) {\\n bytes1 scalarByte;\\n if (scalar) {\\n scalarByte = 0x01;\\n } else {\\n scalarByte = 0x00;\\n }\\n CoprocessorConfig storage $ = getCoprocessorConfig();\\n result = IFHEVMExecutor($.CoprocessorAddress).fheGe(lhs, rhs, scalarByte);\\n }\\n\\n function gt(bytes32 lhs, bytes32 rhs, bool scalar) internal returns (bytes32 result) {\\n bytes1 scalarByte;\\n if (scalar) {\\n scalarByte = 0x01;\\n } else {\\n scalarByte = 0x00;\\n }\\n CoprocessorConfig storage $ = getCoprocessorConfig();\\n result = IFHEVMExecutor($.CoprocessorAddress).fheGt(lhs, rhs, scalarByte);\\n }\\n\\n function le(bytes32 lhs, bytes32 rhs, bool scalar) internal returns (bytes32 result) {\\n bytes1 scalarByte;\\n if (scalar) {\\n scalarByte = 0x01;\\n } else {\\n scalarByte = 0x00;\\n }\\n CoprocessorConfig storage $ = getCoprocessorConfig();\\n result = IFHEVMExecutor($.CoprocessorAddress).fheLe(lhs, rhs, scalarByte);\\n }\\n\\n function lt(bytes32 lhs, bytes32 rhs, bool scalar) internal returns (bytes32 result) {\\n bytes1 scalarByte;\\n if (scalar) {\\n scalarByte = 0x01;\\n } else {\\n scalarByte = 0x00;\\n }\\n CoprocessorConfig storage $ = getCoprocessorConfig();\\n result = IFHEVMExecutor($.CoprocessorAddress).fheLt(lhs, rhs, scalarByte);\\n }\\n\\n function min(bytes32 lhs, bytes32 rhs, bool scalar) internal returns (bytes32 result) {\\n bytes1 scalarByte;\\n if (scalar) {\\n scalarByte = 0x01;\\n } else {\\n scalarByte = 0x00;\\n }\\n CoprocessorConfig storage $ = getCoprocessorConfig();\\n result = IFHEVMExecutor($.CoprocessorAddress).fheMin(lhs, rhs, scalarByte);\\n }\\n\\n function max(bytes32 lhs, bytes32 rhs, bool scalar) internal returns (bytes32 result) {\\n bytes1 scalarByte;\\n if (scalar) {\\n scalarByte = 0x01;\\n } else {\\n scalarByte = 0x00;\\n }\\n CoprocessorConfig storage $ = getCoprocessorConfig();\\n result = IFHEVMExecutor($.CoprocessorAddress).fheMax(lhs, rhs, scalarByte);\\n }\\n\\n function neg(bytes32 ct) internal returns (bytes32 result) {\\n CoprocessorConfig storage $ = getCoprocessorConfig();\\n result = IFHEVMExecutor($.CoprocessorAddress).fheNeg(ct);\\n }\\n\\n function not(bytes32 ct) internal returns (bytes32 result) {\\n CoprocessorConfig storage $ = getCoprocessorConfig();\\n result = IFHEVMExecutor($.CoprocessorAddress).fheNot(ct);\\n }\\n\\n /**\\n * @dev If 'control's value is 'true', the result has the same value as 'ifTrue'.\\n * If 'control's value is 'false', the result has the same value as 'ifFalse'.\\n */\\n function select(bytes32 control, bytes32 ifTrue, bytes32 ifFalse) internal returns (bytes32 result) {\\n CoprocessorConfig storage $ = getCoprocessorConfig();\\n result = IFHEVMExecutor($.CoprocessorAddress).fheIfThenElse(control, ifTrue, ifFalse);\\n }\\n\\n /**\\n * @notice Verifies the ciphertext (FHEVMExecutor) and allows transient (ACL).\\n * @param inputHandle Input handle.\\n * @param inputProof Input proof.\\n * @param toType Input type.\\n * @return result Result.\\n */\\n function verify(bytes32 inputHandle, bytes memory inputProof, FheType toType) internal returns (bytes32 result) {\\n CoprocessorConfig storage $ = getCoprocessorConfig();\\n result = IFHEVMExecutor($.CoprocessorAddress).verifyInput(inputHandle, msg.sender, inputProof, toType);\\n IACL($.ACLAddress).allowTransient(result, msg.sender);\\n }\\n\\n /**\\n * @notice Performs the casting to a target type.\\n * @param ciphertext Ciphertext to cast.\\n * @param toType Target type.\\n * @return result Result value of the target type.\\n */\\n function cast(bytes32 ciphertext, FheType toType) internal returns (bytes32 result) {\\n CoprocessorConfig storage $ = getCoprocessorConfig();\\n result = IFHEVMExecutor($.CoprocessorAddress).cast(ciphertext, toType);\\n }\\n\\n /**\\n * @notice Does trivial encryption.\\n * @param value Value to encrypt.\\n * @param toType Target type.\\n * @return result Result value of the target type.\\n */\\n function trivialEncrypt(uint256 value, FheType toType) internal returns (bytes32 result) {\\n CoprocessorConfig storage $ = getCoprocessorConfig();\\n result = IFHEVMExecutor($.CoprocessorAddress).trivialEncrypt(value, toType);\\n }\\n\\n function rand(FheType randType) internal returns (bytes32 result) {\\n CoprocessorConfig storage $ = getCoprocessorConfig();\\n result = IFHEVMExecutor($.CoprocessorAddress).fheRand(randType);\\n }\\n\\n function randBounded(uint256 upperBound, FheType randType) internal returns (bytes32 result) {\\n CoprocessorConfig storage $ = getCoprocessorConfig();\\n result = IFHEVMExecutor($.CoprocessorAddress).fheRandBounded(upperBound, randType);\\n }\\n\\n /**\\n * @notice Allows the use of handle by address account for this transaction.\\n * @dev The caller must be allowed to use handle for allowTransient() to succeed.\\n * If not, allowTransient() reverts.\\n * The Coprocessor contract can always allowTransient(), contrarily to allow().\\n * @param handle Handle.\\n * @param account Address of the account.\\n */\\n function allowTransient(bytes32 handle, address account) internal {\\n CoprocessorConfig storage $ = getCoprocessorConfig();\\n IACL($.ACLAddress).allowTransient(handle, account);\\n }\\n\\n /**\\n * @notice Allows the use of handle for the address account.\\n * @dev The caller must be allowed to use handle for allow() to succeed. If not, allow() reverts.\\n * @param handle Handle.\\n * @param account Address of the account.\\n */\\n function allow(bytes32 handle, address account) internal {\\n CoprocessorConfig storage $ = getCoprocessorConfig();\\n IACL($.ACLAddress).allow(handle, account);\\n }\\n\\n /**\\n * @notice Allows the handle to be publicly decryptable.\\n * @dev The caller must be allowed to use handle for makePubliclyDecryptable() to succeed.\\n * If not, makePubliclyDecryptable() reverts.\\n * @param handle Handle.\\n */\\n function makePubliclyDecryptable(bytes32 handle) internal {\\n CoprocessorConfig storage $ = getCoprocessorConfig();\\n bytes32[] memory handleArray = new bytes32[](1);\\n handleArray[0] = handle;\\n IACL($.ACLAddress).allowForDecryption(handleArray);\\n }\\n\\n /**\\n * @dev This function removes the transient allowances in the ACL, which could be useful for integration\\n * with Account Abstraction when bundling several UserOps calling the FHEVMExecutor Coprocessor.\\n */\\n function cleanTransientStorageACL() internal {\\n CoprocessorConfig storage $ = getCoprocessorConfig();\\n IACL($.ACLAddress).cleanTransientStorage();\\n }\\n\\n /**\\n * @dev This function removes the transient proofs in the InputVerifier, which could be useful for integration\\n * with Account Abstraction when bundling several UserOps calling the FHEVMExecutor Coprocessor.\\n */\\n function cleanTransientStorageInputVerifier() internal {\\n CoprocessorConfig storage $ = getCoprocessorConfig();\\n address inputVerifierAddress = IFHEVMExecutor($.CoprocessorAddress).getInputVerifierAddress();\\n IInputVerifier(inputVerifierAddress).cleanTransientStorage();\\n }\\n\\n /**\\n * @notice Returns whether the account is allowed to use the handle, either due to\\n * allowTransient() or allow().\\n * @param handle Handle.\\n * @param account Address of the account.\\n * @return isAllowed Whether the account can access the handle.\\n */\\n function isAllowed(bytes32 handle, address account) internal view returns (bool) {\\n CoprocessorConfig storage $ = getCoprocessorConfig();\\n return IACL($.ACLAddress).isAllowed(handle, account);\\n }\\n\\n /**\\n * @notice Returns whether the handle is allowed to be publicly decrypted.\\n * @param handle Handle.\\n * @return isAllowed Whether the handle can be publicly decrypted.\\n */\\n function isPubliclyDecryptable(bytes32 handle) internal view returns (bool) {\\n CoprocessorConfig storage $ = getCoprocessorConfig();\\n return IACL($.ACLAddress).isAllowedForDecryption(handle);\\n }\\n}\\n\",\"keccak256\":\"0x42eaed792fa26d065044e0057b093a51dfe0666d0eb75937b99ce87bcc1d0bf2\",\"license\":\"BSD-3-Clause-Clear\"},\"@openzeppelin/contracts-upgradeable/access/Ownable2StepUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.1.0) (access/Ownable2Step.sol)\\n\\npragma solidity ^0.8.20;\\n\\nimport {OwnableUpgradeable} from \\\"./OwnableUpgradeable.sol\\\";\\nimport {Initializable} from \\\"../proxy/utils/Initializable.sol\\\";\\n\\n/**\\n * @dev Contract module which provides access control mechanism, where\\n * there is an account (an owner) that can be granted exclusive access to\\n * specific functions.\\n *\\n * This extension of the {Ownable} contract includes a two-step mechanism to transfer\\n * ownership, where the new owner must call {acceptOwnership} in order to replace the\\n * old one. This can help prevent common mistakes, such as transfers of ownership to\\n * incorrect accounts, or to contracts that are unable to interact with the\\n * permission system.\\n *\\n * The initial owner is specified at deployment time in the constructor for `Ownable`. This\\n * can later be changed with {transferOwnership} and {acceptOwnership}.\\n *\\n * This module is used through inheritance. It will make available all functions\\n * from parent (Ownable).\\n */\\nabstract contract Ownable2StepUpgradeable is Initializable, OwnableUpgradeable {\\n /// @custom:storage-location erc7201:openzeppelin.storage.Ownable2Step\\n struct Ownable2StepStorage {\\n address _pendingOwner;\\n }\\n\\n // keccak256(abi.encode(uint256(keccak256(\\\"openzeppelin.storage.Ownable2Step\\\")) - 1)) & ~bytes32(uint256(0xff))\\n bytes32 private constant Ownable2StepStorageLocation = 0x237e158222e3e6968b72b9db0d8043aacf074ad9f650f0d1606b4d82ee432c00;\\n\\n function _getOwnable2StepStorage() private pure returns (Ownable2StepStorage storage $) {\\n assembly {\\n $.slot := Ownable2StepStorageLocation\\n }\\n }\\n\\n event OwnershipTransferStarted(address indexed previousOwner, address indexed newOwner);\\n\\n function __Ownable2Step_init() internal onlyInitializing {\\n }\\n\\n function __Ownable2Step_init_unchained() internal onlyInitializing {\\n }\\n /**\\n * @dev Returns the address of the pending owner.\\n */\\n function pendingOwner() public view virtual returns (address) {\\n Ownable2StepStorage storage $ = _getOwnable2StepStorage();\\n return $._pendingOwner;\\n }\\n\\n /**\\n * @dev Starts the ownership transfer of the contract to a new account. Replaces the pending transfer if there is one.\\n * Can only be called by the current owner.\\n *\\n * Setting `newOwner` to the zero address is allowed; this can be used to cancel an initiated ownership transfer.\\n */\\n function transferOwnership(address newOwner) public virtual override onlyOwner {\\n Ownable2StepStorage storage $ = _getOwnable2StepStorage();\\n $._pendingOwner = newOwner;\\n emit OwnershipTransferStarted(owner(), newOwner);\\n }\\n\\n /**\\n * @dev Transfers ownership of the contract to a new account (`newOwner`) and deletes any pending owner.\\n * Internal function without access restriction.\\n */\\n function _transferOwnership(address newOwner) internal virtual override {\\n Ownable2StepStorage storage $ = _getOwnable2StepStorage();\\n delete $._pendingOwner;\\n super._transferOwnership(newOwner);\\n }\\n\\n /**\\n * @dev The new owner accepts the ownership transfer.\\n */\\n function acceptOwnership() public virtual {\\n address sender = _msgSender();\\n if (pendingOwner() != sender) {\\n revert OwnableUnauthorizedAccount(sender);\\n }\\n _transferOwnership(sender);\\n }\\n}\\n\",\"keccak256\":\"0xe9570c90b688339474e80090b0cdf0b2c85c25aa28cc6044d489dda9efc2c716\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)\\n\\npragma solidity ^0.8.20;\\n\\nimport {ContextUpgradeable} from \\\"../utils/ContextUpgradeable.sol\\\";\\nimport {Initializable} from \\\"../proxy/utils/Initializable.sol\\\";\\n\\n/**\\n * @dev Contract module which provides a basic access control mechanism, where\\n * there is an account (an owner) that can be granted exclusive access to\\n * specific functions.\\n *\\n * The initial owner is set to the address provided by the deployer. This can\\n * later be changed with {transferOwnership}.\\n *\\n * This module is used through inheritance. It will make available the modifier\\n * `onlyOwner`, which can be applied to your functions to restrict their use to\\n * the owner.\\n */\\nabstract contract OwnableUpgradeable is Initializable, ContextUpgradeable {\\n /// @custom:storage-location erc7201:openzeppelin.storage.Ownable\\n struct OwnableStorage {\\n address _owner;\\n }\\n\\n // keccak256(abi.encode(uint256(keccak256(\\\"openzeppelin.storage.Ownable\\\")) - 1)) & ~bytes32(uint256(0xff))\\n bytes32 private constant OwnableStorageLocation = 0x9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300;\\n\\n function _getOwnableStorage() private pure returns (OwnableStorage storage $) {\\n assembly {\\n $.slot := OwnableStorageLocation\\n }\\n }\\n\\n /**\\n * @dev The caller account is not authorized to perform an operation.\\n */\\n error OwnableUnauthorizedAccount(address account);\\n\\n /**\\n * @dev The owner is not a valid owner account. (eg. `address(0)`)\\n */\\n error OwnableInvalidOwner(address owner);\\n\\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\\n\\n /**\\n * @dev Initializes the contract setting the address provided by the deployer as the initial owner.\\n */\\n function __Ownable_init(address initialOwner) internal onlyInitializing {\\n __Ownable_init_unchained(initialOwner);\\n }\\n\\n function __Ownable_init_unchained(address initialOwner) internal onlyInitializing {\\n if (initialOwner == address(0)) {\\n revert OwnableInvalidOwner(address(0));\\n }\\n _transferOwnership(initialOwner);\\n }\\n\\n /**\\n * @dev Throws if called by any account other than the owner.\\n */\\n modifier onlyOwner() {\\n _checkOwner();\\n _;\\n }\\n\\n /**\\n * @dev Returns the address of the current owner.\\n */\\n function owner() public view virtual returns (address) {\\n OwnableStorage storage $ = _getOwnableStorage();\\n return $._owner;\\n }\\n\\n /**\\n * @dev Throws if the sender is not the owner.\\n */\\n function _checkOwner() internal view virtual {\\n if (owner() != _msgSender()) {\\n revert OwnableUnauthorizedAccount(_msgSender());\\n }\\n }\\n\\n /**\\n * @dev Leaves the contract without owner. It will not be possible to call\\n * `onlyOwner` functions. Can only be called by the current owner.\\n *\\n * NOTE: Renouncing ownership will leave the contract without an owner,\\n * thereby disabling any functionality that is only available to the owner.\\n */\\n function renounceOwnership() public virtual onlyOwner {\\n _transferOwnership(address(0));\\n }\\n\\n /**\\n * @dev Transfers ownership of the contract to a new account (`newOwner`).\\n * Can only be called by the current owner.\\n */\\n function transferOwnership(address newOwner) public virtual onlyOwner {\\n if (newOwner == address(0)) {\\n revert OwnableInvalidOwner(address(0));\\n }\\n _transferOwnership(newOwner);\\n }\\n\\n /**\\n * @dev Transfers ownership of the contract to a new account (`newOwner`).\\n * Internal function without access restriction.\\n */\\n function _transferOwnership(address newOwner) internal virtual {\\n OwnableStorage storage $ = _getOwnableStorage();\\n address oldOwner = $._owner;\\n $._owner = newOwner;\\n emit OwnershipTransferred(oldOwner, newOwner);\\n }\\n}\\n\",\"keccak256\":\"0xc163fcf9bb10138631a9ba5564df1fa25db9adff73bd9ee868a8ae1858fe093a\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.3.0) (proxy/utils/Initializable.sol)\\n\\npragma solidity ^0.8.20;\\n\\n/**\\n * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed\\n * behind a proxy. Since proxied contracts do not make use of a constructor, it's common to move constructor logic to an\\n * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer\\n * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect.\\n *\\n * The initialization functions use a version number. Once a version number is used, it is consumed and cannot be\\n * reused. This mechanism prevents re-execution of each \\\"step\\\" but allows the creation of new initialization steps in\\n * case an upgrade adds a module that needs to be initialized.\\n *\\n * For example:\\n *\\n * [.hljs-theme-light.nopadding]\\n * ```solidity\\n * contract MyToken is ERC20Upgradeable {\\n * function initialize() initializer public {\\n * __ERC20_init(\\\"MyToken\\\", \\\"MTK\\\");\\n * }\\n * }\\n *\\n * contract MyTokenV2 is MyToken, ERC20PermitUpgradeable {\\n * function initializeV2() reinitializer(2) public {\\n * __ERC20Permit_init(\\\"MyToken\\\");\\n * }\\n * }\\n * ```\\n *\\n * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as\\n * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}.\\n *\\n * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure\\n * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity.\\n *\\n * [CAUTION]\\n * ====\\n * Avoid leaving a contract uninitialized.\\n *\\n * An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation\\n * contract, which may impact the proxy. To prevent the implementation contract from being used, you should invoke\\n * the {_disableInitializers} function in the constructor to automatically lock it when it is deployed:\\n *\\n * [.hljs-theme-light.nopadding]\\n * ```\\n * /// @custom:oz-upgrades-unsafe-allow constructor\\n * constructor() {\\n * _disableInitializers();\\n * }\\n * ```\\n * ====\\n */\\nabstract contract Initializable {\\n /**\\n * @dev Storage of the initializable contract.\\n *\\n * It's implemented on a custom ERC-7201 namespace to reduce the risk of storage collisions\\n * when using with upgradeable contracts.\\n *\\n * @custom:storage-location erc7201:openzeppelin.storage.Initializable\\n */\\n struct InitializableStorage {\\n /**\\n * @dev Indicates that the contract has been initialized.\\n */\\n uint64 _initialized;\\n /**\\n * @dev Indicates that the contract is in the process of being initialized.\\n */\\n bool _initializing;\\n }\\n\\n // keccak256(abi.encode(uint256(keccak256(\\\"openzeppelin.storage.Initializable\\\")) - 1)) & ~bytes32(uint256(0xff))\\n bytes32 private constant INITIALIZABLE_STORAGE = 0xf0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00;\\n\\n /**\\n * @dev The contract is already initialized.\\n */\\n error InvalidInitialization();\\n\\n /**\\n * @dev The contract is not initializing.\\n */\\n error NotInitializing();\\n\\n /**\\n * @dev Triggered when the contract has been initialized or reinitialized.\\n */\\n event Initialized(uint64 version);\\n\\n /**\\n * @dev A modifier that defines a protected initializer function that can be invoked at most once. In its scope,\\n * `onlyInitializing` functions can be used to initialize parent contracts.\\n *\\n * Similar to `reinitializer(1)`, except that in the context of a constructor an `initializer` may be invoked any\\n * number of times. This behavior in the constructor can be useful during testing and is not expected to be used in\\n * production.\\n *\\n * Emits an {Initialized} event.\\n */\\n modifier initializer() {\\n // solhint-disable-next-line var-name-mixedcase\\n InitializableStorage storage $ = _getInitializableStorage();\\n\\n // Cache values to avoid duplicated sloads\\n bool isTopLevelCall = !$._initializing;\\n uint64 initialized = $._initialized;\\n\\n // Allowed calls:\\n // - initialSetup: the contract is not in the initializing state and no previous version was\\n // initialized\\n // - construction: the contract is initialized at version 1 (no reinitialization) and the\\n // current contract is just being deployed\\n bool initialSetup = initialized == 0 && isTopLevelCall;\\n bool construction = initialized == 1 && address(this).code.length == 0;\\n\\n if (!initialSetup && !construction) {\\n revert InvalidInitialization();\\n }\\n $._initialized = 1;\\n if (isTopLevelCall) {\\n $._initializing = true;\\n }\\n _;\\n if (isTopLevelCall) {\\n $._initializing = false;\\n emit Initialized(1);\\n }\\n }\\n\\n /**\\n * @dev A modifier that defines a protected reinitializer function that can be invoked at most once, and only if the\\n * contract hasn't been initialized to a greater version before. In its scope, `onlyInitializing` functions can be\\n * used to initialize parent contracts.\\n *\\n * A reinitializer may be used after the original initialization step. This is essential to configure modules that\\n * are added through upgrades and that require initialization.\\n *\\n * When `version` is 1, this modifier is similar to `initializer`, except that functions marked with `reinitializer`\\n * cannot be nested. If one is invoked in the context of another, execution will revert.\\n *\\n * Note that versions can jump in increments greater than 1; this implies that if multiple reinitializers coexist in\\n * a contract, executing them in the right order is up to the developer or operator.\\n *\\n * WARNING: Setting the version to 2**64 - 1 will prevent any future reinitialization.\\n *\\n * Emits an {Initialized} event.\\n */\\n modifier reinitializer(uint64 version) {\\n // solhint-disable-next-line var-name-mixedcase\\n InitializableStorage storage $ = _getInitializableStorage();\\n\\n if ($._initializing || $._initialized >= version) {\\n revert InvalidInitialization();\\n }\\n $._initialized = version;\\n $._initializing = true;\\n _;\\n $._initializing = false;\\n emit Initialized(version);\\n }\\n\\n /**\\n * @dev Modifier to protect an initialization function so that it can only be invoked by functions with the\\n * {initializer} and {reinitializer} modifiers, directly or indirectly.\\n */\\n modifier onlyInitializing() {\\n _checkInitializing();\\n _;\\n }\\n\\n /**\\n * @dev Reverts if the contract is not in an initializing state. See {onlyInitializing}.\\n */\\n function _checkInitializing() internal view virtual {\\n if (!_isInitializing()) {\\n revert NotInitializing();\\n }\\n }\\n\\n /**\\n * @dev Locks the contract, preventing any future reinitialization. This cannot be part of an initializer call.\\n * Calling this in the constructor of a contract will prevent that contract from being initialized or reinitialized\\n * to any version. It is recommended to use this to lock implementation contracts that are designed to be called\\n * through proxies.\\n *\\n * Emits an {Initialized} event the first time it is successfully executed.\\n */\\n function _disableInitializers() internal virtual {\\n // solhint-disable-next-line var-name-mixedcase\\n InitializableStorage storage $ = _getInitializableStorage();\\n\\n if ($._initializing) {\\n revert InvalidInitialization();\\n }\\n if ($._initialized != type(uint64).max) {\\n $._initialized = type(uint64).max;\\n emit Initialized(type(uint64).max);\\n }\\n }\\n\\n /**\\n * @dev Returns the highest version that has been initialized. See {reinitializer}.\\n */\\n function _getInitializedVersion() internal view returns (uint64) {\\n return _getInitializableStorage()._initialized;\\n }\\n\\n /**\\n * @dev Returns `true` if the contract is currently initializing. See {onlyInitializing}.\\n */\\n function _isInitializing() internal view returns (bool) {\\n return _getInitializableStorage()._initializing;\\n }\\n\\n /**\\n * @dev Pointer to storage slot. Allows integrators to override it with a custom storage location.\\n *\\n * NOTE: Consider following the ERC-7201 formula to derive storage locations.\\n */\\n function _initializableStorageSlot() internal pure virtual returns (bytes32) {\\n return INITIALIZABLE_STORAGE;\\n }\\n\\n /**\\n * @dev Returns a pointer to the storage namespace.\\n */\\n // solhint-disable-next-line var-name-mixedcase\\n function _getInitializableStorage() private pure returns (InitializableStorage storage $) {\\n bytes32 slot = _initializableStorageSlot();\\n assembly {\\n $.slot := slot\\n }\\n }\\n}\\n\",\"keccak256\":\"0xdb4d24ee2c087c391d587cd17adfe5b3f9d93b3110b1388c2ab6c7c0ad1dcd05\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.3.0) (proxy/utils/UUPSUpgradeable.sol)\\n\\npragma solidity ^0.8.22;\\n\\nimport {IERC1822Proxiable} from \\\"@openzeppelin/contracts/interfaces/draft-IERC1822.sol\\\";\\nimport {ERC1967Utils} from \\\"@openzeppelin/contracts/proxy/ERC1967/ERC1967Utils.sol\\\";\\nimport {Initializable} from \\\"./Initializable.sol\\\";\\n\\n/**\\n * @dev An upgradeability mechanism designed for UUPS proxies. The functions included here can perform an upgrade of an\\n * {ERC1967Proxy}, when this contract is set as the implementation behind such a proxy.\\n *\\n * A security mechanism ensures that an upgrade does not turn off upgradeability accidentally, although this risk is\\n * reinstated if the upgrade retains upgradeability but removes the security mechanism, e.g. by replacing\\n * `UUPSUpgradeable` with a custom implementation of upgrades.\\n *\\n * The {_authorizeUpgrade} function must be overridden to include access restriction to the upgrade mechanism.\\n */\\nabstract contract UUPSUpgradeable is Initializable, IERC1822Proxiable {\\n /// @custom:oz-upgrades-unsafe-allow state-variable-immutable\\n address private immutable __self = address(this);\\n\\n /**\\n * @dev The version of the upgrade interface of the contract. If this getter is missing, both `upgradeTo(address)`\\n * and `upgradeToAndCall(address,bytes)` are present, and `upgradeTo` must be used if no function should be called,\\n * while `upgradeToAndCall` will invoke the `receive` function if the second argument is the empty byte string.\\n * If the getter returns `\\\"5.0.0\\\"`, only `upgradeToAndCall(address,bytes)` is present, and the second argument must\\n * be the empty byte string if no function should be called, making it impossible to invoke the `receive` function\\n * during an upgrade.\\n */\\n string public constant UPGRADE_INTERFACE_VERSION = \\\"5.0.0\\\";\\n\\n /**\\n * @dev The call is from an unauthorized context.\\n */\\n error UUPSUnauthorizedCallContext();\\n\\n /**\\n * @dev The storage `slot` is unsupported as a UUID.\\n */\\n error UUPSUnsupportedProxiableUUID(bytes32 slot);\\n\\n /**\\n * @dev Check that the execution is being performed through a delegatecall call and that the execution context is\\n * a proxy contract with an implementation (as defined in ERC-1967) pointing to self. This should only be the case\\n * for UUPS and transparent proxies that are using the current contract as their implementation. Execution of a\\n * function through ERC-1167 minimal proxies (clones) would not normally pass this test, but is not guaranteed to\\n * fail.\\n */\\n modifier onlyProxy() {\\n _checkProxy();\\n _;\\n }\\n\\n /**\\n * @dev Check that the execution is not being performed through a delegate call. This allows a function to be\\n * callable on the implementing contract but not through proxies.\\n */\\n modifier notDelegated() {\\n _checkNotDelegated();\\n _;\\n }\\n\\n function __UUPSUpgradeable_init() internal onlyInitializing {\\n }\\n\\n function __UUPSUpgradeable_init_unchained() internal onlyInitializing {\\n }\\n /**\\n * @dev Implementation of the ERC-1822 {proxiableUUID} function. This returns the storage slot used by the\\n * implementation. It is used to validate the implementation's compatibility when performing an upgrade.\\n *\\n * IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks\\n * bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this\\n * function revert if invoked through a proxy. This is guaranteed by the `notDelegated` modifier.\\n */\\n function proxiableUUID() external view virtual notDelegated returns (bytes32) {\\n return ERC1967Utils.IMPLEMENTATION_SLOT;\\n }\\n\\n /**\\n * @dev Upgrade the implementation of the proxy to `newImplementation`, and subsequently execute the function call\\n * encoded in `data`.\\n *\\n * Calls {_authorizeUpgrade}.\\n *\\n * Emits an {Upgraded} event.\\n *\\n * @custom:oz-upgrades-unsafe-allow-reachable delegatecall\\n */\\n function upgradeToAndCall(address newImplementation, bytes memory data) public payable virtual onlyProxy {\\n _authorizeUpgrade(newImplementation);\\n _upgradeToAndCallUUPS(newImplementation, data);\\n }\\n\\n /**\\n * @dev Reverts if the execution is not performed via delegatecall or the execution\\n * context is not of a proxy with an ERC-1967 compliant implementation pointing to self.\\n */\\n function _checkProxy() internal view virtual {\\n if (\\n address(this) == __self || // Must be called through delegatecall\\n ERC1967Utils.getImplementation() != __self // Must be called through an active proxy\\n ) {\\n revert UUPSUnauthorizedCallContext();\\n }\\n }\\n\\n /**\\n * @dev Reverts if the execution is performed via delegatecall.\\n * See {notDelegated}.\\n */\\n function _checkNotDelegated() internal view virtual {\\n if (address(this) != __self) {\\n // Must not be called through delegatecall\\n revert UUPSUnauthorizedCallContext();\\n }\\n }\\n\\n /**\\n * @dev Function that should revert when `msg.sender` is not authorized to upgrade the contract. Called by\\n * {upgradeToAndCall}.\\n *\\n * Normally, this function will use an xref:access.adoc[access control] modifier such as {Ownable-onlyOwner}.\\n *\\n * ```solidity\\n * function _authorizeUpgrade(address) internal onlyOwner {}\\n * ```\\n */\\n function _authorizeUpgrade(address newImplementation) internal virtual;\\n\\n /**\\n * @dev Performs an implementation upgrade with a security check for UUPS proxies, and additional setup call.\\n *\\n * As a security check, {proxiableUUID} is invoked in the new implementation, and the return value\\n * is expected to be the implementation slot in ERC-1967.\\n *\\n * Emits an {IERC1967-Upgraded} event.\\n */\\n function _upgradeToAndCallUUPS(address newImplementation, bytes memory data) private {\\n try IERC1822Proxiable(newImplementation).proxiableUUID() returns (bytes32 slot) {\\n if (slot != ERC1967Utils.IMPLEMENTATION_SLOT) {\\n revert UUPSUnsupportedProxiableUUID(slot);\\n }\\n ERC1967Utils.upgradeToAndCall(newImplementation, data);\\n } catch {\\n // The implementation is not UUPS\\n revert ERC1967Utils.ERC1967InvalidImplementation(newImplementation);\\n }\\n }\\n}\\n\",\"keccak256\":\"0x574a7451e42724f7de29e2855c392a8a5020acd695169466a18459467d719d63\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)\\n\\npragma solidity ^0.8.20;\\nimport {Initializable} from \\\"../proxy/utils/Initializable.sol\\\";\\n\\n/**\\n * @dev Provides information about the current execution context, including the\\n * sender of the transaction and its data. While these are generally available\\n * via msg.sender and msg.data, they should not be accessed in such a direct\\n * manner, since when dealing with meta-transactions the account sending and\\n * paying for execution may not be the actual sender (as far as an application\\n * is concerned).\\n *\\n * This contract is only required for intermediate, library-like contracts.\\n */\\nabstract contract ContextUpgradeable is Initializable {\\n function __Context_init() internal onlyInitializing {\\n }\\n\\n function __Context_init_unchained() internal onlyInitializing {\\n }\\n function _msgSender() internal view virtual returns (address) {\\n return msg.sender;\\n }\\n\\n function _msgData() internal view virtual returns (bytes calldata) {\\n return msg.data;\\n }\\n\\n function _contextSuffixLength() internal view virtual returns (uint256) {\\n return 0;\\n }\\n}\\n\",\"keccak256\":\"0xdbef5f0c787055227243a7318ef74c8a5a1108ca3a07f2b3a00ef67769e1e397\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/utils/cryptography/EIP712Upgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/cryptography/EIP712.sol)\\n\\npragma solidity ^0.8.20;\\n\\nimport {MessageHashUtils} from \\\"@openzeppelin/contracts/utils/cryptography/MessageHashUtils.sol\\\";\\nimport {IERC5267} from \\\"@openzeppelin/contracts/interfaces/IERC5267.sol\\\";\\nimport {Initializable} from \\\"../../proxy/utils/Initializable.sol\\\";\\n\\n/**\\n * @dev https://eips.ethereum.org/EIPS/eip-712[EIP-712] is a standard for hashing and signing of typed structured data.\\n *\\n * The encoding scheme specified in the EIP requires a domain separator and a hash of the typed structured data, whose\\n * encoding is very generic and therefore its implementation in Solidity is not feasible, thus this contract\\n * does not implement the encoding itself. Protocols need to implement the type-specific encoding they need in order to\\n * produce the hash of their typed data using a combination of `abi.encode` and `keccak256`.\\n *\\n * This contract implements the EIP-712 domain separator ({_domainSeparatorV4}) that is used as part of the encoding\\n * scheme, and the final step of the encoding to obtain the message digest that is then signed via ECDSA\\n * ({_hashTypedDataV4}).\\n *\\n * The implementation of the domain separator was designed to be as efficient as possible while still properly updating\\n * the chain id to protect against replay attacks on an eventual fork of the chain.\\n *\\n * NOTE: This contract implements the version of the encoding known as \\\"v4\\\", as implemented by the JSON RPC method\\n * https://docs.metamask.io/guide/signing-data.html[`eth_signTypedDataV4` in MetaMask].\\n *\\n * NOTE: The upgradeable version of this contract does not use an immutable cache and recomputes the domain separator\\n * each time {_domainSeparatorV4} is called. That is cheaper than accessing a cached version in cold storage.\\n */\\nabstract contract EIP712Upgradeable is Initializable, IERC5267 {\\n bytes32 private constant TYPE_HASH =\\n keccak256(\\\"EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)\\\");\\n\\n /// @custom:storage-location erc7201:openzeppelin.storage.EIP712\\n struct EIP712Storage {\\n /// @custom:oz-renamed-from _HASHED_NAME\\n bytes32 _hashedName;\\n /// @custom:oz-renamed-from _HASHED_VERSION\\n bytes32 _hashedVersion;\\n\\n string _name;\\n string _version;\\n }\\n\\n // keccak256(abi.encode(uint256(keccak256(\\\"openzeppelin.storage.EIP712\\\")) - 1)) & ~bytes32(uint256(0xff))\\n bytes32 private constant EIP712StorageLocation = 0xa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d100;\\n\\n function _getEIP712Storage() private pure returns (EIP712Storage storage $) {\\n assembly {\\n $.slot := EIP712StorageLocation\\n }\\n }\\n\\n /**\\n * @dev Initializes the domain separator and parameter caches.\\n *\\n * The meaning of `name` and `version` is specified in\\n * https://eips.ethereum.org/EIPS/eip-712#definition-of-domainseparator[EIP-712]:\\n *\\n * - `name`: the user readable name of the signing domain, i.e. the name of the DApp or the protocol.\\n * - `version`: the current major version of the signing domain.\\n *\\n * NOTE: These parameters cannot be changed except through a xref:learn::upgrading-smart-contracts.adoc[smart\\n * contract upgrade].\\n */\\n function __EIP712_init(string memory name, string memory version) internal onlyInitializing {\\n __EIP712_init_unchained(name, version);\\n }\\n\\n function __EIP712_init_unchained(string memory name, string memory version) internal onlyInitializing {\\n EIP712Storage storage $ = _getEIP712Storage();\\n $._name = name;\\n $._version = version;\\n\\n // Reset prior values in storage if upgrading\\n $._hashedName = 0;\\n $._hashedVersion = 0;\\n }\\n\\n /**\\n * @dev Returns the domain separator for the current chain.\\n */\\n function _domainSeparatorV4() internal view returns (bytes32) {\\n return _buildDomainSeparator();\\n }\\n\\n function _buildDomainSeparator() private view returns (bytes32) {\\n return keccak256(abi.encode(TYPE_HASH, _EIP712NameHash(), _EIP712VersionHash(), block.chainid, address(this)));\\n }\\n\\n /**\\n * @dev Given an already https://eips.ethereum.org/EIPS/eip-712#definition-of-hashstruct[hashed struct], this\\n * function returns the hash of the fully encoded EIP712 message for this domain.\\n *\\n * This hash can be used together with {ECDSA-recover} to obtain the signer of a message. For example:\\n *\\n * ```solidity\\n * bytes32 digest = _hashTypedDataV4(keccak256(abi.encode(\\n * keccak256(\\\"Mail(address to,string contents)\\\"),\\n * mailTo,\\n * keccak256(bytes(mailContents))\\n * )));\\n * address signer = ECDSA.recover(digest, signature);\\n * ```\\n */\\n function _hashTypedDataV4(bytes32 structHash) internal view virtual returns (bytes32) {\\n return MessageHashUtils.toTypedDataHash(_domainSeparatorV4(), structHash);\\n }\\n\\n /// @inheritdoc IERC5267\\n function eip712Domain()\\n public\\n view\\n virtual\\n returns (\\n bytes1 fields,\\n string memory name,\\n string memory version,\\n uint256 chainId,\\n address verifyingContract,\\n bytes32 salt,\\n uint256[] memory extensions\\n )\\n {\\n EIP712Storage storage $ = _getEIP712Storage();\\n // If the hashed name and version in storage are non-zero, the contract hasn't been properly initialized\\n // and the EIP712 domain is not reliable, as it will be missing name and version.\\n require($._hashedName == 0 && $._hashedVersion == 0, \\\"EIP712: Uninitialized\\\");\\n\\n return (\\n hex\\\"0f\\\", // 01111\\n _EIP712Name(),\\n _EIP712Version(),\\n block.chainid,\\n address(this),\\n bytes32(0),\\n new uint256[](0)\\n );\\n }\\n\\n /**\\n * @dev The name parameter for the EIP712 domain.\\n *\\n * NOTE: This function reads from storage by default, but can be redefined to return a constant value if gas costs\\n * are a concern.\\n */\\n function _EIP712Name() internal view virtual returns (string memory) {\\n EIP712Storage storage $ = _getEIP712Storage();\\n return $._name;\\n }\\n\\n /**\\n * @dev The version parameter for the EIP712 domain.\\n *\\n * NOTE: This function reads from storage by default, but can be redefined to return a constant value if gas costs\\n * are a concern.\\n */\\n function _EIP712Version() internal view virtual returns (string memory) {\\n EIP712Storage storage $ = _getEIP712Storage();\\n return $._version;\\n }\\n\\n /**\\n * @dev The hash of the name parameter for the EIP712 domain.\\n *\\n * NOTE: In previous versions this function was virtual. In this version you should override `_EIP712Name` instead.\\n */\\n function _EIP712NameHash() internal view returns (bytes32) {\\n EIP712Storage storage $ = _getEIP712Storage();\\n string memory name = _EIP712Name();\\n if (bytes(name).length > 0) {\\n return keccak256(bytes(name));\\n } else {\\n // If the name is empty, the contract may have been upgraded without initializing the new storage.\\n // We return the name hash in storage if non-zero, otherwise we assume the name is empty by design.\\n bytes32 hashedName = $._hashedName;\\n if (hashedName != 0) {\\n return hashedName;\\n } else {\\n return keccak256(\\\"\\\");\\n }\\n }\\n }\\n\\n /**\\n * @dev The hash of the version parameter for the EIP712 domain.\\n *\\n * NOTE: In previous versions this function was virtual. In this version you should override `_EIP712Version` instead.\\n */\\n function _EIP712VersionHash() internal view returns (bytes32) {\\n EIP712Storage storage $ = _getEIP712Storage();\\n string memory version = _EIP712Version();\\n if (bytes(version).length > 0) {\\n return keccak256(bytes(version));\\n } else {\\n // If the version is empty, the contract may have been upgraded without initializing the new storage.\\n // We return the version hash in storage if non-zero, otherwise we assume the version is empty by design.\\n bytes32 hashedVersion = $._hashedVersion;\\n if (hashedVersion != 0) {\\n return hashedVersion;\\n } else {\\n return keccak256(\\\"\\\");\\n }\\n }\\n }\\n}\\n\",\"keccak256\":\"0x89374b2a634f0a9c08f5891b6ecce0179bc2e0577819c787ed3268ca428c2459\",\"license\":\"MIT\"},\"@openzeppelin/contracts/interfaces/IERC1967.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC1967.sol)\\n\\npragma solidity >=0.4.11;\\n\\n/**\\n * @dev ERC-1967: Proxy Storage Slots. This interface contains the events defined in the ERC.\\n */\\ninterface IERC1967 {\\n /**\\n * @dev Emitted when the implementation is upgraded.\\n */\\n event Upgraded(address indexed implementation);\\n\\n /**\\n * @dev Emitted when the admin account has changed.\\n */\\n event AdminChanged(address previousAdmin, address newAdmin);\\n\\n /**\\n * @dev Emitted when the beacon is changed.\\n */\\n event BeaconUpgraded(address indexed beacon);\\n}\\n\",\"keccak256\":\"0xbf2aefe54b76d7f7bcd4f6da1080b7b1662611937d870b880db584d09cea56b5\",\"license\":\"MIT\"},\"@openzeppelin/contracts/interfaces/IERC5267.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC5267.sol)\\n\\npragma solidity >=0.4.16;\\n\\ninterface IERC5267 {\\n /**\\n * @dev MAY be emitted to signal that the domain could have changed.\\n */\\n event EIP712DomainChanged();\\n\\n /**\\n * @dev returns the fields and values that describe the domain separator used by this contract for EIP-712\\n * signature.\\n */\\n function eip712Domain()\\n external\\n view\\n returns (\\n bytes1 fields,\\n string memory name,\\n string memory version,\\n uint256 chainId,\\n address verifyingContract,\\n bytes32 salt,\\n uint256[] memory extensions\\n );\\n}\\n\",\"keccak256\":\"0xfb223a85dd0b2175cfbbaa325a744e2cd74ecd17c3df2b77b0722f991d2725ee\",\"license\":\"MIT\"},\"@openzeppelin/contracts/interfaces/draft-IERC1822.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/draft-IERC1822.sol)\\n\\npragma solidity >=0.4.16;\\n\\n/**\\n * @dev ERC-1822: Universal Upgradeable Proxy Standard (UUPS) documents a method for upgradeability through a simplified\\n * proxy whose upgrades are fully controlled by the current implementation.\\n */\\ninterface IERC1822Proxiable {\\n /**\\n * @dev Returns the storage slot that the proxiable contract assumes is being used to store the implementation\\n * address.\\n *\\n * IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks\\n * bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this\\n * function revert if invoked through a proxy.\\n */\\n function proxiableUUID() external view returns (bytes32);\\n}\\n\",\"keccak256\":\"0x82f757819bf2429a0d4db141b99a4bbe5039e4ef86dfb94e2e6d40577ed5b28b\",\"license\":\"MIT\"},\"@openzeppelin/contracts/proxy/ERC1967/ERC1967Utils.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.4.0) (proxy/ERC1967/ERC1967Utils.sol)\\n\\npragma solidity ^0.8.21;\\n\\nimport {IBeacon} from \\\"../beacon/IBeacon.sol\\\";\\nimport {IERC1967} from \\\"../../interfaces/IERC1967.sol\\\";\\nimport {Address} from \\\"../../utils/Address.sol\\\";\\nimport {StorageSlot} from \\\"../../utils/StorageSlot.sol\\\";\\n\\n/**\\n * @dev This library provides getters and event emitting update functions for\\n * https://eips.ethereum.org/EIPS/eip-1967[ERC-1967] slots.\\n */\\nlibrary ERC1967Utils {\\n /**\\n * @dev Storage slot with the address of the current implementation.\\n * This is the keccak-256 hash of \\\"eip1967.proxy.implementation\\\" subtracted by 1.\\n */\\n // solhint-disable-next-line private-vars-leading-underscore\\n bytes32 internal constant IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;\\n\\n /**\\n * @dev The `implementation` of the proxy is invalid.\\n */\\n error ERC1967InvalidImplementation(address implementation);\\n\\n /**\\n * @dev The `admin` of the proxy is invalid.\\n */\\n error ERC1967InvalidAdmin(address admin);\\n\\n /**\\n * @dev The `beacon` of the proxy is invalid.\\n */\\n error ERC1967InvalidBeacon(address beacon);\\n\\n /**\\n * @dev An upgrade function sees `msg.value > 0` that may be lost.\\n */\\n error ERC1967NonPayable();\\n\\n /**\\n * @dev Returns the current implementation address.\\n */\\n function getImplementation() internal view returns (address) {\\n return StorageSlot.getAddressSlot(IMPLEMENTATION_SLOT).value;\\n }\\n\\n /**\\n * @dev Stores a new address in the ERC-1967 implementation slot.\\n */\\n function _setImplementation(address newImplementation) private {\\n if (newImplementation.code.length == 0) {\\n revert ERC1967InvalidImplementation(newImplementation);\\n }\\n StorageSlot.getAddressSlot(IMPLEMENTATION_SLOT).value = newImplementation;\\n }\\n\\n /**\\n * @dev Performs implementation upgrade with additional setup call if data is nonempty.\\n * This function is payable only if the setup call is performed, otherwise `msg.value` is rejected\\n * to avoid stuck value in the contract.\\n *\\n * Emits an {IERC1967-Upgraded} event.\\n */\\n function upgradeToAndCall(address newImplementation, bytes memory data) internal {\\n _setImplementation(newImplementation);\\n emit IERC1967.Upgraded(newImplementation);\\n\\n if (data.length > 0) {\\n Address.functionDelegateCall(newImplementation, data);\\n } else {\\n _checkNonPayable();\\n }\\n }\\n\\n /**\\n * @dev Storage slot with the admin of the contract.\\n * This is the keccak-256 hash of \\\"eip1967.proxy.admin\\\" subtracted by 1.\\n */\\n // solhint-disable-next-line private-vars-leading-underscore\\n bytes32 internal constant ADMIN_SLOT = 0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103;\\n\\n /**\\n * @dev Returns the current admin.\\n *\\n * TIP: To get this value clients can read directly from the storage slot shown below (specified by ERC-1967) using\\n * the https://eth.wiki/json-rpc/API#eth_getstorageat[`eth_getStorageAt`] RPC call.\\n * `0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103`\\n */\\n function getAdmin() internal view returns (address) {\\n return StorageSlot.getAddressSlot(ADMIN_SLOT).value;\\n }\\n\\n /**\\n * @dev Stores a new address in the ERC-1967 admin slot.\\n */\\n function _setAdmin(address newAdmin) private {\\n if (newAdmin == address(0)) {\\n revert ERC1967InvalidAdmin(address(0));\\n }\\n StorageSlot.getAddressSlot(ADMIN_SLOT).value = newAdmin;\\n }\\n\\n /**\\n * @dev Changes the admin of the proxy.\\n *\\n * Emits an {IERC1967-AdminChanged} event.\\n */\\n function changeAdmin(address newAdmin) internal {\\n emit IERC1967.AdminChanged(getAdmin(), newAdmin);\\n _setAdmin(newAdmin);\\n }\\n\\n /**\\n * @dev The storage slot of the UpgradeableBeacon contract which defines the implementation for this proxy.\\n * This is the keccak-256 hash of \\\"eip1967.proxy.beacon\\\" subtracted by 1.\\n */\\n // solhint-disable-next-line private-vars-leading-underscore\\n bytes32 internal constant BEACON_SLOT = 0xa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b35133d50;\\n\\n /**\\n * @dev Returns the current beacon.\\n */\\n function getBeacon() internal view returns (address) {\\n return StorageSlot.getAddressSlot(BEACON_SLOT).value;\\n }\\n\\n /**\\n * @dev Stores a new beacon in the ERC-1967 beacon slot.\\n */\\n function _setBeacon(address newBeacon) private {\\n if (newBeacon.code.length == 0) {\\n revert ERC1967InvalidBeacon(newBeacon);\\n }\\n\\n StorageSlot.getAddressSlot(BEACON_SLOT).value = newBeacon;\\n\\n address beaconImplementation = IBeacon(newBeacon).implementation();\\n if (beaconImplementation.code.length == 0) {\\n revert ERC1967InvalidImplementation(beaconImplementation);\\n }\\n }\\n\\n /**\\n * @dev Change the beacon and trigger a setup call if data is nonempty.\\n * This function is payable only if the setup call is performed, otherwise `msg.value` is rejected\\n * to avoid stuck value in the contract.\\n *\\n * Emits an {IERC1967-BeaconUpgraded} event.\\n *\\n * CAUTION: Invoking this function has no effect on an instance of {BeaconProxy} since v5, since\\n * it uses an immutable beacon without looking at the value of the ERC-1967 beacon slot for\\n * efficiency.\\n */\\n function upgradeBeaconToAndCall(address newBeacon, bytes memory data) internal {\\n _setBeacon(newBeacon);\\n emit IERC1967.BeaconUpgraded(newBeacon);\\n\\n if (data.length > 0) {\\n Address.functionDelegateCall(IBeacon(newBeacon).implementation(), data);\\n } else {\\n _checkNonPayable();\\n }\\n }\\n\\n /**\\n * @dev Reverts if `msg.value` is not zero. It can be used to avoid `msg.value` stuck in the contract\\n * if an upgrade doesn't perform an initialization call.\\n */\\n function _checkNonPayable() private {\\n if (msg.value > 0) {\\n revert ERC1967NonPayable();\\n }\\n }\\n}\\n\",\"keccak256\":\"0xa1ad192cd45317c788618bef5cb1fb3ca4ce8b230f6433ac68cc1d850fb81618\",\"license\":\"MIT\"},\"@openzeppelin/contracts/proxy/beacon/IBeacon.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.4.0) (proxy/beacon/IBeacon.sol)\\n\\npragma solidity >=0.4.16;\\n\\n/**\\n * @dev This is the interface that {BeaconProxy} expects of its beacon.\\n */\\ninterface IBeacon {\\n /**\\n * @dev Must return an address that can be used as a delegate call target.\\n *\\n * {UpgradeableBeacon} will check that this address is a contract.\\n */\\n function implementation() external view returns (address);\\n}\\n\",\"keccak256\":\"0x20462ddb2665e9521372c76b001d0ce196e59dbbd989de9af5576cad0bd5628b\",\"license\":\"MIT\"},\"@openzeppelin/contracts/utils/Address.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/Address.sol)\\n\\npragma solidity ^0.8.20;\\n\\nimport {Errors} from \\\"./Errors.sol\\\";\\n\\n/**\\n * @dev Collection of functions related to the address type\\n */\\nlibrary Address {\\n /**\\n * @dev There's no code at `target` (it is not a contract).\\n */\\n error AddressEmptyCode(address target);\\n\\n /**\\n * @dev Replacement for Solidity's `transfer`: sends `amount` wei to\\n * `recipient`, forwarding all available gas and reverting on errors.\\n *\\n * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost\\n * of certain opcodes, possibly making contracts go over the 2300 gas limit\\n * imposed by `transfer`, making them unable to receive funds via\\n * `transfer`. {sendValue} removes this limitation.\\n *\\n * https://consensys.net/diligence/blog/2019/09/stop-using-soliditys-transfer-now/[Learn more].\\n *\\n * IMPORTANT: because control is transferred to `recipient`, care must be\\n * taken to not create reentrancy vulnerabilities. Consider using\\n * {ReentrancyGuard} or the\\n * https://solidity.readthedocs.io/en/v0.8.20/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].\\n */\\n function sendValue(address payable recipient, uint256 amount) internal {\\n if (address(this).balance < amount) {\\n revert Errors.InsufficientBalance(address(this).balance, amount);\\n }\\n\\n (bool success, bytes memory returndata) = recipient.call{value: amount}(\\\"\\\");\\n if (!success) {\\n _revert(returndata);\\n }\\n }\\n\\n /**\\n * @dev Performs a Solidity function call using a low level `call`. A\\n * plain `call` is an unsafe replacement for a function call: use this\\n * function instead.\\n *\\n * If `target` reverts with a revert reason or custom error, it is bubbled\\n * up by this function (like regular Solidity function calls). However, if\\n * the call reverted with no returned reason, this function reverts with a\\n * {Errors.FailedCall} error.\\n *\\n * Returns the raw returned data. To convert to the expected return value,\\n * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].\\n *\\n * Requirements:\\n *\\n * - `target` must be a contract.\\n * - calling `target` with `data` must not revert.\\n */\\n function functionCall(address target, bytes memory data) internal returns (bytes memory) {\\n return functionCallWithValue(target, data, 0);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but also transferring `value` wei to `target`.\\n *\\n * Requirements:\\n *\\n * - the calling contract must have an ETH balance of at least `value`.\\n * - the called Solidity function must be `payable`.\\n */\\n function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {\\n if (address(this).balance < value) {\\n revert Errors.InsufficientBalance(address(this).balance, value);\\n }\\n (bool success, bytes memory returndata) = target.call{value: value}(data);\\n return verifyCallResultFromTarget(target, success, returndata);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but performing a static call.\\n */\\n function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {\\n (bool success, bytes memory returndata) = target.staticcall(data);\\n return verifyCallResultFromTarget(target, success, returndata);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but performing a delegate call.\\n */\\n function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {\\n (bool success, bytes memory returndata) = target.delegatecall(data);\\n return verifyCallResultFromTarget(target, success, returndata);\\n }\\n\\n /**\\n * @dev Tool to verify that a low level call to smart-contract was successful, and reverts if the target\\n * was not a contract or bubbling up the revert reason (falling back to {Errors.FailedCall}) in case\\n * of an unsuccessful call.\\n */\\n function verifyCallResultFromTarget(\\n address target,\\n bool success,\\n bytes memory returndata\\n ) internal view returns (bytes memory) {\\n if (!success) {\\n _revert(returndata);\\n } else {\\n // only check if target is a contract if the call was successful and the return data is empty\\n // otherwise we already know that it was a contract\\n if (returndata.length == 0 && target.code.length == 0) {\\n revert AddressEmptyCode(target);\\n }\\n return returndata;\\n }\\n }\\n\\n /**\\n * @dev Tool to verify that a low level call was successful, and reverts if it wasn't, either by bubbling the\\n * revert reason or with a default {Errors.FailedCall} error.\\n */\\n function verifyCallResult(bool success, bytes memory returndata) internal pure returns (bytes memory) {\\n if (!success) {\\n _revert(returndata);\\n } else {\\n return returndata;\\n }\\n }\\n\\n /**\\n * @dev Reverts with returndata if present. Otherwise reverts with {Errors.FailedCall}.\\n */\\n function _revert(bytes memory returndata) private pure {\\n // Look for revert reason and bubble it up if present\\n if (returndata.length > 0) {\\n // The easiest way to bubble the revert reason is using memory via assembly\\n assembly (\\\"memory-safe\\\") {\\n revert(add(returndata, 0x20), mload(returndata))\\n }\\n } else {\\n revert Errors.FailedCall();\\n }\\n }\\n}\\n\",\"keccak256\":\"0x6d0ae6e206645341fd122d278c2cb643dea260c190531f2f3f6a0426e77b00c0\",\"license\":\"MIT\"},\"@openzeppelin/contracts/utils/Errors.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.1.0) (utils/Errors.sol)\\n\\npragma solidity ^0.8.20;\\n\\n/**\\n * @dev Collection of common custom errors used in multiple contracts\\n *\\n * IMPORTANT: Backwards compatibility is not guaranteed in future versions of the library.\\n * It is recommended to avoid relying on the error API for critical functionality.\\n *\\n * _Available since v5.1._\\n */\\nlibrary Errors {\\n /**\\n * @dev The ETH balance of the account is not enough to perform the operation.\\n */\\n error InsufficientBalance(uint256 balance, uint256 needed);\\n\\n /**\\n * @dev A call to an address target failed. The target may have reverted.\\n */\\n error FailedCall();\\n\\n /**\\n * @dev The deployment failed.\\n */\\n error FailedDeployment();\\n\\n /**\\n * @dev A necessary precompile is missing.\\n */\\n error MissingPrecompile(address);\\n}\\n\",\"keccak256\":\"0x6afa713bfd42cf0f7656efa91201007ac465e42049d7de1d50753a373648c123\",\"license\":\"MIT\"},\"@openzeppelin/contracts/utils/Panic.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.1.0) (utils/Panic.sol)\\n\\npragma solidity ^0.8.20;\\n\\n/**\\n * @dev Helper library for emitting standardized panic codes.\\n *\\n * ```solidity\\n * contract Example {\\n * using Panic for uint256;\\n *\\n * // Use any of the declared internal constants\\n * function foo() { Panic.GENERIC.panic(); }\\n *\\n * // Alternatively\\n * function foo() { Panic.panic(Panic.GENERIC); }\\n * }\\n * ```\\n *\\n * Follows the list from https://github.com/ethereum/solidity/blob/v0.8.24/libsolutil/ErrorCodes.h[libsolutil].\\n *\\n * _Available since v5.1._\\n */\\n// slither-disable-next-line unused-state\\nlibrary Panic {\\n /// @dev generic / unspecified error\\n uint256 internal constant GENERIC = 0x00;\\n /// @dev used by the assert() builtin\\n uint256 internal constant ASSERT = 0x01;\\n /// @dev arithmetic underflow or overflow\\n uint256 internal constant UNDER_OVERFLOW = 0x11;\\n /// @dev division or modulo by zero\\n uint256 internal constant DIVISION_BY_ZERO = 0x12;\\n /// @dev enum conversion error\\n uint256 internal constant ENUM_CONVERSION_ERROR = 0x21;\\n /// @dev invalid encoding in storage\\n uint256 internal constant STORAGE_ENCODING_ERROR = 0x22;\\n /// @dev empty array pop\\n uint256 internal constant EMPTY_ARRAY_POP = 0x31;\\n /// @dev array out of bounds access\\n uint256 internal constant ARRAY_OUT_OF_BOUNDS = 0x32;\\n /// @dev resource error (too large allocation or too large array)\\n uint256 internal constant RESOURCE_ERROR = 0x41;\\n /// @dev calling invalid internal function\\n uint256 internal constant INVALID_INTERNAL_FUNCTION = 0x51;\\n\\n /// @dev Reverts with a panic code. Recommended to use with\\n /// the internal constants with predefined codes.\\n function panic(uint256 code) internal pure {\\n assembly (\\\"memory-safe\\\") {\\n mstore(0x00, 0x4e487b71)\\n mstore(0x20, code)\\n revert(0x1c, 0x24)\\n }\\n }\\n}\\n\",\"keccak256\":\"0xf7fe324703a64fc51702311dc51562d5cb1497734f074e4f483bfb6717572d7a\",\"license\":\"MIT\"},\"@openzeppelin/contracts/utils/StorageSlot.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.1.0) (utils/StorageSlot.sol)\\n// This file was procedurally generated from scripts/generate/templates/StorageSlot.js.\\n\\npragma solidity ^0.8.20;\\n\\n/**\\n * @dev Library for reading and writing primitive types to specific storage slots.\\n *\\n * Storage slots are often used to avoid storage conflict when dealing with upgradeable contracts.\\n * This library helps with reading and writing to such slots without the need for inline assembly.\\n *\\n * The functions in this library return Slot structs that contain a `value` member that can be used to read or write.\\n *\\n * Example usage to set ERC-1967 implementation slot:\\n * ```solidity\\n * contract ERC1967 {\\n * // Define the slot. Alternatively, use the SlotDerivation library to derive the slot.\\n * bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;\\n *\\n * function _getImplementation() internal view returns (address) {\\n * return StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value;\\n * }\\n *\\n * function _setImplementation(address newImplementation) internal {\\n * require(newImplementation.code.length > 0);\\n * StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;\\n * }\\n * }\\n * ```\\n *\\n * TIP: Consider using this library along with {SlotDerivation}.\\n */\\nlibrary StorageSlot {\\n struct AddressSlot {\\n address value;\\n }\\n\\n struct BooleanSlot {\\n bool value;\\n }\\n\\n struct Bytes32Slot {\\n bytes32 value;\\n }\\n\\n struct Uint256Slot {\\n uint256 value;\\n }\\n\\n struct Int256Slot {\\n int256 value;\\n }\\n\\n struct StringSlot {\\n string value;\\n }\\n\\n struct BytesSlot {\\n bytes value;\\n }\\n\\n /**\\n * @dev Returns an `AddressSlot` with member `value` located at `slot`.\\n */\\n function getAddressSlot(bytes32 slot) internal pure returns (AddressSlot storage r) {\\n assembly (\\\"memory-safe\\\") {\\n r.slot := slot\\n }\\n }\\n\\n /**\\n * @dev Returns a `BooleanSlot` with member `value` located at `slot`.\\n */\\n function getBooleanSlot(bytes32 slot) internal pure returns (BooleanSlot storage r) {\\n assembly (\\\"memory-safe\\\") {\\n r.slot := slot\\n }\\n }\\n\\n /**\\n * @dev Returns a `Bytes32Slot` with member `value` located at `slot`.\\n */\\n function getBytes32Slot(bytes32 slot) internal pure returns (Bytes32Slot storage r) {\\n assembly (\\\"memory-safe\\\") {\\n r.slot := slot\\n }\\n }\\n\\n /**\\n * @dev Returns a `Uint256Slot` with member `value` located at `slot`.\\n */\\n function getUint256Slot(bytes32 slot) internal pure returns (Uint256Slot storage r) {\\n assembly (\\\"memory-safe\\\") {\\n r.slot := slot\\n }\\n }\\n\\n /**\\n * @dev Returns a `Int256Slot` with member `value` located at `slot`.\\n */\\n function getInt256Slot(bytes32 slot) internal pure returns (Int256Slot storage r) {\\n assembly (\\\"memory-safe\\\") {\\n r.slot := slot\\n }\\n }\\n\\n /**\\n * @dev Returns a `StringSlot` with member `value` located at `slot`.\\n */\\n function getStringSlot(bytes32 slot) internal pure returns (StringSlot storage r) {\\n assembly (\\\"memory-safe\\\") {\\n r.slot := slot\\n }\\n }\\n\\n /**\\n * @dev Returns an `StringSlot` representation of the string storage pointer `store`.\\n */\\n function getStringSlot(string storage store) internal pure returns (StringSlot storage r) {\\n assembly (\\\"memory-safe\\\") {\\n r.slot := store.slot\\n }\\n }\\n\\n /**\\n * @dev Returns a `BytesSlot` with member `value` located at `slot`.\\n */\\n function getBytesSlot(bytes32 slot) internal pure returns (BytesSlot storage r) {\\n assembly (\\\"memory-safe\\\") {\\n r.slot := slot\\n }\\n }\\n\\n /**\\n * @dev Returns an `BytesSlot` representation of the bytes storage pointer `store`.\\n */\\n function getBytesSlot(bytes storage store) internal pure returns (BytesSlot storage r) {\\n assembly (\\\"memory-safe\\\") {\\n r.slot := store.slot\\n }\\n }\\n}\\n\",\"keccak256\":\"0xcf74f855663ce2ae00ed8352666b7935f6cddea2932fdf2c3ecd30a9b1cd0e97\",\"license\":\"MIT\"},\"@openzeppelin/contracts/utils/Strings.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/Strings.sol)\\n\\npragma solidity ^0.8.20;\\n\\nimport {Math} from \\\"./math/Math.sol\\\";\\nimport {SafeCast} from \\\"./math/SafeCast.sol\\\";\\nimport {SignedMath} from \\\"./math/SignedMath.sol\\\";\\n\\n/**\\n * @dev String operations.\\n */\\nlibrary Strings {\\n using SafeCast for *;\\n\\n bytes16 private constant HEX_DIGITS = \\\"0123456789abcdef\\\";\\n uint8 private constant ADDRESS_LENGTH = 20;\\n uint256 private constant SPECIAL_CHARS_LOOKUP =\\n (1 << 0x08) | // backspace\\n (1 << 0x09) | // tab\\n (1 << 0x0a) | // newline\\n (1 << 0x0c) | // form feed\\n (1 << 0x0d) | // carriage return\\n (1 << 0x22) | // double quote\\n (1 << 0x5c); // backslash\\n\\n /**\\n * @dev The `value` string doesn't fit in the specified `length`.\\n */\\n error StringsInsufficientHexLength(uint256 value, uint256 length);\\n\\n /**\\n * @dev The string being parsed contains characters that are not in scope of the given base.\\n */\\n error StringsInvalidChar();\\n\\n /**\\n * @dev The string being parsed is not a properly formatted address.\\n */\\n error StringsInvalidAddressFormat();\\n\\n /**\\n * @dev Converts a `uint256` to its ASCII `string` decimal representation.\\n */\\n function toString(uint256 value) internal pure returns (string memory) {\\n unchecked {\\n uint256 length = Math.log10(value) + 1;\\n string memory buffer = new string(length);\\n uint256 ptr;\\n assembly (\\\"memory-safe\\\") {\\n ptr := add(add(buffer, 0x20), length)\\n }\\n while (true) {\\n ptr--;\\n assembly (\\\"memory-safe\\\") {\\n mstore8(ptr, byte(mod(value, 10), HEX_DIGITS))\\n }\\n value /= 10;\\n if (value == 0) break;\\n }\\n return buffer;\\n }\\n }\\n\\n /**\\n * @dev Converts a `int256` to its ASCII `string` decimal representation.\\n */\\n function toStringSigned(int256 value) internal pure returns (string memory) {\\n return string.concat(value < 0 ? \\\"-\\\" : \\\"\\\", toString(SignedMath.abs(value)));\\n }\\n\\n /**\\n * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.\\n */\\n function toHexString(uint256 value) internal pure returns (string memory) {\\n unchecked {\\n return toHexString(value, Math.log256(value) + 1);\\n }\\n }\\n\\n /**\\n * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.\\n */\\n function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {\\n uint256 localValue = value;\\n bytes memory buffer = new bytes(2 * length + 2);\\n buffer[0] = \\\"0\\\";\\n buffer[1] = \\\"x\\\";\\n for (uint256 i = 2 * length + 1; i > 1; --i) {\\n buffer[i] = HEX_DIGITS[localValue & 0xf];\\n localValue >>= 4;\\n }\\n if (localValue != 0) {\\n revert StringsInsufficientHexLength(value, length);\\n }\\n return string(buffer);\\n }\\n\\n /**\\n * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal\\n * representation.\\n */\\n function toHexString(address addr) internal pure returns (string memory) {\\n return toHexString(uint256(uint160(addr)), ADDRESS_LENGTH);\\n }\\n\\n /**\\n * @dev Converts an `address` with fixed length of 20 bytes to its checksummed ASCII `string` hexadecimal\\n * representation, according to EIP-55.\\n */\\n function toChecksumHexString(address addr) internal pure returns (string memory) {\\n bytes memory buffer = bytes(toHexString(addr));\\n\\n // hash the hex part of buffer (skip length + 2 bytes, length 40)\\n uint256 hashValue;\\n assembly (\\\"memory-safe\\\") {\\n hashValue := shr(96, keccak256(add(buffer, 0x22), 40))\\n }\\n\\n for (uint256 i = 41; i > 1; --i) {\\n // possible values for buffer[i] are 48 (0) to 57 (9) and 97 (a) to 102 (f)\\n if (hashValue & 0xf > 7 && uint8(buffer[i]) > 96) {\\n // case shift by xoring with 0x20\\n buffer[i] ^= 0x20;\\n }\\n hashValue >>= 4;\\n }\\n return string(buffer);\\n }\\n\\n /**\\n * @dev Returns true if the two strings are equal.\\n */\\n function equal(string memory a, string memory b) internal pure returns (bool) {\\n return bytes(a).length == bytes(b).length && keccak256(bytes(a)) == keccak256(bytes(b));\\n }\\n\\n /**\\n * @dev Parse a decimal string and returns the value as a `uint256`.\\n *\\n * Requirements:\\n * - The string must be formatted as `[0-9]*`\\n * - The result must fit into an `uint256` type\\n */\\n function parseUint(string memory input) internal pure returns (uint256) {\\n return parseUint(input, 0, bytes(input).length);\\n }\\n\\n /**\\n * @dev Variant of {parseUint-string} that parses a substring of `input` located between position `begin` (included) and\\n * `end` (excluded).\\n *\\n * Requirements:\\n * - The substring must be formatted as `[0-9]*`\\n * - The result must fit into an `uint256` type\\n */\\n function parseUint(string memory input, uint256 begin, uint256 end) internal pure returns (uint256) {\\n (bool success, uint256 value) = tryParseUint(input, begin, end);\\n if (!success) revert StringsInvalidChar();\\n return value;\\n }\\n\\n /**\\n * @dev Variant of {parseUint-string} that returns false if the parsing fails because of an invalid character.\\n *\\n * NOTE: This function will revert if the result does not fit in a `uint256`.\\n */\\n function tryParseUint(string memory input) internal pure returns (bool success, uint256 value) {\\n return _tryParseUintUncheckedBounds(input, 0, bytes(input).length);\\n }\\n\\n /**\\n * @dev Variant of {parseUint-string-uint256-uint256} that returns false if the parsing fails because of an invalid\\n * character.\\n *\\n * NOTE: This function will revert if the result does not fit in a `uint256`.\\n */\\n function tryParseUint(\\n string memory input,\\n uint256 begin,\\n uint256 end\\n ) internal pure returns (bool success, uint256 value) {\\n if (end > bytes(input).length || begin > end) return (false, 0);\\n return _tryParseUintUncheckedBounds(input, begin, end);\\n }\\n\\n /**\\n * @dev Implementation of {tryParseUint-string-uint256-uint256} that does not check bounds. Caller should make sure that\\n * `begin <= end <= input.length`. Other inputs would result in undefined behavior.\\n */\\n function _tryParseUintUncheckedBounds(\\n string memory input,\\n uint256 begin,\\n uint256 end\\n ) private pure returns (bool success, uint256 value) {\\n bytes memory buffer = bytes(input);\\n\\n uint256 result = 0;\\n for (uint256 i = begin; i < end; ++i) {\\n uint8 chr = _tryParseChr(bytes1(_unsafeReadBytesOffset(buffer, i)));\\n if (chr > 9) return (false, 0);\\n result *= 10;\\n result += chr;\\n }\\n return (true, result);\\n }\\n\\n /**\\n * @dev Parse a decimal string and returns the value as a `int256`.\\n *\\n * Requirements:\\n * - The string must be formatted as `[-+]?[0-9]*`\\n * - The result must fit in an `int256` type.\\n */\\n function parseInt(string memory input) internal pure returns (int256) {\\n return parseInt(input, 0, bytes(input).length);\\n }\\n\\n /**\\n * @dev Variant of {parseInt-string} that parses a substring of `input` located between position `begin` (included) and\\n * `end` (excluded).\\n *\\n * Requirements:\\n * - The substring must be formatted as `[-+]?[0-9]*`\\n * - The result must fit in an `int256` type.\\n */\\n function parseInt(string memory input, uint256 begin, uint256 end) internal pure returns (int256) {\\n (bool success, int256 value) = tryParseInt(input, begin, end);\\n if (!success) revert StringsInvalidChar();\\n return value;\\n }\\n\\n /**\\n * @dev Variant of {parseInt-string} that returns false if the parsing fails because of an invalid character or if\\n * the result does not fit in a `int256`.\\n *\\n * NOTE: This function will revert if the absolute value of the result does not fit in a `uint256`.\\n */\\n function tryParseInt(string memory input) internal pure returns (bool success, int256 value) {\\n return _tryParseIntUncheckedBounds(input, 0, bytes(input).length);\\n }\\n\\n uint256 private constant ABS_MIN_INT256 = 2 ** 255;\\n\\n /**\\n * @dev Variant of {parseInt-string-uint256-uint256} that returns false if the parsing fails because of an invalid\\n * character or if the result does not fit in a `int256`.\\n *\\n * NOTE: This function will revert if the absolute value of the result does not fit in a `uint256`.\\n */\\n function tryParseInt(\\n string memory input,\\n uint256 begin,\\n uint256 end\\n ) internal pure returns (bool success, int256 value) {\\n if (end > bytes(input).length || begin > end) return (false, 0);\\n return _tryParseIntUncheckedBounds(input, begin, end);\\n }\\n\\n /**\\n * @dev Implementation of {tryParseInt-string-uint256-uint256} that does not check bounds. Caller should make sure that\\n * `begin <= end <= input.length`. Other inputs would result in undefined behavior.\\n */\\n function _tryParseIntUncheckedBounds(\\n string memory input,\\n uint256 begin,\\n uint256 end\\n ) private pure returns (bool success, int256 value) {\\n bytes memory buffer = bytes(input);\\n\\n // Check presence of a negative sign.\\n bytes1 sign = begin == end ? bytes1(0) : bytes1(_unsafeReadBytesOffset(buffer, begin)); // don't do out-of-bound (possibly unsafe) read if sub-string is empty\\n bool positiveSign = sign == bytes1(\\\"+\\\");\\n bool negativeSign = sign == bytes1(\\\"-\\\");\\n uint256 offset = (positiveSign || negativeSign).toUint();\\n\\n (bool absSuccess, uint256 absValue) = tryParseUint(input, begin + offset, end);\\n\\n if (absSuccess && absValue < ABS_MIN_INT256) {\\n return (true, negativeSign ? -int256(absValue) : int256(absValue));\\n } else if (absSuccess && negativeSign && absValue == ABS_MIN_INT256) {\\n return (true, type(int256).min);\\n } else return (false, 0);\\n }\\n\\n /**\\n * @dev Parse a hexadecimal string (with or without \\\"0x\\\" prefix), and returns the value as a `uint256`.\\n *\\n * Requirements:\\n * - The string must be formatted as `(0x)?[0-9a-fA-F]*`\\n * - The result must fit in an `uint256` type.\\n */\\n function parseHexUint(string memory input) internal pure returns (uint256) {\\n return parseHexUint(input, 0, bytes(input).length);\\n }\\n\\n /**\\n * @dev Variant of {parseHexUint-string} that parses a substring of `input` located between position `begin` (included) and\\n * `end` (excluded).\\n *\\n * Requirements:\\n * - The substring must be formatted as `(0x)?[0-9a-fA-F]*`\\n * - The result must fit in an `uint256` type.\\n */\\n function parseHexUint(string memory input, uint256 begin, uint256 end) internal pure returns (uint256) {\\n (bool success, uint256 value) = tryParseHexUint(input, begin, end);\\n if (!success) revert StringsInvalidChar();\\n return value;\\n }\\n\\n /**\\n * @dev Variant of {parseHexUint-string} that returns false if the parsing fails because of an invalid character.\\n *\\n * NOTE: This function will revert if the result does not fit in a `uint256`.\\n */\\n function tryParseHexUint(string memory input) internal pure returns (bool success, uint256 value) {\\n return _tryParseHexUintUncheckedBounds(input, 0, bytes(input).length);\\n }\\n\\n /**\\n * @dev Variant of {parseHexUint-string-uint256-uint256} that returns false if the parsing fails because of an\\n * invalid character.\\n *\\n * NOTE: This function will revert if the result does not fit in a `uint256`.\\n */\\n function tryParseHexUint(\\n string memory input,\\n uint256 begin,\\n uint256 end\\n ) internal pure returns (bool success, uint256 value) {\\n if (end > bytes(input).length || begin > end) return (false, 0);\\n return _tryParseHexUintUncheckedBounds(input, begin, end);\\n }\\n\\n /**\\n * @dev Implementation of {tryParseHexUint-string-uint256-uint256} that does not check bounds. Caller should make sure that\\n * `begin <= end <= input.length`. Other inputs would result in undefined behavior.\\n */\\n function _tryParseHexUintUncheckedBounds(\\n string memory input,\\n uint256 begin,\\n uint256 end\\n ) private pure returns (bool success, uint256 value) {\\n bytes memory buffer = bytes(input);\\n\\n // skip 0x prefix if present\\n bool hasPrefix = (end > begin + 1) && bytes2(_unsafeReadBytesOffset(buffer, begin)) == bytes2(\\\"0x\\\"); // don't do out-of-bound (possibly unsafe) read if sub-string is empty\\n uint256 offset = hasPrefix.toUint() * 2;\\n\\n uint256 result = 0;\\n for (uint256 i = begin + offset; i < end; ++i) {\\n uint8 chr = _tryParseChr(bytes1(_unsafeReadBytesOffset(buffer, i)));\\n if (chr > 15) return (false, 0);\\n result *= 16;\\n unchecked {\\n // Multiplying by 16 is equivalent to a shift of 4 bits (with additional overflow check).\\n // This guarantees that adding a value < 16 will not cause an overflow, hence the unchecked.\\n result += chr;\\n }\\n }\\n return (true, result);\\n }\\n\\n /**\\n * @dev Parse a hexadecimal string (with or without \\\"0x\\\" prefix), and returns the value as an `address`.\\n *\\n * Requirements:\\n * - The string must be formatted as `(0x)?[0-9a-fA-F]{40}`\\n */\\n function parseAddress(string memory input) internal pure returns (address) {\\n return parseAddress(input, 0, bytes(input).length);\\n }\\n\\n /**\\n * @dev Variant of {parseAddress-string} that parses a substring of `input` located between position `begin` (included) and\\n * `end` (excluded).\\n *\\n * Requirements:\\n * - The substring must be formatted as `(0x)?[0-9a-fA-F]{40}`\\n */\\n function parseAddress(string memory input, uint256 begin, uint256 end) internal pure returns (address) {\\n (bool success, address value) = tryParseAddress(input, begin, end);\\n if (!success) revert StringsInvalidAddressFormat();\\n return value;\\n }\\n\\n /**\\n * @dev Variant of {parseAddress-string} that returns false if the parsing fails because the input is not a properly\\n * formatted address. See {parseAddress-string} requirements.\\n */\\n function tryParseAddress(string memory input) internal pure returns (bool success, address value) {\\n return tryParseAddress(input, 0, bytes(input).length);\\n }\\n\\n /**\\n * @dev Variant of {parseAddress-string-uint256-uint256} that returns false if the parsing fails because input is not a properly\\n * formatted address. See {parseAddress-string-uint256-uint256} requirements.\\n */\\n function tryParseAddress(\\n string memory input,\\n uint256 begin,\\n uint256 end\\n ) internal pure returns (bool success, address value) {\\n if (end > bytes(input).length || begin > end) return (false, address(0));\\n\\n bool hasPrefix = (end > begin + 1) && bytes2(_unsafeReadBytesOffset(bytes(input), begin)) == bytes2(\\\"0x\\\"); // don't do out-of-bound (possibly unsafe) read if sub-string is empty\\n uint256 expectedLength = 40 + hasPrefix.toUint() * 2;\\n\\n // check that input is the correct length\\n if (end - begin == expectedLength) {\\n // length guarantees that this does not overflow, and value is at most type(uint160).max\\n (bool s, uint256 v) = _tryParseHexUintUncheckedBounds(input, begin, end);\\n return (s, address(uint160(v)));\\n } else {\\n return (false, address(0));\\n }\\n }\\n\\n function _tryParseChr(bytes1 chr) private pure returns (uint8) {\\n uint8 value = uint8(chr);\\n\\n // Try to parse `chr`:\\n // - Case 1: [0-9]\\n // - Case 2: [a-f]\\n // - Case 3: [A-F]\\n // - otherwise not supported\\n unchecked {\\n if (value > 47 && value < 58) value -= 48;\\n else if (value > 96 && value < 103) value -= 87;\\n else if (value > 64 && value < 71) value -= 55;\\n else return type(uint8).max;\\n }\\n\\n return value;\\n }\\n\\n /**\\n * @dev Escape special characters in JSON strings. This can be useful to prevent JSON injection in NFT metadata.\\n *\\n * WARNING: This function should only be used in double quoted JSON strings. Single quotes are not escaped.\\n *\\n * NOTE: This function escapes all unicode characters, and not just the ones in ranges defined in section 2.5 of\\n * RFC-4627 (U+0000 to U+001F, U+0022 and U+005C). ECMAScript's `JSON.parse` does recover escaped unicode\\n * characters that are not in this range, but other tooling may provide different results.\\n */\\n function escapeJSON(string memory input) internal pure returns (string memory) {\\n bytes memory buffer = bytes(input);\\n bytes memory output = new bytes(2 * buffer.length); // worst case scenario\\n uint256 outputLength = 0;\\n\\n for (uint256 i; i < buffer.length; ++i) {\\n bytes1 char = bytes1(_unsafeReadBytesOffset(buffer, i));\\n if (((SPECIAL_CHARS_LOOKUP & (1 << uint8(char))) != 0)) {\\n output[outputLength++] = \\\"\\\\\\\\\\\";\\n if (char == 0x08) output[outputLength++] = \\\"b\\\";\\n else if (char == 0x09) output[outputLength++] = \\\"t\\\";\\n else if (char == 0x0a) output[outputLength++] = \\\"n\\\";\\n else if (char == 0x0c) output[outputLength++] = \\\"f\\\";\\n else if (char == 0x0d) output[outputLength++] = \\\"r\\\";\\n else if (char == 0x5c) output[outputLength++] = \\\"\\\\\\\\\\\";\\n else if (char == 0x22) {\\n // solhint-disable-next-line quotes\\n output[outputLength++] = '\\\"';\\n }\\n } else {\\n output[outputLength++] = char;\\n }\\n }\\n // write the actual length and deallocate unused memory\\n assembly (\\\"memory-safe\\\") {\\n mstore(output, outputLength)\\n mstore(0x40, add(output, shl(5, shr(5, add(outputLength, 63)))))\\n }\\n\\n return string(output);\\n }\\n\\n /**\\n * @dev Reads a bytes32 from a bytes array without bounds checking.\\n *\\n * NOTE: making this function internal would mean it could be used with memory unsafe offset, and marking the\\n * assembly block as such would prevent some optimizations.\\n */\\n function _unsafeReadBytesOffset(bytes memory buffer, uint256 offset) private pure returns (bytes32 value) {\\n // This is not memory safe in the general case, but all calls to this private function are within bounds.\\n assembly (\\\"memory-safe\\\") {\\n value := mload(add(add(buffer, 0x20), offset))\\n }\\n }\\n}\\n\",\"keccak256\":\"0xad148d59f05165f9217d0a9e1ac8f772abb02ea6aaad8a756315c532bf79f9f4\",\"license\":\"MIT\"},\"@openzeppelin/contracts/utils/cryptography/ECDSA.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.1.0) (utils/cryptography/ECDSA.sol)\\n\\npragma solidity ^0.8.20;\\n\\n/**\\n * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations.\\n *\\n * These functions can be used to verify that a message was signed by the holder\\n * of the private keys of a given address.\\n */\\nlibrary ECDSA {\\n enum RecoverError {\\n NoError,\\n InvalidSignature,\\n InvalidSignatureLength,\\n InvalidSignatureS\\n }\\n\\n /**\\n * @dev The signature derives the `address(0)`.\\n */\\n error ECDSAInvalidSignature();\\n\\n /**\\n * @dev The signature has an invalid length.\\n */\\n error ECDSAInvalidSignatureLength(uint256 length);\\n\\n /**\\n * @dev The signature has an S value that is in the upper half order.\\n */\\n error ECDSAInvalidSignatureS(bytes32 s);\\n\\n /**\\n * @dev Returns the address that signed a hashed message (`hash`) with `signature` or an error. This will not\\n * return address(0) without also returning an error description. Errors are documented using an enum (error type)\\n * and a bytes32 providing additional information about the error.\\n *\\n * If no error is returned, then the address can be used for verification purposes.\\n *\\n * The `ecrecover` EVM precompile allows for malleable (non-unique) signatures:\\n * this function rejects them by requiring the `s` value to be in the lower\\n * half order, and the `v` value to be either 27 or 28.\\n *\\n * IMPORTANT: `hash` _must_ be the result of a hash operation for the\\n * verification to be secure: it is possible to craft signatures that\\n * recover to arbitrary addresses for non-hashed data. A safe way to ensure\\n * this is by receiving a hash of the original message (which may otherwise\\n * be too long), and then calling {MessageHashUtils-toEthSignedMessageHash} on it.\\n *\\n * Documentation for signature generation:\\n * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js]\\n * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers]\\n */\\n function tryRecover(\\n bytes32 hash,\\n bytes memory signature\\n ) internal pure returns (address recovered, RecoverError err, bytes32 errArg) {\\n if (signature.length == 65) {\\n bytes32 r;\\n bytes32 s;\\n uint8 v;\\n // ecrecover takes the signature parameters, and the only way to get them\\n // currently is to use assembly.\\n assembly (\\\"memory-safe\\\") {\\n r := mload(add(signature, 0x20))\\n s := mload(add(signature, 0x40))\\n v := byte(0, mload(add(signature, 0x60)))\\n }\\n return tryRecover(hash, v, r, s);\\n } else {\\n return (address(0), RecoverError.InvalidSignatureLength, bytes32(signature.length));\\n }\\n }\\n\\n /**\\n * @dev Returns the address that signed a hashed message (`hash`) with\\n * `signature`. This address can then be used for verification purposes.\\n *\\n * The `ecrecover` EVM precompile allows for malleable (non-unique) signatures:\\n * this function rejects them by requiring the `s` value to be in the lower\\n * half order, and the `v` value to be either 27 or 28.\\n *\\n * IMPORTANT: `hash` _must_ be the result of a hash operation for the\\n * verification to be secure: it is possible to craft signatures that\\n * recover to arbitrary addresses for non-hashed data. A safe way to ensure\\n * this is by receiving a hash of the original message (which may otherwise\\n * be too long), and then calling {MessageHashUtils-toEthSignedMessageHash} on it.\\n */\\n function recover(bytes32 hash, bytes memory signature) internal pure returns (address) {\\n (address recovered, RecoverError error, bytes32 errorArg) = tryRecover(hash, signature);\\n _throwError(error, errorArg);\\n return recovered;\\n }\\n\\n /**\\n * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately.\\n *\\n * See https://eips.ethereum.org/EIPS/eip-2098[ERC-2098 short signatures]\\n */\\n function tryRecover(\\n bytes32 hash,\\n bytes32 r,\\n bytes32 vs\\n ) internal pure returns (address recovered, RecoverError err, bytes32 errArg) {\\n unchecked {\\n bytes32 s = vs & bytes32(0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff);\\n // We do not check for an overflow here since the shift operation results in 0 or 1.\\n uint8 v = uint8((uint256(vs) >> 255) + 27);\\n return tryRecover(hash, v, r, s);\\n }\\n }\\n\\n /**\\n * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately.\\n */\\n function recover(bytes32 hash, bytes32 r, bytes32 vs) internal pure returns (address) {\\n (address recovered, RecoverError error, bytes32 errorArg) = tryRecover(hash, r, vs);\\n _throwError(error, errorArg);\\n return recovered;\\n }\\n\\n /**\\n * @dev Overload of {ECDSA-tryRecover} that receives the `v`,\\n * `r` and `s` signature fields separately.\\n */\\n function tryRecover(\\n bytes32 hash,\\n uint8 v,\\n bytes32 r,\\n bytes32 s\\n ) internal pure returns (address recovered, RecoverError err, bytes32 errArg) {\\n // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature\\n // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines\\n // the valid range for s in (301): 0 < s < secp256k1n \\u00f7 2 + 1, and for v in (302): v \\u2208 {27, 28}. Most\\n // signatures from current libraries generate a unique signature with an s-value in the lower half order.\\n //\\n // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value\\n // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or\\n // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept\\n // these malleable signatures as well.\\n if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) {\\n return (address(0), RecoverError.InvalidSignatureS, s);\\n }\\n\\n // If the signature is valid (and not malleable), return the signer address\\n address signer = ecrecover(hash, v, r, s);\\n if (signer == address(0)) {\\n return (address(0), RecoverError.InvalidSignature, bytes32(0));\\n }\\n\\n return (signer, RecoverError.NoError, bytes32(0));\\n }\\n\\n /**\\n * @dev Overload of {ECDSA-recover} that receives the `v`,\\n * `r` and `s` signature fields separately.\\n */\\n function recover(bytes32 hash, uint8 v, bytes32 r, bytes32 s) internal pure returns (address) {\\n (address recovered, RecoverError error, bytes32 errorArg) = tryRecover(hash, v, r, s);\\n _throwError(error, errorArg);\\n return recovered;\\n }\\n\\n /**\\n * @dev Optionally reverts with the corresponding custom error according to the `error` argument provided.\\n */\\n function _throwError(RecoverError error, bytes32 errorArg) private pure {\\n if (error == RecoverError.NoError) {\\n return; // no error: do nothing\\n } else if (error == RecoverError.InvalidSignature) {\\n revert ECDSAInvalidSignature();\\n } else if (error == RecoverError.InvalidSignatureLength) {\\n revert ECDSAInvalidSignatureLength(uint256(errorArg));\\n } else if (error == RecoverError.InvalidSignatureS) {\\n revert ECDSAInvalidSignatureS(errorArg);\\n }\\n }\\n}\\n\",\"keccak256\":\"0x69f54c02b7d81d505910ec198c11ed4c6a728418a868b906b4a0cf29946fda84\",\"license\":\"MIT\"},\"@openzeppelin/contracts/utils/cryptography/MessageHashUtils.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.3.0) (utils/cryptography/MessageHashUtils.sol)\\n\\npragma solidity ^0.8.20;\\n\\nimport {Strings} from \\\"../Strings.sol\\\";\\n\\n/**\\n * @dev Signature message hash utilities for producing digests to be consumed by {ECDSA} recovery or signing.\\n *\\n * The library provides methods for generating a hash of a message that conforms to the\\n * https://eips.ethereum.org/EIPS/eip-191[ERC-191] and https://eips.ethereum.org/EIPS/eip-712[EIP 712]\\n * specifications.\\n */\\nlibrary MessageHashUtils {\\n /**\\n * @dev Returns the keccak256 digest of an ERC-191 signed data with version\\n * `0x45` (`personal_sign` messages).\\n *\\n * The digest is calculated by prefixing a bytes32 `messageHash` with\\n * `\\\"\\\\x19Ethereum Signed Message:\\\\n32\\\"` and hashing the result. It corresponds with the\\n * hash signed when using the https://ethereum.org/en/developers/docs/apis/json-rpc/#eth_sign[`eth_sign`] JSON-RPC method.\\n *\\n * NOTE: The `messageHash` parameter is intended to be the result of hashing a raw message with\\n * keccak256, although any bytes32 value can be safely used because the final digest will\\n * be re-hashed.\\n *\\n * See {ECDSA-recover}.\\n */\\n function toEthSignedMessageHash(bytes32 messageHash) internal pure returns (bytes32 digest) {\\n assembly (\\\"memory-safe\\\") {\\n mstore(0x00, \\\"\\\\x19Ethereum Signed Message:\\\\n32\\\") // 32 is the bytes-length of messageHash\\n mstore(0x1c, messageHash) // 0x1c (28) is the length of the prefix\\n digest := keccak256(0x00, 0x3c) // 0x3c is the length of the prefix (0x1c) + messageHash (0x20)\\n }\\n }\\n\\n /**\\n * @dev Returns the keccak256 digest of an ERC-191 signed data with version\\n * `0x45` (`personal_sign` messages).\\n *\\n * The digest is calculated by prefixing an arbitrary `message` with\\n * `\\\"\\\\x19Ethereum Signed Message:\\\\n\\\" + len(message)` and hashing the result. It corresponds with the\\n * hash signed when using the https://ethereum.org/en/developers/docs/apis/json-rpc/#eth_sign[`eth_sign`] JSON-RPC method.\\n *\\n * See {ECDSA-recover}.\\n */\\n function toEthSignedMessageHash(bytes memory message) internal pure returns (bytes32) {\\n return\\n keccak256(bytes.concat(\\\"\\\\x19Ethereum Signed Message:\\\\n\\\", bytes(Strings.toString(message.length)), message));\\n }\\n\\n /**\\n * @dev Returns the keccak256 digest of an ERC-191 signed data with version\\n * `0x00` (data with intended validator).\\n *\\n * The digest is calculated by prefixing an arbitrary `data` with `\\\"\\\\x19\\\\x00\\\"` and the intended\\n * `validator` address. Then hashing the result.\\n *\\n * See {ECDSA-recover}.\\n */\\n function toDataWithIntendedValidatorHash(address validator, bytes memory data) internal pure returns (bytes32) {\\n return keccak256(abi.encodePacked(hex\\\"19_00\\\", validator, data));\\n }\\n\\n /**\\n * @dev Variant of {toDataWithIntendedValidatorHash-address-bytes} optimized for cases where `data` is a bytes32.\\n */\\n function toDataWithIntendedValidatorHash(\\n address validator,\\n bytes32 messageHash\\n ) internal pure returns (bytes32 digest) {\\n assembly (\\\"memory-safe\\\") {\\n mstore(0x00, hex\\\"19_00\\\")\\n mstore(0x02, shl(96, validator))\\n mstore(0x16, messageHash)\\n digest := keccak256(0x00, 0x36)\\n }\\n }\\n\\n /**\\n * @dev Returns the keccak256 digest of an EIP-712 typed data (ERC-191 version `0x01`).\\n *\\n * The digest is calculated from a `domainSeparator` and a `structHash`, by prefixing them with\\n * `\\\\x19\\\\x01` and hashing the result. It corresponds to the hash signed by the\\n * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`] JSON-RPC method as part of EIP-712.\\n *\\n * See {ECDSA-recover}.\\n */\\n function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32 digest) {\\n assembly (\\\"memory-safe\\\") {\\n let ptr := mload(0x40)\\n mstore(ptr, hex\\\"19_01\\\")\\n mstore(add(ptr, 0x02), domainSeparator)\\n mstore(add(ptr, 0x22), structHash)\\n digest := keccak256(ptr, 0x42)\\n }\\n }\\n}\\n\",\"keccak256\":\"0x26670fef37d4adf55570ba78815eec5f31cb017e708f61886add4fc4da665631\",\"license\":\"MIT\"},\"@openzeppelin/contracts/utils/math/Math.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.3.0) (utils/math/Math.sol)\\n\\npragma solidity ^0.8.20;\\n\\nimport {Panic} from \\\"../Panic.sol\\\";\\nimport {SafeCast} from \\\"./SafeCast.sol\\\";\\n\\n/**\\n * @dev Standard math utilities missing in the Solidity language.\\n */\\nlibrary Math {\\n enum Rounding {\\n Floor, // Toward negative infinity\\n Ceil, // Toward positive infinity\\n Trunc, // Toward zero\\n Expand // Away from zero\\n }\\n\\n /**\\n * @dev Return the 512-bit addition of two uint256.\\n *\\n * The result is stored in two 256 variables such that sum = high * 2\\u00b2\\u2075\\u2076 + low.\\n */\\n function add512(uint256 a, uint256 b) internal pure returns (uint256 high, uint256 low) {\\n assembly (\\\"memory-safe\\\") {\\n low := add(a, b)\\n high := lt(low, a)\\n }\\n }\\n\\n /**\\n * @dev Return the 512-bit multiplication of two uint256.\\n *\\n * The result is stored in two 256 variables such that product = high * 2\\u00b2\\u2075\\u2076 + low.\\n */\\n function mul512(uint256 a, uint256 b) internal pure returns (uint256 high, uint256 low) {\\n // 512-bit multiply [high low] = x * y. Compute the product mod 2\\u00b2\\u2075\\u2076 and mod 2\\u00b2\\u2075\\u2076 - 1, then use\\n // the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256\\n // variables such that product = high * 2\\u00b2\\u2075\\u2076 + low.\\n assembly (\\\"memory-safe\\\") {\\n let mm := mulmod(a, b, not(0))\\n low := mul(a, b)\\n high := sub(sub(mm, low), lt(mm, low))\\n }\\n }\\n\\n /**\\n * @dev Returns the addition of two unsigned integers, with a success flag (no overflow).\\n */\\n function tryAdd(uint256 a, uint256 b) internal pure returns (bool success, uint256 result) {\\n unchecked {\\n uint256 c = a + b;\\n success = c >= a;\\n result = c * SafeCast.toUint(success);\\n }\\n }\\n\\n /**\\n * @dev Returns the subtraction of two unsigned integers, with a success flag (no overflow).\\n */\\n function trySub(uint256 a, uint256 b) internal pure returns (bool success, uint256 result) {\\n unchecked {\\n uint256 c = a - b;\\n success = c <= a;\\n result = c * SafeCast.toUint(success);\\n }\\n }\\n\\n /**\\n * @dev Returns the multiplication of two unsigned integers, with a success flag (no overflow).\\n */\\n function tryMul(uint256 a, uint256 b) internal pure returns (bool success, uint256 result) {\\n unchecked {\\n uint256 c = a * b;\\n assembly (\\\"memory-safe\\\") {\\n // Only true when the multiplication doesn't overflow\\n // (c / a == b) || (a == 0)\\n success := or(eq(div(c, a), b), iszero(a))\\n }\\n // equivalent to: success ? c : 0\\n result = c * SafeCast.toUint(success);\\n }\\n }\\n\\n /**\\n * @dev Returns the division of two unsigned integers, with a success flag (no division by zero).\\n */\\n function tryDiv(uint256 a, uint256 b) internal pure returns (bool success, uint256 result) {\\n unchecked {\\n success = b > 0;\\n assembly (\\\"memory-safe\\\") {\\n // The `DIV` opcode returns zero when the denominator is 0.\\n result := div(a, b)\\n }\\n }\\n }\\n\\n /**\\n * @dev Returns the remainder of dividing two unsigned integers, with a success flag (no division by zero).\\n */\\n function tryMod(uint256 a, uint256 b) internal pure returns (bool success, uint256 result) {\\n unchecked {\\n success = b > 0;\\n assembly (\\\"memory-safe\\\") {\\n // The `MOD` opcode returns zero when the denominator is 0.\\n result := mod(a, b)\\n }\\n }\\n }\\n\\n /**\\n * @dev Unsigned saturating addition, bounds to `2\\u00b2\\u2075\\u2076 - 1` instead of overflowing.\\n */\\n function saturatingAdd(uint256 a, uint256 b) internal pure returns (uint256) {\\n (bool success, uint256 result) = tryAdd(a, b);\\n return ternary(success, result, type(uint256).max);\\n }\\n\\n /**\\n * @dev Unsigned saturating subtraction, bounds to zero instead of overflowing.\\n */\\n function saturatingSub(uint256 a, uint256 b) internal pure returns (uint256) {\\n (, uint256 result) = trySub(a, b);\\n return result;\\n }\\n\\n /**\\n * @dev Unsigned saturating multiplication, bounds to `2\\u00b2\\u2075\\u2076 - 1` instead of overflowing.\\n */\\n function saturatingMul(uint256 a, uint256 b) internal pure returns (uint256) {\\n (bool success, uint256 result) = tryMul(a, b);\\n return ternary(success, result, type(uint256).max);\\n }\\n\\n /**\\n * @dev Branchless ternary evaluation for `a ? b : c`. Gas costs are constant.\\n *\\n * IMPORTANT: This function may reduce bytecode size and consume less gas when used standalone.\\n * However, the compiler may optimize Solidity ternary operations (i.e. `a ? b : c`) to only compute\\n * one branch when needed, making this function more expensive.\\n */\\n function ternary(bool condition, uint256 a, uint256 b) internal pure returns (uint256) {\\n unchecked {\\n // branchless ternary works because:\\n // b ^ (a ^ b) == a\\n // b ^ 0 == b\\n return b ^ ((a ^ b) * SafeCast.toUint(condition));\\n }\\n }\\n\\n /**\\n * @dev Returns the largest of two numbers.\\n */\\n function max(uint256 a, uint256 b) internal pure returns (uint256) {\\n return ternary(a > b, a, b);\\n }\\n\\n /**\\n * @dev Returns the smallest of two numbers.\\n */\\n function min(uint256 a, uint256 b) internal pure returns (uint256) {\\n return ternary(a < b, a, b);\\n }\\n\\n /**\\n * @dev Returns the average of two numbers. The result is rounded towards\\n * zero.\\n */\\n function average(uint256 a, uint256 b) internal pure returns (uint256) {\\n // (a + b) / 2 can overflow.\\n return (a & b) + (a ^ b) / 2;\\n }\\n\\n /**\\n * @dev Returns the ceiling of the division of two numbers.\\n *\\n * This differs from standard division with `/` in that it rounds towards infinity instead\\n * of rounding towards zero.\\n */\\n function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {\\n if (b == 0) {\\n // Guarantee the same behavior as in a regular Solidity division.\\n Panic.panic(Panic.DIVISION_BY_ZERO);\\n }\\n\\n // The following calculation ensures accurate ceiling division without overflow.\\n // Since a is non-zero, (a - 1) / b will not overflow.\\n // The largest possible result occurs when (a - 1) / b is type(uint256).max,\\n // but the largest value we can obtain is type(uint256).max - 1, which happens\\n // when a = type(uint256).max and b = 1.\\n unchecked {\\n return SafeCast.toUint(a > 0) * ((a - 1) / b + 1);\\n }\\n }\\n\\n /**\\n * @dev Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or\\n * denominator == 0.\\n *\\n * Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv) with further edits by\\n * Uniswap Labs also under MIT license.\\n */\\n function mulDiv(uint256 x, uint256 y, uint256 denominator) internal pure returns (uint256 result) {\\n unchecked {\\n (uint256 high, uint256 low) = mul512(x, y);\\n\\n // Handle non-overflow cases, 256 by 256 division.\\n if (high == 0) {\\n // Solidity will revert if denominator == 0, unlike the div opcode on its own.\\n // The surrounding unchecked block does not change this fact.\\n // See https://docs.soliditylang.org/en/latest/control-structures.html#checked-or-unchecked-arithmetic.\\n return low / denominator;\\n }\\n\\n // Make sure the result is less than 2\\u00b2\\u2075\\u2076. Also prevents denominator == 0.\\n if (denominator <= high) {\\n Panic.panic(ternary(denominator == 0, Panic.DIVISION_BY_ZERO, Panic.UNDER_OVERFLOW));\\n }\\n\\n ///////////////////////////////////////////////\\n // 512 by 256 division.\\n ///////////////////////////////////////////////\\n\\n // Make division exact by subtracting the remainder from [high low].\\n uint256 remainder;\\n assembly (\\\"memory-safe\\\") {\\n // Compute remainder using mulmod.\\n remainder := mulmod(x, y, denominator)\\n\\n // Subtract 256 bit number from 512 bit number.\\n high := sub(high, gt(remainder, low))\\n low := sub(low, remainder)\\n }\\n\\n // Factor powers of two out of denominator and compute largest power of two divisor of denominator.\\n // Always >= 1. See https://cs.stackexchange.com/q/138556/92363.\\n\\n uint256 twos = denominator & (0 - denominator);\\n assembly (\\\"memory-safe\\\") {\\n // Divide denominator by twos.\\n denominator := div(denominator, twos)\\n\\n // Divide [high low] by twos.\\n low := div(low, twos)\\n\\n // Flip twos such that it is 2\\u00b2\\u2075\\u2076 / twos. If twos is zero, then it becomes one.\\n twos := add(div(sub(0, twos), twos), 1)\\n }\\n\\n // Shift in bits from high into low.\\n low |= high * twos;\\n\\n // Invert denominator mod 2\\u00b2\\u2075\\u2076. Now that denominator is an odd number, it has an inverse modulo 2\\u00b2\\u2075\\u2076 such\\n // that denominator * inv \\u2261 1 mod 2\\u00b2\\u2075\\u2076. Compute the inverse by starting with a seed that is correct for\\n // four bits. That is, denominator * inv \\u2261 1 mod 2\\u2074.\\n uint256 inverse = (3 * denominator) ^ 2;\\n\\n // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also\\n // works in modular arithmetic, doubling the correct bits in each step.\\n inverse *= 2 - denominator * inverse; // inverse mod 2\\u2078\\n inverse *= 2 - denominator * inverse; // inverse mod 2\\u00b9\\u2076\\n inverse *= 2 - denominator * inverse; // inverse mod 2\\u00b3\\u00b2\\n inverse *= 2 - denominator * inverse; // inverse mod 2\\u2076\\u2074\\n inverse *= 2 - denominator * inverse; // inverse mod 2\\u00b9\\u00b2\\u2078\\n inverse *= 2 - denominator * inverse; // inverse mod 2\\u00b2\\u2075\\u2076\\n\\n // Because the division is now exact we can divide by multiplying with the modular inverse of denominator.\\n // This will give us the correct result modulo 2\\u00b2\\u2075\\u2076. Since the preconditions guarantee that the outcome is\\n // less than 2\\u00b2\\u2075\\u2076, this is the final result. We don't need to compute the high bits of the result and high\\n // is no longer required.\\n result = low * inverse;\\n return result;\\n }\\n }\\n\\n /**\\n * @dev Calculates x * y / denominator with full precision, following the selected rounding direction.\\n */\\n function mulDiv(uint256 x, uint256 y, uint256 denominator, Rounding rounding) internal pure returns (uint256) {\\n return mulDiv(x, y, denominator) + SafeCast.toUint(unsignedRoundsUp(rounding) && mulmod(x, y, denominator) > 0);\\n }\\n\\n /**\\n * @dev Calculates floor(x * y >> n) with full precision. Throws if result overflows a uint256.\\n */\\n function mulShr(uint256 x, uint256 y, uint8 n) internal pure returns (uint256 result) {\\n unchecked {\\n (uint256 high, uint256 low) = mul512(x, y);\\n if (high >= 1 << n) {\\n Panic.panic(Panic.UNDER_OVERFLOW);\\n }\\n return (high << (256 - n)) | (low >> n);\\n }\\n }\\n\\n /**\\n * @dev Calculates x * y >> n with full precision, following the selected rounding direction.\\n */\\n function mulShr(uint256 x, uint256 y, uint8 n, Rounding rounding) internal pure returns (uint256) {\\n return mulShr(x, y, n) + SafeCast.toUint(unsignedRoundsUp(rounding) && mulmod(x, y, 1 << n) > 0);\\n }\\n\\n /**\\n * @dev Calculate the modular multiplicative inverse of a number in Z/nZ.\\n *\\n * If n is a prime, then Z/nZ is a field. In that case all elements are inversible, except 0.\\n * If n is not a prime, then Z/nZ is not a field, and some elements might not be inversible.\\n *\\n * If the input value is not inversible, 0 is returned.\\n *\\n * NOTE: If you know for sure that n is (big) a prime, it may be cheaper to use Fermat's little theorem and get the\\n * inverse using `Math.modExp(a, n - 2, n)`. See {invModPrime}.\\n */\\n function invMod(uint256 a, uint256 n) internal pure returns (uint256) {\\n unchecked {\\n if (n == 0) return 0;\\n\\n // The inverse modulo is calculated using the Extended Euclidean Algorithm (iterative version)\\n // Used to compute integers x and y such that: ax + ny = gcd(a, n).\\n // When the gcd is 1, then the inverse of a modulo n exists and it's x.\\n // ax + ny = 1\\n // ax = 1 + (-y)n\\n // ax \\u2261 1 (mod n) # x is the inverse of a modulo n\\n\\n // If the remainder is 0 the gcd is n right away.\\n uint256 remainder = a % n;\\n uint256 gcd = n;\\n\\n // Therefore the initial coefficients are:\\n // ax + ny = gcd(a, n) = n\\n // 0a + 1n = n\\n int256 x = 0;\\n int256 y = 1;\\n\\n while (remainder != 0) {\\n uint256 quotient = gcd / remainder;\\n\\n (gcd, remainder) = (\\n // The old remainder is the next gcd to try.\\n remainder,\\n // Compute the next remainder.\\n // Can't overflow given that (a % gcd) * (gcd // (a % gcd)) <= gcd\\n // where gcd is at most n (capped to type(uint256).max)\\n gcd - remainder * quotient\\n );\\n\\n (x, y) = (\\n // Increment the coefficient of a.\\n y,\\n // Decrement the coefficient of n.\\n // Can overflow, but the result is casted to uint256 so that the\\n // next value of y is \\\"wrapped around\\\" to a value between 0 and n - 1.\\n x - y * int256(quotient)\\n );\\n }\\n\\n if (gcd != 1) return 0; // No inverse exists.\\n return ternary(x < 0, n - uint256(-x), uint256(x)); // Wrap the result if it's negative.\\n }\\n }\\n\\n /**\\n * @dev Variant of {invMod}. More efficient, but only works if `p` is known to be a prime greater than `2`.\\n *\\n * From https://en.wikipedia.org/wiki/Fermat%27s_little_theorem[Fermat's little theorem], we know that if p is\\n * prime, then `a**(p-1) \\u2261 1 mod p`. As a consequence, we have `a * a**(p-2) \\u2261 1 mod p`, which means that\\n * `a**(p-2)` is the modular multiplicative inverse of a in Fp.\\n *\\n * NOTE: this function does NOT check that `p` is a prime greater than `2`.\\n */\\n function invModPrime(uint256 a, uint256 p) internal view returns (uint256) {\\n unchecked {\\n return Math.modExp(a, p - 2, p);\\n }\\n }\\n\\n /**\\n * @dev Returns the modular exponentiation of the specified base, exponent and modulus (b ** e % m)\\n *\\n * Requirements:\\n * - modulus can't be zero\\n * - underlying staticcall to precompile must succeed\\n *\\n * IMPORTANT: The result is only valid if the underlying call succeeds. When using this function, make\\n * sure the chain you're using it on supports the precompiled contract for modular exponentiation\\n * at address 0x05 as specified in https://eips.ethereum.org/EIPS/eip-198[EIP-198]. Otherwise,\\n * the underlying function will succeed given the lack of a revert, but the result may be incorrectly\\n * interpreted as 0.\\n */\\n function modExp(uint256 b, uint256 e, uint256 m) internal view returns (uint256) {\\n (bool success, uint256 result) = tryModExp(b, e, m);\\n if (!success) {\\n Panic.panic(Panic.DIVISION_BY_ZERO);\\n }\\n return result;\\n }\\n\\n /**\\n * @dev Returns the modular exponentiation of the specified base, exponent and modulus (b ** e % m).\\n * It includes a success flag indicating if the operation succeeded. Operation will be marked as failed if trying\\n * to operate modulo 0 or if the underlying precompile reverted.\\n *\\n * IMPORTANT: The result is only valid if the success flag is true. When using this function, make sure the chain\\n * you're using it on supports the precompiled contract for modular exponentiation at address 0x05 as specified in\\n * https://eips.ethereum.org/EIPS/eip-198[EIP-198]. Otherwise, the underlying function will succeed given the lack\\n * of a revert, but the result may be incorrectly interpreted as 0.\\n */\\n function tryModExp(uint256 b, uint256 e, uint256 m) internal view returns (bool success, uint256 result) {\\n if (m == 0) return (false, 0);\\n assembly (\\\"memory-safe\\\") {\\n let ptr := mload(0x40)\\n // | Offset | Content | Content (Hex) |\\n // |-----------|------------|--------------------------------------------------------------------|\\n // | 0x00:0x1f | size of b | 0x0000000000000000000000000000000000000000000000000000000000000020 |\\n // | 0x20:0x3f | size of e | 0x0000000000000000000000000000000000000000000000000000000000000020 |\\n // | 0x40:0x5f | size of m | 0x0000000000000000000000000000000000000000000000000000000000000020 |\\n // | 0x60:0x7f | value of b | 0x<.............................................................b> |\\n // | 0x80:0x9f | value of e | 0x<.............................................................e> |\\n // | 0xa0:0xbf | value of m | 0x<.............................................................m> |\\n mstore(ptr, 0x20)\\n mstore(add(ptr, 0x20), 0x20)\\n mstore(add(ptr, 0x40), 0x20)\\n mstore(add(ptr, 0x60), b)\\n mstore(add(ptr, 0x80), e)\\n mstore(add(ptr, 0xa0), m)\\n\\n // Given the result < m, it's guaranteed to fit in 32 bytes,\\n // so we can use the memory scratch space located at offset 0.\\n success := staticcall(gas(), 0x05, ptr, 0xc0, 0x00, 0x20)\\n result := mload(0x00)\\n }\\n }\\n\\n /**\\n * @dev Variant of {modExp} that supports inputs of arbitrary length.\\n */\\n function modExp(bytes memory b, bytes memory e, bytes memory m) internal view returns (bytes memory) {\\n (bool success, bytes memory result) = tryModExp(b, e, m);\\n if (!success) {\\n Panic.panic(Panic.DIVISION_BY_ZERO);\\n }\\n return result;\\n }\\n\\n /**\\n * @dev Variant of {tryModExp} that supports inputs of arbitrary length.\\n */\\n function tryModExp(\\n bytes memory b,\\n bytes memory e,\\n bytes memory m\\n ) internal view returns (bool success, bytes memory result) {\\n if (_zeroBytes(m)) return (false, new bytes(0));\\n\\n uint256 mLen = m.length;\\n\\n // Encode call args in result and move the free memory pointer\\n result = abi.encodePacked(b.length, e.length, mLen, b, e, m);\\n\\n assembly (\\\"memory-safe\\\") {\\n let dataPtr := add(result, 0x20)\\n // Write result on top of args to avoid allocating extra memory.\\n success := staticcall(gas(), 0x05, dataPtr, mload(result), dataPtr, mLen)\\n // Overwrite the length.\\n // result.length > returndatasize() is guaranteed because returndatasize() == m.length\\n mstore(result, mLen)\\n // Set the memory pointer after the returned data.\\n mstore(0x40, add(dataPtr, mLen))\\n }\\n }\\n\\n /**\\n * @dev Returns whether the provided byte array is zero.\\n */\\n function _zeroBytes(bytes memory byteArray) private pure returns (bool) {\\n for (uint256 i = 0; i < byteArray.length; ++i) {\\n if (byteArray[i] != 0) {\\n return false;\\n }\\n }\\n return true;\\n }\\n\\n /**\\n * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded\\n * towards zero.\\n *\\n * This method is based on Newton's method for computing square roots; the algorithm is restricted to only\\n * using integer operations.\\n */\\n function sqrt(uint256 a) internal pure returns (uint256) {\\n unchecked {\\n // Take care of easy edge cases when a == 0 or a == 1\\n if (a <= 1) {\\n return a;\\n }\\n\\n // In this function, we use Newton's method to get a root of `f(x) := x\\u00b2 - a`. It involves building a\\n // sequence x_n that converges toward sqrt(a). For each iteration x_n, we also define the error between\\n // the current value as `\\u03b5_n = | x_n - sqrt(a) |`.\\n //\\n // For our first estimation, we consider `e` the smallest power of 2 which is bigger than the square root\\n // of the target. (i.e. `2**(e-1) \\u2264 sqrt(a) < 2**e`). We know that `e \\u2264 128` because `(2\\u00b9\\u00b2\\u2078)\\u00b2 = 2\\u00b2\\u2075\\u2076` is\\n // bigger than any uint256.\\n //\\n // By noticing that\\n // `2**(e-1) \\u2264 sqrt(a) < 2**e \\u2192 (2**(e-1))\\u00b2 \\u2264 a < (2**e)\\u00b2 \\u2192 2**(2*e-2) \\u2264 a < 2**(2*e)`\\n // we can deduce that `e - 1` is `log2(a) / 2`. We can thus compute `x_n = 2**(e-1)` using a method similar\\n // to the msb function.\\n uint256 aa = a;\\n uint256 xn = 1;\\n\\n if (aa >= (1 << 128)) {\\n aa >>= 128;\\n xn <<= 64;\\n }\\n if (aa >= (1 << 64)) {\\n aa >>= 64;\\n xn <<= 32;\\n }\\n if (aa >= (1 << 32)) {\\n aa >>= 32;\\n xn <<= 16;\\n }\\n if (aa >= (1 << 16)) {\\n aa >>= 16;\\n xn <<= 8;\\n }\\n if (aa >= (1 << 8)) {\\n aa >>= 8;\\n xn <<= 4;\\n }\\n if (aa >= (1 << 4)) {\\n aa >>= 4;\\n xn <<= 2;\\n }\\n if (aa >= (1 << 2)) {\\n xn <<= 1;\\n }\\n\\n // We now have x_n such that `x_n = 2**(e-1) \\u2264 sqrt(a) < 2**e = 2 * x_n`. This implies \\u03b5_n \\u2264 2**(e-1).\\n //\\n // We can refine our estimation by noticing that the middle of that interval minimizes the error.\\n // If we move x_n to equal 2**(e-1) + 2**(e-2), then we reduce the error to \\u03b5_n \\u2264 2**(e-2).\\n // This is going to be our x_0 (and \\u03b5_0)\\n xn = (3 * xn) >> 1; // \\u03b5_0 := | x_0 - sqrt(a) | \\u2264 2**(e-2)\\n\\n // From here, Newton's method give us:\\n // x_{n+1} = (x_n + a / x_n) / 2\\n //\\n // One should note that:\\n // x_{n+1}\\u00b2 - a = ((x_n + a / x_n) / 2)\\u00b2 - a\\n // = ((x_n\\u00b2 + a) / (2 * x_n))\\u00b2 - a\\n // = (x_n\\u2074 + 2 * a * x_n\\u00b2 + a\\u00b2) / (4 * x_n\\u00b2) - a\\n // = (x_n\\u2074 + 2 * a * x_n\\u00b2 + a\\u00b2 - 4 * a * x_n\\u00b2) / (4 * x_n\\u00b2)\\n // = (x_n\\u2074 - 2 * a * x_n\\u00b2 + a\\u00b2) / (4 * x_n\\u00b2)\\n // = (x_n\\u00b2 - a)\\u00b2 / (2 * x_n)\\u00b2\\n // = ((x_n\\u00b2 - a) / (2 * x_n))\\u00b2\\n // \\u2265 0\\n // Which proves that for all n \\u2265 1, sqrt(a) \\u2264 x_n\\n //\\n // This gives us the proof of quadratic convergence of the sequence:\\n // \\u03b5_{n+1} = | x_{n+1} - sqrt(a) |\\n // = | (x_n + a / x_n) / 2 - sqrt(a) |\\n // = | (x_n\\u00b2 + a - 2*x_n*sqrt(a)) / (2 * x_n) |\\n // = | (x_n - sqrt(a))\\u00b2 / (2 * x_n) |\\n // = | \\u03b5_n\\u00b2 / (2 * x_n) |\\n // = \\u03b5_n\\u00b2 / | (2 * x_n) |\\n //\\n // For the first iteration, we have a special case where x_0 is known:\\n // \\u03b5_1 = \\u03b5_0\\u00b2 / | (2 * x_0) |\\n // \\u2264 (2**(e-2))\\u00b2 / (2 * (2**(e-1) + 2**(e-2)))\\n // \\u2264 2**(2*e-4) / (3 * 2**(e-1))\\n // \\u2264 2**(e-3) / 3\\n // \\u2264 2**(e-3-log2(3))\\n // \\u2264 2**(e-4.5)\\n //\\n // For the following iterations, we use the fact that, 2**(e-1) \\u2264 sqrt(a) \\u2264 x_n:\\n // \\u03b5_{n+1} = \\u03b5_n\\u00b2 / | (2 * x_n) |\\n // \\u2264 (2**(e-k))\\u00b2 / (2 * 2**(e-1))\\n // \\u2264 2**(2*e-2*k) / 2**e\\n // \\u2264 2**(e-2*k)\\n xn = (xn + a / xn) >> 1; // \\u03b5_1 := | x_1 - sqrt(a) | \\u2264 2**(e-4.5) -- special case, see above\\n xn = (xn + a / xn) >> 1; // \\u03b5_2 := | x_2 - sqrt(a) | \\u2264 2**(e-9) -- general case with k = 4.5\\n xn = (xn + a / xn) >> 1; // \\u03b5_3 := | x_3 - sqrt(a) | \\u2264 2**(e-18) -- general case with k = 9\\n xn = (xn + a / xn) >> 1; // \\u03b5_4 := | x_4 - sqrt(a) | \\u2264 2**(e-36) -- general case with k = 18\\n xn = (xn + a / xn) >> 1; // \\u03b5_5 := | x_5 - sqrt(a) | \\u2264 2**(e-72) -- general case with k = 36\\n xn = (xn + a / xn) >> 1; // \\u03b5_6 := | x_6 - sqrt(a) | \\u2264 2**(e-144) -- general case with k = 72\\n\\n // Because e \\u2264 128 (as discussed during the first estimation phase), we know have reached a precision\\n // \\u03b5_6 \\u2264 2**(e-144) < 1. Given we're operating on integers, then we can ensure that xn is now either\\n // sqrt(a) or sqrt(a) + 1.\\n return xn - SafeCast.toUint(xn > a / xn);\\n }\\n }\\n\\n /**\\n * @dev Calculates sqrt(a), following the selected rounding direction.\\n */\\n function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) {\\n unchecked {\\n uint256 result = sqrt(a);\\n return result + SafeCast.toUint(unsignedRoundsUp(rounding) && result * result < a);\\n }\\n }\\n\\n /**\\n * @dev Return the log in base 2 of a positive value rounded towards zero.\\n * Returns 0 if given 0.\\n */\\n function log2(uint256 x) internal pure returns (uint256 r) {\\n // If value has upper 128 bits set, log2 result is at least 128\\n r = SafeCast.toUint(x > 0xffffffffffffffffffffffffffffffff) << 7;\\n // If upper 64 bits of 128-bit half set, add 64 to result\\n r |= SafeCast.toUint((x >> r) > 0xffffffffffffffff) << 6;\\n // If upper 32 bits of 64-bit half set, add 32 to result\\n r |= SafeCast.toUint((x >> r) > 0xffffffff) << 5;\\n // If upper 16 bits of 32-bit half set, add 16 to result\\n r |= SafeCast.toUint((x >> r) > 0xffff) << 4;\\n // If upper 8 bits of 16-bit half set, add 8 to result\\n r |= SafeCast.toUint((x >> r) > 0xff) << 3;\\n // If upper 4 bits of 8-bit half set, add 4 to result\\n r |= SafeCast.toUint((x >> r) > 0xf) << 2;\\n\\n // Shifts value right by the current result and use it as an index into this lookup table:\\n //\\n // | x (4 bits) | index | table[index] = MSB position |\\n // |------------|---------|-----------------------------|\\n // | 0000 | 0 | table[0] = 0 |\\n // | 0001 | 1 | table[1] = 0 |\\n // | 0010 | 2 | table[2] = 1 |\\n // | 0011 | 3 | table[3] = 1 |\\n // | 0100 | 4 | table[4] = 2 |\\n // | 0101 | 5 | table[5] = 2 |\\n // | 0110 | 6 | table[6] = 2 |\\n // | 0111 | 7 | table[7] = 2 |\\n // | 1000 | 8 | table[8] = 3 |\\n // | 1001 | 9 | table[9] = 3 |\\n // | 1010 | 10 | table[10] = 3 |\\n // | 1011 | 11 | table[11] = 3 |\\n // | 1100 | 12 | table[12] = 3 |\\n // | 1101 | 13 | table[13] = 3 |\\n // | 1110 | 14 | table[14] = 3 |\\n // | 1111 | 15 | table[15] = 3 |\\n //\\n // The lookup table is represented as a 32-byte value with the MSB positions for 0-15 in the last 16 bytes.\\n assembly (\\\"memory-safe\\\") {\\n r := or(r, byte(shr(r, x), 0x0000010102020202030303030303030300000000000000000000000000000000))\\n }\\n }\\n\\n /**\\n * @dev Return the log in base 2, following the selected rounding direction, of a positive value.\\n * Returns 0 if given 0.\\n */\\n function log2(uint256 value, Rounding rounding) internal pure returns (uint256) {\\n unchecked {\\n uint256 result = log2(value);\\n return result + SafeCast.toUint(unsignedRoundsUp(rounding) && 1 << result < value);\\n }\\n }\\n\\n /**\\n * @dev Return the log in base 10 of a positive value rounded towards zero.\\n * Returns 0 if given 0.\\n */\\n function log10(uint256 value) internal pure returns (uint256) {\\n uint256 result = 0;\\n unchecked {\\n if (value >= 10 ** 64) {\\n value /= 10 ** 64;\\n result += 64;\\n }\\n if (value >= 10 ** 32) {\\n value /= 10 ** 32;\\n result += 32;\\n }\\n if (value >= 10 ** 16) {\\n value /= 10 ** 16;\\n result += 16;\\n }\\n if (value >= 10 ** 8) {\\n value /= 10 ** 8;\\n result += 8;\\n }\\n if (value >= 10 ** 4) {\\n value /= 10 ** 4;\\n result += 4;\\n }\\n if (value >= 10 ** 2) {\\n value /= 10 ** 2;\\n result += 2;\\n }\\n if (value >= 10 ** 1) {\\n result += 1;\\n }\\n }\\n return result;\\n }\\n\\n /**\\n * @dev Return the log in base 10, following the selected rounding direction, of a positive value.\\n * Returns 0 if given 0.\\n */\\n function log10(uint256 value, Rounding rounding) internal pure returns (uint256) {\\n unchecked {\\n uint256 result = log10(value);\\n return result + SafeCast.toUint(unsignedRoundsUp(rounding) && 10 ** result < value);\\n }\\n }\\n\\n /**\\n * @dev Return the log in base 256 of a positive value rounded towards zero.\\n * Returns 0 if given 0.\\n *\\n * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string.\\n */\\n function log256(uint256 x) internal pure returns (uint256 r) {\\n // If value has upper 128 bits set, log2 result is at least 128\\n r = SafeCast.toUint(x > 0xffffffffffffffffffffffffffffffff) << 7;\\n // If upper 64 bits of 128-bit half set, add 64 to result\\n r |= SafeCast.toUint((x >> r) > 0xffffffffffffffff) << 6;\\n // If upper 32 bits of 64-bit half set, add 32 to result\\n r |= SafeCast.toUint((x >> r) > 0xffffffff) << 5;\\n // If upper 16 bits of 32-bit half set, add 16 to result\\n r |= SafeCast.toUint((x >> r) > 0xffff) << 4;\\n // Add 1 if upper 8 bits of 16-bit half set, and divide accumulated result by 8\\n return (r >> 3) | SafeCast.toUint((x >> r) > 0xff);\\n }\\n\\n /**\\n * @dev Return the log in base 256, following the selected rounding direction, of a positive value.\\n * Returns 0 if given 0.\\n */\\n function log256(uint256 value, Rounding rounding) internal pure returns (uint256) {\\n unchecked {\\n uint256 result = log256(value);\\n return result + SafeCast.toUint(unsignedRoundsUp(rounding) && 1 << (result << 3) < value);\\n }\\n }\\n\\n /**\\n * @dev Returns whether a provided rounding mode is considered rounding up for unsigned integers.\\n */\\n function unsignedRoundsUp(Rounding rounding) internal pure returns (bool) {\\n return uint8(rounding) % 2 == 1;\\n }\\n}\\n\",\"keccak256\":\"0x1225214420c83ebcca88f2ae2b50f053aaa7df7bd684c3e878d334627f2edfc6\",\"license\":\"MIT\"},\"@openzeppelin/contracts/utils/math/SafeCast.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.1.0) (utils/math/SafeCast.sol)\\n// This file was procedurally generated from scripts/generate/templates/SafeCast.js.\\n\\npragma solidity ^0.8.20;\\n\\n/**\\n * @dev Wrappers over Solidity's uintXX/intXX/bool casting operators with added overflow\\n * checks.\\n *\\n * Downcasting from uint256/int256 in Solidity does not revert on overflow. This can\\n * easily result in undesired exploitation or bugs, since developers usually\\n * assume that overflows raise errors. `SafeCast` restores this intuition by\\n * reverting the transaction when such an operation overflows.\\n *\\n * Using this library instead of the unchecked operations eliminates an entire\\n * class of bugs, so it's recommended to use it always.\\n */\\nlibrary SafeCast {\\n /**\\n * @dev Value doesn't fit in an uint of `bits` size.\\n */\\n error SafeCastOverflowedUintDowncast(uint8 bits, uint256 value);\\n\\n /**\\n * @dev An int value doesn't fit in an uint of `bits` size.\\n */\\n error SafeCastOverflowedIntToUint(int256 value);\\n\\n /**\\n * @dev Value doesn't fit in an int of `bits` size.\\n */\\n error SafeCastOverflowedIntDowncast(uint8 bits, int256 value);\\n\\n /**\\n * @dev An uint value doesn't fit in an int of `bits` size.\\n */\\n error SafeCastOverflowedUintToInt(uint256 value);\\n\\n /**\\n * @dev Returns the downcasted uint248 from uint256, reverting on\\n * overflow (when the input is greater than largest uint248).\\n *\\n * Counterpart to Solidity's `uint248` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 248 bits\\n */\\n function toUint248(uint256 value) internal pure returns (uint248) {\\n if (value > type(uint248).max) {\\n revert SafeCastOverflowedUintDowncast(248, value);\\n }\\n return uint248(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint240 from uint256, reverting on\\n * overflow (when the input is greater than largest uint240).\\n *\\n * Counterpart to Solidity's `uint240` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 240 bits\\n */\\n function toUint240(uint256 value) internal pure returns (uint240) {\\n if (value > type(uint240).max) {\\n revert SafeCastOverflowedUintDowncast(240, value);\\n }\\n return uint240(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint232 from uint256, reverting on\\n * overflow (when the input is greater than largest uint232).\\n *\\n * Counterpart to Solidity's `uint232` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 232 bits\\n */\\n function toUint232(uint256 value) internal pure returns (uint232) {\\n if (value > type(uint232).max) {\\n revert SafeCastOverflowedUintDowncast(232, value);\\n }\\n return uint232(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint224 from uint256, reverting on\\n * overflow (when the input is greater than largest uint224).\\n *\\n * Counterpart to Solidity's `uint224` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 224 bits\\n */\\n function toUint224(uint256 value) internal pure returns (uint224) {\\n if (value > type(uint224).max) {\\n revert SafeCastOverflowedUintDowncast(224, value);\\n }\\n return uint224(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint216 from uint256, reverting on\\n * overflow (when the input is greater than largest uint216).\\n *\\n * Counterpart to Solidity's `uint216` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 216 bits\\n */\\n function toUint216(uint256 value) internal pure returns (uint216) {\\n if (value > type(uint216).max) {\\n revert SafeCastOverflowedUintDowncast(216, value);\\n }\\n return uint216(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint208 from uint256, reverting on\\n * overflow (when the input is greater than largest uint208).\\n *\\n * Counterpart to Solidity's `uint208` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 208 bits\\n */\\n function toUint208(uint256 value) internal pure returns (uint208) {\\n if (value > type(uint208).max) {\\n revert SafeCastOverflowedUintDowncast(208, value);\\n }\\n return uint208(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint200 from uint256, reverting on\\n * overflow (when the input is greater than largest uint200).\\n *\\n * Counterpart to Solidity's `uint200` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 200 bits\\n */\\n function toUint200(uint256 value) internal pure returns (uint200) {\\n if (value > type(uint200).max) {\\n revert SafeCastOverflowedUintDowncast(200, value);\\n }\\n return uint200(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint192 from uint256, reverting on\\n * overflow (when the input is greater than largest uint192).\\n *\\n * Counterpart to Solidity's `uint192` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 192 bits\\n */\\n function toUint192(uint256 value) internal pure returns (uint192) {\\n if (value > type(uint192).max) {\\n revert SafeCastOverflowedUintDowncast(192, value);\\n }\\n return uint192(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint184 from uint256, reverting on\\n * overflow (when the input is greater than largest uint184).\\n *\\n * Counterpart to Solidity's `uint184` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 184 bits\\n */\\n function toUint184(uint256 value) internal pure returns (uint184) {\\n if (value > type(uint184).max) {\\n revert SafeCastOverflowedUintDowncast(184, value);\\n }\\n return uint184(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint176 from uint256, reverting on\\n * overflow (when the input is greater than largest uint176).\\n *\\n * Counterpart to Solidity's `uint176` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 176 bits\\n */\\n function toUint176(uint256 value) internal pure returns (uint176) {\\n if (value > type(uint176).max) {\\n revert SafeCastOverflowedUintDowncast(176, value);\\n }\\n return uint176(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint168 from uint256, reverting on\\n * overflow (when the input is greater than largest uint168).\\n *\\n * Counterpart to Solidity's `uint168` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 168 bits\\n */\\n function toUint168(uint256 value) internal pure returns (uint168) {\\n if (value > type(uint168).max) {\\n revert SafeCastOverflowedUintDowncast(168, value);\\n }\\n return uint168(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint160 from uint256, reverting on\\n * overflow (when the input is greater than largest uint160).\\n *\\n * Counterpart to Solidity's `uint160` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 160 bits\\n */\\n function toUint160(uint256 value) internal pure returns (uint160) {\\n if (value > type(uint160).max) {\\n revert SafeCastOverflowedUintDowncast(160, value);\\n }\\n return uint160(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint152 from uint256, reverting on\\n * overflow (when the input is greater than largest uint152).\\n *\\n * Counterpart to Solidity's `uint152` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 152 bits\\n */\\n function toUint152(uint256 value) internal pure returns (uint152) {\\n if (value > type(uint152).max) {\\n revert SafeCastOverflowedUintDowncast(152, value);\\n }\\n return uint152(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint144 from uint256, reverting on\\n * overflow (when the input is greater than largest uint144).\\n *\\n * Counterpart to Solidity's `uint144` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 144 bits\\n */\\n function toUint144(uint256 value) internal pure returns (uint144) {\\n if (value > type(uint144).max) {\\n revert SafeCastOverflowedUintDowncast(144, value);\\n }\\n return uint144(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint136 from uint256, reverting on\\n * overflow (when the input is greater than largest uint136).\\n *\\n * Counterpart to Solidity's `uint136` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 136 bits\\n */\\n function toUint136(uint256 value) internal pure returns (uint136) {\\n if (value > type(uint136).max) {\\n revert SafeCastOverflowedUintDowncast(136, value);\\n }\\n return uint136(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint128 from uint256, reverting on\\n * overflow (when the input is greater than largest uint128).\\n *\\n * Counterpart to Solidity's `uint128` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 128 bits\\n */\\n function toUint128(uint256 value) internal pure returns (uint128) {\\n if (value > type(uint128).max) {\\n revert SafeCastOverflowedUintDowncast(128, value);\\n }\\n return uint128(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint120 from uint256, reverting on\\n * overflow (when the input is greater than largest uint120).\\n *\\n * Counterpart to Solidity's `uint120` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 120 bits\\n */\\n function toUint120(uint256 value) internal pure returns (uint120) {\\n if (value > type(uint120).max) {\\n revert SafeCastOverflowedUintDowncast(120, value);\\n }\\n return uint120(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint112 from uint256, reverting on\\n * overflow (when the input is greater than largest uint112).\\n *\\n * Counterpart to Solidity's `uint112` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 112 bits\\n */\\n function toUint112(uint256 value) internal pure returns (uint112) {\\n if (value > type(uint112).max) {\\n revert SafeCastOverflowedUintDowncast(112, value);\\n }\\n return uint112(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint104 from uint256, reverting on\\n * overflow (when the input is greater than largest uint104).\\n *\\n * Counterpart to Solidity's `uint104` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 104 bits\\n */\\n function toUint104(uint256 value) internal pure returns (uint104) {\\n if (value > type(uint104).max) {\\n revert SafeCastOverflowedUintDowncast(104, value);\\n }\\n return uint104(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint96 from uint256, reverting on\\n * overflow (when the input is greater than largest uint96).\\n *\\n * Counterpart to Solidity's `uint96` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 96 bits\\n */\\n function toUint96(uint256 value) internal pure returns (uint96) {\\n if (value > type(uint96).max) {\\n revert SafeCastOverflowedUintDowncast(96, value);\\n }\\n return uint96(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint88 from uint256, reverting on\\n * overflow (when the input is greater than largest uint88).\\n *\\n * Counterpart to Solidity's `uint88` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 88 bits\\n */\\n function toUint88(uint256 value) internal pure returns (uint88) {\\n if (value > type(uint88).max) {\\n revert SafeCastOverflowedUintDowncast(88, value);\\n }\\n return uint88(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint80 from uint256, reverting on\\n * overflow (when the input is greater than largest uint80).\\n *\\n * Counterpart to Solidity's `uint80` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 80 bits\\n */\\n function toUint80(uint256 value) internal pure returns (uint80) {\\n if (value > type(uint80).max) {\\n revert SafeCastOverflowedUintDowncast(80, value);\\n }\\n return uint80(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint72 from uint256, reverting on\\n * overflow (when the input is greater than largest uint72).\\n *\\n * Counterpart to Solidity's `uint72` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 72 bits\\n */\\n function toUint72(uint256 value) internal pure returns (uint72) {\\n if (value > type(uint72).max) {\\n revert SafeCastOverflowedUintDowncast(72, value);\\n }\\n return uint72(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint64 from uint256, reverting on\\n * overflow (when the input is greater than largest uint64).\\n *\\n * Counterpart to Solidity's `uint64` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 64 bits\\n */\\n function toUint64(uint256 value) internal pure returns (uint64) {\\n if (value > type(uint64).max) {\\n revert SafeCastOverflowedUintDowncast(64, value);\\n }\\n return uint64(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint56 from uint256, reverting on\\n * overflow (when the input is greater than largest uint56).\\n *\\n * Counterpart to Solidity's `uint56` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 56 bits\\n */\\n function toUint56(uint256 value) internal pure returns (uint56) {\\n if (value > type(uint56).max) {\\n revert SafeCastOverflowedUintDowncast(56, value);\\n }\\n return uint56(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint48 from uint256, reverting on\\n * overflow (when the input is greater than largest uint48).\\n *\\n * Counterpart to Solidity's `uint48` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 48 bits\\n */\\n function toUint48(uint256 value) internal pure returns (uint48) {\\n if (value > type(uint48).max) {\\n revert SafeCastOverflowedUintDowncast(48, value);\\n }\\n return uint48(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint40 from uint256, reverting on\\n * overflow (when the input is greater than largest uint40).\\n *\\n * Counterpart to Solidity's `uint40` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 40 bits\\n */\\n function toUint40(uint256 value) internal pure returns (uint40) {\\n if (value > type(uint40).max) {\\n revert SafeCastOverflowedUintDowncast(40, value);\\n }\\n return uint40(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint32 from uint256, reverting on\\n * overflow (when the input is greater than largest uint32).\\n *\\n * Counterpart to Solidity's `uint32` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 32 bits\\n */\\n function toUint32(uint256 value) internal pure returns (uint32) {\\n if (value > type(uint32).max) {\\n revert SafeCastOverflowedUintDowncast(32, value);\\n }\\n return uint32(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint24 from uint256, reverting on\\n * overflow (when the input is greater than largest uint24).\\n *\\n * Counterpart to Solidity's `uint24` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 24 bits\\n */\\n function toUint24(uint256 value) internal pure returns (uint24) {\\n if (value > type(uint24).max) {\\n revert SafeCastOverflowedUintDowncast(24, value);\\n }\\n return uint24(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint16 from uint256, reverting on\\n * overflow (when the input is greater than largest uint16).\\n *\\n * Counterpart to Solidity's `uint16` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 16 bits\\n */\\n function toUint16(uint256 value) internal pure returns (uint16) {\\n if (value > type(uint16).max) {\\n revert SafeCastOverflowedUintDowncast(16, value);\\n }\\n return uint16(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint8 from uint256, reverting on\\n * overflow (when the input is greater than largest uint8).\\n *\\n * Counterpart to Solidity's `uint8` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 8 bits\\n */\\n function toUint8(uint256 value) internal pure returns (uint8) {\\n if (value > type(uint8).max) {\\n revert SafeCastOverflowedUintDowncast(8, value);\\n }\\n return uint8(value);\\n }\\n\\n /**\\n * @dev Converts a signed int256 into an unsigned uint256.\\n *\\n * Requirements:\\n *\\n * - input must be greater than or equal to 0.\\n */\\n function toUint256(int256 value) internal pure returns (uint256) {\\n if (value < 0) {\\n revert SafeCastOverflowedIntToUint(value);\\n }\\n return uint256(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted int248 from int256, reverting on\\n * overflow (when the input is less than smallest int248 or\\n * greater than largest int248).\\n *\\n * Counterpart to Solidity's `int248` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 248 bits\\n */\\n function toInt248(int256 value) internal pure returns (int248 downcasted) {\\n downcasted = int248(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(248, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int240 from int256, reverting on\\n * overflow (when the input is less than smallest int240 or\\n * greater than largest int240).\\n *\\n * Counterpart to Solidity's `int240` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 240 bits\\n */\\n function toInt240(int256 value) internal pure returns (int240 downcasted) {\\n downcasted = int240(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(240, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int232 from int256, reverting on\\n * overflow (when the input is less than smallest int232 or\\n * greater than largest int232).\\n *\\n * Counterpart to Solidity's `int232` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 232 bits\\n */\\n function toInt232(int256 value) internal pure returns (int232 downcasted) {\\n downcasted = int232(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(232, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int224 from int256, reverting on\\n * overflow (when the input is less than smallest int224 or\\n * greater than largest int224).\\n *\\n * Counterpart to Solidity's `int224` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 224 bits\\n */\\n function toInt224(int256 value) internal pure returns (int224 downcasted) {\\n downcasted = int224(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(224, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int216 from int256, reverting on\\n * overflow (when the input is less than smallest int216 or\\n * greater than largest int216).\\n *\\n * Counterpart to Solidity's `int216` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 216 bits\\n */\\n function toInt216(int256 value) internal pure returns (int216 downcasted) {\\n downcasted = int216(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(216, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int208 from int256, reverting on\\n * overflow (when the input is less than smallest int208 or\\n * greater than largest int208).\\n *\\n * Counterpart to Solidity's `int208` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 208 bits\\n */\\n function toInt208(int256 value) internal pure returns (int208 downcasted) {\\n downcasted = int208(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(208, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int200 from int256, reverting on\\n * overflow (when the input is less than smallest int200 or\\n * greater than largest int200).\\n *\\n * Counterpart to Solidity's `int200` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 200 bits\\n */\\n function toInt200(int256 value) internal pure returns (int200 downcasted) {\\n downcasted = int200(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(200, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int192 from int256, reverting on\\n * overflow (when the input is less than smallest int192 or\\n * greater than largest int192).\\n *\\n * Counterpart to Solidity's `int192` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 192 bits\\n */\\n function toInt192(int256 value) internal pure returns (int192 downcasted) {\\n downcasted = int192(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(192, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int184 from int256, reverting on\\n * overflow (when the input is less than smallest int184 or\\n * greater than largest int184).\\n *\\n * Counterpart to Solidity's `int184` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 184 bits\\n */\\n function toInt184(int256 value) internal pure returns (int184 downcasted) {\\n downcasted = int184(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(184, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int176 from int256, reverting on\\n * overflow (when the input is less than smallest int176 or\\n * greater than largest int176).\\n *\\n * Counterpart to Solidity's `int176` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 176 bits\\n */\\n function toInt176(int256 value) internal pure returns (int176 downcasted) {\\n downcasted = int176(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(176, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int168 from int256, reverting on\\n * overflow (when the input is less than smallest int168 or\\n * greater than largest int168).\\n *\\n * Counterpart to Solidity's `int168` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 168 bits\\n */\\n function toInt168(int256 value) internal pure returns (int168 downcasted) {\\n downcasted = int168(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(168, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int160 from int256, reverting on\\n * overflow (when the input is less than smallest int160 or\\n * greater than largest int160).\\n *\\n * Counterpart to Solidity's `int160` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 160 bits\\n */\\n function toInt160(int256 value) internal pure returns (int160 downcasted) {\\n downcasted = int160(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(160, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int152 from int256, reverting on\\n * overflow (when the input is less than smallest int152 or\\n * greater than largest int152).\\n *\\n * Counterpart to Solidity's `int152` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 152 bits\\n */\\n function toInt152(int256 value) internal pure returns (int152 downcasted) {\\n downcasted = int152(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(152, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int144 from int256, reverting on\\n * overflow (when the input is less than smallest int144 or\\n * greater than largest int144).\\n *\\n * Counterpart to Solidity's `int144` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 144 bits\\n */\\n function toInt144(int256 value) internal pure returns (int144 downcasted) {\\n downcasted = int144(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(144, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int136 from int256, reverting on\\n * overflow (when the input is less than smallest int136 or\\n * greater than largest int136).\\n *\\n * Counterpart to Solidity's `int136` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 136 bits\\n */\\n function toInt136(int256 value) internal pure returns (int136 downcasted) {\\n downcasted = int136(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(136, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int128 from int256, reverting on\\n * overflow (when the input is less than smallest int128 or\\n * greater than largest int128).\\n *\\n * Counterpart to Solidity's `int128` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 128 bits\\n */\\n function toInt128(int256 value) internal pure returns (int128 downcasted) {\\n downcasted = int128(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(128, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int120 from int256, reverting on\\n * overflow (when the input is less than smallest int120 or\\n * greater than largest int120).\\n *\\n * Counterpart to Solidity's `int120` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 120 bits\\n */\\n function toInt120(int256 value) internal pure returns (int120 downcasted) {\\n downcasted = int120(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(120, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int112 from int256, reverting on\\n * overflow (when the input is less than smallest int112 or\\n * greater than largest int112).\\n *\\n * Counterpart to Solidity's `int112` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 112 bits\\n */\\n function toInt112(int256 value) internal pure returns (int112 downcasted) {\\n downcasted = int112(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(112, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int104 from int256, reverting on\\n * overflow (when the input is less than smallest int104 or\\n * greater than largest int104).\\n *\\n * Counterpart to Solidity's `int104` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 104 bits\\n */\\n function toInt104(int256 value) internal pure returns (int104 downcasted) {\\n downcasted = int104(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(104, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int96 from int256, reverting on\\n * overflow (when the input is less than smallest int96 or\\n * greater than largest int96).\\n *\\n * Counterpart to Solidity's `int96` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 96 bits\\n */\\n function toInt96(int256 value) internal pure returns (int96 downcasted) {\\n downcasted = int96(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(96, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int88 from int256, reverting on\\n * overflow (when the input is less than smallest int88 or\\n * greater than largest int88).\\n *\\n * Counterpart to Solidity's `int88` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 88 bits\\n */\\n function toInt88(int256 value) internal pure returns (int88 downcasted) {\\n downcasted = int88(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(88, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int80 from int256, reverting on\\n * overflow (when the input is less than smallest int80 or\\n * greater than largest int80).\\n *\\n * Counterpart to Solidity's `int80` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 80 bits\\n */\\n function toInt80(int256 value) internal pure returns (int80 downcasted) {\\n downcasted = int80(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(80, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int72 from int256, reverting on\\n * overflow (when the input is less than smallest int72 or\\n * greater than largest int72).\\n *\\n * Counterpart to Solidity's `int72` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 72 bits\\n */\\n function toInt72(int256 value) internal pure returns (int72 downcasted) {\\n downcasted = int72(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(72, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int64 from int256, reverting on\\n * overflow (when the input is less than smallest int64 or\\n * greater than largest int64).\\n *\\n * Counterpart to Solidity's `int64` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 64 bits\\n */\\n function toInt64(int256 value) internal pure returns (int64 downcasted) {\\n downcasted = int64(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(64, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int56 from int256, reverting on\\n * overflow (when the input is less than smallest int56 or\\n * greater than largest int56).\\n *\\n * Counterpart to Solidity's `int56` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 56 bits\\n */\\n function toInt56(int256 value) internal pure returns (int56 downcasted) {\\n downcasted = int56(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(56, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int48 from int256, reverting on\\n * overflow (when the input is less than smallest int48 or\\n * greater than largest int48).\\n *\\n * Counterpart to Solidity's `int48` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 48 bits\\n */\\n function toInt48(int256 value) internal pure returns (int48 downcasted) {\\n downcasted = int48(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(48, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int40 from int256, reverting on\\n * overflow (when the input is less than smallest int40 or\\n * greater than largest int40).\\n *\\n * Counterpart to Solidity's `int40` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 40 bits\\n */\\n function toInt40(int256 value) internal pure returns (int40 downcasted) {\\n downcasted = int40(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(40, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int32 from int256, reverting on\\n * overflow (when the input is less than smallest int32 or\\n * greater than largest int32).\\n *\\n * Counterpart to Solidity's `int32` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 32 bits\\n */\\n function toInt32(int256 value) internal pure returns (int32 downcasted) {\\n downcasted = int32(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(32, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int24 from int256, reverting on\\n * overflow (when the input is less than smallest int24 or\\n * greater than largest int24).\\n *\\n * Counterpart to Solidity's `int24` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 24 bits\\n */\\n function toInt24(int256 value) internal pure returns (int24 downcasted) {\\n downcasted = int24(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(24, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int16 from int256, reverting on\\n * overflow (when the input is less than smallest int16 or\\n * greater than largest int16).\\n *\\n * Counterpart to Solidity's `int16` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 16 bits\\n */\\n function toInt16(int256 value) internal pure returns (int16 downcasted) {\\n downcasted = int16(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(16, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int8 from int256, reverting on\\n * overflow (when the input is less than smallest int8 or\\n * greater than largest int8).\\n *\\n * Counterpart to Solidity's `int8` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 8 bits\\n */\\n function toInt8(int256 value) internal pure returns (int8 downcasted) {\\n downcasted = int8(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(8, value);\\n }\\n }\\n\\n /**\\n * @dev Converts an unsigned uint256 into a signed int256.\\n *\\n * Requirements:\\n *\\n * - input must be less than or equal to maxInt256.\\n */\\n function toInt256(uint256 value) internal pure returns (int256) {\\n // Note: Unsafe cast below is okay because `type(int256).max` is guaranteed to be positive\\n if (value > uint256(type(int256).max)) {\\n revert SafeCastOverflowedUintToInt(value);\\n }\\n return int256(value);\\n }\\n\\n /**\\n * @dev Cast a boolean (false or true) to a uint256 (0 or 1) with no jump.\\n */\\n function toUint(bool b) internal pure returns (uint256 u) {\\n assembly (\\\"memory-safe\\\") {\\n u := iszero(iszero(b))\\n }\\n }\\n}\\n\",\"keccak256\":\"0x195533c86d0ef72bcc06456a4f66a9b941f38eb403739b00f21fd7c1abd1ae54\",\"license\":\"MIT\"},\"@openzeppelin/contracts/utils/math/SignedMath.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.1.0) (utils/math/SignedMath.sol)\\n\\npragma solidity ^0.8.20;\\n\\nimport {SafeCast} from \\\"./SafeCast.sol\\\";\\n\\n/**\\n * @dev Standard signed math utilities missing in the Solidity language.\\n */\\nlibrary SignedMath {\\n /**\\n * @dev Branchless ternary evaluation for `a ? b : c`. Gas costs are constant.\\n *\\n * IMPORTANT: This function may reduce bytecode size and consume less gas when used standalone.\\n * However, the compiler may optimize Solidity ternary operations (i.e. `a ? b : c`) to only compute\\n * one branch when needed, making this function more expensive.\\n */\\n function ternary(bool condition, int256 a, int256 b) internal pure returns (int256) {\\n unchecked {\\n // branchless ternary works because:\\n // b ^ (a ^ b) == a\\n // b ^ 0 == b\\n return b ^ ((a ^ b) * int256(SafeCast.toUint(condition)));\\n }\\n }\\n\\n /**\\n * @dev Returns the largest of two signed numbers.\\n */\\n function max(int256 a, int256 b) internal pure returns (int256) {\\n return ternary(a > b, a, b);\\n }\\n\\n /**\\n * @dev Returns the smallest of two signed numbers.\\n */\\n function min(int256 a, int256 b) internal pure returns (int256) {\\n return ternary(a < b, a, b);\\n }\\n\\n /**\\n * @dev Returns the average of two signed numbers without overflow.\\n * The result is rounded towards zero.\\n */\\n function average(int256 a, int256 b) internal pure returns (int256) {\\n // Formula from the book \\\"Hacker's Delight\\\"\\n int256 x = (a & b) + ((a ^ b) >> 1);\\n return x + (int256(uint256(x) >> 255) & (a ^ b));\\n }\\n\\n /**\\n * @dev Returns the absolute unsigned value of a signed value.\\n */\\n function abs(int256 n) internal pure returns (uint256) {\\n unchecked {\\n // Formula from the \\\"Bit Twiddling Hacks\\\" by Sean Eron Anderson.\\n // Since `n` is a signed integer, the generated bytecode will use the SAR opcode to perform the right shift,\\n // taking advantage of the most significant (or \\\"sign\\\" bit) in two's complement representation.\\n // This opcode adds new most significant bits set to the value of the previous most significant bit. As a result,\\n // the mask will either be `bytes32(0)` (if n is positive) or `~bytes32(0)` (if n is negative).\\n int256 mask = n >> 255;\\n\\n // A `bytes32(0)` mask leaves the input unchanged, while a `~bytes32(0)` mask complements it.\\n return uint256((n + mask) ^ mask);\\n }\\n }\\n}\\n\",\"keccak256\":\"0xb1970fac7b64e6c09611e6691791e848d5e3fe410fa5899e7df2e0afd77a99e3\",\"license\":\"MIT\"},\"contracts/core/IdentityRegistry.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// solhint-disable not-rely-on-time\\npragma solidity ^0.8.27;\\n\\nimport {FHE, euint8, euint16, ebool, externalEuint8, externalEuint16, externalEbool} from \\\"@fhevm/solidity/lib/FHE.sol\\\";\\nimport {ZamaConfig} from \\\"@fhevm/solidity/config/ZamaConfig.sol\\\";\\nimport {Initializable} from \\\"@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol\\\";\\nimport {UUPSUpgradeable} from \\\"@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol\\\";\\nimport {Ownable2StepUpgradeable} from \\\"@openzeppelin/contracts-upgradeable/access/Ownable2StepUpgradeable.sol\\\";\\nimport {EIP712Upgradeable} from \\\"@openzeppelin/contracts-upgradeable/utils/cryptography/EIP712Upgradeable.sol\\\";\\nimport {ECDSA} from \\\"@openzeppelin/contracts/utils/cryptography/ECDSA.sol\\\";\\nimport {IIdentityRegistry} from \\\"../interfaces/IIdentityRegistry.sol\\\";\\n\\n/// @title IdentityRegistry\\n/// @author Gustavo Valverde\\n/// @notice On-chain encrypted identity registry with EIP-712 registrar permits,\\n/// per-attribute selective grants, and x402 compliance oracle surface.\\n/// @dev UUPS-upgradeable. User submits attestation tx with registrar-signed permit.\\n/// Compliance checks are composable by x402 facilitators and DeFi contracts\\n/// via the branch-free FHE.select() pattern.\\ncontract IdentityRegistry is\\n IIdentityRegistry,\\n Initializable,\\n UUPSUpgradeable,\\n Ownable2StepUpgradeable,\\n EIP712Upgradeable\\n{\\n // ============ Constants ============\\n\\n uint8 public constant ATTR_BIRTH_YEAR = 0x01;\\n uint8 public constant ATTR_COUNTRY = 0x02;\\n uint8 public constant ATTR_COMPLIANCE = 0x04;\\n uint8 public constant ATTR_BLACKLIST = 0x08;\\n uint8 public constant ATTR_ALL = 0x0F;\\n\\n /// @dev EIP-712 typehash for the attestation permit\\n bytes32 public constant ATTEST_PERMIT_TYPEHASH = keccak256(\\n \\\"AttestPermit(address user,uint8 birthYearOffset,uint16 countryCode,uint8 complianceLevel,bool isBlacklisted,bytes32 proofSetHash,uint32 policyVersion,uint256 nonce,uint256 deadline)\\\"\\n );\\n\\n // ============ Encrypted Identity Attributes ============\\n\\n mapping(address user => euint8 offset) private birthYearOffsets;\\n mapping(address user => euint16 code) private countryCodes;\\n mapping(address user => euint8 level) private complianceLevels;\\n mapping(address user => ebool status) private blacklistStatuses;\\n\\n // ============ Attestation Metadata ============\\n\\n mapping(address user => uint256 id) public currentAttestationId;\\n mapping(address user => uint256 ts) public attestationTimestamp;\\n mapping(address user => bytes32 hash) public proofSetHashes;\\n mapping(address user => uint32 version) public policyVersions;\\n uint256 public latestAttestationId;\\n\\n // ============ Access Control ============\\n\\n mapping(address registrar => bool authorized) public registrars;\\n mapping(address user => uint256 nonce) public nonces;\\n\\n // ============ Per-Attribute Grants ============\\n\\n /// @dev keccak256(user, grantee) => attribute bitmask\\n mapping(bytes32 grantKey => uint8 mask) private attributeGrants;\\n\\n // ============ Verification Results ============\\n\\n mapping(bytes32 key => ebool result) private verificationResults;\\n\\n // ============ Upgrade Safety ============\\n\\n /// @dev Reserved storage gap for future upgrades\\n uint256[50] private __gap;\\n\\n // ============ Modifiers ============\\n\\n modifier onlyRegistrar() {\\n if (!registrars[msg.sender]) revert OnlyRegistrar();\\n _;\\n }\\n\\n modifier whenAttested(address user) {\\n if (currentAttestationId[user] == 0) revert NotAttested();\\n _;\\n }\\n\\n // ============ Initializer ============\\n\\n /// @custom:oz-upgrades-unsafe-allow constructor\\n constructor() {\\n _disableInitializers();\\n }\\n\\n /// @notice Initialize the registry (called once via proxy)\\n /// @param initialOwner Address that becomes owner and first registrar\\n function initialize(address initialOwner) external initializer {\\n if (initialOwner == address(0)) revert ZeroAddress();\\n\\n __UUPSUpgradeable_init();\\n __Ownable2Step_init();\\n __Ownable_init(initialOwner);\\n __EIP712_init(\\\"ZentityIdentityRegistry\\\", \\\"2\\\");\\n\\n // Set up FHEVM coprocessor (replaces ZamaEthereumConfig constructor)\\n FHE.setCoprocessor(ZamaConfig.getEthereumCoprocessorConfig());\\n\\n registrars[initialOwner] = true;\\n emit RegistrarUpdated(initialOwner, true);\\n }\\n\\n // ============ Attestation with EIP-712 Permit ============\\n\\n /// @inheritdoc IIdentityRegistry\\n function attestWithPermit(\\n AttestPermitData calldata permit,\\n externalEuint8 encBirthYearOffset,\\n externalEuint16 encCountryCode,\\n externalEuint8 encComplianceLevel,\\n externalEbool encIsBlacklisted,\\n bytes calldata inputProof\\n ) external {\\n if (currentAttestationId[msg.sender] != 0) revert AlreadyAttested();\\n if (block.timestamp > permit.deadline) revert PermitExpired();\\n\\n // Verify registrar signature over plaintext values\\n _verifyPermit(permit);\\n\\n // Convert and store FHE-encrypted values\\n _storeEncryptedValues(encBirthYearOffset, encCountryCode, encComplianceLevel, encIsBlacklisted, inputProof);\\n\\n // Store attestation metadata\\n latestAttestationId++;\\n currentAttestationId[msg.sender] = latestAttestationId;\\n attestationTimestamp[msg.sender] = block.timestamp;\\n proofSetHashes[msg.sender] = permit.proofSetHash;\\n policyVersions[msg.sender] = permit.policyVersion;\\n\\n emit IdentityAttested(msg.sender);\\n }\\n\\n /// @dev Verify the registrar's EIP-712 signature and increment nonce\\n function _verifyPermit(AttestPermitData calldata permit) internal {\\n uint256 currentNonce = nonces[msg.sender];\\n bytes32 structHash = keccak256(\\n abi.encode(\\n ATTEST_PERMIT_TYPEHASH,\\n msg.sender,\\n permit.birthYearOffset,\\n permit.countryCode,\\n permit.complianceLevel,\\n permit.isBlacklisted,\\n permit.proofSetHash,\\n permit.policyVersion,\\n currentNonce,\\n permit.deadline\\n )\\n );\\n\\n address signer = ECDSA.recover(_hashTypedDataV4(structHash), permit.v, permit.r, permit.s);\\n if (!registrars[signer]) revert InvalidPermit();\\n\\n nonces[msg.sender] = currentNonce + 1;\\n }\\n\\n /// @dev Convert external encrypted inputs, store, and grant ACL permissions\\n function _storeEncryptedValues(\\n externalEuint8 encBirthYearOffset,\\n externalEuint16 encCountryCode,\\n externalEuint8 encComplianceLevel,\\n externalEbool encIsBlacklisted,\\n bytes calldata inputProof\\n ) internal {\\n euint8 encByo = FHE.fromExternal(encBirthYearOffset, inputProof);\\n euint16 encCc = FHE.fromExternal(encCountryCode, inputProof);\\n euint8 encCl = FHE.fromExternal(encComplianceLevel, inputProof);\\n ebool encBl = FHE.fromExternal(encIsBlacklisted, inputProof);\\n\\n birthYearOffsets[msg.sender] = encByo;\\n countryCodes[msg.sender] = encCc;\\n complianceLevels[msg.sender] = encCl;\\n blacklistStatuses[msg.sender] = encBl;\\n\\n FHE.allowThis(encByo);\\n FHE.allowThis(encCc);\\n FHE.allowThis(encCl);\\n FHE.allowThis(encBl);\\n FHE.allow(encByo, msg.sender);\\n FHE.allow(encCc, msg.sender);\\n FHE.allow(encCl, msg.sender);\\n FHE.allow(encBl, msg.sender);\\n }\\n\\n // ============ Bidirectional Revocation ============\\n\\n /// @inheritdoc IIdentityRegistry\\n function revokeIdentity() external {\\n _revokeIdentity(msg.sender);\\n }\\n\\n /// @inheritdoc IIdentityRegistry\\n function revokeIdentityFor(address user) external onlyRegistrar {\\n _revokeIdentity(user);\\n }\\n\\n function _revokeIdentity(address user) internal {\\n if (currentAttestationId[user] == 0) revert NotAttested();\\n\\n // Zero out encrypted values (new ciphertext handles)\\n birthYearOffsets[user] = FHE.asEuint8(0);\\n countryCodes[user] = FHE.asEuint16(0);\\n complianceLevels[user] = FHE.asEuint8(0);\\n blacklistStatuses[user] = FHE.asEbool(false);\\n\\n // Clear metadata\\n currentAttestationId[user] = 0;\\n attestationTimestamp[user] = 0;\\n proofSetHashes[user] = bytes32(0);\\n policyVersions[user] = 0;\\n\\n emit IdentityRevoked(user);\\n }\\n\\n // ============ Per-Attribute Access Grants ============\\n\\n /// @inheritdoc IIdentityRegistry\\n function grantAttributeAccess(\\n address grantee,\\n uint8 attributeMask,\\n Purpose purpose\\n ) external whenAttested(msg.sender) {\\n if (grantee == address(0)) revert ZeroAddress();\\n\\n bytes32 grantKey = keccak256(abi.encodePacked(msg.sender, grantee));\\n attributeGrants[grantKey] |= attributeMask;\\n\\n // Grant FHE ACL per selected attribute\\n if (attributeMask & ATTR_BIRTH_YEAR != 0) {\\n FHE.allow(birthYearOffsets[msg.sender], grantee);\\n }\\n if (attributeMask & ATTR_COUNTRY != 0) {\\n FHE.allow(countryCodes[msg.sender], grantee);\\n }\\n if (attributeMask & ATTR_COMPLIANCE != 0) {\\n FHE.allow(complianceLevels[msg.sender], grantee);\\n }\\n if (attributeMask & ATTR_BLACKLIST != 0) {\\n FHE.allow(blacklistStatuses[msg.sender], grantee);\\n }\\n\\n emit AttributeAccessGranted(msg.sender, grantee, attributeMask, purpose);\\n }\\n\\n /// @inheritdoc IIdentityRegistry\\n function grantAccessTo(address grantee) external whenAttested(msg.sender) {\\n if (grantee == address(0)) revert ZeroAddress();\\n\\n bytes32 grantKey = keccak256(abi.encodePacked(msg.sender, grantee));\\n attributeGrants[grantKey] = ATTR_ALL;\\n\\n FHE.allow(birthYearOffsets[msg.sender], grantee);\\n FHE.allow(countryCodes[msg.sender], grantee);\\n FHE.allow(complianceLevels[msg.sender], grantee);\\n FHE.allow(blacklistStatuses[msg.sender], grantee);\\n\\n emit AttributeAccessGranted(msg.sender, grantee, ATTR_ALL, Purpose.COMPLIANCE_CHECK);\\n }\\n\\n // ============ Compliance Checks (x402 Oracle Surface) ============\\n\\n /// @inheritdoc IIdentityRegistry\\n function checkCompliance(\\n address user,\\n uint8 minLevel\\n ) external whenAttested(user) returns (ebool) {\\n euint8 encMinLevel = FHE.asEuint8(minLevel);\\n ebool meetsLevel = FHE.ge(complianceLevels[user], encMinLevel);\\n ebool notBlocked = FHE.not(blacklistStatuses[user]);\\n ebool result = FHE.and(meetsLevel, notBlocked);\\n\\n // Store result and grant permissions\\n bytes32 key = keccak256(abi.encodePacked(user, \\\"compliance\\\", minLevel));\\n verificationResults[key] = result;\\n FHE.allowThis(result);\\n FHE.allow(result, msg.sender);\\n\\n return result;\\n }\\n\\n /// @inheritdoc IIdentityRegistry\\n function hasMinComplianceLevel(\\n address user,\\n uint8 minLevel\\n ) external whenAttested(user) returns (ebool) {\\n ebool result = FHE.ge(complianceLevels[user], FHE.asEuint8(minLevel));\\n\\n bytes32 key = keccak256(abi.encodePacked(user, \\\"minLevel\\\", minLevel));\\n verificationResults[key] = result;\\n FHE.allowThis(result);\\n FHE.allow(result, msg.sender);\\n\\n return result;\\n }\\n\\n /// @inheritdoc IIdentityRegistry\\n function isFromCountry(\\n address user,\\n uint16 country\\n ) external whenAttested(user) returns (ebool) {\\n ebool result = FHE.eq(countryCodes[user], FHE.asEuint16(country));\\n\\n bytes32 key = keccak256(abi.encodePacked(user, \\\"country\\\", country));\\n verificationResults[key] = result;\\n FHE.allowThis(result);\\n FHE.allow(result, msg.sender);\\n\\n return result;\\n }\\n\\n /// @inheritdoc IIdentityRegistry\\n function isNotBlacklisted(address user) external whenAttested(user) returns (ebool) {\\n ebool result = FHE.not(blacklistStatuses[user]);\\n\\n bytes32 key = keccak256(abi.encodePacked(user, \\\"notBlacklisted\\\"));\\n verificationResults[key] = result;\\n FHE.allowThis(result);\\n FHE.allow(result, msg.sender);\\n\\n return result;\\n }\\n\\n // ============ Encrypted Attribute Getters ============\\n\\n /// @inheritdoc IIdentityRegistry\\n function getBirthYearOffset(address user) external view whenAttested(user) returns (euint8) {\\n if (!FHE.isSenderAllowed(birthYearOffsets[user])) revert AccessProhibited();\\n return birthYearOffsets[user];\\n }\\n\\n /// @inheritdoc IIdentityRegistry\\n function getCountryCode(address user) external view whenAttested(user) returns (euint16) {\\n if (!FHE.isSenderAllowed(countryCodes[user])) revert AccessProhibited();\\n return countryCodes[user];\\n }\\n\\n /// @inheritdoc IIdentityRegistry\\n function getComplianceLevel(address user) external view whenAttested(user) returns (euint8) {\\n if (!FHE.isSenderAllowed(complianceLevels[user])) revert AccessProhibited();\\n return complianceLevels[user];\\n }\\n\\n /// @inheritdoc IIdentityRegistry\\n function getBlacklistStatus(address user) external view whenAttested(user) returns (ebool) {\\n if (!FHE.isSenderAllowed(blacklistStatuses[user])) revert AccessProhibited();\\n return blacklistStatuses[user];\\n }\\n\\n // ============ Metadata Getters ============\\n\\n /// @inheritdoc IIdentityRegistry\\n function isAttested(address user) external view returns (bool) {\\n return currentAttestationId[user] != 0;\\n }\\n\\n /// @inheritdoc IIdentityRegistry\\n function getProofSetHash(address user) external view returns (bytes32) {\\n return proofSetHashes[user];\\n }\\n\\n /// @inheritdoc IIdentityRegistry\\n function getPolicyVersion(address user) external view returns (uint32) {\\n return policyVersions[user];\\n }\\n\\n /// @inheritdoc IIdentityRegistry\\n function getGrantedAttributes(address user, address grantee) external view returns (uint8) {\\n return attributeGrants[keccak256(abi.encodePacked(user, grantee))];\\n }\\n\\n /// @inheritdoc IIdentityRegistry\\n function getVerificationResult(bytes32 key) external view returns (ebool) {\\n ebool result = verificationResults[key];\\n if (!FHE.isSenderAllowed(result)) revert AccessProhibited();\\n return result;\\n }\\n\\n // ============ Admin ============\\n\\n /// @notice Add or remove a registrar\\n /// @param registrar Address to update\\n /// @param status true to add, false to remove\\n function setRegistrar(address registrar, bool status) external onlyOwner {\\n if (registrar == address(0)) revert ZeroAddress();\\n registrars[registrar] = status;\\n emit RegistrarUpdated(registrar, status);\\n }\\n\\n // ============ UUPS ============\\n\\n function _authorizeUpgrade(address) internal override onlyOwner {}\\n}\\n\",\"keccak256\":\"0xb7fc3bb0533a88ed3ba75ce6fce91bb98a70bba95c0a848b2f66bf7555e5efa5\",\"license\":\"MIT\"},\"contracts/interfaces/IIdentityRegistry.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// solhint-disable func-name-mixedcase\\npragma solidity ^0.8.27;\\n\\nimport {euint8, euint16, ebool, externalEuint8, externalEuint16, externalEbool} from \\\"@fhevm/solidity/lib/FHE.sol\\\";\\n\\n/// @title IIdentityRegistry\\n/// @author Gustavo Valverde\\n/// @notice Interface for the on-chain encrypted identity registry with EIP-712 permits,\\n/// per-attribute selective grants, and x402 compliance oracle surface\\ninterface IIdentityRegistry {\\n // ============ Enums ============\\n\\n /// @notice Purpose of an attribute access grant (on-chain equivalent of OAuth scopes)\\n enum Purpose {\\n COMPLIANCE_CHECK,\\n AGE_VERIFICATION,\\n NATIONALITY_CHECK,\\n TRANSFER_GATING,\\n AUDIT\\n }\\n\\n // ============ Events ============\\n\\n /// @notice Emitted when an identity is attested via registrar permit\\n event IdentityAttested(address indexed user);\\n\\n /// @notice Emitted when an identity attestation is revoked\\n event IdentityRevoked(address indexed user);\\n\\n /// @notice Emitted when a user grants per-attribute access to a grantee\\n event AttributeAccessGranted(\\n address indexed user,\\n address indexed grantee,\\n uint8 attributeMask,\\n Purpose purpose\\n );\\n\\n /// @notice Emitted when a registrar is added or removed\\n event RegistrarUpdated(address indexed registrar, bool status);\\n\\n // ============ Structs ============\\n\\n /// @notice Registrar-signed permit data for user-submitted attestation\\n struct AttestPermitData {\\n uint8 birthYearOffset;\\n uint16 countryCode;\\n uint8 complianceLevel;\\n bool isBlacklisted;\\n bytes32 proofSetHash;\\n uint32 policyVersion;\\n uint256 deadline;\\n uint8 v;\\n bytes32 r;\\n bytes32 s;\\n }\\n\\n // ============ Errors ============\\n\\n /// @notice Thrown when caller is not an authorized registrar\\n error OnlyRegistrar();\\n\\n /// @notice Thrown when querying a user without attestation\\n error NotAttested();\\n\\n /// @notice Thrown when attempting to attest an already-attested user\\n error AlreadyAttested();\\n\\n /// @notice Thrown when the EIP-712 permit signature is invalid\\n error InvalidPermit();\\n\\n /// @notice Thrown when the permit deadline has passed\\n error PermitExpired();\\n\\n /// @notice Thrown when an address argument is the zero address\\n error ZeroAddress();\\n\\n /// @notice Thrown when caller lacks FHE permission for encrypted data\\n error AccessProhibited();\\n\\n // ============ Attestation with Permit ============\\n\\n /// @notice Attest identity using a registrar-signed EIP-712 permit\\n /// @dev The user submits this transaction with their own FHE-encrypted values.\\n /// The contract verifies the registrar's signature over the plaintext values\\n /// and stores the user's encrypted values. Nonce is auto-incremented.\\n /// @param permit Registrar-signed permit containing plaintext values + ECDSA signature\\n /// @param encBirthYearOffset FHE-encrypted birth year offset\\n /// @param encCountryCode FHE-encrypted country code\\n /// @param encComplianceLevel FHE-encrypted compliance level\\n /// @param encIsBlacklisted FHE-encrypted blacklist status\\n /// @param inputProof FHE input proof binding encrypted values to (contract, user)\\n function attestWithPermit(\\n AttestPermitData calldata permit,\\n externalEuint8 encBirthYearOffset,\\n externalEuint16 encCountryCode,\\n externalEuint8 encComplianceLevel,\\n externalEbool encIsBlacklisted,\\n bytes calldata inputProof\\n ) external;\\n\\n // ============ Revocation ============\\n\\n /// @notice Revoke caller's own attestation (user self-revocation)\\n function revokeIdentity() external;\\n\\n /// @notice Revoke a user's attestation (registrar-only)\\n /// @param user Address of the user to revoke\\n function revokeIdentityFor(address user) external;\\n\\n // ============ Per-Attribute Access Grants ============\\n\\n /// @notice Grant FHE access to specific attributes for a stated purpose\\n /// @param grantee Address receiving access permission\\n /// @param attributeMask Bitmask: 0x01=birthYear, 0x02=country, 0x04=compliance, 0x08=blacklist\\n /// @param purpose Why access is needed (on-chain audit trail)\\n function grantAttributeAccess(address grantee, uint8 attributeMask, Purpose purpose) external;\\n\\n /// @notice Grant FHE access to all attributes (convenience wrapper)\\n /// @param grantee Address receiving access permission\\n function grantAccessTo(address grantee) external;\\n\\n // ============ Compliance Checks (x402 Oracle Surface) ============\\n\\n /// @notice Combined compliance check: level >= minLevel AND not blacklisted\\n /// @dev State-mutating (FHE comparisons). Stores and returns encrypted result.\\n /// x402 facilitators compose this inline:\\n /// `euint64 amt = FHE.select(registry.checkCompliance(payer, 2), amount, zero);`\\n /// @param user Address to check\\n /// @param minLevel Minimum compliance level required\\n /// @return Encrypted boolean: true if compliant\\n function checkCompliance(address user, uint8 minLevel) external returns (ebool);\\n\\n /// @notice Check if user meets minimum compliance level\\n /// @param user Address to check\\n /// @param minLevel Minimum level required\\n /// @return Encrypted boolean result\\n function hasMinComplianceLevel(address user, uint8 minLevel) external returns (ebool);\\n\\n /// @notice Check if user is from a specific country\\n /// @param user Address to check\\n /// @param country ISO 3166-1 numeric country code\\n /// @return Encrypted boolean result\\n function isFromCountry(address user, uint16 country) external returns (ebool);\\n\\n /// @notice Check if user is not blacklisted\\n /// @param user Address to check\\n /// @return Encrypted boolean (true if NOT blacklisted)\\n function isNotBlacklisted(address user) external returns (ebool);\\n\\n // ============ View Getters ============\\n\\n /// @notice Check if a user has a valid attestation\\n function isAttested(address user) external view returns (bool);\\n\\n /// @notice Get user's encrypted birth year offset (caller must have FHE ACL access)\\n function getBirthYearOffset(address user) external view returns (euint8);\\n\\n /// @notice Get user's encrypted country code (caller must have FHE ACL access)\\n function getCountryCode(address user) external view returns (euint16);\\n\\n /// @notice Get user's encrypted compliance level (caller must have FHE ACL access)\\n function getComplianceLevel(address user) external view returns (euint8);\\n\\n /// @notice Get user's encrypted blacklist status (caller must have FHE ACL access)\\n function getBlacklistStatus(address user) external view returns (ebool);\\n\\n /// @notice Get the proof set hash for a user's attestation\\n function getProofSetHash(address user) external view returns (bytes32);\\n\\n /// @notice Get the policy version for a user's attestation\\n function getPolicyVersion(address user) external view returns (uint32);\\n\\n /// @notice Get the attribute mask granted to a grantee by a user\\n function getGrantedAttributes(address user, address grantee) external view returns (uint8);\\n\\n /// @notice Get the current attestation ID for a user (0 if not attested)\\n function currentAttestationId(address user) external view returns (uint256);\\n\\n /// @notice Get the timestamp when a user was attested\\n function attestationTimestamp(address user) external view returns (uint256);\\n\\n /// @notice Get the EIP-712 nonce for a user (for permit construction)\\n function nonces(address user) external view returns (uint256);\\n\\n /// @notice Check if an address is an authorized registrar\\n function registrars(address registrar) external view returns (bool);\\n\\n /// @notice Get a previously stored verification result\\n /// @param key The result key (keccak256 of check parameters)\\n function getVerificationResult(bytes32 key) external view returns (ebool);\\n\\n // ============ Constants ============\\n\\n function ATTR_BIRTH_YEAR() external pure returns (uint8);\\n function ATTR_COUNTRY() external pure returns (uint8);\\n function ATTR_COMPLIANCE() external pure returns (uint8);\\n function ATTR_BLACKLIST() external pure returns (uint8);\\n function ATTR_ALL() external pure returns (uint8);\\n}\\n\",\"keccak256\":\"0x847c886dde99da75c0f3633c74a8f324c3767acf242e7241eb7c7c4e0f906621\",\"license\":\"MIT\"},\"encrypted-types/EncryptedTypes.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.24;\\n\\ntype ebool is bytes32;\\n\\ntype euint8 is bytes32;\\ntype euint16 is bytes32;\\ntype euint24 is bytes32;\\ntype euint32 is bytes32;\\ntype euint40 is bytes32;\\ntype euint48 is bytes32;\\ntype euint56 is bytes32;\\ntype euint64 is bytes32;\\ntype euint72 is bytes32;\\ntype euint80 is bytes32;\\ntype euint88 is bytes32;\\ntype euint96 is bytes32;\\ntype euint104 is bytes32;\\ntype euint112 is bytes32;\\ntype euint120 is bytes32;\\ntype euint128 is bytes32;\\ntype euint136 is bytes32;\\ntype euint144 is bytes32;\\ntype euint152 is bytes32;\\ntype euint160 is bytes32;\\ntype euint168 is bytes32;\\ntype euint176 is bytes32;\\ntype euint184 is bytes32;\\ntype euint192 is bytes32;\\ntype euint200 is bytes32;\\ntype euint208 is bytes32;\\ntype euint216 is bytes32;\\ntype euint224 is bytes32;\\ntype euint232 is bytes32;\\ntype euint240 is bytes32;\\ntype euint248 is bytes32;\\ntype euint256 is bytes32;\\n\\ntype eint8 is bytes32;\\ntype eint16 is bytes32;\\ntype eint24 is bytes32;\\ntype eint32 is bytes32;\\ntype eint40 is bytes32;\\ntype eint48 is bytes32;\\ntype eint56 is bytes32;\\ntype eint64 is bytes32;\\ntype eint72 is bytes32;\\ntype eint80 is bytes32;\\ntype eint88 is bytes32;\\ntype eint96 is bytes32;\\ntype eint104 is bytes32;\\ntype eint112 is bytes32;\\ntype eint120 is bytes32;\\ntype eint128 is bytes32;\\ntype eint136 is bytes32;\\ntype eint144 is bytes32;\\ntype eint152 is bytes32;\\ntype eint160 is bytes32;\\ntype eint168 is bytes32;\\ntype eint176 is bytes32;\\ntype eint184 is bytes32;\\ntype eint192 is bytes32;\\ntype eint200 is bytes32;\\ntype eint208 is bytes32;\\ntype eint216 is bytes32;\\ntype eint224 is bytes32;\\ntype eint232 is bytes32;\\ntype eint240 is bytes32;\\ntype eint248 is bytes32;\\ntype eint256 is bytes32;\\n\\ntype eaddress is bytes32;\\n\\ntype ebytes1 is bytes32;\\ntype ebytes2 is bytes32;\\ntype ebytes3 is bytes32;\\ntype ebytes4 is bytes32;\\ntype ebytes5 is bytes32;\\ntype ebytes6 is bytes32;\\ntype ebytes7 is bytes32;\\ntype ebytes8 is bytes32;\\ntype ebytes9 is bytes32;\\ntype ebytes10 is bytes32;\\ntype ebytes11 is bytes32;\\ntype ebytes12 is bytes32;\\ntype ebytes13 is bytes32;\\ntype ebytes14 is bytes32;\\ntype ebytes15 is bytes32;\\ntype ebytes16 is bytes32;\\ntype ebytes17 is bytes32;\\ntype ebytes18 is bytes32;\\ntype ebytes19 is bytes32;\\ntype ebytes20 is bytes32;\\ntype ebytes21 is bytes32;\\ntype ebytes22 is bytes32;\\ntype ebytes23 is bytes32;\\ntype ebytes24 is bytes32;\\ntype ebytes25 is bytes32;\\ntype ebytes26 is bytes32;\\ntype ebytes27 is bytes32;\\ntype ebytes28 is bytes32;\\ntype ebytes29 is bytes32;\\ntype ebytes30 is bytes32;\\ntype ebytes31 is bytes32;\\ntype ebytes32 is bytes32;\\n\\ntype externalEbool is bytes32;\\n\\ntype externalEuint8 is bytes32;\\ntype externalEuint16 is bytes32;\\ntype externalEuint24 is bytes32;\\ntype externalEuint32 is bytes32;\\ntype externalEuint40 is bytes32;\\ntype externalEuint48 is bytes32;\\ntype externalEuint56 is bytes32;\\ntype externalEuint64 is bytes32;\\ntype externalEuint72 is bytes32;\\ntype externalEuint80 is bytes32;\\ntype externalEuint88 is bytes32;\\ntype externalEuint96 is bytes32;\\ntype externalEuint104 is bytes32;\\ntype externalEuint112 is bytes32;\\ntype externalEuint120 is bytes32;\\ntype externalEuint128 is bytes32;\\ntype externalEuint136 is bytes32;\\ntype externalEuint144 is bytes32;\\ntype externalEuint152 is bytes32;\\ntype externalEuint160 is bytes32;\\ntype externalEuint168 is bytes32;\\ntype externalEuint176 is bytes32;\\ntype externalEuint184 is bytes32;\\ntype externalEuint192 is bytes32;\\ntype externalEuint200 is bytes32;\\ntype externalEuint208 is bytes32;\\ntype externalEuint216 is bytes32;\\ntype externalEuint224 is bytes32;\\ntype externalEuint232 is bytes32;\\ntype externalEuint240 is bytes32;\\ntype externalEuint248 is bytes32;\\ntype externalEuint256 is bytes32;\\n\\ntype externalEint8 is bytes32;\\ntype externalEint16 is bytes32;\\ntype externalEint24 is bytes32;\\ntype externalEint32 is bytes32;\\ntype externalEint40 is bytes32;\\ntype externalEint48 is bytes32;\\ntype externalEint56 is bytes32;\\ntype externalEint64 is bytes32;\\ntype externalEint72 is bytes32;\\ntype externalEint80 is bytes32;\\ntype externalEint88 is bytes32;\\ntype externalEint96 is bytes32;\\ntype externalEint104 is bytes32;\\ntype externalEint112 is bytes32;\\ntype externalEint120 is bytes32;\\ntype externalEint128 is bytes32;\\ntype externalEint136 is bytes32;\\ntype externalEint144 is bytes32;\\ntype externalEint152 is bytes32;\\ntype externalEint160 is bytes32;\\ntype externalEint168 is bytes32;\\ntype externalEint176 is bytes32;\\ntype externalEint184 is bytes32;\\ntype externalEint192 is bytes32;\\ntype externalEint200 is bytes32;\\ntype externalEint208 is bytes32;\\ntype externalEint216 is bytes32;\\ntype externalEint224 is bytes32;\\ntype externalEint232 is bytes32;\\ntype externalEint240 is bytes32;\\ntype externalEint248 is bytes32;\\ntype externalEint256 is bytes32;\\n\\ntype externalEaddress is bytes32;\\n\\ntype externalEbytes1 is bytes32;\\ntype externalEbytes2 is bytes32;\\ntype externalEbytes3 is bytes32;\\ntype externalEbytes4 is bytes32;\\ntype externalEbytes5 is bytes32;\\ntype externalEbytes6 is bytes32;\\ntype externalEbytes7 is bytes32;\\ntype externalEbytes8 is bytes32;\\ntype externalEbytes9 is bytes32;\\ntype externalEbytes10 is bytes32;\\ntype externalEbytes11 is bytes32;\\ntype externalEbytes12 is bytes32;\\ntype externalEbytes13 is bytes32;\\ntype externalEbytes14 is bytes32;\\ntype externalEbytes15 is bytes32;\\ntype externalEbytes16 is bytes32;\\ntype externalEbytes17 is bytes32;\\ntype externalEbytes18 is bytes32;\\ntype externalEbytes19 is bytes32;\\ntype externalEbytes20 is bytes32;\\ntype externalEbytes21 is bytes32;\\ntype externalEbytes22 is bytes32;\\ntype externalEbytes23 is bytes32;\\ntype externalEbytes24 is bytes32;\\ntype externalEbytes25 is bytes32;\\ntype externalEbytes26 is bytes32;\\ntype externalEbytes27 is bytes32;\\ntype externalEbytes28 is bytes32;\\ntype externalEbytes29 is bytes32;\\ntype externalEbytes30 is bytes32;\\ntype externalEbytes31 is bytes32;\\ntype externalEbytes32 is bytes32;\\n\",\"keccak256\":\"0x5da9799cd5c30067ea946164722197151baee1f2579a76f01874d4fb25df02a3\",\"license\":\"MIT\"}},\"version\":1}",
1123
+ "bytecode": "0x60a060405230608052348015610013575f5ffd5b5061001c610021565b6100d3565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff16156100715760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b03908116146100d05780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b6080516133db6100f95f395f8181611b6b01528181611b940152611cd801526133db5ff3fe608060405260043610610249575f3560e01c8063852b28db11610134578063c1bf1dcf116100b3578063ca423f5211610078578063ca423f5214610737578063d1e8eba91461076a578063d1f1ff6014610789578063dd4db94f146107c3578063e30c3978146107d7578063f2fde38b146107eb575f5ffd5b8063c1bf1dcf1461069b578063c4d66de8146106ba578063c736a433146106d9578063c7e700a814610704578063c92d0f0314610718575f5ffd5b80639c47338f116100f95780639c47338f146105d8578063ad3cb1cc1461060c578063b3ce9b3d14610649578063b745e8b114610668578063bbde418714610687575f5ffd5b8063852b28db1461051557806389aeca76146105345780638cb83540146105625780638da5cb5b1461058d57806391b49755146105b9575f5ffd5b806355ab78f5116101cb57806379ba50971161019057806379ba5097146104465780637ecebe001461045a57806381ba6ce21461048557806382466ccc146104a457806382b7a48b146104c357806384b0196e146104ee575f5ffd5b806355ab78f5146103cb578063560f3ba4146103ea57806358d2b4a5146103ff5780636d4634ea1461041e578063715018a614610432575f5ffd5b80633c23afba116102115780633c23afba14610320578063488baabf146103665780634f1ef2861461038557806350ee480d1461039857806352d1902d146103b7575f5ffd5b806303e8c1391461024d5780631318fe8714610298578063193bd1ce146102b957806325382b83146102df57806336beb697146102f3575b5f5ffd5b348015610258575f5ffd5b5061027e610267366004612c5e565b60076020525f908152604090205463ffffffff1681565b60405163ffffffff90911681526020015b60405180910390f35b3480156102a3575f5ffd5b506102b76102b2366004612c77565b61080a565b005b3480156102c4575f5ffd5b506102cd600f81565b60405160ff909116815260200161028f565b3480156102ea575f5ffd5b506102cd600281565b3480156102fe575f5ffd5b5061031261030d366004612d29565b61091d565b60405190815260200161028f565b34801561032b575f5ffd5b5061035661033a366004612c5e565b6001600160a01b03165f90815260046020526040902054151590565b604051901515815260200161028f565b348015610371575f5ffd5b50610312610380366004612d50565b610957565b6102b7610393366004612d95565b610a46565b3480156103a3575f5ffd5b506102cd6103b2366004612e59565b610a65565b3480156103c2575f5ffd5b50610312610aab565b3480156103d6575f5ffd5b506102b76103e5366004612c5e565b610ac6565b3480156103f5575f5ffd5b5061031260085481565b34801561040a575f5ffd5b50610312610419366004612c5e565b610c16565b348015610429575f5ffd5b506102cd600481565b34801561043d575f5ffd5b506102b7610cae565b348015610451575f5ffd5b506102b7610cc1565b348015610465575f5ffd5b50610312610474366004612c5e565b600a6020525f908152604090205481565b348015610490575f5ffd5b5061031261049f366004612c5e565b610d0e565b3480156104af575f5ffd5b506103126104be366004612c5e565b610da1565b3480156104ce575f5ffd5b506103126104dd366004612c5e565b60066020525f908152604090205481565b3480156104f9575f5ffd5b50610502610e34565b60405161028f9796959493929190612eaf565b348015610520575f5ffd5b506102b761052f366004612f45565b610edd565b34801561053f575f5ffd5b5061035661054e366004612c5e565b60096020525f908152604090205460ff1681565b34801561056d575f5ffd5b5061031261057c366004612c5e565b60056020525f908152604090205481565b348015610598575f5ffd5b506105a1611063565b6040516001600160a01b03909116815260200161028f565b3480156105c4575f5ffd5b506103126105d3366004612f9d565b611097565b3480156105e3575f5ffd5b506103126105f2366004612c5e565b6001600160a01b03165f9081526006602052604090205490565b348015610617575f5ffd5b5061063c604051806040016040528060058152602001640352e302e360dc1b81525081565b60405161028f9190612fc5565b348015610654575f5ffd5b50610312610663366004612c5e565b611142565b348015610673575f5ffd5b50610312610682366004612c5e565b6111d5565b348015610692575f5ffd5b506102cd600181565b3480156106a6575f5ffd5b506102b76106b5366004612fe4565b6112ab565b3480156106c5575f5ffd5b506102b76106d4366004612c5e565b611338565b3480156106e4575f5ffd5b506103126106f3366004612c5e565b60046020525f908152604090205481565b34801561070f575f5ffd5b506102cd600881565b348015610723575f5ffd5b506102b7610732366004612c5e565b6115a7565b348015610742575f5ffd5b506103127ff9d9d50ebaaa414078d4db244db5457cbc9440107058a8da6fc87ec8267587c781565b348015610775575f5ffd5b50610312610784366004612d50565b6115df565b348015610794575f5ffd5b5061027e6107a3366004612c5e565b6001600160a01b03165f9081526007602052604090205463ffffffff1690565b3480156107ce575f5ffd5b506102b761170a565b3480156107e2575f5ffd5b506105a1611713565b3480156107f6575f5ffd5b506102b7610805366004612c5e565b61173b565b335f9081526004602052604090205415610837576040516335d9080560e01b815260040160405180910390fd5b8660c0013542111561085c5760405163068568f360e21b815260040160405180910390fd5b610865876117c0565b610873868686868686611958565b60088054905f6108828361302d565b9091555050600854335f90815260046020908152604080832093909355600581528282204290556006905220608088013590556108c560c0880160a08901613045565b335f81815260076020526040808220805463ffffffff191663ffffffff9590951694909417909355915190917f29056d033e0ed6951611a865e131392e3b35403afc9cdbf70eee3a35c205b6f491a250505050505050565b5f818152600c602052604081205461093481611af0565b61095157604051631a6bd1fd60e01b815260040160405180910390fd5b92915050565b6001600160a01b0382165f90815260046020526040812054839082036109905760405163099efb8960e41b815260040160405180910390fd5b6001600160a01b0384165f908152600260205260408120546109ba906109b586611afb565b611b0a565b6040516001600160601b0319606088901b166020820152671b5a5b93195d995b60c21b60348201526001600160f81b031960f887901b16603c8201529091505f90603d015b60408051601f1981840301815291815281516020928301205f818152600c90935291208390559050610a3082611b3f565b50610a3b8233611b4e565b509095945050505050565b610a4e611b60565b610a5782611c04565b610a618282611c0c565b5050565b5f600b5f8484604051602001610a7c929190613068565b60408051808303601f190181529181528151602092830120835290820192909252015f205460ff169392505050565b5f610ab4611ccd565b505f5160206133665f395f51905f5290565b335f818152600460205260408120549003610af45760405163099efb8960e41b815260040160405180910390fd5b6001600160a01b038216610b1b5760405163d92e233d60e01b815260040160405180910390fd5b5f3383604051602001610b2f929190613068565b60408051601f1981840301815291815281516020928301205f818152600b8452828120805460ff1916600f17905533815292839052912054909150610b749084611b4e565b50335f90815260016020526040902054610b8e9084611b4e565b50335f90815260026020526040902054610ba89084611b4e565b50335f90815260036020526040902054610bc29084611b4e565b50826001600160a01b0316336001600160a01b03167f30ab1425cac82b8f27b8ae1715d03d131df0d8bb590edb534927b641d5eea33f600f5f604051610c0992919061309e565b60405180910390a3505050565b6001600160a01b0381165f9081526004602052604081205482908203610c4f5760405163099efb8960e41b815260040160405180910390fd5b6001600160a01b0383165f90815260036020526040902054610c7090611af0565b610c8d57604051631a6bd1fd60e01b815260040160405180910390fd5b6001600160a01b0383165f9081526003602052604090205491505b50919050565b610cb6611d16565b610cbf5f611d48565b565b3380610ccb611713565b6001600160a01b031614610d025760405163118cdaa760e01b81526001600160a01b03821660048201526024015b60405180910390fd5b610d0b81611d48565b50565b6001600160a01b0381165f9081526004602052604081205482908203610d475760405163099efb8960e41b815260040160405180910390fd5b6001600160a01b0383165f90815260016020526040902054610d6890611af0565b610d8557604051631a6bd1fd60e01b815260040160405180910390fd5b50506001600160a01b03165f9081526001602052604090205490565b6001600160a01b0381165f9081526004602052604081205482908203610dda5760405163099efb8960e41b815260040160405180910390fd5b6001600160a01b0383165f90815260026020526040902054610dfb90611af0565b610e1857604051631a6bd1fd60e01b815260040160405180910390fd5b50506001600160a01b03165f9081526002602052604090205490565b5f60608082808083815f5160206133465f395f51905f528054909150158015610e5f57506001810154155b610ea35760405162461bcd60e51b81526020600482015260156024820152741152540dcc4c8e88155b9a5b9a5d1a585b1a5e9959605a1b6044820152606401610cf9565b610eab611d80565b610eb3611e40565b604080515f80825260208201909252600f60f81b9c939b5091995046985030975095509350915050565b335f818152600460205260408120549003610f0b5760405163099efb8960e41b815260040160405180910390fd5b6001600160a01b038416610f325760405163d92e233d60e01b815260040160405180910390fd5b5f3385604051602001610f46929190613068565b60408051601f1981840301815291815281516020928301205f818152600b9093529120805460ff8088169082161760ff1990911617905590506001841615610fa357335f90815260208190526040902054610fa19086611b4e565b505b6002841615610fc757335f90815260016020526040902054610fc59086611b4e565b505b6004841615610feb57335f90815260026020526040902054610fe99086611b4e565b505b600884161561100f57335f9081526003602052604090205461100d9086611b4e565b505b846001600160a01b0316336001600160a01b03167f30ab1425cac82b8f27b8ae1715d03d131df0d8bb590edb534927b641d5eea33f868660405161105492919061309e565b60405180910390a35050505050565b5f807f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c1993005b546001600160a01b031692915050565b6001600160a01b0382165f90815260046020526040812054839082036110d05760405163099efb8960e41b815260040160405180910390fd5b6001600160a01b0384165f908152600160205260408120546110fa906110f586611e7e565b611e8e565b6040516001600160601b0319606088901b16602082015266636f756e74727960c81b60348201526001600160f01b031960f087901b16603b8201529091505f90603d016109ff565b6001600160a01b0381165f908152600460205260408120548290820361117b5760405163099efb8960e41b815260040160405180910390fd5b6001600160a01b0383165f9081526020819052604090205461119c90611af0565b6111b957604051631a6bd1fd60e01b815260040160405180910390fd5b50506001600160a01b03165f9081526020819052604090205490565b6001600160a01b0381165f908152600460205260408120548290820361120e5760405163099efb8960e41b815260040160405180910390fd5b6001600160a01b0383165f9081526003602052604081205461122f90611ebc565b6040516001600160601b0319606087901b1660208201526d1b9bdd109b1858dadb1a5cdd195960921b60348201529091505f9060420160408051601f1981840301815291815281516020928301205f818152600c9093529120839055905061129682611b3f565b506112a18233611b4e565b5090949350505050565b6112b3611d16565b6001600160a01b0382166112da5760405163d92e233d60e01b815260040160405180910390fd5b6001600160a01b0382165f81815260096020908152604091829020805460ff191685151590811790915591519182527faa29e9c7319872059973646686bcb05675a1351529119ca980b4ad90e73d7264910160405180910390a25050565b5f611341611ec6565b805490915060ff600160401b820416159067ffffffffffffffff165f811580156113685750825b90505f8267ffffffffffffffff1660011480156113845750303b155b905081158015611392575080155b156113b05760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff1916600117855583156113da57845460ff60401b1916600160401b1785555b6001600160a01b0386166114015760405163d92e233d60e01b815260040160405180910390fd5b611409611eee565b611411611eee565b61141a86611ef6565b6114726040518060400160405280601781526020017f5a656e746974794964656e746974795265676973747279000000000000000000815250604051806040016040528060018152602001601960f91b815250611f07565b61150061147d611f19565b80515f5160206133865f395f51905f5280546001600160a01b03199081166001600160a01b039384161790915560208301515f5160206133265f395f51905f528054831691841691909117905560408301517f9e7b61f58c47dc699ac88507c4f5bb9f121c03808c5676a8078fe583e46497028054909216921691909117905550565b6001600160a01b0386165f81815260096020908152604091829020805460ff1916600190811790915591519182527faa29e9c7319872059973646686bcb05675a1351529119ca980b4ad90e73d7264910160405180910390a2831561159f57845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b505050505050565b335f9081526009602052604090205460ff166115d657604051632fed761f60e01b815260040160405180910390fd5b610d0b81611fb3565b6001600160a01b0382165f90815260046020526040812054839082036116185760405163099efb8960e41b815260040160405180910390fd5b5f61162284611afb565b6001600160a01b0386165f90815260026020526040812054919250906116489083611b0a565b6001600160a01b0387165f908152600360205260408120549192509061166d90611ebc565b90505f61167a83836120d7565b6040516001600160601b031960608b901b16602082015269636f6d706c69616e636560b01b60348201526001600160f81b031960f88a901b16603e8201529091505f90603f0160408051601f1981840301815291815281516020928301205f818152600c909352912083905590506116f182611b3f565b506116fc8233611b4e565b509098975050505050505050565b610cbf33611fb3565b5f807f237e158222e3e6968b72b9db0d8043aacf074ad9f650f0d1606b4d82ee432c00611087565b611743611d16565b7f237e158222e3e6968b72b9db0d8043aacf074ad9f650f0d1606b4d82ee432c0080546001600160a01b0319166001600160a01b0383169081178255611787611063565b6001600160a01b03167f38d16b8cac22d99fc7c124b9cd0de2d3fa1faef420bfe791d8c362d765e2270060405160405180910390a35050565b335f818152600a60209081526040822054927ff9d9d50ebaaa414078d4db244db5457cbc9440107058a8da6fc87ec8267587c791611800908601866130c5565b61181060408701602088016130de565b61182060608801604089016130c5565b6118306080890160608a016130f7565b608089013561184560c08b0160a08c01613045565b6040805160208101999099526001600160a01b039097169688019690965260ff948516606088015261ffff9093166080870152921660a085015290151560c08481019190915260e084019190915263ffffffff9091166101008301526101208201849052840135610140820152610160016040516020818303038152906040528051906020012090505f6118fd6118db83612105565b6118ec610100870160e088016130c5565b866101000135876101200135612131565b6001600160a01b0381165f9081526009602052604090205490915060ff166119385760405163ddafbaef60e01b815260040160405180910390fd5b611943836001613112565b335f908152600a602052604090205550505050565b5f6119988784848080601f0160208091040260200160405190810160405280939291908181526020018383808284375f9201919091525061215d92505050565b90505f6119da8785858080601f0160208091040260200160405190810160405280939291908181526020018383808284375f9201919091525061216a92505050565b90505f611a1c8786868080601f0160208091040260200160405190810160405280939291908181526020018383808284375f9201919091525061215d92505050565b90505f611a5e8787878080601f0160208091040260200160405190810160405280939291908181526020018383808284375f9201919091525061217792505050565b335f908152602081815260408083208890556001825280832087905560028252808320869055600390915290208190559050611a9984611b3f565b50611aa383611b3f565b50611aad82611b3f565b50611ab781611b3f565b50611ac28433611b4e565b50611acd8333611b4e565b50611ad88233611b4e565b50611ae38133611b4e565b5050505050505050505050565b5f6109518233612183565b5f6109518260ff16600261220f565b5f82611b1c57611b195f611afb565b92505b81611b2d57611b2a5f611afb565b91505b611b3883835f61229e565b9392505050565b5f611b4a823061234b565b5090565b5f611b59838361234b565b5090919050565b306001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161480611be657507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316611bda5f5160206133665f395f51905f52546001600160a01b031690565b6001600160a01b031614155b15610cbf5760405163703e46dd60e11b815260040160405180910390fd5b610d0b611d16565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa925050508015611c66575060408051601f3d908101601f19168201909252611c6391810190613125565b60015b611c8e57604051634c9c8ce360e01b81526001600160a01b0383166004820152602401610cf9565b5f5160206133665f395f51905f528114611cbe57604051632a87526960e21b815260048101829052602401610cf9565b611cc883836123c1565b505050565b306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614610cbf5760405163703e46dd60e11b815260040160405180910390fd5b33611d1f611063565b6001600160a01b031614610cbf5760405163118cdaa760e01b8152336004820152602401610cf9565b7f237e158222e3e6968b72b9db0d8043aacf074ad9f650f0d1606b4d82ee432c0080546001600160a01b0319168155610a6182612416565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10280546060915f5160206133465f395f51905f5291611dbe9061313c565b80601f0160208091040260200160405190810160405280929190818152602001828054611dea9061313c565b8015611e355780601f10611e0c57610100808354040283529160200191611e35565b820191905f5260205f20905b815481529060010190602001808311611e1857829003601f168201915b505050505091505090565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10380546060915f5160206133465f395f51905f5291611dbe9061313c565b5f6109518261ffff16600361220f565b5f82611ea057611e9d5f611e7e565b92505b81611eb157611eae5f611e7e565b91505b611b3883835f612486565b5f610951826124e9565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00610951565b610cbf612568565b611efe612568565b610d0b8161258d565b611f0f612568565b610a6182826125be565b604080516060810182525f808252602082018190529181019190915246600103611f77575060408051606080820183525f8083526020808401829052928401819052835191820184528082529181018290529182015290565b905090565b4662aa36a703611f8957611f7261261d565b46617a6903611f9a57611f7261261d565b6040516373cac13b60e01b815260040160405180910390fd5b6001600160a01b0381165f908152600460205260408120549003611fea5760405163099efb8960e41b815260040160405180910390fd5b611ff35f611afb565b6001600160a01b0382165f9081526020819052604081209190915561201790611e7e565b6001600160a01b0382165f9081526001602052604081209190915561203b90611afb565b6001600160a01b0382165f9081526002602052604081209190915561205f90612694565b6001600160a01b0382165f8181526003602090815260408083209490945560048152838220829055600581528382208290556006815283822082905560079052828120805463ffffffff19169055915190917fccf550e579fbeb7d56da9a0175f8d4526535cab139e73b592516f1916d4075dd91a250565b5f826120e9576120e65f612694565b92505b816120fa576120f75f612694565b91505b611b3883835f6126af565b5f610951612111612712565b8360405161190160f01b8152600281019290925260228201526042902090565b5f5f5f5f6121418888888861271b565b92509250925061215182826127e3565b50909695505050505050565b5f611b388383600261289b565b5f611b388383600361289b565b5f611b3883835f61289b565b5f805f5160206133865f395f51905f5280546040516382027b6d60e01b8152600481018790526001600160a01b0386811660248301529293509116906382027b6d90604401602060405180830381865afa1580156121e3573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190612207919061316e565b949350505050565b5f5160206133265f395f51905f5254604051639cd07acb60e01b81525f915f5160206133865f395f51905f52916001600160a01b0390911690639cd07acb9061225e908790879060040161319d565b6020604051808303815f875af115801561227a573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906122079190613125565b5f5f82156122b15750600160f81b6122b4565b505f5b5f5160206133265f395f51905f5254604051631391547f60e01b81525f5160206133865f395f51905f52916001600160a01b031690631391547f90612301908990899087906004016131b1565b6020604051808303815f875af115801561231d573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906123419190613125565b9695505050505050565b5f5f5160206133865f395f51905f528054604051635ca4b5b160e11b8152600481018690526001600160a01b03858116602483015292935091169063b9496b62906044015f604051808303815f87803b1580156123a6575f5ffd5b505af11580156123b8573d5f5f3e3d5ffd5b50505050505050565b6123ca82612995565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a280511561240e57611cc882826129f8565b610a61612a6a565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b5f5f82156124995750600160f81b61249c565b505f5b5f5160206133265f395f51905f525460405163f77f3f1d60e01b81525f5160206133865f395f51905f52916001600160a01b03169063f77f3f1d90612301908990899087906004016131b1565b5f805f5160206133865f395f51905f526001810154604051630f51ccfb60e41b8152600481018690529192506001600160a01b03169063f51ccfb0906024016020604051808303815f875af1158015612544573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611b389190613125565b612570612a89565b610cbf57604051631afcd79f60e31b815260040160405180910390fd5b612595612568565b6001600160a01b038116610d0257604051631e4fbdf760e01b81525f6004820152602401610cf9565b6125c6612568565b5f5160206133465f395f51905f527fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d1026125ff848261321c565b506003810161260e838261321c565b505f8082556001909101555050565b604080516060810182525f8082526020820181905291810191909152506040805160608101825273f0ffdc93b7e186bc2f8cb3daa75d86d1930a433d81527392c920834ec8941d2c77d188936e1f7a6f49c127602082015273be0e383937d564d7ff0bc3b46c51f0bf8d5c311a9181019190915290565b5f610951826126a3575f6126a6565b60015b60ff165f61220f565b5f5f82156126c25750600160f81b6126c5565b505f5b5f5160206133265f395f51905f525460405163d99882d560e01b81525f5160206133865f395f51905f52916001600160a01b03169063d99882d590612301908990899087906004016131b1565b5f611f72612aa2565b5f80807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a084111561275457505f915060039050826127d9565b604080515f808252602082018084528a905260ff891692820192909252606081018790526080810186905260019060a0016020604051602081039080840390855afa1580156127a5573d5f5f3e3d5ffd5b5050604051601f1901519150506001600160a01b0381166127d057505f9250600191508290506127d9565b92505f91508190505b9450945094915050565b5f8260038111156127f6576127f661308a565b036127ff575050565b60018260038111156128135761281361308a565b036128315760405163f645eedf60e01b815260040160405180910390fd5b60028260038111156128455761284561308a565b036128665760405163fce698f760e01b815260048101829052602401610cf9565b600382600381111561287a5761287a61308a565b03610a61576040516335e2f38360e21b815260048101829052602401610cf9565b5f5160206133265f395f51905f525460405163045fc19560e11b81525f915f5160206133865f395f51905f52916001600160a01b03909116906308bf832a906128ee9088903390899089906004016132d7565b6020604051808303815f875af115801561290a573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061292e9190613125565b8154604051630f8e573b60e21b8152600481018390523360248201529193506001600160a01b031690633e395cec906044015f604051808303815f87803b158015612977575f5ffd5b505af1158015612989573d5f5f3e3d5ffd5b50505050509392505050565b806001600160a01b03163b5f036129ca57604051634c9c8ce360e01b81526001600160a01b0382166004820152602401610cf9565b5f5160206133665f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b031684604051612a14919061330f565b5f60405180830381855af49150503d805f8114612a4c576040519150601f19603f3d011682016040523d82523d5f602084013e612a51565b606091505b5091509150612a61858383612b15565b95945050505050565b3415610cbf5760405163b398979f60e01b815260040160405180910390fd5b5f612a92611ec6565b54600160401b900460ff16919050565b5f7f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f612acc612b71565b612ad4612bd9565b60408051602081019490945283019190915260608201524660808201523060a082015260c00160405160208183030381529060405280519060200120905090565b606082612b2a57612b2582612c1b565b611b38565b8151158015612b4157506001600160a01b0384163b155b15612b6a57604051639996b31560e01b81526001600160a01b0385166004820152602401610cf9565b5092915050565b5f5f5160206133465f395f51905f5281612b89611d80565b805190915015612ba157805160209091012092915050565b81548015612bb0579392505050565b7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470935050505090565b5f5f5160206133465f395f51905f5281612bf1611e40565b805190915015612c0957805160209091012092915050565b60018201548015612bb0579392505050565b805115612c2a57805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b0381168114612c59575f5ffd5b919050565b5f60208284031215612c6e575f5ffd5b611b3882612c43565b5f5f5f5f5f5f5f8789036101e0811215612c8f575f5ffd5b610140811215612c9d575f5ffd5b508796506101408701359550610160870135945061018087013593506101a087013592506101c087013567ffffffffffffffff811115612cdb575f5ffd5b8801601f81018a13612ceb575f5ffd5b803567ffffffffffffffff811115612d01575f5ffd5b8a6020828401011115612d12575f5ffd5b602082019350809250505092959891949750929550565b5f60208284031215612d39575f5ffd5b5035919050565b803560ff81168114612c59575f5ffd5b5f5f60408385031215612d61575f5ffd5b612d6a83612c43565b9150612d7860208401612d40565b90509250929050565b634e487b7160e01b5f52604160045260245ffd5b5f5f60408385031215612da6575f5ffd5b612daf83612c43565b9150602083013567ffffffffffffffff811115612dca575f5ffd5b8301601f81018513612dda575f5ffd5b803567ffffffffffffffff811115612df457612df4612d81565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715612e2357612e23612d81565b604052818152828201602001871015612e3a575f5ffd5b816020840160208301375f602083830101528093505050509250929050565b5f5f60408385031215612e6a575f5ffd5b612e7383612c43565b9150612d7860208401612c43565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b60ff60f81b8816815260e060208201525f612ecd60e0830189612e81565b8281036040840152612edf8189612e81565b606084018890526001600160a01b038716608085015260a0840186905283810360c0850152845180825260208087019350909101905f5b81811015612f34578351835260209384019390920191600101612f16565b50909b9a5050505050505050505050565b5f5f5f60608486031215612f57575f5ffd5b612f6084612c43565b9250612f6e60208501612d40565b9150604084013560058110612f81575f5ffd5b809150509250925092565b803561ffff81168114612c59575f5ffd5b5f5f60408385031215612fae575f5ffd5b612fb783612c43565b9150612d7860208401612f8c565b602081525f611b386020830184612e81565b8015158114610d0b575f5ffd5b5f5f60408385031215612ff5575f5ffd5b612ffe83612c43565b9150602083013561300e81612fd7565b809150509250929050565b634e487b7160e01b5f52601160045260245ffd5b5f6001820161303e5761303e613019565b5060010190565b5f60208284031215613055575f5ffd5b813563ffffffff81168114611b38575f5ffd5b6001600160601b0319606093841b811682529190921b16601482015260280190565b634e487b7160e01b5f52602160045260245ffd5b60ff8316815260408101600583106130b8576130b861308a565b8260208301529392505050565b5f602082840312156130d5575f5ffd5b611b3882612d40565b5f602082840312156130ee575f5ffd5b611b3882612f8c565b5f60208284031215613107575f5ffd5b8135611b3881612fd7565b8082018082111561095157610951613019565b5f60208284031215613135575f5ffd5b5051919050565b600181811c9082168061315057607f821691505b602082108103610ca857634e487b7160e01b5f52602260045260245ffd5b5f6020828403121561317e575f5ffd5b8151611b3881612fd7565b605481106131995761319961308a565b9052565b82815260408101611b386020830184613189565b92835260208301919091526001600160f81b031916604082015260600190565b601f821115611cc857805f5260205f20601f840160051c810160208510156131f65750805b601f840160051c820191505b81811015613215575f8155600101613202565b5050505050565b815167ffffffffffffffff81111561323657613236612d81565b61324a81613244845461313c565b846131d1565b6020601f82116001811461327c575f83156132655750848201515b5f19600385901b1c1916600184901b178455613215565b5f84815260208120601f198516915b828110156132ab578785015182556020948501946001909201910161328b565b50848210156132c857868401515f19600387901b60f8161c191681555b50505050600190811b01905550565b8481526001600160a01b03841660208201526080604082018190525f9061330090830185612e81565b9050612a616060830184613189565b5f82518060208501845e5f92019182525091905056fe9e7b61f58c47dc699ac88507c4f5bb9f121c03808c5676a8078fe583e4649701a16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d100360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc9e7b61f58c47dc699ac88507c4f5bb9f121c03808c5676a8078fe583e4649700a2646970667358221220c928391038645a815ff5f6083320f34dedc4ca522ecf82c0179f7a69d3bd0a0b64736f6c634300081b0033",
1124
+ "deployedBytecode": "0x608060405260043610610249575f3560e01c8063852b28db11610134578063c1bf1dcf116100b3578063ca423f5211610078578063ca423f5214610737578063d1e8eba91461076a578063d1f1ff6014610789578063dd4db94f146107c3578063e30c3978146107d7578063f2fde38b146107eb575f5ffd5b8063c1bf1dcf1461069b578063c4d66de8146106ba578063c736a433146106d9578063c7e700a814610704578063c92d0f0314610718575f5ffd5b80639c47338f116100f95780639c47338f146105d8578063ad3cb1cc1461060c578063b3ce9b3d14610649578063b745e8b114610668578063bbde418714610687575f5ffd5b8063852b28db1461051557806389aeca76146105345780638cb83540146105625780638da5cb5b1461058d57806391b49755146105b9575f5ffd5b806355ab78f5116101cb57806379ba50971161019057806379ba5097146104465780637ecebe001461045a57806381ba6ce21461048557806382466ccc146104a457806382b7a48b146104c357806384b0196e146104ee575f5ffd5b806355ab78f5146103cb578063560f3ba4146103ea57806358d2b4a5146103ff5780636d4634ea1461041e578063715018a614610432575f5ffd5b80633c23afba116102115780633c23afba14610320578063488baabf146103665780634f1ef2861461038557806350ee480d1461039857806352d1902d146103b7575f5ffd5b806303e8c1391461024d5780631318fe8714610298578063193bd1ce146102b957806325382b83146102df57806336beb697146102f3575b5f5ffd5b348015610258575f5ffd5b5061027e610267366004612c5e565b60076020525f908152604090205463ffffffff1681565b60405163ffffffff90911681526020015b60405180910390f35b3480156102a3575f5ffd5b506102b76102b2366004612c77565b61080a565b005b3480156102c4575f5ffd5b506102cd600f81565b60405160ff909116815260200161028f565b3480156102ea575f5ffd5b506102cd600281565b3480156102fe575f5ffd5b5061031261030d366004612d29565b61091d565b60405190815260200161028f565b34801561032b575f5ffd5b5061035661033a366004612c5e565b6001600160a01b03165f90815260046020526040902054151590565b604051901515815260200161028f565b348015610371575f5ffd5b50610312610380366004612d50565b610957565b6102b7610393366004612d95565b610a46565b3480156103a3575f5ffd5b506102cd6103b2366004612e59565b610a65565b3480156103c2575f5ffd5b50610312610aab565b3480156103d6575f5ffd5b506102b76103e5366004612c5e565b610ac6565b3480156103f5575f5ffd5b5061031260085481565b34801561040a575f5ffd5b50610312610419366004612c5e565b610c16565b348015610429575f5ffd5b506102cd600481565b34801561043d575f5ffd5b506102b7610cae565b348015610451575f5ffd5b506102b7610cc1565b348015610465575f5ffd5b50610312610474366004612c5e565b600a6020525f908152604090205481565b348015610490575f5ffd5b5061031261049f366004612c5e565b610d0e565b3480156104af575f5ffd5b506103126104be366004612c5e565b610da1565b3480156104ce575f5ffd5b506103126104dd366004612c5e565b60066020525f908152604090205481565b3480156104f9575f5ffd5b50610502610e34565b60405161028f9796959493929190612eaf565b348015610520575f5ffd5b506102b761052f366004612f45565b610edd565b34801561053f575f5ffd5b5061035661054e366004612c5e565b60096020525f908152604090205460ff1681565b34801561056d575f5ffd5b5061031261057c366004612c5e565b60056020525f908152604090205481565b348015610598575f5ffd5b506105a1611063565b6040516001600160a01b03909116815260200161028f565b3480156105c4575f5ffd5b506103126105d3366004612f9d565b611097565b3480156105e3575f5ffd5b506103126105f2366004612c5e565b6001600160a01b03165f9081526006602052604090205490565b348015610617575f5ffd5b5061063c604051806040016040528060058152602001640352e302e360dc1b81525081565b60405161028f9190612fc5565b348015610654575f5ffd5b50610312610663366004612c5e565b611142565b348015610673575f5ffd5b50610312610682366004612c5e565b6111d5565b348015610692575f5ffd5b506102cd600181565b3480156106a6575f5ffd5b506102b76106b5366004612fe4565b6112ab565b3480156106c5575f5ffd5b506102b76106d4366004612c5e565b611338565b3480156106e4575f5ffd5b506103126106f3366004612c5e565b60046020525f908152604090205481565b34801561070f575f5ffd5b506102cd600881565b348015610723575f5ffd5b506102b7610732366004612c5e565b6115a7565b348015610742575f5ffd5b506103127ff9d9d50ebaaa414078d4db244db5457cbc9440107058a8da6fc87ec8267587c781565b348015610775575f5ffd5b50610312610784366004612d50565b6115df565b348015610794575f5ffd5b5061027e6107a3366004612c5e565b6001600160a01b03165f9081526007602052604090205463ffffffff1690565b3480156107ce575f5ffd5b506102b761170a565b3480156107e2575f5ffd5b506105a1611713565b3480156107f6575f5ffd5b506102b7610805366004612c5e565b61173b565b335f9081526004602052604090205415610837576040516335d9080560e01b815260040160405180910390fd5b8660c0013542111561085c5760405163068568f360e21b815260040160405180910390fd5b610865876117c0565b610873868686868686611958565b60088054905f6108828361302d565b9091555050600854335f90815260046020908152604080832093909355600581528282204290556006905220608088013590556108c560c0880160a08901613045565b335f81815260076020526040808220805463ffffffff191663ffffffff9590951694909417909355915190917f29056d033e0ed6951611a865e131392e3b35403afc9cdbf70eee3a35c205b6f491a250505050505050565b5f818152600c602052604081205461093481611af0565b61095157604051631a6bd1fd60e01b815260040160405180910390fd5b92915050565b6001600160a01b0382165f90815260046020526040812054839082036109905760405163099efb8960e41b815260040160405180910390fd5b6001600160a01b0384165f908152600260205260408120546109ba906109b586611afb565b611b0a565b6040516001600160601b0319606088901b166020820152671b5a5b93195d995b60c21b60348201526001600160f81b031960f887901b16603c8201529091505f90603d015b60408051601f1981840301815291815281516020928301205f818152600c90935291208390559050610a3082611b3f565b50610a3b8233611b4e565b509095945050505050565b610a4e611b60565b610a5782611c04565b610a618282611c0c565b5050565b5f600b5f8484604051602001610a7c929190613068565b60408051808303601f190181529181528151602092830120835290820192909252015f205460ff169392505050565b5f610ab4611ccd565b505f5160206133665f395f51905f5290565b335f818152600460205260408120549003610af45760405163099efb8960e41b815260040160405180910390fd5b6001600160a01b038216610b1b5760405163d92e233d60e01b815260040160405180910390fd5b5f3383604051602001610b2f929190613068565b60408051601f1981840301815291815281516020928301205f818152600b8452828120805460ff1916600f17905533815292839052912054909150610b749084611b4e565b50335f90815260016020526040902054610b8e9084611b4e565b50335f90815260026020526040902054610ba89084611b4e565b50335f90815260036020526040902054610bc29084611b4e565b50826001600160a01b0316336001600160a01b03167f30ab1425cac82b8f27b8ae1715d03d131df0d8bb590edb534927b641d5eea33f600f5f604051610c0992919061309e565b60405180910390a3505050565b6001600160a01b0381165f9081526004602052604081205482908203610c4f5760405163099efb8960e41b815260040160405180910390fd5b6001600160a01b0383165f90815260036020526040902054610c7090611af0565b610c8d57604051631a6bd1fd60e01b815260040160405180910390fd5b6001600160a01b0383165f9081526003602052604090205491505b50919050565b610cb6611d16565b610cbf5f611d48565b565b3380610ccb611713565b6001600160a01b031614610d025760405163118cdaa760e01b81526001600160a01b03821660048201526024015b60405180910390fd5b610d0b81611d48565b50565b6001600160a01b0381165f9081526004602052604081205482908203610d475760405163099efb8960e41b815260040160405180910390fd5b6001600160a01b0383165f90815260016020526040902054610d6890611af0565b610d8557604051631a6bd1fd60e01b815260040160405180910390fd5b50506001600160a01b03165f9081526001602052604090205490565b6001600160a01b0381165f9081526004602052604081205482908203610dda5760405163099efb8960e41b815260040160405180910390fd5b6001600160a01b0383165f90815260026020526040902054610dfb90611af0565b610e1857604051631a6bd1fd60e01b815260040160405180910390fd5b50506001600160a01b03165f9081526002602052604090205490565b5f60608082808083815f5160206133465f395f51905f528054909150158015610e5f57506001810154155b610ea35760405162461bcd60e51b81526020600482015260156024820152741152540dcc4c8e88155b9a5b9a5d1a585b1a5e9959605a1b6044820152606401610cf9565b610eab611d80565b610eb3611e40565b604080515f80825260208201909252600f60f81b9c939b5091995046985030975095509350915050565b335f818152600460205260408120549003610f0b5760405163099efb8960e41b815260040160405180910390fd5b6001600160a01b038416610f325760405163d92e233d60e01b815260040160405180910390fd5b5f3385604051602001610f46929190613068565b60408051601f1981840301815291815281516020928301205f818152600b9093529120805460ff8088169082161760ff1990911617905590506001841615610fa357335f90815260208190526040902054610fa19086611b4e565b505b6002841615610fc757335f90815260016020526040902054610fc59086611b4e565b505b6004841615610feb57335f90815260026020526040902054610fe99086611b4e565b505b600884161561100f57335f9081526003602052604090205461100d9086611b4e565b505b846001600160a01b0316336001600160a01b03167f30ab1425cac82b8f27b8ae1715d03d131df0d8bb590edb534927b641d5eea33f868660405161105492919061309e565b60405180910390a35050505050565b5f807f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c1993005b546001600160a01b031692915050565b6001600160a01b0382165f90815260046020526040812054839082036110d05760405163099efb8960e41b815260040160405180910390fd5b6001600160a01b0384165f908152600160205260408120546110fa906110f586611e7e565b611e8e565b6040516001600160601b0319606088901b16602082015266636f756e74727960c81b60348201526001600160f01b031960f087901b16603b8201529091505f90603d016109ff565b6001600160a01b0381165f908152600460205260408120548290820361117b5760405163099efb8960e41b815260040160405180910390fd5b6001600160a01b0383165f9081526020819052604090205461119c90611af0565b6111b957604051631a6bd1fd60e01b815260040160405180910390fd5b50506001600160a01b03165f9081526020819052604090205490565b6001600160a01b0381165f908152600460205260408120548290820361120e5760405163099efb8960e41b815260040160405180910390fd5b6001600160a01b0383165f9081526003602052604081205461122f90611ebc565b6040516001600160601b0319606087901b1660208201526d1b9bdd109b1858dadb1a5cdd195960921b60348201529091505f9060420160408051601f1981840301815291815281516020928301205f818152600c9093529120839055905061129682611b3f565b506112a18233611b4e565b5090949350505050565b6112b3611d16565b6001600160a01b0382166112da5760405163d92e233d60e01b815260040160405180910390fd5b6001600160a01b0382165f81815260096020908152604091829020805460ff191685151590811790915591519182527faa29e9c7319872059973646686bcb05675a1351529119ca980b4ad90e73d7264910160405180910390a25050565b5f611341611ec6565b805490915060ff600160401b820416159067ffffffffffffffff165f811580156113685750825b90505f8267ffffffffffffffff1660011480156113845750303b155b905081158015611392575080155b156113b05760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff1916600117855583156113da57845460ff60401b1916600160401b1785555b6001600160a01b0386166114015760405163d92e233d60e01b815260040160405180910390fd5b611409611eee565b611411611eee565b61141a86611ef6565b6114726040518060400160405280601781526020017f5a656e746974794964656e746974795265676973747279000000000000000000815250604051806040016040528060018152602001601960f91b815250611f07565b61150061147d611f19565b80515f5160206133865f395f51905f5280546001600160a01b03199081166001600160a01b039384161790915560208301515f5160206133265f395f51905f528054831691841691909117905560408301517f9e7b61f58c47dc699ac88507c4f5bb9f121c03808c5676a8078fe583e46497028054909216921691909117905550565b6001600160a01b0386165f81815260096020908152604091829020805460ff1916600190811790915591519182527faa29e9c7319872059973646686bcb05675a1351529119ca980b4ad90e73d7264910160405180910390a2831561159f57845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b505050505050565b335f9081526009602052604090205460ff166115d657604051632fed761f60e01b815260040160405180910390fd5b610d0b81611fb3565b6001600160a01b0382165f90815260046020526040812054839082036116185760405163099efb8960e41b815260040160405180910390fd5b5f61162284611afb565b6001600160a01b0386165f90815260026020526040812054919250906116489083611b0a565b6001600160a01b0387165f908152600360205260408120549192509061166d90611ebc565b90505f61167a83836120d7565b6040516001600160601b031960608b901b16602082015269636f6d706c69616e636560b01b60348201526001600160f81b031960f88a901b16603e8201529091505f90603f0160408051601f1981840301815291815281516020928301205f818152600c909352912083905590506116f182611b3f565b506116fc8233611b4e565b509098975050505050505050565b610cbf33611fb3565b5f807f237e158222e3e6968b72b9db0d8043aacf074ad9f650f0d1606b4d82ee432c00611087565b611743611d16565b7f237e158222e3e6968b72b9db0d8043aacf074ad9f650f0d1606b4d82ee432c0080546001600160a01b0319166001600160a01b0383169081178255611787611063565b6001600160a01b03167f38d16b8cac22d99fc7c124b9cd0de2d3fa1faef420bfe791d8c362d765e2270060405160405180910390a35050565b335f818152600a60209081526040822054927ff9d9d50ebaaa414078d4db244db5457cbc9440107058a8da6fc87ec8267587c791611800908601866130c5565b61181060408701602088016130de565b61182060608801604089016130c5565b6118306080890160608a016130f7565b608089013561184560c08b0160a08c01613045565b6040805160208101999099526001600160a01b039097169688019690965260ff948516606088015261ffff9093166080870152921660a085015290151560c08481019190915260e084019190915263ffffffff9091166101008301526101208201849052840135610140820152610160016040516020818303038152906040528051906020012090505f6118fd6118db83612105565b6118ec610100870160e088016130c5565b866101000135876101200135612131565b6001600160a01b0381165f9081526009602052604090205490915060ff166119385760405163ddafbaef60e01b815260040160405180910390fd5b611943836001613112565b335f908152600a602052604090205550505050565b5f6119988784848080601f0160208091040260200160405190810160405280939291908181526020018383808284375f9201919091525061215d92505050565b90505f6119da8785858080601f0160208091040260200160405190810160405280939291908181526020018383808284375f9201919091525061216a92505050565b90505f611a1c8786868080601f0160208091040260200160405190810160405280939291908181526020018383808284375f9201919091525061215d92505050565b90505f611a5e8787878080601f0160208091040260200160405190810160405280939291908181526020018383808284375f9201919091525061217792505050565b335f908152602081815260408083208890556001825280832087905560028252808320869055600390915290208190559050611a9984611b3f565b50611aa383611b3f565b50611aad82611b3f565b50611ab781611b3f565b50611ac28433611b4e565b50611acd8333611b4e565b50611ad88233611b4e565b50611ae38133611b4e565b5050505050505050505050565b5f6109518233612183565b5f6109518260ff16600261220f565b5f82611b1c57611b195f611afb565b92505b81611b2d57611b2a5f611afb565b91505b611b3883835f61229e565b9392505050565b5f611b4a823061234b565b5090565b5f611b59838361234b565b5090919050565b306001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161480611be657507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316611bda5f5160206133665f395f51905f52546001600160a01b031690565b6001600160a01b031614155b15610cbf5760405163703e46dd60e11b815260040160405180910390fd5b610d0b611d16565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa925050508015611c66575060408051601f3d908101601f19168201909252611c6391810190613125565b60015b611c8e57604051634c9c8ce360e01b81526001600160a01b0383166004820152602401610cf9565b5f5160206133665f395f51905f528114611cbe57604051632a87526960e21b815260048101829052602401610cf9565b611cc883836123c1565b505050565b306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614610cbf5760405163703e46dd60e11b815260040160405180910390fd5b33611d1f611063565b6001600160a01b031614610cbf5760405163118cdaa760e01b8152336004820152602401610cf9565b7f237e158222e3e6968b72b9db0d8043aacf074ad9f650f0d1606b4d82ee432c0080546001600160a01b0319168155610a6182612416565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10280546060915f5160206133465f395f51905f5291611dbe9061313c565b80601f0160208091040260200160405190810160405280929190818152602001828054611dea9061313c565b8015611e355780601f10611e0c57610100808354040283529160200191611e35565b820191905f5260205f20905b815481529060010190602001808311611e1857829003601f168201915b505050505091505090565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10380546060915f5160206133465f395f51905f5291611dbe9061313c565b5f6109518261ffff16600361220f565b5f82611ea057611e9d5f611e7e565b92505b81611eb157611eae5f611e7e565b91505b611b3883835f612486565b5f610951826124e9565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00610951565b610cbf612568565b611efe612568565b610d0b8161258d565b611f0f612568565b610a6182826125be565b604080516060810182525f808252602082018190529181019190915246600103611f77575060408051606080820183525f8083526020808401829052928401819052835191820184528082529181018290529182015290565b905090565b4662aa36a703611f8957611f7261261d565b46617a6903611f9a57611f7261261d565b6040516373cac13b60e01b815260040160405180910390fd5b6001600160a01b0381165f908152600460205260408120549003611fea5760405163099efb8960e41b815260040160405180910390fd5b611ff35f611afb565b6001600160a01b0382165f9081526020819052604081209190915561201790611e7e565b6001600160a01b0382165f9081526001602052604081209190915561203b90611afb565b6001600160a01b0382165f9081526002602052604081209190915561205f90612694565b6001600160a01b0382165f8181526003602090815260408083209490945560048152838220829055600581528382208290556006815283822082905560079052828120805463ffffffff19169055915190917fccf550e579fbeb7d56da9a0175f8d4526535cab139e73b592516f1916d4075dd91a250565b5f826120e9576120e65f612694565b92505b816120fa576120f75f612694565b91505b611b3883835f6126af565b5f610951612111612712565b8360405161190160f01b8152600281019290925260228201526042902090565b5f5f5f5f6121418888888861271b565b92509250925061215182826127e3565b50909695505050505050565b5f611b388383600261289b565b5f611b388383600361289b565b5f611b3883835f61289b565b5f805f5160206133865f395f51905f5280546040516382027b6d60e01b8152600481018790526001600160a01b0386811660248301529293509116906382027b6d90604401602060405180830381865afa1580156121e3573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190612207919061316e565b949350505050565b5f5160206133265f395f51905f5254604051639cd07acb60e01b81525f915f5160206133865f395f51905f52916001600160a01b0390911690639cd07acb9061225e908790879060040161319d565b6020604051808303815f875af115801561227a573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906122079190613125565b5f5f82156122b15750600160f81b6122b4565b505f5b5f5160206133265f395f51905f5254604051631391547f60e01b81525f5160206133865f395f51905f52916001600160a01b031690631391547f90612301908990899087906004016131b1565b6020604051808303815f875af115801561231d573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906123419190613125565b9695505050505050565b5f5f5160206133865f395f51905f528054604051635ca4b5b160e11b8152600481018690526001600160a01b03858116602483015292935091169063b9496b62906044015f604051808303815f87803b1580156123a6575f5ffd5b505af11580156123b8573d5f5f3e3d5ffd5b50505050505050565b6123ca82612995565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a280511561240e57611cc882826129f8565b610a61612a6a565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b5f5f82156124995750600160f81b61249c565b505f5b5f5160206133265f395f51905f525460405163f77f3f1d60e01b81525f5160206133865f395f51905f52916001600160a01b03169063f77f3f1d90612301908990899087906004016131b1565b5f805f5160206133865f395f51905f526001810154604051630f51ccfb60e41b8152600481018690529192506001600160a01b03169063f51ccfb0906024016020604051808303815f875af1158015612544573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611b389190613125565b612570612a89565b610cbf57604051631afcd79f60e31b815260040160405180910390fd5b612595612568565b6001600160a01b038116610d0257604051631e4fbdf760e01b81525f6004820152602401610cf9565b6125c6612568565b5f5160206133465f395f51905f527fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d1026125ff848261321c565b506003810161260e838261321c565b505f8082556001909101555050565b604080516060810182525f8082526020820181905291810191909152506040805160608101825273f0ffdc93b7e186bc2f8cb3daa75d86d1930a433d81527392c920834ec8941d2c77d188936e1f7a6f49c127602082015273be0e383937d564d7ff0bc3b46c51f0bf8d5c311a9181019190915290565b5f610951826126a3575f6126a6565b60015b60ff165f61220f565b5f5f82156126c25750600160f81b6126c5565b505f5b5f5160206133265f395f51905f525460405163d99882d560e01b81525f5160206133865f395f51905f52916001600160a01b03169063d99882d590612301908990899087906004016131b1565b5f611f72612aa2565b5f80807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a084111561275457505f915060039050826127d9565b604080515f808252602082018084528a905260ff891692820192909252606081018790526080810186905260019060a0016020604051602081039080840390855afa1580156127a5573d5f5f3e3d5ffd5b5050604051601f1901519150506001600160a01b0381166127d057505f9250600191508290506127d9565b92505f91508190505b9450945094915050565b5f8260038111156127f6576127f661308a565b036127ff575050565b60018260038111156128135761281361308a565b036128315760405163f645eedf60e01b815260040160405180910390fd5b60028260038111156128455761284561308a565b036128665760405163fce698f760e01b815260048101829052602401610cf9565b600382600381111561287a5761287a61308a565b03610a61576040516335e2f38360e21b815260048101829052602401610cf9565b5f5160206133265f395f51905f525460405163045fc19560e11b81525f915f5160206133865f395f51905f52916001600160a01b03909116906308bf832a906128ee9088903390899089906004016132d7565b6020604051808303815f875af115801561290a573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061292e9190613125565b8154604051630f8e573b60e21b8152600481018390523360248201529193506001600160a01b031690633e395cec906044015f604051808303815f87803b158015612977575f5ffd5b505af1158015612989573d5f5f3e3d5ffd5b50505050509392505050565b806001600160a01b03163b5f036129ca57604051634c9c8ce360e01b81526001600160a01b0382166004820152602401610cf9565b5f5160206133665f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b031684604051612a14919061330f565b5f60405180830381855af49150503d805f8114612a4c576040519150601f19603f3d011682016040523d82523d5f602084013e612a51565b606091505b5091509150612a61858383612b15565b95945050505050565b3415610cbf5760405163b398979f60e01b815260040160405180910390fd5b5f612a92611ec6565b54600160401b900460ff16919050565b5f7f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f612acc612b71565b612ad4612bd9565b60408051602081019490945283019190915260608201524660808201523060a082015260c00160405160208183030381529060405280519060200120905090565b606082612b2a57612b2582612c1b565b611b38565b8151158015612b4157506001600160a01b0384163b155b15612b6a57604051639996b31560e01b81526001600160a01b0385166004820152602401610cf9565b5092915050565b5f5f5160206133465f395f51905f5281612b89611d80565b805190915015612ba157805160209091012092915050565b81548015612bb0579392505050565b7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470935050505090565b5f5f5160206133465f395f51905f5281612bf1611e40565b805190915015612c0957805160209091012092915050565b60018201548015612bb0579392505050565b805115612c2a57805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b0381168114612c59575f5ffd5b919050565b5f60208284031215612c6e575f5ffd5b611b3882612c43565b5f5f5f5f5f5f5f8789036101e0811215612c8f575f5ffd5b610140811215612c9d575f5ffd5b508796506101408701359550610160870135945061018087013593506101a087013592506101c087013567ffffffffffffffff811115612cdb575f5ffd5b8801601f81018a13612ceb575f5ffd5b803567ffffffffffffffff811115612d01575f5ffd5b8a6020828401011115612d12575f5ffd5b602082019350809250505092959891949750929550565b5f60208284031215612d39575f5ffd5b5035919050565b803560ff81168114612c59575f5ffd5b5f5f60408385031215612d61575f5ffd5b612d6a83612c43565b9150612d7860208401612d40565b90509250929050565b634e487b7160e01b5f52604160045260245ffd5b5f5f60408385031215612da6575f5ffd5b612daf83612c43565b9150602083013567ffffffffffffffff811115612dca575f5ffd5b8301601f81018513612dda575f5ffd5b803567ffffffffffffffff811115612df457612df4612d81565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715612e2357612e23612d81565b604052818152828201602001871015612e3a575f5ffd5b816020840160208301375f602083830101528093505050509250929050565b5f5f60408385031215612e6a575f5ffd5b612e7383612c43565b9150612d7860208401612c43565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b60ff60f81b8816815260e060208201525f612ecd60e0830189612e81565b8281036040840152612edf8189612e81565b606084018890526001600160a01b038716608085015260a0840186905283810360c0850152845180825260208087019350909101905f5b81811015612f34578351835260209384019390920191600101612f16565b50909b9a5050505050505050505050565b5f5f5f60608486031215612f57575f5ffd5b612f6084612c43565b9250612f6e60208501612d40565b9150604084013560058110612f81575f5ffd5b809150509250925092565b803561ffff81168114612c59575f5ffd5b5f5f60408385031215612fae575f5ffd5b612fb783612c43565b9150612d7860208401612f8c565b602081525f611b386020830184612e81565b8015158114610d0b575f5ffd5b5f5f60408385031215612ff5575f5ffd5b612ffe83612c43565b9150602083013561300e81612fd7565b809150509250929050565b634e487b7160e01b5f52601160045260245ffd5b5f6001820161303e5761303e613019565b5060010190565b5f60208284031215613055575f5ffd5b813563ffffffff81168114611b38575f5ffd5b6001600160601b0319606093841b811682529190921b16601482015260280190565b634e487b7160e01b5f52602160045260245ffd5b60ff8316815260408101600583106130b8576130b861308a565b8260208301529392505050565b5f602082840312156130d5575f5ffd5b611b3882612d40565b5f602082840312156130ee575f5ffd5b611b3882612f8c565b5f60208284031215613107575f5ffd5b8135611b3881612fd7565b8082018082111561095157610951613019565b5f60208284031215613135575f5ffd5b5051919050565b600181811c9082168061315057607f821691505b602082108103610ca857634e487b7160e01b5f52602260045260245ffd5b5f6020828403121561317e575f5ffd5b8151611b3881612fd7565b605481106131995761319961308a565b9052565b82815260408101611b386020830184613189565b92835260208301919091526001600160f81b031916604082015260600190565b601f821115611cc857805f5260205f20601f840160051c810160208510156131f65750805b601f840160051c820191505b81811015613215575f8155600101613202565b5050505050565b815167ffffffffffffffff81111561323657613236612d81565b61324a81613244845461313c565b846131d1565b6020601f82116001811461327c575f83156132655750848201515b5f19600385901b1c1916600184901b178455613215565b5f84815260208120601f198516915b828110156132ab578785015182556020948501946001909201910161328b565b50848210156132c857868401515f19600387901b60f8161c191681555b50505050600190811b01905550565b8481526001600160a01b03841660208201526080604082018190525f9061330090830185612e81565b9050612a616060830184613189565b5f82518060208501845e5f92019182525091905056fe9e7b61f58c47dc699ac88507c4f5bb9f121c03808c5676a8078fe583e4649701a16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d100360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc9e7b61f58c47dc699ac88507c4f5bb9f121c03808c5676a8078fe583e4649700a2646970667358221220c928391038645a815ff5f6083320f34dedc4ca522ecf82c0179f7a69d3bd0a0b64736f6c634300081b0033",
1125
+ "devdoc": {
1126
+ "author": "Gustavo Valverde",
1127
+ "details": "UUPS-upgradeable. User submits attestation tx with registrar-signed permit. Compliance checks are composable by x402 facilitators and DeFi contracts via the branch-free FHE.select() pattern.",
1128
+ "errors": {
1129
+ "AddressEmptyCode(address)": [
1130
+ {
1131
+ "details": "There's no code at `target` (it is not a contract)."
1132
+ }
1133
+ ],
1134
+ "ECDSAInvalidSignature()": [
1135
+ {
1136
+ "details": "The signature derives the `address(0)`."
1137
+ }
1138
+ ],
1139
+ "ECDSAInvalidSignatureLength(uint256)": [
1140
+ {
1141
+ "details": "The signature has an invalid length."
1142
+ }
1143
+ ],
1144
+ "ECDSAInvalidSignatureS(bytes32)": [
1145
+ {
1146
+ "details": "The signature has an S value that is in the upper half order."
1147
+ }
1148
+ ],
1149
+ "ERC1967InvalidImplementation(address)": [
1150
+ {
1151
+ "details": "The `implementation` of the proxy is invalid."
1152
+ }
1153
+ ],
1154
+ "ERC1967NonPayable()": [
1155
+ {
1156
+ "details": "An upgrade function sees `msg.value > 0` that may be lost."
1157
+ }
1158
+ ],
1159
+ "FailedCall()": [
1160
+ {
1161
+ "details": "A call to an address target failed. The target may have reverted."
1162
+ }
1163
+ ],
1164
+ "InvalidInitialization()": [
1165
+ {
1166
+ "details": "The contract is already initialized."
1167
+ }
1168
+ ],
1169
+ "NotInitializing()": [
1170
+ {
1171
+ "details": "The contract is not initializing."
1172
+ }
1173
+ ],
1174
+ "OwnableInvalidOwner(address)": [
1175
+ {
1176
+ "details": "The owner is not a valid owner account. (eg. `address(0)`)"
1177
+ }
1178
+ ],
1179
+ "OwnableUnauthorizedAccount(address)": [
1180
+ {
1181
+ "details": "The caller account is not authorized to perform an operation."
1182
+ }
1183
+ ],
1184
+ "UUPSUnauthorizedCallContext()": [
1185
+ {
1186
+ "details": "The call is from an unauthorized context."
1187
+ }
1188
+ ],
1189
+ "UUPSUnsupportedProxiableUUID(bytes32)": [
1190
+ {
1191
+ "details": "The storage `slot` is unsupported as a UUID."
1192
+ }
1193
+ ]
1194
+ },
1195
+ "events": {
1196
+ "EIP712DomainChanged()": {
1197
+ "details": "MAY be emitted to signal that the domain could have changed."
1198
+ },
1199
+ "Initialized(uint64)": {
1200
+ "details": "Triggered when the contract has been initialized or reinitialized."
1201
+ },
1202
+ "Upgraded(address)": {
1203
+ "details": "Emitted when the implementation is upgraded."
1204
+ }
1205
+ },
1206
+ "kind": "dev",
1207
+ "methods": {
1208
+ "acceptOwnership()": {
1209
+ "details": "The new owner accepts the ownership transfer."
1210
+ },
1211
+ "attestWithPermit((uint8,uint16,uint8,bool,bytes32,uint32,uint256,uint8,bytes32,bytes32),bytes32,bytes32,bytes32,bytes32,bytes)": {
1212
+ "details": "The user submits this transaction with their own FHE-encrypted values. The contract verifies the registrar's signature over the plaintext values and stores the user's encrypted values. Nonce is auto-incremented.",
1213
+ "params": {
1214
+ "encBirthYearOffset": "FHE-encrypted birth year offset",
1215
+ "encComplianceLevel": "FHE-encrypted compliance level",
1216
+ "encCountryCode": "FHE-encrypted country code",
1217
+ "encIsBlacklisted": "FHE-encrypted blacklist status",
1218
+ "inputProof": "FHE input proof binding encrypted values to (contract, user)",
1219
+ "permit": "Registrar-signed permit containing plaintext values + ECDSA signature"
1220
+ }
1221
+ },
1222
+ "checkCompliance(address,uint8)": {
1223
+ "details": "State-mutating (FHE comparisons). Stores and returns encrypted result. x402 facilitators compose this inline: `euint64 amt = FHE.select(registry.checkCompliance(payer, 2), amount, zero);`",
1224
+ "params": {
1225
+ "minLevel": "Minimum compliance level required",
1226
+ "user": "Address to check"
1227
+ },
1228
+ "returns": {
1229
+ "_0": "Encrypted boolean: true if compliant"
1230
+ }
1231
+ },
1232
+ "constructor": {
1233
+ "custom:oz-upgrades-unsafe-allow": "constructor"
1234
+ },
1235
+ "eip712Domain()": {
1236
+ "details": "returns the fields and values that describe the domain separator used by this contract for EIP-712 signature."
1237
+ },
1238
+ "getVerificationResult(bytes32)": {
1239
+ "params": {
1240
+ "key": "The result key (keccak256 of check parameters)"
1241
+ }
1242
+ },
1243
+ "grantAccessTo(address)": {
1244
+ "params": {
1245
+ "grantee": "Address receiving access permission"
1246
+ }
1247
+ },
1248
+ "grantAttributeAccess(address,uint8,uint8)": {
1249
+ "params": {
1250
+ "attributeMask": "Bitmask: 0x01=birthYear, 0x02=country, 0x04=compliance, 0x08=blacklist",
1251
+ "grantee": "Address receiving access permission",
1252
+ "purpose": "Why access is needed (on-chain audit trail)"
1253
+ }
1254
+ },
1255
+ "hasMinComplianceLevel(address,uint8)": {
1256
+ "params": {
1257
+ "minLevel": "Minimum level required",
1258
+ "user": "Address to check"
1259
+ },
1260
+ "returns": {
1261
+ "_0": "Encrypted boolean result"
1262
+ }
1263
+ },
1264
+ "initialize(address)": {
1265
+ "params": {
1266
+ "initialOwner": "Address that becomes owner and first registrar"
1267
+ }
1268
+ },
1269
+ "isFromCountry(address,uint16)": {
1270
+ "params": {
1271
+ "country": "ISO 3166-1 numeric country code",
1272
+ "user": "Address to check"
1273
+ },
1274
+ "returns": {
1275
+ "_0": "Encrypted boolean result"
1276
+ }
1277
+ },
1278
+ "isNotBlacklisted(address)": {
1279
+ "params": {
1280
+ "user": "Address to check"
1281
+ },
1282
+ "returns": {
1283
+ "_0": "Encrypted boolean (true if NOT blacklisted)"
1284
+ }
1285
+ },
1286
+ "owner()": {
1287
+ "details": "Returns the address of the current owner."
1288
+ },
1289
+ "pendingOwner()": {
1290
+ "details": "Returns the address of the pending owner."
1291
+ },
1292
+ "proxiableUUID()": {
1293
+ "details": "Implementation of the ERC-1822 {proxiableUUID} function. This returns the storage slot used by the implementation. It is used to validate the implementation's compatibility when performing an upgrade. IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this function revert if invoked through a proxy. This is guaranteed by the `notDelegated` modifier."
1294
+ },
1295
+ "renounceOwnership()": {
1296
+ "details": "Leaves the contract without owner. It will not be possible to call `onlyOwner` functions. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby disabling any functionality that is only available to the owner."
1297
+ },
1298
+ "revokeIdentityFor(address)": {
1299
+ "params": {
1300
+ "user": "Address of the user to revoke"
1301
+ }
1302
+ },
1303
+ "setRegistrar(address,bool)": {
1304
+ "params": {
1305
+ "registrar": "Address to update",
1306
+ "status": "true to add, false to remove"
1307
+ }
1308
+ },
1309
+ "transferOwnership(address)": {
1310
+ "details": "Starts the ownership transfer of the contract to a new account. Replaces the pending transfer if there is one. Can only be called by the current owner. Setting `newOwner` to the zero address is allowed; this can be used to cancel an initiated ownership transfer."
1311
+ },
1312
+ "upgradeToAndCall(address,bytes)": {
1313
+ "custom:oz-upgrades-unsafe-allow-reachable": "delegatecall",
1314
+ "details": "Upgrade the implementation of the proxy to `newImplementation`, and subsequently execute the function call encoded in `data`. Calls {_authorizeUpgrade}. Emits an {Upgraded} event."
1315
+ }
1316
+ },
1317
+ "stateVariables": {
1318
+ "ATTEST_PERMIT_TYPEHASH": {
1319
+ "details": "EIP-712 typehash for the attestation permit"
1320
+ },
1321
+ "__gap": {
1322
+ "details": "Reserved storage gap for future upgrades"
1323
+ },
1324
+ "attributeGrants": {
1325
+ "details": "keccak256(user, grantee) => attribute bitmask"
1326
+ }
1327
+ },
1328
+ "title": "IdentityRegistry",
1329
+ "version": 1
1330
+ },
1331
+ "userdoc": {
1332
+ "errors": {
1333
+ "AccessProhibited()": [
1334
+ {
1335
+ "notice": "Thrown when caller lacks FHE permission for encrypted data"
1336
+ }
1337
+ ],
1338
+ "AlreadyAttested()": [
1339
+ {
1340
+ "notice": "Thrown when attempting to attest an already-attested user"
1341
+ }
1342
+ ],
1343
+ "InvalidPermit()": [
1344
+ {
1345
+ "notice": "Thrown when the EIP-712 permit signature is invalid"
1346
+ }
1347
+ ],
1348
+ "NotAttested()": [
1349
+ {
1350
+ "notice": "Thrown when querying a user without attestation"
1351
+ }
1352
+ ],
1353
+ "OnlyRegistrar()": [
1354
+ {
1355
+ "notice": "Thrown when caller is not an authorized registrar"
1356
+ }
1357
+ ],
1358
+ "PermitExpired()": [
1359
+ {
1360
+ "notice": "Thrown when the permit deadline has passed"
1361
+ }
1362
+ ],
1363
+ "ZamaProtocolUnsupported()": [
1364
+ {
1365
+ "notice": "Returned if the Zama protocol is not supported on the current chain"
1366
+ }
1367
+ ],
1368
+ "ZeroAddress()": [
1369
+ {
1370
+ "notice": "Thrown when an address argument is the zero address"
1371
+ }
1372
+ ]
1373
+ },
1374
+ "events": {
1375
+ "AttributeAccessGranted(address,address,uint8,uint8)": {
1376
+ "notice": "Emitted when a user grants per-attribute access to a grantee"
1377
+ },
1378
+ "IdentityAttested(address)": {
1379
+ "notice": "Emitted when an identity is attested via registrar permit"
1380
+ },
1381
+ "IdentityRevoked(address)": {
1382
+ "notice": "Emitted when an identity attestation is revoked"
1383
+ },
1384
+ "RegistrarUpdated(address,bool)": {
1385
+ "notice": "Emitted when a registrar is added or removed"
1386
+ }
1387
+ },
1388
+ "kind": "user",
1389
+ "methods": {
1390
+ "attestWithPermit((uint8,uint16,uint8,bool,bytes32,uint32,uint256,uint8,bytes32,bytes32),bytes32,bytes32,bytes32,bytes32,bytes)": {
1391
+ "notice": "Attest identity using a registrar-signed EIP-712 permit"
1392
+ },
1393
+ "attestationTimestamp(address)": {
1394
+ "notice": "Get the timestamp when a user was attested"
1395
+ },
1396
+ "checkCompliance(address,uint8)": {
1397
+ "notice": "Combined compliance check: level >= minLevel AND not blacklisted"
1398
+ },
1399
+ "currentAttestationId(address)": {
1400
+ "notice": "Get the current attestation ID for a user (0 if not attested)"
1401
+ },
1402
+ "getBirthYearOffset(address)": {
1403
+ "notice": "Get user's encrypted birth year offset (caller must have FHE ACL access)"
1404
+ },
1405
+ "getBlacklistStatus(address)": {
1406
+ "notice": "Get user's encrypted blacklist status (caller must have FHE ACL access)"
1407
+ },
1408
+ "getComplianceLevel(address)": {
1409
+ "notice": "Get user's encrypted compliance level (caller must have FHE ACL access)"
1410
+ },
1411
+ "getCountryCode(address)": {
1412
+ "notice": "Get user's encrypted country code (caller must have FHE ACL access)"
1413
+ },
1414
+ "getGrantedAttributes(address,address)": {
1415
+ "notice": "Get the attribute mask granted to a grantee by a user"
1416
+ },
1417
+ "getPolicyVersion(address)": {
1418
+ "notice": "Get the policy version for a user's attestation"
1419
+ },
1420
+ "getProofSetHash(address)": {
1421
+ "notice": "Get the proof set hash for a user's attestation"
1422
+ },
1423
+ "getVerificationResult(bytes32)": {
1424
+ "notice": "Get a previously stored verification result"
1425
+ },
1426
+ "grantAccessTo(address)": {
1427
+ "notice": "Grant FHE access to all attributes (convenience wrapper)"
1428
+ },
1429
+ "grantAttributeAccess(address,uint8,uint8)": {
1430
+ "notice": "Grant FHE access to specific attributes for a stated purpose"
1431
+ },
1432
+ "hasMinComplianceLevel(address,uint8)": {
1433
+ "notice": "Check if user meets minimum compliance level"
1434
+ },
1435
+ "initialize(address)": {
1436
+ "notice": "Initialize the registry (called once via proxy)"
1437
+ },
1438
+ "isAttested(address)": {
1439
+ "notice": "Check if a user has a valid attestation"
1440
+ },
1441
+ "isFromCountry(address,uint16)": {
1442
+ "notice": "Check if user is from a specific country"
1443
+ },
1444
+ "isNotBlacklisted(address)": {
1445
+ "notice": "Check if user is not blacklisted"
1446
+ },
1447
+ "nonces(address)": {
1448
+ "notice": "Get the EIP-712 nonce for a user (for permit construction)"
1449
+ },
1450
+ "registrars(address)": {
1451
+ "notice": "Check if an address is an authorized registrar"
1452
+ },
1453
+ "revokeIdentity()": {
1454
+ "notice": "Revoke caller's own attestation (user self-revocation)"
1455
+ },
1456
+ "revokeIdentityFor(address)": {
1457
+ "notice": "Revoke a user's attestation (registrar-only)"
1458
+ },
1459
+ "setRegistrar(address,bool)": {
1460
+ "notice": "Add or remove a registrar"
1461
+ }
1462
+ },
1463
+ "notice": "On-chain encrypted identity registry with EIP-712 registrar permits, per-attribute selective grants, and x402 compliance oracle surface.",
1464
+ "version": 1
1465
+ },
1466
+ "storageLayout": {
1467
+ "storage": [
1468
+ {
1469
+ "astId": 47164,
1470
+ "contract": "contracts/core/IdentityRegistry.sol:IdentityRegistry",
1471
+ "label": "birthYearOffsets",
1472
+ "offset": 0,
1473
+ "slot": "0",
1474
+ "type": "t_mapping(t_address,t_userDefinedValueType(euint8)49557)"
1475
+ },
1476
+ {
1477
+ "astId": 47169,
1478
+ "contract": "contracts/core/IdentityRegistry.sol:IdentityRegistry",
1479
+ "label": "countryCodes",
1480
+ "offset": 0,
1481
+ "slot": "1",
1482
+ "type": "t_mapping(t_address,t_userDefinedValueType(euint16)49559)"
1483
+ },
1484
+ {
1485
+ "astId": 47174,
1486
+ "contract": "contracts/core/IdentityRegistry.sol:IdentityRegistry",
1487
+ "label": "complianceLevels",
1488
+ "offset": 0,
1489
+ "slot": "2",
1490
+ "type": "t_mapping(t_address,t_userDefinedValueType(euint8)49557)"
1491
+ },
1492
+ {
1493
+ "astId": 47179,
1494
+ "contract": "contracts/core/IdentityRegistry.sol:IdentityRegistry",
1495
+ "label": "blacklistStatuses",
1496
+ "offset": 0,
1497
+ "slot": "3",
1498
+ "type": "t_mapping(t_address,t_userDefinedValueType(ebool)49555)"
1499
+ },
1500
+ {
1501
+ "astId": 47183,
1502
+ "contract": "contracts/core/IdentityRegistry.sol:IdentityRegistry",
1503
+ "label": "currentAttestationId",
1504
+ "offset": 0,
1505
+ "slot": "4",
1506
+ "type": "t_mapping(t_address,t_uint256)"
1507
+ },
1508
+ {
1509
+ "astId": 47187,
1510
+ "contract": "contracts/core/IdentityRegistry.sol:IdentityRegistry",
1511
+ "label": "attestationTimestamp",
1512
+ "offset": 0,
1513
+ "slot": "5",
1514
+ "type": "t_mapping(t_address,t_uint256)"
1515
+ },
1516
+ {
1517
+ "astId": 47191,
1518
+ "contract": "contracts/core/IdentityRegistry.sol:IdentityRegistry",
1519
+ "label": "proofSetHashes",
1520
+ "offset": 0,
1521
+ "slot": "6",
1522
+ "type": "t_mapping(t_address,t_bytes32)"
1523
+ },
1524
+ {
1525
+ "astId": 47195,
1526
+ "contract": "contracts/core/IdentityRegistry.sol:IdentityRegistry",
1527
+ "label": "policyVersions",
1528
+ "offset": 0,
1529
+ "slot": "7",
1530
+ "type": "t_mapping(t_address,t_uint32)"
1531
+ },
1532
+ {
1533
+ "astId": 47197,
1534
+ "contract": "contracts/core/IdentityRegistry.sol:IdentityRegistry",
1535
+ "label": "latestAttestationId",
1536
+ "offset": 0,
1537
+ "slot": "8",
1538
+ "type": "t_uint256"
1539
+ },
1540
+ {
1541
+ "astId": 47201,
1542
+ "contract": "contracts/core/IdentityRegistry.sol:IdentityRegistry",
1543
+ "label": "registrars",
1544
+ "offset": 0,
1545
+ "slot": "9",
1546
+ "type": "t_mapping(t_address,t_bool)"
1547
+ },
1548
+ {
1549
+ "astId": 47205,
1550
+ "contract": "contracts/core/IdentityRegistry.sol:IdentityRegistry",
1551
+ "label": "nonces",
1552
+ "offset": 0,
1553
+ "slot": "10",
1554
+ "type": "t_mapping(t_address,t_uint256)"
1555
+ },
1556
+ {
1557
+ "astId": 47210,
1558
+ "contract": "contracts/core/IdentityRegistry.sol:IdentityRegistry",
1559
+ "label": "attributeGrants",
1560
+ "offset": 0,
1561
+ "slot": "11",
1562
+ "type": "t_mapping(t_bytes32,t_uint8)"
1563
+ },
1564
+ {
1565
+ "astId": 47215,
1566
+ "contract": "contracts/core/IdentityRegistry.sol:IdentityRegistry",
1567
+ "label": "verificationResults",
1568
+ "offset": 0,
1569
+ "slot": "12",
1570
+ "type": "t_mapping(t_bytes32,t_userDefinedValueType(ebool)49555)"
1571
+ },
1572
+ {
1573
+ "astId": 47220,
1574
+ "contract": "contracts/core/IdentityRegistry.sol:IdentityRegistry",
1575
+ "label": "__gap",
1576
+ "offset": 0,
1577
+ "slot": "13",
1578
+ "type": "t_array(t_uint256)50_storage"
1579
+ }
1580
+ ],
1581
+ "types": {
1582
+ "t_address": {
1583
+ "encoding": "inplace",
1584
+ "label": "address",
1585
+ "numberOfBytes": "20"
1586
+ },
1587
+ "t_array(t_uint256)50_storage": {
1588
+ "base": "t_uint256",
1589
+ "encoding": "inplace",
1590
+ "label": "uint256[50]",
1591
+ "numberOfBytes": "1600"
1592
+ },
1593
+ "t_bool": {
1594
+ "encoding": "inplace",
1595
+ "label": "bool",
1596
+ "numberOfBytes": "1"
1597
+ },
1598
+ "t_bytes32": {
1599
+ "encoding": "inplace",
1600
+ "label": "bytes32",
1601
+ "numberOfBytes": "32"
1602
+ },
1603
+ "t_mapping(t_address,t_bool)": {
1604
+ "encoding": "mapping",
1605
+ "key": "t_address",
1606
+ "label": "mapping(address => bool)",
1607
+ "numberOfBytes": "32",
1608
+ "value": "t_bool"
1609
+ },
1610
+ "t_mapping(t_address,t_bytes32)": {
1611
+ "encoding": "mapping",
1612
+ "key": "t_address",
1613
+ "label": "mapping(address => bytes32)",
1614
+ "numberOfBytes": "32",
1615
+ "value": "t_bytes32"
1616
+ },
1617
+ "t_mapping(t_address,t_uint256)": {
1618
+ "encoding": "mapping",
1619
+ "key": "t_address",
1620
+ "label": "mapping(address => uint256)",
1621
+ "numberOfBytes": "32",
1622
+ "value": "t_uint256"
1623
+ },
1624
+ "t_mapping(t_address,t_uint32)": {
1625
+ "encoding": "mapping",
1626
+ "key": "t_address",
1627
+ "label": "mapping(address => uint32)",
1628
+ "numberOfBytes": "32",
1629
+ "value": "t_uint32"
1630
+ },
1631
+ "t_mapping(t_address,t_userDefinedValueType(ebool)49555)": {
1632
+ "encoding": "mapping",
1633
+ "key": "t_address",
1634
+ "label": "mapping(address => ebool)",
1635
+ "numberOfBytes": "32",
1636
+ "value": "t_userDefinedValueType(ebool)49555"
1637
+ },
1638
+ "t_mapping(t_address,t_userDefinedValueType(euint16)49559)": {
1639
+ "encoding": "mapping",
1640
+ "key": "t_address",
1641
+ "label": "mapping(address => euint16)",
1642
+ "numberOfBytes": "32",
1643
+ "value": "t_userDefinedValueType(euint16)49559"
1644
+ },
1645
+ "t_mapping(t_address,t_userDefinedValueType(euint8)49557)": {
1646
+ "encoding": "mapping",
1647
+ "key": "t_address",
1648
+ "label": "mapping(address => euint8)",
1649
+ "numberOfBytes": "32",
1650
+ "value": "t_userDefinedValueType(euint8)49557"
1651
+ },
1652
+ "t_mapping(t_bytes32,t_uint8)": {
1653
+ "encoding": "mapping",
1654
+ "key": "t_bytes32",
1655
+ "label": "mapping(bytes32 => uint8)",
1656
+ "numberOfBytes": "32",
1657
+ "value": "t_uint8"
1658
+ },
1659
+ "t_mapping(t_bytes32,t_userDefinedValueType(ebool)49555)": {
1660
+ "encoding": "mapping",
1661
+ "key": "t_bytes32",
1662
+ "label": "mapping(bytes32 => ebool)",
1663
+ "numberOfBytes": "32",
1664
+ "value": "t_userDefinedValueType(ebool)49555"
1665
+ },
1666
+ "t_uint256": {
1667
+ "encoding": "inplace",
1668
+ "label": "uint256",
1669
+ "numberOfBytes": "32"
1670
+ },
1671
+ "t_uint32": {
1672
+ "encoding": "inplace",
1673
+ "label": "uint32",
1674
+ "numberOfBytes": "4"
1675
+ },
1676
+ "t_uint8": {
1677
+ "encoding": "inplace",
1678
+ "label": "uint8",
1679
+ "numberOfBytes": "1"
1680
+ },
1681
+ "t_userDefinedValueType(ebool)49555": {
1682
+ "encoding": "inplace",
1683
+ "label": "ebool",
1684
+ "numberOfBytes": "32"
1685
+ },
1686
+ "t_userDefinedValueType(euint16)49559": {
1687
+ "encoding": "inplace",
1688
+ "label": "euint16",
1689
+ "numberOfBytes": "32"
1690
+ },
1691
+ "t_userDefinedValueType(euint8)49557": {
1692
+ "encoding": "inplace",
1693
+ "label": "euint8",
1694
+ "numberOfBytes": "32"
1695
+ }
1696
+ }
1697
+ }
1698
+ }