@gearbox-protocol/sdk 18.1.0 → 18.2.0-next.2

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 (46) hide show
  1. package/dist/cjs/abi/compressors/subcompressors/liquidation/treehouseLiquidationSubcompressor.js +179 -0
  2. package/dist/cjs/abi/compressors/subcompressors/withdrawal/treehouseWithdrawalSubcompressor.js +534 -0
  3. package/dist/cjs/abi/router/treehouseWorker.js +885 -0
  4. package/dist/cjs/onchain/market/adapters/abi/actionAbi.js +1 -0
  5. package/dist/cjs/onchain/market/adapters/abi/conctructorAbi.js +3 -0
  6. package/dist/cjs/onchain/market/adapters/types.js +3 -0
  7. package/dist/cjs/permissionless/api/GearboxPermissionless.js +12 -5
  8. package/dist/cjs/permissionless/api/analytics/PermissionlessAnalytics.js +50 -0
  9. package/dist/cjs/permissionless/api/analytics/index.js +4 -0
  10. package/dist/cjs/permissionless/api/analytics/schemas.js +27 -0
  11. package/dist/cjs/permissionless/api/analytics/types.js +1 -0
  12. package/dist/cjs/permissionless/api/index.js +3 -0
  13. package/dist/cjs/permissionless/api/oracles/PermissionlessOracles.js +69 -0
  14. package/dist/cjs/permissionless/api/oracles/schemas.js +36 -0
  15. package/dist/cjs/permissionless/index.js +2 -0
  16. package/dist/esm/abi/compressors/subcompressors/liquidation/treehouseLiquidationSubcompressor.js +178 -0
  17. package/dist/esm/abi/compressors/subcompressors/withdrawal/treehouseWithdrawalSubcompressor.js +533 -0
  18. package/dist/esm/abi/router/treehouseWorker.js +884 -0
  19. package/dist/esm/onchain/market/adapters/abi/actionAbi.js +1 -0
  20. package/dist/esm/onchain/market/adapters/abi/conctructorAbi.js +3 -0
  21. package/dist/esm/onchain/market/adapters/types.js +3 -0
  22. package/dist/esm/permissionless/api/GearboxPermissionless.js +12 -5
  23. package/dist/esm/permissionless/api/analytics/PermissionlessAnalytics.js +49 -0
  24. package/dist/esm/permissionless/api/analytics/index.js +2 -0
  25. package/dist/esm/permissionless/api/analytics/schemas.js +25 -0
  26. package/dist/esm/permissionless/api/analytics/types.js +1 -0
  27. package/dist/esm/permissionless/api/index.js +3 -1
  28. package/dist/esm/permissionless/api/oracles/PermissionlessOracles.js +70 -1
  29. package/dist/esm/permissionless/api/oracles/schemas.js +33 -1
  30. package/dist/esm/permissionless/index.js +2 -1
  31. package/dist/types/abi/compressors/subcompressors/liquidation/treehouseLiquidationSubcompressor.d.ts +148 -0
  32. package/dist/types/abi/compressors/subcompressors/withdrawal/treehouseWithdrawalSubcompressor.d.ts +440 -0
  33. package/dist/types/abi/router/treehouseWorker.d.ts +728 -0
  34. package/dist/types/onchain/market/adapters/types.d.ts +4 -1
  35. package/dist/types/permissionless/api/GearboxPermissionless.d.ts +11 -5
  36. package/dist/types/permissionless/api/analytics/PermissionlessAnalytics.d.ts +38 -0
  37. package/dist/types/permissionless/api/analytics/index.d.ts +3 -0
  38. package/dist/types/permissionless/api/analytics/schemas.d.ts +32 -0
  39. package/dist/types/permissionless/api/analytics/types.d.ts +38 -0
  40. package/dist/types/permissionless/api/index.d.ts +5 -2
  41. package/dist/types/permissionless/api/oracles/PermissionlessOracles.d.ts +55 -1
  42. package/dist/types/permissionless/api/oracles/index.d.ts +2 -2
  43. package/dist/types/permissionless/api/oracles/schemas.d.ts +55 -0
  44. package/dist/types/permissionless/api/oracles/types.d.ts +92 -0
  45. package/dist/types/permissionless/index.d.ts +4 -2
  46. package/package.json +1 -1
