@liquid-af/sdk 0.5.9 → 0.6.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (43) hide show
  1. package/dist/events/types.d.ts +14 -13
  2. package/dist/events/types.d.ts.map +1 -1
  3. package/dist/idl/liquid.d.ts +2507 -2507
  4. package/dist/idl/liquid.d.ts.map +1 -1
  5. package/dist/idl/liquid.json +2507 -2507
  6. package/dist/idl/liquid_events.d.ts +58 -47
  7. package/dist/idl/liquid_events.d.ts.map +1 -1
  8. package/dist/idl/liquid_events.json +58 -47
  9. package/dist/idl/liquid_fees.d.ts +6 -6
  10. package/dist/idl/liquid_fees.json +6 -6
  11. package/dist/idl/liquid_state.d.ts +72 -72
  12. package/dist/idl/liquid_state.d.ts.map +1 -1
  13. package/dist/idl/liquid_state.json +72 -72
  14. package/dist/idl/liquid_swap.d.ts +1765 -801
  15. package/dist/idl/liquid_swap.d.ts.map +1 -1
  16. package/dist/idl/liquid_swap.json +1765 -801
  17. package/dist/instructions/index.d.ts +4 -4
  18. package/dist/instructions/index.d.ts.map +1 -1
  19. package/dist/instructions/index.js +3 -3
  20. package/dist/instructions/index.js.map +1 -1
  21. package/dist/instructions/liquid-swap.d.ts +40 -0
  22. package/dist/instructions/liquid-swap.d.ts.map +1 -1
  23. package/dist/instructions/liquid-swap.js +62 -0
  24. package/dist/instructions/liquid-swap.js.map +1 -1
  25. package/dist/instructions/liquid.d.ts +116 -0
  26. package/dist/instructions/liquid.d.ts.map +1 -1
  27. package/dist/instructions/liquid.js +176 -0
  28. package/dist/instructions/liquid.js.map +1 -1
  29. package/package.json +1 -1
  30. package/src/events/types.ts +17 -14
  31. package/src/idl/liquid.json +2507 -2507
  32. package/src/idl/liquid.ts +2507 -2507
  33. package/src/idl/liquid_events.json +58 -47
  34. package/src/idl/liquid_events.ts +58 -47
  35. package/src/idl/liquid_fees.json +6 -6
  36. package/src/idl/liquid_fees.ts +6 -6
  37. package/src/idl/liquid_state.json +72 -72
  38. package/src/idl/liquid_state.ts +72 -72
  39. package/src/idl/liquid_swap.json +1765 -801
  40. package/src/idl/liquid_swap.ts +1765 -801
  41. package/src/instructions/index.ts +16 -0
  42. package/src/instructions/liquid-swap.ts +144 -0
  43. package/src/instructions/liquid.ts +366 -0
