wasabi-solana-ts 1.2.8 → 1.2.10-regular-interest

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,3511 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.IDL = void 0;
4
+ exports.IDL = {
5
+ "address": "DF1ow4tspfHX9JwWJsAb9epbkA8hmpSEAtxXy1V27QBH",
6
+ "metadata": {
7
+ "name": "swap_orchestrator",
8
+ "version": "0.1.0",
9
+ "spec": "0.1.0",
10
+ "description": "DFlow Aggregator program"
11
+ },
12
+ "instructions": [
13
+ {
14
+ "name": "close_empty_token_account",
15
+ "docs": [
16
+ "Closes a token account if it has a zero balance"
17
+ ],
18
+ "discriminator": [
19
+ 232,
20
+ 75,
21
+ 140,
22
+ 136,
23
+ 250,
24
+ 78,
25
+ 224,
26
+ 188
27
+ ],
28
+ "accounts": [
29
+ {
30
+ "name": "token_account",
31
+ "docs": [
32
+ "The token account to close (supports both spl_token and spl_token_2022)"
33
+ ],
34
+ "writable": true
35
+ },
36
+ {
37
+ "name": "authority",
38
+ "docs": [
39
+ "The authority of the token account. Must sign."
40
+ ],
41
+ "signer": true
42
+ },
43
+ {
44
+ "name": "destination",
45
+ "docs": [
46
+ "The account to receive the rent from closing the token account."
47
+ ],
48
+ "writable": true
49
+ },
50
+ {
51
+ "name": "token_program",
52
+ "docs": [
53
+ "The token program (either spl_token or spl_token_2022)"
54
+ ]
55
+ }
56
+ ],
57
+ "args": []
58
+ },
59
+ {
60
+ "name": "close_order",
61
+ "docs": [
62
+ "Closes an order, returning tokens from the order vault"
63
+ ],
64
+ "discriminator": [
65
+ 90,
66
+ 103,
67
+ 209,
68
+ 28,
69
+ 7,
70
+ 63,
71
+ 168,
72
+ 4
73
+ ],
74
+ "accounts": [
75
+ {
76
+ "name": "order",
77
+ "writable": true
78
+ },
79
+ {
80
+ "name": "order_vault",
81
+ "writable": true,
82
+ "pda": {
83
+ "seeds": [
84
+ {
85
+ "kind": "const",
86
+ "value": [
87
+ 111,
88
+ 114,
89
+ 100,
90
+ 101,
91
+ 114,
92
+ 95,
93
+ 118,
94
+ 97,
95
+ 117,
96
+ 108,
97
+ 116
98
+ ]
99
+ },
100
+ {
101
+ "kind": "account",
102
+ "path": "order"
103
+ }
104
+ ]
105
+ }
106
+ },
107
+ {
108
+ "name": "return_input_token_account",
109
+ "docs": [
110
+ "Account to which leftover tokens in the order vault should be returned."
111
+ ],
112
+ "writable": true,
113
+ "relations": [
114
+ "order"
115
+ ]
116
+ },
117
+ {
118
+ "name": "return_rent_to",
119
+ "docs": [
120
+ "Account to which rent for the order account and vault should be returned."
121
+ ],
122
+ "writable": true,
123
+ "relations": [
124
+ "order"
125
+ ]
126
+ },
127
+ {
128
+ "name": "closer",
129
+ "docs": [
130
+ "Account that is authorized to close the order"
131
+ ],
132
+ "signer": true
133
+ },
134
+ {
135
+ "name": "token_program",
136
+ "address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"
137
+ },
138
+ {
139
+ "name": "system_program",
140
+ "address": "11111111111111111111111111111111"
141
+ }
142
+ ],
143
+ "args": []
144
+ },
145
+ {
146
+ "name": "create_referral_token_account_idempotent",
147
+ "docs": [
148
+ "Create a referral token account if it doesn't already exist"
149
+ ],
150
+ "discriminator": [
151
+ 46,
152
+ 232,
153
+ 41,
154
+ 144,
155
+ 85,
156
+ 37,
157
+ 170,
158
+ 175
159
+ ],
160
+ "accounts": [
161
+ {
162
+ "name": "payer",
163
+ "writable": true,
164
+ "signer": true
165
+ },
166
+ {
167
+ "name": "project"
168
+ },
169
+ {
170
+ "name": "referral_account"
171
+ },
172
+ {
173
+ "name": "referral_token_account",
174
+ "docs": [
175
+ "The referral token account to create. This is a PDA of the Referral program whose seeds are",
176
+ "[b\"referral_ata\", referral_account, mint]."
177
+ ],
178
+ "writable": true
179
+ },
180
+ {
181
+ "name": "mint"
182
+ },
183
+ {
184
+ "name": "system_program"
185
+ },
186
+ {
187
+ "name": "token_program"
188
+ },
189
+ {
190
+ "name": "referral_program"
191
+ }
192
+ ],
193
+ "args": []
194
+ },
195
+ {
196
+ "name": "fill_order",
197
+ "docs": [
198
+ "Fills an order, closing the order after filling it"
199
+ ],
200
+ "discriminator": [
201
+ 232,
202
+ 122,
203
+ 115,
204
+ 25,
205
+ 199,
206
+ 143,
207
+ 136,
208
+ 162
209
+ ],
210
+ "accounts": [
211
+ {
212
+ "name": "order",
213
+ "writable": true
214
+ },
215
+ {
216
+ "name": "order_vault",
217
+ "writable": true,
218
+ "pda": {
219
+ "seeds": [
220
+ {
221
+ "kind": "const",
222
+ "value": [
223
+ 111,
224
+ 114,
225
+ 100,
226
+ 101,
227
+ 114,
228
+ 95,
229
+ 118,
230
+ 97,
231
+ 117,
232
+ 108,
233
+ 116
234
+ ]
235
+ },
236
+ {
237
+ "kind": "account",
238
+ "path": "order"
239
+ }
240
+ ]
241
+ }
242
+ },
243
+ {
244
+ "name": "output_token_account",
245
+ "docs": [
246
+ "Account to which output from the fill should be sent."
247
+ ],
248
+ "writable": true,
249
+ "relations": [
250
+ "order"
251
+ ]
252
+ },
253
+ {
254
+ "name": "return_input_token_account",
255
+ "docs": [
256
+ "Account to which leftover tokens in the order vault should be returned."
257
+ ],
258
+ "writable": true,
259
+ "relations": [
260
+ "order"
261
+ ]
262
+ },
263
+ {
264
+ "name": "return_rent_to",
265
+ "docs": [
266
+ "Account to which rent for the order account and vault should be returned."
267
+ ],
268
+ "writable": true,
269
+ "relations": [
270
+ "order"
271
+ ]
272
+ },
273
+ {
274
+ "name": "filler_input_token_account",
275
+ "writable": true
276
+ },
277
+ {
278
+ "name": "input_mint",
279
+ "docs": [
280
+ "Input mint for the swap. Must be specified if the order inputs a mint for which the filler's",
281
+ "associated token account doesn't exist."
282
+ ],
283
+ "optional": true
284
+ },
285
+ {
286
+ "name": "filler_output_token_account",
287
+ "writable": true
288
+ },
289
+ {
290
+ "name": "output_mint",
291
+ "docs": [
292
+ "Output mint for the swap. Must be specified if the order outputs native SOL or a mint for",
293
+ "which the filler's associated token account doesn't exist."
294
+ ],
295
+ "optional": true
296
+ },
297
+ {
298
+ "name": "filler",
299
+ "writable": true,
300
+ "signer": true
301
+ },
302
+ {
303
+ "name": "token_program",
304
+ "address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"
305
+ },
306
+ {
307
+ "name": "associated_token_program",
308
+ "address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL"
309
+ },
310
+ {
311
+ "name": "system_program",
312
+ "address": "11111111111111111111111111111111"
313
+ },
314
+ {
315
+ "name": "event_authority",
316
+ "pda": {
317
+ "seeds": [
318
+ {
319
+ "kind": "const",
320
+ "value": [
321
+ 95,
322
+ 95,
323
+ 101,
324
+ 118,
325
+ 101,
326
+ 110,
327
+ 116,
328
+ 95,
329
+ 97,
330
+ 117,
331
+ 116,
332
+ 104,
333
+ 111,
334
+ 114,
335
+ 105,
336
+ 116,
337
+ 121
338
+ ]
339
+ }
340
+ ]
341
+ }
342
+ },
343
+ {
344
+ "name": "program"
345
+ }
346
+ ],
347
+ "args": [
348
+ {
349
+ "name": "params",
350
+ "type": {
351
+ "defined": {
352
+ "name": "FillOrderParams"
353
+ }
354
+ }
355
+ }
356
+ ]
357
+ },
358
+ {
359
+ "name": "init_market_ledger_idempotent",
360
+ "docs": [
361
+ "Initialize a market ledger if it doesn't already exist"
362
+ ],
363
+ "discriminator": [
364
+ 183,
365
+ 43,
366
+ 139,
367
+ 79,
368
+ 125,
369
+ 225,
370
+ 35,
371
+ 159
372
+ ],
373
+ "accounts": [
374
+ {
375
+ "name": "predictions_program"
376
+ },
377
+ {
378
+ "name": "market_ledger"
379
+ },
380
+ {
381
+ "name": "market_ledger_redemption_vault"
382
+ },
383
+ {
384
+ "name": "market_ledger_order_vault"
385
+ },
386
+ {
387
+ "name": "market_ledger_reduce_yes_vault"
388
+ },
389
+ {
390
+ "name": "market_ledger_reduce_no_vault"
391
+ },
392
+ {
393
+ "name": "settlement_escrow"
394
+ },
395
+ {
396
+ "name": "escrow_mint"
397
+ },
398
+ {
399
+ "name": "market_yes_outcome_mint"
400
+ },
401
+ {
402
+ "name": "market_no_outcome_mint"
403
+ },
404
+ {
405
+ "name": "payer"
406
+ },
407
+ {
408
+ "name": "outcome_token_program"
409
+ },
410
+ {
411
+ "name": "escrow_token_program"
412
+ },
413
+ {
414
+ "name": "system_program"
415
+ }
416
+ ],
417
+ "args": [
418
+ {
419
+ "name": "market_id",
420
+ "type": {
421
+ "array": [
422
+ "u8",
423
+ 32
424
+ ]
425
+ }
426
+ }
427
+ ]
428
+ },
429
+ {
430
+ "name": "open_order",
431
+ "docs": [
432
+ "Opens an order, escrowing the input tokens in the order vault"
433
+ ],
434
+ "discriminator": [
435
+ 206,
436
+ 88,
437
+ 88,
438
+ 143,
439
+ 38,
440
+ 136,
441
+ 50,
442
+ 224
443
+ ],
444
+ "accounts": [
445
+ {
446
+ "name": "order",
447
+ "docs": [
448
+ "Order account that the instruction will create to store the order details"
449
+ ],
450
+ "writable": true,
451
+ "pda": {
452
+ "seeds": [
453
+ {
454
+ "kind": "const",
455
+ "value": [
456
+ 111,
457
+ 114,
458
+ 100,
459
+ 101,
460
+ 114
461
+ ]
462
+ },
463
+ {
464
+ "kind": "account",
465
+ "path": "return_input_token_account"
466
+ },
467
+ {
468
+ "kind": "arg",
469
+ "path": "params.order_account_id"
470
+ }
471
+ ]
472
+ }
473
+ },
474
+ {
475
+ "name": "order_vault",
476
+ "docs": [
477
+ "Token account that the instruction will create to escrow the input tokens for the order"
478
+ ],
479
+ "writable": true,
480
+ "pda": {
481
+ "seeds": [
482
+ {
483
+ "kind": "const",
484
+ "value": [
485
+ 111,
486
+ 114,
487
+ 100,
488
+ 101,
489
+ 114,
490
+ 95,
491
+ 118,
492
+ 97,
493
+ 117,
494
+ 108,
495
+ 116
496
+ ]
497
+ },
498
+ {
499
+ "kind": "account",
500
+ "path": "order"
501
+ }
502
+ ]
503
+ }
504
+ },
505
+ {
506
+ "name": "input_token_account",
507
+ "docs": [
508
+ "Token account from which input tokens should be withdrawn to fund the order"
509
+ ],
510
+ "writable": true
511
+ },
512
+ {
513
+ "name": "output_token_account",
514
+ "docs": [
515
+ "Account to which output from the fill should be sent. If the order specifies that it should",
516
+ "output native SOL, then this should be the user's wallet, although any account is allowed.",
517
+ "If the order doesn't specify that it should output native SOL, then this must be an SPL",
518
+ "token account, and the token account's mint determines the order's output mint."
519
+ ]
520
+ },
521
+ {
522
+ "name": "return_input_token_account",
523
+ "docs": [
524
+ "Account to which leftover tokens in the order vault should be returned when the order is",
525
+ "filled or closed. If the input is native SOL, this should be the user's wallet, although any",
526
+ "account is allowed. If the input is wrapped SOL or an SPL token, this must be an SPL token",
527
+ "account for the input mint."
528
+ ]
529
+ },
530
+ {
531
+ "name": "input_mint"
532
+ },
533
+ {
534
+ "name": "user_token_authority",
535
+ "docs": [
536
+ "Authority of the input token account"
537
+ ],
538
+ "signer": true
539
+ },
540
+ {
541
+ "name": "fee_payer",
542
+ "docs": [
543
+ "Account that pays the fee budget for the order"
544
+ ],
545
+ "writable": true,
546
+ "signer": true
547
+ },
548
+ {
549
+ "name": "fee_receiver",
550
+ "docs": [
551
+ "Account that receives the fee budget funds"
552
+ ],
553
+ "writable": true
554
+ },
555
+ {
556
+ "name": "rent_depositor",
557
+ "docs": [
558
+ "Depositor for the order account and vault account rent"
559
+ ],
560
+ "writable": true,
561
+ "signer": true
562
+ },
563
+ {
564
+ "name": "token_program",
565
+ "address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"
566
+ },
567
+ {
568
+ "name": "system_program",
569
+ "address": "11111111111111111111111111111111"
570
+ },
571
+ {
572
+ "name": "rent",
573
+ "address": "SysvarRent111111111111111111111111111111111"
574
+ }
575
+ ],
576
+ "args": [
577
+ {
578
+ "name": "params",
579
+ "type": {
580
+ "defined": {
581
+ "name": "OpenOrderParams"
582
+ }
583
+ }
584
+ }
585
+ ]
586
+ },
587
+ {
588
+ "name": "swap",
589
+ "docs": [
590
+ "Executes a token swap"
591
+ ],
592
+ "discriminator": [
593
+ 248,
594
+ 198,
595
+ 158,
596
+ 145,
597
+ 225,
598
+ 117,
599
+ 135,
600
+ 200
601
+ ],
602
+ "accounts": [
603
+ {
604
+ "name": "token_program",
605
+ "address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"
606
+ },
607
+ {
608
+ "name": "associated_token_program",
609
+ "address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL"
610
+ },
611
+ {
612
+ "name": "system_program",
613
+ "address": "11111111111111111111111111111111"
614
+ },
615
+ {
616
+ "name": "user_token_authority",
617
+ "signer": true
618
+ },
619
+ {
620
+ "name": "event_authority",
621
+ "pda": {
622
+ "seeds": [
623
+ {
624
+ "kind": "const",
625
+ "value": [
626
+ 95,
627
+ 95,
628
+ 101,
629
+ 118,
630
+ 101,
631
+ 110,
632
+ 116,
633
+ 95,
634
+ 97,
635
+ 117,
636
+ 116,
637
+ 104,
638
+ 111,
639
+ 114,
640
+ 105,
641
+ 116,
642
+ 121
643
+ ]
644
+ }
645
+ ]
646
+ }
647
+ },
648
+ {
649
+ "name": "program"
650
+ }
651
+ ],
652
+ "args": [
653
+ {
654
+ "name": "params",
655
+ "type": {
656
+ "defined": {
657
+ "name": "SwapParams"
658
+ }
659
+ }
660
+ }
661
+ ]
662
+ },
663
+ {
664
+ "name": "swap2",
665
+ "docs": [
666
+ "Executes a token swap with a slippage fee"
667
+ ],
668
+ "discriminator": [
669
+ 65,
670
+ 75,
671
+ 63,
672
+ 76,
673
+ 235,
674
+ 91,
675
+ 91,
676
+ 136
677
+ ],
678
+ "accounts": [
679
+ {
680
+ "name": "token_program",
681
+ "address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"
682
+ },
683
+ {
684
+ "name": "associated_token_program",
685
+ "address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL"
686
+ },
687
+ {
688
+ "name": "system_program",
689
+ "address": "11111111111111111111111111111111"
690
+ },
691
+ {
692
+ "name": "user_token_authority",
693
+ "signer": true
694
+ },
695
+ {
696
+ "name": "event_authority",
697
+ "pda": {
698
+ "seeds": [
699
+ {
700
+ "kind": "const",
701
+ "value": [
702
+ 95,
703
+ 95,
704
+ 101,
705
+ 118,
706
+ 101,
707
+ 110,
708
+ 116,
709
+ 95,
710
+ 97,
711
+ 117,
712
+ 116,
713
+ 104,
714
+ 111,
715
+ 114,
716
+ 105,
717
+ 116,
718
+ 121
719
+ ]
720
+ }
721
+ ]
722
+ }
723
+ },
724
+ {
725
+ "name": "program"
726
+ }
727
+ ],
728
+ "args": [
729
+ {
730
+ "name": "params",
731
+ "type": {
732
+ "defined": {
733
+ "name": "Swap2Params"
734
+ }
735
+ }
736
+ }
737
+ ]
738
+ },
739
+ {
740
+ "name": "swap2_with_destination",
741
+ "docs": [
742
+ "Executes a token swap with a slippage fee. Outputs to the specified destination account."
743
+ ],
744
+ "discriminator": [
745
+ 95,
746
+ 123,
747
+ 213,
748
+ 246,
749
+ 122,
750
+ 1,
751
+ 86,
752
+ 231
753
+ ],
754
+ "accounts": [
755
+ {
756
+ "name": "token_program",
757
+ "address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"
758
+ },
759
+ {
760
+ "name": "associated_token_program",
761
+ "address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL"
762
+ },
763
+ {
764
+ "name": "system_program",
765
+ "address": "11111111111111111111111111111111"
766
+ },
767
+ {
768
+ "name": "user_token_authority",
769
+ "signer": true
770
+ },
771
+ {
772
+ "name": "destination_token_account",
773
+ "writable": true
774
+ },
775
+ {
776
+ "name": "destination_token_authority"
777
+ },
778
+ {
779
+ "name": "destination_mint"
780
+ },
781
+ {
782
+ "name": "event_authority",
783
+ "pda": {
784
+ "seeds": [
785
+ {
786
+ "kind": "const",
787
+ "value": [
788
+ 95,
789
+ 95,
790
+ 101,
791
+ 118,
792
+ 101,
793
+ 110,
794
+ 116,
795
+ 95,
796
+ 97,
797
+ 117,
798
+ 116,
799
+ 104,
800
+ 111,
801
+ 114,
802
+ 105,
803
+ 116,
804
+ 121
805
+ ]
806
+ }
807
+ ]
808
+ }
809
+ },
810
+ {
811
+ "name": "program"
812
+ }
813
+ ],
814
+ "args": [
815
+ {
816
+ "name": "params",
817
+ "type": {
818
+ "defined": {
819
+ "name": "Swap2Params"
820
+ }
821
+ }
822
+ }
823
+ ]
824
+ },
825
+ {
826
+ "name": "swap2_with_destination_native",
827
+ "docs": [
828
+ "Executes a token swap with a slippage fee. Outputs native SOL to the specified destination",
829
+ "account by unwrapping WSOL."
830
+ ],
831
+ "discriminator": [
832
+ 222,
833
+ 100,
834
+ 184,
835
+ 146,
836
+ 186,
837
+ 196,
838
+ 105,
839
+ 165
840
+ ],
841
+ "accounts": [
842
+ {
843
+ "name": "token_program",
844
+ "address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"
845
+ },
846
+ {
847
+ "name": "associated_token_program",
848
+ "address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL"
849
+ },
850
+ {
851
+ "name": "system_program",
852
+ "address": "11111111111111111111111111111111"
853
+ },
854
+ {
855
+ "name": "user_token_authority",
856
+ "signer": true
857
+ },
858
+ {
859
+ "name": "destination_account",
860
+ "docs": [
861
+ "The destination account that will receive the native SOL"
862
+ ],
863
+ "writable": true
864
+ },
865
+ {
866
+ "name": "event_authority",
867
+ "pda": {
868
+ "seeds": [
869
+ {
870
+ "kind": "const",
871
+ "value": [
872
+ 95,
873
+ 95,
874
+ 101,
875
+ 118,
876
+ 101,
877
+ 110,
878
+ 116,
879
+ 95,
880
+ 97,
881
+ 117,
882
+ 116,
883
+ 104,
884
+ 111,
885
+ 114,
886
+ 105,
887
+ 116,
888
+ 121
889
+ ]
890
+ }
891
+ ]
892
+ }
893
+ },
894
+ {
895
+ "name": "program"
896
+ }
897
+ ],
898
+ "args": [
899
+ {
900
+ "name": "params",
901
+ "type": {
902
+ "defined": {
903
+ "name": "Swap2Params"
904
+ }
905
+ }
906
+ }
907
+ ]
908
+ },
909
+ {
910
+ "name": "swap_with_destination",
911
+ "docs": [
912
+ "Executes a token swap. Outputs to the specified destination account."
913
+ ],
914
+ "discriminator": [
915
+ 168,
916
+ 172,
917
+ 24,
918
+ 77,
919
+ 197,
920
+ 156,
921
+ 135,
922
+ 101
923
+ ],
924
+ "accounts": [
925
+ {
926
+ "name": "token_program",
927
+ "address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"
928
+ },
929
+ {
930
+ "name": "associated_token_program",
931
+ "address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL"
932
+ },
933
+ {
934
+ "name": "system_program",
935
+ "address": "11111111111111111111111111111111"
936
+ },
937
+ {
938
+ "name": "user_token_authority",
939
+ "signer": true
940
+ },
941
+ {
942
+ "name": "destination_token_account",
943
+ "writable": true
944
+ },
945
+ {
946
+ "name": "destination_token_authority"
947
+ },
948
+ {
949
+ "name": "destination_mint"
950
+ },
951
+ {
952
+ "name": "event_authority",
953
+ "pda": {
954
+ "seeds": [
955
+ {
956
+ "kind": "const",
957
+ "value": [
958
+ 95,
959
+ 95,
960
+ 101,
961
+ 118,
962
+ 101,
963
+ 110,
964
+ 116,
965
+ 95,
966
+ 97,
967
+ 117,
968
+ 116,
969
+ 104,
970
+ 111,
971
+ 114,
972
+ 105,
973
+ 116,
974
+ 121
975
+ ]
976
+ }
977
+ ]
978
+ }
979
+ },
980
+ {
981
+ "name": "program"
982
+ }
983
+ ],
984
+ "args": [
985
+ {
986
+ "name": "params",
987
+ "type": {
988
+ "defined": {
989
+ "name": "SwapParams"
990
+ }
991
+ }
992
+ }
993
+ ]
994
+ },
995
+ {
996
+ "name": "swap_with_destination_native",
997
+ "docs": [
998
+ "Executes a token swap. Outputs native SOL to the specified destination account by unwrapping",
999
+ "WSOL."
1000
+ ],
1001
+ "discriminator": [
1002
+ 205,
1003
+ 77,
1004
+ 127,
1005
+ 108,
1006
+ 241,
1007
+ 32,
1008
+ 196,
1009
+ 195
1010
+ ],
1011
+ "accounts": [
1012
+ {
1013
+ "name": "token_program",
1014
+ "address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"
1015
+ },
1016
+ {
1017
+ "name": "associated_token_program",
1018
+ "address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL"
1019
+ },
1020
+ {
1021
+ "name": "system_program",
1022
+ "address": "11111111111111111111111111111111"
1023
+ },
1024
+ {
1025
+ "name": "user_token_authority",
1026
+ "signer": true
1027
+ },
1028
+ {
1029
+ "name": "destination_account",
1030
+ "docs": [
1031
+ "The destination account that will receive the native SOL"
1032
+ ],
1033
+ "writable": true
1034
+ },
1035
+ {
1036
+ "name": "event_authority",
1037
+ "pda": {
1038
+ "seeds": [
1039
+ {
1040
+ "kind": "const",
1041
+ "value": [
1042
+ 95,
1043
+ 95,
1044
+ 101,
1045
+ 118,
1046
+ 101,
1047
+ 110,
1048
+ 116,
1049
+ 95,
1050
+ 97,
1051
+ 117,
1052
+ 116,
1053
+ 104,
1054
+ 111,
1055
+ 114,
1056
+ 105,
1057
+ 116,
1058
+ 121
1059
+ ]
1060
+ }
1061
+ ]
1062
+ }
1063
+ },
1064
+ {
1065
+ "name": "program"
1066
+ }
1067
+ ],
1068
+ "args": [
1069
+ {
1070
+ "name": "params",
1071
+ "type": {
1072
+ "defined": {
1073
+ "name": "SwapParams"
1074
+ }
1075
+ }
1076
+ }
1077
+ ]
1078
+ },
1079
+ {
1080
+ "name": "transfer_fee",
1081
+ "docs": [
1082
+ "Transfer an SPL token fee if the receiving account can receive it"
1083
+ ],
1084
+ "discriminator": [
1085
+ 129,
1086
+ 164,
1087
+ 196,
1088
+ 21,
1089
+ 177,
1090
+ 48,
1091
+ 180,
1092
+ 162
1093
+ ],
1094
+ "accounts": [
1095
+ {
1096
+ "name": "from"
1097
+ },
1098
+ {
1099
+ "name": "to"
1100
+ },
1101
+ {
1102
+ "name": "authority"
1103
+ },
1104
+ {
1105
+ "name": "token_program"
1106
+ },
1107
+ {
1108
+ "name": "event_authority",
1109
+ "pda": {
1110
+ "seeds": [
1111
+ {
1112
+ "kind": "const",
1113
+ "value": [
1114
+ 95,
1115
+ 95,
1116
+ 101,
1117
+ 118,
1118
+ 101,
1119
+ 110,
1120
+ 116,
1121
+ 95,
1122
+ 97,
1123
+ 117,
1124
+ 116,
1125
+ 104,
1126
+ 111,
1127
+ 114,
1128
+ 105,
1129
+ 116,
1130
+ 121
1131
+ ]
1132
+ }
1133
+ ]
1134
+ }
1135
+ },
1136
+ {
1137
+ "name": "program"
1138
+ }
1139
+ ],
1140
+ "args": [
1141
+ {
1142
+ "name": "amount",
1143
+ "type": "u64"
1144
+ }
1145
+ ]
1146
+ },
1147
+ {
1148
+ "name": "transfer_sol",
1149
+ "docs": [
1150
+ "Transfer native SOL from one account to another"
1151
+ ],
1152
+ "discriminator": [
1153
+ 78,
1154
+ 10,
1155
+ 236,
1156
+ 247,
1157
+ 109,
1158
+ 117,
1159
+ 21,
1160
+ 76
1161
+ ],
1162
+ "accounts": [
1163
+ {
1164
+ "name": "from"
1165
+ },
1166
+ {
1167
+ "name": "to"
1168
+ },
1169
+ {
1170
+ "name": "system_program"
1171
+ }
1172
+ ],
1173
+ "args": [
1174
+ {
1175
+ "name": "lamports",
1176
+ "type": "u64"
1177
+ }
1178
+ ]
1179
+ },
1180
+ {
1181
+ "name": "transfer_to_sponsor",
1182
+ "docs": [
1183
+ "Transfer an SPL token to a sponsor's token account, creating the sponsor's token account if",
1184
+ "necessary."
1185
+ ],
1186
+ "discriminator": [
1187
+ 155,
1188
+ 179,
1189
+ 130,
1190
+ 151,
1191
+ 196,
1192
+ 139,
1193
+ 253,
1194
+ 163
1195
+ ],
1196
+ "accounts": [
1197
+ {
1198
+ "name": "user_token_authority"
1199
+ },
1200
+ {
1201
+ "name": "user_token_account"
1202
+ },
1203
+ {
1204
+ "name": "sponsor"
1205
+ },
1206
+ {
1207
+ "name": "sponsor_token_account"
1208
+ },
1209
+ {
1210
+ "name": "mint"
1211
+ },
1212
+ {
1213
+ "name": "token_program"
1214
+ },
1215
+ {
1216
+ "name": "associated_token_program"
1217
+ },
1218
+ {
1219
+ "name": "system_program"
1220
+ }
1221
+ ],
1222
+ "args": [
1223
+ {
1224
+ "name": "amount",
1225
+ "type": "u64"
1226
+ }
1227
+ ]
1228
+ },
1229
+ {
1230
+ "name": "unwrap_sol",
1231
+ "docs": [
1232
+ "Unwrap all SOL in the provided wrapped SOL token account"
1233
+ ],
1234
+ "discriminator": [
1235
+ 99,
1236
+ 40,
1237
+ 14,
1238
+ 105,
1239
+ 45,
1240
+ 107,
1241
+ 172,
1242
+ 201
1243
+ ],
1244
+ "accounts": [
1245
+ {
1246
+ "name": "owner"
1247
+ },
1248
+ {
1249
+ "name": "wrapped_sol_associated_token_account"
1250
+ },
1251
+ {
1252
+ "name": "token_program"
1253
+ }
1254
+ ],
1255
+ "args": []
1256
+ },
1257
+ {
1258
+ "name": "wrap_sol",
1259
+ "docs": [
1260
+ "Wrap SOL, creating a wrapped SOL associated token account if necessary"
1261
+ ],
1262
+ "discriminator": [
1263
+ 47,
1264
+ 62,
1265
+ 155,
1266
+ 172,
1267
+ 131,
1268
+ 205,
1269
+ 37,
1270
+ 201
1271
+ ],
1272
+ "accounts": [
1273
+ {
1274
+ "name": "from"
1275
+ },
1276
+ {
1277
+ "name": "wrapped_sol_associated_token_account"
1278
+ },
1279
+ {
1280
+ "name": "native_mint"
1281
+ },
1282
+ {
1283
+ "name": "token_program"
1284
+ },
1285
+ {
1286
+ "name": "associated_token_program"
1287
+ },
1288
+ {
1289
+ "name": "system_program"
1290
+ }
1291
+ ],
1292
+ "args": [
1293
+ {
1294
+ "name": "lamports",
1295
+ "type": "u64"
1296
+ }
1297
+ ]
1298
+ }
1299
+ ],
1300
+ "accounts": [
1301
+ {
1302
+ "name": "Order",
1303
+ "discriminator": [
1304
+ 134,
1305
+ 173,
1306
+ 223,
1307
+ 185,
1308
+ 77,
1309
+ 86,
1310
+ 28,
1311
+ 51
1312
+ ]
1313
+ }
1314
+ ],
1315
+ "events": [
1316
+ {
1317
+ "name": "FeeEvent",
1318
+ "discriminator": [
1319
+ 73,
1320
+ 79,
1321
+ 78,
1322
+ 127,
1323
+ 184,
1324
+ 213,
1325
+ 13,
1326
+ 220
1327
+ ]
1328
+ },
1329
+ {
1330
+ "name": "SwapEvent",
1331
+ "discriminator": [
1332
+ 64,
1333
+ 198,
1334
+ 205,
1335
+ 232,
1336
+ 38,
1337
+ 8,
1338
+ 113,
1339
+ 226
1340
+ ]
1341
+ }
1342
+ ],
1343
+ "errors": [
1344
+ {
1345
+ "code": 15000,
1346
+ "name": "SwapCpiFailed",
1347
+ "msg": "Swap CPI failed"
1348
+ },
1349
+ {
1350
+ "code": 15001,
1351
+ "name": "SlippageLimitExceeded",
1352
+ "msg": "Slippage limit exceeded"
1353
+ },
1354
+ {
1355
+ "code": 15002,
1356
+ "name": "FeeAccountNotSpecified",
1357
+ "msg": "Fee account must be specified when platform_fee_bps is nonzero"
1358
+ },
1359
+ {
1360
+ "code": 15003,
1361
+ "name": "InvalidFeeAccountOwner",
1362
+ "msg": "Invalid fee account owner"
1363
+ },
1364
+ {
1365
+ "code": 15004,
1366
+ "name": "InputAmountIsZero",
1367
+ "msg": "input_amount must be greater than 0"
1368
+ },
1369
+ {
1370
+ "code": 15005,
1371
+ "name": "OutputTokenAccountMismatch",
1372
+ "msg": "Swap output token account did not match the order's output_token_account"
1373
+ },
1374
+ {
1375
+ "code": 15006,
1376
+ "name": "OrderNotFillableAfterLastFillableSlot",
1377
+ "msg": "Order's last_fillable_slot has passed"
1378
+ },
1379
+ {
1380
+ "code": 15007,
1381
+ "name": "FillOrderNotAuthorized",
1382
+ "msg": "filler is not authorized to fill the order"
1383
+ },
1384
+ {
1385
+ "code": 15008,
1386
+ "name": "MintAccountNotSpecified",
1387
+ "msg": "Instruction must specify mint account"
1388
+ },
1389
+ {
1390
+ "code": 15009,
1391
+ "name": "ReturnInputTokenAccountMismatch",
1392
+ "msg": "return_input_token_account did not match the order's return_input_token_account"
1393
+ },
1394
+ {
1395
+ "code": 15010,
1396
+ "name": "ReturnRentToMismatch",
1397
+ "msg": "return_rent_to did not match the order's return_rent_to"
1398
+ },
1399
+ {
1400
+ "code": 15011,
1401
+ "name": "CloseOrderNotAuthorized",
1402
+ "msg": "closer is not authorized to close the order"
1403
+ },
1404
+ {
1405
+ "code": 15012,
1406
+ "name": "InvalidReturnInputTokenAccount",
1407
+ "msg": "Invalid return_input_token_account"
1408
+ },
1409
+ {
1410
+ "code": 15013,
1411
+ "name": "InvalidOutputTokenAccount",
1412
+ "msg": "Invalid output_token_account"
1413
+ },
1414
+ {
1415
+ "code": 15014,
1416
+ "name": "CouldNotReturnInput",
1417
+ "msg": "Couldn't return input from vault"
1418
+ },
1419
+ {
1420
+ "code": 15015,
1421
+ "name": "LegInputOverconsumption",
1422
+ "msg": "Leg consumed more than allowed input amount"
1423
+ },
1424
+ {
1425
+ "code": 15016,
1426
+ "name": "RouteInputUnderconsumption",
1427
+ "msg": "Route consumed less than minimum allowed amount of input"
1428
+ },
1429
+ {
1430
+ "code": 15017,
1431
+ "name": "LegConsumedOutput",
1432
+ "msg": "Leg consumed output"
1433
+ },
1434
+ {
1435
+ "code": 15018,
1436
+ "name": "LegConsumedLamports",
1437
+ "msg": "Leg consumed lamports"
1438
+ },
1439
+ {
1440
+ "code": 15019,
1441
+ "name": "PumpFunAmmCreatedFeeAta",
1442
+ "msg": "Pump.fun AMM leg created the protocol fee ATA"
1443
+ },
1444
+ {
1445
+ "code": 15020,
1446
+ "name": "SkippedLeg",
1447
+ "msg": "A leg in the route was skipped"
1448
+ },
1449
+ {
1450
+ "code": 15021,
1451
+ "name": "DestinationTokenAccountDoesNotExist",
1452
+ "msg": "Destination token account does not exist"
1453
+ },
1454
+ {
1455
+ "code": 15022,
1456
+ "name": "Token2022ProgramNotProvided",
1457
+ "msg": "Token 2022 Program account not provided"
1458
+ },
1459
+ {
1460
+ "code": 15023,
1461
+ "name": "InvalidLegInputTokenAccount",
1462
+ "msg": "Invalid leg input token account"
1463
+ },
1464
+ {
1465
+ "code": 15024,
1466
+ "name": "RaydiumLaunchlabCreatedFeeAta",
1467
+ "msg": "Raydium Launchlab leg created fee ATA"
1468
+ },
1469
+ {
1470
+ "code": 15025,
1471
+ "name": "LegUnderproducedOutput",
1472
+ "msg": "Leg produced less output than expected"
1473
+ },
1474
+ {
1475
+ "code": 15026,
1476
+ "name": "NoSettlementTokensReceived",
1477
+ "msg": "No settlement tokens were received during the swap"
1478
+ },
1479
+ {
1480
+ "code": 15027,
1481
+ "name": "InsufficientAccountsForOpenPredictionsOrder",
1482
+ "msg": "Insufficient accounts provided for OpenPredictionsOrder action"
1483
+ },
1484
+ {
1485
+ "code": 15028,
1486
+ "name": "InvalidTokenAccount",
1487
+ "msg": "Invalid token account. Must be either spl_token or spl_token_2022 account"
1488
+ },
1489
+ {
1490
+ "code": 15999,
1491
+ "name": "InvalidInstructionData"
1492
+ }
1493
+ ],
1494
+ "types": [
1495
+ {
1496
+ "name": "Action",
1497
+ "type": {
1498
+ "kind": "enum",
1499
+ "variants": [
1500
+ {
1501
+ "name": "WhirlpoolsSwap",
1502
+ "fields": [
1503
+ {
1504
+ "defined": {
1505
+ "name": "WhirlpoolsSwapOptions"
1506
+ }
1507
+ }
1508
+ ]
1509
+ },
1510
+ {
1511
+ "name": "ClearpoolsSwap",
1512
+ "fields": [
1513
+ {
1514
+ "defined": {
1515
+ "name": "ClearpoolsSwapOptions"
1516
+ }
1517
+ }
1518
+ ]
1519
+ },
1520
+ {
1521
+ "name": "RaydiumAmmSwap",
1522
+ "fields": [
1523
+ {
1524
+ "defined": {
1525
+ "name": "RaydiumAmmSwapOptions"
1526
+ }
1527
+ }
1528
+ ]
1529
+ },
1530
+ {
1531
+ "name": "LifinityV2Swap",
1532
+ "fields": [
1533
+ {
1534
+ "defined": {
1535
+ "name": "LifinityV2SwapOptions"
1536
+ }
1537
+ }
1538
+ ]
1539
+ },
1540
+ {
1541
+ "name": "MeteoraDlmmSwap",
1542
+ "fields": [
1543
+ {
1544
+ "defined": {
1545
+ "name": "MeteoraDlmmSwapOptions"
1546
+ }
1547
+ }
1548
+ ]
1549
+ },
1550
+ {
1551
+ "name": "RaydiumClmmSwap",
1552
+ "fields": [
1553
+ {
1554
+ "defined": {
1555
+ "name": "RaydiumClmmSwapOptions"
1556
+ }
1557
+ }
1558
+ ]
1559
+ },
1560
+ {
1561
+ "name": "RaydiumClmmSwapV2",
1562
+ "fields": [
1563
+ {
1564
+ "defined": {
1565
+ "name": "RaydiumClmmSwapV2Options"
1566
+ }
1567
+ }
1568
+ ]
1569
+ },
1570
+ {
1571
+ "name": "PhoenixSwap",
1572
+ "fields": [
1573
+ {
1574
+ "defined": {
1575
+ "name": "PhoenixSwapOptions"
1576
+ }
1577
+ }
1578
+ ]
1579
+ },
1580
+ {
1581
+ "name": "PumpFunBuy",
1582
+ "fields": [
1583
+ {
1584
+ "defined": {
1585
+ "name": "PumpFunBuyOptions"
1586
+ }
1587
+ }
1588
+ ]
1589
+ },
1590
+ {
1591
+ "name": "PumpFunSell",
1592
+ "fields": [
1593
+ {
1594
+ "defined": {
1595
+ "name": "PumpFunSellOptions"
1596
+ }
1597
+ }
1598
+ ]
1599
+ },
1600
+ {
1601
+ "name": "GammaSwap",
1602
+ "fields": [
1603
+ {
1604
+ "defined": {
1605
+ "name": "GammaSwapOptions"
1606
+ }
1607
+ }
1608
+ ]
1609
+ },
1610
+ {
1611
+ "name": "ObricV2Swap",
1612
+ "fields": [
1613
+ {
1614
+ "defined": {
1615
+ "name": "ObricV2SwapOptions"
1616
+ }
1617
+ }
1618
+ ]
1619
+ },
1620
+ {
1621
+ "name": "PumpFunAmmBuy",
1622
+ "fields": [
1623
+ {
1624
+ "defined": {
1625
+ "name": "PumpFunAmmBuyOptions"
1626
+ }
1627
+ }
1628
+ ]
1629
+ },
1630
+ {
1631
+ "name": "PumpFunAmmSell",
1632
+ "fields": [
1633
+ {
1634
+ "defined": {
1635
+ "name": "PumpFunAmmSellOptions"
1636
+ }
1637
+ }
1638
+ ]
1639
+ },
1640
+ {
1641
+ "name": "SolFiSwap",
1642
+ "fields": [
1643
+ {
1644
+ "defined": {
1645
+ "name": "SolFiSwapOptions"
1646
+ }
1647
+ }
1648
+ ]
1649
+ },
1650
+ {
1651
+ "name": "RubiconSwap",
1652
+ "fields": [
1653
+ {
1654
+ "defined": {
1655
+ "name": "RubiconSwapOptions"
1656
+ }
1657
+ }
1658
+ ]
1659
+ },
1660
+ {
1661
+ "name": "MeteoraDammV1Swap",
1662
+ "fields": [
1663
+ {
1664
+ "defined": {
1665
+ "name": "MeteoraDammV1SwapOptions"
1666
+ }
1667
+ }
1668
+ ]
1669
+ },
1670
+ {
1671
+ "name": "RaydiumCpSwap",
1672
+ "fields": [
1673
+ {
1674
+ "defined": {
1675
+ "name": "RaydiumCpSwapOptions"
1676
+ }
1677
+ }
1678
+ ]
1679
+ },
1680
+ {
1681
+ "name": "StabbleStableSwap",
1682
+ "fields": [
1683
+ {
1684
+ "defined": {
1685
+ "name": "StabbleStableSwapOptions"
1686
+ }
1687
+ }
1688
+ ]
1689
+ },
1690
+ {
1691
+ "name": "TesseraVSwap",
1692
+ "fields": [
1693
+ {
1694
+ "defined": {
1695
+ "name": "TesseraVSwapOptions"
1696
+ }
1697
+ }
1698
+ ]
1699
+ },
1700
+ {
1701
+ "name": "MeteoraDammV2Swap",
1702
+ "fields": [
1703
+ {
1704
+ "defined": {
1705
+ "name": "MeteoraDammV2SwapOptions"
1706
+ }
1707
+ }
1708
+ ]
1709
+ },
1710
+ {
1711
+ "name": "RaydiumLaunchlabSwap",
1712
+ "fields": [
1713
+ {
1714
+ "defined": {
1715
+ "name": "RaydiumLaunchlabSwapOptions"
1716
+ }
1717
+ }
1718
+ ]
1719
+ },
1720
+ {
1721
+ "name": "MeteoraDbcSwap",
1722
+ "fields": [
1723
+ {
1724
+ "defined": {
1725
+ "name": "MeteoraDbcSwapOptions"
1726
+ }
1727
+ }
1728
+ ]
1729
+ },
1730
+ {
1731
+ "name": "HumidiFiSwap",
1732
+ "fields": [
1733
+ {
1734
+ "defined": {
1735
+ "name": "HumidiFiSwapOptions"
1736
+ }
1737
+ }
1738
+ ]
1739
+ },
1740
+ {
1741
+ "name": "WhirlpoolsSwapV2",
1742
+ "fields": [
1743
+ {
1744
+ "defined": {
1745
+ "name": "WhirlpoolsSwapV2Options"
1746
+ }
1747
+ }
1748
+ ]
1749
+ },
1750
+ {
1751
+ "name": "MeteoraDlmmSwapV2",
1752
+ "fields": [
1753
+ {
1754
+ "defined": {
1755
+ "name": "MeteoraDlmmSwapV2Options"
1756
+ }
1757
+ }
1758
+ ]
1759
+ },
1760
+ {
1761
+ "name": "ZeroFiSwap",
1762
+ "fields": [
1763
+ {
1764
+ "defined": {
1765
+ "name": "ZeroFiSwapOptions"
1766
+ }
1767
+ }
1768
+ ]
1769
+ },
1770
+ {
1771
+ "name": "AlphaQSwap",
1772
+ "fields": [
1773
+ {
1774
+ "defined": {
1775
+ "name": "AlphaQSwapOptions"
1776
+ }
1777
+ }
1778
+ ]
1779
+ },
1780
+ {
1781
+ "name": "TokenSwap",
1782
+ "fields": [
1783
+ {
1784
+ "defined": {
1785
+ "name": "TokenSwapOptions"
1786
+ }
1787
+ }
1788
+ ]
1789
+ },
1790
+ {
1791
+ "name": "SolFiV2Swap",
1792
+ "fields": [
1793
+ {
1794
+ "defined": {
1795
+ "name": "SolFiV2SwapOptions"
1796
+ }
1797
+ }
1798
+ ]
1799
+ },
1800
+ {
1801
+ "name": "MozartSwap",
1802
+ "fields": [
1803
+ {
1804
+ "defined": {
1805
+ "name": "MozartSwapOptions"
1806
+ }
1807
+ }
1808
+ ]
1809
+ },
1810
+ {
1811
+ "name": "DFlowDynamicRouteV1",
1812
+ "fields": [
1813
+ {
1814
+ "defined": {
1815
+ "name": "DFlowDynamicRouteV1Options"
1816
+ }
1817
+ }
1818
+ ]
1819
+ },
1820
+ {
1821
+ "name": "HeavenSwap",
1822
+ "fields": [
1823
+ {
1824
+ "defined": {
1825
+ "name": "HeavenSwapOptions"
1826
+ }
1827
+ }
1828
+ ]
1829
+ },
1830
+ {
1831
+ "name": "NexusSwap",
1832
+ "fields": [
1833
+ {
1834
+ "defined": {
1835
+ "name": "NexusSwapOptions"
1836
+ }
1837
+ }
1838
+ ]
1839
+ },
1840
+ {
1841
+ "name": "SarosDlmmSwap",
1842
+ "fields": [
1843
+ {
1844
+ "defined": {
1845
+ "name": "SarosDlmmSwapOptions"
1846
+ }
1847
+ }
1848
+ ]
1849
+ },
1850
+ {
1851
+ "name": "TransferFee",
1852
+ "fields": [
1853
+ {
1854
+ "defined": {
1855
+ "name": "TransferFeeOptions"
1856
+ }
1857
+ }
1858
+ ]
1859
+ },
1860
+ {
1861
+ "name": "TransferFeeWithMint",
1862
+ "fields": [
1863
+ {
1864
+ "defined": {
1865
+ "name": "TransferFeeOptions"
1866
+ }
1867
+ }
1868
+ ]
1869
+ },
1870
+ {
1871
+ "name": "RecordId",
1872
+ "fields": [
1873
+ {
1874
+ "defined": {
1875
+ "name": "RecordIdOptions"
1876
+ }
1877
+ }
1878
+ ]
1879
+ },
1880
+ {
1881
+ "name": "RecordId2",
1882
+ "fields": [
1883
+ {
1884
+ "defined": {
1885
+ "name": "RecordId2Options"
1886
+ }
1887
+ }
1888
+ ]
1889
+ },
1890
+ {
1891
+ "name": "ManifestSwap",
1892
+ "fields": [
1893
+ {
1894
+ "defined": {
1895
+ "name": "ManifestSwapOptions"
1896
+ }
1897
+ }
1898
+ ]
1899
+ },
1900
+ {
1901
+ "name": "BisonFiSwap",
1902
+ "fields": [
1903
+ {
1904
+ "defined": {
1905
+ "name": "BisonFiSwapOptions"
1906
+ }
1907
+ }
1908
+ ]
1909
+ },
1910
+ {
1911
+ "name": "SanctumInfinitySwap",
1912
+ "fields": [
1913
+ {
1914
+ "defined": {
1915
+ "name": "SanctumInfinitySwapOptions"
1916
+ }
1917
+ }
1918
+ ]
1919
+ },
1920
+ {
1921
+ "name": "SanctumInfinityLiquidity",
1922
+ "fields": [
1923
+ {
1924
+ "defined": {
1925
+ "name": "SanctumInfinityLiquidityOptions"
1926
+ }
1927
+ }
1928
+ ]
1929
+ },
1930
+ {
1931
+ "name": "OpenPredictionsOrder",
1932
+ "fields": [
1933
+ {
1934
+ "defined": {
1935
+ "name": "OpenPredictionsOrderOptions"
1936
+ }
1937
+ }
1938
+ ]
1939
+ }
1940
+ ]
1941
+ }
1942
+ },
1943
+ {
1944
+ "name": "AlphaQSwapOptions",
1945
+ "type": {
1946
+ "kind": "struct",
1947
+ "fields": [
1948
+ {
1949
+ "name": "amount",
1950
+ "type": "u64"
1951
+ },
1952
+ {
1953
+ "name": "orchestrator_flags",
1954
+ "docs": [
1955
+ "Optional flags for the swap"
1956
+ ],
1957
+ "type": {
1958
+ "defined": {
1959
+ "name": "OrchestratorFlags"
1960
+ }
1961
+ }
1962
+ }
1963
+ ]
1964
+ }
1965
+ },
1966
+ {
1967
+ "name": "BisonFiSwapOptions",
1968
+ "type": {
1969
+ "kind": "struct",
1970
+ "fields": [
1971
+ {
1972
+ "name": "amount",
1973
+ "type": "u64"
1974
+ },
1975
+ {
1976
+ "name": "orchestrator_flags",
1977
+ "docs": [
1978
+ "Optional flags for the swap"
1979
+ ],
1980
+ "type": {
1981
+ "defined": {
1982
+ "name": "OrchestratorFlags"
1983
+ }
1984
+ }
1985
+ }
1986
+ ]
1987
+ }
1988
+ },
1989
+ {
1990
+ "name": "ClearpoolsSwapOptions",
1991
+ "type": {
1992
+ "kind": "struct",
1993
+ "fields": [
1994
+ {
1995
+ "name": "amount",
1996
+ "type": "u64"
1997
+ },
1998
+ {
1999
+ "name": "a_to_b",
2000
+ "type": "bool"
2001
+ },
2002
+ {
2003
+ "name": "orchestrator_flags",
2004
+ "docs": [
2005
+ "Optional flags for the swap"
2006
+ ],
2007
+ "type": {
2008
+ "defined": {
2009
+ "name": "OrchestratorFlags"
2010
+ }
2011
+ }
2012
+ }
2013
+ ]
2014
+ }
2015
+ },
2016
+ {
2017
+ "name": "DFlowDynamicRouteV1Options",
2018
+ "type": {
2019
+ "kind": "struct",
2020
+ "fields": [
2021
+ {
2022
+ "name": "candidate_actions",
2023
+ "type": {
2024
+ "vec": {
2025
+ "defined": {
2026
+ "name": "DynamicRouteV1CandidateAction"
2027
+ }
2028
+ }
2029
+ }
2030
+ },
2031
+ {
2032
+ "name": "amount",
2033
+ "type": "u64"
2034
+ },
2035
+ {
2036
+ "name": "orchestrator_flags",
2037
+ "docs": [
2038
+ "Optional flags for the swap"
2039
+ ],
2040
+ "type": {
2041
+ "defined": {
2042
+ "name": "OrchestratorFlags"
2043
+ }
2044
+ }
2045
+ }
2046
+ ]
2047
+ }
2048
+ },
2049
+ {
2050
+ "name": "DynamicRouteV1CandidateAction",
2051
+ "type": {
2052
+ "kind": "enum",
2053
+ "variants": [
2054
+ {
2055
+ "name": "SolFi",
2056
+ "fields": [
2057
+ {
2058
+ "defined": {
2059
+ "name": "SolFiDynamicRouteV1Options"
2060
+ }
2061
+ }
2062
+ ]
2063
+ },
2064
+ {
2065
+ "name": "Rubicon",
2066
+ "fields": [
2067
+ {
2068
+ "defined": {
2069
+ "name": "RubiconDynamicRouteV1Options"
2070
+ }
2071
+ }
2072
+ ]
2073
+ },
2074
+ {
2075
+ "name": "TesseraV",
2076
+ "fields": [
2077
+ {
2078
+ "defined": {
2079
+ "name": "TesseraVDynamicRouteV1Options"
2080
+ }
2081
+ }
2082
+ ]
2083
+ },
2084
+ {
2085
+ "name": "HumidiFi",
2086
+ "fields": [
2087
+ {
2088
+ "defined": {
2089
+ "name": "HumidiFiDynamicRouteV1Options"
2090
+ }
2091
+ }
2092
+ ]
2093
+ },
2094
+ {
2095
+ "name": "SolFiV2",
2096
+ "fields": [
2097
+ {
2098
+ "defined": {
2099
+ "name": "SolFiV2DynamicRouteV1Options"
2100
+ }
2101
+ }
2102
+ ]
2103
+ },
2104
+ {
2105
+ "name": "Mozart",
2106
+ "fields": [
2107
+ {
2108
+ "defined": {
2109
+ "name": "MozartDynamicRouteV1Options"
2110
+ }
2111
+ }
2112
+ ]
2113
+ },
2114
+ {
2115
+ "name": "ObricV2",
2116
+ "fields": [
2117
+ {
2118
+ "defined": {
2119
+ "name": "ObricV2DynamicRouteV1Options"
2120
+ }
2121
+ }
2122
+ ]
2123
+ },
2124
+ {
2125
+ "name": "Nexus",
2126
+ "fields": [
2127
+ {
2128
+ "defined": {
2129
+ "name": "NexusDynamicRouteV1Options"
2130
+ }
2131
+ }
2132
+ ]
2133
+ }
2134
+ ]
2135
+ }
2136
+ },
2137
+ {
2138
+ "name": "FeeEvent",
2139
+ "type": {
2140
+ "kind": "struct",
2141
+ "fields": [
2142
+ {
2143
+ "name": "account",
2144
+ "type": "pubkey"
2145
+ },
2146
+ {
2147
+ "name": "mint",
2148
+ "type": "pubkey"
2149
+ },
2150
+ {
2151
+ "name": "amount",
2152
+ "type": "u64"
2153
+ }
2154
+ ]
2155
+ }
2156
+ },
2157
+ {
2158
+ "name": "FillOrderParams",
2159
+ "type": {
2160
+ "kind": "struct",
2161
+ "fields": [
2162
+ {
2163
+ "name": "swap_actions",
2164
+ "type": {
2165
+ "vec": {
2166
+ "defined": {
2167
+ "name": "Action"
2168
+ }
2169
+ }
2170
+ }
2171
+ },
2172
+ {
2173
+ "name": "platform_fee_ubps",
2174
+ "type": "u32"
2175
+ }
2176
+ ]
2177
+ }
2178
+ },
2179
+ {
2180
+ "name": "GammaSwapOptions",
2181
+ "type": {
2182
+ "kind": "struct",
2183
+ "fields": [
2184
+ {
2185
+ "name": "amount",
2186
+ "type": "u64"
2187
+ },
2188
+ {
2189
+ "name": "endorsed",
2190
+ "type": "bool"
2191
+ },
2192
+ {
2193
+ "name": "orchestrator_flags",
2194
+ "docs": [
2195
+ "Optional flags for the swap"
2196
+ ],
2197
+ "type": {
2198
+ "defined": {
2199
+ "name": "OrchestratorFlags"
2200
+ }
2201
+ }
2202
+ }
2203
+ ]
2204
+ }
2205
+ },
2206
+ {
2207
+ "name": "HeavenSwapOptions",
2208
+ "type": {
2209
+ "kind": "struct",
2210
+ "fields": [
2211
+ {
2212
+ "name": "amount",
2213
+ "type": "u64"
2214
+ },
2215
+ {
2216
+ "name": "orchestrator_flags",
2217
+ "docs": [
2218
+ "Optional flags for the swap"
2219
+ ],
2220
+ "type": {
2221
+ "defined": {
2222
+ "name": "OrchestratorFlags"
2223
+ }
2224
+ }
2225
+ }
2226
+ ]
2227
+ }
2228
+ },
2229
+ {
2230
+ "name": "HumidiFiDynamicRouteV1Options",
2231
+ "type": {
2232
+ "kind": "struct",
2233
+ "fields": [
2234
+ {
2235
+ "name": "swap_id",
2236
+ "type": "u64"
2237
+ }
2238
+ ]
2239
+ }
2240
+ },
2241
+ {
2242
+ "name": "HumidiFiSwapOptions",
2243
+ "type": {
2244
+ "kind": "struct",
2245
+ "fields": [
2246
+ {
2247
+ "name": "amount",
2248
+ "type": "u64"
2249
+ },
2250
+ {
2251
+ "name": "swap_id",
2252
+ "type": "u64"
2253
+ },
2254
+ {
2255
+ "name": "orchestrator_flags",
2256
+ "docs": [
2257
+ "Optional flags for the swap"
2258
+ ],
2259
+ "type": {
2260
+ "defined": {
2261
+ "name": "OrchestratorFlags"
2262
+ }
2263
+ }
2264
+ }
2265
+ ]
2266
+ }
2267
+ },
2268
+ {
2269
+ "name": "LifinityV2SwapOptions",
2270
+ "type": {
2271
+ "kind": "struct",
2272
+ "fields": [
2273
+ {
2274
+ "name": "amount",
2275
+ "type": "u64"
2276
+ },
2277
+ {
2278
+ "name": "orchestrator_flags",
2279
+ "docs": [
2280
+ "Optional flags for the swap"
2281
+ ],
2282
+ "type": {
2283
+ "defined": {
2284
+ "name": "OrchestratorFlags"
2285
+ }
2286
+ }
2287
+ }
2288
+ ]
2289
+ }
2290
+ },
2291
+ {
2292
+ "name": "ManifestSwapOptions",
2293
+ "type": {
2294
+ "kind": "struct",
2295
+ "fields": [
2296
+ {
2297
+ "name": "amount",
2298
+ "type": "u64"
2299
+ },
2300
+ {
2301
+ "name": "orchestrator_flags",
2302
+ "docs": [
2303
+ "Optional flags for the swap"
2304
+ ],
2305
+ "type": {
2306
+ "defined": {
2307
+ "name": "OrchestratorFlags"
2308
+ }
2309
+ }
2310
+ }
2311
+ ]
2312
+ }
2313
+ },
2314
+ {
2315
+ "name": "MeteoraDammV1SwapOptions",
2316
+ "type": {
2317
+ "kind": "struct",
2318
+ "fields": [
2319
+ {
2320
+ "name": "amount",
2321
+ "type": "u64"
2322
+ },
2323
+ {
2324
+ "name": "orchestrator_flags",
2325
+ "docs": [
2326
+ "Optional flags for the swap"
2327
+ ],
2328
+ "type": {
2329
+ "defined": {
2330
+ "name": "OrchestratorFlags"
2331
+ }
2332
+ }
2333
+ }
2334
+ ]
2335
+ }
2336
+ },
2337
+ {
2338
+ "name": "MeteoraDammV2SwapOptions",
2339
+ "type": {
2340
+ "kind": "struct",
2341
+ "fields": [
2342
+ {
2343
+ "name": "amount",
2344
+ "type": "u64"
2345
+ },
2346
+ {
2347
+ "name": "orchestrator_flags",
2348
+ "docs": [
2349
+ "Optional flags for the swap"
2350
+ ],
2351
+ "type": {
2352
+ "defined": {
2353
+ "name": "OrchestratorFlags"
2354
+ }
2355
+ }
2356
+ }
2357
+ ]
2358
+ }
2359
+ },
2360
+ {
2361
+ "name": "MeteoraDbcSwapOptions",
2362
+ "type": {
2363
+ "kind": "struct",
2364
+ "fields": [
2365
+ {
2366
+ "name": "amount",
2367
+ "type": "u64"
2368
+ },
2369
+ {
2370
+ "name": "is_rate_limiter_applied",
2371
+ "type": "bool"
2372
+ },
2373
+ {
2374
+ "name": "orchestrator_flags",
2375
+ "docs": [
2376
+ "Optional flags for the swap"
2377
+ ],
2378
+ "type": {
2379
+ "defined": {
2380
+ "name": "OrchestratorFlags"
2381
+ }
2382
+ }
2383
+ }
2384
+ ]
2385
+ }
2386
+ },
2387
+ {
2388
+ "name": "MeteoraDlmmSwapOptions",
2389
+ "type": {
2390
+ "kind": "struct",
2391
+ "fields": [
2392
+ {
2393
+ "name": "amount",
2394
+ "type": "u64"
2395
+ },
2396
+ {
2397
+ "name": "num_bin_arrays",
2398
+ "type": "u8"
2399
+ },
2400
+ {
2401
+ "name": "orchestrator_flags",
2402
+ "docs": [
2403
+ "Optional flags for the swap"
2404
+ ],
2405
+ "type": {
2406
+ "defined": {
2407
+ "name": "OrchestratorFlags"
2408
+ }
2409
+ }
2410
+ }
2411
+ ]
2412
+ }
2413
+ },
2414
+ {
2415
+ "name": "MeteoraDlmmSwapV2Options",
2416
+ "type": {
2417
+ "kind": "struct",
2418
+ "fields": [
2419
+ {
2420
+ "name": "amount",
2421
+ "type": "u64"
2422
+ },
2423
+ {
2424
+ "name": "num_bin_arrays",
2425
+ "type": "u8"
2426
+ },
2427
+ {
2428
+ "name": "orchestrator_flags",
2429
+ "docs": [
2430
+ "Optional flags for the swap"
2431
+ ],
2432
+ "type": {
2433
+ "defined": {
2434
+ "name": "OrchestratorFlags"
2435
+ }
2436
+ }
2437
+ }
2438
+ ]
2439
+ }
2440
+ },
2441
+ {
2442
+ "name": "MozartDynamicRouteV1Options",
2443
+ "type": {
2444
+ "kind": "struct",
2445
+ "fields": []
2446
+ }
2447
+ },
2448
+ {
2449
+ "name": "MozartSwapOptions",
2450
+ "type": {
2451
+ "kind": "struct",
2452
+ "fields": [
2453
+ {
2454
+ "name": "amount",
2455
+ "type": "u64"
2456
+ },
2457
+ {
2458
+ "name": "orchestrator_flags",
2459
+ "docs": [
2460
+ "Optional flags for the swap"
2461
+ ],
2462
+ "type": {
2463
+ "defined": {
2464
+ "name": "OrchestratorFlags"
2465
+ }
2466
+ }
2467
+ }
2468
+ ]
2469
+ }
2470
+ },
2471
+ {
2472
+ "name": "NexusDynamicRouteV1Options",
2473
+ "type": {
2474
+ "kind": "struct",
2475
+ "fields": []
2476
+ }
2477
+ },
2478
+ {
2479
+ "name": "NexusSwapOptions",
2480
+ "type": {
2481
+ "kind": "struct",
2482
+ "fields": [
2483
+ {
2484
+ "name": "amount",
2485
+ "type": "u64"
2486
+ },
2487
+ {
2488
+ "name": "orchestrator_flags",
2489
+ "docs": [
2490
+ "Optional flags for the swap"
2491
+ ],
2492
+ "type": {
2493
+ "defined": {
2494
+ "name": "OrchestratorFlags"
2495
+ }
2496
+ }
2497
+ }
2498
+ ]
2499
+ }
2500
+ },
2501
+ {
2502
+ "name": "ObricV2DynamicRouteV1Options",
2503
+ "type": {
2504
+ "kind": "struct",
2505
+ "fields": []
2506
+ }
2507
+ },
2508
+ {
2509
+ "name": "ObricV2SwapOptions",
2510
+ "type": {
2511
+ "kind": "struct",
2512
+ "fields": [
2513
+ {
2514
+ "name": "amount",
2515
+ "type": "u64"
2516
+ },
2517
+ {
2518
+ "name": "orchestrator_flags",
2519
+ "docs": [
2520
+ "Optional flags for the swap"
2521
+ ],
2522
+ "type": {
2523
+ "defined": {
2524
+ "name": "OrchestratorFlags"
2525
+ }
2526
+ }
2527
+ }
2528
+ ]
2529
+ }
2530
+ },
2531
+ {
2532
+ "name": "OpenOrderParams",
2533
+ "type": {
2534
+ "kind": "struct",
2535
+ "fields": [
2536
+ {
2537
+ "name": "input_amount",
2538
+ "type": "u64"
2539
+ },
2540
+ {
2541
+ "name": "quoted_out_amount",
2542
+ "docs": [
2543
+ "Quoted output amount after platform fee"
2544
+ ],
2545
+ "type": "u64"
2546
+ },
2547
+ {
2548
+ "name": "fee_budget",
2549
+ "docs": [
2550
+ "Maximum amount in lamports that the fee payer will pay to have the order filled or closed"
2551
+ ],
2552
+ "type": "u64"
2553
+ },
2554
+ {
2555
+ "name": "order_account_id",
2556
+ "type": "u64"
2557
+ },
2558
+ {
2559
+ "name": "fillable_for_slots",
2560
+ "docs": [
2561
+ "Number of slots after the slot in which the order is opened for which the order is fillable.",
2562
+ "If zero, the order is only fillable in the slot in which the open transaction landed."
2563
+ ],
2564
+ "type": "u32"
2565
+ },
2566
+ {
2567
+ "name": "slippage_bps",
2568
+ "docs": [
2569
+ "Max allowed slippage in basis points. Along with `quoted_out_amount`, this is used to",
2570
+ "calculate the minimum allowed output amount."
2571
+ ],
2572
+ "type": "u16"
2573
+ },
2574
+ {
2575
+ "name": "closer",
2576
+ "docs": [
2577
+ "Account that is authorized to close the order"
2578
+ ],
2579
+ "type": "pubkey"
2580
+ },
2581
+ {
2582
+ "name": "flags",
2583
+ "docs": [
2584
+ "Flags for the order"
2585
+ ],
2586
+ "type": "u8"
2587
+ }
2588
+ ]
2589
+ }
2590
+ },
2591
+ {
2592
+ "name": "OpenPredictionsOrderOptions",
2593
+ "type": {
2594
+ "kind": "struct",
2595
+ "fields": [
2596
+ {
2597
+ "name": "nonce",
2598
+ "type": "u64"
2599
+ },
2600
+ {
2601
+ "name": "order_outcome",
2602
+ "type": "u8"
2603
+ },
2604
+ {
2605
+ "name": "quoted_out_amount",
2606
+ "docs": [
2607
+ "Quoted output amount for the predictions order"
2608
+ ],
2609
+ "type": "u64"
2610
+ },
2611
+ {
2612
+ "name": "slippage_bps",
2613
+ "docs": [
2614
+ "Slippage for the predictions order (separate from swap slippage)"
2615
+ ],
2616
+ "type": "u16"
2617
+ },
2618
+ {
2619
+ "name": "platform_fee_recipient_vault",
2620
+ "type": "pubkey"
2621
+ },
2622
+ {
2623
+ "name": "platform_fee_scale",
2624
+ "type": "u16"
2625
+ }
2626
+ ]
2627
+ }
2628
+ },
2629
+ {
2630
+ "name": "OrchestratorFlags",
2631
+ "type": {
2632
+ "kind": "struct",
2633
+ "fields": [
2634
+ {
2635
+ "name": "flags",
2636
+ "type": "u8"
2637
+ }
2638
+ ]
2639
+ }
2640
+ },
2641
+ {
2642
+ "name": "Order",
2643
+ "serialization": "bytemuck",
2644
+ "repr": {
2645
+ "kind": "c"
2646
+ },
2647
+ "type": {
2648
+ "kind": "struct",
2649
+ "fields": [
2650
+ {
2651
+ "name": "closer",
2652
+ "docs": [
2653
+ "Account that is authorized to close the order"
2654
+ ],
2655
+ "type": "pubkey"
2656
+ },
2657
+ {
2658
+ "name": "output_token_account",
2659
+ "docs": [
2660
+ "Account to which output from the fill should be sent. If the order specifies that it should",
2661
+ "output native SOL, then this should be the user's wallet, although any account is allowed.",
2662
+ "If the order doesn't specify that it should output native SOL, then this must be an SPL",
2663
+ "token account, and the token account's mint determines the order's output mint."
2664
+ ],
2665
+ "type": "pubkey"
2666
+ },
2667
+ {
2668
+ "name": "return_input_token_account",
2669
+ "docs": [
2670
+ "Account to which leftover tokens in the order vault should be returned when the order is",
2671
+ "filled or closed. If the input is native SOL, this should be the user's wallet, although any",
2672
+ "account is allowed. If the input is wrapped SOL or an SPL token, this must be an SPL token",
2673
+ "account for the input mint."
2674
+ ],
2675
+ "type": "pubkey"
2676
+ },
2677
+ {
2678
+ "name": "return_rent_to",
2679
+ "docs": [
2680
+ "Account to which rent for the account should be returned when the account is closed"
2681
+ ],
2682
+ "type": "pubkey"
2683
+ },
2684
+ {
2685
+ "name": "id",
2686
+ "docs": [
2687
+ "ID used to produce a unique PDA for the order account"
2688
+ ],
2689
+ "type": "u64"
2690
+ },
2691
+ {
2692
+ "name": "quoted_out_amount",
2693
+ "type": "u64"
2694
+ },
2695
+ {
2696
+ "name": "last_fillable_slot",
2697
+ "docs": [
2698
+ "Highest slot at which the order can be filled"
2699
+ ],
2700
+ "type": "u64"
2701
+ },
2702
+ {
2703
+ "name": "slippage_bps",
2704
+ "docs": [
2705
+ "Max allowed slippage in basis points. Along with `quoted_out_amount`, this is used to",
2706
+ "calculate the minimum allowed output amount for the order."
2707
+ ],
2708
+ "type": "u16"
2709
+ },
2710
+ {
2711
+ "name": "bump",
2712
+ "type": "u8"
2713
+ },
2714
+ {
2715
+ "name": "vault_bump",
2716
+ "docs": [
2717
+ "Bump seed for the vault token account associated with the order"
2718
+ ],
2719
+ "type": "u8"
2720
+ },
2721
+ {
2722
+ "name": "flags",
2723
+ "docs": [
2724
+ "Flags for the order"
2725
+ ],
2726
+ "type": "u8"
2727
+ },
2728
+ {
2729
+ "name": "_padding1",
2730
+ "type": "u8"
2731
+ },
2732
+ {
2733
+ "name": "_padding2",
2734
+ "type": "u8"
2735
+ },
2736
+ {
2737
+ "name": "_padding3",
2738
+ "type": "u8"
2739
+ }
2740
+ ]
2741
+ }
2742
+ },
2743
+ {
2744
+ "name": "PhoenixSwapOptions",
2745
+ "type": {
2746
+ "kind": "struct",
2747
+ "fields": [
2748
+ {
2749
+ "name": "amount",
2750
+ "type": "u64"
2751
+ },
2752
+ {
2753
+ "name": "side",
2754
+ "type": {
2755
+ "defined": {
2756
+ "name": "Side"
2757
+ }
2758
+ }
2759
+ },
2760
+ {
2761
+ "name": "orchestrator_flags",
2762
+ "docs": [
2763
+ "Optional flags for the swap"
2764
+ ],
2765
+ "type": {
2766
+ "defined": {
2767
+ "name": "OrchestratorFlags"
2768
+ }
2769
+ }
2770
+ }
2771
+ ]
2772
+ }
2773
+ },
2774
+ {
2775
+ "name": "PumpFunAmmBuyOptions",
2776
+ "type": {
2777
+ "kind": "struct",
2778
+ "fields": [
2779
+ {
2780
+ "name": "amount",
2781
+ "type": "u64"
2782
+ },
2783
+ {
2784
+ "name": "orchestrator_flags",
2785
+ "docs": [
2786
+ "Optional flags for the swap"
2787
+ ],
2788
+ "type": {
2789
+ "defined": {
2790
+ "name": "OrchestratorFlags"
2791
+ }
2792
+ }
2793
+ }
2794
+ ]
2795
+ }
2796
+ },
2797
+ {
2798
+ "name": "PumpFunAmmSellOptions",
2799
+ "type": {
2800
+ "kind": "struct",
2801
+ "fields": [
2802
+ {
2803
+ "name": "amount",
2804
+ "type": "u64"
2805
+ },
2806
+ {
2807
+ "name": "orchestrator_flags",
2808
+ "docs": [
2809
+ "Optional flags for the swap"
2810
+ ],
2811
+ "type": {
2812
+ "defined": {
2813
+ "name": "OrchestratorFlags"
2814
+ }
2815
+ }
2816
+ }
2817
+ ]
2818
+ }
2819
+ },
2820
+ {
2821
+ "name": "PumpFunBuyOptions",
2822
+ "type": {
2823
+ "kind": "struct",
2824
+ "fields": [
2825
+ {
2826
+ "name": "amount",
2827
+ "type": "u64"
2828
+ },
2829
+ {
2830
+ "name": "orchestrator_flags",
2831
+ "docs": [
2832
+ "Optional flags for the swap"
2833
+ ],
2834
+ "type": {
2835
+ "defined": {
2836
+ "name": "OrchestratorFlags"
2837
+ }
2838
+ }
2839
+ }
2840
+ ]
2841
+ }
2842
+ },
2843
+ {
2844
+ "name": "PumpFunSellOptions",
2845
+ "type": {
2846
+ "kind": "struct",
2847
+ "fields": [
2848
+ {
2849
+ "name": "amount",
2850
+ "type": "u64"
2851
+ },
2852
+ {
2853
+ "name": "orchestrator_flags",
2854
+ "docs": [
2855
+ "Optional flags for the swap"
2856
+ ],
2857
+ "type": {
2858
+ "defined": {
2859
+ "name": "OrchestratorFlags"
2860
+ }
2861
+ }
2862
+ }
2863
+ ]
2864
+ }
2865
+ },
2866
+ {
2867
+ "name": "RaydiumAmmSwapOptions",
2868
+ "type": {
2869
+ "kind": "struct",
2870
+ "fields": [
2871
+ {
2872
+ "name": "amount",
2873
+ "type": "u64"
2874
+ },
2875
+ {
2876
+ "name": "orchestrator_flags",
2877
+ "docs": [
2878
+ "Optional flags for the swap"
2879
+ ],
2880
+ "type": {
2881
+ "defined": {
2882
+ "name": "OrchestratorFlags"
2883
+ }
2884
+ }
2885
+ }
2886
+ ]
2887
+ }
2888
+ },
2889
+ {
2890
+ "name": "RaydiumClmmSwapOptions",
2891
+ "type": {
2892
+ "kind": "struct",
2893
+ "fields": [
2894
+ {
2895
+ "name": "amount",
2896
+ "type": "u64"
2897
+ },
2898
+ {
2899
+ "name": "num_remaining_accounts",
2900
+ "type": "u8"
2901
+ },
2902
+ {
2903
+ "name": "orchestrator_flags",
2904
+ "docs": [
2905
+ "Optional flags for the swap"
2906
+ ],
2907
+ "type": {
2908
+ "defined": {
2909
+ "name": "OrchestratorFlags"
2910
+ }
2911
+ }
2912
+ }
2913
+ ]
2914
+ }
2915
+ },
2916
+ {
2917
+ "name": "RaydiumClmmSwapV2Options",
2918
+ "type": {
2919
+ "kind": "struct",
2920
+ "fields": [
2921
+ {
2922
+ "name": "amount",
2923
+ "type": "u64"
2924
+ },
2925
+ {
2926
+ "name": "num_remaining_accounts",
2927
+ "type": "u8"
2928
+ },
2929
+ {
2930
+ "name": "orchestrator_flags",
2931
+ "docs": [
2932
+ "Optional flags for the swap"
2933
+ ],
2934
+ "type": {
2935
+ "defined": {
2936
+ "name": "OrchestratorFlags"
2937
+ }
2938
+ }
2939
+ }
2940
+ ]
2941
+ }
2942
+ },
2943
+ {
2944
+ "name": "RaydiumCpSwapOptions",
2945
+ "type": {
2946
+ "kind": "struct",
2947
+ "fields": [
2948
+ {
2949
+ "name": "amount",
2950
+ "type": "u64"
2951
+ },
2952
+ {
2953
+ "name": "orchestrator_flags",
2954
+ "docs": [
2955
+ "Optional flags for the swap"
2956
+ ],
2957
+ "type": {
2958
+ "defined": {
2959
+ "name": "OrchestratorFlags"
2960
+ }
2961
+ }
2962
+ }
2963
+ ]
2964
+ }
2965
+ },
2966
+ {
2967
+ "name": "RaydiumLaunchlabSwapOptions",
2968
+ "type": {
2969
+ "kind": "struct",
2970
+ "fields": [
2971
+ {
2972
+ "name": "amount",
2973
+ "type": "u64"
2974
+ },
2975
+ {
2976
+ "name": "orchestrator_flags",
2977
+ "docs": [
2978
+ "Optional flags for the swap"
2979
+ ],
2980
+ "type": {
2981
+ "defined": {
2982
+ "name": "OrchestratorFlags"
2983
+ }
2984
+ }
2985
+ }
2986
+ ]
2987
+ }
2988
+ },
2989
+ {
2990
+ "name": "RecordId2Options",
2991
+ "type": {
2992
+ "kind": "struct",
2993
+ "fields": [
2994
+ {
2995
+ "name": "id",
2996
+ "type": {
2997
+ "array": [
2998
+ "u8",
2999
+ 4
3000
+ ]
3001
+ }
3002
+ }
3003
+ ]
3004
+ }
3005
+ },
3006
+ {
3007
+ "name": "RecordIdOptions",
3008
+ "type": {
3009
+ "kind": "struct",
3010
+ "fields": [
3011
+ {
3012
+ "name": "id",
3013
+ "type": {
3014
+ "array": [
3015
+ "u8",
3016
+ 76
3017
+ ]
3018
+ }
3019
+ }
3020
+ ]
3021
+ }
3022
+ },
3023
+ {
3024
+ "name": "RubiconDynamicRouteV1Options",
3025
+ "type": {
3026
+ "kind": "struct",
3027
+ "fields": []
3028
+ }
3029
+ },
3030
+ {
3031
+ "name": "RubiconSwapOptions",
3032
+ "type": {
3033
+ "kind": "struct",
3034
+ "fields": [
3035
+ {
3036
+ "name": "amount",
3037
+ "type": "u64"
3038
+ },
3039
+ {
3040
+ "name": "orchestrator_flags",
3041
+ "docs": [
3042
+ "Optional flags for the swap"
3043
+ ],
3044
+ "type": {
3045
+ "defined": {
3046
+ "name": "OrchestratorFlags"
3047
+ }
3048
+ }
3049
+ }
3050
+ ]
3051
+ }
3052
+ },
3053
+ {
3054
+ "name": "SanctumInfinityLiquidityOptions",
3055
+ "type": {
3056
+ "kind": "struct",
3057
+ "fields": [
3058
+ {
3059
+ "name": "amount",
3060
+ "type": "u64"
3061
+ },
3062
+ {
3063
+ "name": "lst_value_calc_accs",
3064
+ "type": "u8"
3065
+ },
3066
+ {
3067
+ "name": "lst_index",
3068
+ "type": "u32"
3069
+ },
3070
+ {
3071
+ "name": "orchestrator_flags",
3072
+ "docs": [
3073
+ "Optional flags for the swap"
3074
+ ],
3075
+ "type": {
3076
+ "defined": {
3077
+ "name": "OrchestratorFlags"
3078
+ }
3079
+ }
3080
+ }
3081
+ ]
3082
+ }
3083
+ },
3084
+ {
3085
+ "name": "SanctumInfinitySwapOptions",
3086
+ "type": {
3087
+ "kind": "struct",
3088
+ "fields": [
3089
+ {
3090
+ "name": "amount",
3091
+ "type": "u64"
3092
+ },
3093
+ {
3094
+ "name": "src_lst_value_calc_accs",
3095
+ "type": "u8"
3096
+ },
3097
+ {
3098
+ "name": "dst_lst_value_calc_accs",
3099
+ "type": "u8"
3100
+ },
3101
+ {
3102
+ "name": "src_lst_index",
3103
+ "type": "u32"
3104
+ },
3105
+ {
3106
+ "name": "dst_lst_index",
3107
+ "type": "u32"
3108
+ },
3109
+ {
3110
+ "name": "orchestrator_flags",
3111
+ "docs": [
3112
+ "Optional flags for the swap"
3113
+ ],
3114
+ "type": {
3115
+ "defined": {
3116
+ "name": "OrchestratorFlags"
3117
+ }
3118
+ }
3119
+ }
3120
+ ]
3121
+ }
3122
+ },
3123
+ {
3124
+ "name": "SarosDlmmSwapOptions",
3125
+ "type": {
3126
+ "kind": "struct",
3127
+ "fields": [
3128
+ {
3129
+ "name": "amount",
3130
+ "type": "u64"
3131
+ },
3132
+ {
3133
+ "name": "orchestrator_flags",
3134
+ "docs": [
3135
+ "Optional flags for the swap"
3136
+ ],
3137
+ "type": {
3138
+ "defined": {
3139
+ "name": "OrchestratorFlags"
3140
+ }
3141
+ }
3142
+ }
3143
+ ]
3144
+ }
3145
+ },
3146
+ {
3147
+ "name": "Side",
3148
+ "type": {
3149
+ "kind": "enum",
3150
+ "variants": [
3151
+ {
3152
+ "name": "Bid"
3153
+ },
3154
+ {
3155
+ "name": "Ask"
3156
+ }
3157
+ ]
3158
+ }
3159
+ },
3160
+ {
3161
+ "name": "SolFiDynamicRouteV1Options",
3162
+ "type": {
3163
+ "kind": "struct",
3164
+ "fields": []
3165
+ }
3166
+ },
3167
+ {
3168
+ "name": "SolFiSwapOptions",
3169
+ "type": {
3170
+ "kind": "struct",
3171
+ "fields": [
3172
+ {
3173
+ "name": "amount",
3174
+ "type": "u64"
3175
+ },
3176
+ {
3177
+ "name": "orchestrator_flags",
3178
+ "docs": [
3179
+ "Optional flags for the swap"
3180
+ ],
3181
+ "type": {
3182
+ "defined": {
3183
+ "name": "OrchestratorFlags"
3184
+ }
3185
+ }
3186
+ }
3187
+ ]
3188
+ }
3189
+ },
3190
+ {
3191
+ "name": "SolFiV2DynamicRouteV1Options",
3192
+ "type": {
3193
+ "kind": "struct",
3194
+ "fields": []
3195
+ }
3196
+ },
3197
+ {
3198
+ "name": "SolFiV2SwapOptions",
3199
+ "type": {
3200
+ "kind": "struct",
3201
+ "fields": [
3202
+ {
3203
+ "name": "amount",
3204
+ "type": "u64"
3205
+ },
3206
+ {
3207
+ "name": "orchestrator_flags",
3208
+ "docs": [
3209
+ "Optional flags for the swap"
3210
+ ],
3211
+ "type": {
3212
+ "defined": {
3213
+ "name": "OrchestratorFlags"
3214
+ }
3215
+ }
3216
+ }
3217
+ ]
3218
+ }
3219
+ },
3220
+ {
3221
+ "name": "StabbleStableSwapOptions",
3222
+ "type": {
3223
+ "kind": "struct",
3224
+ "fields": [
3225
+ {
3226
+ "name": "amount",
3227
+ "type": "u64"
3228
+ },
3229
+ {
3230
+ "name": "orchestrator_flags",
3231
+ "docs": [
3232
+ "Optional flags for the swap"
3233
+ ],
3234
+ "type": {
3235
+ "defined": {
3236
+ "name": "OrchestratorFlags"
3237
+ }
3238
+ }
3239
+ }
3240
+ ]
3241
+ }
3242
+ },
3243
+ {
3244
+ "name": "Swap2Params",
3245
+ "type": {
3246
+ "kind": "struct",
3247
+ "fields": [
3248
+ {
3249
+ "name": "actions",
3250
+ "type": {
3251
+ "vec": {
3252
+ "defined": {
3253
+ "name": "Action"
3254
+ }
3255
+ }
3256
+ }
3257
+ },
3258
+ {
3259
+ "name": "quoted_out_amount",
3260
+ "docs": [
3261
+ "Quoted output amount for the swap after platform fee"
3262
+ ],
3263
+ "type": "u64"
3264
+ },
3265
+ {
3266
+ "name": "slippage_bps",
3267
+ "docs": [
3268
+ "Max allowed slippage in basis points. Along with `quoted_out_amount`, this is used to",
3269
+ "calculate the minimum allowed output amount for the swap."
3270
+ ],
3271
+ "type": "u16"
3272
+ },
3273
+ {
3274
+ "name": "platform_fee_bps",
3275
+ "docs": [
3276
+ "Platform fee in basis points. If nonzero, this percentage of the output amount will be",
3277
+ "transferred to the platform fee account, and the instruction must include the platform fee",
3278
+ "account as the last account. The platform fee account must be a valid token account for the",
3279
+ "output mint, and it must specify the public key of the Referral program's DFlow project as",
3280
+ "its owner."
3281
+ ],
3282
+ "type": "u16"
3283
+ },
3284
+ {
3285
+ "name": "positive_slippage_fee_limit_pct",
3286
+ "docs": [
3287
+ "Limit on the positive slippage fee in percent. The positive slippage fee is limited to the",
3288
+ "lesser of (1) the excess actual out amount above the quoted amount and (2) this percentage",
3289
+ "of the actual out amount after platform fee."
3290
+ ],
3291
+ "type": "u8"
3292
+ }
3293
+ ]
3294
+ }
3295
+ },
3296
+ {
3297
+ "name": "SwapEvent",
3298
+ "type": {
3299
+ "kind": "struct",
3300
+ "fields": [
3301
+ {
3302
+ "name": "amm",
3303
+ "type": "pubkey"
3304
+ },
3305
+ {
3306
+ "name": "input_mint",
3307
+ "type": "pubkey"
3308
+ },
3309
+ {
3310
+ "name": "input_amount",
3311
+ "type": "u64"
3312
+ },
3313
+ {
3314
+ "name": "output_mint",
3315
+ "type": "pubkey"
3316
+ },
3317
+ {
3318
+ "name": "output_amount",
3319
+ "type": "u64"
3320
+ }
3321
+ ]
3322
+ }
3323
+ },
3324
+ {
3325
+ "name": "SwapParams",
3326
+ "type": {
3327
+ "kind": "struct",
3328
+ "fields": [
3329
+ {
3330
+ "name": "actions",
3331
+ "type": {
3332
+ "vec": {
3333
+ "defined": {
3334
+ "name": "Action"
3335
+ }
3336
+ }
3337
+ }
3338
+ },
3339
+ {
3340
+ "name": "quoted_out_amount",
3341
+ "docs": [
3342
+ "Quoted output amount for the swap after platform fee"
3343
+ ],
3344
+ "type": "u64"
3345
+ },
3346
+ {
3347
+ "name": "slippage_bps",
3348
+ "docs": [
3349
+ "Max allowed slippage in basis points. Along with `quoted_out_amount`, this is used to",
3350
+ "calculate the minimum allowed output amount for the swap."
3351
+ ],
3352
+ "type": "u16"
3353
+ },
3354
+ {
3355
+ "name": "platform_fee_bps",
3356
+ "docs": [
3357
+ "Platform fee in basis points. If nonzero, this percentage of the output amount will be",
3358
+ "transferred to the platform fee account, and the instruction must include the platform fee",
3359
+ "account as the last account. The platform fee account must be a valid token account for the",
3360
+ "output mint, and it must specify the public key of the Referral program's DFlow project as",
3361
+ "its owner."
3362
+ ],
3363
+ "type": "u16"
3364
+ }
3365
+ ]
3366
+ }
3367
+ },
3368
+ {
3369
+ "name": "TesseraVDynamicRouteV1Options",
3370
+ "type": {
3371
+ "kind": "struct",
3372
+ "fields": []
3373
+ }
3374
+ },
3375
+ {
3376
+ "name": "TesseraVSwapOptions",
3377
+ "type": {
3378
+ "kind": "struct",
3379
+ "fields": [
3380
+ {
3381
+ "name": "amount",
3382
+ "type": "u64"
3383
+ },
3384
+ {
3385
+ "name": "orchestrator_flags",
3386
+ "docs": [
3387
+ "Optional flags for the swap"
3388
+ ],
3389
+ "type": {
3390
+ "defined": {
3391
+ "name": "OrchestratorFlags"
3392
+ }
3393
+ }
3394
+ }
3395
+ ]
3396
+ }
3397
+ },
3398
+ {
3399
+ "name": "TokenSwapOptions",
3400
+ "type": {
3401
+ "kind": "struct",
3402
+ "fields": [
3403
+ {
3404
+ "name": "amount",
3405
+ "type": "u64"
3406
+ },
3407
+ {
3408
+ "name": "orchestrator_flags",
3409
+ "docs": [
3410
+ "Optional flags for the swap"
3411
+ ],
3412
+ "type": {
3413
+ "defined": {
3414
+ "name": "OrchestratorFlags"
3415
+ }
3416
+ }
3417
+ }
3418
+ ]
3419
+ }
3420
+ },
3421
+ {
3422
+ "name": "TransferFeeOptions",
3423
+ "type": {
3424
+ "kind": "struct",
3425
+ "fields": [
3426
+ {
3427
+ "name": "amount",
3428
+ "type": "u64"
3429
+ }
3430
+ ]
3431
+ }
3432
+ },
3433
+ {
3434
+ "name": "WhirlpoolsSwapOptions",
3435
+ "type": {
3436
+ "kind": "struct",
3437
+ "fields": [
3438
+ {
3439
+ "name": "amount",
3440
+ "type": "u64"
3441
+ },
3442
+ {
3443
+ "name": "a_to_b",
3444
+ "type": "bool"
3445
+ },
3446
+ {
3447
+ "name": "orchestrator_flags",
3448
+ "docs": [
3449
+ "Optional flags for the swap"
3450
+ ],
3451
+ "type": {
3452
+ "defined": {
3453
+ "name": "OrchestratorFlags"
3454
+ }
3455
+ }
3456
+ }
3457
+ ]
3458
+ }
3459
+ },
3460
+ {
3461
+ "name": "WhirlpoolsSwapV2Options",
3462
+ "type": {
3463
+ "kind": "struct",
3464
+ "fields": [
3465
+ {
3466
+ "name": "amount",
3467
+ "type": "u64"
3468
+ },
3469
+ {
3470
+ "name": "a_to_b",
3471
+ "type": "bool"
3472
+ },
3473
+ {
3474
+ "name": "orchestrator_flags",
3475
+ "docs": [
3476
+ "Optional flags for the swap"
3477
+ ],
3478
+ "type": {
3479
+ "defined": {
3480
+ "name": "OrchestratorFlags"
3481
+ }
3482
+ }
3483
+ }
3484
+ ]
3485
+ }
3486
+ },
3487
+ {
3488
+ "name": "ZeroFiSwapOptions",
3489
+ "type": {
3490
+ "kind": "struct",
3491
+ "fields": [
3492
+ {
3493
+ "name": "amount",
3494
+ "type": "u64"
3495
+ },
3496
+ {
3497
+ "name": "orchestrator_flags",
3498
+ "docs": [
3499
+ "Optional flags for the swap"
3500
+ ],
3501
+ "type": {
3502
+ "defined": {
3503
+ "name": "OrchestratorFlags"
3504
+ }
3505
+ }
3506
+ }
3507
+ ]
3508
+ }
3509
+ }
3510
+ ]
3511
+ };