@underscore-finance/sdk 1.2.12 → 1.2.14

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,1817 @@
1
+ /* Autogenerated file. Do not edit manually. */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /* @ts-nocheck */
5
+ import { singleQuery, mutate } from '@dappql/async';
6
+ import { encodeEventTopics, parseEventLogs, } from 'viem';
7
+ export const abi = [
8
+ {
9
+ name: 'GovChangeTimeLockModified',
10
+ inputs: [
11
+ {
12
+ name: 'prevTimeLock',
13
+ type: 'uint256',
14
+ indexed: false,
15
+ },
16
+ {
17
+ name: 'newTimeLock',
18
+ type: 'uint256',
19
+ indexed: false,
20
+ },
21
+ ],
22
+ anonymous: false,
23
+ type: 'event',
24
+ },
25
+ {
26
+ name: 'RegistryTimeLockModified',
27
+ inputs: [
28
+ {
29
+ name: 'newTimeLock',
30
+ type: 'uint256',
31
+ indexed: false,
32
+ },
33
+ {
34
+ name: 'prevTimeLock',
35
+ type: 'uint256',
36
+ indexed: false,
37
+ },
38
+ {
39
+ name: 'registry',
40
+ type: 'string',
41
+ indexed: false,
42
+ },
43
+ ],
44
+ anonymous: false,
45
+ type: 'event',
46
+ },
47
+ {
48
+ name: 'GovChangeStarted',
49
+ inputs: [
50
+ {
51
+ name: 'prevGov',
52
+ type: 'address',
53
+ indexed: true,
54
+ },
55
+ {
56
+ name: 'newGov',
57
+ type: 'address',
58
+ indexed: true,
59
+ },
60
+ {
61
+ name: 'confirmBlock',
62
+ type: 'uint256',
63
+ indexed: false,
64
+ },
65
+ ],
66
+ anonymous: false,
67
+ type: 'event',
68
+ },
69
+ {
70
+ name: 'GovChangeConfirmed',
71
+ inputs: [
72
+ {
73
+ name: 'prevGov',
74
+ type: 'address',
75
+ indexed: true,
76
+ },
77
+ {
78
+ name: 'newGov',
79
+ type: 'address',
80
+ indexed: true,
81
+ },
82
+ {
83
+ name: 'initiatedBlock',
84
+ type: 'uint256',
85
+ indexed: false,
86
+ },
87
+ {
88
+ name: 'confirmBlock',
89
+ type: 'uint256',
90
+ indexed: false,
91
+ },
92
+ ],
93
+ anonymous: false,
94
+ type: 'event',
95
+ },
96
+ {
97
+ name: 'GovChangeCancelled',
98
+ inputs: [
99
+ {
100
+ name: 'cancelledGov',
101
+ type: 'address',
102
+ indexed: true,
103
+ },
104
+ {
105
+ name: 'initiatedBlock',
106
+ type: 'uint256',
107
+ indexed: false,
108
+ },
109
+ {
110
+ name: 'confirmBlock',
111
+ type: 'uint256',
112
+ indexed: false,
113
+ },
114
+ ],
115
+ anonymous: false,
116
+ type: 'event',
117
+ },
118
+ {
119
+ name: 'GovRelinquished',
120
+ inputs: [
121
+ {
122
+ name: 'prevGov',
123
+ type: 'address',
124
+ indexed: true,
125
+ },
126
+ ],
127
+ anonymous: false,
128
+ type: 'event',
129
+ },
130
+ {
131
+ name: 'UndyHqSetupFinished',
132
+ inputs: [
133
+ {
134
+ name: 'prevGov',
135
+ type: 'address',
136
+ indexed: true,
137
+ },
138
+ {
139
+ name: 'newGov',
140
+ type: 'address',
141
+ indexed: true,
142
+ },
143
+ {
144
+ name: 'timeLock',
145
+ type: 'uint256',
146
+ indexed: false,
147
+ },
148
+ ],
149
+ anonymous: false,
150
+ type: 'event',
151
+ },
152
+ {
153
+ name: 'DepartmentPauseModified',
154
+ inputs: [
155
+ {
156
+ name: 'isPaused',
157
+ type: 'bool',
158
+ indexed: false,
159
+ },
160
+ ],
161
+ anonymous: false,
162
+ type: 'event',
163
+ },
164
+ {
165
+ name: 'DepartmentFundsRecovered',
166
+ inputs: [
167
+ {
168
+ name: 'asset',
169
+ type: 'address',
170
+ indexed: true,
171
+ },
172
+ {
173
+ name: 'recipient',
174
+ type: 'address',
175
+ indexed: true,
176
+ },
177
+ {
178
+ name: 'balance',
179
+ type: 'uint256',
180
+ indexed: false,
181
+ },
182
+ ],
183
+ anonymous: false,
184
+ type: 'event',
185
+ },
186
+ {
187
+ name: 'NewAddressPending',
188
+ inputs: [
189
+ {
190
+ name: 'addr',
191
+ type: 'address',
192
+ indexed: true,
193
+ },
194
+ {
195
+ name: 'description',
196
+ type: 'string',
197
+ indexed: false,
198
+ },
199
+ {
200
+ name: 'confirmBlock',
201
+ type: 'uint256',
202
+ indexed: false,
203
+ },
204
+ {
205
+ name: 'registry',
206
+ type: 'string',
207
+ indexed: false,
208
+ },
209
+ ],
210
+ anonymous: false,
211
+ type: 'event',
212
+ },
213
+ {
214
+ name: 'NewAddressConfirmed',
215
+ inputs: [
216
+ {
217
+ name: 'addr',
218
+ type: 'address',
219
+ indexed: true,
220
+ },
221
+ {
222
+ name: 'regId',
223
+ type: 'uint256',
224
+ indexed: false,
225
+ },
226
+ {
227
+ name: 'description',
228
+ type: 'string',
229
+ indexed: false,
230
+ },
231
+ {
232
+ name: 'registry',
233
+ type: 'string',
234
+ indexed: false,
235
+ },
236
+ ],
237
+ anonymous: false,
238
+ type: 'event',
239
+ },
240
+ {
241
+ name: 'NewAddressCancelled',
242
+ inputs: [
243
+ {
244
+ name: 'description',
245
+ type: 'string',
246
+ indexed: false,
247
+ },
248
+ {
249
+ name: 'addr',
250
+ type: 'address',
251
+ indexed: true,
252
+ },
253
+ {
254
+ name: 'initiatedBlock',
255
+ type: 'uint256',
256
+ indexed: false,
257
+ },
258
+ {
259
+ name: 'confirmBlock',
260
+ type: 'uint256',
261
+ indexed: false,
262
+ },
263
+ {
264
+ name: 'registry',
265
+ type: 'string',
266
+ indexed: false,
267
+ },
268
+ ],
269
+ anonymous: false,
270
+ type: 'event',
271
+ },
272
+ {
273
+ name: 'AddressUpdatePending',
274
+ inputs: [
275
+ {
276
+ name: 'regId',
277
+ type: 'uint256',
278
+ indexed: false,
279
+ },
280
+ {
281
+ name: 'description',
282
+ type: 'string',
283
+ indexed: false,
284
+ },
285
+ {
286
+ name: 'newAddr',
287
+ type: 'address',
288
+ indexed: true,
289
+ },
290
+ {
291
+ name: 'prevAddr',
292
+ type: 'address',
293
+ indexed: true,
294
+ },
295
+ {
296
+ name: 'version',
297
+ type: 'uint256',
298
+ indexed: false,
299
+ },
300
+ {
301
+ name: 'confirmBlock',
302
+ type: 'uint256',
303
+ indexed: false,
304
+ },
305
+ {
306
+ name: 'registry',
307
+ type: 'string',
308
+ indexed: false,
309
+ },
310
+ ],
311
+ anonymous: false,
312
+ type: 'event',
313
+ },
314
+ {
315
+ name: 'AddressUpdateConfirmed',
316
+ inputs: [
317
+ {
318
+ name: 'regId',
319
+ type: 'uint256',
320
+ indexed: false,
321
+ },
322
+ {
323
+ name: 'description',
324
+ type: 'string',
325
+ indexed: false,
326
+ },
327
+ {
328
+ name: 'newAddr',
329
+ type: 'address',
330
+ indexed: true,
331
+ },
332
+ {
333
+ name: 'prevAddr',
334
+ type: 'address',
335
+ indexed: true,
336
+ },
337
+ {
338
+ name: 'version',
339
+ type: 'uint256',
340
+ indexed: false,
341
+ },
342
+ {
343
+ name: 'registry',
344
+ type: 'string',
345
+ indexed: false,
346
+ },
347
+ ],
348
+ anonymous: false,
349
+ type: 'event',
350
+ },
351
+ {
352
+ name: 'AddressUpdateCancelled',
353
+ inputs: [
354
+ {
355
+ name: 'regId',
356
+ type: 'uint256',
357
+ indexed: false,
358
+ },
359
+ {
360
+ name: 'description',
361
+ type: 'string',
362
+ indexed: false,
363
+ },
364
+ {
365
+ name: 'newAddr',
366
+ type: 'address',
367
+ indexed: true,
368
+ },
369
+ {
370
+ name: 'prevAddr',
371
+ type: 'address',
372
+ indexed: true,
373
+ },
374
+ {
375
+ name: 'initiatedBlock',
376
+ type: 'uint256',
377
+ indexed: false,
378
+ },
379
+ {
380
+ name: 'confirmBlock',
381
+ type: 'uint256',
382
+ indexed: false,
383
+ },
384
+ {
385
+ name: 'registry',
386
+ type: 'string',
387
+ indexed: false,
388
+ },
389
+ ],
390
+ anonymous: false,
391
+ type: 'event',
392
+ },
393
+ {
394
+ name: 'AddressDisablePending',
395
+ inputs: [
396
+ {
397
+ name: 'regId',
398
+ type: 'uint256',
399
+ indexed: false,
400
+ },
401
+ {
402
+ name: 'description',
403
+ type: 'string',
404
+ indexed: false,
405
+ },
406
+ {
407
+ name: 'addr',
408
+ type: 'address',
409
+ indexed: true,
410
+ },
411
+ {
412
+ name: 'version',
413
+ type: 'uint256',
414
+ indexed: false,
415
+ },
416
+ {
417
+ name: 'confirmBlock',
418
+ type: 'uint256',
419
+ indexed: false,
420
+ },
421
+ {
422
+ name: 'registry',
423
+ type: 'string',
424
+ indexed: false,
425
+ },
426
+ ],
427
+ anonymous: false,
428
+ type: 'event',
429
+ },
430
+ {
431
+ name: 'AddressDisableConfirmed',
432
+ inputs: [
433
+ {
434
+ name: 'regId',
435
+ type: 'uint256',
436
+ indexed: false,
437
+ },
438
+ {
439
+ name: 'description',
440
+ type: 'string',
441
+ indexed: false,
442
+ },
443
+ {
444
+ name: 'addr',
445
+ type: 'address',
446
+ indexed: true,
447
+ },
448
+ {
449
+ name: 'version',
450
+ type: 'uint256',
451
+ indexed: false,
452
+ },
453
+ {
454
+ name: 'registry',
455
+ type: 'string',
456
+ indexed: false,
457
+ },
458
+ ],
459
+ anonymous: false,
460
+ type: 'event',
461
+ },
462
+ {
463
+ name: 'AddressDisableCancelled',
464
+ inputs: [
465
+ {
466
+ name: 'regId',
467
+ type: 'uint256',
468
+ indexed: false,
469
+ },
470
+ {
471
+ name: 'description',
472
+ type: 'string',
473
+ indexed: false,
474
+ },
475
+ {
476
+ name: 'addr',
477
+ type: 'address',
478
+ indexed: true,
479
+ },
480
+ {
481
+ name: 'initiatedBlock',
482
+ type: 'uint256',
483
+ indexed: false,
484
+ },
485
+ {
486
+ name: 'confirmBlock',
487
+ type: 'uint256',
488
+ indexed: false,
489
+ },
490
+ {
491
+ name: 'registry',
492
+ type: 'string',
493
+ indexed: false,
494
+ },
495
+ ],
496
+ anonymous: false,
497
+ type: 'event',
498
+ },
499
+ {
500
+ stateMutability: 'view',
501
+ type: 'function',
502
+ name: 'getUndyHqFromGov',
503
+ inputs: [],
504
+ outputs: [
505
+ {
506
+ name: '',
507
+ type: 'address',
508
+ },
509
+ ],
510
+ },
511
+ {
512
+ stateMutability: 'view',
513
+ type: 'function',
514
+ name: 'canGovern',
515
+ inputs: [
516
+ {
517
+ name: '_addr',
518
+ type: 'address',
519
+ },
520
+ ],
521
+ outputs: [
522
+ {
523
+ name: '',
524
+ type: 'bool',
525
+ },
526
+ ],
527
+ },
528
+ {
529
+ stateMutability: 'view',
530
+ type: 'function',
531
+ name: 'getGovernors',
532
+ inputs: [],
533
+ outputs: [
534
+ {
535
+ name: '',
536
+ type: 'address[]',
537
+ },
538
+ ],
539
+ },
540
+ {
541
+ stateMutability: 'view',
542
+ type: 'function',
543
+ name: 'hasPendingGovChange',
544
+ inputs: [],
545
+ outputs: [
546
+ {
547
+ name: '',
548
+ type: 'bool',
549
+ },
550
+ ],
551
+ },
552
+ {
553
+ stateMutability: 'nonpayable',
554
+ type: 'function',
555
+ name: 'startGovernanceChange',
556
+ inputs: [
557
+ {
558
+ name: '_newGov',
559
+ type: 'address',
560
+ },
561
+ ],
562
+ outputs: [],
563
+ },
564
+ {
565
+ stateMutability: 'nonpayable',
566
+ type: 'function',
567
+ name: 'confirmGovernanceChange',
568
+ inputs: [],
569
+ outputs: [],
570
+ },
571
+ {
572
+ stateMutability: 'nonpayable',
573
+ type: 'function',
574
+ name: 'cancelGovernanceChange',
575
+ inputs: [],
576
+ outputs: [],
577
+ },
578
+ {
579
+ stateMutability: 'nonpayable',
580
+ type: 'function',
581
+ name: 'relinquishGov',
582
+ inputs: [],
583
+ outputs: [],
584
+ },
585
+ {
586
+ stateMutability: 'nonpayable',
587
+ type: 'function',
588
+ name: 'setGovTimeLock',
589
+ inputs: [
590
+ {
591
+ name: '_numBlocks',
592
+ type: 'uint256',
593
+ },
594
+ ],
595
+ outputs: [
596
+ {
597
+ name: '',
598
+ type: 'bool',
599
+ },
600
+ ],
601
+ },
602
+ {
603
+ stateMutability: 'view',
604
+ type: 'function',
605
+ name: 'isValidGovTimeLock',
606
+ inputs: [
607
+ {
608
+ name: '_newTimeLock',
609
+ type: 'uint256',
610
+ },
611
+ ],
612
+ outputs: [
613
+ {
614
+ name: '',
615
+ type: 'bool',
616
+ },
617
+ ],
618
+ },
619
+ {
620
+ stateMutability: 'view',
621
+ type: 'function',
622
+ name: 'minGovChangeTimeLock',
623
+ inputs: [],
624
+ outputs: [
625
+ {
626
+ name: '',
627
+ type: 'uint256',
628
+ },
629
+ ],
630
+ },
631
+ {
632
+ stateMutability: 'view',
633
+ type: 'function',
634
+ name: 'maxGovChangeTimeLock',
635
+ inputs: [],
636
+ outputs: [
637
+ {
638
+ name: '',
639
+ type: 'uint256',
640
+ },
641
+ ],
642
+ },
643
+ {
644
+ stateMutability: 'nonpayable',
645
+ type: 'function',
646
+ name: 'finishUndyHqSetup',
647
+ inputs: [
648
+ {
649
+ name: '_newGov',
650
+ type: 'address',
651
+ },
652
+ ],
653
+ outputs: [
654
+ {
655
+ name: '',
656
+ type: 'bool',
657
+ },
658
+ ],
659
+ },
660
+ {
661
+ stateMutability: 'nonpayable',
662
+ type: 'function',
663
+ name: 'finishUndyHqSetup',
664
+ inputs: [
665
+ {
666
+ name: '_newGov',
667
+ type: 'address',
668
+ },
669
+ {
670
+ name: '_timeLock',
671
+ type: 'uint256',
672
+ },
673
+ ],
674
+ outputs: [
675
+ {
676
+ name: '',
677
+ type: 'bool',
678
+ },
679
+ ],
680
+ },
681
+ {
682
+ stateMutability: 'view',
683
+ type: 'function',
684
+ name: 'governance',
685
+ inputs: [],
686
+ outputs: [
687
+ {
688
+ name: '',
689
+ type: 'address',
690
+ },
691
+ ],
692
+ },
693
+ {
694
+ stateMutability: 'view',
695
+ type: 'function',
696
+ name: 'pendingGov',
697
+ inputs: [],
698
+ outputs: [
699
+ {
700
+ name: '',
701
+ type: 'tuple',
702
+ components: [
703
+ {
704
+ name: 'newGov',
705
+ type: 'address',
706
+ },
707
+ {
708
+ name: 'initiatedBlock',
709
+ type: 'uint256',
710
+ },
711
+ {
712
+ name: 'confirmBlock',
713
+ type: 'uint256',
714
+ },
715
+ ],
716
+ },
717
+ ],
718
+ },
719
+ {
720
+ stateMutability: 'view',
721
+ type: 'function',
722
+ name: 'numGovChanges',
723
+ inputs: [],
724
+ outputs: [
725
+ {
726
+ name: '',
727
+ type: 'uint256',
728
+ },
729
+ ],
730
+ },
731
+ {
732
+ stateMutability: 'view',
733
+ type: 'function',
734
+ name: 'govChangeTimeLock',
735
+ inputs: [],
736
+ outputs: [
737
+ {
738
+ name: '',
739
+ type: 'uint256',
740
+ },
741
+ ],
742
+ },
743
+ {
744
+ stateMutability: 'view',
745
+ type: 'function',
746
+ name: 'getRegistryDescription',
747
+ inputs: [],
748
+ outputs: [
749
+ {
750
+ name: '',
751
+ type: 'string',
752
+ },
753
+ ],
754
+ },
755
+ {
756
+ stateMutability: 'view',
757
+ type: 'function',
758
+ name: 'isValidNewAddress',
759
+ inputs: [
760
+ {
761
+ name: '_addr',
762
+ type: 'address',
763
+ },
764
+ ],
765
+ outputs: [
766
+ {
767
+ name: '',
768
+ type: 'bool',
769
+ },
770
+ ],
771
+ },
772
+ {
773
+ stateMutability: 'view',
774
+ type: 'function',
775
+ name: 'isValidAddressUpdate',
776
+ inputs: [
777
+ {
778
+ name: '_regId',
779
+ type: 'uint256',
780
+ },
781
+ {
782
+ name: '_newAddr',
783
+ type: 'address',
784
+ },
785
+ ],
786
+ outputs: [
787
+ {
788
+ name: '',
789
+ type: 'bool',
790
+ },
791
+ ],
792
+ },
793
+ {
794
+ stateMutability: 'view',
795
+ type: 'function',
796
+ name: 'isValidAddressDisable',
797
+ inputs: [
798
+ {
799
+ name: '_regId',
800
+ type: 'uint256',
801
+ },
802
+ ],
803
+ outputs: [
804
+ {
805
+ name: '',
806
+ type: 'bool',
807
+ },
808
+ ],
809
+ },
810
+ {
811
+ stateMutability: 'nonpayable',
812
+ type: 'function',
813
+ name: 'setRegistryTimeLock',
814
+ inputs: [
815
+ {
816
+ name: '_numBlocks',
817
+ type: 'uint256',
818
+ },
819
+ ],
820
+ outputs: [
821
+ {
822
+ name: '',
823
+ type: 'bool',
824
+ },
825
+ ],
826
+ },
827
+ {
828
+ stateMutability: 'view',
829
+ type: 'function',
830
+ name: 'isValidRegistryTimeLock',
831
+ inputs: [
832
+ {
833
+ name: '_numBlocks',
834
+ type: 'uint256',
835
+ },
836
+ ],
837
+ outputs: [
838
+ {
839
+ name: '',
840
+ type: 'bool',
841
+ },
842
+ ],
843
+ },
844
+ {
845
+ stateMutability: 'nonpayable',
846
+ type: 'function',
847
+ name: 'setRegistryTimeLockAfterSetup',
848
+ inputs: [],
849
+ outputs: [
850
+ {
851
+ name: '',
852
+ type: 'bool',
853
+ },
854
+ ],
855
+ },
856
+ {
857
+ stateMutability: 'nonpayable',
858
+ type: 'function',
859
+ name: 'setRegistryTimeLockAfterSetup',
860
+ inputs: [
861
+ {
862
+ name: '_numBlocks',
863
+ type: 'uint256',
864
+ },
865
+ ],
866
+ outputs: [
867
+ {
868
+ name: '',
869
+ type: 'bool',
870
+ },
871
+ ],
872
+ },
873
+ {
874
+ stateMutability: 'view',
875
+ type: 'function',
876
+ name: 'minRegistryTimeLock',
877
+ inputs: [],
878
+ outputs: [
879
+ {
880
+ name: '',
881
+ type: 'uint256',
882
+ },
883
+ ],
884
+ },
885
+ {
886
+ stateMutability: 'view',
887
+ type: 'function',
888
+ name: 'maxRegistryTimeLock',
889
+ inputs: [],
890
+ outputs: [
891
+ {
892
+ name: '',
893
+ type: 'uint256',
894
+ },
895
+ ],
896
+ },
897
+ {
898
+ stateMutability: 'view',
899
+ type: 'function',
900
+ name: 'isValidAddr',
901
+ inputs: [
902
+ {
903
+ name: '_addr',
904
+ type: 'address',
905
+ },
906
+ ],
907
+ outputs: [
908
+ {
909
+ name: '',
910
+ type: 'bool',
911
+ },
912
+ ],
913
+ },
914
+ {
915
+ stateMutability: 'view',
916
+ type: 'function',
917
+ name: 'isValidRegId',
918
+ inputs: [
919
+ {
920
+ name: '_regId',
921
+ type: 'uint256',
922
+ },
923
+ ],
924
+ outputs: [
925
+ {
926
+ name: '',
927
+ type: 'bool',
928
+ },
929
+ ],
930
+ },
931
+ {
932
+ stateMutability: 'view',
933
+ type: 'function',
934
+ name: 'getRegId',
935
+ inputs: [
936
+ {
937
+ name: '_addr',
938
+ type: 'address',
939
+ },
940
+ ],
941
+ outputs: [
942
+ {
943
+ name: '',
944
+ type: 'uint256',
945
+ },
946
+ ],
947
+ },
948
+ {
949
+ stateMutability: 'view',
950
+ type: 'function',
951
+ name: 'getAddr',
952
+ inputs: [
953
+ {
954
+ name: '_regId',
955
+ type: 'uint256',
956
+ },
957
+ ],
958
+ outputs: [
959
+ {
960
+ name: '',
961
+ type: 'address',
962
+ },
963
+ ],
964
+ },
965
+ {
966
+ stateMutability: 'view',
967
+ type: 'function',
968
+ name: 'getAddrInfo',
969
+ inputs: [
970
+ {
971
+ name: '_regId',
972
+ type: 'uint256',
973
+ },
974
+ ],
975
+ outputs: [
976
+ {
977
+ name: '',
978
+ type: 'tuple',
979
+ components: [
980
+ {
981
+ name: 'addr',
982
+ type: 'address',
983
+ },
984
+ {
985
+ name: 'version',
986
+ type: 'uint256',
987
+ },
988
+ {
989
+ name: 'lastModified',
990
+ type: 'uint256',
991
+ },
992
+ {
993
+ name: 'description',
994
+ type: 'string',
995
+ },
996
+ ],
997
+ },
998
+ ],
999
+ },
1000
+ {
1001
+ stateMutability: 'view',
1002
+ type: 'function',
1003
+ name: 'getAddrDescription',
1004
+ inputs: [
1005
+ {
1006
+ name: '_regId',
1007
+ type: 'uint256',
1008
+ },
1009
+ ],
1010
+ outputs: [
1011
+ {
1012
+ name: '',
1013
+ type: 'string',
1014
+ },
1015
+ ],
1016
+ },
1017
+ {
1018
+ stateMutability: 'view',
1019
+ type: 'function',
1020
+ name: 'getNumAddrs',
1021
+ inputs: [],
1022
+ outputs: [
1023
+ {
1024
+ name: '',
1025
+ type: 'uint256',
1026
+ },
1027
+ ],
1028
+ },
1029
+ {
1030
+ stateMutability: 'view',
1031
+ type: 'function',
1032
+ name: 'getLastAddr',
1033
+ inputs: [],
1034
+ outputs: [
1035
+ {
1036
+ name: '',
1037
+ type: 'address',
1038
+ },
1039
+ ],
1040
+ },
1041
+ {
1042
+ stateMutability: 'view',
1043
+ type: 'function',
1044
+ name: 'getLastRegId',
1045
+ inputs: [],
1046
+ outputs: [
1047
+ {
1048
+ name: '',
1049
+ type: 'uint256',
1050
+ },
1051
+ ],
1052
+ },
1053
+ {
1054
+ stateMutability: 'view',
1055
+ type: 'function',
1056
+ name: 'registryChangeTimeLock',
1057
+ inputs: [],
1058
+ outputs: [
1059
+ {
1060
+ name: '',
1061
+ type: 'uint256',
1062
+ },
1063
+ ],
1064
+ },
1065
+ {
1066
+ stateMutability: 'view',
1067
+ type: 'function',
1068
+ name: 'addrInfo',
1069
+ inputs: [
1070
+ {
1071
+ name: 'arg0',
1072
+ type: 'uint256',
1073
+ },
1074
+ ],
1075
+ outputs: [
1076
+ {
1077
+ name: '',
1078
+ type: 'tuple',
1079
+ components: [
1080
+ {
1081
+ name: 'addr',
1082
+ type: 'address',
1083
+ },
1084
+ {
1085
+ name: 'version',
1086
+ type: 'uint256',
1087
+ },
1088
+ {
1089
+ name: 'lastModified',
1090
+ type: 'uint256',
1091
+ },
1092
+ {
1093
+ name: 'description',
1094
+ type: 'string',
1095
+ },
1096
+ ],
1097
+ },
1098
+ ],
1099
+ },
1100
+ {
1101
+ stateMutability: 'view',
1102
+ type: 'function',
1103
+ name: 'addrToRegId',
1104
+ inputs: [
1105
+ {
1106
+ name: 'arg0',
1107
+ type: 'address',
1108
+ },
1109
+ ],
1110
+ outputs: [
1111
+ {
1112
+ name: '',
1113
+ type: 'uint256',
1114
+ },
1115
+ ],
1116
+ },
1117
+ {
1118
+ stateMutability: 'view',
1119
+ type: 'function',
1120
+ name: 'numAddrs',
1121
+ inputs: [],
1122
+ outputs: [
1123
+ {
1124
+ name: '',
1125
+ type: 'uint256',
1126
+ },
1127
+ ],
1128
+ },
1129
+ {
1130
+ stateMutability: 'view',
1131
+ type: 'function',
1132
+ name: 'pendingNewAddr',
1133
+ inputs: [
1134
+ {
1135
+ name: 'arg0',
1136
+ type: 'address',
1137
+ },
1138
+ ],
1139
+ outputs: [
1140
+ {
1141
+ name: '',
1142
+ type: 'tuple',
1143
+ components: [
1144
+ {
1145
+ name: 'description',
1146
+ type: 'string',
1147
+ },
1148
+ {
1149
+ name: 'initiatedBlock',
1150
+ type: 'uint256',
1151
+ },
1152
+ {
1153
+ name: 'confirmBlock',
1154
+ type: 'uint256',
1155
+ },
1156
+ ],
1157
+ },
1158
+ ],
1159
+ },
1160
+ {
1161
+ stateMutability: 'view',
1162
+ type: 'function',
1163
+ name: 'pendingAddrUpdate',
1164
+ inputs: [
1165
+ {
1166
+ name: 'arg0',
1167
+ type: 'uint256',
1168
+ },
1169
+ ],
1170
+ outputs: [
1171
+ {
1172
+ name: '',
1173
+ type: 'tuple',
1174
+ components: [
1175
+ {
1176
+ name: 'newAddr',
1177
+ type: 'address',
1178
+ },
1179
+ {
1180
+ name: 'initiatedBlock',
1181
+ type: 'uint256',
1182
+ },
1183
+ {
1184
+ name: 'confirmBlock',
1185
+ type: 'uint256',
1186
+ },
1187
+ ],
1188
+ },
1189
+ ],
1190
+ },
1191
+ {
1192
+ stateMutability: 'view',
1193
+ type: 'function',
1194
+ name: 'pendingAddrDisable',
1195
+ inputs: [
1196
+ {
1197
+ name: 'arg0',
1198
+ type: 'uint256',
1199
+ },
1200
+ ],
1201
+ outputs: [
1202
+ {
1203
+ name: '',
1204
+ type: 'tuple',
1205
+ components: [
1206
+ {
1207
+ name: 'initiatedBlock',
1208
+ type: 'uint256',
1209
+ },
1210
+ {
1211
+ name: 'confirmBlock',
1212
+ type: 'uint256',
1213
+ },
1214
+ ],
1215
+ },
1216
+ ],
1217
+ },
1218
+ {
1219
+ stateMutability: 'view',
1220
+ type: 'function',
1221
+ name: 'getAddys',
1222
+ inputs: [],
1223
+ outputs: [
1224
+ {
1225
+ name: '',
1226
+ type: 'tuple',
1227
+ components: [
1228
+ {
1229
+ name: 'hq',
1230
+ type: 'address',
1231
+ },
1232
+ {
1233
+ name: 'undyToken',
1234
+ type: 'address',
1235
+ },
1236
+ {
1237
+ name: 'ledger',
1238
+ type: 'address',
1239
+ },
1240
+ {
1241
+ name: 'missionControl',
1242
+ type: 'address',
1243
+ },
1244
+ {
1245
+ name: 'legoBook',
1246
+ type: 'address',
1247
+ },
1248
+ {
1249
+ name: 'switchboard',
1250
+ type: 'address',
1251
+ },
1252
+ {
1253
+ name: 'hatchery',
1254
+ type: 'address',
1255
+ },
1256
+ {
1257
+ name: 'lootDistributor',
1258
+ type: 'address',
1259
+ },
1260
+ {
1261
+ name: 'appraiser',
1262
+ type: 'address',
1263
+ },
1264
+ {
1265
+ name: 'walletBackpack',
1266
+ type: 'address',
1267
+ },
1268
+ {
1269
+ name: 'billing',
1270
+ type: 'address',
1271
+ },
1272
+ {
1273
+ name: 'vaultRegistry',
1274
+ type: 'address',
1275
+ },
1276
+ ],
1277
+ },
1278
+ ],
1279
+ },
1280
+ {
1281
+ stateMutability: 'view',
1282
+ type: 'function',
1283
+ name: 'getUndyHq',
1284
+ inputs: [],
1285
+ outputs: [
1286
+ {
1287
+ name: '',
1288
+ type: 'address',
1289
+ },
1290
+ ],
1291
+ },
1292
+ {
1293
+ stateMutability: 'view',
1294
+ type: 'function',
1295
+ name: 'canMintUndy',
1296
+ inputs: [],
1297
+ outputs: [
1298
+ {
1299
+ name: '',
1300
+ type: 'bool',
1301
+ },
1302
+ ],
1303
+ },
1304
+ {
1305
+ stateMutability: 'nonpayable',
1306
+ type: 'function',
1307
+ name: 'pause',
1308
+ inputs: [
1309
+ {
1310
+ name: '_shouldPause',
1311
+ type: 'bool',
1312
+ },
1313
+ ],
1314
+ outputs: [],
1315
+ },
1316
+ {
1317
+ stateMutability: 'nonpayable',
1318
+ type: 'function',
1319
+ name: 'recoverFunds',
1320
+ inputs: [
1321
+ {
1322
+ name: '_recipient',
1323
+ type: 'address',
1324
+ },
1325
+ {
1326
+ name: '_asset',
1327
+ type: 'address',
1328
+ },
1329
+ ],
1330
+ outputs: [],
1331
+ },
1332
+ {
1333
+ stateMutability: 'nonpayable',
1334
+ type: 'function',
1335
+ name: 'recoverFundsMany',
1336
+ inputs: [
1337
+ {
1338
+ name: '_recipient',
1339
+ type: 'address',
1340
+ },
1341
+ {
1342
+ name: '_assets',
1343
+ type: 'address[]',
1344
+ },
1345
+ ],
1346
+ outputs: [],
1347
+ },
1348
+ {
1349
+ stateMutability: 'view',
1350
+ type: 'function',
1351
+ name: 'isPaused',
1352
+ inputs: [],
1353
+ outputs: [
1354
+ {
1355
+ name: '',
1356
+ type: 'bool',
1357
+ },
1358
+ ],
1359
+ },
1360
+ {
1361
+ stateMutability: 'view',
1362
+ type: 'function',
1363
+ name: 'isHelpersAddr',
1364
+ inputs: [
1365
+ {
1366
+ name: '_addr',
1367
+ type: 'address',
1368
+ },
1369
+ ],
1370
+ outputs: [
1371
+ {
1372
+ name: '',
1373
+ type: 'bool',
1374
+ },
1375
+ ],
1376
+ },
1377
+ {
1378
+ stateMutability: 'nonpayable',
1379
+ type: 'function',
1380
+ name: 'startAddNewAddressToRegistry',
1381
+ inputs: [
1382
+ {
1383
+ name: '_addr',
1384
+ type: 'address',
1385
+ },
1386
+ {
1387
+ name: '_description',
1388
+ type: 'string',
1389
+ },
1390
+ ],
1391
+ outputs: [
1392
+ {
1393
+ name: '',
1394
+ type: 'bool',
1395
+ },
1396
+ ],
1397
+ },
1398
+ {
1399
+ stateMutability: 'nonpayable',
1400
+ type: 'function',
1401
+ name: 'confirmNewAddressToRegistry',
1402
+ inputs: [
1403
+ {
1404
+ name: '_addr',
1405
+ type: 'address',
1406
+ },
1407
+ ],
1408
+ outputs: [
1409
+ {
1410
+ name: '',
1411
+ type: 'uint256',
1412
+ },
1413
+ ],
1414
+ },
1415
+ {
1416
+ stateMutability: 'nonpayable',
1417
+ type: 'function',
1418
+ name: 'cancelNewAddressToRegistry',
1419
+ inputs: [
1420
+ {
1421
+ name: '_addr',
1422
+ type: 'address',
1423
+ },
1424
+ ],
1425
+ outputs: [
1426
+ {
1427
+ name: '',
1428
+ type: 'bool',
1429
+ },
1430
+ ],
1431
+ },
1432
+ {
1433
+ stateMutability: 'nonpayable',
1434
+ type: 'function',
1435
+ name: 'startAddressUpdateToRegistry',
1436
+ inputs: [
1437
+ {
1438
+ name: '_regId',
1439
+ type: 'uint256',
1440
+ },
1441
+ {
1442
+ name: '_newAddr',
1443
+ type: 'address',
1444
+ },
1445
+ ],
1446
+ outputs: [
1447
+ {
1448
+ name: '',
1449
+ type: 'bool',
1450
+ },
1451
+ ],
1452
+ },
1453
+ {
1454
+ stateMutability: 'nonpayable',
1455
+ type: 'function',
1456
+ name: 'confirmAddressUpdateToRegistry',
1457
+ inputs: [
1458
+ {
1459
+ name: '_regId',
1460
+ type: 'uint256',
1461
+ },
1462
+ ],
1463
+ outputs: [
1464
+ {
1465
+ name: '',
1466
+ type: 'bool',
1467
+ },
1468
+ ],
1469
+ },
1470
+ {
1471
+ stateMutability: 'nonpayable',
1472
+ type: 'function',
1473
+ name: 'cancelAddressUpdateToRegistry',
1474
+ inputs: [
1475
+ {
1476
+ name: '_regId',
1477
+ type: 'uint256',
1478
+ },
1479
+ ],
1480
+ outputs: [
1481
+ {
1482
+ name: '',
1483
+ type: 'bool',
1484
+ },
1485
+ ],
1486
+ },
1487
+ {
1488
+ stateMutability: 'nonpayable',
1489
+ type: 'function',
1490
+ name: 'startAddressDisableInRegistry',
1491
+ inputs: [
1492
+ {
1493
+ name: '_regId',
1494
+ type: 'uint256',
1495
+ },
1496
+ ],
1497
+ outputs: [
1498
+ {
1499
+ name: '',
1500
+ type: 'bool',
1501
+ },
1502
+ ],
1503
+ },
1504
+ {
1505
+ stateMutability: 'nonpayable',
1506
+ type: 'function',
1507
+ name: 'confirmAddressDisableInRegistry',
1508
+ inputs: [
1509
+ {
1510
+ name: '_regId',
1511
+ type: 'uint256',
1512
+ },
1513
+ ],
1514
+ outputs: [
1515
+ {
1516
+ name: '',
1517
+ type: 'bool',
1518
+ },
1519
+ ],
1520
+ },
1521
+ {
1522
+ stateMutability: 'nonpayable',
1523
+ type: 'function',
1524
+ name: 'cancelAddressDisableInRegistry',
1525
+ inputs: [
1526
+ {
1527
+ name: '_regId',
1528
+ type: 'uint256',
1529
+ },
1530
+ ],
1531
+ outputs: [
1532
+ {
1533
+ name: '',
1534
+ type: 'bool',
1535
+ },
1536
+ ],
1537
+ },
1538
+ {
1539
+ stateMutability: 'nonpayable',
1540
+ type: 'constructor',
1541
+ inputs: [
1542
+ {
1543
+ name: '_undyHq',
1544
+ type: 'address',
1545
+ },
1546
+ {
1547
+ name: '_tempGov',
1548
+ type: 'address',
1549
+ },
1550
+ {
1551
+ name: '_minRegistryTimeLock',
1552
+ type: 'uint256',
1553
+ },
1554
+ {
1555
+ name: '_maxRegistryTimeLock',
1556
+ type: 'uint256',
1557
+ },
1558
+ ],
1559
+ outputs: [],
1560
+ },
1561
+ ];
1562
+ export const deployAddress = '0x1980529E3FcC76393F70B538F62e499c27701EBa';
1563
+ function getRequest(method, args, contractAddressOrOptions) {
1564
+ const address = typeof contractAddressOrOptions === 'string' ? contractAddressOrOptions : contractAddressOrOptions?.contractAddress;
1565
+ const defaultValue = typeof contractAddressOrOptions === 'string' ? undefined : contractAddressOrOptions?.defaultValue;
1566
+ const call = {
1567
+ contractName: 'Helpers',
1568
+ method,
1569
+ args,
1570
+ address,
1571
+ deployAddress,
1572
+ defaultValue,
1573
+ getAbi: () => abi,
1574
+ with: (options) => {
1575
+ call.address = options.contractAddress;
1576
+ call.defaultValue = options.defaultValue;
1577
+ return call;
1578
+ },
1579
+ defaultTo: (defaultValue) => {
1580
+ call.defaultValue = defaultValue;
1581
+ return call;
1582
+ },
1583
+ at: (address) => {
1584
+ call.address = address;
1585
+ return call;
1586
+ },
1587
+ };
1588
+ return call;
1589
+ }
1590
+ export const call = {
1591
+ getUndyHqFromGov: (...args) => getRequest('getUndyHqFromGov', args),
1592
+ canGovern: (...args) => getRequest('canGovern', args),
1593
+ getGovernors: (...args) => getRequest('getGovernors', args),
1594
+ hasPendingGovChange: (...args) => getRequest('hasPendingGovChange', args),
1595
+ isValidGovTimeLock: (...args) => getRequest('isValidGovTimeLock', args),
1596
+ minGovChangeTimeLock: (...args) => getRequest('minGovChangeTimeLock', args),
1597
+ maxGovChangeTimeLock: (...args) => getRequest('maxGovChangeTimeLock', args),
1598
+ governance: (...args) => getRequest('governance', args),
1599
+ pendingGov: (...args) => getRequest('pendingGov', args),
1600
+ numGovChanges: (...args) => getRequest('numGovChanges', args),
1601
+ govChangeTimeLock: (...args) => getRequest('govChangeTimeLock', args),
1602
+ getRegistryDescription: (...args) => getRequest('getRegistryDescription', args),
1603
+ isValidNewAddress: (...args) => getRequest('isValidNewAddress', args),
1604
+ isValidAddressUpdate: (...args) => getRequest('isValidAddressUpdate', args),
1605
+ isValidAddressDisable: (...args) => getRequest('isValidAddressDisable', args),
1606
+ isValidRegistryTimeLock: (...args) => getRequest('isValidRegistryTimeLock', args),
1607
+ minRegistryTimeLock: (...args) => getRequest('minRegistryTimeLock', args),
1608
+ maxRegistryTimeLock: (...args) => getRequest('maxRegistryTimeLock', args),
1609
+ isValidAddr: (...args) => getRequest('isValidAddr', args),
1610
+ isValidRegId: (...args) => getRequest('isValidRegId', args),
1611
+ getRegId: (...args) => getRequest('getRegId', args),
1612
+ getAddr: (...args) => getRequest('getAddr', args),
1613
+ getAddrInfo: (...args) => getRequest('getAddrInfo', args),
1614
+ getAddrDescription: (...args) => getRequest('getAddrDescription', args),
1615
+ getNumAddrs: (...args) => getRequest('getNumAddrs', args),
1616
+ getLastAddr: (...args) => getRequest('getLastAddr', args),
1617
+ getLastRegId: (...args) => getRequest('getLastRegId', args),
1618
+ registryChangeTimeLock: (...args) => getRequest('registryChangeTimeLock', args),
1619
+ addrInfo: (...args) => getRequest('addrInfo', args),
1620
+ addrToRegId: (...args) => getRequest('addrToRegId', args),
1621
+ numAddrs: (...args) => getRequest('numAddrs', args),
1622
+ pendingNewAddr: (...args) => getRequest('pendingNewAddr', args),
1623
+ pendingAddrUpdate: (...args) => getRequest('pendingAddrUpdate', args),
1624
+ pendingAddrDisable: (...args) => getRequest('pendingAddrDisable', args),
1625
+ getAddys: (...args) => getRequest('getAddys', args),
1626
+ getUndyHq: (...args) => getRequest('getUndyHq', args),
1627
+ canMintUndy: (...args) => getRequest('canMintUndy', args),
1628
+ isPaused: (...args) => getRequest('isPaused', args),
1629
+ isHelpersAddr: (...args) => getRequest('isHelpersAddr', args),
1630
+ };
1631
+ function getMutation(functionName) {
1632
+ return {
1633
+ contractName: 'Helpers',
1634
+ functionName,
1635
+ deployAddress,
1636
+ argsType: undefined,
1637
+ getAbi: () => abi,
1638
+ };
1639
+ }
1640
+ export const mutation = {
1641
+ startGovernanceChange: getMutation('startGovernanceChange'),
1642
+ confirmGovernanceChange: getMutation('confirmGovernanceChange'),
1643
+ cancelGovernanceChange: getMutation('cancelGovernanceChange'),
1644
+ relinquishGov: getMutation('relinquishGov'),
1645
+ setGovTimeLock: getMutation('setGovTimeLock'),
1646
+ finishUndyHqSetup: getMutation('finishUndyHqSetup'),
1647
+ setRegistryTimeLock: getMutation('setRegistryTimeLock'),
1648
+ setRegistryTimeLockAfterSetup: getMutation('setRegistryTimeLockAfterSetup'),
1649
+ pause: getMutation('pause'),
1650
+ recoverFunds: getMutation('recoverFunds'),
1651
+ recoverFundsMany: getMutation('recoverFundsMany'),
1652
+ startAddNewAddressToRegistry: getMutation('startAddNewAddressToRegistry'),
1653
+ confirmNewAddressToRegistry: getMutation('confirmNewAddressToRegistry'),
1654
+ cancelNewAddressToRegistry: getMutation('cancelNewAddressToRegistry'),
1655
+ startAddressUpdateToRegistry: getMutation('startAddressUpdateToRegistry'),
1656
+ confirmAddressUpdateToRegistry: getMutation('confirmAddressUpdateToRegistry'),
1657
+ cancelAddressUpdateToRegistry: getMutation('cancelAddressUpdateToRegistry'),
1658
+ startAddressDisableInRegistry: getMutation('startAddressDisableInRegistry'),
1659
+ confirmAddressDisableInRegistry: getMutation('confirmAddressDisableInRegistry'),
1660
+ cancelAddressDisableInRegistry: getMutation('cancelAddressDisableInRegistry'),
1661
+ };
1662
+ export function parseEvents(eventName, events) {
1663
+ return events.map((event) => {
1664
+ return {
1665
+ event,
1666
+ parsed: parseEventLogs({
1667
+ abi,
1668
+ eventName,
1669
+ logs: [event],
1670
+ }),
1671
+ };
1672
+ });
1673
+ }
1674
+ export function getEventTopic(eventName) {
1675
+ return encodeEventTopics({ abi, eventName })[0];
1676
+ }
1677
+ export function toSdk(publicClient, walletClient, addressResolver) {
1678
+ return {
1679
+ deployAddress,
1680
+ abi,
1681
+ events: {
1682
+ GovChangeTimeLockModified: {
1683
+ topic: getEventTopic('GovChangeTimeLockModified'),
1684
+ parse: (events) => parseEvents('GovChangeTimeLockModified', events),
1685
+ },
1686
+ RegistryTimeLockModified: {
1687
+ topic: getEventTopic('RegistryTimeLockModified'),
1688
+ parse: (events) => parseEvents('RegistryTimeLockModified', events),
1689
+ },
1690
+ GovChangeStarted: {
1691
+ topic: getEventTopic('GovChangeStarted'),
1692
+ parse: (events) => parseEvents('GovChangeStarted', events),
1693
+ },
1694
+ GovChangeConfirmed: {
1695
+ topic: getEventTopic('GovChangeConfirmed'),
1696
+ parse: (events) => parseEvents('GovChangeConfirmed', events),
1697
+ },
1698
+ GovChangeCancelled: {
1699
+ topic: getEventTopic('GovChangeCancelled'),
1700
+ parse: (events) => parseEvents('GovChangeCancelled', events),
1701
+ },
1702
+ GovRelinquished: {
1703
+ topic: getEventTopic('GovRelinquished'),
1704
+ parse: (events) => parseEvents('GovRelinquished', events),
1705
+ },
1706
+ UndyHqSetupFinished: {
1707
+ topic: getEventTopic('UndyHqSetupFinished'),
1708
+ parse: (events) => parseEvents('UndyHqSetupFinished', events),
1709
+ },
1710
+ DepartmentPauseModified: {
1711
+ topic: getEventTopic('DepartmentPauseModified'),
1712
+ parse: (events) => parseEvents('DepartmentPauseModified', events),
1713
+ },
1714
+ DepartmentFundsRecovered: {
1715
+ topic: getEventTopic('DepartmentFundsRecovered'),
1716
+ parse: (events) => parseEvents('DepartmentFundsRecovered', events),
1717
+ },
1718
+ NewAddressPending: {
1719
+ topic: getEventTopic('NewAddressPending'),
1720
+ parse: (events) => parseEvents('NewAddressPending', events),
1721
+ },
1722
+ NewAddressConfirmed: {
1723
+ topic: getEventTopic('NewAddressConfirmed'),
1724
+ parse: (events) => parseEvents('NewAddressConfirmed', events),
1725
+ },
1726
+ NewAddressCancelled: {
1727
+ topic: getEventTopic('NewAddressCancelled'),
1728
+ parse: (events) => parseEvents('NewAddressCancelled', events),
1729
+ },
1730
+ AddressUpdatePending: {
1731
+ topic: getEventTopic('AddressUpdatePending'),
1732
+ parse: (events) => parseEvents('AddressUpdatePending', events),
1733
+ },
1734
+ AddressUpdateConfirmed: {
1735
+ topic: getEventTopic('AddressUpdateConfirmed'),
1736
+ parse: (events) => parseEvents('AddressUpdateConfirmed', events),
1737
+ },
1738
+ AddressUpdateCancelled: {
1739
+ topic: getEventTopic('AddressUpdateCancelled'),
1740
+ parse: (events) => parseEvents('AddressUpdateCancelled', events),
1741
+ },
1742
+ AddressDisablePending: {
1743
+ topic: getEventTopic('AddressDisablePending'),
1744
+ parse: (events) => parseEvents('AddressDisablePending', events),
1745
+ },
1746
+ AddressDisableConfirmed: {
1747
+ topic: getEventTopic('AddressDisableConfirmed'),
1748
+ parse: (events) => parseEvents('AddressDisableConfirmed', events),
1749
+ },
1750
+ AddressDisableCancelled: {
1751
+ topic: getEventTopic('AddressDisableCancelled'),
1752
+ parse: (events) => parseEvents('AddressDisableCancelled', events),
1753
+ },
1754
+ },
1755
+ // Queries
1756
+ getUndyHqFromGov: (...args) => singleQuery(publicClient, call.getUndyHqFromGov(...args), {}, addressResolver),
1757
+ canGovern: (...args) => singleQuery(publicClient, call.canGovern(...args), {}, addressResolver),
1758
+ getGovernors: (...args) => singleQuery(publicClient, call.getGovernors(...args), {}, addressResolver),
1759
+ hasPendingGovChange: (...args) => singleQuery(publicClient, call.hasPendingGovChange(...args), {}, addressResolver),
1760
+ isValidGovTimeLock: (...args) => singleQuery(publicClient, call.isValidGovTimeLock(...args), {}, addressResolver),
1761
+ minGovChangeTimeLock: (...args) => singleQuery(publicClient, call.minGovChangeTimeLock(...args), {}, addressResolver),
1762
+ maxGovChangeTimeLock: (...args) => singleQuery(publicClient, call.maxGovChangeTimeLock(...args), {}, addressResolver),
1763
+ governance: (...args) => singleQuery(publicClient, call.governance(...args), {}, addressResolver),
1764
+ pendingGov: (...args) => singleQuery(publicClient, call.pendingGov(...args), {}, addressResolver),
1765
+ numGovChanges: (...args) => singleQuery(publicClient, call.numGovChanges(...args), {}, addressResolver),
1766
+ govChangeTimeLock: (...args) => singleQuery(publicClient, call.govChangeTimeLock(...args), {}, addressResolver),
1767
+ getRegistryDescription: (...args) => singleQuery(publicClient, call.getRegistryDescription(...args), {}, addressResolver),
1768
+ isValidNewAddress: (...args) => singleQuery(publicClient, call.isValidNewAddress(...args), {}, addressResolver),
1769
+ isValidAddressUpdate: (...args) => singleQuery(publicClient, call.isValidAddressUpdate(...args), {}, addressResolver),
1770
+ isValidAddressDisable: (...args) => singleQuery(publicClient, call.isValidAddressDisable(...args), {}, addressResolver),
1771
+ isValidRegistryTimeLock: (...args) => singleQuery(publicClient, call.isValidRegistryTimeLock(...args), {}, addressResolver),
1772
+ minRegistryTimeLock: (...args) => singleQuery(publicClient, call.minRegistryTimeLock(...args), {}, addressResolver),
1773
+ maxRegistryTimeLock: (...args) => singleQuery(publicClient, call.maxRegistryTimeLock(...args), {}, addressResolver),
1774
+ isValidAddr: (...args) => singleQuery(publicClient, call.isValidAddr(...args), {}, addressResolver),
1775
+ isValidRegId: (...args) => singleQuery(publicClient, call.isValidRegId(...args), {}, addressResolver),
1776
+ getRegId: (...args) => singleQuery(publicClient, call.getRegId(...args), {}, addressResolver),
1777
+ getAddr: (...args) => singleQuery(publicClient, call.getAddr(...args), {}, addressResolver),
1778
+ getAddrInfo: (...args) => singleQuery(publicClient, call.getAddrInfo(...args), {}, addressResolver),
1779
+ getAddrDescription: (...args) => singleQuery(publicClient, call.getAddrDescription(...args), {}, addressResolver),
1780
+ getNumAddrs: (...args) => singleQuery(publicClient, call.getNumAddrs(...args), {}, addressResolver),
1781
+ getLastAddr: (...args) => singleQuery(publicClient, call.getLastAddr(...args), {}, addressResolver),
1782
+ getLastRegId: (...args) => singleQuery(publicClient, call.getLastRegId(...args), {}, addressResolver),
1783
+ registryChangeTimeLock: (...args) => singleQuery(publicClient, call.registryChangeTimeLock(...args), {}, addressResolver),
1784
+ addrInfo: (...args) => singleQuery(publicClient, call.addrInfo(...args), {}, addressResolver),
1785
+ addrToRegId: (...args) => singleQuery(publicClient, call.addrToRegId(...args), {}, addressResolver),
1786
+ numAddrs: (...args) => singleQuery(publicClient, call.numAddrs(...args), {}, addressResolver),
1787
+ pendingNewAddr: (...args) => singleQuery(publicClient, call.pendingNewAddr(...args), {}, addressResolver),
1788
+ pendingAddrUpdate: (...args) => singleQuery(publicClient, call.pendingAddrUpdate(...args), {}, addressResolver),
1789
+ pendingAddrDisable: (...args) => singleQuery(publicClient, call.pendingAddrDisable(...args), {}, addressResolver),
1790
+ getAddys: (...args) => singleQuery(publicClient, call.getAddys(...args), {}, addressResolver),
1791
+ getUndyHq: (...args) => singleQuery(publicClient, call.getUndyHq(...args), {}, addressResolver),
1792
+ canMintUndy: (...args) => singleQuery(publicClient, call.canMintUndy(...args), {}, addressResolver),
1793
+ isPaused: (...args) => singleQuery(publicClient, call.isPaused(...args), {}, addressResolver),
1794
+ isHelpersAddr: (...args) => singleQuery(publicClient, call.isHelpersAddr(...args), {}, addressResolver),
1795
+ // Mutations
1796
+ startGovernanceChange: (...args) => mutate(walletClient, mutation.startGovernanceChange, { addressResolver })(...args),
1797
+ confirmGovernanceChange: (...args) => mutate(walletClient, mutation.confirmGovernanceChange, { addressResolver })(...args),
1798
+ cancelGovernanceChange: (...args) => mutate(walletClient, mutation.cancelGovernanceChange, { addressResolver })(...args),
1799
+ relinquishGov: (...args) => mutate(walletClient, mutation.relinquishGov, { addressResolver })(...args),
1800
+ setGovTimeLock: (...args) => mutate(walletClient, mutation.setGovTimeLock, { addressResolver })(...args),
1801
+ finishUndyHqSetup: (...args) => mutate(walletClient, mutation.finishUndyHqSetup, { addressResolver })(...args),
1802
+ setRegistryTimeLock: (...args) => mutate(walletClient, mutation.setRegistryTimeLock, { addressResolver })(...args),
1803
+ setRegistryTimeLockAfterSetup: (...args) => mutate(walletClient, mutation.setRegistryTimeLockAfterSetup, { addressResolver })(...args),
1804
+ pause: (...args) => mutate(walletClient, mutation.pause, { addressResolver })(...args),
1805
+ recoverFunds: (...args) => mutate(walletClient, mutation.recoverFunds, { addressResolver })(...args),
1806
+ recoverFundsMany: (...args) => mutate(walletClient, mutation.recoverFundsMany, { addressResolver })(...args),
1807
+ startAddNewAddressToRegistry: (...args) => mutate(walletClient, mutation.startAddNewAddressToRegistry, { addressResolver })(...args),
1808
+ confirmNewAddressToRegistry: (...args) => mutate(walletClient, mutation.confirmNewAddressToRegistry, { addressResolver })(...args),
1809
+ cancelNewAddressToRegistry: (...args) => mutate(walletClient, mutation.cancelNewAddressToRegistry, { addressResolver })(...args),
1810
+ startAddressUpdateToRegistry: (...args) => mutate(walletClient, mutation.startAddressUpdateToRegistry, { addressResolver })(...args),
1811
+ confirmAddressUpdateToRegistry: (...args) => mutate(walletClient, mutation.confirmAddressUpdateToRegistry, { addressResolver })(...args),
1812
+ cancelAddressUpdateToRegistry: (...args) => mutate(walletClient, mutation.cancelAddressUpdateToRegistry, { addressResolver })(...args),
1813
+ startAddressDisableInRegistry: (...args) => mutate(walletClient, mutation.startAddressDisableInRegistry, { addressResolver })(...args),
1814
+ confirmAddressDisableInRegistry: (...args) => mutate(walletClient, mutation.confirmAddressDisableInRegistry, { addressResolver })(...args),
1815
+ cancelAddressDisableInRegistry: (...args) => mutate(walletClient, mutation.cancelAddressDisableInRegistry, { addressResolver })(...args),
1816
+ };
1817
+ }