@@ -1,5 +1,5 @@
1
1
  {
2
- "address": "SwapMXcpJdXgnFG9BZak2fBZUiNeR2qYxzexF2ZxdW8",
2
+ "address": "DoBPPSQETr2xK5fKeTDR8wJ2Y4aTjtDbNwd9K72whhQB",
3
3
  "metadata": {
4
4
  "name": "liquid_swap",
5
5
  "version": "0.1.0",
@@ -303,38 +303,1020 @@
303
303
  "program": {
304
304
  "kind": "const",
305
305
  "value": [
306
- 217,
307
- 168,
308
- 237,
309
- 183,
310
- 0,
311
- 44,
312
- 187,
313
- 171,
306
+ 40,
307
+ 72,
308
+ 249,
309
+ 238,
310
+ 156,
311
+ 9,
312
+ 94,
313
+ 212,
314
314
  53,
315
- 87,
316
- 202,
317
- 162,
318
- 64,
319
- 131,
320
- 189,
321
- 106,
315
+ 113,
316
+ 167,
317
+ 85,
318
+ 204,
319
+ 160,
320
+ 219,
321
+ 216,
322
+ 233,
323
+ 70,
324
+ 184,
325
+ 221,
326
+ 190,
327
+ 55,
328
+ 115,
329
+ 59,
330
+ 112,
331
+ 126,
332
+ 65,
333
+ 239,
334
+ 51,
335
+ 144,
336
+ 212,
337
+ 232
338
+ ]
339
+ }
340
+ }
341
+ },
342
+ {
343
+ "name": "fee_vault_token_account",
344
+ "docs": [
345
+ "Fee vault token account for Recipients mode — accumulates quote tokens."
346
+ ],
347
+ "writable": true,
348
+ "pda": {
349
+ "seeds": [
350
+ {
351
+ "kind": "account",
352
+ "path": "fee_vault"
353
+ },
354
+ {
355
+ "kind": "account",
356
+ "path": "quote_token_program"
357
+ },
358
+ {
359
+ "kind": "account",
360
+ "path": "quote_mint"
361
+ }
362
+ ],
363
+ "program": {
364
+ "kind": "const",
365
+ "value": [
366
+ 140,
367
+ 151,
368
+ 37,
369
+ 143,
370
+ 78,
371
+ 36,
372
+ 137,
373
+ 241,
322
374
  187,
375
+ 61,
376
+ 16,
377
+ 41,
378
+ 20,
379
+ 142,
380
+ 13,
381
+ 131,
382
+ 11,
383
+ 90,
384
+ 19,
385
+ 153,
386
+ 218,
387
+ 255,
388
+ 16,
389
+ 132,
390
+ 4,
391
+ 142,
392
+ 123,
393
+ 216,
394
+ 219,
395
+ 233,
396
+ 248,
397
+ 89
398
+ ]
399
+ }
400
+ }
401
+ },
402
+ {
403
+ "name": "buyback_vault",
404
+ "docs": [
405
+ "Buyback vault (for Revoked mode) — accumulates quote tokens for buy-and-burn.",
406
+ "Initialized during pool creation."
407
+ ],
408
+ "writable": true,
409
+ "pda": {
410
+ "seeds": [
411
+ {
412
+ "kind": "const",
413
+ "value": [
414
+ 98,
415
+ 117,
416
+ 121,
417
+ 98,
418
+ 97,
419
+ 99,
420
+ 107,
421
+ 95,
422
+ 118,
423
+ 97,
424
+ 117,
425
+ 108,
426
+ 116
427
+ ]
428
+ },
429
+ {
430
+ "kind": "account",
431
+ "path": "pool"
432
+ },
433
+ {
434
+ "kind": "account",
435
+ "path": "quote_mint"
436
+ }
437
+ ]
438
+ }
439
+ },
440
+ {
441
+ "name": "authority",
442
+ "docs": [
443
+ "Pool vault and LP mint authority."
444
+ ],
445
+ "pda": {
446
+ "seeds": [
447
+ {
448
+ "kind": "const",
449
+ "value": [
450
+ 118,
451
+ 97,
452
+ 117,
453
+ 108,
454
+ 116,
455
+ 95,
456
+ 97,
457
+ 110,
458
+ 100,
459
+ 95,
460
+ 108,
461
+ 112,
462
+ 95,
463
+ 109,
464
+ 105,
465
+ 110,
466
+ 116,
467
+ 95,
468
+ 97,
469
+ 117,
470
+ 116,
471
+ 104,
472
+ 95,
473
+ 115,
474
+ 101,
475
+ 101,
476
+ 100
477
+ ]
478
+ }
479
+ ]
480
+ }
481
+ },
482
+ {
483
+ "name": "global_config",
484
+ "docs": [
485
+ "Global configuration for the protocol."
486
+ ],
487
+ "pda": {
488
+ "seeds": [
489
+ {
490
+ "kind": "const",
491
+ "value": [
492
+ 103,
493
+ 108,
494
+ 111,
495
+ 98,
496
+ 97,
497
+ 108,
498
+ 95,
499
+ 99,
500
+ 111,
501
+ 110,
502
+ 102,
503
+ 105,
504
+ 103
505
+ ]
506
+ }
507
+ ]
508
+ }
509
+ },
510
+ {
511
+ "name": "creator",
512
+ "docs": [
513
+ "Pool creator (needed for fee vault derivation).",
514
+ "",
515
+ "NOTE: Validation relies on `has_one = creator` constraint on pool state.",
516
+ "The creator is whoever signed the original pool creation transaction,",
517
+ "stored immutably in PoolState. No separate ownership check is needed",
518
+ "as the pool state is the source of truth for creator identity."
519
+ ],
520
+ "relations": [
521
+ "pool"
522
+ ]
523
+ },
524
+ {
525
+ "name": "base_mint",
526
+ "docs": [
527
+ "The mint of input token."
528
+ ]
529
+ },
530
+ {
531
+ "name": "quote_mint",
532
+ "docs": [
533
+ "The mint of output token."
534
+ ]
535
+ },
536
+ {
537
+ "name": "fee_config",
538
+ "docs": [
539
+ "The fee configuration for this token (from liquid-fees program).",
540
+ "base_mint is typically the token that was launched on the bonding curve."
541
+ ],
542
+ "pda": {
543
+ "seeds": [
544
+ {
545
+ "kind": "const",
546
+ "value": [
547
+ 102,
548
+ 101,
549
+ 101,
550
+ 95,
551
+ 99,
552
+ 111,
553
+ 110,
554
+ 102,
555
+ 105,
556
+ 103
557
+ ]
558
+ },
559
+ {
560
+ "kind": "account",
561
+ "path": "base_mint"
562
+ }
563
+ ],
564
+ "program": {
565
+ "kind": "const",
566
+ "value": [
567
+ 40,
568
+ 72,
569
+ 249,
570
+ 238,
571
+ 156,
572
+ 9,
573
+ 94,
574
+ 212,
575
+ 53,
576
+ 113,
577
+ 167,
578
+ 85,
579
+ 204,
580
+ 160,
581
+ 219,
582
+ 216,
583
+ 233,
584
+ 70,
585
+ 184,
586
+ 221,
587
+ 190,
588
+ 55,
589
+ 115,
590
+ 59,
591
+ 112,
592
+ 126,
593
+ 65,
594
+ 239,
595
+ 51,
596
+ 144,
597
+ 212,
598
+ 232
599
+ ]
600
+ }
601
+ }
602
+ },
603
+ {
604
+ "name": "liquid_state",
605
+ "accounts": [
606
+ {
607
+ "name": "user_properties",
608
+ "docs": [
609
+ "User properties from liquid-state."
610
+ ],
611
+ "writable": true,
612
+ "pda": {
613
+ "seeds": [
614
+ {
615
+ "kind": "const",
616
+ "value": [
617
+ 117,
618
+ 115,
619
+ 101,
620
+ 114,
621
+ 95,
622
+ 112,
623
+ 114,
624
+ 111,
625
+ 112,
626
+ 101,
627
+ 114,
628
+ 116,
629
+ 105,
630
+ 101,
631
+ 115
632
+ ]
633
+ },
634
+ {
635
+ "kind": "account",
636
+ "path": "user"
637
+ }
638
+ ],
639
+ "program": {
640
+ "kind": "const",
641
+ "value": [
642
+ 127,
643
+ 56,
644
+ 3,
645
+ 177,
646
+ 32,
647
+ 84,
648
+ 5,
649
+ 50,
650
+ 88,
651
+ 108,
652
+ 27,
653
+ 165,
654
+ 225,
655
+ 206,
656
+ 123,
657
+ 139,
658
+ 237,
659
+ 77,
660
+ 212,
661
+ 191,
662
+ 234,
663
+ 246,
664
+ 33,
665
+ 236,
666
+ 248,
667
+ 123,
668
+ 24,
669
+ 125,
670
+ 108,
671
+ 2,
672
+ 249,
673
+ 229
674
+ ]
675
+ }
676
+ }
677
+ },
678
+ {
679
+ "name": "global_amm_volume",
680
+ "docs": [
681
+ "Global AMM volume accumulator from liquid-state."
682
+ ],
683
+ "writable": true,
684
+ "pda": {
685
+ "seeds": [
686
+ {
687
+ "kind": "const",
688
+ "value": [
689
+ 103,
690
+ 108,
691
+ 111,
692
+ 98,
693
+ 97,
694
+ 108,
695
+ 95,
696
+ 97,
697
+ 109,
698
+ 109,
699
+ 95,
700
+ 118,
701
+ 111,
702
+ 108,
703
+ 117,
704
+ 109,
705
+ 101
706
+ ]
707
+ }
708
+ ],
709
+ "program": {
710
+ "kind": "const",
711
+ "value": [
712
+ 127,
713
+ 56,
714
+ 3,
715
+ 177,
716
+ 32,
717
+ 84,
718
+ 5,
719
+ 50,
720
+ 88,
721
+ 108,
722
+ 27,
723
+ 165,
724
+ 225,
725
+ 206,
726
+ 123,
727
+ 139,
728
+ 237,
729
+ 77,
730
+ 212,
731
+ 191,
732
+ 234,
733
+ 246,
734
+ 33,
735
+ 236,
736
+ 248,
737
+ 123,
738
+ 24,
739
+ 125,
740
+ 108,
741
+ 2,
742
+ 249,
743
+ 229
744
+ ]
745
+ }
746
+ }
747
+ },
748
+ {
749
+ "name": "token_volume",
750
+ "docs": [
751
+ "Token volume accumulator from liquid-state (for base_mint)."
752
+ ],
753
+ "writable": true,
754
+ "pda": {
755
+ "seeds": [
756
+ {
757
+ "kind": "const",
758
+ "value": [
759
+ 116,
760
+ 111,
761
+ 107,
762
+ 101,
763
+ 110,
764
+ 95,
765
+ 118,
766
+ 111,
767
+ 108,
768
+ 117,
769
+ 109,
770
+ 101
771
+ ]
772
+ },
773
+ {
774
+ "kind": "account",
775
+ "path": "token_mint"
776
+ }
777
+ ],
778
+ "program": {
779
+ "kind": "const",
780
+ "value": [
781
+ 127,
782
+ 56,
783
+ 3,
784
+ 177,
785
+ 32,
786
+ 84,
787
+ 5,
788
+ 50,
789
+ 88,
790
+ 108,
791
+ 27,
792
+ 165,
793
+ 225,
794
+ 206,
795
+ 123,
796
+ 139,
797
+ 237,
798
+ 77,
799
+ 212,
800
+ 191,
801
+ 234,
802
+ 246,
803
+ 33,
804
+ 236,
805
+ 248,
806
+ 123,
807
+ 24,
808
+ 125,
809
+ 108,
810
+ 2,
811
+ 249,
812
+ 229
813
+ ]
814
+ }
815
+ }
816
+ },
817
+ {
818
+ "name": "user",
819
+ "docs": [
820
+ "The user performing the trade."
821
+ ]
822
+ },
823
+ {
824
+ "name": "token_mint",
825
+ "docs": [
826
+ "The token mint, used for token_volume PDA derivation."
827
+ ]
828
+ },
829
+ {
830
+ "name": "cashback_config",
831
+ "docs": [
832
+ "Cashback configuration from liquid-state."
833
+ ],
834
+ "pda": {
835
+ "seeds": [
836
+ {
837
+ "kind": "const",
838
+ "value": [
839
+ 99,
840
+ 97,
841
+ 115,
842
+ 104,
843
+ 98,
844
+ 97,
845
+ 99,
846
+ 107,
847
+ 95,
848
+ 99,
849
+ 111,
850
+ 110,
851
+ 102,
852
+ 105,
853
+ 103
854
+ ]
855
+ }
856
+ ],
857
+ "program": {
858
+ "kind": "const",
859
+ "value": [
860
+ 127,
861
+ 56,
862
+ 3,
863
+ 177,
864
+ 32,
865
+ 84,
866
+ 5,
867
+ 50,
868
+ 88,
869
+ 108,
870
+ 27,
871
+ 165,
872
+ 225,
873
+ 206,
874
+ 123,
875
+ 139,
876
+ 237,
877
+ 77,
878
+ 212,
879
+ 191,
880
+ 234,
881
+ 246,
882
+ 33,
883
+ 236,
884
+ 248,
885
+ 123,
886
+ 24,
887
+ 125,
888
+ 108,
889
+ 2,
890
+ 249,
891
+ 229
892
+ ]
893
+ }
894
+ }
895
+ },
896
+ {
897
+ "name": "liquid_state_program",
898
+ "docs": [
899
+ "liquid-state program for unified state management."
900
+ ],
901
+ "address": "9ZcKPa3HAEVEKxwFX8fYD56ZJCKPEQgqjgr9rfUvtwKJ"
902
+ },
903
+ {
904
+ "name": "state_events_cpi_authority",
905
+ "docs": [
906
+ "CPI authority PDA owned by liquid-state for emitting events via liquid-events."
907
+ ],
908
+ "pda": {
909
+ "seeds": [
910
+ {
911
+ "kind": "const",
912
+ "value": [
913
+ 99,
914
+ 112,
915
+ 105,
916
+ 95,
917
+ 97,
918
+ 117,
919
+ 116,
920
+ 104,
921
+ 111,
922
+ 114,
923
+ 105,
924
+ 116,
925
+ 121
926
+ ]
927
+ }
928
+ ],
929
+ "program": {
930
+ "kind": "const",
931
+ "value": [
932
+ 127,
933
+ 56,
934
+ 3,
935
+ 177,
936
+ 32,
937
+ 84,
938
+ 5,
939
+ 50,
940
+ 88,
941
+ 108,
942
+ 27,
943
+ 165,
944
+ 225,
945
+ 206,
946
+ 123,
947
+ 139,
948
+ 237,
949
+ 77,
950
+ 212,
951
+ 191,
952
+ 234,
953
+ 246,
954
+ 33,
955
+ 236,
956
+ 248,
957
+ 123,
958
+ 24,
959
+ 125,
960
+ 108,
961
+ 2,
962
+ 249,
963
+ 229
964
+ ]
965
+ }
966
+ }
967
+ }
968
+ ]
969
+ },
970
+ {
971
+ "name": "base_token_program",
972
+ "docs": [
973
+ "SPL program for input token transfers."
974
+ ]
975
+ },
976
+ {
977
+ "name": "quote_token_program",
978
+ "docs": [
979
+ "SPL program for output token transfers."
980
+ ]
981
+ },
982
+ {
983
+ "name": "system_program",
984
+ "address": "11111111111111111111111111111111"
985
+ },
986
+ {
987
+ "name": "token_program",
988
+ "address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"
989
+ },
990
+ {
991
+ "name": "associated_token_program",
992
+ "address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL"
993
+ },
994
+ {
995
+ "name": "cpi_authority",
996
+ "docs": [
997
+ "CPI authority PDA — proves this program's identity in cross-program calls."
998
+ ],
999
+ "pda": {
1000
+ "seeds": [
1001
+ {
1002
+ "kind": "const",
1003
+ "value": [
1004
+ 99,
1005
+ 112,
1006
+ 105,
1007
+ 95,
1008
+ 97,
1009
+ 117,
1010
+ 116,
1011
+ 104,
1012
+ 111,
1013
+ 114,
1014
+ 105,
1015
+ 116,
1016
+ 121
1017
+ ]
1018
+ }
1019
+ ]
1020
+ }
1021
+ },
1022
+ {
1023
+ "name": "liquid_events_program",
1024
+ "docs": [
1025
+ "Liquid events program for CPI event emission."
1026
+ ],
1027
+ "address": "Bast7hBDiqSsxiwEmqazwvPvXC3N4z8UQR5ZmkqXnCiY"
1028
+ },
1029
+ {
1030
+ "name": "oracle_price_feed",
1031
+ "docs": [
1032
+ "Pyth SOL/USD price feed (required for tiered fees)."
1033
+ ],
1034
+ "optional": true
1035
+ }
1036
+ ],
1037
+ "args": [
1038
+ {
1039
+ "name": "max_amount_in",
1040
+ "type": "u64"
1041
+ },
1042
+ {
1043
+ "name": "amount_out",
1044
+ "type": "u64"
1045
+ }
1046
+ ]
1047
+ },
1048
+ {
1049
+ "name": "buy_exact",
1050
+ "docs": [
1051
+ "Buys base tokens by providing an exact amount of quote tokens (exact input).",
1052
+ "",
1053
+ "# Arguments",
1054
+ "* `amount_in` - Exact quote tokens to spend.",
1055
+ "* `minimum_amount_out` - Minimum base tokens to receive (slippage protection)."
1056
+ ],
1057
+ "discriminator": [
1058
+ 2,
1059
+ 162,
1060
+ 8,
1061
+ 52,
1062
+ 139,
1063
+ 46,
1064
+ 160,
1065
+ 13
1066
+ ],
1067
+ "accounts": [
1068
+ {
1069
+ "name": "payer",
1070
+ "writable": true,
1071
+ "signer": true
1072
+ },
1073
+ {
1074
+ "name": "pool",
1075
+ "docs": [
1076
+ "The program account of the pool in which the swap will be performed."
1077
+ ],
1078
+ "writable": true,
1079
+ "pda": {
1080
+ "seeds": [
1081
+ {
1082
+ "kind": "const",
1083
+ "value": [
1084
+ 112,
1085
+ 111,
1086
+ 111,
1087
+ 108
1088
+ ]
1089
+ },
1090
+ {
1091
+ "kind": "account",
1092
+ "path": "base_mint"
1093
+ },
1094
+ {
1095
+ "kind": "account",
1096
+ "path": "quote_mint"
1097
+ }
1098
+ ]
1099
+ }
1100
+ },
1101
+ {
1102
+ "name": "base_token_account",
1103
+ "docs": [
1104
+ "The user token account for input token."
1105
+ ],
1106
+ "writable": true
1107
+ },
1108
+ {
1109
+ "name": "quote_token_account",
1110
+ "docs": [
1111
+ "The user token account for output token."
1112
+ ],
1113
+ "writable": true
1114
+ },
1115
+ {
1116
+ "name": "base_vault",
1117
+ "docs": [
1118
+ "The vault token account for input token."
1119
+ ],
1120
+ "writable": true,
1121
+ "pda": {
1122
+ "seeds": [
1123
+ {
1124
+ "kind": "const",
1125
+ "value": [
1126
+ 112,
1127
+ 111,
1128
+ 111,
1129
+ 108,
1130
+ 95,
1131
+ 118,
1132
+ 97,
1133
+ 117,
1134
+ 108,
1135
+ 116
1136
+ ]
1137
+ },
1138
+ {
1139
+ "kind": "account",
1140
+ "path": "pool"
1141
+ },
1142
+ {
1143
+ "kind": "account",
1144
+ "path": "base_mint"
1145
+ }
1146
+ ]
1147
+ }
1148
+ },
1149
+ {
1150
+ "name": "quote_vault",
1151
+ "docs": [
1152
+ "The vault token account for output token."
1153
+ ],
1154
+ "writable": true,
1155
+ "pda": {
1156
+ "seeds": [
1157
+ {
1158
+ "kind": "const",
1159
+ "value": [
1160
+ 112,
1161
+ 111,
1162
+ 111,
1163
+ 108,
1164
+ 95,
1165
+ 118,
1166
+ 97,
1167
+ 117,
1168
+ 108,
1169
+ 116
1170
+ ]
1171
+ },
1172
+ {
1173
+ "kind": "account",
1174
+ "path": "pool"
1175
+ },
1176
+ {
1177
+ "kind": "account",
1178
+ "path": "quote_mint"
1179
+ }
1180
+ ]
1181
+ }
1182
+ },
1183
+ {
1184
+ "name": "observation_state",
1185
+ "docs": [
1186
+ "The program account for the most recent oracle observation."
1187
+ ],
1188
+ "writable": true,
1189
+ "pda": {
1190
+ "seeds": [
1191
+ {
1192
+ "kind": "const",
1193
+ "value": [
1194
+ 111,
1195
+ 98,
1196
+ 115,
1197
+ 101,
1198
+ 114,
1199
+ 118,
1200
+ 97,
1201
+ 116,
1202
+ 105,
1203
+ 111,
1204
+ 110
1205
+ ]
1206
+ },
1207
+ {
1208
+ "kind": "account",
1209
+ "path": "pool"
1210
+ }
1211
+ ]
1212
+ }
1213
+ },
1214
+ {
1215
+ "name": "fee_recipient",
1216
+ "docs": [
1217
+ "The protocol fee recipient. Must be one of the allowed recipients in Config.",
1218
+ "",
1219
+ "NOTE: Validation happens in handler by checking against global_config.fee_recipients.",
1220
+ "Fee recipients are admin-controlled pubkeys stored in AmmConfig, so an attacker",
1221
+ "cannot pass an arbitrary account - it must match one of the configured recipients."
1222
+ ],
1223
+ "writable": true
1224
+ },
1225
+ {
1226
+ "name": "protocol_fee_vault",
1227
+ "docs": [
1228
+ "The protocol fee vault."
1229
+ ],
1230
+ "writable": true,
1231
+ "pda": {
1232
+ "seeds": [
1233
+ {
1234
+ "kind": "const",
1235
+ "value": [
1236
+ 103,
1237
+ 108,
1238
+ 111,
1239
+ 98,
1240
+ 97,
1241
+ 108,
1242
+ 95,
1243
+ 102,
1244
+ 101,
1245
+ 101
1246
+ ]
1247
+ },
1248
+ {
1249
+ "kind": "account",
1250
+ "path": "fee_recipient"
1251
+ },
1252
+ {
1253
+ "kind": "account",
1254
+ "path": "quote_mint"
1255
+ }
1256
+ ]
1257
+ }
1258
+ },
1259
+ {
1260
+ "name": "fee_vault",
1261
+ "docs": [
1262
+ "Fee vault PDA from liquid-fees (authority for fee_vault_token_account)."
1263
+ ],
1264
+ "pda": {
1265
+ "seeds": [
1266
+ {
1267
+ "kind": "const",
1268
+ "value": [
1269
+ 102,
1270
+ 101,
1271
+ 101,
1272
+ 95,
1273
+ 118,
1274
+ 97,
1275
+ 117,
1276
+ 108,
1277
+ 116
1278
+ ]
1279
+ },
1280
+ {
1281
+ "kind": "account",
1282
+ "path": "fee_config"
1283
+ }
1284
+ ],
1285
+ "program": {
1286
+ "kind": "const",
1287
+ "value": [
1288
+ 40,
1289
+ 72,
323
1290
  249,
324
- 130,
325
- 171,
326
- 56,
327
- 202,
328
- 127,
1291
+ 238,
1292
+ 156,
1293
+ 9,
1294
+ 94,
1295
+ 212,
1296
+ 53,
1297
+ 113,
1298
+ 167,
1299
+ 85,
1300
+ 204,
1301
+ 160,
1302
+ 219,
1303
+ 216,
1304
+ 233,
1305
+ 70,
1306
+ 184,
1307
+ 221,
329
1308
  190,
330
- 143,
331
- 121,
332
- 30,
333
- 195,
334
- 25,
335
- 86,
336
- 241,
337
- 242
1309
+ 55,
1310
+ 115,
1311
+ 59,
1312
+ 112,
1313
+ 126,
1314
+ 65,
1315
+ 239,
1316
+ 51,
1317
+ 144,
1318
+ 212,
1319
+ 232
338
1320
  ]
339
1321
  }
340
1322
  }
@@ -564,38 +1546,38 @@
564
1546
  "program": {
565
1547
  "kind": "const",
566
1548
  "value": [
567
- 217,
568
- 168,
569
- 237,
570
- 183,
571
- 0,
572
- 44,
573
- 187,
574
- 171,
575
- 53,
576
- 87,
577
- 202,
578
- 162,
579
- 64,
580
- 131,
581
- 189,
582
- 106,
583
- 187,
1549
+ 40,
1550
+ 72,
584
1551
  249,
585
- 130,
586
- 171,
587
- 56,
588
- 202,
589
- 127,
1552
+ 238,
1553
+ 156,
1554
+ 9,
1555
+ 94,
1556
+ 212,
1557
+ 53,
1558
+ 113,
1559
+ 167,
1560
+ 85,
1561
+ 204,
1562
+ 160,
1563
+ 219,
1564
+ 216,
1565
+ 233,
1566
+ 70,
1567
+ 184,
1568
+ 221,
590
1569
  190,
591
- 143,
592
- 121,
593
- 30,
594
- 195,
595
- 25,
596
- 86,
597
- 241,
598
- 242
1570
+ 55,
1571
+ 115,
1572
+ 59,
1573
+ 112,
1574
+ 126,
1575
+ 65,
1576
+ 239,
1577
+ 51,
1578
+ 144,
1579
+ 212,
1580
+ 232
599
1581
  ]
600
1582
  }
601
1583
  }
@@ -639,38 +1621,38 @@
639
1621
  "program": {
640
1622
  "kind": "const",
641
1623
  "value": [
642
- 6,
643
- 161,
644
- 216,
645
- 199,
646
- 206,
647
- 40,
648
- 40,
649
- 163,
650
- 177,
651
- 19,
652
- 1,
653
- 21,
654
- 164,
655
- 67,
656
- 81,
657
- 132,
658
- 164,
659
- 22,
660
- 81,
1624
+ 127,
1625
+ 56,
1626
+ 3,
661
1627
  177,
662
- 201,
663
- 45,
664
- 170,
665
- 138,
666
- 70,
667
- 214,
668
- 218,
669
- 76,
670
- 85,
671
- 222,
672
- 216,
673
- 214
1628
+ 32,
1629
+ 84,
1630
+ 5,
1631
+ 50,
1632
+ 88,
1633
+ 108,
1634
+ 27,
1635
+ 165,
1636
+ 225,
1637
+ 206,
1638
+ 123,
1639
+ 139,
1640
+ 237,
1641
+ 77,
1642
+ 212,
1643
+ 191,
1644
+ 234,
1645
+ 246,
1646
+ 33,
1647
+ 236,
1648
+ 248,
1649
+ 123,
1650
+ 24,
1651
+ 125,
1652
+ 108,
1653
+ 2,
1654
+ 249,
1655
+ 229
674
1656
  ]
675
1657
  }
676
1658
  }
@@ -709,38 +1691,38 @@
709
1691
  "program": {
710
1692
  "kind": "const",
711
1693
  "value": [
712
- 6,
713
- 161,
714
- 216,
715
- 199,
716
- 206,
717
- 40,
718
- 40,
719
- 163,
1694
+ 127,
1695
+ 56,
1696
+ 3,
720
1697
  177,
721
- 19,
722
- 1,
723
- 21,
724
- 164,
725
- 67,
726
- 81,
727
- 132,
728
- 164,
729
- 22,
730
- 81,
731
- 177,
732
- 201,
733
- 45,
734
- 170,
735
- 138,
736
- 70,
737
- 214,
738
- 218,
739
- 76,
740
- 85,
741
- 222,
742
- 216,
743
- 214
1698
+ 32,
1699
+ 84,
1700
+ 5,
1701
+ 50,
1702
+ 88,
1703
+ 108,
1704
+ 27,
1705
+ 165,
1706
+ 225,
1707
+ 206,
1708
+ 123,
1709
+ 139,
1710
+ 237,
1711
+ 77,
1712
+ 212,
1713
+ 191,
1714
+ 234,
1715
+ 246,
1716
+ 33,
1717
+ 236,
1718
+ 248,
1719
+ 123,
1720
+ 24,
1721
+ 125,
1722
+ 108,
1723
+ 2,
1724
+ 249,
1725
+ 229
744
1726
  ]
745
1727
  }
746
1728
  }
