@underscore-finance/sdk 0.2.1 → 0.3.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.
Files changed (54) hide show
  1. package/dist/contracts/AddyRegistry.d.ts +59 -0
  2. package/dist/contracts/AddyRegistry.d.ts.map +1 -1
  3. package/dist/contracts/AddyRegistry.js +80 -1
  4. package/dist/contracts/Agent.js +1 -1
  5. package/dist/contracts/AgentFactory.d.ts +673 -269
  6. package/dist/contracts/AgentFactory.d.ts.map +1 -1
  7. package/dist/contracts/AgentFactory.js +742 -254
  8. package/dist/contracts/AgentFactory_v2.d.ts +1259 -0
  9. package/dist/contracts/AgentFactory_v2.d.ts.map +1 -0
  10. package/dist/contracts/AgentFactory_v2.js +1588 -0
  11. package/dist/contracts/Agent_v1.d.ts +2629 -0
  12. package/dist/contracts/Agent_v1.d.ts.map +1 -0
  13. package/dist/contracts/Agent_v1.js +3370 -0
  14. package/dist/contracts/ChainlinkFeeds.js +1 -1
  15. package/dist/contracts/LegoAaveV3.js +1 -1
  16. package/dist/contracts/LegoAeroClassic.js +1 -1
  17. package/dist/contracts/LegoAeroSlipstream.js +1 -1
  18. package/dist/contracts/LegoCompoundV3.js +1 -1
  19. package/dist/contracts/LegoCurve.js +1 -1
  20. package/dist/contracts/LegoEuler.js +1 -1
  21. package/dist/contracts/LegoFluid.js +1 -1
  22. package/dist/contracts/LegoHelper.js +1 -1
  23. package/dist/contracts/LegoMoonwell.js +1 -1
  24. package/dist/contracts/LegoMorpho.js +1 -1
  25. package/dist/contracts/LegoRegistry.d.ts +83 -0
  26. package/dist/contracts/LegoRegistry.d.ts.map +1 -1
  27. package/dist/contracts/LegoRegistry.js +109 -1
  28. package/dist/contracts/LegoSky.js +1 -1
  29. package/dist/contracts/LegoUniswapV2.js +1 -1
  30. package/dist/contracts/LegoUniswapV3.js +1 -1
  31. package/dist/contracts/OracleRegistry.d.ts +11 -0
  32. package/dist/contracts/OracleRegistry.d.ts.map +1 -1
  33. package/dist/contracts/OracleRegistry.js +15 -1
  34. package/dist/contracts/PriceSheets.d.ts +65 -133
  35. package/dist/contracts/PriceSheets.d.ts.map +1 -1
  36. package/dist/contracts/PriceSheets.js +74 -152
  37. package/dist/contracts/PythFeeds.js +1 -1
  38. package/dist/contracts/StorkFeeds.js +1 -1
  39. package/dist/contracts/UserWallet.d.ts +41 -24
  40. package/dist/contracts/UserWallet.d.ts.map +1 -1
  41. package/dist/contracts/UserWallet.js +48 -24
  42. package/dist/contracts/UserWalletConfig.d.ts +384 -0
  43. package/dist/contracts/UserWalletConfig.d.ts.map +1 -1
  44. package/dist/contracts/UserWalletConfig.js +500 -1
  45. package/dist/contracts/index.d.ts +2 -0
  46. package/dist/contracts/index.d.ts.map +1 -1
  47. package/dist/contracts/index.js +2 -0
  48. package/dist/contracts/sdk.d.ts +4 -0
  49. package/dist/contracts/sdk.d.ts.map +1 -1
  50. package/dist/contracts/sdk.js +4 -0
  51. package/dist/index.d.ts +10 -0
  52. package/dist/index.d.ts.map +1 -1
  53. package/dist/index.js +12 -0
  54. package/package.json +1 -1