@@ -0,0 +1,885 @@
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
+ //#region src/abi/router/treehouseWorker.ts
3
+ const treehouseWorkerAbi = [
4
+ {
5
+ type: "constructor",
6
+ inputs: [{
7
+ name: "_router",
8
+ type: "address",
9
+ internalType: "address"
10
+ }],
11
+ stateMutability: "nonpayable"
12
+ },
13
+ {
14
+ type: "function",
15
+ name: "buildEdges",
16
+ inputs: [{
17
+ name: "graph",
18
+ type: "tuple",
19
+ internalType: "struct Graph",
20
+ components: [{
21
+ name: "vertices",
22
+ type: "tuple[]",
23
+ internalType: "struct Vertex[]",
24
+ components: [
25
+ {
26
+ name: "token",
27
+ type: "address",
28
+ internalType: "address"
29
+ },
30
+ {
31
+ name: "balance",
32
+ type: "uint256",
33
+ internalType: "uint256"
34
+ },
35
+ {
36
+ name: "leftoverBalance",
37
+ type: "uint256",
38
+ internalType: "uint256"
39
+ },
40
+ {
41
+ name: "numSplits",
42
+ type: "uint256",
43
+ internalType: "uint256"
44
+ },
45
+ {
46
+ name: "currentOptimalEdge",
47
+ type: "uint256",
48
+ internalType: "uint256"
49
+ }
50
+ ]
51
+ }, {
52
+ name: "edges",
53
+ type: "tuple[]",
54
+ internalType: "struct Edge[]",
55
+ components: [
56
+ {
57
+ name: "id",
58
+ type: "uint256",
59
+ internalType: "uint256"
60
+ },
61
+ {
62
+ name: "tokenIn",
63
+ type: "address",
64
+ internalType: "address"
65
+ },
66
+ {
67
+ name: "tokenOut",
68
+ type: "address",
69
+ internalType: "address"
70
+ },
71
+ {
72
+ name: "adapter",
73
+ type: "address",
74
+ internalType: "address"
75
+ },
76
+ {
77
+ name: "worker",
78
+ type: "address",
79
+ internalType: "address"
80
+ },
81
+ {
82
+ name: "extraData",
83
+ type: "bytes",
84
+ internalType: "bytes"
85
+ },
86
+ {
87
+ name: "amountInTotal",
88
+ type: "uint256",
89
+ internalType: "uint256"
90
+ },
91
+ {
92
+ name: "amountOutTotal",
93
+ type: "uint256",
94
+ internalType: "uint256"
95
+ },
96
+ {
97
+ name: "amountInCurrent",
98
+ type: "uint256",
99
+ internalType: "uint256"
100
+ },
101
+ {
102
+ name: "amountOutCurrent",
103
+ type: "uint256",
104
+ internalType: "uint256"
105
+ }
106
+ ]
107
+ }]
108
+ }, {
109
+ name: "adapter",
110
+ type: "address",
111
+ internalType: "address"
112
+ }],
113
+ outputs: [{
114
+ name: "",
115
+ type: "tuple",
116
+ internalType: "struct Graph",
117
+ components: [{
118
+ name: "vertices",
119
+ type: "tuple[]",
120
+ internalType: "struct Vertex[]",
121
+ components: [
122
+ {
123
+ name: "token",
124
+ type: "address",
125
+ internalType: "address"
126
+ },
127
+ {
128
+ name: "balance",
129
+ type: "uint256",
130
+ internalType: "uint256"
131
+ },
132
+ {
133
+ name: "leftoverBalance",
134
+ type: "uint256",
135
+ internalType: "uint256"
136
+ },
137
+ {
138
+ name: "numSplits",
139
+ type: "uint256",
140
+ internalType: "uint256"
141
+ },
142
+ {
143
+ name: "currentOptimalEdge",
144
+ type: "uint256",
145
+ internalType: "uint256"
146
+ }
147
+ ]
148
+ }, {
149
+ name: "edges",
150
+ type: "tuple[]",
151
+ internalType: "struct Edge[]",
152
+ components: [
153
+ {
154
+ name: "id",
155
+ type: "uint256",
156
+ internalType: "uint256"
157
+ },
158
+ {
159
+ name: "tokenIn",
160
+ type: "address",
161
+ internalType: "address"
162
+ },
163
+ {
164
+ name: "tokenOut",
165
+ type: "address",
166
+ internalType: "address"
167
+ },
168
+ {
169
+ name: "adapter",
170
+ type: "address",
171
+ internalType: "address"
172
+ },
173
+ {
174
+ name: "worker",
175
+ type: "address",
176
+ internalType: "address"
177
+ },
178
+ {
179
+ name: "extraData",
180
+ type: "bytes",
181
+ internalType: "bytes"
182
+ },
183
+ {
184
+ name: "amountInTotal",
185
+ type: "uint256",
186
+ internalType: "uint256"
187
+ },
188
+ {
189
+ name: "amountOutTotal",
190
+ type: "uint256",
191
+ internalType: "uint256"
192
+ },
193
+ {
194
+ name: "amountInCurrent",
195
+ type: "uint256",
196
+ internalType: "uint256"
197
+ },
198
+ {
199
+ name: "amountOutCurrent",
200
+ type: "uint256",
201
+ internalType: "uint256"
202
+ }
203
+ ]
204
+ }]
205
+ }],
206
+ stateMutability: "view"
207
+ },
208
+ {
209
+ type: "function",
210
+ name: "contractType",
211
+ inputs: [],
212
+ outputs: [{
213
+ name: "",
214
+ type: "bytes32",
215
+ internalType: "bytes32"
216
+ }],
217
+ stateMutability: "view"
218
+ },
219
+ {
220
+ type: "function",
221
+ name: "getEdgeAmountOutCurrent",
222
+ inputs: [{
223
+ name: "edge",
224
+ type: "tuple",
225
+ internalType: "struct Edge",
226
+ components: [
227
+ {
228
+ name: "id",
229
+ type: "uint256",
230
+ internalType: "uint256"
231
+ },
232
+ {
233
+ name: "tokenIn",
234
+ type: "address",
235
+ internalType: "address"
236
+ },
237
+ {
238
+ name: "tokenOut",
239
+ type: "address",
240
+ internalType: "address"
241
+ },
242
+ {
243
+ name: "adapter",
244
+ type: "address",
245
+ internalType: "address"
246
+ },
247
+ {
248
+ name: "worker",
249
+ type: "address",
250
+ internalType: "address"
251
+ },
252
+ {
253
+ name: "extraData",
254
+ type: "bytes",
255
+ internalType: "bytes"
256
+ },
257
+ {
258
+ name: "amountInTotal",
259
+ type: "uint256",
260
+ internalType: "uint256"
261
+ },
262
+ {
263
+ name: "amountOutTotal",
264
+ type: "uint256",
265
+ internalType: "uint256"
266
+ },
267
+ {
268
+ name: "amountInCurrent",
269
+ type: "uint256",
270
+ internalType: "uint256"
271
+ },
272
+ {
273
+ name: "amountOutCurrent",
274
+ type: "uint256",
275
+ internalType: "uint256"
276
+ }
277
+ ]
278
+ }],
279
+ outputs: [{
280
+ name: "amountOutCurrent",
281
+ type: "uint256",
282
+ internalType: "uint256"
283
+ }],
284
+ stateMutability: "view"
285
+ },
286
+ {
287
+ type: "function",
288
+ name: "getMulticalls",
289
+ inputs: [{
290
+ name: "edge",
291
+ type: "tuple",
292
+ internalType: "struct Edge",
293
+ components: [
294
+ {
295
+ name: "id",
296
+ type: "uint256",
297
+ internalType: "uint256"
298
+ },
299
+ {
300
+ name: "tokenIn",
301
+ type: "address",
302
+ internalType: "address"
303
+ },
304
+ {
305
+ name: "tokenOut",
306
+ type: "address",
307
+ internalType: "address"
308
+ },
309
+ {
310
+ name: "adapter",
311
+ type: "address",
312
+ internalType: "address"
313
+ },
314
+ {
315
+ name: "worker",
316
+ type: "address",
317
+ internalType: "address"
318
+ },
319
+ {
320
+ name: "extraData",
321
+ type: "bytes",
322
+ internalType: "bytes"
323
+ },
324
+ {
325
+ name: "amountInTotal",
326
+ type: "uint256",
327
+ internalType: "uint256"
328
+ },
329
+ {
330
+ name: "amountOutTotal",
331
+ type: "uint256",
332
+ internalType: "uint256"
333
+ },
334
+ {
335
+ name: "amountInCurrent",
336
+ type: "uint256",
337
+ internalType: "uint256"
338
+ },
339
+ {
340
+ name: "amountOutCurrent",
341
+ type: "uint256",
342
+ internalType: "uint256"
343
+ }
344
+ ]
345
+ }, {
346
+ name: "currentBalance",
347
+ type: "uint256",
348
+ internalType: "uint256"
349
+ }],
350
+ outputs: [{
351
+ name: "calls",
352
+ type: "tuple[]",
353
+ internalType: "struct MultiCall[]",
354
+ components: [{
355
+ name: "target",
356
+ type: "address",
357
+ internalType: "address"
358
+ }, {
359
+ name: "callData",
360
+ type: "bytes",
361
+ internalType: "bytes"
362
+ }]
363
+ }],
364
+ stateMutability: "pure"
365
+ },
366
+ {
367
+ type: "function",
368
+ name: "isNonLinear",
369
+ inputs: [],
370
+ outputs: [{
371
+ name: "",
372
+ type: "bool",
373
+ internalType: "bool"
374
+ }],
375
+ stateMutability: "view"
376
+ },
377
+ {
378
+ type: "function",
379
+ name: "migrate",
380
+ inputs: [],
381
+ outputs: [],
382
+ stateMutability: "nonpayable"
383
+ },
384
+ {
385
+ type: "function",
386
+ name: "processClaims",
387
+ inputs: [
388
+ {
389
+ name: "",
390
+ type: "tuple",
391
+ internalType: "struct Edge",
392
+ components: [
393
+ {
394
+ name: "id",
395
+ type: "uint256",
396
+ internalType: "uint256"
397
+ },
398
+ {
399
+ name: "tokenIn",
400
+ type: "address",
401
+ internalType: "address"
402
+ },
403
+ {
404
+ name: "tokenOut",
405
+ type: "address",
406
+ internalType: "address"
407
+ },
408
+ {
409
+ name: "adapter",
410
+ type: "address",
411
+ internalType: "address"
412
+ },
413
+ {
414
+ name: "worker",
415
+ type: "address",
416
+ internalType: "address"
417
+ },
418
+ {
419
+ name: "extraData",
420
+ type: "bytes",
421
+ internalType: "bytes"
422
+ },
423
+ {
424
+ name: "amountInTotal",
425
+ type: "uint256",
426
+ internalType: "uint256"
427
+ },
428
+ {
429
+ name: "amountOutTotal",
430
+ type: "uint256",
431
+ internalType: "uint256"
432
+ },
433
+ {
434
+ name: "amountInCurrent",
435
+ type: "uint256",
436
+ internalType: "uint256"
437
+ },
438
+ {
439
+ name: "amountOutCurrent",
440
+ type: "uint256",
441
+ internalType: "uint256"
442
+ }
443
+ ]
444
+ },
445
+ {
446
+ name: "graph",
447
+ type: "tuple",
448
+ internalType: "struct Graph",
449
+ components: [{
450
+ name: "vertices",
451
+ type: "tuple[]",
452
+ internalType: "struct Vertex[]",
453
+ components: [
454
+ {
455
+ name: "token",
456
+ type: "address",
457
+ internalType: "address"
458
+ },
459
+ {
460
+ name: "balance",
461
+ type: "uint256",
462
+ internalType: "uint256"
463
+ },
464
+ {
465
+ name: "leftoverBalance",
466
+ type: "uint256",
467
+ internalType: "uint256"
468
+ },
469
+ {
470
+ name: "numSplits",
471
+ type: "uint256",
472
+ internalType: "uint256"
473
+ },
474
+ {
475
+ name: "currentOptimalEdge",
476
+ type: "uint256",
477
+ internalType: "uint256"
478
+ }
479
+ ]
480
+ }, {
481
+ name: "edges",
482
+ type: "tuple[]",
483
+ internalType: "struct Edge[]",
484
+ components: [
485
+ {
486
+ name: "id",
487
+ type: "uint256",
488
+ internalType: "uint256"
489
+ },
490
+ {
491
+ name: "tokenIn",
492
+ type: "address",
493
+ internalType: "address"
494
+ },
495
+ {
496
+ name: "tokenOut",
497
+ type: "address",
498
+ internalType: "address"
499
+ },
500
+ {
501
+ name: "adapter",
502
+ type: "address",
503
+ internalType: "address"
504
+ },
505
+ {
506
+ name: "worker",
507
+ type: "address",
508
+ internalType: "address"
509
+ },
510
+ {
511
+ name: "extraData",
512
+ type: "bytes",
513
+ internalType: "bytes"
514
+ },
515
+ {
516
+ name: "amountInTotal",
517
+ type: "uint256",
518
+ internalType: "uint256"
519
+ },
520
+ {
521
+ name: "amountOutTotal",
522
+ type: "uint256",
523
+ internalType: "uint256"
524
+ },
525
+ {
526
+ name: "amountInCurrent",
527
+ type: "uint256",
528
+ internalType: "uint256"
529
+ },
530
+ {
531
+ name: "amountOutCurrent",
532
+ type: "uint256",
533
+ internalType: "uint256"
534
+ }
535
+ ]
536
+ }]
537
+ },
538
+ {
539
+ name: "",
540
+ type: "address",
541
+ internalType: "address"
542
+ }
543
+ ],
544
+ outputs: [{
545
+ name: "",
546
+ type: "tuple",
547
+ internalType: "struct Graph",
548
+ components: [{
549
+ name: "vertices",
550
+ type: "tuple[]",
551
+ internalType: "struct Vertex[]",
552
+ components: [
553
+ {
554
+ name: "token",
555
+ type: "address",
556
+ internalType: "address"
557
+ },
558
+ {
559
+ name: "balance",
560
+ type: "uint256",
561
+ internalType: "uint256"
562
+ },
563
+ {
564
+ name: "leftoverBalance",
565
+ type: "uint256",
566
+ internalType: "uint256"
567
+ },
568
+ {
569
+ name: "numSplits",
570
+ type: "uint256",
571
+ internalType: "uint256"
572
+ },
573
+ {
574
+ name: "currentOptimalEdge",
575
+ type: "uint256",
576
+ internalType: "uint256"
577
+ }
578
+ ]
579
+ }, {
580
+ name: "edges",
581
+ type: "tuple[]",
582
+ internalType: "struct Edge[]",
583
+ components: [
584
+ {
585
+ name: "id",
586
+ type: "uint256",
587
+ internalType: "uint256"
588
+ },
589
+ {
590
+ name: "tokenIn",
591
+ type: "address",
592
+ internalType: "address"
593
+ },
594
+ {
595
+ name: "tokenOut",
596
+ type: "address",
597
+ internalType: "address"
598
+ },
599
+ {
600
+ name: "adapter",
601
+ type: "address",
602
+ internalType: "address"
603
+ },
604
+ {
605
+ name: "worker",
606
+ type: "address",
607
+ internalType: "address"
608
+ },
609
+ {
610
+ name: "extraData",
611
+ type: "bytes",
612
+ internalType: "bytes"
613
+ },
614
+ {
615
+ name: "amountInTotal",
616
+ type: "uint256",
617
+ internalType: "uint256"
618
+ },
619
+ {
620
+ name: "amountOutTotal",
621
+ type: "uint256",
622
+ internalType: "uint256"
623
+ },
624
+ {
625
+ name: "amountInCurrent",
626
+ type: "uint256",
627
+ internalType: "uint256"
628
+ },
629
+ {
630
+ name: "amountOutCurrent",
631
+ type: "uint256",
632
+ internalType: "uint256"
633
+ }
634
+ ]
635
+ }]
636
+ }, {
637
+ name: "",
638
+ type: "tuple[]",
639
+ internalType: "struct MultiCall[]",
640
+ components: [{
641
+ name: "target",
642
+ type: "address",
643
+ internalType: "address"
644
+ }, {
645
+ name: "callData",
646
+ type: "bytes",
647
+ internalType: "bytes"
648
+ }]
649
+ }],
650
+ stateMutability: "pure"
651
+ },
652
+ {
653
+ type: "function",
654
+ name: "router",
655
+ inputs: [],
656
+ outputs: [{
657
+ name: "",
658
+ type: "address",
659
+ internalType: "contract IGearboxRouter"
660
+ }],
661
+ stateMutability: "view"
662
+ },
663
+ {
664
+ type: "function",
665
+ name: "trimSpecialVertex",
666
+ inputs: [
667
+ {
668
+ name: "",
669
+ type: "tuple",
670
+ internalType: "struct Edge",
671
+ components: [
672
+ {
673
+ name: "id",
674
+ type: "uint256",
675
+ internalType: "uint256"
676
+ },
677
+ {
678
+ name: "tokenIn",
679
+ type: "address",
680
+ internalType: "address"
681
+ },
682
+ {
683
+ name: "tokenOut",
684
+ type: "address",
685
+ internalType: "address"
686
+ },
687
+ {
688
+ name: "adapter",
689
+ type: "address",
690
+ internalType: "address"
691
+ },
692
+ {
693
+ name: "worker",
694
+ type: "address",
695
+ internalType: "address"
696
+ },
697
+ {
698
+ name: "extraData",
699
+ type: "bytes",
700
+ internalType: "bytes"
701
+ },
702
+ {
703
+ name: "amountInTotal",
704
+ type: "uint256",
705
+ internalType: "uint256"
706
+ },
707
+ {
708
+ name: "amountOutTotal",
709
+ type: "uint256",
710
+ internalType: "uint256"
711
+ },
712
+ {
713
+ name: "amountInCurrent",
714
+ type: "uint256",
715
+ internalType: "uint256"
716
+ },
717
+ {
718
+ name: "amountOutCurrent",
719
+ type: "uint256",
720
+ internalType: "uint256"
721
+ }
722
+ ]
723
+ },
724
+ {
725
+ name: "",
726
+ type: "tuple",
727
+ internalType: "struct Graph",
728
+ components: [{
729
+ name: "vertices",
730
+ type: "tuple[]",
731
+ internalType: "struct Vertex[]",
732
+ components: [
733
+ {
734
+ name: "token",
735
+ type: "address",
736
+ internalType: "address"
737
+ },
738
+ {
739
+ name: "balance",
740
+ type: "uint256",
741
+ internalType: "uint256"
742
+ },
743
+ {
744
+ name: "leftoverBalance",
745
+ type: "uint256",
746
+ internalType: "uint256"
747
+ },
748
+ {
749
+ name: "numSplits",
750
+ type: "uint256",
751
+ internalType: "uint256"
752
+ },
753
+ {
754
+ name: "currentOptimalEdge",
755
+ type: "uint256",
756
+ internalType: "uint256"
757
+ }
758
+ ]
759
+ }, {
760
+ name: "edges",
761
+ type: "tuple[]",
762
+ internalType: "struct Edge[]",
763
+ components: [
764
+ {
765
+ name: "id",
766
+ type: "uint256",
767
+ internalType: "uint256"
768
+ },
769
+ {
770
+ name: "tokenIn",
771
+ type: "address",
772
+ internalType: "address"
773
+ },
774
+ {
775
+ name: "tokenOut",
776
+ type: "address",
777
+ internalType: "address"
778
+ },
779
+ {
780
+ name: "adapter",
781
+ type: "address",
782
+ internalType: "address"
783
+ },
784
+ {
785
+ name: "worker",
786
+ type: "address",
787
+ internalType: "address"
788
+ },
789
+ {
790
+ name: "extraData",
791
+ type: "bytes",
792
+ internalType: "bytes"
793
+ },
794
+ {
795
+ name: "amountInTotal",
796
+ type: "uint256",
797
+ internalType: "uint256"
798
+ },
799
+ {
800
+ name: "amountOutTotal",
801
+ type: "uint256",
802
+ internalType: "uint256"
803
+ },
804
+ {
805
+ name: "amountInCurrent",
806
+ type: "uint256",
807
+ internalType: "uint256"
808
+ },
809
+ {
810
+ name: "amountOutCurrent",
811
+ type: "uint256",
812
+ internalType: "uint256"
813
+ }
814
+ ]
815
+ }]
816
+ },
817
+ {
818
+ name: "",
819
+ type: "address",
820
+ internalType: "address"
821
+ }
822
+ ],
823
+ outputs: [{
824
+ name: "",
825
+ type: "bool",
826
+ internalType: "bool"
827
+ }],
828
+ stateMutability: "pure"
829
+ },
830
+ {
831
+ type: "function",
832
+ name: "updateRouter",
833
+ inputs: [{
834
+ name: "newRouter",
835
+ type: "address",
836
+ internalType: "address"
837
+ }],
838
+ outputs: [],
839
+ stateMutability: "nonpayable"
840
+ },
841
+ {
842
+ type: "function",
843
+ name: "version",
844
+ inputs: [],
845
+ outputs: [{
846
+ name: "",
847
+ type: "uint256",
848
+ internalType: "uint256"
849
+ }],
850
+ stateMutability: "view"
851
+ },
852
+ {
853
+ type: "event",
854
+ name: "NewRouter",
855
+ inputs: [{
856
+ name: "",
857
+ type: "address",
858
+ indexed: true,
859
+ internalType: "address"
860
+ }],
861
+ anonymous: false
862
+ },
863
+ {
864
+ type: "error",
865
+ name: "FutureRouterOnlyException",
866
+ inputs: []
867
+ },
868
+ {
869
+ type: "error",
870
+ name: "MigrationErrorException",
871
+ inputs: []
872
+ },
873
+ {
874
+ type: "error",
875
+ name: "RouterOnlyException",
876
+ inputs: []
877
+ },
878
+ {
879
+ type: "error",
880
+ name: "RouterOwnerOnlyException",
881
+ inputs: []
882
+ }
883
+ ];
884
+ //#endregion
885
+ exports.treehouseWorkerAbi = treehouseWorkerAbi;