@@ -778,38 +1760,38 @@
778
1760
  "program": {
779
1761
  "kind": "const",
780
1762
  "value": [
781
- 6,
782
- 161,
783
- 216,
784
- 199,
785
- 206,
786
- 40,
787
- 40,
788
- 163,
789
- 177,
790
- 19,
791
- 1,
792
- 21,
793
- 164,
794
- 67,
795
- 81,
796
- 132,
797
- 164,
798
- 22,
799
- 81,
1763
+ 127,
1764
+ 56,
1765
+ 3,
800
1766
  177,
801
- 201,
802
- 45,
803
- 170,
804
- 138,
805
- 70,
806
- 214,
807
- 218,
808
- 76,
809
- 85,
810
- 222,
811
- 216,
812
- 214
1767
+ 32,
1768
+ 84,
1769
+ 5,
1770
+ 50,
1771
+ 88,
1772
+ 108,
1773
+ 27,
1774
+ 165,
1775
+ 225,
1776
+ 206,
1777
+ 123,
1778
+ 139,
1779
+ 237,
1780
+ 77,
1781
+ 212,
1782
+ 191,
1783
+ 234,
1784
+ 246,
1785
+ 33,
1786
+ 236,
1787
+ 248,
1788
+ 123,
1789
+ 24,
1790
+ 125,
1791
+ 108,
1792
+ 2,
1793
+ 249,
1794
+ 229
813
1795
  ]
814
1796
  }