@@ -0,0 +1,1588 @@
1
+ /* Autogenerated file. Do not edit manually. */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /* @ts-nocheck */
5
+ import { singleQuery, mutate } from '@dappql/async';
6
+ export const abi = [
7
+ {
8
+ anonymous: false,
9
+ inputs: [
10
+ {
11
+ indexed: true,
12
+ name: 'mainAddr',
13
+ type: 'address',
14
+ },
15
+ {
16
+ indexed: true,
17
+ name: 'configAddr',
18
+ type: 'address',
19
+ },
20
+ {
21
+ indexed: true,
22
+ name: 'owner',
23
+ type: 'address',
24
+ },
25
+ {
26
+ indexed: false,
27
+ name: 'agent',
28
+ type: 'address',
29
+ },
30
+ {
31
+ indexed: false,
32
+ name: 'creator',
33
+ type: 'address',
34
+ },
35
+ ],
36
+ name: 'UserWalletCreated',
37
+ type: 'event',
38
+ },
39
+ {
40
+ anonymous: false,
41
+ inputs: [
42
+ {
43
+ indexed: true,
44
+ name: 'agent',
45
+ type: 'address',
46
+ },
47
+ {
48
+ indexed: true,
49
+ name: 'owner',
50
+ type: 'address',
51
+ },
52
+ {
53
+ indexed: false,
54
+ name: 'creator',
55
+ type: 'address',
56
+ },
57
+ ],
58
+ name: 'AgentCreated',
59
+ type: 'event',
60
+ },
61
+ {
62
+ anonymous: false,
63
+ inputs: [
64
+ {
65
+ indexed: true,
66
+ name: 'template',
67
+ type: 'address',
68
+ },
69
+ {
70
+ indexed: false,
71
+ name: 'version',
72
+ type: 'uint256',
73
+ },
74
+ ],
75
+ name: 'UserWalletTemplateSet',
76
+ type: 'event',
77
+ },
78
+ {
79
+ anonymous: false,
80
+ inputs: [
81
+ {
82
+ indexed: true,
83
+ name: 'template',
84
+ type: 'address',
85
+ },
86
+ {
87
+ indexed: false,
88
+ name: 'version',
89
+ type: 'uint256',
90
+ },
91
+ ],
92
+ name: 'UserWalletConfigTemplateSet',
93
+ type: 'event',
94
+ },
95
+ {
96
+ anonymous: false,
97
+ inputs: [
98
+ {
99
+ indexed: true,
100
+ name: 'template',
101
+ type: 'address',
102
+ },
103
+ {
104
+ indexed: false,
105
+ name: 'version',
106
+ type: 'uint256',
107
+ },
108
+ ],
109
+ name: 'AgentTemplateSet',
110
+ type: 'event',
111
+ },
112
+ {
113
+ anonymous: false,
114
+ inputs: [
115
+ {
116
+ indexed: true,
117
+ name: 'asset',
118
+ type: 'address',
119
+ },
120
+ {
121
+ indexed: false,
122
+ name: 'amount',
123
+ type: 'uint256',
124
+ },
125
+ ],
126
+ name: 'TrialFundsDataSet',
127
+ type: 'event',
128
+ },
129
+ {
130
+ anonymous: false,
131
+ inputs: [
132
+ {
133
+ indexed: false,
134
+ name: 'addr',
135
+ type: 'address',
136
+ },
137
+ {
138
+ indexed: false,
139
+ name: 'shouldWhitelist',
140
+ type: 'bool',
141
+ },
142
+ ],
143
+ name: 'WhitelistSet',
144
+ type: 'event',
145
+ },
146
+ {
147
+ anonymous: false,
148
+ inputs: [
149
+ {
150
+ indexed: false,
151
+ name: 'numAllowed',
152
+ type: 'uint256',
153
+ },
154
+ ],
155
+ name: 'NumUserWalletsAllowedSet',
156
+ type: 'event',
157
+ },
158
+ {
159
+ anonymous: false,
160
+ inputs: [
161
+ {
162
+ indexed: false,
163
+ name: 'numAllowed',
164
+ type: 'uint256',
165
+ },
166
+ ],
167
+ name: 'NumAgentsAllowedSet',
168
+ type: 'event',
169
+ },
170
+ {
171
+ anonymous: false,
172
+ inputs: [
173
+ {
174
+ indexed: false,
175
+ name: 'shouldEnforce',
176
+ type: 'bool',
177
+ },
178
+ ],
179
+ name: 'ShouldEnforceWhitelistSet',
180
+ type: 'event',
181
+ },
182
+ {
183
+ anonymous: false,
184
+ inputs: [
185
+ {
186
+ indexed: true,
187
+ name: 'agentAddr',
188
+ type: 'address',
189
+ },
190
+ {
191
+ indexed: false,
192
+ name: 'shouldBlacklist',
193
+ type: 'bool',
194
+ },
195
+ ],
196
+ name: 'AgentBlacklistSet',
197
+ type: 'event',
198
+ },
199
+ {
200
+ anonymous: false,
201
+ inputs: [
202
+ {
203
+ indexed: true,
204
+ name: 'asset',
205
+ type: 'address',
206
+ },
207
+ {
208
+ indexed: true,
209
+ name: 'recipient',
210
+ type: 'address',
211
+ },
212
+ {
213
+ indexed: false,
214
+ name: 'balance',
215
+ type: 'uint256',
216
+ },
217
+ ],
218
+ name: 'AgentFactoryFundsRecovered',
219
+ type: 'event',
220
+ },
221
+ {
222
+ anonymous: false,
223
+ inputs: [
224
+ {
225
+ indexed: true,
226
+ name: 'caller',
227
+ type: 'address',
228
+ },
229
+ ],
230
+ name: 'RecoveryCallerSet',
231
+ type: 'event',
232
+ },
233
+ {
234
+ anonymous: false,
235
+ inputs: [
236
+ {
237
+ indexed: true,
238
+ name: 'addr',
239
+ type: 'address',
240
+ },
241
+ {
242
+ indexed: false,
243
+ name: 'canCancel',
244
+ type: 'bool',
245
+ },
246
+ ],
247
+ name: 'CanCriticalCancelSet',
248
+ type: 'event',
249
+ },
250
+ {
251
+ anonymous: false,
252
+ inputs: [
253
+ {
254
+ indexed: false,
255
+ name: 'isActivated',
256
+ type: 'bool',
257
+ },
258
+ ],
259
+ name: 'AgentFactoryActivated',
260
+ type: 'event',
261
+ },
262
+ {
263
+ anonymous: false,
264
+ inputs: [
265
+ {
266
+ indexed: true,
267
+ name: 'prevGov',
268
+ type: 'address',
269
+ },
270
+ {
271
+ indexed: true,
272
+ name: 'newGov',
273
+ type: 'address',
274
+ },
275
+ {
276
+ indexed: false,
277
+ name: 'confirmBlock',
278
+ type: 'uint256',
279
+ },
280
+ ],
281
+ name: 'GovChangeInitiated',
282
+ type: 'event',
283
+ },
284
+ {
285
+ anonymous: false,
286
+ inputs: [
287
+ {
288
+ indexed: true,
289
+ name: 'prevGov',
290
+ type: 'address',
291
+ },
292
+ {
293
+ indexed: true,
294
+ name: 'newGov',
295
+ type: 'address',
296
+ },
297
+ {
298
+ indexed: false,
299
+ name: 'initiatedBlock',
300
+ type: 'uint256',
301
+ },
302
+ {
303
+ indexed: false,
304
+ name: 'confirmBlock',
305
+ type: 'uint256',
306
+ },
307
+ ],
308
+ name: 'GovChangeConfirmed',
309
+ type: 'event',
310
+ },
311
+ {
312
+ anonymous: false,
313
+ inputs: [
314
+ {
315
+ indexed: true,
316
+ name: 'cancelledGov',
317
+ type: 'address',
318
+ },
319
+ {
320
+ indexed: false,
321
+ name: 'initiatedBlock',
322
+ type: 'uint256',
323
+ },
324
+ {
325
+ indexed: false,
326
+ name: 'confirmBlock',
327
+ type: 'uint256',
328
+ },
329
+ ],
330
+ name: 'GovChangeCancelled',
331
+ type: 'event',
332
+ },
333
+ {
334
+ anonymous: false,
335
+ inputs: [
336
+ {
337
+ indexed: false,
338
+ name: 'delayBlocks',
339
+ type: 'uint256',
340
+ },
341
+ ],
342
+ name: 'GovChangeDelaySet',
343
+ type: 'event',
344
+ },
345
+ {
346
+ inputs: [
347
+ {
348
+ name: '_address',
349
+ type: 'address',
350
+ },
351
+ ],
352
+ name: 'canGovern',
353
+ outputs: [
354
+ {
355
+ name: '',
356
+ type: 'bool',
357
+ },
358
+ ],
359
+ stateMutability: 'view',
360
+ type: 'function',
361
+ },
362
+ {
363
+ inputs: [],
364
+ name: 'hasPendingGovChange',
365
+ outputs: [
366
+ {
367
+ name: '',
368
+ type: 'bool',
369
+ },
370
+ ],
371
+ stateMutability: 'view',
372
+ type: 'function',
373
+ },
374
+ {
375
+ inputs: [
376
+ {
377
+ name: '_newGov',
378
+ type: 'address',
379
+ },
380
+ ],
381
+ name: 'changeGovernance',
382
+ outputs: [],
383
+ stateMutability: 'nonpayable',
384
+ type: 'function',
385
+ },
386
+ {
387
+ inputs: [],
388
+ name: 'confirmGovernanceChange',
389
+ outputs: [],
390
+ stateMutability: 'nonpayable',
391
+ type: 'function',
392
+ },
393
+ {
394
+ inputs: [],
395
+ name: 'cancelGovernanceChange',
396
+ outputs: [],
397
+ stateMutability: 'nonpayable',
398
+ type: 'function',
399
+ },
400
+ {
401
+ inputs: [
402
+ {
403
+ name: '_numBlocks',
404
+ type: 'uint256',
405
+ },
406
+ ],
407
+ name: 'setGovernanceChangeDelay',
408
+ outputs: [],
409
+ stateMutability: 'nonpayable',
410
+ type: 'function',
411
+ },
412
+ {
413
+ inputs: [],
414
+ name: 'governance',
415
+ outputs: [
416
+ {
417
+ name: '',
418
+ type: 'address',
419
+ },
420
+ ],
421
+ stateMutability: 'view',
422
+ type: 'function',
423
+ },
424
+ {
425
+ inputs: [],
426
+ name: 'pendingGov',
427
+ outputs: [
428
+ {
429
+ components: [
430
+ {
431
+ name: 'newGov',
432
+ type: 'address',
433
+ },
434
+ {
435
+ name: 'initiatedBlock',
436
+ type: 'uint256',
437
+ },
438
+ {
439
+ name: 'confirmBlock',
440
+ type: 'uint256',
441
+ },
442
+ ],
443
+ name: '',
444
+ type: 'tuple',
445
+ },
446
+ ],
447
+ stateMutability: 'view',
448
+ type: 'function',
449
+ },
450
+ {
451
+ inputs: [],
452
+ name: 'govChangeDelay',
453
+ outputs: [
454
+ {
455
+ name: '',
456
+ type: 'uint256',
457
+ },
458
+ ],
459
+ stateMutability: 'view',
460
+ type: 'function',
461
+ },
462
+ {
463
+ inputs: [],
464
+ name: 'MIN_GOV_CHANGE_DELAY',
465
+ outputs: [
466
+ {
467
+ name: '',
468
+ type: 'uint256',
469
+ },
470
+ ],
471
+ stateMutability: 'view',
472
+ type: 'function',
473
+ },
474
+ {
475
+ inputs: [],
476
+ name: 'MAX_GOV_CHANGE_DELAY',
477
+ outputs: [
478
+ {
479
+ name: '',
480
+ type: 'uint256',
481
+ },
482
+ ],
483
+ stateMutability: 'view',
484
+ type: 'function',
485
+ },
486
+ {
487
+ inputs: [],
488
+ name: 'currentUserWalletTemplate',
489
+ outputs: [
490
+ {
491
+ name: '',
492
+ type: 'address',
493
+ },
494
+ ],
495
+ stateMutability: 'view',
496
+ type: 'function',
497
+ },
498
+ {
499
+ inputs: [],
500
+ name: 'currentUserWalletConfigTemplate',
501
+ outputs: [
502
+ {
503
+ name: '',
504
+ type: 'address',
505
+ },
506
+ ],
507
+ stateMutability: 'view',
508
+ type: 'function',
509
+ },
510
+ {
511
+ inputs: [],
512
+ name: 'currentAgentTemplate',
513
+ outputs: [
514
+ {
515
+ name: '',
516
+ type: 'address',
517
+ },
518
+ ],
519
+ stateMutability: 'view',
520
+ type: 'function',
521
+ },
522
+ {
523
+ inputs: [
524
+ {
525
+ name: '_owner',
526
+ type: 'address',
527
+ },
528
+ {
529
+ name: '_agent',
530
+ type: 'address',
531
+ },
532
+ ],
533
+ name: 'isValidUserWalletSetup',
534
+ outputs: [
535
+ {
536
+ name: '',
537
+ type: 'bool',
538
+ },
539
+ ],
540
+ stateMutability: 'view',
541
+ type: 'function',
542
+ },
543
+ {
544
+ inputs: [],
545
+ name: 'createUserWallet',
546
+ outputs: [
547
+ {
548
+ name: '',
549
+ type: 'address',
550
+ },
551
+ ],
552
+ stateMutability: 'nonpayable',
553
+ type: 'function',
554
+ },
555
+ {
556
+ inputs: [
557
+ {
558
+ name: '_owner',
559
+ type: 'address',
560
+ },
561
+ ],
562
+ name: 'createUserWallet',
563
+ outputs: [
564
+ {
565
+ name: '',
566
+ type: 'address',
567
+ },
568
+ ],
569
+ stateMutability: 'nonpayable',
570
+ type: 'function',
571
+ },
572
+ {
573
+ inputs: [
574
+ {
575
+ name: '_owner',
576
+ type: 'address',
577
+ },
578
+ {
579
+ name: '_agent',
580
+ type: 'address',
581
+ },
582
+ ],
583
+ name: 'createUserWallet',
584
+ outputs: [
585
+ {
586
+ name: '',
587
+ type: 'address',
588
+ },
589
+ ],
590
+ stateMutability: 'nonpayable',
591
+ type: 'function',
592
+ },
593
+ {
594
+ inputs: [
595
+ {
596
+ name: '_newAddr',
597
+ type: 'address',
598
+ },
599
+ ],
600
+ name: 'isValidUserWalletTemplate',
601
+ outputs: [
602
+ {
603
+ name: '',
604
+ type: 'bool',
605
+ },
606
+ ],
607
+ stateMutability: 'view',
608
+ type: 'function',
609
+ },
610
+ {
611
+ inputs: [
612
+ {
613
+ name: '_addr',
614
+ type: 'address',
615
+ },
616
+ ],
617
+ name: 'setUserWalletTemplate',
618
+ outputs: [
619
+ {
620
+ name: '',
621
+ type: 'bool',
622
+ },
623
+ ],
624
+ stateMutability: 'nonpayable',
625
+ type: 'function',
626
+ },
627
+ {
628
+ inputs: [
629
+ {
630
+ name: '_newAddr',
631
+ type: 'address',
632
+ },
633
+ ],
634
+ name: 'isValidUserWalletConfigTemplate',
635
+ outputs: [
636
+ {
637
+ name: '',
638
+ type: 'bool',
639
+ },
640
+ ],
641
+ stateMutability: 'view',
642
+ type: 'function',
643
+ },
644
+ {
645
+ inputs: [
646
+ {
647
+ name: '_addr',
648
+ type: 'address',
649
+ },
650
+ ],
651
+ name: 'setUserWalletConfigTemplate',
652
+ outputs: [
653
+ {
654
+ name: '',
655
+ type: 'bool',
656
+ },
657
+ ],
658
+ stateMutability: 'nonpayable',
659
+ type: 'function',
660
+ },
661
+ {
662
+ inputs: [
663
+ {
664
+ name: '_owner',
665
+ type: 'address',
666
+ },
667
+ ],
668
+ name: 'isValidAgentSetup',
669
+ outputs: [
670
+ {
671
+ name: '',
672
+ type: 'bool',
673
+ },
674
+ ],
675
+ stateMutability: 'view',
676
+ type: 'function',
677
+ },
678
+ {
679
+ inputs: [],
680
+ name: 'createAgent',
681
+ outputs: [
682
+ {
683
+ name: '',
684
+ type: 'address',
685
+ },
686
+ ],
687
+ stateMutability: 'nonpayable',
688
+ type: 'function',
689
+ },
690
+ {
691
+ inputs: [
692
+ {
693
+ name: '_owner',
694
+ type: 'address',
695
+ },
696
+ ],
697
+ name: 'createAgent',
698
+ outputs: [
699
+ {
700
+ name: '',
701
+ type: 'address',
702
+ },
703
+ ],
704
+ stateMutability: 'nonpayable',
705
+ type: 'function',
706
+ },
707
+ {
708
+ inputs: [
709
+ {
710
+ name: '_newAddr',
711
+ type: 'address',
712
+ },
713
+ ],
714
+ name: 'isValidAgentTemplate',
715
+ outputs: [
716
+ {
717
+ name: '',
718
+ type: 'bool',
719
+ },
720
+ ],
721
+ stateMutability: 'view',
722
+ type: 'function',
723
+ },
724
+ {
725
+ inputs: [
726
+ {
727
+ name: '_addr',
728
+ type: 'address',
729
+ },
730
+ ],
731
+ name: 'setAgentTemplate',
732
+ outputs: [
733
+ {
734
+ name: '',
735
+ type: 'bool',
736
+ },
737
+ ],
738
+ stateMutability: 'nonpayable',
739
+ type: 'function',
740
+ },
741
+ {
742
+ inputs: [
743
+ {
744
+ name: '_asset',
745
+ type: 'address',
746
+ },
747
+ {
748
+ name: '_amount',
749
+ type: 'uint256',
750
+ },
751
+ ],
752
+ name: 'isValidTrialFundsData',
753
+ outputs: [
754
+ {
755
+ name: '',
756
+ type: 'bool',
757
+ },
758
+ ],
759
+ stateMutability: 'view',
760
+ type: 'function',
761
+ },
762
+ {
763
+ inputs: [
764
+ {
765
+ name: '_asset',
766
+ type: 'address',
767
+ },
768
+ {
769
+ name: '_amount',
770
+ type: 'uint256',
771
+ },
772
+ ],
773
+ name: 'setTrialFundsData',
774
+ outputs: [
775
+ {
776
+ name: '',
777
+ type: 'bool',
778
+ },
779
+ ],
780
+ stateMutability: 'nonpayable',
781
+ type: 'function',
782
+ },
783
+ {
784
+ inputs: [
785
+ {
786
+ name: '_wallet',
787
+ type: 'address',
788
+ },
789
+ ],
790
+ name: 'recoverTrialFunds',
791
+ outputs: [
792
+ {
793
+ name: '',
794
+ type: 'bool',
795
+ },
796
+ ],
797
+ stateMutability: 'nonpayable',
798
+ type: 'function',
799
+ },
800
+ {
801
+ inputs: [
802
+ {
803
+ name: '_wallet',
804
+ type: 'address',
805
+ },
806
+ {
807
+ components: [
808
+ {
809
+ name: 'legoId',
810
+ type: 'uint256',
811
+ },
812
+ {
813
+ name: 'vaultToken',
814
+ type: 'address',
815
+ },
816
+ ],
817
+ name: '_opportunities',
818
+ type: 'tuple[]',
819
+ },
820
+ ],
821
+ name: 'recoverTrialFunds',
822
+ outputs: [
823
+ {
824
+ name: '',
825
+ type: 'bool',
826
+ },
827
+ ],
828
+ stateMutability: 'nonpayable',
829
+ type: 'function',
830
+ },
831
+ {
832
+ inputs: [
833
+ {
834
+ components: [
835
+ {
836
+ name: 'wallet',
837
+ type: 'address',
838
+ },
839
+ {
840
+ components: [
841
+ {
842
+ name: 'legoId',
843
+ type: 'uint256',
844
+ },
845
+ {
846
+ name: 'vaultToken',
847
+ type: 'address',
848
+ },
849
+ ],
850
+ name: 'opportunities',
851
+ type: 'tuple[]',
852
+ },
853
+ ],
854
+ name: '_recoveries',
855
+ type: 'tuple[]',
856
+ },
857
+ ],
858
+ name: 'recoverTrialFundsMany',
859
+ outputs: [
860
+ {
861
+ name: '',
862
+ type: 'bool',
863
+ },
864
+ ],
865
+ stateMutability: 'nonpayable',
866
+ type: 'function',
867
+ },
868
+ {
869
+ inputs: [
870
+ {
871
+ name: '_caller',
872
+ type: 'address',
873
+ },
874
+ ],
875
+ name: 'setRecoveryCaller',
876
+ outputs: [
877
+ {
878
+ name: '',
879
+ type: 'bool',
880
+ },
881
+ ],
882
+ stateMutability: 'nonpayable',
883
+ type: 'function',
884
+ },
885
+ {
886
+ inputs: [
887
+ {
888
+ name: '_addr',
889
+ type: 'address',
890
+ },
891
+ {
892
+ name: '_shouldWhitelist',
893
+ type: 'bool',
894
+ },
895
+ ],
896
+ name: 'setWhitelist',
897
+ outputs: [
898
+ {
899
+ name: '',
900
+ type: 'bool',
901
+ },
902
+ ],
903
+ stateMutability: 'nonpayable',
904
+ type: 'function',
905
+ },
906
+ {
907
+ inputs: [
908
+ {
909
+ name: '_shouldEnforce',
910
+ type: 'bool',
911
+ },
912
+ ],
913
+ name: 'setShouldEnforceWhitelist',
914
+ outputs: [
915
+ {
916
+ name: '',
917
+ type: 'bool',
918
+ },
919
+ ],
920
+ stateMutability: 'nonpayable',
921
+ type: 'function',
922
+ },
923
+ {
924
+ inputs: [],
925
+ name: 'setNumUserWalletsAllowed',
926
+ outputs: [
927
+ {
928
+ name: '',
929
+ type: 'bool',
930
+ },
931
+ ],
932
+ stateMutability: 'nonpayable',
933
+ type: 'function',
934
+ },
935
+ {
936
+ inputs: [
937
+ {
938
+ name: '_numAllowed',
939
+ type: 'uint256',
940
+ },
941
+ ],
942
+ name: 'setNumUserWalletsAllowed',
943
+ outputs: [
944
+ {
945
+ name: '',
946
+ type: 'bool',
947
+ },
948
+ ],
949
+ stateMutability: 'nonpayable',
950
+ type: 'function',
951
+ },
952
+ {
953
+ inputs: [],
954
+ name: 'setNumAgentsAllowed',
955
+ outputs: [
956
+ {
957
+ name: '',
958
+ type: 'bool',
959
+ },
960
+ ],
961
+ stateMutability: 'nonpayable',
962
+ type: 'function',
963
+ },
964
+ {
965
+ inputs: [
966
+ {
967
+ name: '_numAllowed',
968
+ type: 'uint256',
969
+ },
970
+ ],
971
+ name: 'setNumAgentsAllowed',
972
+ outputs: [
973
+ {
974
+ name: '',
975
+ type: 'bool',
976
+ },
977
+ ],
978
+ stateMutability: 'nonpayable',
979
+ type: 'function',
980
+ },
981
+ {
982
+ inputs: [
983
+ {
984
+ name: '_agentAddr',
985
+ type: 'address',
986
+ },
987
+ {
988
+ name: '_shouldBlacklist',
989
+ type: 'bool',
990
+ },
991
+ ],
992
+ name: 'setAgentBlacklist',
993
+ outputs: [
994
+ {
995
+ name: '',
996
+ type: 'bool',
997
+ },
998
+ ],
999
+ stateMutability: 'nonpayable',
1000
+ type: 'function',
1001
+ },
1002
+ {
1003
+ inputs: [
1004
+ {
1005
+ name: '_asset',
1006
+ type: 'address',
1007
+ },
1008
+ {
1009
+ name: '_recipient',
1010
+ type: 'address',
1011
+ },
1012
+ ],
1013
+ name: 'recoverFunds',
1014
+ outputs: [
1015
+ {
1016
+ name: '',
1017
+ type: 'bool',
1018
+ },
1019
+ ],
1020
+ stateMutability: 'nonpayable',
1021
+ type: 'function',
1022
+ },
1023
+ {
1024
+ inputs: [
1025
+ {
1026
+ name: '_addr',
1027
+ type: 'address',
1028
+ },
1029
+ ],
1030
+ name: 'canCancelCriticalAction',
1031
+ outputs: [
1032
+ {
1033
+ name: '',
1034
+ type: 'bool',
1035
+ },
1036
+ ],
1037
+ stateMutability: 'view',
1038
+ type: 'function',
1039
+ },
1040
+ {
1041
+ inputs: [
1042
+ {
1043
+ name: '_addr',
1044
+ type: 'address',
1045
+ },
1046
+ {
1047
+ name: '_canCancel',
1048
+ type: 'bool',
1049
+ },
1050
+ ],
1051
+ name: 'setCanCriticalCancel',
1052
+ outputs: [
1053
+ {
1054
+ name: '',
1055
+ type: 'bool',
1056
+ },
1057
+ ],
1058
+ stateMutability: 'nonpayable',
1059
+ type: 'function',
1060
+ },
1061
+ {
1062
+ inputs: [
1063
+ {
1064
+ name: '_shouldActivate',
1065
+ type: 'bool',
1066
+ },
1067
+ ],
1068
+ name: 'activate',
1069
+ outputs: [],
1070
+ stateMutability: 'nonpayable',
1071
+ type: 'function',
1072
+ },
1073
+ {
1074
+ inputs: [],
1075
+ name: 'trialFundsData',
1076
+ outputs: [
1077
+ {
1078
+ components: [
1079
+ {
1080
+ name: 'asset',
1081
+ type: 'address',
1082
+ },
1083
+ {
1084
+ name: 'amount',
1085
+ type: 'uint256',
1086
+ },
1087
+ ],
1088
+ name: '',
1089
+ type: 'tuple',
1090
+ },
1091
+ ],
1092
+ stateMutability: 'view',
1093
+ type: 'function',
1094
+ },
1095
+ {
1096
+ inputs: [],
1097
+ name: 'recoveryCaller',
1098
+ outputs: [
1099
+ {
1100
+ name: '',
1101
+ type: 'address',
1102
+ },
1103
+ ],
1104
+ stateMutability: 'view',
1105
+ type: 'function',
1106
+ },
1107
+ {
1108
+ inputs: [],
1109
+ name: 'userWalletTemplate',
1110
+ outputs: [
1111
+ {
1112
+ components: [
1113
+ {
1114
+ name: 'addr',
1115
+ type: 'address',
1116
+ },
1117
+ {
1118
+ name: 'version',
1119
+ type: 'uint256',
1120
+ },
1121
+ {
1122
+ name: 'lastModified',
1123
+ type: 'uint256',
1124
+ },
1125
+ ],
1126
+ name: '',
1127
+ type: 'tuple',
1128
+ },
1129
+ ],
1130
+ stateMutability: 'view',
1131
+ type: 'function',
1132
+ },
1133
+ {
1134
+ inputs: [],
1135
+ name: 'userWalletConfig',
1136
+ outputs: [
1137
+ {
1138
+ components: [
1139
+ {
1140
+ name: 'addr',
1141
+ type: 'address',
1142
+ },
1143
+ {
1144
+ name: 'version',
1145
+ type: 'uint256',
1146
+ },
1147
+ {
1148
+ name: 'lastModified',
1149
+ type: 'uint256',
1150
+ },
1151
+ ],
1152
+ name: '',
1153
+ type: 'tuple',
1154
+ },
1155
+ ],
1156
+ stateMutability: 'view',
1157
+ type: 'function',
1158
+ },
1159
+ {
1160
+ inputs: [
1161
+ {
1162
+ name: 'arg0',
1163
+ type: 'address',
1164
+ },
1165
+ ],
1166
+ name: 'isUserWallet',
1167
+ outputs: [
1168
+ {
1169
+ name: '',
1170
+ type: 'bool',
1171
+ },
1172
+ ],
1173
+ stateMutability: 'view',
1174
+ type: 'function',
1175
+ },
1176
+ {
1177
+ inputs: [],
1178
+ name: 'numUserWallets',
1179
+ outputs: [
1180
+ {
1181
+ name: '',
1182
+ type: 'uint256',
1183
+ },
1184
+ ],
1185
+ stateMutability: 'view',
1186
+ type: 'function',
1187
+ },
1188
+ {
1189
+ inputs: [],
1190
+ name: 'agentTemplateInfo',
1191
+ outputs: [
1192
+ {
1193
+ components: [
1194
+ {
1195
+ name: 'addr',
1196
+ type: 'address',
1197
+ },
1198
+ {
1199
+ name: 'version',
1200
+ type: 'uint256',
1201
+ },
1202
+ {
1203
+ name: 'lastModified',
1204
+ type: 'uint256',
1205
+ },
1206
+ ],
1207
+ name: '',
1208
+ type: 'tuple',
1209
+ },
1210
+ ],
1211
+ stateMutability: 'view',
1212
+ type: 'function',
1213
+ },
1214
+ {
1215
+ inputs: [
1216
+ {
1217
+ name: 'arg0',
1218
+ type: 'address',
1219
+ },
1220
+ ],
1221
+ name: 'isAgent',
1222
+ outputs: [
1223
+ {
1224
+ name: '',
1225
+ type: 'bool',
1226
+ },
1227
+ ],
1228
+ stateMutability: 'view',
1229
+ type: 'function',
1230
+ },
1231
+ {
1232
+ inputs: [],
1233
+ name: 'numAgents',
1234
+ outputs: [
1235
+ {
1236
+ name: '',
1237
+ type: 'uint256',
1238
+ },
1239
+ ],
1240
+ stateMutability: 'view',
1241
+ type: 'function',
1242
+ },
1243
+ {
1244
+ inputs: [
1245
+ {
1246
+ name: 'arg0',
1247
+ type: 'address',
1248
+ },
1249
+ ],
1250
+ name: 'agentBlacklist',
1251
+ outputs: [
1252
+ {
1253
+ name: '',
1254
+ type: 'bool',
1255
+ },
1256
+ ],
1257
+ stateMutability: 'view',
1258
+ type: 'function',
1259
+ },
1260
+ {
1261
+ inputs: [],
1262
+ name: 'numUserWalletsAllowed',
1263
+ outputs: [
1264
+ {
1265
+ name: '',
1266
+ type: 'uint256',
1267
+ },
1268
+ ],
1269
+ stateMutability: 'view',
1270
+ type: 'function',
1271
+ },
1272
+ {
1273
+ inputs: [],
1274
+ name: 'numAgentsAllowed',
1275
+ outputs: [
1276
+ {
1277
+ name: '',
1278
+ type: 'uint256',
1279
+ },
1280
+ ],
1281
+ stateMutability: 'view',
1282
+ type: 'function',
1283
+ },
1284
+ {
1285
+ inputs: [
1286
+ {
1287
+ name: 'arg0',
1288
+ type: 'address',
1289
+ },
1290
+ ],
1291
+ name: 'whitelist',
1292
+ outputs: [
1293
+ {
1294
+ name: '',
1295
+ type: 'bool',
1296
+ },
1297
+ ],
1298
+ stateMutability: 'view',
1299
+ type: 'function',
1300
+ },
1301
+ {
1302
+ inputs: [],
1303
+ name: 'shouldEnforceWhitelist',
1304
+ outputs: [
1305
+ {
1306
+ name: '',
1307
+ type: 'bool',
1308
+ },
1309
+ ],
1310
+ stateMutability: 'view',
1311
+ type: 'function',
1312
+ },
1313
+ {
1314
+ inputs: [
1315
+ {
1316
+ name: 'arg0',
1317
+ type: 'address',
1318
+ },
1319
+ ],
1320
+ name: 'canCriticalCancel',
1321
+ outputs: [
1322
+ {
1323
+ name: '',
1324
+ type: 'bool',
1325
+ },
1326
+ ],
1327
+ stateMutability: 'view',
1328
+ type: 'function',
1329
+ },
1330
+ {
1331
+ inputs: [],
1332
+ name: 'isActivated',
1333
+ outputs: [
1334
+ {
1335
+ name: '',
1336
+ type: 'bool',
1337
+ },
1338
+ ],
1339
+ stateMutability: 'view',
1340
+ type: 'function',
1341
+ },
1342
+ {
1343
+ inputs: [],
1344
+ name: 'ADDY_REGISTRY',
1345
+ outputs: [
1346
+ {
1347
+ name: '',
1348
+ type: 'address',
1349
+ },
1350
+ ],
1351
+ stateMutability: 'view',
1352
+ type: 'function',
1353
+ },
1354
+ {
1355
+ inputs: [],
1356
+ name: 'WETH_ADDR',
1357
+ outputs: [
1358
+ {
1359
+ name: '',
1360
+ type: 'address',
1361
+ },
1362
+ ],
1363
+ stateMutability: 'view',
1364
+ type: 'function',
1365
+ },
1366
+ {
1367
+ inputs: [],
1368
+ name: 'MIN_OWNER_CHANGE_DELAY',
1369
+ outputs: [
1370
+ {
1371
+ name: '',
1372
+ type: 'uint256',
1373
+ },
1374
+ ],
1375
+ stateMutability: 'view',
1376
+ type: 'function',
1377
+ },
1378
+ {
1379
+ inputs: [],
1380
+ name: 'MAX_OWNER_CHANGE_DELAY',
1381
+ outputs: [
1382
+ {
1383
+ name: '',
1384
+ type: 'uint256',
1385
+ },
1386
+ ],
1387
+ stateMutability: 'view',
1388
+ type: 'function',
1389
+ },
1390
+ {
1391
+ inputs: [
1392
+ {
1393
+ name: '_addyRegistry',
1394
+ type: 'address',
1395
+ },
1396
+ {
1397
+ name: '_wethAddr',
1398
+ type: 'address',
1399
+ },
1400
+ {
1401
+ name: '_userWalletTemplate',
1402
+ type: 'address',
1403
+ },
1404
+ {
1405
+ name: '_userConfigTemplate',
1406
+ type: 'address',
1407
+ },
1408
+ {
1409
+ name: '_agentTemplate',
1410
+ type: 'address',
1411
+ },
1412
+ {
1413
+ name: '_minOwnerChangeDelay',
1414
+ type: 'uint256',
1415
+ },
1416
+ {
1417
+ name: '_maxOwnerChangeDelay',
1418
+ type: 'uint256',
1419
+ },
1420
+ ],
1421
+ outputs: [],
1422
+ stateMutability: 'nonpayable',
1423
+ type: 'constructor',
1424
+ },
1425
+ ];
1426
+ export const deployAddress = '0x484637E77C66eaE88C8Edb64E09c5057F52866BE';
1427
+ function getRequest(method, args, contractAddressOrOptions) {
1428
+ const address = typeof contractAddressOrOptions === 'string' ? contractAddressOrOptions : contractAddressOrOptions?.contractAddress;
1429
+ const defaultValue = typeof contractAddressOrOptions === 'string' ? undefined : contractAddressOrOptions?.defaultValue;
1430
+ const call = {
1431
+ contractName: 'AgentFactory_v2',
1432
+ method,
1433
+ args,
1434
+ address,
1435
+ deployAddress,
1436
+ defaultValue,
1437
+ getAbi: () => abi,
1438
+ with: (options) => {
1439
+ call.address = options.contractAddress;
1440
+ call.defaultValue = options.defaultValue;
1441
+ return call;
1442
+ },
1443
+ defaultTo: (defaultValue) => {
1444
+ call.defaultValue = defaultValue;
1445
+ return call;
1446
+ },
1447
+ at: (address) => {
1448
+ call.address = address;
1449
+ return call;
1450
+ },
1451
+ };
1452
+ return call;
1453
+ }
1454
+ export const call = {
1455
+ canGovern: (...args) => getRequest('canGovern', args),
1456
+ hasPendingGovChange: (...args) => getRequest('hasPendingGovChange', args),
1457
+ governance: (...args) => getRequest('governance', args),
1458
+ pendingGov: (...args) => getRequest('pendingGov', args),
1459
+ govChangeDelay: (...args) => getRequest('govChangeDelay', args),
1460
+ MIN_GOV_CHANGE_DELAY: (...args) => getRequest('MIN_GOV_CHANGE_DELAY', args),
1461
+ MAX_GOV_CHANGE_DELAY: (...args) => getRequest('MAX_GOV_CHANGE_DELAY', args),
1462
+ currentUserWalletTemplate: (...args) => getRequest('currentUserWalletTemplate', args),
1463
+ currentUserWalletConfigTemplate: (...args) => getRequest('currentUserWalletConfigTemplate', args),
1464
+ currentAgentTemplate: (...args) => getRequest('currentAgentTemplate', args),
1465
+ isValidUserWalletSetup: (...args) => getRequest('isValidUserWalletSetup', args),
1466
+ isValidUserWalletTemplate: (...args) => getRequest('isValidUserWalletTemplate', args),
1467
+ isValidUserWalletConfigTemplate: (...args) => getRequest('isValidUserWalletConfigTemplate', args),
1468
+ isValidAgentSetup: (...args) => getRequest('isValidAgentSetup', args),
1469
+ isValidAgentTemplate: (...args) => getRequest('isValidAgentTemplate', args),
1470
+ isValidTrialFundsData: (...args) => getRequest('isValidTrialFundsData', args),
1471
+ canCancelCriticalAction: (...args) => getRequest('canCancelCriticalAction', args),
1472
+ trialFundsData: (...args) => getRequest('trialFundsData', args),
1473
+ recoveryCaller: (...args) => getRequest('recoveryCaller', args),
1474
+ userWalletTemplate: (...args) => getRequest('userWalletTemplate', args),
1475
+ userWalletConfig: (...args) => getRequest('userWalletConfig', args),
1476
+ isUserWallet: (...args) => getRequest('isUserWallet', args),
1477
+ numUserWallets: (...args) => getRequest('numUserWallets', args),
1478
+ agentTemplateInfo: (...args) => getRequest('agentTemplateInfo', args),
1479
+ isAgent: (...args) => getRequest('isAgent', args),
1480
+ numAgents: (...args) => getRequest('numAgents', args),
1481
+ agentBlacklist: (...args) => getRequest('agentBlacklist', args),
1482
+ numUserWalletsAllowed: (...args) => getRequest('numUserWalletsAllowed', args),
1483
+ numAgentsAllowed: (...args) => getRequest('numAgentsAllowed', args),
1484
+ whitelist: (...args) => getRequest('whitelist', args),
1485
+ shouldEnforceWhitelist: (...args) => getRequest('shouldEnforceWhitelist', args),
1486
+ canCriticalCancel: (...args) => getRequest('canCriticalCancel', args),
1487
+ isActivated: (...args) => getRequest('isActivated', args),
1488
+ ADDY_REGISTRY: (...args) => getRequest('ADDY_REGISTRY', args),
1489
+ WETH_ADDR: (...args) => getRequest('WETH_ADDR', args),
1490
+ MIN_OWNER_CHANGE_DELAY: (...args) => getRequest('MIN_OWNER_CHANGE_DELAY', args),
1491
+ MAX_OWNER_CHANGE_DELAY: (...args) => getRequest('MAX_OWNER_CHANGE_DELAY', args),
1492
+ };
1493
+ function getMutation(functionName) {
1494
+ return {
1495
+ contractName: 'AgentFactory_v2',
1496
+ functionName,
1497
+ deployAddress,
1498
+ argsType: undefined,
1499
+ getAbi: () => abi,
1500
+ };
1501
+ }
1502
+ export const mutation = {
1503
+ changeGovernance: getMutation('changeGovernance'),
1504
+ confirmGovernanceChange: getMutation('confirmGovernanceChange'),
1505
+ cancelGovernanceChange: getMutation('cancelGovernanceChange'),
1506
+ setGovernanceChangeDelay: getMutation('setGovernanceChangeDelay'),
1507
+ createUserWallet: getMutation('createUserWallet'),
1508
+ setUserWalletTemplate: getMutation('setUserWalletTemplate'),
1509
+ setUserWalletConfigTemplate: getMutation('setUserWalletConfigTemplate'),
1510
+ createAgent: getMutation('createAgent'),
1511
+ setAgentTemplate: getMutation('setAgentTemplate'),
1512
+ setTrialFundsData: getMutation('setTrialFundsData'),
1513
+ recoverTrialFunds: getMutation('recoverTrialFunds'),
1514
+ recoverTrialFundsMany: getMutation('recoverTrialFundsMany'),
1515
+ setRecoveryCaller: getMutation('setRecoveryCaller'),
1516
+ setWhitelist: getMutation('setWhitelist'),
1517
+ setShouldEnforceWhitelist: getMutation('setShouldEnforceWhitelist'),
1518
+ setNumUserWalletsAllowed: getMutation('setNumUserWalletsAllowed'),
1519
+ setNumAgentsAllowed: getMutation('setNumAgentsAllowed'),
1520
+ setAgentBlacklist: getMutation('setAgentBlacklist'),
1521
+ recoverFunds: getMutation('recoverFunds'),
1522
+ setCanCriticalCancel: getMutation('setCanCriticalCancel'),
1523
+ activate: getMutation('activate'),
1524
+ };
1525
+ export function toSdk(publicClient, walletClient) {
1526
+ return {
1527
+ // Queries
1528
+ canGovern: (...args) => singleQuery(publicClient, call.canGovern(...args)),
1529
+ hasPendingGovChange: (...args) => singleQuery(publicClient, call.hasPendingGovChange(...args)),
1530
+ governance: (...args) => singleQuery(publicClient, call.governance(...args)),
1531
+ pendingGov: (...args) => singleQuery(publicClient, call.pendingGov(...args)),
1532
+ govChangeDelay: (...args) => singleQuery(publicClient, call.govChangeDelay(...args)),
1533
+ MIN_GOV_CHANGE_DELAY: (...args) => singleQuery(publicClient, call.MIN_GOV_CHANGE_DELAY(...args)),
1534
+ MAX_GOV_CHANGE_DELAY: (...args) => singleQuery(publicClient, call.MAX_GOV_CHANGE_DELAY(...args)),
1535
+ currentUserWalletTemplate: (...args) => singleQuery(publicClient, call.currentUserWalletTemplate(...args)),
1536
+ currentUserWalletConfigTemplate: (...args) => singleQuery(publicClient, call.currentUserWalletConfigTemplate(...args)),
1537
+ currentAgentTemplate: (...args) => singleQuery(publicClient, call.currentAgentTemplate(...args)),
1538
+ isValidUserWalletSetup: (...args) => singleQuery(publicClient, call.isValidUserWalletSetup(...args)),
1539
+ isValidUserWalletTemplate: (...args) => singleQuery(publicClient, call.isValidUserWalletTemplate(...args)),
1540
+ isValidUserWalletConfigTemplate: (...args) => singleQuery(publicClient, call.isValidUserWalletConfigTemplate(...args)),
1541
+ isValidAgentSetup: (...args) => singleQuery(publicClient, call.isValidAgentSetup(...args)),
1542
+ isValidAgentTemplate: (...args) => singleQuery(publicClient, call.isValidAgentTemplate(...args)),
1543
+ isValidTrialFundsData: (...args) => singleQuery(publicClient, call.isValidTrialFundsData(...args)),
1544
+ canCancelCriticalAction: (...args) => singleQuery(publicClient, call.canCancelCriticalAction(...args)),
1545
+ trialFundsData: (...args) => singleQuery(publicClient, call.trialFundsData(...args)),
1546
+ recoveryCaller: (...args) => singleQuery(publicClient, call.recoveryCaller(...args)),
1547
+ userWalletTemplate: (...args) => singleQuery(publicClient, call.userWalletTemplate(...args)),
1548
+ userWalletConfig: (...args) => singleQuery(publicClient, call.userWalletConfig(...args)),
1549
+ isUserWallet: (...args) => singleQuery(publicClient, call.isUserWallet(...args)),
1550
+ numUserWallets: (...args) => singleQuery(publicClient, call.numUserWallets(...args)),
1551
+ agentTemplateInfo: (...args) => singleQuery(publicClient, call.agentTemplateInfo(...args)),
1552
+ isAgent: (...args) => singleQuery(publicClient, call.isAgent(...args)),
1553
+ numAgents: (...args) => singleQuery(publicClient, call.numAgents(...args)),
1554
+ agentBlacklist: (...args) => singleQuery(publicClient, call.agentBlacklist(...args)),
1555
+ numUserWalletsAllowed: (...args) => singleQuery(publicClient, call.numUserWalletsAllowed(...args)),
1556
+ numAgentsAllowed: (...args) => singleQuery(publicClient, call.numAgentsAllowed(...args)),
1557
+ whitelist: (...args) => singleQuery(publicClient, call.whitelist(...args)),
1558
+ shouldEnforceWhitelist: (...args) => singleQuery(publicClient, call.shouldEnforceWhitelist(...args)),
1559
+ canCriticalCancel: (...args) => singleQuery(publicClient, call.canCriticalCancel(...args)),
1560
+ isActivated: (...args) => singleQuery(publicClient, call.isActivated(...args)),
1561
+ ADDY_REGISTRY: (...args) => singleQuery(publicClient, call.ADDY_REGISTRY(...args)),
1562
+ WETH_ADDR: (...args) => singleQuery(publicClient, call.WETH_ADDR(...args)),
1563
+ MIN_OWNER_CHANGE_DELAY: (...args) => singleQuery(publicClient, call.MIN_OWNER_CHANGE_DELAY(...args)),
1564
+ MAX_OWNER_CHANGE_DELAY: (...args) => singleQuery(publicClient, call.MAX_OWNER_CHANGE_DELAY(...args)),
1565
+ // Mutations
1566
+ changeGovernance: (...args) => mutate(walletClient, mutation.changeGovernance)(...args),
1567
+ confirmGovernanceChange: (...args) => mutate(walletClient, mutation.confirmGovernanceChange)(...args),
1568
+ cancelGovernanceChange: (...args) => mutate(walletClient, mutation.cancelGovernanceChange)(...args),
1569
+ setGovernanceChangeDelay: (...args) => mutate(walletClient, mutation.setGovernanceChangeDelay)(...args),
1570
+ createUserWallet: (...args) => mutate(walletClient, mutation.createUserWallet)(...args),
1571
+ setUserWalletTemplate: (...args) => mutate(walletClient, mutation.setUserWalletTemplate)(...args),
1572
+ setUserWalletConfigTemplate: (...args) => mutate(walletClient, mutation.setUserWalletConfigTemplate)(...args),
1573
+ createAgent: (...args) => mutate(walletClient, mutation.createAgent)(...args),
1574
+ setAgentTemplate: (...args) => mutate(walletClient, mutation.setAgentTemplate)(...args),
1575
+ setTrialFundsData: (...args) => mutate(walletClient, mutation.setTrialFundsData)(...args),
1576
+ recoverTrialFunds: (...args) => mutate(walletClient, mutation.recoverTrialFunds)(...args),
1577
+ recoverTrialFundsMany: (...args) => mutate(walletClient, mutation.recoverTrialFundsMany)(...args),
1578
+ setRecoveryCaller: (...args) => mutate(walletClient, mutation.setRecoveryCaller)(...args),
1579
+ setWhitelist: (...args) => mutate(walletClient, mutation.setWhitelist)(...args),
1580
+ setShouldEnforceWhitelist: (...args) => mutate(walletClient, mutation.setShouldEnforceWhitelist)(...args),
1581
+ setNumUserWalletsAllowed: (...args) => mutate(walletClient, mutation.setNumUserWalletsAllowed)(...args),
1582
+ setNumAgentsAllowed: (...args) => mutate(walletClient, mutation.setNumAgentsAllowed)(...args),
1583
+ setAgentBlacklist: (...args) => mutate(walletClient, mutation.setAgentBlacklist)(...args),
1584
+ recoverFunds: (...args) => mutate(walletClient, mutation.recoverFunds)(...args),
1585
+ setCanCriticalCancel: (...args) => mutate(walletClient, mutation.setCanCriticalCancel)(...args),
1586
+ activate: (...args) => mutate(walletClient, mutation.activate)(...args),
1587
+ };
1588
+ }