@underscore-finance/sdk 1.0.2 → 1.0.3

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,4874 @@
1
+ /* Autogenerated file. Do not edit manually. */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /* @ts-nocheck */
5
+ import { singleQuery } from '@dappql/async';
6
+ export const abi = [
7
+ {
8
+ stateMutability: 'view',
9
+ type: 'function',
10
+ name: 'getTransferFundsHash',
11
+ inputs: [
12
+ {
13
+ name: '_agentWrapper',
14
+ type: 'address',
15
+ },
16
+ {
17
+ name: '_userWallet',
18
+ type: 'address',
19
+ },
20
+ {
21
+ name: '_recipient',
22
+ type: 'address',
23
+ },
24
+ ],
25
+ outputs: [
26
+ {
27
+ name: '',
28
+ type: 'bytes32',
29
+ },
30
+ ],
31
+ },
32
+ {
33
+ stateMutability: 'view',
34
+ type: 'function',
35
+ name: 'getTransferFundsHash',
36
+ inputs: [
37
+ {
38
+ name: '_agentWrapper',
39
+ type: 'address',
40
+ },
41
+ {
42
+ name: '_userWallet',
43
+ type: 'address',
44
+ },
45
+ {
46
+ name: '_recipient',
47
+ type: 'address',
48
+ },
49
+ {
50
+ name: '_asset',
51
+ type: 'address',
52
+ },
53
+ ],
54
+ outputs: [
55
+ {
56
+ name: '',
57
+ type: 'bytes32',
58
+ },
59
+ ],
60
+ },
61
+ {
62
+ stateMutability: 'view',
63
+ type: 'function',
64
+ name: 'getTransferFundsHash',
65
+ inputs: [
66
+ {
67
+ name: '_agentWrapper',
68
+ type: 'address',
69
+ },
70
+ {
71
+ name: '_userWallet',
72
+ type: 'address',
73
+ },
74
+ {
75
+ name: '_recipient',
76
+ type: 'address',
77
+ },
78
+ {
79
+ name: '_asset',
80
+ type: 'address',
81
+ },
82
+ {
83
+ name: '_amount',
84
+ type: 'uint256',
85
+ },
86
+ ],
87
+ outputs: [
88
+ {
89
+ name: '',
90
+ type: 'bytes32',
91
+ },
92
+ ],
93
+ },
94
+ {
95
+ stateMutability: 'view',
96
+ type: 'function',
97
+ name: 'getTransferFundsHash',
98
+ inputs: [
99
+ {
100
+ name: '_agentWrapper',
101
+ type: 'address',
102
+ },
103
+ {
104
+ name: '_userWallet',
105
+ type: 'address',
106
+ },
107
+ {
108
+ name: '_recipient',
109
+ type: 'address',
110
+ },
111
+ {
112
+ name: '_asset',
113
+ type: 'address',
114
+ },
115
+ {
116
+ name: '_amount',
117
+ type: 'uint256',
118
+ },
119
+ {
120
+ name: '_nonce',
121
+ type: 'uint256',
122
+ },
123
+ ],
124
+ outputs: [
125
+ {
126
+ name: '',
127
+ type: 'bytes32',
128
+ },
129
+ ],
130
+ },
131
+ {
132
+ stateMutability: 'view',
133
+ type: 'function',
134
+ name: 'getTransferFundsHash',
135
+ inputs: [
136
+ {
137
+ name: '_agentWrapper',
138
+ type: 'address',
139
+ },
140
+ {
141
+ name: '_userWallet',
142
+ type: 'address',
143
+ },
144
+ {
145
+ name: '_recipient',
146
+ type: 'address',
147
+ },
148
+ {
149
+ name: '_asset',
150
+ type: 'address',
151
+ },
152
+ {
153
+ name: '_amount',
154
+ type: 'uint256',
155
+ },
156
+ {
157
+ name: '_nonce',
158
+ type: 'uint256',
159
+ },
160
+ {
161
+ name: '_expiration',
162
+ type: 'uint256',
163
+ },
164
+ ],
165
+ outputs: [
166
+ {
167
+ name: '',
168
+ type: 'bytes32',
169
+ },
170
+ ],
171
+ },
172
+ {
173
+ stateMutability: 'view',
174
+ type: 'function',
175
+ name: 'getDepositForYieldHash',
176
+ inputs: [
177
+ {
178
+ name: '_agentWrapper',
179
+ type: 'address',
180
+ },
181
+ {
182
+ name: '_userWallet',
183
+ type: 'address',
184
+ },
185
+ {
186
+ name: '_legoId',
187
+ type: 'uint256',
188
+ },
189
+ {
190
+ name: '_asset',
191
+ type: 'address',
192
+ },
193
+ ],
194
+ outputs: [
195
+ {
196
+ name: '',
197
+ type: 'bytes32',
198
+ },
199
+ ],
200
+ },
201
+ {
202
+ stateMutability: 'view',
203
+ type: 'function',
204
+ name: 'getDepositForYieldHash',
205
+ inputs: [
206
+ {
207
+ name: '_agentWrapper',
208
+ type: 'address',
209
+ },
210
+ {
211
+ name: '_userWallet',
212
+ type: 'address',
213
+ },
214
+ {
215
+ name: '_legoId',
216
+ type: 'uint256',
217
+ },
218
+ {
219
+ name: '_asset',
220
+ type: 'address',
221
+ },
222
+ {
223
+ name: '_vaultAddr',
224
+ type: 'address',
225
+ },
226
+ ],
227
+ outputs: [
228
+ {
229
+ name: '',
230
+ type: 'bytes32',
231
+ },
232
+ ],
233
+ },
234
+ {
235
+ stateMutability: 'view',
236
+ type: 'function',
237
+ name: 'getDepositForYieldHash',
238
+ inputs: [
239
+ {
240
+ name: '_agentWrapper',
241
+ type: 'address',
242
+ },
243
+ {
244
+ name: '_userWallet',
245
+ type: 'address',
246
+ },
247
+ {
248
+ name: '_legoId',
249
+ type: 'uint256',
250
+ },
251
+ {
252
+ name: '_asset',
253
+ type: 'address',
254
+ },
255
+ {
256
+ name: '_vaultAddr',
257
+ type: 'address',
258
+ },
259
+ {
260
+ name: '_amount',
261
+ type: 'uint256',
262
+ },
263
+ ],
264
+ outputs: [
265
+ {
266
+ name: '',
267
+ type: 'bytes32',
268
+ },
269
+ ],
270
+ },
271
+ {
272
+ stateMutability: 'view',
273
+ type: 'function',
274
+ name: 'getDepositForYieldHash',
275
+ inputs: [
276
+ {
277
+ name: '_agentWrapper',
278
+ type: 'address',
279
+ },
280
+ {
281
+ name: '_userWallet',
282
+ type: 'address',
283
+ },
284
+ {
285
+ name: '_legoId',
286
+ type: 'uint256',
287
+ },
288
+ {
289
+ name: '_asset',
290
+ type: 'address',
291
+ },
292
+ {
293
+ name: '_vaultAddr',
294
+ type: 'address',
295
+ },
296
+ {
297
+ name: '_amount',
298
+ type: 'uint256',
299
+ },
300
+ {
301
+ name: '_extraData',
302
+ type: 'bytes32',
303
+ },
304
+ ],
305
+ outputs: [
306
+ {
307
+ name: '',
308
+ type: 'bytes32',
309
+ },
310
+ ],
311
+ },
312
+ {
313
+ stateMutability: 'view',
314
+ type: 'function',
315
+ name: 'getDepositForYieldHash',
316
+ inputs: [
317
+ {
318
+ name: '_agentWrapper',
319
+ type: 'address',
320
+ },
321
+ {
322
+ name: '_userWallet',
323
+ type: 'address',
324
+ },
325
+ {
326
+ name: '_legoId',
327
+ type: 'uint256',
328
+ },
329
+ {
330
+ name: '_asset',
331
+ type: 'address',
332
+ },
333
+ {
334
+ name: '_vaultAddr',
335
+ type: 'address',
336
+ },
337
+ {
338
+ name: '_amount',
339
+ type: 'uint256',
340
+ },
341
+ {
342
+ name: '_extraData',
343
+ type: 'bytes32',
344
+ },
345
+ {
346
+ name: '_nonce',
347
+ type: 'uint256',
348
+ },
349
+ ],
350
+ outputs: [
351
+ {
352
+ name: '',
353
+ type: 'bytes32',
354
+ },
355
+ ],
356
+ },
357
+ {
358
+ stateMutability: 'view',
359
+ type: 'function',
360
+ name: 'getDepositForYieldHash',
361
+ inputs: [
362
+ {
363
+ name: '_agentWrapper',
364
+ type: 'address',
365
+ },
366
+ {
367
+ name: '_userWallet',
368
+ type: 'address',
369
+ },
370
+ {
371
+ name: '_legoId',
372
+ type: 'uint256',
373
+ },
374
+ {
375
+ name: '_asset',
376
+ type: 'address',
377
+ },
378
+ {
379
+ name: '_vaultAddr',
380
+ type: 'address',
381
+ },
382
+ {
383
+ name: '_amount',
384
+ type: 'uint256',
385
+ },
386
+ {
387
+ name: '_extraData',
388
+ type: 'bytes32',
389
+ },
390
+ {
391
+ name: '_nonce',
392
+ type: 'uint256',
393
+ },
394
+ {
395
+ name: '_expiration',
396
+ type: 'uint256',
397
+ },
398
+ ],
399
+ outputs: [
400
+ {
401
+ name: '',
402
+ type: 'bytes32',
403
+ },
404
+ ],
405
+ },
406
+ {
407
+ stateMutability: 'view',
408
+ type: 'function',
409
+ name: 'getWithdrawFromYieldHash',
410
+ inputs: [
411
+ {
412
+ name: '_agentWrapper',
413
+ type: 'address',
414
+ },
415
+ {
416
+ name: '_userWallet',
417
+ type: 'address',
418
+ },
419
+ {
420
+ name: '_legoId',
421
+ type: 'uint256',
422
+ },
423
+ {
424
+ name: '_vaultToken',
425
+ type: 'address',
426
+ },
427
+ ],
428
+ outputs: [
429
+ {
430
+ name: '',
431
+ type: 'bytes32',
432
+ },
433
+ ],
434
+ },
435
+ {
436
+ stateMutability: 'view',
437
+ type: 'function',
438
+ name: 'getWithdrawFromYieldHash',
439
+ inputs: [
440
+ {
441
+ name: '_agentWrapper',
442
+ type: 'address',
443
+ },
444
+ {
445
+ name: '_userWallet',
446
+ type: 'address',
447
+ },
448
+ {
449
+ name: '_legoId',
450
+ type: 'uint256',
451
+ },
452
+ {
453
+ name: '_vaultToken',
454
+ type: 'address',
455
+ },
456
+ {
457
+ name: '_amount',
458
+ type: 'uint256',
459
+ },
460
+ ],
461
+ outputs: [
462
+ {
463
+ name: '',
464
+ type: 'bytes32',
465
+ },
466
+ ],
467
+ },
468
+ {
469
+ stateMutability: 'view',
470
+ type: 'function',
471
+ name: 'getWithdrawFromYieldHash',
472
+ inputs: [
473
+ {
474
+ name: '_agentWrapper',
475
+ type: 'address',
476
+ },
477
+ {
478
+ name: '_userWallet',
479
+ type: 'address',
480
+ },
481
+ {
482
+ name: '_legoId',
483
+ type: 'uint256',
484
+ },
485
+ {
486
+ name: '_vaultToken',
487
+ type: 'address',
488
+ },
489
+ {
490
+ name: '_amount',
491
+ type: 'uint256',
492
+ },
493
+ {
494
+ name: '_extraData',
495
+ type: 'bytes32',
496
+ },
497
+ ],
498
+ outputs: [
499
+ {
500
+ name: '',
501
+ type: 'bytes32',
502
+ },
503
+ ],
504
+ },
505
+ {
506
+ stateMutability: 'view',
507
+ type: 'function',
508
+ name: 'getWithdrawFromYieldHash',
509
+ inputs: [
510
+ {
511
+ name: '_agentWrapper',
512
+ type: 'address',
513
+ },
514
+ {
515
+ name: '_userWallet',
516
+ type: 'address',
517
+ },
518
+ {
519
+ name: '_legoId',
520
+ type: 'uint256',
521
+ },
522
+ {
523
+ name: '_vaultToken',
524
+ type: 'address',
525
+ },
526
+ {
527
+ name: '_amount',
528
+ type: 'uint256',
529
+ },
530
+ {
531
+ name: '_extraData',
532
+ type: 'bytes32',
533
+ },
534
+ {
535
+ name: '_nonce',
536
+ type: 'uint256',
537
+ },
538
+ ],
539
+ outputs: [
540
+ {
541
+ name: '',
542
+ type: 'bytes32',
543
+ },
544
+ ],
545
+ },
546
+ {
547
+ stateMutability: 'view',
548
+ type: 'function',
549
+ name: 'getWithdrawFromYieldHash',
550
+ inputs: [
551
+ {
552
+ name: '_agentWrapper',
553
+ type: 'address',
554
+ },
555
+ {
556
+ name: '_userWallet',
557
+ type: 'address',
558
+ },
559
+ {
560
+ name: '_legoId',
561
+ type: 'uint256',
562
+ },
563
+ {
564
+ name: '_vaultToken',
565
+ type: 'address',
566
+ },
567
+ {
568
+ name: '_amount',
569
+ type: 'uint256',
570
+ },
571
+ {
572
+ name: '_extraData',
573
+ type: 'bytes32',
574
+ },
575
+ {
576
+ name: '_nonce',
577
+ type: 'uint256',
578
+ },
579
+ {
580
+ name: '_expiration',
581
+ type: 'uint256',
582
+ },
583
+ ],
584
+ outputs: [
585
+ {
586
+ name: '',
587
+ type: 'bytes32',
588
+ },
589
+ ],
590
+ },
591
+ {
592
+ stateMutability: 'view',
593
+ type: 'function',
594
+ name: 'getRebalanceYieldPositionHash',
595
+ inputs: [
596
+ {
597
+ name: '_agentWrapper',
598
+ type: 'address',
599
+ },
600
+ {
601
+ name: '_userWallet',
602
+ type: 'address',
603
+ },
604
+ {
605
+ name: '_fromLegoId',
606
+ type: 'uint256',
607
+ },
608
+ {
609
+ name: '_fromVaultToken',
610
+ type: 'address',
611
+ },
612
+ {
613
+ name: '_toLegoId',
614
+ type: 'uint256',
615
+ },
616
+ ],
617
+ outputs: [
618
+ {
619
+ name: '',
620
+ type: 'bytes32',
621
+ },
622
+ ],
623
+ },
624
+ {
625
+ stateMutability: 'view',
626
+ type: 'function',
627
+ name: 'getRebalanceYieldPositionHash',
628
+ inputs: [
629
+ {
630
+ name: '_agentWrapper',
631
+ type: 'address',
632
+ },
633
+ {
634
+ name: '_userWallet',
635
+ type: 'address',
636
+ },
637
+ {
638
+ name: '_fromLegoId',
639
+ type: 'uint256',
640
+ },
641
+ {
642
+ name: '_fromVaultToken',
643
+ type: 'address',
644
+ },
645
+ {
646
+ name: '_toLegoId',
647
+ type: 'uint256',
648
+ },
649
+ {
650
+ name: '_toVaultAddr',
651
+ type: 'address',
652
+ },
653
+ ],
654
+ outputs: [
655
+ {
656
+ name: '',
657
+ type: 'bytes32',
658
+ },
659
+ ],
660
+ },
661
+ {
662
+ stateMutability: 'view',
663
+ type: 'function',
664
+ name: 'getRebalanceYieldPositionHash',
665
+ inputs: [
666
+ {
667
+ name: '_agentWrapper',
668
+ type: 'address',
669
+ },
670
+ {
671
+ name: '_userWallet',
672
+ type: 'address',
673
+ },
674
+ {
675
+ name: '_fromLegoId',
676
+ type: 'uint256',
677
+ },
678
+ {
679
+ name: '_fromVaultToken',
680
+ type: 'address',
681
+ },
682
+ {
683
+ name: '_toLegoId',
684
+ type: 'uint256',
685
+ },
686
+ {
687
+ name: '_toVaultAddr',
688
+ type: 'address',
689
+ },
690
+ {
691
+ name: '_fromVaultAmount',
692
+ type: 'uint256',
693
+ },
694
+ ],
695
+ outputs: [
696
+ {
697
+ name: '',
698
+ type: 'bytes32',
699
+ },
700
+ ],
701
+ },
702
+ {
703
+ stateMutability: 'view',
704
+ type: 'function',
705
+ name: 'getRebalanceYieldPositionHash',
706
+ inputs: [
707
+ {
708
+ name: '_agentWrapper',
709
+ type: 'address',
710
+ },
711
+ {
712
+ name: '_userWallet',
713
+ type: 'address',
714
+ },
715
+ {
716
+ name: '_fromLegoId',
717
+ type: 'uint256',
718
+ },
719
+ {
720
+ name: '_fromVaultToken',
721
+ type: 'address',
722
+ },
723
+ {
724
+ name: '_toLegoId',
725
+ type: 'uint256',
726
+ },
727
+ {
728
+ name: '_toVaultAddr',
729
+ type: 'address',
730
+ },
731
+ {
732
+ name: '_fromVaultAmount',
733
+ type: 'uint256',
734
+ },
735
+ {
736
+ name: '_extraData',
737
+ type: 'bytes32',
738
+ },
739
+ ],
740
+ outputs: [
741
+ {
742
+ name: '',
743
+ type: 'bytes32',
744
+ },
745
+ ],
746
+ },
747
+ {
748
+ stateMutability: 'view',
749
+ type: 'function',
750
+ name: 'getRebalanceYieldPositionHash',
751
+ inputs: [
752
+ {
753
+ name: '_agentWrapper',
754
+ type: 'address',
755
+ },
756
+ {
757
+ name: '_userWallet',
758
+ type: 'address',
759
+ },
760
+ {
761
+ name: '_fromLegoId',
762
+ type: 'uint256',
763
+ },
764
+ {
765
+ name: '_fromVaultToken',
766
+ type: 'address',
767
+ },
768
+ {
769
+ name: '_toLegoId',
770
+ type: 'uint256',
771
+ },
772
+ {
773
+ name: '_toVaultAddr',
774
+ type: 'address',
775
+ },
776
+ {
777
+ name: '_fromVaultAmount',
778
+ type: 'uint256',
779
+ },
780
+ {
781
+ name: '_extraData',
782
+ type: 'bytes32',
783
+ },
784
+ {
785
+ name: '_nonce',
786
+ type: 'uint256',
787
+ },
788
+ ],
789
+ outputs: [
790
+ {
791
+ name: '',
792
+ type: 'bytes32',
793
+ },
794
+ ],
795
+ },
796
+ {
797
+ stateMutability: 'view',
798
+ type: 'function',
799
+ name: 'getRebalanceYieldPositionHash',
800
+ inputs: [
801
+ {
802
+ name: '_agentWrapper',
803
+ type: 'address',
804
+ },
805
+ {
806
+ name: '_userWallet',
807
+ type: 'address',
808
+ },
809
+ {
810
+ name: '_fromLegoId',
811
+ type: 'uint256',
812
+ },
813
+ {
814
+ name: '_fromVaultToken',
815
+ type: 'address',
816
+ },
817
+ {
818
+ name: '_toLegoId',
819
+ type: 'uint256',
820
+ },
821
+ {
822
+ name: '_toVaultAddr',
823
+ type: 'address',
824
+ },
825
+ {
826
+ name: '_fromVaultAmount',
827
+ type: 'uint256',
828
+ },
829
+ {
830
+ name: '_extraData',
831
+ type: 'bytes32',
832
+ },
833
+ {
834
+ name: '_nonce',
835
+ type: 'uint256',
836
+ },
837
+ {
838
+ name: '_expiration',
839
+ type: 'uint256',
840
+ },
841
+ ],
842
+ outputs: [
843
+ {
844
+ name: '',
845
+ type: 'bytes32',
846
+ },
847
+ ],
848
+ },
849
+ {
850
+ stateMutability: 'view',
851
+ type: 'function',
852
+ name: 'getSwapTokensHash',
853
+ inputs: [
854
+ {
855
+ name: '_agentWrapper',
856
+ type: 'address',
857
+ },
858
+ {
859
+ name: '_userWallet',
860
+ type: 'address',
861
+ },
862
+ {
863
+ name: '_swapInstructions',
864
+ type: 'tuple[]',
865
+ components: [
866
+ {
867
+ name: 'legoId',
868
+ type: 'uint256',
869
+ },
870
+ {
871
+ name: 'amountIn',
872
+ type: 'uint256',
873
+ },
874
+ {
875
+ name: 'minAmountOut',
876
+ type: 'uint256',
877
+ },
878
+ {
879
+ name: 'tokenPath',
880
+ type: 'address[]',
881
+ },
882
+ {
883
+ name: 'poolPath',
884
+ type: 'address[]',
885
+ },
886
+ ],
887
+ },
888
+ ],
889
+ outputs: [
890
+ {
891
+ name: '',
892
+ type: 'bytes32',
893
+ },
894
+ ],
895
+ },
896
+ {
897
+ stateMutability: 'view',
898
+ type: 'function',
899
+ name: 'getSwapTokensHash',
900
+ inputs: [
901
+ {
902
+ name: '_agentWrapper',
903
+ type: 'address',
904
+ },
905
+ {
906
+ name: '_userWallet',
907
+ type: 'address',
908
+ },
909
+ {
910
+ name: '_swapInstructions',
911
+ type: 'tuple[]',
912
+ components: [
913
+ {
914
+ name: 'legoId',
915
+ type: 'uint256',
916
+ },
917
+ {
918
+ name: 'amountIn',
919
+ type: 'uint256',
920
+ },
921
+ {
922
+ name: 'minAmountOut',
923
+ type: 'uint256',
924
+ },
925
+ {
926
+ name: 'tokenPath',
927
+ type: 'address[]',
928
+ },
929
+ {
930
+ name: 'poolPath',
931
+ type: 'address[]',
932
+ },
933
+ ],
934
+ },
935
+ {
936
+ name: '_nonce',
937
+ type: 'uint256',
938
+ },
939
+ ],
940
+ outputs: [
941
+ {
942
+ name: '',
943
+ type: 'bytes32',
944
+ },
945
+ ],
946
+ },
947
+ {
948
+ stateMutability: 'view',
949
+ type: 'function',
950
+ name: 'getSwapTokensHash',
951
+ inputs: [
952
+ {
953
+ name: '_agentWrapper',
954
+ type: 'address',
955
+ },
956
+ {
957
+ name: '_userWallet',
958
+ type: 'address',
959
+ },
960
+ {
961
+ name: '_swapInstructions',
962
+ type: 'tuple[]',
963
+ components: [
964
+ {
965
+ name: 'legoId',
966
+ type: 'uint256',
967
+ },
968
+ {
969
+ name: 'amountIn',
970
+ type: 'uint256',
971
+ },
972
+ {
973
+ name: 'minAmountOut',
974
+ type: 'uint256',
975
+ },
976
+ {
977
+ name: 'tokenPath',
978
+ type: 'address[]',
979
+ },
980
+ {
981
+ name: 'poolPath',
982
+ type: 'address[]',
983
+ },
984
+ ],
985
+ },
986
+ {
987
+ name: '_nonce',
988
+ type: 'uint256',
989
+ },
990
+ {
991
+ name: '_expiration',
992
+ type: 'uint256',
993
+ },
994
+ ],
995
+ outputs: [
996
+ {
997
+ name: '',
998
+ type: 'bytes32',
999
+ },
1000
+ ],
1001
+ },
1002
+ {
1003
+ stateMutability: 'view',
1004
+ type: 'function',
1005
+ name: 'getMintOrRedeemAssetHash',
1006
+ inputs: [
1007
+ {
1008
+ name: '_agentWrapper',
1009
+ type: 'address',
1010
+ },
1011
+ {
1012
+ name: '_userWallet',
1013
+ type: 'address',
1014
+ },
1015
+ {
1016
+ name: '_legoId',
1017
+ type: 'uint256',
1018
+ },
1019
+ {
1020
+ name: '_tokenIn',
1021
+ type: 'address',
1022
+ },
1023
+ {
1024
+ name: '_tokenOut',
1025
+ type: 'address',
1026
+ },
1027
+ ],
1028
+ outputs: [
1029
+ {
1030
+ name: '',
1031
+ type: 'bytes32',
1032
+ },
1033
+ ],
1034
+ },
1035
+ {
1036
+ stateMutability: 'view',
1037
+ type: 'function',
1038
+ name: 'getMintOrRedeemAssetHash',
1039
+ inputs: [
1040
+ {
1041
+ name: '_agentWrapper',
1042
+ type: 'address',
1043
+ },
1044
+ {
1045
+ name: '_userWallet',
1046
+ type: 'address',
1047
+ },
1048
+ {
1049
+ name: '_legoId',
1050
+ type: 'uint256',
1051
+ },
1052
+ {
1053
+ name: '_tokenIn',
1054
+ type: 'address',
1055
+ },
1056
+ {
1057
+ name: '_tokenOut',
1058
+ type: 'address',
1059
+ },
1060
+ {
1061
+ name: '_amountIn',
1062
+ type: 'uint256',
1063
+ },
1064
+ ],
1065
+ outputs: [
1066
+ {
1067
+ name: '',
1068
+ type: 'bytes32',
1069
+ },
1070
+ ],
1071
+ },
1072
+ {
1073
+ stateMutability: 'view',
1074
+ type: 'function',
1075
+ name: 'getMintOrRedeemAssetHash',
1076
+ inputs: [
1077
+ {
1078
+ name: '_agentWrapper',
1079
+ type: 'address',
1080
+ },
1081
+ {
1082
+ name: '_userWallet',
1083
+ type: 'address',
1084
+ },
1085
+ {
1086
+ name: '_legoId',
1087
+ type: 'uint256',
1088
+ },
1089
+ {
1090
+ name: '_tokenIn',
1091
+ type: 'address',
1092
+ },
1093
+ {
1094
+ name: '_tokenOut',
1095
+ type: 'address',
1096
+ },
1097
+ {
1098
+ name: '_amountIn',
1099
+ type: 'uint256',
1100
+ },
1101
+ {
1102
+ name: '_minAmountOut',
1103
+ type: 'uint256',
1104
+ },
1105
+ ],
1106
+ outputs: [
1107
+ {
1108
+ name: '',
1109
+ type: 'bytes32',
1110
+ },
1111
+ ],
1112
+ },
1113
+ {
1114
+ stateMutability: 'view',
1115
+ type: 'function',
1116
+ name: 'getMintOrRedeemAssetHash',
1117
+ inputs: [
1118
+ {
1119
+ name: '_agentWrapper',
1120
+ type: 'address',
1121
+ },
1122
+ {
1123
+ name: '_userWallet',
1124
+ type: 'address',
1125
+ },
1126
+ {
1127
+ name: '_legoId',
1128
+ type: 'uint256',
1129
+ },
1130
+ {
1131
+ name: '_tokenIn',
1132
+ type: 'address',
1133
+ },
1134
+ {
1135
+ name: '_tokenOut',
1136
+ type: 'address',
1137
+ },
1138
+ {
1139
+ name: '_amountIn',
1140
+ type: 'uint256',
1141
+ },
1142
+ {
1143
+ name: '_minAmountOut',
1144
+ type: 'uint256',
1145
+ },
1146
+ {
1147
+ name: '_extraData',
1148
+ type: 'bytes32',
1149
+ },
1150
+ ],
1151
+ outputs: [
1152
+ {
1153
+ name: '',
1154
+ type: 'bytes32',
1155
+ },
1156
+ ],
1157
+ },
1158
+ {
1159
+ stateMutability: 'view',
1160
+ type: 'function',
1161
+ name: 'getMintOrRedeemAssetHash',
1162
+ inputs: [
1163
+ {
1164
+ name: '_agentWrapper',
1165
+ type: 'address',
1166
+ },
1167
+ {
1168
+ name: '_userWallet',
1169
+ type: 'address',
1170
+ },
1171
+ {
1172
+ name: '_legoId',
1173
+ type: 'uint256',
1174
+ },
1175
+ {
1176
+ name: '_tokenIn',
1177
+ type: 'address',
1178
+ },
1179
+ {
1180
+ name: '_tokenOut',
1181
+ type: 'address',
1182
+ },
1183
+ {
1184
+ name: '_amountIn',
1185
+ type: 'uint256',
1186
+ },
1187
+ {
1188
+ name: '_minAmountOut',
1189
+ type: 'uint256',
1190
+ },
1191
+ {
1192
+ name: '_extraData',
1193
+ type: 'bytes32',
1194
+ },
1195
+ {
1196
+ name: '_nonce',
1197
+ type: 'uint256',
1198
+ },
1199
+ ],
1200
+ outputs: [
1201
+ {
1202
+ name: '',
1203
+ type: 'bytes32',
1204
+ },
1205
+ ],
1206
+ },
1207
+ {
1208
+ stateMutability: 'view',
1209
+ type: 'function',
1210
+ name: 'getMintOrRedeemAssetHash',
1211
+ inputs: [
1212
+ {
1213
+ name: '_agentWrapper',
1214
+ type: 'address',
1215
+ },
1216
+ {
1217
+ name: '_userWallet',
1218
+ type: 'address',
1219
+ },
1220
+ {
1221
+ name: '_legoId',
1222
+ type: 'uint256',
1223
+ },
1224
+ {
1225
+ name: '_tokenIn',
1226
+ type: 'address',
1227
+ },
1228
+ {
1229
+ name: '_tokenOut',
1230
+ type: 'address',
1231
+ },
1232
+ {
1233
+ name: '_amountIn',
1234
+ type: 'uint256',
1235
+ },
1236
+ {
1237
+ name: '_minAmountOut',
1238
+ type: 'uint256',
1239
+ },
1240
+ {
1241
+ name: '_extraData',
1242
+ type: 'bytes32',
1243
+ },
1244
+ {
1245
+ name: '_nonce',
1246
+ type: 'uint256',
1247
+ },
1248
+ {
1249
+ name: '_expiration',
1250
+ type: 'uint256',
1251
+ },
1252
+ ],
1253
+ outputs: [
1254
+ {
1255
+ name: '',
1256
+ type: 'bytes32',
1257
+ },
1258
+ ],
1259
+ },
1260
+ {
1261
+ stateMutability: 'view',
1262
+ type: 'function',
1263
+ name: 'getConfirmMintOrRedeemAssetHash',
1264
+ inputs: [
1265
+ {
1266
+ name: '_agentWrapper',
1267
+ type: 'address',
1268
+ },
1269
+ {
1270
+ name: '_userWallet',
1271
+ type: 'address',
1272
+ },
1273
+ {
1274
+ name: '_legoId',
1275
+ type: 'uint256',
1276
+ },
1277
+ {
1278
+ name: '_tokenIn',
1279
+ type: 'address',
1280
+ },
1281
+ {
1282
+ name: '_tokenOut',
1283
+ type: 'address',
1284
+ },
1285
+ ],
1286
+ outputs: [
1287
+ {
1288
+ name: '',
1289
+ type: 'bytes32',
1290
+ },
1291
+ ],
1292
+ },
1293
+ {
1294
+ stateMutability: 'view',
1295
+ type: 'function',
1296
+ name: 'getConfirmMintOrRedeemAssetHash',
1297
+ inputs: [
1298
+ {
1299
+ name: '_agentWrapper',
1300
+ type: 'address',
1301
+ },
1302
+ {
1303
+ name: '_userWallet',
1304
+ type: 'address',
1305
+ },
1306
+ {
1307
+ name: '_legoId',
1308
+ type: 'uint256',
1309
+ },
1310
+ {
1311
+ name: '_tokenIn',
1312
+ type: 'address',
1313
+ },
1314
+ {
1315
+ name: '_tokenOut',
1316
+ type: 'address',
1317
+ },
1318
+ {
1319
+ name: '_extraData',
1320
+ type: 'bytes32',
1321
+ },
1322
+ ],
1323
+ outputs: [
1324
+ {
1325
+ name: '',
1326
+ type: 'bytes32',
1327
+ },
1328
+ ],
1329
+ },
1330
+ {
1331
+ stateMutability: 'view',
1332
+ type: 'function',
1333
+ name: 'getConfirmMintOrRedeemAssetHash',
1334
+ inputs: [
1335
+ {
1336
+ name: '_agentWrapper',
1337
+ type: 'address',
1338
+ },
1339
+ {
1340
+ name: '_userWallet',
1341
+ type: 'address',
1342
+ },
1343
+ {
1344
+ name: '_legoId',
1345
+ type: 'uint256',
1346
+ },
1347
+ {
1348
+ name: '_tokenIn',
1349
+ type: 'address',
1350
+ },
1351
+ {
1352
+ name: '_tokenOut',
1353
+ type: 'address',
1354
+ },
1355
+ {
1356
+ name: '_extraData',
1357
+ type: 'bytes32',
1358
+ },
1359
+ {
1360
+ name: '_nonce',
1361
+ type: 'uint256',
1362
+ },
1363
+ ],
1364
+ outputs: [
1365
+ {
1366
+ name: '',
1367
+ type: 'bytes32',
1368
+ },
1369
+ ],
1370
+ },
1371
+ {
1372
+ stateMutability: 'view',
1373
+ type: 'function',
1374
+ name: 'getConfirmMintOrRedeemAssetHash',
1375
+ inputs: [
1376
+ {
1377
+ name: '_agentWrapper',
1378
+ type: 'address',
1379
+ },
1380
+ {
1381
+ name: '_userWallet',
1382
+ type: 'address',
1383
+ },
1384
+ {
1385
+ name: '_legoId',
1386
+ type: 'uint256',
1387
+ },
1388
+ {
1389
+ name: '_tokenIn',
1390
+ type: 'address',
1391
+ },
1392
+ {
1393
+ name: '_tokenOut',
1394
+ type: 'address',
1395
+ },
1396
+ {
1397
+ name: '_extraData',
1398
+ type: 'bytes32',
1399
+ },
1400
+ {
1401
+ name: '_nonce',
1402
+ type: 'uint256',
1403
+ },
1404
+ {
1405
+ name: '_expiration',
1406
+ type: 'uint256',
1407
+ },
1408
+ ],
1409
+ outputs: [
1410
+ {
1411
+ name: '',
1412
+ type: 'bytes32',
1413
+ },
1414
+ ],
1415
+ },
1416
+ {
1417
+ stateMutability: 'view',
1418
+ type: 'function',
1419
+ name: 'getAddCollateralHash',
1420
+ inputs: [
1421
+ {
1422
+ name: '_agentWrapper',
1423
+ type: 'address',
1424
+ },
1425
+ {
1426
+ name: '_userWallet',
1427
+ type: 'address',
1428
+ },
1429
+ {
1430
+ name: '_legoId',
1431
+ type: 'uint256',
1432
+ },
1433
+ {
1434
+ name: '_asset',
1435
+ type: 'address',
1436
+ },
1437
+ ],
1438
+ outputs: [
1439
+ {
1440
+ name: '',
1441
+ type: 'bytes32',
1442
+ },
1443
+ ],
1444
+ },
1445
+ {
1446
+ stateMutability: 'view',
1447
+ type: 'function',
1448
+ name: 'getAddCollateralHash',
1449
+ inputs: [
1450
+ {
1451
+ name: '_agentWrapper',
1452
+ type: 'address',
1453
+ },
1454
+ {
1455
+ name: '_userWallet',
1456
+ type: 'address',
1457
+ },
1458
+ {
1459
+ name: '_legoId',
1460
+ type: 'uint256',
1461
+ },
1462
+ {
1463
+ name: '_asset',
1464
+ type: 'address',
1465
+ },
1466
+ {
1467
+ name: '_amount',
1468
+ type: 'uint256',
1469
+ },
1470
+ ],
1471
+ outputs: [
1472
+ {
1473
+ name: '',
1474
+ type: 'bytes32',
1475
+ },
1476
+ ],
1477
+ },
1478
+ {
1479
+ stateMutability: 'view',
1480
+ type: 'function',
1481
+ name: 'getAddCollateralHash',
1482
+ inputs: [
1483
+ {
1484
+ name: '_agentWrapper',
1485
+ type: 'address',
1486
+ },
1487
+ {
1488
+ name: '_userWallet',
1489
+ type: 'address',
1490
+ },
1491
+ {
1492
+ name: '_legoId',
1493
+ type: 'uint256',
1494
+ },
1495
+ {
1496
+ name: '_asset',
1497
+ type: 'address',
1498
+ },
1499
+ {
1500
+ name: '_amount',
1501
+ type: 'uint256',
1502
+ },
1503
+ {
1504
+ name: '_extraData',
1505
+ type: 'bytes32',
1506
+ },
1507
+ ],
1508
+ outputs: [
1509
+ {
1510
+ name: '',
1511
+ type: 'bytes32',
1512
+ },
1513
+ ],
1514
+ },
1515
+ {
1516
+ stateMutability: 'view',
1517
+ type: 'function',
1518
+ name: 'getAddCollateralHash',
1519
+ inputs: [
1520
+ {
1521
+ name: '_agentWrapper',
1522
+ type: 'address',
1523
+ },
1524
+ {
1525
+ name: '_userWallet',
1526
+ type: 'address',
1527
+ },
1528
+ {
1529
+ name: '_legoId',
1530
+ type: 'uint256',
1531
+ },
1532
+ {
1533
+ name: '_asset',
1534
+ type: 'address',
1535
+ },
1536
+ {
1537
+ name: '_amount',
1538
+ type: 'uint256',
1539
+ },
1540
+ {
1541
+ name: '_extraData',
1542
+ type: 'bytes32',
1543
+ },
1544
+ {
1545
+ name: '_nonce',
1546
+ type: 'uint256',
1547
+ },
1548
+ ],
1549
+ outputs: [
1550
+ {
1551
+ name: '',
1552
+ type: 'bytes32',
1553
+ },
1554
+ ],
1555
+ },
1556
+ {
1557
+ stateMutability: 'view',
1558
+ type: 'function',
1559
+ name: 'getAddCollateralHash',
1560
+ inputs: [
1561
+ {
1562
+ name: '_agentWrapper',
1563
+ type: 'address',
1564
+ },
1565
+ {
1566
+ name: '_userWallet',
1567
+ type: 'address',
1568
+ },
1569
+ {
1570
+ name: '_legoId',
1571
+ type: 'uint256',
1572
+ },
1573
+ {
1574
+ name: '_asset',
1575
+ type: 'address',
1576
+ },
1577
+ {
1578
+ name: '_amount',
1579
+ type: 'uint256',
1580
+ },
1581
+ {
1582
+ name: '_extraData',
1583
+ type: 'bytes32',
1584
+ },
1585
+ {
1586
+ name: '_nonce',
1587
+ type: 'uint256',
1588
+ },
1589
+ {
1590
+ name: '_expiration',
1591
+ type: 'uint256',
1592
+ },
1593
+ ],
1594
+ outputs: [
1595
+ {
1596
+ name: '',
1597
+ type: 'bytes32',
1598
+ },
1599
+ ],
1600
+ },
1601
+ {
1602
+ stateMutability: 'view',
1603
+ type: 'function',
1604
+ name: 'getRemoveCollateralHash',
1605
+ inputs: [
1606
+ {
1607
+ name: '_agentWrapper',
1608
+ type: 'address',
1609
+ },
1610
+ {
1611
+ name: '_userWallet',
1612
+ type: 'address',
1613
+ },
1614
+ {
1615
+ name: '_legoId',
1616
+ type: 'uint256',
1617
+ },
1618
+ {
1619
+ name: '_asset',
1620
+ type: 'address',
1621
+ },
1622
+ ],
1623
+ outputs: [
1624
+ {
1625
+ name: '',
1626
+ type: 'bytes32',
1627
+ },
1628
+ ],
1629
+ },
1630
+ {
1631
+ stateMutability: 'view',
1632
+ type: 'function',
1633
+ name: 'getRemoveCollateralHash',
1634
+ inputs: [
1635
+ {
1636
+ name: '_agentWrapper',
1637
+ type: 'address',
1638
+ },
1639
+ {
1640
+ name: '_userWallet',
1641
+ type: 'address',
1642
+ },
1643
+ {
1644
+ name: '_legoId',
1645
+ type: 'uint256',
1646
+ },
1647
+ {
1648
+ name: '_asset',
1649
+ type: 'address',
1650
+ },
1651
+ {
1652
+ name: '_amount',
1653
+ type: 'uint256',
1654
+ },
1655
+ ],
1656
+ outputs: [
1657
+ {
1658
+ name: '',
1659
+ type: 'bytes32',
1660
+ },
1661
+ ],
1662
+ },
1663
+ {
1664
+ stateMutability: 'view',
1665
+ type: 'function',
1666
+ name: 'getRemoveCollateralHash',
1667
+ inputs: [
1668
+ {
1669
+ name: '_agentWrapper',
1670
+ type: 'address',
1671
+ },
1672
+ {
1673
+ name: '_userWallet',
1674
+ type: 'address',
1675
+ },
1676
+ {
1677
+ name: '_legoId',
1678
+ type: 'uint256',
1679
+ },
1680
+ {
1681
+ name: '_asset',
1682
+ type: 'address',
1683
+ },
1684
+ {
1685
+ name: '_amount',
1686
+ type: 'uint256',
1687
+ },
1688
+ {
1689
+ name: '_extraData',
1690
+ type: 'bytes32',
1691
+ },
1692
+ ],
1693
+ outputs: [
1694
+ {
1695
+ name: '',
1696
+ type: 'bytes32',
1697
+ },
1698
+ ],
1699
+ },
1700
+ {
1701
+ stateMutability: 'view',
1702
+ type: 'function',
1703
+ name: 'getRemoveCollateralHash',
1704
+ inputs: [
1705
+ {
1706
+ name: '_agentWrapper',
1707
+ type: 'address',
1708
+ },
1709
+ {
1710
+ name: '_userWallet',
1711
+ type: 'address',
1712
+ },
1713
+ {
1714
+ name: '_legoId',
1715
+ type: 'uint256',
1716
+ },
1717
+ {
1718
+ name: '_asset',
1719
+ type: 'address',
1720
+ },
1721
+ {
1722
+ name: '_amount',
1723
+ type: 'uint256',
1724
+ },
1725
+ {
1726
+ name: '_extraData',
1727
+ type: 'bytes32',
1728
+ },
1729
+ {
1730
+ name: '_nonce',
1731
+ type: 'uint256',
1732
+ },
1733
+ ],
1734
+ outputs: [
1735
+ {
1736
+ name: '',
1737
+ type: 'bytes32',
1738
+ },
1739
+ ],
1740
+ },
1741
+ {
1742
+ stateMutability: 'view',
1743
+ type: 'function',
1744
+ name: 'getRemoveCollateralHash',
1745
+ inputs: [
1746
+ {
1747
+ name: '_agentWrapper',
1748
+ type: 'address',
1749
+ },
1750
+ {
1751
+ name: '_userWallet',
1752
+ type: 'address',
1753
+ },
1754
+ {
1755
+ name: '_legoId',
1756
+ type: 'uint256',
1757
+ },
1758
+ {
1759
+ name: '_asset',
1760
+ type: 'address',
1761
+ },
1762
+ {
1763
+ name: '_amount',
1764
+ type: 'uint256',
1765
+ },
1766
+ {
1767
+ name: '_extraData',
1768
+ type: 'bytes32',
1769
+ },
1770
+ {
1771
+ name: '_nonce',
1772
+ type: 'uint256',
1773
+ },
1774
+ {
1775
+ name: '_expiration',
1776
+ type: 'uint256',
1777
+ },
1778
+ ],
1779
+ outputs: [
1780
+ {
1781
+ name: '',
1782
+ type: 'bytes32',
1783
+ },
1784
+ ],
1785
+ },
1786
+ {
1787
+ stateMutability: 'view',
1788
+ type: 'function',
1789
+ name: 'getBorrowHash',
1790
+ inputs: [
1791
+ {
1792
+ name: '_agentWrapper',
1793
+ type: 'address',
1794
+ },
1795
+ {
1796
+ name: '_userWallet',
1797
+ type: 'address',
1798
+ },
1799
+ {
1800
+ name: '_legoId',
1801
+ type: 'uint256',
1802
+ },
1803
+ {
1804
+ name: '_borrowAsset',
1805
+ type: 'address',
1806
+ },
1807
+ ],
1808
+ outputs: [
1809
+ {
1810
+ name: '',
1811
+ type: 'bytes32',
1812
+ },
1813
+ ],
1814
+ },
1815
+ {
1816
+ stateMutability: 'view',
1817
+ type: 'function',
1818
+ name: 'getBorrowHash',
1819
+ inputs: [
1820
+ {
1821
+ name: '_agentWrapper',
1822
+ type: 'address',
1823
+ },
1824
+ {
1825
+ name: '_userWallet',
1826
+ type: 'address',
1827
+ },
1828
+ {
1829
+ name: '_legoId',
1830
+ type: 'uint256',
1831
+ },
1832
+ {
1833
+ name: '_borrowAsset',
1834
+ type: 'address',
1835
+ },
1836
+ {
1837
+ name: '_amount',
1838
+ type: 'uint256',
1839
+ },
1840
+ ],
1841
+ outputs: [
1842
+ {
1843
+ name: '',
1844
+ type: 'bytes32',
1845
+ },
1846
+ ],
1847
+ },
1848
+ {
1849
+ stateMutability: 'view',
1850
+ type: 'function',
1851
+ name: 'getBorrowHash',
1852
+ inputs: [
1853
+ {
1854
+ name: '_agentWrapper',
1855
+ type: 'address',
1856
+ },
1857
+ {
1858
+ name: '_userWallet',
1859
+ type: 'address',
1860
+ },
1861
+ {
1862
+ name: '_legoId',
1863
+ type: 'uint256',
1864
+ },
1865
+ {
1866
+ name: '_borrowAsset',
1867
+ type: 'address',
1868
+ },
1869
+ {
1870
+ name: '_amount',
1871
+ type: 'uint256',
1872
+ },
1873
+ {
1874
+ name: '_extraData',
1875
+ type: 'bytes32',
1876
+ },
1877
+ ],
1878
+ outputs: [
1879
+ {
1880
+ name: '',
1881
+ type: 'bytes32',
1882
+ },
1883
+ ],
1884
+ },
1885
+ {
1886
+ stateMutability: 'view',
1887
+ type: 'function',
1888
+ name: 'getBorrowHash',
1889
+ inputs: [
1890
+ {
1891
+ name: '_agentWrapper',
1892
+ type: 'address',
1893
+ },
1894
+ {
1895
+ name: '_userWallet',
1896
+ type: 'address',
1897
+ },
1898
+ {
1899
+ name: '_legoId',
1900
+ type: 'uint256',
1901
+ },
1902
+ {
1903
+ name: '_borrowAsset',
1904
+ type: 'address',
1905
+ },
1906
+ {
1907
+ name: '_amount',
1908
+ type: 'uint256',
1909
+ },
1910
+ {
1911
+ name: '_extraData',
1912
+ type: 'bytes32',
1913
+ },
1914
+ {
1915
+ name: '_nonce',
1916
+ type: 'uint256',
1917
+ },
1918
+ ],
1919
+ outputs: [
1920
+ {
1921
+ name: '',
1922
+ type: 'bytes32',
1923
+ },
1924
+ ],
1925
+ },
1926
+ {
1927
+ stateMutability: 'view',
1928
+ type: 'function',
1929
+ name: 'getBorrowHash',
1930
+ inputs: [
1931
+ {
1932
+ name: '_agentWrapper',
1933
+ type: 'address',
1934
+ },
1935
+ {
1936
+ name: '_userWallet',
1937
+ type: 'address',
1938
+ },
1939
+ {
1940
+ name: '_legoId',
1941
+ type: 'uint256',
1942
+ },
1943
+ {
1944
+ name: '_borrowAsset',
1945
+ type: 'address',
1946
+ },
1947
+ {
1948
+ name: '_amount',
1949
+ type: 'uint256',
1950
+ },
1951
+ {
1952
+ name: '_extraData',
1953
+ type: 'bytes32',
1954
+ },
1955
+ {
1956
+ name: '_nonce',
1957
+ type: 'uint256',
1958
+ },
1959
+ {
1960
+ name: '_expiration',
1961
+ type: 'uint256',
1962
+ },
1963
+ ],
1964
+ outputs: [
1965
+ {
1966
+ name: '',
1967
+ type: 'bytes32',
1968
+ },
1969
+ ],
1970
+ },
1971
+ {
1972
+ stateMutability: 'view',
1973
+ type: 'function',
1974
+ name: 'getRepayDebtHash',
1975
+ inputs: [
1976
+ {
1977
+ name: '_agentWrapper',
1978
+ type: 'address',
1979
+ },
1980
+ {
1981
+ name: '_userWallet',
1982
+ type: 'address',
1983
+ },
1984
+ {
1985
+ name: '_legoId',
1986
+ type: 'uint256',
1987
+ },
1988
+ {
1989
+ name: '_paymentAsset',
1990
+ type: 'address',
1991
+ },
1992
+ ],
1993
+ outputs: [
1994
+ {
1995
+ name: '',
1996
+ type: 'bytes32',
1997
+ },
1998
+ ],
1999
+ },
2000
+ {
2001
+ stateMutability: 'view',
2002
+ type: 'function',
2003
+ name: 'getRepayDebtHash',
2004
+ inputs: [
2005
+ {
2006
+ name: '_agentWrapper',
2007
+ type: 'address',
2008
+ },
2009
+ {
2010
+ name: '_userWallet',
2011
+ type: 'address',
2012
+ },
2013
+ {
2014
+ name: '_legoId',
2015
+ type: 'uint256',
2016
+ },
2017
+ {
2018
+ name: '_paymentAsset',
2019
+ type: 'address',
2020
+ },
2021
+ {
2022
+ name: '_paymentAmount',
2023
+ type: 'uint256',
2024
+ },
2025
+ ],
2026
+ outputs: [
2027
+ {
2028
+ name: '',
2029
+ type: 'bytes32',
2030
+ },
2031
+ ],
2032
+ },
2033
+ {
2034
+ stateMutability: 'view',
2035
+ type: 'function',
2036
+ name: 'getRepayDebtHash',
2037
+ inputs: [
2038
+ {
2039
+ name: '_agentWrapper',
2040
+ type: 'address',
2041
+ },
2042
+ {
2043
+ name: '_userWallet',
2044
+ type: 'address',
2045
+ },
2046
+ {
2047
+ name: '_legoId',
2048
+ type: 'uint256',
2049
+ },
2050
+ {
2051
+ name: '_paymentAsset',
2052
+ type: 'address',
2053
+ },
2054
+ {
2055
+ name: '_paymentAmount',
2056
+ type: 'uint256',
2057
+ },
2058
+ {
2059
+ name: '_extraData',
2060
+ type: 'bytes32',
2061
+ },
2062
+ ],
2063
+ outputs: [
2064
+ {
2065
+ name: '',
2066
+ type: 'bytes32',
2067
+ },
2068
+ ],
2069
+ },
2070
+ {
2071
+ stateMutability: 'view',
2072
+ type: 'function',
2073
+ name: 'getRepayDebtHash',
2074
+ inputs: [
2075
+ {
2076
+ name: '_agentWrapper',
2077
+ type: 'address',
2078
+ },
2079
+ {
2080
+ name: '_userWallet',
2081
+ type: 'address',
2082
+ },
2083
+ {
2084
+ name: '_legoId',
2085
+ type: 'uint256',
2086
+ },
2087
+ {
2088
+ name: '_paymentAsset',
2089
+ type: 'address',
2090
+ },
2091
+ {
2092
+ name: '_paymentAmount',
2093
+ type: 'uint256',
2094
+ },
2095
+ {
2096
+ name: '_extraData',
2097
+ type: 'bytes32',
2098
+ },
2099
+ {
2100
+ name: '_nonce',
2101
+ type: 'uint256',
2102
+ },
2103
+ ],
2104
+ outputs: [
2105
+ {
2106
+ name: '',
2107
+ type: 'bytes32',
2108
+ },
2109
+ ],
2110
+ },
2111
+ {
2112
+ stateMutability: 'view',
2113
+ type: 'function',
2114
+ name: 'getRepayDebtHash',
2115
+ inputs: [
2116
+ {
2117
+ name: '_agentWrapper',
2118
+ type: 'address',
2119
+ },
2120
+ {
2121
+ name: '_userWallet',
2122
+ type: 'address',
2123
+ },
2124
+ {
2125
+ name: '_legoId',
2126
+ type: 'uint256',
2127
+ },
2128
+ {
2129
+ name: '_paymentAsset',
2130
+ type: 'address',
2131
+ },
2132
+ {
2133
+ name: '_paymentAmount',
2134
+ type: 'uint256',
2135
+ },
2136
+ {
2137
+ name: '_extraData',
2138
+ type: 'bytes32',
2139
+ },
2140
+ {
2141
+ name: '_nonce',
2142
+ type: 'uint256',
2143
+ },
2144
+ {
2145
+ name: '_expiration',
2146
+ type: 'uint256',
2147
+ },
2148
+ ],
2149
+ outputs: [
2150
+ {
2151
+ name: '',
2152
+ type: 'bytes32',
2153
+ },
2154
+ ],
2155
+ },
2156
+ {
2157
+ stateMutability: 'view',
2158
+ type: 'function',
2159
+ name: 'getClaimRewardsHash',
2160
+ inputs: [
2161
+ {
2162
+ name: '_agentWrapper',
2163
+ type: 'address',
2164
+ },
2165
+ {
2166
+ name: '_userWallet',
2167
+ type: 'address',
2168
+ },
2169
+ {
2170
+ name: '_legoId',
2171
+ type: 'uint256',
2172
+ },
2173
+ ],
2174
+ outputs: [
2175
+ {
2176
+ name: '',
2177
+ type: 'bytes32',
2178
+ },
2179
+ ],
2180
+ },
2181
+ {
2182
+ stateMutability: 'view',
2183
+ type: 'function',
2184
+ name: 'getClaimRewardsHash',
2185
+ inputs: [
2186
+ {
2187
+ name: '_agentWrapper',
2188
+ type: 'address',
2189
+ },
2190
+ {
2191
+ name: '_userWallet',
2192
+ type: 'address',
2193
+ },
2194
+ {
2195
+ name: '_legoId',
2196
+ type: 'uint256',
2197
+ },
2198
+ {
2199
+ name: '_rewardToken',
2200
+ type: 'address',
2201
+ },
2202
+ ],
2203
+ outputs: [
2204
+ {
2205
+ name: '',
2206
+ type: 'bytes32',
2207
+ },
2208
+ ],
2209
+ },
2210
+ {
2211
+ stateMutability: 'view',
2212
+ type: 'function',
2213
+ name: 'getClaimRewardsHash',
2214
+ inputs: [
2215
+ {
2216
+ name: '_agentWrapper',
2217
+ type: 'address',
2218
+ },
2219
+ {
2220
+ name: '_userWallet',
2221
+ type: 'address',
2222
+ },
2223
+ {
2224
+ name: '_legoId',
2225
+ type: 'uint256',
2226
+ },
2227
+ {
2228
+ name: '_rewardToken',
2229
+ type: 'address',
2230
+ },
2231
+ {
2232
+ name: '_rewardAmount',
2233
+ type: 'uint256',
2234
+ },
2235
+ ],
2236
+ outputs: [
2237
+ {
2238
+ name: '',
2239
+ type: 'bytes32',
2240
+ },
2241
+ ],
2242
+ },
2243
+ {
2244
+ stateMutability: 'view',
2245
+ type: 'function',
2246
+ name: 'getClaimRewardsHash',
2247
+ inputs: [
2248
+ {
2249
+ name: '_agentWrapper',
2250
+ type: 'address',
2251
+ },
2252
+ {
2253
+ name: '_userWallet',
2254
+ type: 'address',
2255
+ },
2256
+ {
2257
+ name: '_legoId',
2258
+ type: 'uint256',
2259
+ },
2260
+ {
2261
+ name: '_rewardToken',
2262
+ type: 'address',
2263
+ },
2264
+ {
2265
+ name: '_rewardAmount',
2266
+ type: 'uint256',
2267
+ },
2268
+ {
2269
+ name: '_extraData',
2270
+ type: 'bytes32',
2271
+ },
2272
+ ],
2273
+ outputs: [
2274
+ {
2275
+ name: '',
2276
+ type: 'bytes32',
2277
+ },
2278
+ ],
2279
+ },
2280
+ {
2281
+ stateMutability: 'view',
2282
+ type: 'function',
2283
+ name: 'getClaimRewardsHash',
2284
+ inputs: [
2285
+ {
2286
+ name: '_agentWrapper',
2287
+ type: 'address',
2288
+ },
2289
+ {
2290
+ name: '_userWallet',
2291
+ type: 'address',
2292
+ },
2293
+ {
2294
+ name: '_legoId',
2295
+ type: 'uint256',
2296
+ },
2297
+ {
2298
+ name: '_rewardToken',
2299
+ type: 'address',
2300
+ },
2301
+ {
2302
+ name: '_rewardAmount',
2303
+ type: 'uint256',
2304
+ },
2305
+ {
2306
+ name: '_extraData',
2307
+ type: 'bytes32',
2308
+ },
2309
+ {
2310
+ name: '_nonce',
2311
+ type: 'uint256',
2312
+ },
2313
+ ],
2314
+ outputs: [
2315
+ {
2316
+ name: '',
2317
+ type: 'bytes32',
2318
+ },
2319
+ ],
2320
+ },
2321
+ {
2322
+ stateMutability: 'view',
2323
+ type: 'function',
2324
+ name: 'getClaimRewardsHash',
2325
+ inputs: [
2326
+ {
2327
+ name: '_agentWrapper',
2328
+ type: 'address',
2329
+ },
2330
+ {
2331
+ name: '_userWallet',
2332
+ type: 'address',
2333
+ },
2334
+ {
2335
+ name: '_legoId',
2336
+ type: 'uint256',
2337
+ },
2338
+ {
2339
+ name: '_rewardToken',
2340
+ type: 'address',
2341
+ },
2342
+ {
2343
+ name: '_rewardAmount',
2344
+ type: 'uint256',
2345
+ },
2346
+ {
2347
+ name: '_extraData',
2348
+ type: 'bytes32',
2349
+ },
2350
+ {
2351
+ name: '_nonce',
2352
+ type: 'uint256',
2353
+ },
2354
+ {
2355
+ name: '_expiration',
2356
+ type: 'uint256',
2357
+ },
2358
+ ],
2359
+ outputs: [
2360
+ {
2361
+ name: '',
2362
+ type: 'bytes32',
2363
+ },
2364
+ ],
2365
+ },
2366
+ {
2367
+ stateMutability: 'view',
2368
+ type: 'function',
2369
+ name: 'getConvertWethToEthHash',
2370
+ inputs: [
2371
+ {
2372
+ name: '_agentWrapper',
2373
+ type: 'address',
2374
+ },
2375
+ {
2376
+ name: '_userWallet',
2377
+ type: 'address',
2378
+ },
2379
+ ],
2380
+ outputs: [
2381
+ {
2382
+ name: '',
2383
+ type: 'bytes32',
2384
+ },
2385
+ ],
2386
+ },
2387
+ {
2388
+ stateMutability: 'view',
2389
+ type: 'function',
2390
+ name: 'getConvertWethToEthHash',
2391
+ inputs: [
2392
+ {
2393
+ name: '_agentWrapper',
2394
+ type: 'address',
2395
+ },
2396
+ {
2397
+ name: '_userWallet',
2398
+ type: 'address',
2399
+ },
2400
+ {
2401
+ name: '_amount',
2402
+ type: 'uint256',
2403
+ },
2404
+ ],
2405
+ outputs: [
2406
+ {
2407
+ name: '',
2408
+ type: 'bytes32',
2409
+ },
2410
+ ],
2411
+ },
2412
+ {
2413
+ stateMutability: 'view',
2414
+ type: 'function',
2415
+ name: 'getConvertWethToEthHash',
2416
+ inputs: [
2417
+ {
2418
+ name: '_agentWrapper',
2419
+ type: 'address',
2420
+ },
2421
+ {
2422
+ name: '_userWallet',
2423
+ type: 'address',
2424
+ },
2425
+ {
2426
+ name: '_amount',
2427
+ type: 'uint256',
2428
+ },
2429
+ {
2430
+ name: '_nonce',
2431
+ type: 'uint256',
2432
+ },
2433
+ ],
2434
+ outputs: [
2435
+ {
2436
+ name: '',
2437
+ type: 'bytes32',
2438
+ },
2439
+ ],
2440
+ },
2441
+ {
2442
+ stateMutability: 'view',
2443
+ type: 'function',
2444
+ name: 'getConvertWethToEthHash',
2445
+ inputs: [
2446
+ {
2447
+ name: '_agentWrapper',
2448
+ type: 'address',
2449
+ },
2450
+ {
2451
+ name: '_userWallet',
2452
+ type: 'address',
2453
+ },
2454
+ {
2455
+ name: '_amount',
2456
+ type: 'uint256',
2457
+ },
2458
+ {
2459
+ name: '_nonce',
2460
+ type: 'uint256',
2461
+ },
2462
+ {
2463
+ name: '_expiration',
2464
+ type: 'uint256',
2465
+ },
2466
+ ],
2467
+ outputs: [
2468
+ {
2469
+ name: '',
2470
+ type: 'bytes32',
2471
+ },
2472
+ ],
2473
+ },
2474
+ {
2475
+ stateMutability: 'view',
2476
+ type: 'function',
2477
+ name: 'getConvertEthToWethHash',
2478
+ inputs: [
2479
+ {
2480
+ name: '_agentWrapper',
2481
+ type: 'address',
2482
+ },
2483
+ {
2484
+ name: '_userWallet',
2485
+ type: 'address',
2486
+ },
2487
+ ],
2488
+ outputs: [
2489
+ {
2490
+ name: '',
2491
+ type: 'bytes32',
2492
+ },
2493
+ ],
2494
+ },
2495
+ {
2496
+ stateMutability: 'view',
2497
+ type: 'function',
2498
+ name: 'getConvertEthToWethHash',
2499
+ inputs: [
2500
+ {
2501
+ name: '_agentWrapper',
2502
+ type: 'address',
2503
+ },
2504
+ {
2505
+ name: '_userWallet',
2506
+ type: 'address',
2507
+ },
2508
+ {
2509
+ name: '_amount',
2510
+ type: 'uint256',
2511
+ },
2512
+ ],
2513
+ outputs: [
2514
+ {
2515
+ name: '',
2516
+ type: 'bytes32',
2517
+ },
2518
+ ],
2519
+ },
2520
+ {
2521
+ stateMutability: 'view',
2522
+ type: 'function',
2523
+ name: 'getConvertEthToWethHash',
2524
+ inputs: [
2525
+ {
2526
+ name: '_agentWrapper',
2527
+ type: 'address',
2528
+ },
2529
+ {
2530
+ name: '_userWallet',
2531
+ type: 'address',
2532
+ },
2533
+ {
2534
+ name: '_amount',
2535
+ type: 'uint256',
2536
+ },
2537
+ {
2538
+ name: '_nonce',
2539
+ type: 'uint256',
2540
+ },
2541
+ ],
2542
+ outputs: [
2543
+ {
2544
+ name: '',
2545
+ type: 'bytes32',
2546
+ },
2547
+ ],
2548
+ },
2549
+ {
2550
+ stateMutability: 'view',
2551
+ type: 'function',
2552
+ name: 'getConvertEthToWethHash',
2553
+ inputs: [
2554
+ {
2555
+ name: '_agentWrapper',
2556
+ type: 'address',
2557
+ },
2558
+ {
2559
+ name: '_userWallet',
2560
+ type: 'address',
2561
+ },
2562
+ {
2563
+ name: '_amount',
2564
+ type: 'uint256',
2565
+ },
2566
+ {
2567
+ name: '_nonce',
2568
+ type: 'uint256',
2569
+ },
2570
+ {
2571
+ name: '_expiration',
2572
+ type: 'uint256',
2573
+ },
2574
+ ],
2575
+ outputs: [
2576
+ {
2577
+ name: '',
2578
+ type: 'bytes32',
2579
+ },
2580
+ ],
2581
+ },
2582
+ {
2583
+ stateMutability: 'view',
2584
+ type: 'function',
2585
+ name: 'getAddLiquidityHash',
2586
+ inputs: [
2587
+ {
2588
+ name: '_agentWrapper',
2589
+ type: 'address',
2590
+ },
2591
+ {
2592
+ name: '_userWallet',
2593
+ type: 'address',
2594
+ },
2595
+ {
2596
+ name: '_legoId',
2597
+ type: 'uint256',
2598
+ },
2599
+ {
2600
+ name: '_pool',
2601
+ type: 'address',
2602
+ },
2603
+ {
2604
+ name: '_tokenA',
2605
+ type: 'address',
2606
+ },
2607
+ {
2608
+ name: '_tokenB',
2609
+ type: 'address',
2610
+ },
2611
+ ],
2612
+ outputs: [
2613
+ {
2614
+ name: '',
2615
+ type: 'bytes32',
2616
+ },
2617
+ ],
2618
+ },
2619
+ {
2620
+ stateMutability: 'view',
2621
+ type: 'function',
2622
+ name: 'getAddLiquidityHash',
2623
+ inputs: [
2624
+ {
2625
+ name: '_agentWrapper',
2626
+ type: 'address',
2627
+ },
2628
+ {
2629
+ name: '_userWallet',
2630
+ type: 'address',
2631
+ },
2632
+ {
2633
+ name: '_legoId',
2634
+ type: 'uint256',
2635
+ },
2636
+ {
2637
+ name: '_pool',
2638
+ type: 'address',
2639
+ },
2640
+ {
2641
+ name: '_tokenA',
2642
+ type: 'address',
2643
+ },
2644
+ {
2645
+ name: '_tokenB',
2646
+ type: 'address',
2647
+ },
2648
+ {
2649
+ name: '_amountA',
2650
+ type: 'uint256',
2651
+ },
2652
+ ],
2653
+ outputs: [
2654
+ {
2655
+ name: '',
2656
+ type: 'bytes32',
2657
+ },
2658
+ ],
2659
+ },
2660
+ {
2661
+ stateMutability: 'view',
2662
+ type: 'function',
2663
+ name: 'getAddLiquidityHash',
2664
+ inputs: [
2665
+ {
2666
+ name: '_agentWrapper',
2667
+ type: 'address',
2668
+ },
2669
+ {
2670
+ name: '_userWallet',
2671
+ type: 'address',
2672
+ },
2673
+ {
2674
+ name: '_legoId',
2675
+ type: 'uint256',
2676
+ },
2677
+ {
2678
+ name: '_pool',
2679
+ type: 'address',
2680
+ },
2681
+ {
2682
+ name: '_tokenA',
2683
+ type: 'address',
2684
+ },
2685
+ {
2686
+ name: '_tokenB',
2687
+ type: 'address',
2688
+ },
2689
+ {
2690
+ name: '_amountA',
2691
+ type: 'uint256',
2692
+ },
2693
+ {
2694
+ name: '_amountB',
2695
+ type: 'uint256',
2696
+ },
2697
+ ],
2698
+ outputs: [
2699
+ {
2700
+ name: '',
2701
+ type: 'bytes32',
2702
+ },
2703
+ ],
2704
+ },
2705
+ {
2706
+ stateMutability: 'view',
2707
+ type: 'function',
2708
+ name: 'getAddLiquidityHash',
2709
+ inputs: [
2710
+ {
2711
+ name: '_agentWrapper',
2712
+ type: 'address',
2713
+ },
2714
+ {
2715
+ name: '_userWallet',
2716
+ type: 'address',
2717
+ },
2718
+ {
2719
+ name: '_legoId',
2720
+ type: 'uint256',
2721
+ },
2722
+ {
2723
+ name: '_pool',
2724
+ type: 'address',
2725
+ },
2726
+ {
2727
+ name: '_tokenA',
2728
+ type: 'address',
2729
+ },
2730
+ {
2731
+ name: '_tokenB',
2732
+ type: 'address',
2733
+ },
2734
+ {
2735
+ name: '_amountA',
2736
+ type: 'uint256',
2737
+ },
2738
+ {
2739
+ name: '_amountB',
2740
+ type: 'uint256',
2741
+ },
2742
+ {
2743
+ name: '_minAmountA',
2744
+ type: 'uint256',
2745
+ },
2746
+ ],
2747
+ outputs: [
2748
+ {
2749
+ name: '',
2750
+ type: 'bytes32',
2751
+ },
2752
+ ],
2753
+ },
2754
+ {
2755
+ stateMutability: 'view',
2756
+ type: 'function',
2757
+ name: 'getAddLiquidityHash',
2758
+ inputs: [
2759
+ {
2760
+ name: '_agentWrapper',
2761
+ type: 'address',
2762
+ },
2763
+ {
2764
+ name: '_userWallet',
2765
+ type: 'address',
2766
+ },
2767
+ {
2768
+ name: '_legoId',
2769
+ type: 'uint256',
2770
+ },
2771
+ {
2772
+ name: '_pool',
2773
+ type: 'address',
2774
+ },
2775
+ {
2776
+ name: '_tokenA',
2777
+ type: 'address',
2778
+ },
2779
+ {
2780
+ name: '_tokenB',
2781
+ type: 'address',
2782
+ },
2783
+ {
2784
+ name: '_amountA',
2785
+ type: 'uint256',
2786
+ },
2787
+ {
2788
+ name: '_amountB',
2789
+ type: 'uint256',
2790
+ },
2791
+ {
2792
+ name: '_minAmountA',
2793
+ type: 'uint256',
2794
+ },
2795
+ {
2796
+ name: '_minAmountB',
2797
+ type: 'uint256',
2798
+ },
2799
+ ],
2800
+ outputs: [
2801
+ {
2802
+ name: '',
2803
+ type: 'bytes32',
2804
+ },
2805
+ ],
2806
+ },
2807
+ {
2808
+ stateMutability: 'view',
2809
+ type: 'function',
2810
+ name: 'getAddLiquidityHash',
2811
+ inputs: [
2812
+ {
2813
+ name: '_agentWrapper',
2814
+ type: 'address',
2815
+ },
2816
+ {
2817
+ name: '_userWallet',
2818
+ type: 'address',
2819
+ },
2820
+ {
2821
+ name: '_legoId',
2822
+ type: 'uint256',
2823
+ },
2824
+ {
2825
+ name: '_pool',
2826
+ type: 'address',
2827
+ },
2828
+ {
2829
+ name: '_tokenA',
2830
+ type: 'address',
2831
+ },
2832
+ {
2833
+ name: '_tokenB',
2834
+ type: 'address',
2835
+ },
2836
+ {
2837
+ name: '_amountA',
2838
+ type: 'uint256',
2839
+ },
2840
+ {
2841
+ name: '_amountB',
2842
+ type: 'uint256',
2843
+ },
2844
+ {
2845
+ name: '_minAmountA',
2846
+ type: 'uint256',
2847
+ },
2848
+ {
2849
+ name: '_minAmountB',
2850
+ type: 'uint256',
2851
+ },
2852
+ {
2853
+ name: '_minLpAmount',
2854
+ type: 'uint256',
2855
+ },
2856
+ ],
2857
+ outputs: [
2858
+ {
2859
+ name: '',
2860
+ type: 'bytes32',
2861
+ },
2862
+ ],
2863
+ },
2864
+ {
2865
+ stateMutability: 'view',
2866
+ type: 'function',
2867
+ name: 'getAddLiquidityHash',
2868
+ inputs: [
2869
+ {
2870
+ name: '_agentWrapper',
2871
+ type: 'address',
2872
+ },
2873
+ {
2874
+ name: '_userWallet',
2875
+ type: 'address',
2876
+ },
2877
+ {
2878
+ name: '_legoId',
2879
+ type: 'uint256',
2880
+ },
2881
+ {
2882
+ name: '_pool',
2883
+ type: 'address',
2884
+ },
2885
+ {
2886
+ name: '_tokenA',
2887
+ type: 'address',
2888
+ },
2889
+ {
2890
+ name: '_tokenB',
2891
+ type: 'address',
2892
+ },
2893
+ {
2894
+ name: '_amountA',
2895
+ type: 'uint256',
2896
+ },
2897
+ {
2898
+ name: '_amountB',
2899
+ type: 'uint256',
2900
+ },
2901
+ {
2902
+ name: '_minAmountA',
2903
+ type: 'uint256',
2904
+ },
2905
+ {
2906
+ name: '_minAmountB',
2907
+ type: 'uint256',
2908
+ },
2909
+ {
2910
+ name: '_minLpAmount',
2911
+ type: 'uint256',
2912
+ },
2913
+ {
2914
+ name: '_extraData',
2915
+ type: 'bytes32',
2916
+ },
2917
+ ],
2918
+ outputs: [
2919
+ {
2920
+ name: '',
2921
+ type: 'bytes32',
2922
+ },
2923
+ ],
2924
+ },
2925
+ {
2926
+ stateMutability: 'view',
2927
+ type: 'function',
2928
+ name: 'getAddLiquidityHash',
2929
+ inputs: [
2930
+ {
2931
+ name: '_agentWrapper',
2932
+ type: 'address',
2933
+ },
2934
+ {
2935
+ name: '_userWallet',
2936
+ type: 'address',
2937
+ },
2938
+ {
2939
+ name: '_legoId',
2940
+ type: 'uint256',
2941
+ },
2942
+ {
2943
+ name: '_pool',
2944
+ type: 'address',
2945
+ },
2946
+ {
2947
+ name: '_tokenA',
2948
+ type: 'address',
2949
+ },
2950
+ {
2951
+ name: '_tokenB',
2952
+ type: 'address',
2953
+ },
2954
+ {
2955
+ name: '_amountA',
2956
+ type: 'uint256',
2957
+ },
2958
+ {
2959
+ name: '_amountB',
2960
+ type: 'uint256',
2961
+ },
2962
+ {
2963
+ name: '_minAmountA',
2964
+ type: 'uint256',
2965
+ },
2966
+ {
2967
+ name: '_minAmountB',
2968
+ type: 'uint256',
2969
+ },
2970
+ {
2971
+ name: '_minLpAmount',
2972
+ type: 'uint256',
2973
+ },
2974
+ {
2975
+ name: '_extraData',
2976
+ type: 'bytes32',
2977
+ },
2978
+ {
2979
+ name: '_nonce',
2980
+ type: 'uint256',
2981
+ },
2982
+ ],
2983
+ outputs: [
2984
+ {
2985
+ name: '',
2986
+ type: 'bytes32',
2987
+ },
2988
+ ],
2989
+ },
2990
+ {
2991
+ stateMutability: 'view',
2992
+ type: 'function',
2993
+ name: 'getAddLiquidityHash',
2994
+ inputs: [
2995
+ {
2996
+ name: '_agentWrapper',
2997
+ type: 'address',
2998
+ },
2999
+ {
3000
+ name: '_userWallet',
3001
+ type: 'address',
3002
+ },
3003
+ {
3004
+ name: '_legoId',
3005
+ type: 'uint256',
3006
+ },
3007
+ {
3008
+ name: '_pool',
3009
+ type: 'address',
3010
+ },
3011
+ {
3012
+ name: '_tokenA',
3013
+ type: 'address',
3014
+ },
3015
+ {
3016
+ name: '_tokenB',
3017
+ type: 'address',
3018
+ },
3019
+ {
3020
+ name: '_amountA',
3021
+ type: 'uint256',
3022
+ },
3023
+ {
3024
+ name: '_amountB',
3025
+ type: 'uint256',
3026
+ },
3027
+ {
3028
+ name: '_minAmountA',
3029
+ type: 'uint256',
3030
+ },
3031
+ {
3032
+ name: '_minAmountB',
3033
+ type: 'uint256',
3034
+ },
3035
+ {
3036
+ name: '_minLpAmount',
3037
+ type: 'uint256',
3038
+ },
3039
+ {
3040
+ name: '_extraData',
3041
+ type: 'bytes32',
3042
+ },
3043
+ {
3044
+ name: '_nonce',
3045
+ type: 'uint256',
3046
+ },
3047
+ {
3048
+ name: '_expiration',
3049
+ type: 'uint256',
3050
+ },
3051
+ ],
3052
+ outputs: [
3053
+ {
3054
+ name: '',
3055
+ type: 'bytes32',
3056
+ },
3057
+ ],
3058
+ },
3059
+ {
3060
+ stateMutability: 'view',
3061
+ type: 'function',
3062
+ name: 'getRemoveLiquidityHash',
3063
+ inputs: [
3064
+ {
3065
+ name: '_agentWrapper',
3066
+ type: 'address',
3067
+ },
3068
+ {
3069
+ name: '_userWallet',
3070
+ type: 'address',
3071
+ },
3072
+ {
3073
+ name: '_legoId',
3074
+ type: 'uint256',
3075
+ },
3076
+ {
3077
+ name: '_pool',
3078
+ type: 'address',
3079
+ },
3080
+ {
3081
+ name: '_tokenA',
3082
+ type: 'address',
3083
+ },
3084
+ {
3085
+ name: '_tokenB',
3086
+ type: 'address',
3087
+ },
3088
+ {
3089
+ name: '_lpToken',
3090
+ type: 'address',
3091
+ },
3092
+ ],
3093
+ outputs: [
3094
+ {
3095
+ name: '',
3096
+ type: 'bytes32',
3097
+ },
3098
+ ],
3099
+ },
3100
+ {
3101
+ stateMutability: 'view',
3102
+ type: 'function',
3103
+ name: 'getRemoveLiquidityHash',
3104
+ inputs: [
3105
+ {
3106
+ name: '_agentWrapper',
3107
+ type: 'address',
3108
+ },
3109
+ {
3110
+ name: '_userWallet',
3111
+ type: 'address',
3112
+ },
3113
+ {
3114
+ name: '_legoId',
3115
+ type: 'uint256',
3116
+ },
3117
+ {
3118
+ name: '_pool',
3119
+ type: 'address',
3120
+ },
3121
+ {
3122
+ name: '_tokenA',
3123
+ type: 'address',
3124
+ },
3125
+ {
3126
+ name: '_tokenB',
3127
+ type: 'address',
3128
+ },
3129
+ {
3130
+ name: '_lpToken',
3131
+ type: 'address',
3132
+ },
3133
+ {
3134
+ name: '_lpAmount',
3135
+ type: 'uint256',
3136
+ },
3137
+ ],
3138
+ outputs: [
3139
+ {
3140
+ name: '',
3141
+ type: 'bytes32',
3142
+ },
3143
+ ],
3144
+ },
3145
+ {
3146
+ stateMutability: 'view',
3147
+ type: 'function',
3148
+ name: 'getRemoveLiquidityHash',
3149
+ inputs: [
3150
+ {
3151
+ name: '_agentWrapper',
3152
+ type: 'address',
3153
+ },
3154
+ {
3155
+ name: '_userWallet',
3156
+ type: 'address',
3157
+ },
3158
+ {
3159
+ name: '_legoId',
3160
+ type: 'uint256',
3161
+ },
3162
+ {
3163
+ name: '_pool',
3164
+ type: 'address',
3165
+ },
3166
+ {
3167
+ name: '_tokenA',
3168
+ type: 'address',
3169
+ },
3170
+ {
3171
+ name: '_tokenB',
3172
+ type: 'address',
3173
+ },
3174
+ {
3175
+ name: '_lpToken',
3176
+ type: 'address',
3177
+ },
3178
+ {
3179
+ name: '_lpAmount',
3180
+ type: 'uint256',
3181
+ },
3182
+ {
3183
+ name: '_minAmountA',
3184
+ type: 'uint256',
3185
+ },
3186
+ ],
3187
+ outputs: [
3188
+ {
3189
+ name: '',
3190
+ type: 'bytes32',
3191
+ },
3192
+ ],
3193
+ },
3194
+ {
3195
+ stateMutability: 'view',
3196
+ type: 'function',
3197
+ name: 'getRemoveLiquidityHash',
3198
+ inputs: [
3199
+ {
3200
+ name: '_agentWrapper',
3201
+ type: 'address',
3202
+ },
3203
+ {
3204
+ name: '_userWallet',
3205
+ type: 'address',
3206
+ },
3207
+ {
3208
+ name: '_legoId',
3209
+ type: 'uint256',
3210
+ },
3211
+ {
3212
+ name: '_pool',
3213
+ type: 'address',
3214
+ },
3215
+ {
3216
+ name: '_tokenA',
3217
+ type: 'address',
3218
+ },
3219
+ {
3220
+ name: '_tokenB',
3221
+ type: 'address',
3222
+ },
3223
+ {
3224
+ name: '_lpToken',
3225
+ type: 'address',
3226
+ },
3227
+ {
3228
+ name: '_lpAmount',
3229
+ type: 'uint256',
3230
+ },
3231
+ {
3232
+ name: '_minAmountA',
3233
+ type: 'uint256',
3234
+ },
3235
+ {
3236
+ name: '_minAmountB',
3237
+ type: 'uint256',
3238
+ },
3239
+ ],
3240
+ outputs: [
3241
+ {
3242
+ name: '',
3243
+ type: 'bytes32',
3244
+ },
3245
+ ],
3246
+ },
3247
+ {
3248
+ stateMutability: 'view',
3249
+ type: 'function',
3250
+ name: 'getRemoveLiquidityHash',
3251
+ inputs: [
3252
+ {
3253
+ name: '_agentWrapper',
3254
+ type: 'address',
3255
+ },
3256
+ {
3257
+ name: '_userWallet',
3258
+ type: 'address',
3259
+ },
3260
+ {
3261
+ name: '_legoId',
3262
+ type: 'uint256',
3263
+ },
3264
+ {
3265
+ name: '_pool',
3266
+ type: 'address',
3267
+ },
3268
+ {
3269
+ name: '_tokenA',
3270
+ type: 'address',
3271
+ },
3272
+ {
3273
+ name: '_tokenB',
3274
+ type: 'address',
3275
+ },
3276
+ {
3277
+ name: '_lpToken',
3278
+ type: 'address',
3279
+ },
3280
+ {
3281
+ name: '_lpAmount',
3282
+ type: 'uint256',
3283
+ },
3284
+ {
3285
+ name: '_minAmountA',
3286
+ type: 'uint256',
3287
+ },
3288
+ {
3289
+ name: '_minAmountB',
3290
+ type: 'uint256',
3291
+ },
3292
+ {
3293
+ name: '_extraData',
3294
+ type: 'bytes32',
3295
+ },
3296
+ ],
3297
+ outputs: [
3298
+ {
3299
+ name: '',
3300
+ type: 'bytes32',
3301
+ },
3302
+ ],
3303
+ },
3304
+ {
3305
+ stateMutability: 'view',
3306
+ type: 'function',
3307
+ name: 'getRemoveLiquidityHash',
3308
+ inputs: [
3309
+ {
3310
+ name: '_agentWrapper',
3311
+ type: 'address',
3312
+ },
3313
+ {
3314
+ name: '_userWallet',
3315
+ type: 'address',
3316
+ },
3317
+ {
3318
+ name: '_legoId',
3319
+ type: 'uint256',
3320
+ },
3321
+ {
3322
+ name: '_pool',
3323
+ type: 'address',
3324
+ },
3325
+ {
3326
+ name: '_tokenA',
3327
+ type: 'address',
3328
+ },
3329
+ {
3330
+ name: '_tokenB',
3331
+ type: 'address',
3332
+ },
3333
+ {
3334
+ name: '_lpToken',
3335
+ type: 'address',
3336
+ },
3337
+ {
3338
+ name: '_lpAmount',
3339
+ type: 'uint256',
3340
+ },
3341
+ {
3342
+ name: '_minAmountA',
3343
+ type: 'uint256',
3344
+ },
3345
+ {
3346
+ name: '_minAmountB',
3347
+ type: 'uint256',
3348
+ },
3349
+ {
3350
+ name: '_extraData',
3351
+ type: 'bytes32',
3352
+ },
3353
+ {
3354
+ name: '_nonce',
3355
+ type: 'uint256',
3356
+ },
3357
+ ],
3358
+ outputs: [
3359
+ {
3360
+ name: '',
3361
+ type: 'bytes32',
3362
+ },
3363
+ ],
3364
+ },
3365
+ {
3366
+ stateMutability: 'view',
3367
+ type: 'function',
3368
+ name: 'getRemoveLiquidityHash',
3369
+ inputs: [
3370
+ {
3371
+ name: '_agentWrapper',
3372
+ type: 'address',
3373
+ },
3374
+ {
3375
+ name: '_userWallet',
3376
+ type: 'address',
3377
+ },
3378
+ {
3379
+ name: '_legoId',
3380
+ type: 'uint256',
3381
+ },
3382
+ {
3383
+ name: '_pool',
3384
+ type: 'address',
3385
+ },
3386
+ {
3387
+ name: '_tokenA',
3388
+ type: 'address',
3389
+ },
3390
+ {
3391
+ name: '_tokenB',
3392
+ type: 'address',
3393
+ },
3394
+ {
3395
+ name: '_lpToken',
3396
+ type: 'address',
3397
+ },
3398
+ {
3399
+ name: '_lpAmount',
3400
+ type: 'uint256',
3401
+ },
3402
+ {
3403
+ name: '_minAmountA',
3404
+ type: 'uint256',
3405
+ },
3406
+ {
3407
+ name: '_minAmountB',
3408
+ type: 'uint256',
3409
+ },
3410
+ {
3411
+ name: '_extraData',
3412
+ type: 'bytes32',
3413
+ },
3414
+ {
3415
+ name: '_nonce',
3416
+ type: 'uint256',
3417
+ },
3418
+ {
3419
+ name: '_expiration',
3420
+ type: 'uint256',
3421
+ },
3422
+ ],
3423
+ outputs: [
3424
+ {
3425
+ name: '',
3426
+ type: 'bytes32',
3427
+ },
3428
+ ],
3429
+ },
3430
+ {
3431
+ stateMutability: 'view',
3432
+ type: 'function',
3433
+ name: 'getAddLiquidityConcentratedHash',
3434
+ inputs: [
3435
+ {
3436
+ name: '_agentWrapper',
3437
+ type: 'address',
3438
+ },
3439
+ {
3440
+ name: '_userWallet',
3441
+ type: 'address',
3442
+ },
3443
+ {
3444
+ name: '_legoId',
3445
+ type: 'uint256',
3446
+ },
3447
+ {
3448
+ name: '_nftAddr',
3449
+ type: 'address',
3450
+ },
3451
+ {
3452
+ name: '_nftTokenId',
3453
+ type: 'uint256',
3454
+ },
3455
+ {
3456
+ name: '_pool',
3457
+ type: 'address',
3458
+ },
3459
+ {
3460
+ name: '_tokenA',
3461
+ type: 'address',
3462
+ },
3463
+ {
3464
+ name: '_tokenB',
3465
+ type: 'address',
3466
+ },
3467
+ ],
3468
+ outputs: [
3469
+ {
3470
+ name: '',
3471
+ type: 'bytes32',
3472
+ },
3473
+ ],
3474
+ },
3475
+ {
3476
+ stateMutability: 'view',
3477
+ type: 'function',
3478
+ name: 'getAddLiquidityConcentratedHash',
3479
+ inputs: [
3480
+ {
3481
+ name: '_agentWrapper',
3482
+ type: 'address',
3483
+ },
3484
+ {
3485
+ name: '_userWallet',
3486
+ type: 'address',
3487
+ },
3488
+ {
3489
+ name: '_legoId',
3490
+ type: 'uint256',
3491
+ },
3492
+ {
3493
+ name: '_nftAddr',
3494
+ type: 'address',
3495
+ },
3496
+ {
3497
+ name: '_nftTokenId',
3498
+ type: 'uint256',
3499
+ },
3500
+ {
3501
+ name: '_pool',
3502
+ type: 'address',
3503
+ },
3504
+ {
3505
+ name: '_tokenA',
3506
+ type: 'address',
3507
+ },
3508
+ {
3509
+ name: '_tokenB',
3510
+ type: 'address',
3511
+ },
3512
+ {
3513
+ name: '_amountA',
3514
+ type: 'uint256',
3515
+ },
3516
+ ],
3517
+ outputs: [
3518
+ {
3519
+ name: '',
3520
+ type: 'bytes32',
3521
+ },
3522
+ ],
3523
+ },
3524
+ {
3525
+ stateMutability: 'view',
3526
+ type: 'function',
3527
+ name: 'getAddLiquidityConcentratedHash',
3528
+ inputs: [
3529
+ {
3530
+ name: '_agentWrapper',
3531
+ type: 'address',
3532
+ },
3533
+ {
3534
+ name: '_userWallet',
3535
+ type: 'address',
3536
+ },
3537
+ {
3538
+ name: '_legoId',
3539
+ type: 'uint256',
3540
+ },
3541
+ {
3542
+ name: '_nftAddr',
3543
+ type: 'address',
3544
+ },
3545
+ {
3546
+ name: '_nftTokenId',
3547
+ type: 'uint256',
3548
+ },
3549
+ {
3550
+ name: '_pool',
3551
+ type: 'address',
3552
+ },
3553
+ {
3554
+ name: '_tokenA',
3555
+ type: 'address',
3556
+ },
3557
+ {
3558
+ name: '_tokenB',
3559
+ type: 'address',
3560
+ },
3561
+ {
3562
+ name: '_amountA',
3563
+ type: 'uint256',
3564
+ },
3565
+ {
3566
+ name: '_amountB',
3567
+ type: 'uint256',
3568
+ },
3569
+ ],
3570
+ outputs: [
3571
+ {
3572
+ name: '',
3573
+ type: 'bytes32',
3574
+ },
3575
+ ],
3576
+ },
3577
+ {
3578
+ stateMutability: 'view',
3579
+ type: 'function',
3580
+ name: 'getAddLiquidityConcentratedHash',
3581
+ inputs: [
3582
+ {
3583
+ name: '_agentWrapper',
3584
+ type: 'address',
3585
+ },
3586
+ {
3587
+ name: '_userWallet',
3588
+ type: 'address',
3589
+ },
3590
+ {
3591
+ name: '_legoId',
3592
+ type: 'uint256',
3593
+ },
3594
+ {
3595
+ name: '_nftAddr',
3596
+ type: 'address',
3597
+ },
3598
+ {
3599
+ name: '_nftTokenId',
3600
+ type: 'uint256',
3601
+ },
3602
+ {
3603
+ name: '_pool',
3604
+ type: 'address',
3605
+ },
3606
+ {
3607
+ name: '_tokenA',
3608
+ type: 'address',
3609
+ },
3610
+ {
3611
+ name: '_tokenB',
3612
+ type: 'address',
3613
+ },
3614
+ {
3615
+ name: '_amountA',
3616
+ type: 'uint256',
3617
+ },
3618
+ {
3619
+ name: '_amountB',
3620
+ type: 'uint256',
3621
+ },
3622
+ {
3623
+ name: '_tickLower',
3624
+ type: 'int24',
3625
+ },
3626
+ ],
3627
+ outputs: [
3628
+ {
3629
+ name: '',
3630
+ type: 'bytes32',
3631
+ },
3632
+ ],
3633
+ },
3634
+ {
3635
+ stateMutability: 'view',
3636
+ type: 'function',
3637
+ name: 'getAddLiquidityConcentratedHash',
3638
+ inputs: [
3639
+ {
3640
+ name: '_agentWrapper',
3641
+ type: 'address',
3642
+ },
3643
+ {
3644
+ name: '_userWallet',
3645
+ type: 'address',
3646
+ },
3647
+ {
3648
+ name: '_legoId',
3649
+ type: 'uint256',
3650
+ },
3651
+ {
3652
+ name: '_nftAddr',
3653
+ type: 'address',
3654
+ },
3655
+ {
3656
+ name: '_nftTokenId',
3657
+ type: 'uint256',
3658
+ },
3659
+ {
3660
+ name: '_pool',
3661
+ type: 'address',
3662
+ },
3663
+ {
3664
+ name: '_tokenA',
3665
+ type: 'address',
3666
+ },
3667
+ {
3668
+ name: '_tokenB',
3669
+ type: 'address',
3670
+ },
3671
+ {
3672
+ name: '_amountA',
3673
+ type: 'uint256',
3674
+ },
3675
+ {
3676
+ name: '_amountB',
3677
+ type: 'uint256',
3678
+ },
3679
+ {
3680
+ name: '_tickLower',
3681
+ type: 'int24',
3682
+ },
3683
+ {
3684
+ name: '_tickUpper',
3685
+ type: 'int24',
3686
+ },
3687
+ ],
3688
+ outputs: [
3689
+ {
3690
+ name: '',
3691
+ type: 'bytes32',
3692
+ },
3693
+ ],
3694
+ },
3695
+ {
3696
+ stateMutability: 'view',
3697
+ type: 'function',
3698
+ name: 'getAddLiquidityConcentratedHash',
3699
+ inputs: [
3700
+ {
3701
+ name: '_agentWrapper',
3702
+ type: 'address',
3703
+ },
3704
+ {
3705
+ name: '_userWallet',
3706
+ type: 'address',
3707
+ },
3708
+ {
3709
+ name: '_legoId',
3710
+ type: 'uint256',
3711
+ },
3712
+ {
3713
+ name: '_nftAddr',
3714
+ type: 'address',
3715
+ },
3716
+ {
3717
+ name: '_nftTokenId',
3718
+ type: 'uint256',
3719
+ },
3720
+ {
3721
+ name: '_pool',
3722
+ type: 'address',
3723
+ },
3724
+ {
3725
+ name: '_tokenA',
3726
+ type: 'address',
3727
+ },
3728
+ {
3729
+ name: '_tokenB',
3730
+ type: 'address',
3731
+ },
3732
+ {
3733
+ name: '_amountA',
3734
+ type: 'uint256',
3735
+ },
3736
+ {
3737
+ name: '_amountB',
3738
+ type: 'uint256',
3739
+ },
3740
+ {
3741
+ name: '_tickLower',
3742
+ type: 'int24',
3743
+ },
3744
+ {
3745
+ name: '_tickUpper',
3746
+ type: 'int24',
3747
+ },
3748
+ {
3749
+ name: '_minAmountA',
3750
+ type: 'uint256',
3751
+ },
3752
+ ],
3753
+ outputs: [
3754
+ {
3755
+ name: '',
3756
+ type: 'bytes32',
3757
+ },
3758
+ ],
3759
+ },
3760
+ {
3761
+ stateMutability: 'view',
3762
+ type: 'function',
3763
+ name: 'getAddLiquidityConcentratedHash',
3764
+ inputs: [
3765
+ {
3766
+ name: '_agentWrapper',
3767
+ type: 'address',
3768
+ },
3769
+ {
3770
+ name: '_userWallet',
3771
+ type: 'address',
3772
+ },
3773
+ {
3774
+ name: '_legoId',
3775
+ type: 'uint256',
3776
+ },
3777
+ {
3778
+ name: '_nftAddr',
3779
+ type: 'address',
3780
+ },
3781
+ {
3782
+ name: '_nftTokenId',
3783
+ type: 'uint256',
3784
+ },
3785
+ {
3786
+ name: '_pool',
3787
+ type: 'address',
3788
+ },
3789
+ {
3790
+ name: '_tokenA',
3791
+ type: 'address',
3792
+ },
3793
+ {
3794
+ name: '_tokenB',
3795
+ type: 'address',
3796
+ },
3797
+ {
3798
+ name: '_amountA',
3799
+ type: 'uint256',
3800
+ },
3801
+ {
3802
+ name: '_amountB',
3803
+ type: 'uint256',
3804
+ },
3805
+ {
3806
+ name: '_tickLower',
3807
+ type: 'int24',
3808
+ },
3809
+ {
3810
+ name: '_tickUpper',
3811
+ type: 'int24',
3812
+ },
3813
+ {
3814
+ name: '_minAmountA',
3815
+ type: 'uint256',
3816
+ },
3817
+ {
3818
+ name: '_minAmountB',
3819
+ type: 'uint256',
3820
+ },
3821
+ ],
3822
+ outputs: [
3823
+ {
3824
+ name: '',
3825
+ type: 'bytes32',
3826
+ },
3827
+ ],
3828
+ },
3829
+ {
3830
+ stateMutability: 'view',
3831
+ type: 'function',
3832
+ name: 'getAddLiquidityConcentratedHash',
3833
+ inputs: [
3834
+ {
3835
+ name: '_agentWrapper',
3836
+ type: 'address',
3837
+ },
3838
+ {
3839
+ name: '_userWallet',
3840
+ type: 'address',
3841
+ },
3842
+ {
3843
+ name: '_legoId',
3844
+ type: 'uint256',
3845
+ },
3846
+ {
3847
+ name: '_nftAddr',
3848
+ type: 'address',
3849
+ },
3850
+ {
3851
+ name: '_nftTokenId',
3852
+ type: 'uint256',
3853
+ },
3854
+ {
3855
+ name: '_pool',
3856
+ type: 'address',
3857
+ },
3858
+ {
3859
+ name: '_tokenA',
3860
+ type: 'address',
3861
+ },
3862
+ {
3863
+ name: '_tokenB',
3864
+ type: 'address',
3865
+ },
3866
+ {
3867
+ name: '_amountA',
3868
+ type: 'uint256',
3869
+ },
3870
+ {
3871
+ name: '_amountB',
3872
+ type: 'uint256',
3873
+ },
3874
+ {
3875
+ name: '_tickLower',
3876
+ type: 'int24',
3877
+ },
3878
+ {
3879
+ name: '_tickUpper',
3880
+ type: 'int24',
3881
+ },
3882
+ {
3883
+ name: '_minAmountA',
3884
+ type: 'uint256',
3885
+ },
3886
+ {
3887
+ name: '_minAmountB',
3888
+ type: 'uint256',
3889
+ },
3890
+ {
3891
+ name: '_extraData',
3892
+ type: 'bytes32',
3893
+ },
3894
+ ],
3895
+ outputs: [
3896
+ {
3897
+ name: '',
3898
+ type: 'bytes32',
3899
+ },
3900
+ ],
3901
+ },
3902
+ {
3903
+ stateMutability: 'view',
3904
+ type: 'function',
3905
+ name: 'getAddLiquidityConcentratedHash',
3906
+ inputs: [
3907
+ {
3908
+ name: '_agentWrapper',
3909
+ type: 'address',
3910
+ },
3911
+ {
3912
+ name: '_userWallet',
3913
+ type: 'address',
3914
+ },
3915
+ {
3916
+ name: '_legoId',
3917
+ type: 'uint256',
3918
+ },
3919
+ {
3920
+ name: '_nftAddr',
3921
+ type: 'address',
3922
+ },
3923
+ {
3924
+ name: '_nftTokenId',
3925
+ type: 'uint256',
3926
+ },
3927
+ {
3928
+ name: '_pool',
3929
+ type: 'address',
3930
+ },
3931
+ {
3932
+ name: '_tokenA',
3933
+ type: 'address',
3934
+ },
3935
+ {
3936
+ name: '_tokenB',
3937
+ type: 'address',
3938
+ },
3939
+ {
3940
+ name: '_amountA',
3941
+ type: 'uint256',
3942
+ },
3943
+ {
3944
+ name: '_amountB',
3945
+ type: 'uint256',
3946
+ },
3947
+ {
3948
+ name: '_tickLower',
3949
+ type: 'int24',
3950
+ },
3951
+ {
3952
+ name: '_tickUpper',
3953
+ type: 'int24',
3954
+ },
3955
+ {
3956
+ name: '_minAmountA',
3957
+ type: 'uint256',
3958
+ },
3959
+ {
3960
+ name: '_minAmountB',
3961
+ type: 'uint256',
3962
+ },
3963
+ {
3964
+ name: '_extraData',
3965
+ type: 'bytes32',
3966
+ },
3967
+ {
3968
+ name: '_nonce',
3969
+ type: 'uint256',
3970
+ },
3971
+ ],
3972
+ outputs: [
3973
+ {
3974
+ name: '',
3975
+ type: 'bytes32',
3976
+ },
3977
+ ],
3978
+ },
3979
+ {
3980
+ stateMutability: 'view',
3981
+ type: 'function',
3982
+ name: 'getAddLiquidityConcentratedHash',
3983
+ inputs: [
3984
+ {
3985
+ name: '_agentWrapper',
3986
+ type: 'address',
3987
+ },
3988
+ {
3989
+ name: '_userWallet',
3990
+ type: 'address',
3991
+ },
3992
+ {
3993
+ name: '_legoId',
3994
+ type: 'uint256',
3995
+ },
3996
+ {
3997
+ name: '_nftAddr',
3998
+ type: 'address',
3999
+ },
4000
+ {
4001
+ name: '_nftTokenId',
4002
+ type: 'uint256',
4003
+ },
4004
+ {
4005
+ name: '_pool',
4006
+ type: 'address',
4007
+ },
4008
+ {
4009
+ name: '_tokenA',
4010
+ type: 'address',
4011
+ },
4012
+ {
4013
+ name: '_tokenB',
4014
+ type: 'address',
4015
+ },
4016
+ {
4017
+ name: '_amountA',
4018
+ type: 'uint256',
4019
+ },
4020
+ {
4021
+ name: '_amountB',
4022
+ type: 'uint256',
4023
+ },
4024
+ {
4025
+ name: '_tickLower',
4026
+ type: 'int24',
4027
+ },
4028
+ {
4029
+ name: '_tickUpper',
4030
+ type: 'int24',
4031
+ },
4032
+ {
4033
+ name: '_minAmountA',
4034
+ type: 'uint256',
4035
+ },
4036
+ {
4037
+ name: '_minAmountB',
4038
+ type: 'uint256',
4039
+ },
4040
+ {
4041
+ name: '_extraData',
4042
+ type: 'bytes32',
4043
+ },
4044
+ {
4045
+ name: '_nonce',
4046
+ type: 'uint256',
4047
+ },
4048
+ {
4049
+ name: '_expiration',
4050
+ type: 'uint256',
4051
+ },
4052
+ ],
4053
+ outputs: [
4054
+ {
4055
+ name: '',
4056
+ type: 'bytes32',
4057
+ },
4058
+ ],
4059
+ },
4060
+ {
4061
+ stateMutability: 'view',
4062
+ type: 'function',
4063
+ name: 'getRemoveLiquidityConcentratedHash',
4064
+ inputs: [
4065
+ {
4066
+ name: '_agentWrapper',
4067
+ type: 'address',
4068
+ },
4069
+ {
4070
+ name: '_userWallet',
4071
+ type: 'address',
4072
+ },
4073
+ {
4074
+ name: '_legoId',
4075
+ type: 'uint256',
4076
+ },
4077
+ {
4078
+ name: '_nftAddr',
4079
+ type: 'address',
4080
+ },
4081
+ {
4082
+ name: '_nftTokenId',
4083
+ type: 'uint256',
4084
+ },
4085
+ {
4086
+ name: '_pool',
4087
+ type: 'address',
4088
+ },
4089
+ {
4090
+ name: '_tokenA',
4091
+ type: 'address',
4092
+ },
4093
+ {
4094
+ name: '_tokenB',
4095
+ type: 'address',
4096
+ },
4097
+ ],
4098
+ outputs: [
4099
+ {
4100
+ name: '',
4101
+ type: 'bytes32',
4102
+ },
4103
+ ],
4104
+ },
4105
+ {
4106
+ stateMutability: 'view',
4107
+ type: 'function',
4108
+ name: 'getRemoveLiquidityConcentratedHash',
4109
+ inputs: [
4110
+ {
4111
+ name: '_agentWrapper',
4112
+ type: 'address',
4113
+ },
4114
+ {
4115
+ name: '_userWallet',
4116
+ type: 'address',
4117
+ },
4118
+ {
4119
+ name: '_legoId',
4120
+ type: 'uint256',
4121
+ },
4122
+ {
4123
+ name: '_nftAddr',
4124
+ type: 'address',
4125
+ },
4126
+ {
4127
+ name: '_nftTokenId',
4128
+ type: 'uint256',
4129
+ },
4130
+ {
4131
+ name: '_pool',
4132
+ type: 'address',
4133
+ },
4134
+ {
4135
+ name: '_tokenA',
4136
+ type: 'address',
4137
+ },
4138
+ {
4139
+ name: '_tokenB',
4140
+ type: 'address',
4141
+ },
4142
+ {
4143
+ name: '_liqToRemove',
4144
+ type: 'uint256',
4145
+ },
4146
+ ],
4147
+ outputs: [
4148
+ {
4149
+ name: '',
4150
+ type: 'bytes32',
4151
+ },
4152
+ ],
4153
+ },
4154
+ {
4155
+ stateMutability: 'view',
4156
+ type: 'function',
4157
+ name: 'getRemoveLiquidityConcentratedHash',
4158
+ inputs: [
4159
+ {
4160
+ name: '_agentWrapper',
4161
+ type: 'address',
4162
+ },
4163
+ {
4164
+ name: '_userWallet',
4165
+ type: 'address',
4166
+ },
4167
+ {
4168
+ name: '_legoId',
4169
+ type: 'uint256',
4170
+ },
4171
+ {
4172
+ name: '_nftAddr',
4173
+ type: 'address',
4174
+ },
4175
+ {
4176
+ name: '_nftTokenId',
4177
+ type: 'uint256',
4178
+ },
4179
+ {
4180
+ name: '_pool',
4181
+ type: 'address',
4182
+ },
4183
+ {
4184
+ name: '_tokenA',
4185
+ type: 'address',
4186
+ },
4187
+ {
4188
+ name: '_tokenB',
4189
+ type: 'address',
4190
+ },
4191
+ {
4192
+ name: '_liqToRemove',
4193
+ type: 'uint256',
4194
+ },
4195
+ {
4196
+ name: '_minAmountA',
4197
+ type: 'uint256',
4198
+ },
4199
+ ],
4200
+ outputs: [
4201
+ {
4202
+ name: '',
4203
+ type: 'bytes32',
4204
+ },
4205
+ ],
4206
+ },
4207
+ {
4208
+ stateMutability: 'view',
4209
+ type: 'function',
4210
+ name: 'getRemoveLiquidityConcentratedHash',
4211
+ inputs: [
4212
+ {
4213
+ name: '_agentWrapper',
4214
+ type: 'address',
4215
+ },
4216
+ {
4217
+ name: '_userWallet',
4218
+ type: 'address',
4219
+ },
4220
+ {
4221
+ name: '_legoId',
4222
+ type: 'uint256',
4223
+ },
4224
+ {
4225
+ name: '_nftAddr',
4226
+ type: 'address',
4227
+ },
4228
+ {
4229
+ name: '_nftTokenId',
4230
+ type: 'uint256',
4231
+ },
4232
+ {
4233
+ name: '_pool',
4234
+ type: 'address',
4235
+ },
4236
+ {
4237
+ name: '_tokenA',
4238
+ type: 'address',
4239
+ },
4240
+ {
4241
+ name: '_tokenB',
4242
+ type: 'address',
4243
+ },
4244
+ {
4245
+ name: '_liqToRemove',
4246
+ type: 'uint256',
4247
+ },
4248
+ {
4249
+ name: '_minAmountA',
4250
+ type: 'uint256',
4251
+ },
4252
+ {
4253
+ name: '_minAmountB',
4254
+ type: 'uint256',
4255
+ },
4256
+ ],
4257
+ outputs: [
4258
+ {
4259
+ name: '',
4260
+ type: 'bytes32',
4261
+ },
4262
+ ],
4263
+ },
4264
+ {
4265
+ stateMutability: 'view',
4266
+ type: 'function',
4267
+ name: 'getRemoveLiquidityConcentratedHash',
4268
+ inputs: [
4269
+ {
4270
+ name: '_agentWrapper',
4271
+ type: 'address',
4272
+ },
4273
+ {
4274
+ name: '_userWallet',
4275
+ type: 'address',
4276
+ },
4277
+ {
4278
+ name: '_legoId',
4279
+ type: 'uint256',
4280
+ },
4281
+ {
4282
+ name: '_nftAddr',
4283
+ type: 'address',
4284
+ },
4285
+ {
4286
+ name: '_nftTokenId',
4287
+ type: 'uint256',
4288
+ },
4289
+ {
4290
+ name: '_pool',
4291
+ type: 'address',
4292
+ },
4293
+ {
4294
+ name: '_tokenA',
4295
+ type: 'address',
4296
+ },
4297
+ {
4298
+ name: '_tokenB',
4299
+ type: 'address',
4300
+ },
4301
+ {
4302
+ name: '_liqToRemove',
4303
+ type: 'uint256',
4304
+ },
4305
+ {
4306
+ name: '_minAmountA',
4307
+ type: 'uint256',
4308
+ },
4309
+ {
4310
+ name: '_minAmountB',
4311
+ type: 'uint256',
4312
+ },
4313
+ {
4314
+ name: '_extraData',
4315
+ type: 'bytes32',
4316
+ },
4317
+ ],
4318
+ outputs: [
4319
+ {
4320
+ name: '',
4321
+ type: 'bytes32',
4322
+ },
4323
+ ],
4324
+ },
4325
+ {
4326
+ stateMutability: 'view',
4327
+ type: 'function',
4328
+ name: 'getRemoveLiquidityConcentratedHash',
4329
+ inputs: [
4330
+ {
4331
+ name: '_agentWrapper',
4332
+ type: 'address',
4333
+ },
4334
+ {
4335
+ name: '_userWallet',
4336
+ type: 'address',
4337
+ },
4338
+ {
4339
+ name: '_legoId',
4340
+ type: 'uint256',
4341
+ },
4342
+ {
4343
+ name: '_nftAddr',
4344
+ type: 'address',
4345
+ },
4346
+ {
4347
+ name: '_nftTokenId',
4348
+ type: 'uint256',
4349
+ },
4350
+ {
4351
+ name: '_pool',
4352
+ type: 'address',
4353
+ },
4354
+ {
4355
+ name: '_tokenA',
4356
+ type: 'address',
4357
+ },
4358
+ {
4359
+ name: '_tokenB',
4360
+ type: 'address',
4361
+ },
4362
+ {
4363
+ name: '_liqToRemove',
4364
+ type: 'uint256',
4365
+ },
4366
+ {
4367
+ name: '_minAmountA',
4368
+ type: 'uint256',
4369
+ },
4370
+ {
4371
+ name: '_minAmountB',
4372
+ type: 'uint256',
4373
+ },
4374
+ {
4375
+ name: '_extraData',
4376
+ type: 'bytes32',
4377
+ },
4378
+ {
4379
+ name: '_nonce',
4380
+ type: 'uint256',
4381
+ },
4382
+ ],
4383
+ outputs: [
4384
+ {
4385
+ name: '',
4386
+ type: 'bytes32',
4387
+ },
4388
+ ],
4389
+ },
4390
+ {
4391
+ stateMutability: 'view',
4392
+ type: 'function',
4393
+ name: 'getRemoveLiquidityConcentratedHash',
4394
+ inputs: [
4395
+ {
4396
+ name: '_agentWrapper',
4397
+ type: 'address',
4398
+ },
4399
+ {
4400
+ name: '_userWallet',
4401
+ type: 'address',
4402
+ },
4403
+ {
4404
+ name: '_legoId',
4405
+ type: 'uint256',
4406
+ },
4407
+ {
4408
+ name: '_nftAddr',
4409
+ type: 'address',
4410
+ },
4411
+ {
4412
+ name: '_nftTokenId',
4413
+ type: 'uint256',
4414
+ },
4415
+ {
4416
+ name: '_pool',
4417
+ type: 'address',
4418
+ },
4419
+ {
4420
+ name: '_tokenA',
4421
+ type: 'address',
4422
+ },
4423
+ {
4424
+ name: '_tokenB',
4425
+ type: 'address',
4426
+ },
4427
+ {
4428
+ name: '_liqToRemove',
4429
+ type: 'uint256',
4430
+ },
4431
+ {
4432
+ name: '_minAmountA',
4433
+ type: 'uint256',
4434
+ },
4435
+ {
4436
+ name: '_minAmountB',
4437
+ type: 'uint256',
4438
+ },
4439
+ {
4440
+ name: '_extraData',
4441
+ type: 'bytes32',
4442
+ },
4443
+ {
4444
+ name: '_nonce',
4445
+ type: 'uint256',
4446
+ },
4447
+ {
4448
+ name: '_expiration',
4449
+ type: 'uint256',
4450
+ },
4451
+ ],
4452
+ outputs: [
4453
+ {
4454
+ name: '',
4455
+ type: 'bytes32',
4456
+ },
4457
+ ],
4458
+ },
4459
+ {
4460
+ stateMutability: 'view',
4461
+ type: 'function',
4462
+ name: 'getBatchActionsHash',
4463
+ inputs: [
4464
+ {
4465
+ name: '_agentWrapper',
4466
+ type: 'address',
4467
+ },
4468
+ {
4469
+ name: '_userWallet',
4470
+ type: 'address',
4471
+ },
4472
+ {
4473
+ name: '_instructions',
4474
+ type: 'tuple[]',
4475
+ components: [
4476
+ {
4477
+ name: 'usePrevAmountOut',
4478
+ type: 'bool',
4479
+ },
4480
+ {
4481
+ name: 'action',
4482
+ type: 'uint8',
4483
+ },
4484
+ {
4485
+ name: 'legoId',
4486
+ type: 'uint16',
4487
+ },
4488
+ {
4489
+ name: 'asset',
4490
+ type: 'address',
4491
+ },
4492
+ {
4493
+ name: 'target',
4494
+ type: 'address',
4495
+ },
4496
+ {
4497
+ name: 'amount',
4498
+ type: 'uint256',
4499
+ },
4500
+ {
4501
+ name: 'asset2',
4502
+ type: 'address',
4503
+ },
4504
+ {
4505
+ name: 'amount2',
4506
+ type: 'uint256',
4507
+ },
4508
+ {
4509
+ name: 'minOut1',
4510
+ type: 'uint256',
4511
+ },
4512
+ {
4513
+ name: 'minOut2',
4514
+ type: 'uint256',
4515
+ },
4516
+ {
4517
+ name: 'tickLower',
4518
+ type: 'int24',
4519
+ },
4520
+ {
4521
+ name: 'tickUpper',
4522
+ type: 'int24',
4523
+ },
4524
+ {
4525
+ name: 'extraData',
4526
+ type: 'bytes32',
4527
+ },
4528
+ {
4529
+ name: 'auxData',
4530
+ type: 'bytes32',
4531
+ },
4532
+ {
4533
+ name: 'swapInstructions',
4534
+ type: 'tuple[]',
4535
+ components: [
4536
+ {
4537
+ name: 'legoId',
4538
+ type: 'uint256',
4539
+ },
4540
+ {
4541
+ name: 'amountIn',
4542
+ type: 'uint256',
4543
+ },
4544
+ {
4545
+ name: 'minAmountOut',
4546
+ type: 'uint256',
4547
+ },
4548
+ {
4549
+ name: 'tokenPath',
4550
+ type: 'address[]',
4551
+ },
4552
+ {
4553
+ name: 'poolPath',
4554
+ type: 'address[]',
4555
+ },
4556
+ ],
4557
+ },
4558
+ ],
4559
+ },
4560
+ ],
4561
+ outputs: [
4562
+ {
4563
+ name: '',
4564
+ type: 'bytes32',
4565
+ },
4566
+ ],
4567
+ },
4568
+ {
4569
+ stateMutability: 'view',
4570
+ type: 'function',
4571
+ name: 'getBatchActionsHash',
4572
+ inputs: [
4573
+ {
4574
+ name: '_agentWrapper',
4575
+ type: 'address',
4576
+ },
4577
+ {
4578
+ name: '_userWallet',
4579
+ type: 'address',
4580
+ },
4581
+ {
4582
+ name: '_instructions',
4583
+ type: 'tuple[]',
4584
+ components: [
4585
+ {
4586
+ name: 'usePrevAmountOut',
4587
+ type: 'bool',
4588
+ },
4589
+ {
4590
+ name: 'action',
4591
+ type: 'uint8',
4592
+ },
4593
+ {
4594
+ name: 'legoId',
4595
+ type: 'uint16',
4596
+ },
4597
+ {
4598
+ name: 'asset',
4599
+ type: 'address',
4600
+ },
4601
+ {
4602
+ name: 'target',
4603
+ type: 'address',
4604
+ },
4605
+ {
4606
+ name: 'amount',
4607
+ type: 'uint256',
4608
+ },
4609
+ {
4610
+ name: 'asset2',
4611
+ type: 'address',
4612
+ },
4613
+ {
4614
+ name: 'amount2',
4615
+ type: 'uint256',
4616
+ },
4617
+ {
4618
+ name: 'minOut1',
4619
+ type: 'uint256',
4620
+ },
4621
+ {
4622
+ name: 'minOut2',
4623
+ type: 'uint256',
4624
+ },
4625
+ {
4626
+ name: 'tickLower',
4627
+ type: 'int24',
4628
+ },
4629
+ {
4630
+ name: 'tickUpper',
4631
+ type: 'int24',
4632
+ },
4633
+ {
4634
+ name: 'extraData',
4635
+ type: 'bytes32',
4636
+ },
4637
+ {
4638
+ name: 'auxData',
4639
+ type: 'bytes32',
4640
+ },
4641
+ {
4642
+ name: 'swapInstructions',
4643
+ type: 'tuple[]',
4644
+ components: [
4645
+ {
4646
+ name: 'legoId',
4647
+ type: 'uint256',
4648
+ },
4649
+ {
4650
+ name: 'amountIn',
4651
+ type: 'uint256',
4652
+ },
4653
+ {
4654
+ name: 'minAmountOut',
4655
+ type: 'uint256',
4656
+ },
4657
+ {
4658
+ name: 'tokenPath',
4659
+ type: 'address[]',
4660
+ },
4661
+ {
4662
+ name: 'poolPath',
4663
+ type: 'address[]',
4664
+ },
4665
+ ],
4666
+ },
4667
+ ],
4668
+ },
4669
+ {
4670
+ name: '_nonce',
4671
+ type: 'uint256',
4672
+ },
4673
+ ],
4674
+ outputs: [
4675
+ {
4676
+ name: '',
4677
+ type: 'bytes32',
4678
+ },
4679
+ ],
4680
+ },
4681
+ {
4682
+ stateMutability: 'view',
4683
+ type: 'function',
4684
+ name: 'getBatchActionsHash',
4685
+ inputs: [
4686
+ {
4687
+ name: '_agentWrapper',
4688
+ type: 'address',
4689
+ },
4690
+ {
4691
+ name: '_userWallet',
4692
+ type: 'address',
4693
+ },
4694
+ {
4695
+ name: '_instructions',
4696
+ type: 'tuple[]',
4697
+ components: [
4698
+ {
4699
+ name: 'usePrevAmountOut',
4700
+ type: 'bool',
4701
+ },
4702
+ {
4703
+ name: 'action',
4704
+ type: 'uint8',
4705
+ },
4706
+ {
4707
+ name: 'legoId',
4708
+ type: 'uint16',
4709
+ },
4710
+ {
4711
+ name: 'asset',
4712
+ type: 'address',
4713
+ },
4714
+ {
4715
+ name: 'target',
4716
+ type: 'address',
4717
+ },
4718
+ {
4719
+ name: 'amount',
4720
+ type: 'uint256',
4721
+ },
4722
+ {
4723
+ name: 'asset2',
4724
+ type: 'address',
4725
+ },
4726
+ {
4727
+ name: 'amount2',
4728
+ type: 'uint256',
4729
+ },
4730
+ {
4731
+ name: 'minOut1',
4732
+ type: 'uint256',
4733
+ },
4734
+ {
4735
+ name: 'minOut2',
4736
+ type: 'uint256',
4737
+ },
4738
+ {
4739
+ name: 'tickLower',
4740
+ type: 'int24',
4741
+ },
4742
+ {
4743
+ name: 'tickUpper',
4744
+ type: 'int24',
4745
+ },
4746
+ {
4747
+ name: 'extraData',
4748
+ type: 'bytes32',
4749
+ },
4750
+ {
4751
+ name: 'auxData',
4752
+ type: 'bytes32',
4753
+ },
4754
+ {
4755
+ name: 'swapInstructions',
4756
+ type: 'tuple[]',
4757
+ components: [
4758
+ {
4759
+ name: 'legoId',
4760
+ type: 'uint256',
4761
+ },
4762
+ {
4763
+ name: 'amountIn',
4764
+ type: 'uint256',
4765
+ },
4766
+ {
4767
+ name: 'minAmountOut',
4768
+ type: 'uint256',
4769
+ },
4770
+ {
4771
+ name: 'tokenPath',
4772
+ type: 'address[]',
4773
+ },
4774
+ {
4775
+ name: 'poolPath',
4776
+ type: 'address[]',
4777
+ },
4778
+ ],
4779
+ },
4780
+ ],
4781
+ },
4782
+ {
4783
+ name: '_nonce',
4784
+ type: 'uint256',
4785
+ },
4786
+ {
4787
+ name: '_expiration',
4788
+ type: 'uint256',
4789
+ },
4790
+ ],
4791
+ outputs: [
4792
+ {
4793
+ name: '',
4794
+ type: 'bytes32',
4795
+ },
4796
+ ],
4797
+ },
4798
+ ];
4799
+ export const deployAddress = '0xbB91e5C8DA9b7D5c88d8B8Dfa4Da1Be7F7355cA2';
4800
+ function getRequest(method, args, contractAddressOrOptions) {
4801
+ const address = typeof contractAddressOrOptions === 'string' ? contractAddressOrOptions : contractAddressOrOptions?.contractAddress;
4802
+ const defaultValue = typeof contractAddressOrOptions === 'string' ? undefined : contractAddressOrOptions?.defaultValue;
4803
+ const call = {
4804
+ contractName: 'SignatureHelper',
4805
+ method,
4806
+ args,
4807
+ address,
4808
+ deployAddress,
4809
+ defaultValue,
4810
+ getAbi: () => abi,
4811
+ with: (options) => {
4812
+ call.address = options.contractAddress;
4813
+ call.defaultValue = options.defaultValue;
4814
+ return call;
4815
+ },
4816
+ defaultTo: (defaultValue) => {
4817
+ call.defaultValue = defaultValue;
4818
+ return call;
4819
+ },
4820
+ at: (address) => {
4821
+ call.address = address;
4822
+ return call;
4823
+ },
4824
+ };
4825
+ return call;
4826
+ }
4827
+ export const call = {
4828
+ getTransferFundsHash: (...args) => getRequest('getTransferFundsHash', args),
4829
+ getDepositForYieldHash: (...args) => getRequest('getDepositForYieldHash', args),
4830
+ getWithdrawFromYieldHash: (...args) => getRequest('getWithdrawFromYieldHash', args),
4831
+ getRebalanceYieldPositionHash: (...args) => getRequest('getRebalanceYieldPositionHash', args),
4832
+ getSwapTokensHash: (...args) => getRequest('getSwapTokensHash', args),
4833
+ getMintOrRedeemAssetHash: (...args) => getRequest('getMintOrRedeemAssetHash', args),
4834
+ getConfirmMintOrRedeemAssetHash: (...args) => getRequest('getConfirmMintOrRedeemAssetHash', args),
4835
+ getAddCollateralHash: (...args) => getRequest('getAddCollateralHash', args),
4836
+ getRemoveCollateralHash: (...args) => getRequest('getRemoveCollateralHash', args),
4837
+ getBorrowHash: (...args) => getRequest('getBorrowHash', args),
4838
+ getRepayDebtHash: (...args) => getRequest('getRepayDebtHash', args),
4839
+ getClaimRewardsHash: (...args) => getRequest('getClaimRewardsHash', args),
4840
+ getConvertWethToEthHash: (...args) => getRequest('getConvertWethToEthHash', args),
4841
+ getConvertEthToWethHash: (...args) => getRequest('getConvertEthToWethHash', args),
4842
+ getAddLiquidityHash: (...args) => getRequest('getAddLiquidityHash', args),
4843
+ getRemoveLiquidityHash: (...args) => getRequest('getRemoveLiquidityHash', args),
4844
+ getAddLiquidityConcentratedHash: (...args) => getRequest('getAddLiquidityConcentratedHash', args),
4845
+ getRemoveLiquidityConcentratedHash: (...args) => getRequest('getRemoveLiquidityConcentratedHash', args),
4846
+ getBatchActionsHash: (...args) => getRequest('getBatchActionsHash', args),
4847
+ };
4848
+ export function toSdk(publicClient, walletClient) {
4849
+ return {
4850
+ deployAddress,
4851
+ abi,
4852
+ // Queries
4853
+ getTransferFundsHash: (...args) => singleQuery(publicClient, call.getTransferFundsHash(...args)),
4854
+ getDepositForYieldHash: (...args) => singleQuery(publicClient, call.getDepositForYieldHash(...args)),
4855
+ getWithdrawFromYieldHash: (...args) => singleQuery(publicClient, call.getWithdrawFromYieldHash(...args)),
4856
+ getRebalanceYieldPositionHash: (...args) => singleQuery(publicClient, call.getRebalanceYieldPositionHash(...args)),
4857
+ getSwapTokensHash: (...args) => singleQuery(publicClient, call.getSwapTokensHash(...args)),
4858
+ getMintOrRedeemAssetHash: (...args) => singleQuery(publicClient, call.getMintOrRedeemAssetHash(...args)),
4859
+ getConfirmMintOrRedeemAssetHash: (...args) => singleQuery(publicClient, call.getConfirmMintOrRedeemAssetHash(...args)),
4860
+ getAddCollateralHash: (...args) => singleQuery(publicClient, call.getAddCollateralHash(...args)),
4861
+ getRemoveCollateralHash: (...args) => singleQuery(publicClient, call.getRemoveCollateralHash(...args)),
4862
+ getBorrowHash: (...args) => singleQuery(publicClient, call.getBorrowHash(...args)),
4863
+ getRepayDebtHash: (...args) => singleQuery(publicClient, call.getRepayDebtHash(...args)),
4864
+ getClaimRewardsHash: (...args) => singleQuery(publicClient, call.getClaimRewardsHash(...args)),
4865
+ getConvertWethToEthHash: (...args) => singleQuery(publicClient, call.getConvertWethToEthHash(...args)),
4866
+ getConvertEthToWethHash: (...args) => singleQuery(publicClient, call.getConvertEthToWethHash(...args)),
4867
+ getAddLiquidityHash: (...args) => singleQuery(publicClient, call.getAddLiquidityHash(...args)),
4868
+ getRemoveLiquidityHash: (...args) => singleQuery(publicClient, call.getRemoveLiquidityHash(...args)),
4869
+ getAddLiquidityConcentratedHash: (...args) => singleQuery(publicClient, call.getAddLiquidityConcentratedHash(...args)),
4870
+ getRemoveLiquidityConcentratedHash: (...args) => singleQuery(publicClient, call.getRemoveLiquidityConcentratedHash(...args)),
4871
+ getBatchActionsHash: (...args) => singleQuery(publicClient, call.getBatchActionsHash(...args)),
4872
+ // Mutations
4873
+ };
4874
+ }