815
1797
  }
@@ -857,38 +1839,38 @@
857
1839
  "program": {
858
1840
  "kind": "const",
859
1841
  "value": [
860
- 6,
861
- 161,
862
- 216,
863
- 199,
864
- 206,
865
- 40,
866
- 40,
867
- 163,
1842
+ 127,
1843
+ 56,
1844
+ 3,
868
1845
  177,
869
- 19,
870
- 1,
871
- 21,
872
- 164,
873
- 67,
874
- 81,
875
- 132,
876
- 164,
877
- 22,
878
- 81,
879
- 177,
880
- 201,
881
- 45,
882
- 170,
883
- 138,
884
- 70,
885
- 214,
886
- 218,
887
- 76,
888
- 85,
889
- 222,
890
- 216,
891
- 214
1846
+ 32,
1847
+ 84,
1848
+ 5,
1849
+ 50,
1850
+ 88,
1851
+ 108,
1852
+ 27,
1853
+ 165,
1854
+ 225,
1855
+ 206,
1856
+ 123,
1857
+ 139,
1858
+ 237,
1859
+ 77,
1860
+ 212,
1861
+ 191,
1862
+ 234,
1863
+ 246,
1864
+ 33,
1865
+ 236,
1866
+ 248,
1867
+ 123,
1868
+ 24,
1869
+ 125,
1870
+ 108,
1871
+ 2,
1872
+ 249,
1873
+ 229
892
1874
  ]
893
1875
  }
894
1876
  }
@@ -898,7 +1880,7 @@
898
1880
  "docs": [
899
1881
  "liquid-state program for unified state management."
900
1882
  ],
901
- "address": "State3HtEfi7cXdsTpAtRoBvrij8zSFCiGTAVWmYH2d"
1883
+ "address": "9ZcKPa3HAEVEKxwFX8fYD56ZJCKPEQgqjgr9rfUvtwKJ"
902
1884
  },
903
1885
  {
904
1886
  "name": "state_events_cpi_authority",
@@ -929,38 +1911,38 @@
929
1911
  "program": {
930
1912
  "kind": "const",
931
1913
  "value": [
932
- 6,
933
- 161,
934
- 216,
935
- 199,
936
- 206,
937
- 40,
938
- 40,
939
- 163,
940
- 177,
941
- 19,
942
- 1,
943
- 21,
944
- 164,
945
- 67,
946
- 81,
947
- 132,
948
- 164,
949
- 22,
950
- 81,
1914
+ 127,
1915
+ 56,
1916
+ 3,
951
1917
  177,
952
- 201,
953
- 45,
954
- 170,
955
- 138,
956
- 70,
957
- 214,
958
- 218,
959
- 76,
960
- 85,
961
- 222,
962
- 216,
963
- 214
1918
+ 32,
1919
+ 84,
1920
+ 5,
1921
+ 50,
1922
+ 88,
1923
+ 108,
1924
+ 27,
1925
+ 165,
1926
+ 225,
1927
+ 206,
1928
+ 123,
1929
+ 139,
1930
+ 237,
1931
+ 77,
1932
+ 212,
1933
+ 191,
1934
+ 234,
1935
+ 246,
1936
+ 33,
1937
+ 236,
1938
+ 248,
1939
+ 123,
1940
+ 24,
1941
+ 125,
1942
+ 108,
1943
+ 2,
1944
+ 249,
1945
+ 229
964
1946
  ]
965
1947
  }
966
1948
  }
@@ -1024,7 +2006,7 @@
1024
2006
  "docs": [
1025
2007
  "Liquid events program for CPI event emission."
1026
2008
  ],
1027
- "address": "EventsQeXA43nLKR69DhHwNsJ6aM512AweMCgG3wG8zG"
2009
+ "address": "Bast7hBDiqSsxiwEmqazwvPvXC3N4z8UQR5ZmkqXnCiY"
1028
2010
  },
1029
2011
  {
1030
2012
  "name": "oracle_price_feed",
@@ -1036,11 +2018,11 @@
1036
2018
  ],
1037
2019
  "args": [
1038
2020
  {
1039
- "name": "max_amount_in",
2021
+ "name": "amount_in",
1040
2022
  "type": "u64"
1041
2023
  },
1042
2024
  {
1043
- "name": "amount_out",
2025
+ "name": "minimum_amount_out",
1044
2026
  "type": "u64"
1045
2027
  }
1046
2028
  ]
@@ -1478,38 +2460,38 @@
1478
2460
  "program": {
1479
2461
  "kind": "const",
1480
2462
  "value": [
1481
- 6,
1482
- 161,
1483
- 216,
1484
- 199,
1485
- 206,
1486
- 40,
1487
- 40,
1488
- 163,
1489
- 177,
1490
- 19,
1491
- 1,
1492
- 21,
1493
- 164,
1494
- 67,
1495
- 81,
1496
- 132,
1497
- 164,
1498
- 22,
1499
- 81,
2463
+ 127,
2464
+ 56,
2465
+ 3,
1500
2466
  177,
1501
- 201,
1502
- 45,
1503
- 170,
1504
- 138,
1505
- 70,
1506
- 214,
1507
- 218,
1508
- 76,
1509
- 85,
1510
- 222,
1511
- 216,
1512
- 214
2467
+ 32,
2468
+ 84,
2469
+ 5,
2470
+ 50,
2471
+ 88,
2472
+ 108,
2473
+ 27,
2474
+ 165,
2475
+ 225,
2476
+ 206,
2477
+ 123,
2478
+ 139,
2479
+ 237,
2480
+ 77,
2481
+ 212,
2482
+ 191,
2483
+ 234,
2484
+ 246,
2485
+ 33,
2486
+ 236,
2487
+ 248,
2488
+ 123,
2489
+ 24,
2490
+ 125,
2491
+ 108,
2492
+ 2,
2493
+ 249,
2494
+ 229
1513
2495
  ]
1514
2496
  }
1515
2497
  }
@@ -1545,38 +2527,38 @@
1545
2527
  "program": {
1546
2528
  "kind": "const",
1547
2529
  "value": [
1548
- 217,
1549
- 168,
1550
- 237,
1551
- 183,
1552
- 0,
1553
- 44,
1554
- 187,
1555
- 171,
1556
- 53,
1557
- 87,
1558
- 202,
1559
- 162,
1560
- 64,
1561
- 131,
1562
- 189,
1563
- 106,
1564
- 187,
2530
+ 40,
2531
+ 72,
1565
2532
  249,
1566
- 130,
1567
- 171,
1568
- 56,
1569
- 202,
1570
- 127,
2533
+ 238,
2534
+ 156,
2535
+ 9,
2536
+ 94,
2537
+ 212,
2538
+ 53,
2539
+ 113,
2540
+ 167,
2541
+ 85,
2542
+ 204,
2543
+ 160,
2544
+ 219,
2545
+ 216,
2546
+ 233,
2547
+ 70,
2548
+ 184,
2549
+ 221,
1571
2550
  190,
1572
- 143,
1573
- 121,
1574
- 30,
1575
- 195,
1576
- 25,
1577
- 86,
1578
- 241,
1579
- 242
2551
+ 55,
2552
+ 115,
2553
+ 59,
2554
+ 112,
2555
+ 126,
2556
+ 65,
2557
+ 239,
2558
+ 51,
2559
+ 144,
2560
+ 212,
2561
+ 232
1580
2562
  ]
1581
2563
  }
1582
2564
  }
@@ -1611,38 +2593,38 @@
1611
2593
  "program": {
1612
2594
  "kind": "const",
1613
2595
  "value": [
1614
- 217,
1615
- 168,
1616
- 237,
1617
- 183,
1618
- 0,
1619
- 44,
1620
- 187,
1621
- 171,
1622
- 53,
1623
- 87,
1624
- 202,
1625
- 162,
1626
- 64,
1627
- 131,
1628
- 189,
1629
- 106,
1630
- 187,
2596
+ 40,
2597
+ 72,
1631
2598
  249,
1632
- 130,
1633
- 171,
1634
- 56,
1635
- 202,
1636
- 127,
2599
+ 238,
2600
+ 156,
2601
+ 9,
2602
+ 94,
2603
+ 212,
2604
+ 53,
2605
+ 113,
2606
+ 167,
2607
+ 85,
2608
+ 204,
2609
+ 160,
2610
+ 219,
2611
+ 216,
2612
+ 233,
2613
+ 70,
2614
+ 184,
2615
+ 221,
1637
2616
  190,
1638
- 143,
1639
- 121,
1640
- 30,
1641
- 195,
1642
- 25,
1643
- 86,
1644
- 241,
1645
- 242
2617
+ 55,
2618
+ 115,
2619
+ 59,
2620
+ 112,
2621
+ 126,
2622
+ 65,
2623
+ 239,
2624
+ 51,
2625
+ 144,
2626
+ 212,
2627
+ 232
1646
2628
  ]
1647
2629
  }
1648
2630
  }
@@ -1762,21 +2744,21 @@
1762
2744
  "docs": [
1763
2745
  "Liquid state program for token volume CPI."
1764
2746
  ],
1765
- "address": "State3HtEfi7cXdsTpAtRoBvrij8zSFCiGTAVWmYH2d"
2747
+ "address": "9ZcKPa3HAEVEKxwFX8fYD56ZJCKPEQgqjgr9rfUvtwKJ"
1766
2748
  },
1767
2749
  {
1768
2750
  "name": "liquid_fees_program",
1769
2751
  "docs": [
1770
2752
  "Liquid fees program for fee configuration CPI."
1771
2753
  ],
1772
- "address": "FeesZQLb1xTeZbvaFRGnqzrZYzzmQtwhTYKQphbNGQru"
2754
+ "address": "3iFrDQxt6ZQT5eTyoHSpdq9hpyj9QmXDjTNEopGYpvTh"
1773
2755
  },
1774
2756
  {
1775
2757
  "name": "liquid_events_program",
1776
2758
  "docs": [
1777
2759
  "Liquid events program for CPI event emission."
1778
2760
  ],
1779
- "address": "EventsQeXA43nLKR69DhHwNsJ6aM512AweMCgG3wG8zG"
2761
+ "address": "Bast7hBDiqSsxiwEmqazwvPvXC3N4z8UQR5ZmkqXnCiY"
1780
2762
  },
1781
2763
  {
1782
2764
  "name": "token_program",
@@ -2018,7 +3000,7 @@
2018
3000
  "docs": [
2019
3001
  "Liquid events program for CPI event emission."
2020
3002
  ],
2021
- "address": "EventsQeXA43nLKR69DhHwNsJ6aM512AweMCgG3wG8zG"
3003
+ "address": "Bast7hBDiqSsxiwEmqazwvPvXC3N4z8UQR5ZmkqXnCiY"
2022
3004
  },
2023
3005
  {
2024
3006
  "name": "token_program",
@@ -2353,38 +3335,38 @@
2353
3335
  "program": {
2354
3336
  "kind": "const",
2355
3337
  "value": [
2356
- 217,
2357
- 168,
2358
- 237,
2359
- 183,
2360
- 0,
2361
- 44,
2362
- 187,
2363
- 171,
2364
- 53,
2365
- 87,
2366
- 202,
2367
- 162,
2368
- 64,
2369
- 131,
2370
- 189,
2371
- 106,
2372
- 187,
3338
+ 40,
3339
+ 72,
2373
3340
  249,
2374
- 130,
2375
- 171,
2376
- 56,
2377
- 202,
2378
- 127,
3341
+ 238,
3342
+ 156,
3343
+ 9,
3344
+ 94,
3345
+ 212,
3346
+ 53,
3347
+ 113,
3348
+ 167,
3349
+ 85,
3350
+ 204,
3351
+ 160,
3352
+ 219,
3353
+ 216,
3354
+ 233,
3355
+ 70,
3356
+ 184,
3357
+ 221,
2379
3358
  190,
2380
- 143,
2381
- 121,
2382
- 30,
2383
- 195,
2384
- 25,
2385
- 86,
2386
- 241,
2387
- 242
3359
+ 55,
3360
+ 115,
3361
+ 59,
3362
+ 112,
3363
+ 126,
3364
+ 65,
3365
+ 239,
3366
+ 51,
3367
+ 144,
3368
+ 212,
3369
+ 232
2388
3370
  ]
2389
3371
  }
2390
3372
  }
@@ -2422,7 +3404,7 @@
2422
3404
  "docs": [
2423
3405
  "Liquid events program for CPI event emission."
2424
3406
  ],
2425
- "address": "EventsQeXA43nLKR69DhHwNsJ6aM512AweMCgG3wG8zG"
3407
+ "address": "Bast7hBDiqSsxiwEmqazwvPvXC3N4z8UQR5ZmkqXnCiY"
2426
3408
  },
2427
3409
  {
2428
3410
  "name": "base_token_program",
@@ -3174,7 +4156,7 @@
3174
4156
  "docs": [
3175
4157
  "Liquid events program for CPI event emission."
3176
4158
  ],
3177
- "address": "EventsQeXA43nLKR69DhHwNsJ6aM512AweMCgG3wG8zG"
4159
+ "address": "Bast7hBDiqSsxiwEmqazwvPvXC3N4z8UQR5ZmkqXnCiY"
3178
4160
  }
3179
4161
  ],
3180
4162
  "args": []
@@ -3201,9 +4183,6 @@
3201
4183
  "accounts": [
3202
4184
  {
3203
4185
  "name": "payer",
3204
- "docs": [
3205
- "The user performing the swap."
3206
- ],
3207
4186
  "writable": true,
3208
4187
  "signer": true
3209
4188
  },
@@ -3354,7 +4333,7 @@
3354
4333
  "The protocol fee recipient. Must be one of the allowed recipients in Config.",
3355
4334
  "",
3356
4335
  "NOTE: Validation happens in handler by checking against global_config.fee_recipients.",
3357
- "Fee recipients are admin-controlled public keys stored in AmmConfig, so an attacker",
4336
+ "Fee recipients are admin-controlled pubkeys stored in AmmConfig, so an attacker",
3358
4337
  "cannot pass an arbitrary account - it must match one of the configured recipients."
3359
4338
  ],
3360
4339
  "writable": true
@@ -3422,38 +4401,38 @@
3422
4401
  "program": {
3423
4402
  "kind": "const",
3424
4403
  "value": [
3425
- 217,
3426
- 168,
3427
- 237,
3428
- 183,
3429
- 0,
3430
- 44,
3431
- 187,
3432
- 171,
3433
- 53,
3434
- 87,
3435
- 202,
3436
- 162,
3437
- 64,
3438
- 131,
3439
- 189,
3440
- 106,
3441
- 187,
4404
+ 40,
4405
+ 72,
3442
4406
  249,
3443
- 130,
3444
- 171,
3445
- 56,
3446
- 202,
3447
- 127,
4407
+ 238,
4408
+ 156,
4409
+ 9,
4410
+ 94,
4411
+ 212,
4412
+ 53,
4413
+ 113,
4414
+ 167,
4415
+ 85,
4416
+ 204,
4417
+ 160,
4418
+ 219,
4419
+ 216,
4420
+ 233,
4421
+ 70,
4422
+ 184,
4423
+ 221,
3448
4424
  190,
3449
- 143,
3450
- 121,
3451
- 30,
3452
- 195,
3453
- 25,
3454
- 86,
3455
- 241,
3456
- 242
4425
+ 55,
4426
+ 115,
4427
+ 59,
4428
+ 112,
4429
+ 126,
4430
+ 65,
4431
+ 239,
4432
+ 51,
4433
+ 144,
4434
+ 212,
4435
+ 232
3457
4436
  ]
3458
4437
  }
3459
4438
  }
@@ -3683,38 +4662,38 @@
3683
4662
  "program": {
3684
4663
  "kind": "const",
3685
4664
  "value": [
3686
- 217,
3687
- 168,
3688
- 237,
3689
- 183,
3690
- 0,
3691
- 44,
3692
- 187,
3693
- 171,
3694
- 53,
3695
- 87,
3696
- 202,
3697
- 162,
3698
- 64,
3699
- 131,
3700
- 189,
3701
- 106,
3702
- 187,
4665
+ 40,
4666
+ 72,
3703
4667
  249,
3704
- 130,
3705
- 171,
3706
- 56,
3707
- 202,
3708
- 127,
4668
+ 238,
4669
+ 156,
4670
+ 9,
4671
+ 94,
4672
+ 212,
4673
+ 53,
4674
+ 113,
4675
+ 167,
4676
+ 85,
4677
+ 204,
4678
+ 160,
4679
+ 219,
4680
+ 216,
4681
+ 233,
4682
+ 70,
4683
+ 184,
4684
+ 221,
3709
4685
  190,
3710
- 143,
3711
- 121,
3712
- 30,
3713
- 195,
3714
- 25,
3715
- 86,
3716
- 241,
3717
- 242
4686
+ 55,
4687
+ 115,
4688
+ 59,
4689
+ 112,
4690
+ 126,
4691
+ 65,
4692
+ 239,
4693
+ 51,
4694
+ 144,
4695
+ 212,
4696
+ 232
3718
4697
  ]
3719
4698
  }
3720
4699
  }
@@ -3758,38 +4737,38 @@
3758
4737
  "program": {
3759
4738
  "kind": "const",
3760
4739
  "value": [
3761
- 6,
3762
- 161,
3763
- 216,
3764
- 199,
3765
- 206,
3766
- 40,
3767
- 40,
3768
- 163,
4740
+ 127,
4741
+ 56,
4742
+ 3,
3769
4743
  177,
3770
- 19,
3771
- 1,
3772
- 21,
3773
- 164,
3774
- 67,
3775
- 81,
3776
- 132,
3777
- 164,
3778
- 22,
3779
- 81,
3780
- 177,
3781
- 201,
3782
- 45,
3783
- 170,
3784
- 138,
3785
- 70,
3786
- 214,
3787
- 218,
3788
- 76,
3789
- 85,
3790
- 222,
3791
- 216,
3792
- 214
4744
+ 32,
4745
+ 84,
4746
+ 5,
4747
+ 50,
4748
+ 88,
4749
+ 108,
4750
+ 27,
4751
+ 165,
4752
+ 225,
4753
+ 206,
4754
+ 123,
4755
+ 139,
4756
+ 237,
4757
+ 77,
4758
+ 212,
4759
+ 191,
4760
+ 234,
4761
+ 246,
4762
+ 33,
4763
+ 236,
4764
+ 248,
4765
+ 123,
4766
+ 24,
4767
+ 125,
4768
+ 108,
4769
+ 2,
4770
+ 249,
4771
+ 229
3793
4772
  ]
3794
4773
  }
3795
4774
  }
@@ -3828,38 +4807,38 @@
3828
4807
  "program": {
3829
4808
  "kind": "const",
3830
4809
  "value": [
3831
- 6,
3832
- 161,
3833
- 216,
3834
- 199,
3835
- 206,
3836
- 40,
3837
- 40,
3838
- 163,
3839
- 177,
3840
- 19,
3841
- 1,
3842
- 21,
3843
- 164,
3844
- 67,
3845
- 81,
3846
- 132,
3847
- 164,
3848
- 22,
3849
- 81,
4810
+ 127,
4811
+ 56,
4812
+ 3,
3850
4813
  177,
3851
- 201,
3852
- 45,
3853
- 170,
3854
- 138,
3855
- 70,
3856
- 214,
3857
- 218,
3858
- 76,
3859
- 85,
3860
- 222,
3861
- 216,
3862
- 214
4814
+ 32,
4815
+ 84,
4816
+ 5,
4817
+ 50,
4818
+ 88,
4819
+ 108,
4820
+ 27,
4821
+ 165,
4822
+ 225,
4823
+ 206,
4824
+ 123,
4825
+ 139,
4826
+ 237,
4827
+ 77,
4828
+ 212,
4829
+ 191,
4830
+ 234,
4831
+ 246,
4832
+ 33,
4833
+ 236,
4834
+ 248,
4835
+ 123,
4836
+ 24,
4837
+ 125,
4838
+ 108,
4839
+ 2,
4840
+ 249,
4841
+ 229
3863
4842
  ]
3864
4843
  }
3865
4844
  }
@@ -3897,38 +4876,38 @@
3897
4876
  "program": {
3898
4877
  "kind": "const",
3899
4878
  "value": [
3900
- 6,
3901
- 161,
3902
- 216,
3903
- 199,
3904
- 206,
3905
- 40,
3906
- 40,
3907
- 163,
4879
+ 127,
4880
+ 56,
4881
+ 3,
3908
4882
  177,
3909
- 19,
3910
- 1,
3911
- 21,
3912
- 164,
3913
- 67,
3914
- 81,
3915
- 132,
3916
- 164,
3917
- 22,
3918
- 81,
3919
- 177,
3920
- 201,
3921
- 45,
3922
- 170,
3923
- 138,
3924
- 70,
3925
- 214,
3926
- 218,
3927
- 76,
3928
- 85,
3929
- 222,
3930
- 216,
3931
- 214
4883
+ 32,
4884
+ 84,
4885
+ 5,
4886
+ 50,
4887
+ 88,
4888
+ 108,
4889
+ 27,
4890
+ 165,
4891
+ 225,
4892
+ 206,
4893
+ 123,
4894
+ 139,
4895
+ 237,
4896
+ 77,
4897
+ 212,
4898
+ 191,
4899
+ 234,
4900
+ 246,
4901
+ 33,
4902
+ 236,
4903
+ 248,
4904
+ 123,
4905
+ 24,
4906
+ 125,
4907
+ 108,
4908
+ 2,
4909
+ 249,
4910
+ 229
3932
4911
  ]
3933
4912
  }
3934
4913
  }
@@ -3976,38 +4955,38 @@
3976
4955
  "program": {
3977
4956
  "kind": "const",
3978
4957
  "value": [
3979
- 6,
3980
- 161,
3981
- 216,
3982
- 199,
3983
- 206,
3984
- 40,
3985
- 40,
3986
- 163,
3987
- 177,
3988
- 19,
3989
- 1,
3990
- 21,
3991
- 164,
3992
- 67,
3993
- 81,
3994
- 132,
3995
- 164,
3996
- 22,
3997
- 81,
4958
+ 127,
4959
+ 56,
4960
+ 3,
3998
4961
  177,
3999
- 201,
4000
- 45,
4001
- 170,
4002
- 138,
4003
- 70,
4004
- 214,
4005
- 218,
4006
- 76,
4007
- 85,
4008
- 222,
4009
- 216,
4010
- 214
4962
+ 32,
4963
+ 84,
4964
+ 5,
4965
+ 50,
4966
+ 88,
4967
+ 108,
4968
+ 27,
4969
+ 165,
4970
+ 225,
4971
+ 206,
4972
+ 123,
4973
+ 139,
4974
+ 237,
4975
+ 77,
4976
+ 212,
4977
+ 191,
4978
+ 234,
4979
+ 246,
4980
+ 33,
4981
+ 236,
4982
+ 248,
4983
+ 123,
4984
+ 24,
4985
+ 125,
4986
+ 108,
4987
+ 2,
4988
+ 249,
4989
+ 229
4011
4990
  ]
4012
4991
  }
4013
4992
  }
@@ -4017,7 +4996,7 @@
4017
4996
  "docs": [
4018
4997
  "liquid-state program for unified state management."
4019
4998
  ],
4020
- "address": "State3HtEfi7cXdsTpAtRoBvrij8zSFCiGTAVWmYH2d"
4999
+ "address": "9ZcKPa3HAEVEKxwFX8fYD56ZJCKPEQgqjgr9rfUvtwKJ"
4021
5000
  },
4022
5001
  {
4023
5002
  "name": "state_events_cpi_authority",
@@ -4048,38 +5027,38 @@
4048
5027
  "program": {
4049
5028
  "kind": "const",
4050
5029
  "value": [
4051
- 6,
4052
- 161,
4053
- 216,
4054
- 199,
4055
- 206,
4056
- 40,
4057
- 40,
4058
- 163,
5030
+ 127,
5031
+ 56,
5032
+ 3,
4059
5033
  177,
4060
- 19,
4061
- 1,
4062
- 21,
4063
- 164,
4064
- 67,
4065
- 81,
4066
- 132,
4067
- 164,
4068
- 22,
4069
- 81,
4070
- 177,
4071
- 201,
4072
- 45,
4073
- 170,
4074
- 138,
4075
- 70,
4076
- 214,
4077
- 218,
4078
- 76,
4079
- 85,
4080
- 222,
4081
- 216,
4082
- 214
5034
+ 32,
5035
+ 84,
5036
+ 5,
5037
+ 50,
5038
+ 88,
5039
+ 108,
5040
+ 27,
5041
+ 165,
5042
+ 225,
5043
+ 206,
5044
+ 123,
5045
+ 139,
5046
+ 237,
5047
+ 77,
5048
+ 212,
5049
+ 191,
5050
+ 234,
5051
+ 246,
5052
+ 33,
5053
+ 236,
5054
+ 248,
5055
+ 123,
5056
+ 24,
5057
+ 125,
5058
+ 108,
5059
+ 2,
5060
+ 249,
5061
+ 229
4083
5062
  ]
4084
5063
  }
4085
5064
  }
@@ -4100,16 +5079,10 @@
4100
5079
  },
4101
5080
  {
4102
5081
  "name": "system_program",
4103
- "docs": [
4104
- "System program needed for init_if_needed"
4105
- ],
4106
5082
  "address": "11111111111111111111111111111111"
4107
5083
  },
4108
5084
  {
4109
5085
  "name": "token_program",
4110
- "docs": [
4111
- "Token program for vault creation"
4112
- ],
4113
5086
  "address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"
4114
5087
  },
4115
5088
  {
@@ -4149,7 +5122,7 @@
4149
5122
  "docs": [
4150
5123
  "Liquid events program for CPI event emission."
4151
5124
  ],
4152
- "address": "EventsQeXA43nLKR69DhHwNsJ6aM512AweMCgG3wG8zG"
5125
+ "address": "Bast7hBDiqSsxiwEmqazwvPvXC3N4z8UQR5ZmkqXnCiY"
4153
5126
  },
4154
5127
  {
4155
5128
  "name": "oracle_price_feed",
@@ -4192,9 +5165,6 @@
4192
5165
  "accounts": [
4193
5166
  {
4194
5167
  "name": "payer",
4195
- "docs": [
4196
- "The user performing the swap."
4197
- ],
4198
5168
  "writable": true,
4199
5169
  "signer": true
4200
5170
  },
@@ -4345,7 +5315,7 @@
4345
5315
  "The protocol fee recipient. Must be one of the allowed recipients in Config.",
4346
5316
  "",
4347
5317
  "NOTE: Validation happens in handler by checking against global_config.fee_recipients.",
4348
- "Fee recipients are admin-controlled public keys stored in AmmConfig, so an attacker",
5318
+ "Fee recipients are admin-controlled pubkeys stored in AmmConfig, so an attacker",
4349
5319
  "cannot pass an arbitrary account - it must match one of the configured recipients."
4350
5320
  ],
4351
5321
  "writable": true
@@ -4413,38 +5383,38 @@
4413
5383
  "program": {
4414
5384
  "kind": "const",
4415
5385
  "value": [
4416
- 217,
4417
- 168,
4418
- 237,
4419
- 183,
4420
- 0,
4421
- 44,
4422
- 187,
4423
- 171,
4424
- 53,
4425
- 87,
4426
- 202,
4427
- 162,
4428
- 64,
4429
- 131,
4430
- 189,
4431
- 106,
4432
- 187,
5386
+ 40,
5387
+ 72,
4433
5388
  249,
4434
- 130,
4435
- 171,
4436
- 56,
4437
- 202,
4438
- 127,
5389
+ 238,
5390
+ 156,
5391
+ 9,
5392
+ 94,
5393
+ 212,
5394
+ 53,
5395
+ 113,
5396
+ 167,
5397
+ 85,
5398
+ 204,
5399
+ 160,
5400
+ 219,
5401
+ 216,
5402
+ 233,
5403
+ 70,
5404
+ 184,
5405
+ 221,
4439
5406
  190,
4440
- 143,
4441
- 121,
4442
- 30,
4443
- 195,
4444
- 25,
4445
- 86,
4446
- 241,
4447
- 242
5407
+ 55,
5408
+ 115,
5409
+ 59,
5410
+ 112,
5411
+ 126,
5412
+ 65,
5413
+ 239,
5414
+ 51,
5415
+ 144,
5416
+ 212,
5417
+ 232
4448
5418
  ]
4449
5419
  }
4450
5420
  }
@@ -4674,38 +5644,38 @@
4674
5644
  "program": {
4675
5645
  "kind": "const",
4676
5646
  "value": [
4677
- 217,
4678
- 168,
4679
- 237,
4680
- 183,
4681
- 0,
4682
- 44,
4683
- 187,
4684
- 171,
4685
- 53,
4686
- 87,
4687
- 202,
4688
- 162,
4689
- 64,
4690
- 131,
4691
- 189,
4692
- 106,
4693
- 187,
5647
+ 40,
5648
+ 72,
4694
5649
  249,
4695
- 130,
4696
- 171,
4697
- 56,
4698
- 202,
4699
- 127,
5650
+ 238,
5651
+ 156,
5652
+ 9,
5653
+ 94,
5654
+ 212,
5655
+ 53,
5656
+ 113,
5657
+ 167,
5658
+ 85,
5659
+ 204,
5660
+ 160,
5661
+ 219,
5662
+ 216,
5663
+ 233,
5664
+ 70,
5665
+ 184,
5666
+ 221,
4700
5667
  190,
4701
- 143,
4702
- 121,
4703
- 30,
4704
- 195,
4705
- 25,
4706
- 86,
4707
- 241,
4708
- 242
5668
+ 55,
5669
+ 115,
5670
+ 59,
5671
+ 112,
5672
+ 126,
5673
+ 65,
5674
+ 239,
5675
+ 51,
5676
+ 144,
5677
+ 212,
5678
+ 232
4709
5679
  ]
4710
5680
  }
4711
5681
  }
@@ -4749,38 +5719,38 @@
4749
5719
  "program": {
4750
5720
  "kind": "const",
4751
5721
  "value": [
4752
- 6,
4753
- 161,
4754
- 216,
4755
- 199,
4756
- 206,
4757
- 40,
4758
- 40,
4759
- 163,
5722
+ 127,
5723
+ 56,
5724
+ 3,
4760
5725
  177,
4761
- 19,
4762
- 1,
4763
- 21,
4764
- 164,
4765
- 67,
4766
- 81,
4767
- 132,
4768
- 164,
4769
- 22,
4770
- 81,
4771
- 177,
4772
- 201,
4773
- 45,
4774
- 170,
4775
- 138,
4776
- 70,
4777
- 214,
4778
- 218,
4779
- 76,
4780
- 85,
4781
- 222,
4782
- 216,
4783
- 214
5726
+ 32,
5727
+ 84,
5728
+ 5,
5729
+ 50,
5730
+ 88,
5731
+ 108,
5732
+ 27,
5733
+ 165,
5734
+ 225,
5735
+ 206,
5736
+ 123,
5737
+ 139,
5738
+ 237,
5739
+ 77,
5740
+ 212,
5741
+ 191,
5742
+ 234,
5743
+ 246,
5744
+ 33,
5745
+ 236,
5746
+ 248,
5747
+ 123,
5748
+ 24,
5749
+ 125,
5750
+ 108,
5751
+ 2,
5752
+ 249,
5753
+ 229
4784
5754
  ]
4785
5755
  }
4786
5756
  }
@@ -4819,38 +5789,38 @@
4819
5789
  "program": {
4820
5790
  "kind": "const",
4821
5791
  "value": [
4822
- 6,
4823
- 161,
4824
- 216,
4825
- 199,
4826
- 206,
4827
- 40,
4828
- 40,
4829
- 163,
4830
- 177,
4831
- 19,
4832
- 1,
4833
- 21,
4834
- 164,
4835
- 67,
4836
- 81,
4837
- 132,
4838
- 164,
4839
- 22,
4840
- 81,
5792
+ 127,
5793
+ 56,
5794
+ 3,
4841
5795
  177,
4842
- 201,
4843
- 45,
4844
- 170,
4845
- 138,
4846
- 70,
4847
- 214,
4848
- 218,
4849
- 76,
4850
- 85,
4851
- 222,
4852
- 216,
4853
- 214
5796
+ 32,
5797
+ 84,
5798
+ 5,
5799
+ 50,
5800
+ 88,
5801
+ 108,
5802
+ 27,
5803
+ 165,
5804
+ 225,
5805
+ 206,
5806
+ 123,
5807
+ 139,
5808
+ 237,
5809
+ 77,
5810
+ 212,
5811
+ 191,
5812
+ 234,
5813
+ 246,
5814
+ 33,
5815
+ 236,
5816
+ 248,
5817
+ 123,
5818
+ 24,
5819
+ 125,
5820
+ 108,
5821
+ 2,
5822
+ 249,
5823
+ 229
4854
5824
  ]
4855
5825
  }
4856
5826
  }
@@ -4888,38 +5858,38 @@
4888
5858
  "program": {
4889
5859
  "kind": "const",
4890
5860
  "value": [
4891
- 6,
4892
- 161,
4893
- 216,
4894
- 199,
4895
- 206,
4896
- 40,
4897
- 40,
4898
- 163,
5861
+ 127,
5862
+ 56,
5863
+ 3,
4899
5864
  177,
4900
- 19,
4901
- 1,
4902
- 21,
4903
- 164,
4904
- 67,
4905
- 81,
4906
- 132,
4907
- 164,
4908
- 22,
4909
- 81,
4910
- 177,
4911
- 201,
4912
- 45,
4913
- 170,
4914
- 138,
4915
- 70,
4916
- 214,
4917
- 218,
4918
- 76,
4919
- 85,
4920
- 222,
4921
- 216,
4922
- 214
5865
+ 32,
5866
+ 84,
5867
+ 5,
5868
+ 50,
5869
+ 88,
5870
+ 108,
5871
+ 27,
5872
+ 165,
5873
+ 225,
5874
+ 206,
5875
+ 123,
5876
+ 139,
5877
+ 237,
5878
+ 77,
5879
+ 212,
5880
+ 191,
5881
+ 234,
5882
+ 246,
5883
+ 33,
5884
+ 236,
5885
+ 248,
5886
+ 123,
5887
+ 24,
5888
+ 125,
5889
+ 108,
5890
+ 2,
5891
+ 249,
5892
+ 229
4923
5893
  ]
4924
5894
  }
4925
5895
  }
@@ -4967,38 +5937,38 @@
4967
5937
  "program": {
4968
5938
  "kind": "const",
4969
5939
  "value": [
4970
- 6,
4971
- 161,
4972
- 216,
4973
- 199,
4974
- 206,
4975
- 40,
4976
- 40,
4977
- 163,
4978
- 177,
4979
- 19,
4980
- 1,
4981
- 21,
4982
- 164,
4983
- 67,
4984
- 81,
4985
- 132,
4986
- 164,
4987
- 22,
4988
- 81,
5940
+ 127,
5941
+ 56,
5942
+ 3,
4989
5943
  177,
4990
- 201,
4991
- 45,
4992
- 170,
4993
- 138,
4994
- 70,
4995
- 214,
4996
- 218,
4997
- 76,
4998
- 85,
4999
- 222,
5000
- 216,
5001
- 214
5944
+ 32,
5945
+ 84,
5946
+ 5,
5947
+ 50,
5948
+ 88,
5949
+ 108,
5950
+ 27,
5951
+ 165,
5952
+ 225,
5953
+ 206,
5954
+ 123,
5955
+ 139,
5956
+ 237,
5957
+ 77,
5958
+ 212,
5959
+ 191,
5960
+ 234,
5961
+ 246,
5962
+ 33,
5963
+ 236,
5964
+ 248,
5965
+ 123,
5966
+ 24,
5967
+ 125,
5968
+ 108,
5969
+ 2,
5970
+ 249,
5971
+ 229
5002
5972
  ]
5003
5973
  }
5004
5974
  }
@@ -5008,7 +5978,7 @@
5008
5978
  "docs": [
5009
5979
  "liquid-state program for unified state management."
5010
5980
  ],
5011
- "address": "State3HtEfi7cXdsTpAtRoBvrij8zSFCiGTAVWmYH2d"
5981
+ "address": "9ZcKPa3HAEVEKxwFX8fYD56ZJCKPEQgqjgr9rfUvtwKJ"
5012
5982
  },
5013
5983
  {
5014
5984
  "name": "state_events_cpi_authority",
@@ -5039,38 +6009,38 @@
5039
6009
  "program": {
5040
6010
  "kind": "const",
5041
6011
  "value": [
5042
- 6,
5043
- 161,
5044
- 216,
5045
- 199,
5046
- 206,
5047
- 40,
5048
- 40,
5049
- 163,
6012
+ 127,
6013
+ 56,
6014
+ 3,
5050
6015
  177,
5051
- 19,
5052
- 1,
5053
- 21,
5054
- 164,
5055
- 67,
5056
- 81,
5057
- 132,
5058
- 164,
5059
- 22,
5060
- 81,
5061
- 177,
5062
- 201,
5063
- 45,
5064
- 170,
5065
- 138,
5066
- 70,
5067
- 214,
5068
- 218,
5069
- 76,
5070
- 85,
5071
- 222,
5072
- 216,
5073
- 214
6016
+ 32,
6017
+ 84,
6018
+ 5,
6019
+ 50,
6020
+ 88,
6021
+ 108,
6022
+ 27,
6023
+ 165,
6024
+ 225,
6025
+ 206,
6026
+ 123,
6027
+ 139,
6028
+ 237,
6029
+ 77,
6030
+ 212,
6031
+ 191,
6032
+ 234,
6033
+ 246,
6034
+ 33,
6035
+ 236,
6036
+ 248,
6037
+ 123,
6038
+ 24,
6039
+ 125,
6040
+ 108,
6041
+ 2,
6042
+ 249,
6043
+ 229
5074
6044
  ]
5075
6045
  }
5076
6046
  }
@@ -5091,16 +6061,10 @@
5091
6061
  },
5092
6062
  {
5093
6063
  "name": "system_program",
5094
- "docs": [
5095
- "System program needed for init_if_needed"
5096
- ],
5097
6064
  "address": "11111111111111111111111111111111"
5098
6065
  },
5099
6066
  {
5100
6067
  "name": "token_program",
5101
- "docs": [
5102
- "Token program for vault creation"
5103
- ],
5104
6068
  "address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"
5105
6069
  },
5106
6070
  {
@@ -5140,7 +6104,7 @@
5140
6104
  "docs": [
5141
6105
  "Liquid events program for CPI event emission."
5142
6106
  ],
5143
- "address": "EventsQeXA43nLKR69DhHwNsJ6aM512AweMCgG3wG8zG"
6107
+ "address": "Bast7hBDiqSsxiwEmqazwvPvXC3N4z8UQR5ZmkqXnCiY"
5144
6108
  },
5145
6109
  {
5146
6110
  "name": "oracle_price_feed",
@@ -5407,7 +6371,7 @@
5407
6371
  "docs": [
5408
6372
  "Liquid events program for CPI event emission."
5409
6373
  ],
5410
- "address": "EventsQeXA43nLKR69DhHwNsJ6aM512AweMCgG3wG8zG"
6374
+ "address": "Bast7hBDiqSsxiwEmqazwvPvXC3N4z8UQR5ZmkqXnCiY"
5411
6375
  }
5412
6376
  ],
5413
6377
  "args": []
@@ -5692,7 +6656,7 @@
5692
6656
  "docs": [
5693
6657
  "Liquid events program for CPI event emission."
5694
6658
  ],
5695
- "address": "EventsQeXA43nLKR69DhHwNsJ6aM512AweMCgG3wG8zG"
6659
+ "address": "Bast7hBDiqSsxiwEmqazwvPvXC3N4z8UQR5ZmkqXnCiY"
5696
6660
  },
5697
6661
  {
5698
6662
  "name": "token_program",