@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
@@ -5,7 +5,7 @@
5
5
  * IDL can be found at `target/idl/liquid_swap.json`.
6
6
  */
7
7
  export type LiquidSwap = {
8
- "address": "SwapMXcpJdXgnFG9BZak2fBZUiNeR2qYxzexF2ZxdW8";
8
+ "address": "DoBPPSQETr2xK5fKeTDR8wJ2Y4aTjtDbNwd9K72whhQB";
9
9
  "metadata": {
10
10
  "name": "liquidSwap";
11
11
  "version": "0.1.0";
@@ -309,38 +309,1020 @@ export type LiquidSwap = {
309
309
  "program": {
310
310
  "kind": "const";
311
311
  "value": [
312
- 217,
313
- 168,
314
- 237,
315
- 183,
316
- 0,
317
- 44,
318
- 187,
319
- 171,
312
+ 40,
313
+ 72,
314
+ 249,
315
+ 238,
316
+ 156,
317
+ 9,
318
+ 94,
319
+ 212,
320
320
  53,
321
- 87,
322
- 202,
323
- 162,
324
- 64,
325
- 131,
326
- 189,
327
- 106,
321
+ 113,
322
+ 167,
323
+ 85,
324
+ 204,
325
+ 160,
326
+ 219,
327
+ 216,
328
+ 233,
329
+ 70,
330
+ 184,
331
+ 221,
332
+ 190,
333
+ 55,
334
+ 115,
335
+ 59,
336
+ 112,
337
+ 126,
338
+ 65,
339
+ 239,
340
+ 51,
341
+ 144,
342
+ 212,
343
+ 232
344
+ ];
345
+ };
346
+ };
347
+ },
348
+ {
349
+ "name": "feeVaultTokenAccount";
350
+ "docs": [
351
+ "Fee vault token account for Recipients mode — accumulates quote tokens."
352
+ ];
353
+ "writable": true;
354
+ "pda": {
355
+ "seeds": [
356
+ {
357
+ "kind": "account";
358
+ "path": "feeVault";
359
+ },
360
+ {
361
+ "kind": "account";
362
+ "path": "quoteTokenProgram";
363
+ },
364
+ {
365
+ "kind": "account";
366
+ "path": "quoteMint";
367
+ }
368
+ ];
369
+ "program": {
370
+ "kind": "const";
371
+ "value": [
372
+ 140,
373
+ 151,
374
+ 37,
375
+ 143,
376
+ 78,
377
+ 36,
378
+ 137,
379
+ 241,
328
380
  187,
381
+ 61,
382
+ 16,
383
+ 41,
384
+ 20,
385
+ 142,
386
+ 13,
387
+ 131,
388
+ 11,
389
+ 90,
390
+ 19,
391
+ 153,
392
+ 218,
393
+ 255,
394
+ 16,
395
+ 132,
396
+ 4,
397
+ 142,
398
+ 123,
399
+ 216,
400
+ 219,
401
+ 233,
402
+ 248,
403
+ 89
404
+ ];
405
+ };
406
+ };
407
+ },
408
+ {
409
+ "name": "buybackVault";
410
+ "docs": [
411
+ "Buyback vault (for Revoked mode) — accumulates quote tokens for buy-and-burn.",
412
+ "Initialized during pool creation."
413
+ ];
414
+ "writable": true;
415
+ "pda": {
416
+ "seeds": [
417
+ {
418
+ "kind": "const";
419
+ "value": [
420
+ 98,
421
+ 117,
422
+ 121,
423
+ 98,
424
+ 97,
425
+ 99,
426
+ 107,
427
+ 95,
428
+ 118,
429
+ 97,
430
+ 117,
431
+ 108,
432
+ 116
433
+ ];
434
+ },
435
+ {
436
+ "kind": "account";
437
+ "path": "pool";
438
+ },
439
+ {
440
+ "kind": "account";
441
+ "path": "quoteMint";
442
+ }
443
+ ];
444
+ };
445
+ },
446
+ {
447
+ "name": "authority";
448
+ "docs": [
449
+ "Pool vault and LP mint authority."
450
+ ];
451
+ "pda": {
452
+ "seeds": [
453
+ {
454
+ "kind": "const";
455
+ "value": [
456
+ 118,
457
+ 97,
458
+ 117,
459
+ 108,
460
+ 116,
461
+ 95,
462
+ 97,
463
+ 110,
464
+ 100,
465
+ 95,
466
+ 108,
467
+ 112,
468
+ 95,
469
+ 109,
470
+ 105,
471
+ 110,
472
+ 116,
473
+ 95,
474
+ 97,
475
+ 117,
476
+ 116,
477
+ 104,
478
+ 95,
479
+ 115,
480
+ 101,
481
+ 101,
482
+ 100
483
+ ];
484
+ }
485
+ ];
486
+ };
487
+ },
488
+ {
489
+ "name": "globalConfig";
490
+ "docs": [
491
+ "Global configuration for the protocol."
492
+ ];
493
+ "pda": {
494
+ "seeds": [
495
+ {
496
+ "kind": "const";
497
+ "value": [
498
+ 103,
499
+ 108,
500
+ 111,
501
+ 98,
502
+ 97,
503
+ 108,
504
+ 95,
505
+ 99,
506
+ 111,
507
+ 110,
508
+ 102,
509
+ 105,
510
+ 103
511
+ ];
512
+ }
513
+ ];
514
+ };
515
+ },
516
+ {
517
+ "name": "creator";
518
+ "docs": [
519
+ "Pool creator (needed for fee vault derivation).",
520
+ "",
521
+ "NOTE: Validation relies on `has_one = creator` constraint on pool state.",
522
+ "The creator is whoever signed the original pool creation transaction,",
523
+ "stored immutably in PoolState. No separate ownership check is needed",
524
+ "as the pool state is the source of truth for creator identity."
525
+ ];
526
+ "relations": [
527
+ "pool"
528
+ ];
529
+ },
530
+ {
531
+ "name": "baseMint";
532
+ "docs": [
533
+ "The mint of input token."
534
+ ];
535
+ },
536
+ {
537
+ "name": "quoteMint";
538
+ "docs": [
539
+ "The mint of output token."
540
+ ];
541
+ },
542
+ {
543
+ "name": "feeConfig";
544
+ "docs": [
545
+ "The fee configuration for this token (from liquid-fees program).",
546
+ "base_mint is typically the token that was launched on the bonding curve."
547
+ ];
548
+ "pda": {
549
+ "seeds": [
550
+ {
551
+ "kind": "const";
552
+ "value": [
553
+ 102,
554
+ 101,
555
+ 101,
556
+ 95,
557
+ 99,
558
+ 111,
559
+ 110,
560
+ 102,
561
+ 105,
562
+ 103
563
+ ];
564
+ },
565
+ {
566
+ "kind": "account";
567
+ "path": "baseMint";
568
+ }
569
+ ];
570
+ "program": {
571
+ "kind": "const";
572
+ "value": [
573
+ 40,
574
+ 72,
575
+ 249,
576
+ 238,
577
+ 156,
578
+ 9,
579
+ 94,
580
+ 212,
581
+ 53,
582
+ 113,
583
+ 167,
584
+ 85,
585
+ 204,
586
+ 160,
587
+ 219,
588
+ 216,
589
+ 233,
590
+ 70,
591
+ 184,
592
+ 221,
593
+ 190,
594
+ 55,
595
+ 115,
596
+ 59,
597
+ 112,
598
+ 126,
599
+ 65,
600
+ 239,
601
+ 51,
602
+ 144,
603
+ 212,
604
+ 232
605
+ ];
606
+ };
607
+ };
608
+ },
609
+ {
610
+ "name": "liquidState";
611
+ "accounts": [
612
+ {
613
+ "name": "userProperties";
614
+ "docs": [
615
+ "User properties from liquid-state."
616
+ ];
617
+ "writable": true;
618
+ "pda": {
619
+ "seeds": [
620
+ {
621
+ "kind": "const";
622
+ "value": [
623
+ 117,
624
+ 115,
625
+ 101,
626
+ 114,
627
+ 95,
628
+ 112,
629
+ 114,
630
+ 111,
631
+ 112,
632
+ 101,
633
+ 114,
634
+ 116,
635
+ 105,
636
+ 101,
637
+ 115
638
+ ];
639
+ },
640
+ {
641
+ "kind": "account";
642
+ "path": "user";
643
+ }
644
+ ];
645
+ "program": {
646
+ "kind": "const";
647
+ "value": [
648
+ 127,
649
+ 56,
650
+ 3,
651
+ 177,
652
+ 32,
653
+ 84,
654
+ 5,
655
+ 50,
656
+ 88,
657
+ 108,
658
+ 27,
659
+ 165,
660
+ 225,
661
+ 206,
662
+ 123,
663
+ 139,
664
+ 237,
665
+ 77,
666
+ 212,
667
+ 191,
668
+ 234,
669
+ 246,
670
+ 33,
671
+ 236,
672
+ 248,
673
+ 123,
674
+ 24,
675
+ 125,
676
+ 108,
677
+ 2,
678
+ 249,
679
+ 229
680
+ ];
681
+ };
682
+ };
683
+ },
684
+ {
685
+ "name": "globalAmmVolume";
686
+ "docs": [
687
+ "Global AMM volume accumulator from liquid-state."
688
+ ];
689
+ "writable": true;
690
+ "pda": {
691
+ "seeds": [
692
+ {
693
+ "kind": "const";
694
+ "value": [
695
+ 103,
696
+ 108,
697
+ 111,
698
+ 98,
699
+ 97,
700
+ 108,
701
+ 95,
702
+ 97,
703
+ 109,
704
+ 109,
705
+ 95,
706
+ 118,
707
+ 111,
708
+ 108,
709
+ 117,
710
+ 109,
711
+ 101
712
+ ];
713
+ }
714
+ ];
715
+ "program": {
716
+ "kind": "const";
717
+ "value": [
718
+ 127,
719
+ 56,
720
+ 3,
721
+ 177,
722
+ 32,
723
+ 84,
724
+ 5,
725
+ 50,
726
+ 88,
727
+ 108,
728
+ 27,
729
+ 165,
730
+ 225,
731
+ 206,
732
+ 123,
733
+ 139,
734
+ 237,
735
+ 77,
736
+ 212,
737
+ 191,
738
+ 234,
739
+ 246,
740
+ 33,
741
+ 236,
742
+ 248,
743
+ 123,
744
+ 24,
745
+ 125,
746
+ 108,
747
+ 2,
748
+ 249,
749
+ 229
750
+ ];
751
+ };
752
+ };
753
+ },
754
+ {
755
+ "name": "tokenVolume";
756
+ "docs": [
757
+ "Token volume accumulator from liquid-state (for base_mint)."
758
+ ];
759
+ "writable": true;
760
+ "pda": {
761
+ "seeds": [
762
+ {
763
+ "kind": "const";
764
+ "value": [
765
+ 116,
766
+ 111,
767
+ 107,
768
+ 101,
769
+ 110,
770
+ 95,
771
+ 118,
772
+ 111,
773
+ 108,
774
+ 117,
775
+ 109,
776
+ 101
777
+ ];
778
+ },
779
+ {
780
+ "kind": "account";
781
+ "path": "tokenMint";
782
+ }
783
+ ];
784
+ "program": {
785
+ "kind": "const";
786
+ "value": [
787
+ 127,
788
+ 56,
789
+ 3,
790
+ 177,
791
+ 32,
792
+ 84,
793
+ 5,
794
+ 50,
795
+ 88,
796
+ 108,
797
+ 27,
798
+ 165,
799
+ 225,
800
+ 206,
801
+ 123,
802
+ 139,
803
+ 237,
804
+ 77,
805
+ 212,
806
+ 191,
807
+ 234,
808
+ 246,
809
+ 33,
810
+ 236,
811
+ 248,
812
+ 123,
813
+ 24,
814
+ 125,
815
+ 108,
816
+ 2,
817
+ 249,
818
+ 229
819
+ ];
820
+ };
821
+ };
822
+ },
823
+ {
824
+ "name": "user";
825
+ "docs": [
826
+ "The user performing the trade."
827
+ ];
828
+ },
829
+ {
830
+ "name": "tokenMint";
831
+ "docs": [
832
+ "The token mint, used for token_volume PDA derivation."
833
+ ];
834
+ },
835
+ {
836
+ "name": "cashbackConfig";
837
+ "docs": [
838
+ "Cashback configuration from liquid-state."
839
+ ];
840
+ "pda": {
841
+ "seeds": [
842
+ {
843
+ "kind": "const";
844
+ "value": [
845
+ 99,
846
+ 97,
847
+ 115,
848
+ 104,
849
+ 98,
850
+ 97,
851
+ 99,
852
+ 107,
853
+ 95,
854
+ 99,
855
+ 111,
856
+ 110,
857
+ 102,
858
+ 105,
859
+ 103
860
+ ];
861
+ }
862
+ ];
863
+ "program": {
864
+ "kind": "const";
865
+ "value": [
866
+ 127,
867
+ 56,
868
+ 3,
869
+ 177,
870
+ 32,
871
+ 84,
872
+ 5,
873
+ 50,
874
+ 88,
875
+ 108,
876
+ 27,
877
+ 165,
878
+ 225,
879
+ 206,
880
+ 123,
881
+ 139,
882
+ 237,
883
+ 77,
884
+ 212,
885
+ 191,
886
+ 234,
887
+ 246,
888
+ 33,
889
+ 236,
890
+ 248,
891
+ 123,
892
+ 24,
893
+ 125,
894
+ 108,
895
+ 2,
896
+ 249,
897
+ 229
898
+ ];
899
+ };
900
+ };
901
+ },
902
+ {
903
+ "name": "liquidStateProgram";
904
+ "docs": [
905
+ "liquid-state program for unified state management."
906
+ ];
907
+ "address": "9ZcKPa3HAEVEKxwFX8fYD56ZJCKPEQgqjgr9rfUvtwKJ";
908
+ },
909
+ {
910
+ "name": "stateEventsCpiAuthority";
911
+ "docs": [
912
+ "CPI authority PDA owned by liquid-state for emitting events via liquid-events."
913
+ ];
914
+ "pda": {
915
+ "seeds": [
916
+ {
917
+ "kind": "const";
918
+ "value": [
919
+ 99,
920
+ 112,
921
+ 105,
922
+ 95,
923
+ 97,
924
+ 117,
925
+ 116,
926
+ 104,
927
+ 111,
928
+ 114,
929
+ 105,
930
+ 116,
931
+ 121
932
+ ];
933
+ }
934
+ ];
935
+ "program": {
936
+ "kind": "const";
937
+ "value": [
938
+ 127,
939
+ 56,
940
+ 3,
941
+ 177,
942
+ 32,
943
+ 84,
944
+ 5,
945
+ 50,
946
+ 88,
947
+ 108,
948
+ 27,
949
+ 165,
950
+ 225,
951
+ 206,
952
+ 123,
953
+ 139,
954
+ 237,
955
+ 77,
956
+ 212,
957
+ 191,
958
+ 234,
959
+ 246,
960
+ 33,
961
+ 236,
962
+ 248,
963
+ 123,
964
+ 24,
965
+ 125,
966
+ 108,
967
+ 2,
968
+ 249,
969
+ 229
970
+ ];
971
+ };
972
+ };
973
+ }
974
+ ];
975
+ },
976
+ {
977
+ "name": "baseTokenProgram";
978
+ "docs": [
979
+ "SPL program for input token transfers."
980
+ ];
981
+ },
982
+ {
983
+ "name": "quoteTokenProgram";
984
+ "docs": [
985
+ "SPL program for output token transfers."
986
+ ];
987
+ },
988
+ {
989
+ "name": "systemProgram";
990
+ "address": "11111111111111111111111111111111";
991
+ },
992
+ {
993
+ "name": "tokenProgram";
994
+ "address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA";
995
+ },
996
+ {
997
+ "name": "associatedTokenProgram";
998
+ "address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL";
999
+ },
1000
+ {
1001
+ "name": "cpiAuthority";
1002
+ "docs": [
1003
+ "CPI authority PDA — proves this program's identity in cross-program calls."
1004
+ ];
1005
+ "pda": {
1006
+ "seeds": [
1007
+ {
1008
+ "kind": "const";
1009
+ "value": [
1010
+ 99,
1011
+ 112,
1012
+ 105,
1013
+ 95,
1014
+ 97,
1015
+ 117,
1016
+ 116,
1017
+ 104,
1018
+ 111,
1019
+ 114,
1020
+ 105,
1021
+ 116,
1022
+ 121
1023
+ ];
1024
+ }
1025
+ ];
1026
+ };
1027
+ },
1028
+ {
1029
+ "name": "liquidEventsProgram";
1030
+ "docs": [
1031
+ "Liquid events program for CPI event emission."
1032
+ ];
1033
+ "address": "Bast7hBDiqSsxiwEmqazwvPvXC3N4z8UQR5ZmkqXnCiY";
1034
+ },
1035
+ {
1036
+ "name": "oraclePriceFeed";
1037
+ "docs": [
1038
+ "Pyth SOL/USD price feed (required for tiered fees)."
1039
+ ];
1040
+ "optional": true;
1041
+ }
1042
+ ];
1043
+ "args": [
1044
+ {
1045
+ "name": "maxAmountIn";
1046
+ "type": "u64";
1047
+ },
1048
+ {
1049
+ "name": "amountOut";
1050
+ "type": "u64";
1051
+ }
1052
+ ];
1053
+ },
1054
+ {
1055
+ "name": "buyExact";
1056
+ "docs": [
1057
+ "Buys base tokens by providing an exact amount of quote tokens (exact input).",
1058
+ "",
1059
+ "# Arguments",
1060
+ "* `amount_in` - Exact quote tokens to spend.",
1061
+ "* `minimum_amount_out` - Minimum base tokens to receive (slippage protection)."
1062
+ ];
1063
+ "discriminator": [
1064
+ 2,
1065
+ 162,
1066
+ 8,
1067
+ 52,
1068
+ 139,
1069
+ 46,
1070
+ 160,
1071
+ 13
1072
+ ];
1073
+ "accounts": [
1074
+ {
1075
+ "name": "payer";
1076
+ "writable": true;
1077
+ "signer": true;
1078
+ },
1079
+ {
1080
+ "name": "pool";
1081
+ "docs": [
1082
+ "The program account of the pool in which the swap will be performed."
1083
+ ];
1084
+ "writable": true;
1085
+ "pda": {
1086
+ "seeds": [
1087
+ {
1088
+ "kind": "const";
1089
+ "value": [
1090
+ 112,
1091
+ 111,
1092
+ 111,
1093
+ 108
1094
+ ];
1095
+ },
1096
+ {
1097
+ "kind": "account";
1098
+ "path": "baseMint";
1099
+ },
1100
+ {
1101
+ "kind": "account";
1102
+ "path": "quoteMint";
1103
+ }
1104
+ ];
1105
+ };
1106
+ },
1107
+ {
1108
+ "name": "baseTokenAccount";
1109
+ "docs": [
1110
+ "The user token account for input token."
1111
+ ];
1112
+ "writable": true;
1113
+ },
1114
+ {
1115
+ "name": "quoteTokenAccount";
1116
+ "docs": [
1117
+ "The user token account for output token."
1118
+ ];
1119
+ "writable": true;
1120
+ },
1121
+ {
1122
+ "name": "baseVault";
1123
+ "docs": [
1124
+ "The vault token account for input token."
1125
+ ];
1126
+ "writable": true;
1127
+ "pda": {
1128
+ "seeds": [
1129
+ {
1130
+ "kind": "const";
1131
+ "value": [
1132
+ 112,
1133
+ 111,
1134
+ 111,
1135
+ 108,
1136
+ 95,
1137
+ 118,
1138
+ 97,
1139
+ 117,
1140
+ 108,
1141
+ 116
1142
+ ];
1143
+ },
1144
+ {
1145
+ "kind": "account";
1146
+ "path": "pool";
1147
+ },
1148
+ {
1149
+ "kind": "account";
1150
+ "path": "baseMint";
1151
+ }
1152
+ ];
1153
+ };
1154
+ },
1155
+ {
1156
+ "name": "quoteVault";
1157
+ "docs": [
1158
+ "The vault token account for output token."
1159
+ ];
1160
+ "writable": true;
1161
+ "pda": {
1162
+ "seeds": [
1163
+ {
1164
+ "kind": "const";
1165
+ "value": [
1166
+ 112,
1167
+ 111,
1168
+ 111,
1169
+ 108,
1170
+ 95,
1171
+ 118,
1172
+ 97,
1173
+ 117,
1174
+ 108,
1175
+ 116
1176
+ ];
1177
+ },
1178
+ {
1179
+ "kind": "account";
1180
+ "path": "pool";
1181
+ },
1182
+ {
1183
+ "kind": "account";
1184
+ "path": "quoteMint";
1185
+ }
1186
+ ];
1187
+ };
1188
+ },
1189
+ {
1190
+ "name": "observationState";
1191
+ "docs": [
1192
+ "The program account for the most recent oracle observation."
1193
+ ];
1194
+ "writable": true;
1195
+ "pda": {
1196
+ "seeds": [
1197
+ {
1198
+ "kind": "const";
1199
+ "value": [
1200
+ 111,
1201
+ 98,
1202
+ 115,
1203
+ 101,
1204
+ 114,
1205
+ 118,
1206
+ 97,
1207
+ 116,
1208
+ 105,
1209
+ 111,
1210
+ 110
1211
+ ];
1212
+ },
1213
+ {
1214
+ "kind": "account";
1215
+ "path": "pool";
1216
+ }
1217
+ ];
1218
+ };
1219
+ },
1220
+ {
1221
+ "name": "feeRecipient";
1222
+ "docs": [
1223
+ "The protocol fee recipient. Must be one of the allowed recipients in Config.",
1224
+ "",
1225
+ "NOTE: Validation happens in handler by checking against global_config.fee_recipients.",
1226
+ "Fee recipients are admin-controlled pubkeys stored in AmmConfig, so an attacker",
1227
+ "cannot pass an arbitrary account - it must match one of the configured recipients."
1228
+ ];
1229
+ "writable": true;
1230
+ },
1231
+ {
1232
+ "name": "protocolFeeVault";
1233
+ "docs": [
1234
+ "The protocol fee vault."
1235
+ ];
1236
+ "writable": true;
1237
+ "pda": {
1238
+ "seeds": [
1239
+ {
1240
+ "kind": "const";
1241
+ "value": [
1242
+ 103,
1243
+ 108,
1244
+ 111,
1245
+ 98,
1246
+ 97,
1247
+ 108,
1248
+ 95,
1249
+ 102,
1250
+ 101,
1251
+ 101
1252
+ ];
1253
+ },
1254
+ {
1255
+ "kind": "account";
1256
+ "path": "feeRecipient";
1257
+ },
1258
+ {
1259
+ "kind": "account";
1260
+ "path": "quoteMint";
1261
+ }
1262
+ ];
1263
+ };
1264
+ },
1265
+ {
1266
+ "name": "feeVault";
1267
+ "docs": [
1268
+ "Fee vault PDA from liquid-fees (authority for fee_vault_token_account)."
1269
+ ];
1270
+ "pda": {
1271
+ "seeds": [
1272
+ {
1273
+ "kind": "const";
1274
+ "value": [
1275
+ 102,
1276
+ 101,
1277
+ 101,
1278
+ 95,
1279
+ 118,
1280
+ 97,
1281
+ 117,
1282
+ 108,
1283
+ 116
1284
+ ];
1285
+ },
1286
+ {
1287
+ "kind": "account";
1288
+ "path": "feeConfig";
1289
+ }
1290
+ ];
1291
+ "program": {
1292
+ "kind": "const";
1293
+ "value": [
1294
+ 40,
1295
+ 72,
329
1296
  249,
330
- 130,
331
- 171,
332
- 56,
333
- 202,
334
- 127,
1297
+ 238,
1298
+ 156,
1299
+ 9,
1300
+ 94,
1301
+ 212,
1302
+ 53,
1303
+ 113,
1304
+ 167,
1305
+ 85,
1306
+ 204,
1307
+ 160,
1308
+ 219,
1309
+ 216,
1310
+ 233,
1311
+ 70,
1312
+ 184,
1313
+ 221,
335
1314
  190,
336
- 143,
337
- 121,
338
- 30,
339
- 195,
340
- 25,
341
- 86,
342
- 241,
343
- 242
1315
+ 55,
1316
+ 115,
1317
+ 59,
1318
+ 112,
1319
+ 126,
1320
+ 65,
1321
+ 239,
1322
+ 51,
1323
+ 144,
1324
+ 212,
1325
+ 232
344
1326
  ];
345
1327
  };
346
1328
  };
@@ -570,38 +1552,38 @@ export type LiquidSwap = {
570
1552
  "program": {
571
1553
  "kind": "const";
572
1554
  "value": [
573
- 217,
574
- 168,
575
- 237,
576
- 183,
577
- 0,
578
- 44,
579
- 187,
580
- 171,
581
- 53,
582
- 87,
583
- 202,
584
- 162,
585
- 64,
586
- 131,
587
- 189,
588
- 106,
589
- 187,
1555
+ 40,
1556
+ 72,
590
1557
  249,
591
- 130,
592
- 171,
593
- 56,
594
- 202,
595
- 127,
1558
+ 238,
1559
+ 156,
1560
+ 9,
1561
+ 94,
1562
+ 212,
1563
+ 53,
1564
+ 113,
1565
+ 167,
1566
+ 85,
1567
+ 204,
1568
+ 160,
1569
+ 219,
1570
+ 216,
1571
+ 233,
1572
+ 70,
1573
+ 184,
1574
+ 221,
596
1575
  190,
597
- 143,
598
- 121,
599
- 30,
600
- 195,
601
- 25,
602
- 86,
603
- 241,
604
- 242
1576
+ 55,
1577
+ 115,
1578
+ 59,
1579
+ 112,
1580
+ 126,
1581
+ 65,
1582
+ 239,
1583
+ 51,
1584
+ 144,
1585
+ 212,
1586
+ 232
605
1587
  ];
606
1588
  };
607
1589
  };
@@ -645,38 +1627,38 @@ export type LiquidSwap = {
645
1627
  "program": {
646
1628
  "kind": "const";
647
1629
  "value": [
648
- 6,
649
- 161,
650
- 216,
651
- 199,
652
- 206,
653
- 40,
654
- 40,
655
- 163,
656
- 177,
657
- 19,
658
- 1,
659
- 21,
660
- 164,
661
- 67,
662
- 81,
663
- 132,
664
- 164,
665
- 22,
666
- 81,
1630
+ 127,
1631
+ 56,
1632
+ 3,
667
1633
  177,
668
- 201,
669
- 45,
670
- 170,
671
- 138,
672
- 70,
673
- 214,
674
- 218,
675
- 76,
676
- 85,
677
- 222,
678
- 216,
679
- 214
1634
+ 32,
1635
+ 84,
1636
+ 5,
1637
+ 50,
1638
+ 88,
1639
+ 108,
1640
+ 27,
1641
+ 165,
1642
+ 225,
1643
+ 206,
1644
+ 123,
1645
+ 139,
1646
+ 237,
1647
+ 77,
1648
+ 212,
1649
+ 191,
1650
+ 234,
1651
+ 246,
1652
+ 33,
1653
+ 236,
1654
+ 248,
1655
+ 123,
1656
+ 24,
1657
+ 125,
1658
+ 108,
1659
+ 2,
1660
+ 249,
1661
+ 229
680
1662
  ];
681
1663
  };
682
1664
  };
@@ -715,38 +1697,38 @@ export type LiquidSwap = {
715
1697
  "program": {
716
1698
  "kind": "const";
717
1699
  "value": [
718
- 6,
719
- 161,
720
- 216,
721
- 199,
722
- 206,
723
- 40,
724
- 40,
725
- 163,
1700
+ 127,
1701
+ 56,
1702
+ 3,
726
1703
  177,
727
- 19,
728
- 1,
729
- 21,
730
- 164,
731
- 67,
732
- 81,
733
- 132,
734
- 164,
735
- 22,
736
- 81,
737
- 177,
738
- 201,
739
- 45,
740
- 170,
741
- 138,
742
- 70,
743
- 214,
744
- 218,
745
- 76,
746
- 85,
747
- 222,
748
- 216,
749
- 214
1704
+ 32,
1705
+ 84,
1706
+ 5,
1707
+ 50,
1708
+ 88,
1709
+ 108,
1710
+ 27,
1711
+ 165,
1712
+ 225,
1713
+ 206,
1714
+ 123,
1715
+ 139,
1716
+ 237,
1717
+ 77,
1718
+ 212,
1719
+ 191,
1720
+ 234,
1721
+ 246,
1722
+ 33,
1723
+ 236,
1724
+ 248,
1725
+ 123,
1726
+ 24,
1727
+ 125,
1728
+ 108,
1729
+ 2,
1730
+ 249,
1731
+ 229
750
1732
  ];
751
1733
  };
752
1734
  };
@@ -784,38 +1766,38 @@ export type LiquidSwap = {
784
1766
  "program": {
785
1767
  "kind": "const";
786
1768
  "value": [
787
- 6,
788
- 161,
789
- 216,
790
- 199,
791
- 206,
792
- 40,
793
- 40,
794
- 163,
795
- 177,
796
- 19,
797
- 1,
798
- 21,
799
- 164,
800
- 67,
801
- 81,
802
- 132,
803
- 164,
804
- 22,
805
- 81,
1769
+ 127,
1770
+ 56,
1771
+ 3,
806
1772
  177,
807
- 201,
808
- 45,
809
- 170,
810
- 138,
811
- 70,
812
- 214,
813
- 218,
814
- 76,
815
- 85,
816
- 222,
817
- 216,
818
- 214
1773
+ 32,
1774
+ 84,
1775
+ 5,
1776
+ 50,
1777
+ 88,
1778
+ 108,
1779
+ 27,
1780
+ 165,
1781
+ 225,
1782
+ 206,
1783
+ 123,
1784
+ 139,
1785
+ 237,
1786
+ 77,
1787
+ 212,
1788
+ 191,
1789
+ 234,
1790
+ 246,
1791
+ 33,
1792
+ 236,
1793
+ 248,
1794
+ 123,
1795
+ 24,
1796
+ 125,
1797
+ 108,
1798
+ 2,
1799
+ 249,
1800
+ 229
819
1801
  ];
820
1802
  };
821
1803
  };
@@ -863,38 +1845,38 @@ export type LiquidSwap = {
863
1845
  "program": {
864
1846
  "kind": "const";
865
1847
  "value": [
866
- 6,
867
- 161,
868
- 216,
869
- 199,
870
- 206,
871
- 40,
872
- 40,
873
- 163,
1848
+ 127,
1849
+ 56,
1850
+ 3,
874
1851
  177,
875
- 19,
876
- 1,
877
- 21,
878
- 164,
879
- 67,
880
- 81,
881
- 132,
882
- 164,
883
- 22,
884
- 81,
885
- 177,
886
- 201,
887
- 45,
888
- 170,
889
- 138,
890
- 70,
891
- 214,
892
- 218,
893
- 76,
894
- 85,
895
- 222,
896
- 216,
897
- 214
1852
+ 32,
1853
+ 84,
1854
+ 5,
1855
+ 50,
1856
+ 88,
1857
+ 108,
1858
+ 27,
1859
+ 165,
1860
+ 225,
1861
+ 206,
1862
+ 123,
1863
+ 139,
1864
+ 237,
1865
+ 77,
1866
+ 212,
1867
+ 191,
1868
+ 234,
1869
+ 246,
1870
+ 33,
1871
+ 236,
1872
+ 248,
1873
+ 123,
1874
+ 24,
1875
+ 125,
1876
+ 108,
1877
+ 2,
1878
+ 249,
1879
+ 229
898
1880
  ];
899
1881
  };
900
1882
  };
@@ -904,7 +1886,7 @@ export type LiquidSwap = {
904
1886
  "docs": [
905
1887
  "liquid-state program for unified state management."
906
1888
  ];
907
- "address": "State3HtEfi7cXdsTpAtRoBvrij8zSFCiGTAVWmYH2d";
1889
+ "address": "9ZcKPa3HAEVEKxwFX8fYD56ZJCKPEQgqjgr9rfUvtwKJ";
908
1890
  },
909
1891
  {
910
1892
  "name": "stateEventsCpiAuthority";
@@ -935,38 +1917,38 @@ export type LiquidSwap = {
935
1917
  "program": {
936
1918
  "kind": "const";
937
1919
  "value": [
938
- 6,
939
- 161,
940
- 216,
941
- 199,
942
- 206,
943
- 40,
944
- 40,
945
- 163,
946
- 177,
947
- 19,
948
- 1,
949
- 21,
950
- 164,
951
- 67,
952
- 81,
953
- 132,
954
- 164,
955
- 22,
956
- 81,
1920
+ 127,
1921
+ 56,
1922
+ 3,
957
1923
  177,
958
- 201,
959
- 45,
960
- 170,
961
- 138,
962
- 70,
963
- 214,
964
- 218,
965
- 76,
966
- 85,
967
- 222,
968
- 216,
969
- 214
1924
+ 32,
1925
+ 84,
1926
+ 5,
1927
+ 50,
1928
+ 88,
1929
+ 108,
1930
+ 27,
1931
+ 165,
1932
+ 225,
1933
+ 206,
1934
+ 123,
1935
+ 139,
1936
+ 237,
1937
+ 77,
1938
+ 212,
1939
+ 191,
1940
+ 234,
1941
+ 246,
1942
+ 33,
1943
+ 236,
1944
+ 248,
1945
+ 123,
1946
+ 24,
1947
+ 125,
1948
+ 108,
1949
+ 2,
1950
+ 249,
1951
+ 229
970
1952
  ];
971
1953
  };
972
1954
  };
@@ -1030,7 +2012,7 @@ export type LiquidSwap = {
1030
2012
  "docs": [
1031
2013
  "Liquid events program for CPI event emission."
1032
2014
  ];
1033
- "address": "EventsQeXA43nLKR69DhHwNsJ6aM512AweMCgG3wG8zG";
2015
+ "address": "Bast7hBDiqSsxiwEmqazwvPvXC3N4z8UQR5ZmkqXnCiY";
1034
2016
  },
1035
2017
  {
1036
2018
  "name": "oraclePriceFeed";
@@ -1042,11 +2024,11 @@ export type LiquidSwap = {
1042
2024
  ];
1043
2025
  "args": [
1044
2026
  {
1045
- "name": "maxAmountIn";
2027
+ "name": "amountIn";
1046
2028
  "type": "u64";
1047
2029
  },
1048
2030
  {
1049
- "name": "amountOut";
2031
+ "name": "minimumAmountOut";
1050
2032
  "type": "u64";
1051
2033
  }
1052
2034
  ];
@@ -1484,38 +2466,38 @@ export type LiquidSwap = {
1484
2466
  "program": {
1485
2467
  "kind": "const";
1486
2468
  "value": [
1487
- 6,
1488
- 161,
1489
- 216,
1490
- 199,
1491
- 206,
1492
- 40,
1493
- 40,
1494
- 163,
1495
- 177,
1496
- 19,
1497
- 1,
1498
- 21,
1499
- 164,
1500
- 67,
1501
- 81,
1502
- 132,
1503
- 164,
1504
- 22,
1505
- 81,
2469
+ 127,
2470
+ 56,
2471
+ 3,
1506
2472
  177,
1507
- 201,
1508
- 45,
1509
- 170,
1510
- 138,
1511
- 70,
1512
- 214,
1513
- 218,
1514
- 76,
1515
- 85,
1516
- 222,
1517
- 216,
1518
- 214
2473
+ 32,
2474
+ 84,
2475
+ 5,
2476
+ 50,
2477
+ 88,
2478
+ 108,
2479
+ 27,
2480
+ 165,
2481
+ 225,
2482
+ 206,
2483
+ 123,
2484
+ 139,
2485
+ 237,
2486
+ 77,
2487
+ 212,
2488
+ 191,
2489
+ 234,
2490
+ 246,
2491
+ 33,
2492
+ 236,
2493
+ 248,
2494
+ 123,
2495
+ 24,
2496
+ 125,
2497
+ 108,
2498
+ 2,
2499
+ 249,
2500
+ 229
1519
2501
  ];
1520
2502
  };
1521
2503
  };
@@ -1551,38 +2533,38 @@ export type LiquidSwap = {
1551
2533
  "program": {
1552
2534
  "kind": "const";
1553
2535
  "value": [
1554
- 217,
1555
- 168,
1556
- 237,
1557
- 183,
1558
- 0,
1559
- 44,
1560
- 187,
1561
- 171,
1562
- 53,
1563
- 87,
1564
- 202,
1565
- 162,
1566
- 64,
1567
- 131,
1568
- 189,
1569
- 106,
1570
- 187,
2536
+ 40,
2537
+ 72,
1571
2538
  249,
1572
- 130,
1573
- 171,
1574
- 56,
1575
- 202,
1576
- 127,
2539
+ 238,
2540
+ 156,
2541
+ 9,
2542
+ 94,
2543
+ 212,
2544
+ 53,
2545
+ 113,
2546
+ 167,
2547
+ 85,
2548
+ 204,
2549
+ 160,
2550
+ 219,
2551
+ 216,
2552
+ 233,
2553
+ 70,
2554
+ 184,
2555
+ 221,
1577
2556
  190,
1578
- 143,
1579
- 121,
1580
- 30,
1581
- 195,
1582
- 25,
1583
- 86,
1584
- 241,
1585
- 242
2557
+ 55,
2558
+ 115,
2559
+ 59,
2560
+ 112,
2561
+ 126,
2562
+ 65,
2563
+ 239,
2564
+ 51,
2565
+ 144,
2566
+ 212,
2567
+ 232
1586
2568
  ];
1587
2569
  };
1588
2570
  };
@@ -1617,38 +2599,38 @@ export type LiquidSwap = {
1617
2599
  "program": {
1618
2600
  "kind": "const";
1619
2601
  "value": [
1620
- 217,
1621
- 168,
1622
- 237,
1623
- 183,
1624
- 0,
1625
- 44,
1626
- 187,
1627
- 171,
1628
- 53,
1629
- 87,
1630
- 202,
1631
- 162,
1632
- 64,
1633
- 131,
1634
- 189,
1635
- 106,
1636
- 187,
2602
+ 40,
2603
+ 72,
1637
2604
  249,
1638
- 130,
1639
- 171,
1640
- 56,
1641
- 202,
1642
- 127,
2605
+ 238,
2606
+ 156,
2607
+ 9,
2608
+ 94,
2609
+ 212,
2610
+ 53,
2611
+ 113,
2612
+ 167,
2613
+ 85,
2614
+ 204,
2615
+ 160,
2616
+ 219,
2617
+ 216,
2618
+ 233,
2619
+ 70,
2620
+ 184,
2621
+ 221,
1643
2622
  190,
1644
- 143,
1645
- 121,
1646
- 30,
1647
- 195,
1648
- 25,
1649
- 86,
1650
- 241,
1651
- 242
2623
+ 55,
2624
+ 115,
2625
+ 59,
2626
+ 112,
2627
+ 126,
2628
+ 65,
2629
+ 239,
2630
+ 51,
2631
+ 144,
2632
+ 212,
2633
+ 232
1652
2634
  ];
1653
2635
  };
1654
2636
  };
@@ -1768,21 +2750,21 @@ export type LiquidSwap = {
1768
2750
  "docs": [
1769
2751
  "Liquid state program for token volume CPI."
1770
2752
  ];
1771
- "address": "State3HtEfi7cXdsTpAtRoBvrij8zSFCiGTAVWmYH2d";
2753
+ "address": "9ZcKPa3HAEVEKxwFX8fYD56ZJCKPEQgqjgr9rfUvtwKJ";
1772
2754
  },
1773
2755
  {
1774
2756
  "name": "liquidFeesProgram";
1775
2757
  "docs": [
1776
2758
  "Liquid fees program for fee configuration CPI."
1777
2759
  ];
1778
- "address": "FeesZQLb1xTeZbvaFRGnqzrZYzzmQtwhTYKQphbNGQru";
2760
+ "address": "3iFrDQxt6ZQT5eTyoHSpdq9hpyj9QmXDjTNEopGYpvTh";
1779
2761
  },
1780
2762
  {
1781
2763
  "name": "liquidEventsProgram";
1782
2764
  "docs": [
1783
2765
  "Liquid events program for CPI event emission."
1784
2766
  ];
1785
- "address": "EventsQeXA43nLKR69DhHwNsJ6aM512AweMCgG3wG8zG";
2767
+ "address": "Bast7hBDiqSsxiwEmqazwvPvXC3N4z8UQR5ZmkqXnCiY";
1786
2768
  },
1787
2769
  {
1788
2770
  "name": "tokenProgram";
@@ -2024,7 +3006,7 @@ export type LiquidSwap = {
2024
3006
  "docs": [
2025
3007
  "Liquid events program for CPI event emission."
2026
3008
  ];
2027
- "address": "EventsQeXA43nLKR69DhHwNsJ6aM512AweMCgG3wG8zG";
3009
+ "address": "Bast7hBDiqSsxiwEmqazwvPvXC3N4z8UQR5ZmkqXnCiY";
2028
3010
  },
2029
3011
  {
2030
3012
  "name": "tokenProgram";
@@ -2359,38 +3341,38 @@ export type LiquidSwap = {
2359
3341
  "program": {
2360
3342
  "kind": "const";
2361
3343
  "value": [
2362
- 217,
2363
- 168,
2364
- 237,
2365
- 183,
2366
- 0,
2367
- 44,
2368
- 187,
2369
- 171,
2370
- 53,
2371
- 87,
2372
- 202,
2373
- 162,
2374
- 64,
2375
- 131,
2376
- 189,
2377
- 106,
2378
- 187,
3344
+ 40,
3345
+ 72,
2379
3346
  249,
2380
- 130,
2381
- 171,
2382
- 56,
2383
- 202,
2384
- 127,
3347
+ 238,
3348
+ 156,
3349
+ 9,
3350
+ 94,
3351
+ 212,
3352
+ 53,
3353
+ 113,
3354
+ 167,
3355
+ 85,
3356
+ 204,
3357
+ 160,
3358
+ 219,
3359
+ 216,
3360
+ 233,
3361
+ 70,
3362
+ 184,
3363
+ 221,
2385
3364
  190,
2386
- 143,
2387
- 121,
2388
- 30,
2389
- 195,
2390
- 25,
2391
- 86,
2392
- 241,
2393
- 242
3365
+ 55,
3366
+ 115,
3367
+ 59,
3368
+ 112,
3369
+ 126,
3370
+ 65,
3371
+ 239,
3372
+ 51,
3373
+ 144,
3374
+ 212,
3375
+ 232
2394
3376
  ];
2395
3377
  };
2396
3378
  };
@@ -2428,7 +3410,7 @@ export type LiquidSwap = {
2428
3410
  "docs": [
2429
3411
  "Liquid events program for CPI event emission."
2430
3412
  ];
2431
- "address": "EventsQeXA43nLKR69DhHwNsJ6aM512AweMCgG3wG8zG";
3413
+ "address": "Bast7hBDiqSsxiwEmqazwvPvXC3N4z8UQR5ZmkqXnCiY";
2432
3414
  },
2433
3415
  {
2434
3416
  "name": "baseTokenProgram";
@@ -3180,7 +4162,7 @@ export type LiquidSwap = {
3180
4162
  "docs": [
3181
4163
  "Liquid events program for CPI event emission."
3182
4164
  ];
3183
- "address": "EventsQeXA43nLKR69DhHwNsJ6aM512AweMCgG3wG8zG";
4165
+ "address": "Bast7hBDiqSsxiwEmqazwvPvXC3N4z8UQR5ZmkqXnCiY";
3184
4166
  }
3185
4167
  ];
3186
4168
  "args": [];
@@ -3207,9 +4189,6 @@ export type LiquidSwap = {
3207
4189
  "accounts": [
3208
4190
  {
3209
4191
  "name": "payer";
3210
- "docs": [
3211
- "The user performing the swap."
3212
- ];
3213
4192
  "writable": true;
3214
4193
  "signer": true;
3215
4194
  },
@@ -3360,7 +4339,7 @@ export type LiquidSwap = {
3360
4339
  "The protocol fee recipient. Must be one of the allowed recipients in Config.",
3361
4340
  "",
3362
4341
  "NOTE: Validation happens in handler by checking against global_config.fee_recipients.",
3363
- "Fee recipients are admin-controlled public keys stored in AmmConfig, so an attacker",
4342
+ "Fee recipients are admin-controlled pubkeys stored in AmmConfig, so an attacker",
3364
4343
  "cannot pass an arbitrary account - it must match one of the configured recipients."
3365
4344
  ];
3366
4345
  "writable": true;
@@ -3428,38 +4407,38 @@ export type LiquidSwap = {
3428
4407
  "program": {
3429
4408
  "kind": "const";
3430
4409
  "value": [
3431
- 217,
3432
- 168,
3433
- 237,
3434
- 183,
3435
- 0,
3436
- 44,
3437
- 187,
3438
- 171,
3439
- 53,
3440
- 87,
3441
- 202,
3442
- 162,
3443
- 64,
3444
- 131,
3445
- 189,
3446
- 106,
3447
- 187,
4410
+ 40,
4411
+ 72,
3448
4412
  249,
3449
- 130,
3450
- 171,
3451
- 56,
3452
- 202,
3453
- 127,
4413
+ 238,
4414
+ 156,
4415
+ 9,
4416
+ 94,
4417
+ 212,
4418
+ 53,
4419
+ 113,
4420
+ 167,
4421
+ 85,
4422
+ 204,
4423
+ 160,
4424
+ 219,
4425
+ 216,
4426
+ 233,
4427
+ 70,
4428
+ 184,
4429
+ 221,
3454
4430
  190,
3455
- 143,
3456
- 121,
3457
- 30,
3458
- 195,
3459
- 25,
3460
- 86,
3461
- 241,
3462
- 242
4431
+ 55,
4432
+ 115,
4433
+ 59,
4434
+ 112,
4435
+ 126,
4436
+ 65,
4437
+ 239,
4438
+ 51,
4439
+ 144,
4440
+ 212,
4441
+ 232
3463
4442
  ];
3464
4443
  };
3465
4444
  };
@@ -3689,38 +4668,38 @@ export type LiquidSwap = {
3689
4668
  "program": {
3690
4669
  "kind": "const";
3691
4670
  "value": [
3692
- 217,
3693
- 168,
3694
- 237,
3695
- 183,
3696
- 0,
3697
- 44,
3698
- 187,
3699
- 171,
3700
- 53,
3701
- 87,
3702
- 202,
3703
- 162,
3704
- 64,
3705
- 131,
3706
- 189,
3707
- 106,
3708
- 187,
4671
+ 40,
4672
+ 72,
3709
4673
  249,
3710
- 130,
3711
- 171,
3712
- 56,
3713
- 202,
3714
- 127,
4674
+ 238,
4675
+ 156,
4676
+ 9,
4677
+ 94,
4678
+ 212,
4679
+ 53,
4680
+ 113,
4681
+ 167,
4682
+ 85,
4683
+ 204,
4684
+ 160,
4685
+ 219,
4686
+ 216,
4687
+ 233,
4688
+ 70,
4689
+ 184,
4690
+ 221,
3715
4691
  190,
3716
- 143,
3717
- 121,
3718
- 30,
3719
- 195,
3720
- 25,
3721
- 86,
3722
- 241,
3723
- 242
4692
+ 55,
4693
+ 115,
4694
+ 59,
4695
+ 112,
4696
+ 126,
4697
+ 65,
4698
+ 239,
4699
+ 51,
4700
+ 144,
4701
+ 212,
4702
+ 232
3724
4703
  ];
3725
4704
  };
3726
4705
  };
@@ -3764,38 +4743,38 @@ export type LiquidSwap = {
3764
4743
  "program": {
3765
4744
  "kind": "const";
3766
4745
  "value": [
3767
- 6,
3768
- 161,
3769
- 216,
3770
- 199,
3771
- 206,
3772
- 40,
3773
- 40,
3774
- 163,
4746
+ 127,
4747
+ 56,
4748
+ 3,
3775
4749
  177,
3776
- 19,
3777
- 1,
3778
- 21,
3779
- 164,
3780
- 67,
3781
- 81,
3782
- 132,
3783
- 164,
3784
- 22,
3785
- 81,
3786
- 177,
3787
- 201,
3788
- 45,
3789
- 170,
3790
- 138,
3791
- 70,
3792
- 214,
3793
- 218,
3794
- 76,
3795
- 85,
3796
- 222,
3797
- 216,
3798
- 214
4750
+ 32,
4751
+ 84,
4752
+ 5,
4753
+ 50,
4754
+ 88,
4755
+ 108,
4756
+ 27,
4757
+ 165,
4758
+ 225,
4759
+ 206,
4760
+ 123,
4761
+ 139,
4762
+ 237,
4763
+ 77,
4764
+ 212,
4765
+ 191,
4766
+ 234,
4767
+ 246,
4768
+ 33,
4769
+ 236,
4770
+ 248,
4771
+ 123,
4772
+ 24,
4773
+ 125,
4774
+ 108,
4775
+ 2,
4776
+ 249,
4777
+ 229
3799
4778
  ];
3800
4779
  };
3801
4780
  };
@@ -3834,38 +4813,38 @@ export type LiquidSwap = {
3834
4813
  "program": {
3835
4814
  "kind": "const";
3836
4815
  "value": [
3837
- 6,
3838
- 161,
3839
- 216,
3840
- 199,
3841
- 206,
3842
- 40,
3843
- 40,
3844
- 163,
3845
- 177,
3846
- 19,
3847
- 1,
3848
- 21,
3849
- 164,
3850
- 67,
3851
- 81,
3852
- 132,
3853
- 164,
3854
- 22,
3855
- 81,
4816
+ 127,
4817
+ 56,
4818
+ 3,
3856
4819
  177,
3857
- 201,
3858
- 45,
3859
- 170,
3860
- 138,
3861
- 70,
3862
- 214,
3863
- 218,
3864
- 76,
3865
- 85,
3866
- 222,
3867
- 216,
3868
- 214
4820
+ 32,
4821
+ 84,
4822
+ 5,
4823
+ 50,
4824
+ 88,
4825
+ 108,
4826
+ 27,
4827
+ 165,
4828
+ 225,
4829
+ 206,
4830
+ 123,
4831
+ 139,
4832
+ 237,
4833
+ 77,
4834
+ 212,
4835
+ 191,
4836
+ 234,
4837
+ 246,
4838
+ 33,
4839
+ 236,
4840
+ 248,
4841
+ 123,
4842
+ 24,
4843
+ 125,
4844
+ 108,
4845
+ 2,
4846
+ 249,
4847
+ 229
3869
4848
  ];
3870
4849
  };
3871
4850
  };
@@ -3903,38 +4882,38 @@ export type LiquidSwap = {
3903
4882
  "program": {
3904
4883
  "kind": "const";
3905
4884
  "value": [
3906
- 6,
3907
- 161,
3908
- 216,
3909
- 199,
3910
- 206,
3911
- 40,
3912
- 40,
3913
- 163,
4885
+ 127,
4886
+ 56,
4887
+ 3,
3914
4888
  177,
3915
- 19,
3916
- 1,
3917
- 21,
3918
- 164,
3919
- 67,
3920
- 81,
3921
- 132,
3922
- 164,
3923
- 22,
3924
- 81,
3925
- 177,
3926
- 201,
3927
- 45,
3928
- 170,
3929
- 138,
3930
- 70,
3931
- 214,
3932
- 218,
3933
- 76,
3934
- 85,
3935
- 222,
3936
- 216,
3937
- 214
4889
+ 32,
4890
+ 84,
4891
+ 5,
4892
+ 50,
4893
+ 88,
4894
+ 108,
4895
+ 27,
4896
+ 165,
4897
+ 225,
4898
+ 206,
4899
+ 123,
4900
+ 139,
4901
+ 237,
4902
+ 77,
4903
+ 212,
4904
+ 191,
4905
+ 234,
4906
+ 246,
4907
+ 33,
4908
+ 236,
4909
+ 248,
4910
+ 123,
4911
+ 24,
4912
+ 125,
4913
+ 108,
4914
+ 2,
4915
+ 249,
4916
+ 229
3938
4917
  ];
3939
4918
  };
3940
4919
  };
@@ -3982,38 +4961,38 @@ export type LiquidSwap = {
3982
4961
  "program": {
3983
4962
  "kind": "const";
3984
4963
  "value": [
3985
- 6,
3986
- 161,
3987
- 216,
3988
- 199,
3989
- 206,
3990
- 40,
3991
- 40,
3992
- 163,
3993
- 177,
3994
- 19,
3995
- 1,
3996
- 21,
3997
- 164,
3998
- 67,
3999
- 81,
4000
- 132,
4001
- 164,
4002
- 22,
4003
- 81,
4964
+ 127,
4965
+ 56,
4966
+ 3,
4004
4967
  177,
4005
- 201,
4006
- 45,
4007
- 170,
4008
- 138,
4009
- 70,
4010
- 214,
4011
- 218,
4012
- 76,
4013
- 85,
4014
- 222,
4015
- 216,
4016
- 214
4968
+ 32,
4969
+ 84,
4970
+ 5,
4971
+ 50,
4972
+ 88,
4973
+ 108,
4974
+ 27,
4975
+ 165,
4976
+ 225,
4977
+ 206,
4978
+ 123,
4979
+ 139,
4980
+ 237,
4981
+ 77,
4982
+ 212,
4983
+ 191,
4984
+ 234,
4985
+ 246,
4986
+ 33,
4987
+ 236,
4988
+ 248,
4989
+ 123,
4990
+ 24,
4991
+ 125,
4992
+ 108,
4993
+ 2,
4994
+ 249,
4995
+ 229
4017
4996
  ];
4018
4997
  };
4019
4998
  };
@@ -4023,7 +5002,7 @@ export type LiquidSwap = {
4023
5002
  "docs": [
4024
5003
  "liquid-state program for unified state management."
4025
5004
  ];
4026
- "address": "State3HtEfi7cXdsTpAtRoBvrij8zSFCiGTAVWmYH2d";
5005
+ "address": "9ZcKPa3HAEVEKxwFX8fYD56ZJCKPEQgqjgr9rfUvtwKJ";
4027
5006
  },
4028
5007
  {
4029
5008
  "name": "stateEventsCpiAuthority";
@@ -4054,38 +5033,38 @@ export type LiquidSwap = {
4054
5033
  "program": {
4055
5034
  "kind": "const";
4056
5035
  "value": [
4057
- 6,
4058
- 161,
4059
- 216,
4060
- 199,
4061
- 206,
4062
- 40,
4063
- 40,
4064
- 163,
5036
+ 127,
5037
+ 56,
5038
+ 3,
4065
5039
  177,
4066
- 19,
4067
- 1,
4068
- 21,
4069
- 164,
4070
- 67,
4071
- 81,
4072
- 132,
4073
- 164,
4074
- 22,
4075
- 81,
4076
- 177,
4077
- 201,
4078
- 45,
4079
- 170,
4080
- 138,
4081
- 70,
4082
- 214,
4083
- 218,
4084
- 76,
4085
- 85,
4086
- 222,
4087
- 216,
4088
- 214
5040
+ 32,
5041
+ 84,
5042
+ 5,
5043
+ 50,
5044
+ 88,
5045
+ 108,
5046
+ 27,
5047
+ 165,
5048
+ 225,
5049
+ 206,
5050
+ 123,
5051
+ 139,
5052
+ 237,
5053
+ 77,
5054
+ 212,
5055
+ 191,
5056
+ 234,
5057
+ 246,
5058
+ 33,
5059
+ 236,
5060
+ 248,
5061
+ 123,
5062
+ 24,
5063
+ 125,
5064
+ 108,
5065
+ 2,
5066
+ 249,
5067
+ 229
4089
5068
  ];
4090
5069
  };
4091
5070
  };
@@ -4106,16 +5085,10 @@ export type LiquidSwap = {
4106
5085
  },
4107
5086
  {
4108
5087
  "name": "systemProgram";
4109
- "docs": [
4110
- "System program needed for init_if_needed"
4111
- ];
4112
5088
  "address": "11111111111111111111111111111111";
4113
5089
  },
4114
5090
  {
4115
5091
  "name": "tokenProgram";
4116
- "docs": [
4117
- "Token program for vault creation"
4118
- ];
4119
5092
  "address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA";
4120
5093
  },
4121
5094
  {
@@ -4155,7 +5128,7 @@ export type LiquidSwap = {
4155
5128
  "docs": [
4156
5129
  "Liquid events program for CPI event emission."
4157
5130
  ];
4158
- "address": "EventsQeXA43nLKR69DhHwNsJ6aM512AweMCgG3wG8zG";
5131
+ "address": "Bast7hBDiqSsxiwEmqazwvPvXC3N4z8UQR5ZmkqXnCiY";
4159
5132
  },
4160
5133
  {
4161
5134
  "name": "oraclePriceFeed";
@@ -4198,9 +5171,6 @@ export type LiquidSwap = {
4198
5171
  "accounts": [
4199
5172
  {
4200
5173
  "name": "payer";
4201
- "docs": [
4202
- "The user performing the swap."
4203
- ];
4204
5174
  "writable": true;
4205
5175
  "signer": true;
4206
5176
  },
@@ -4351,7 +5321,7 @@ export type LiquidSwap = {
4351
5321
  "The protocol fee recipient. Must be one of the allowed recipients in Config.",
4352
5322
  "",
4353
5323
  "NOTE: Validation happens in handler by checking against global_config.fee_recipients.",
4354
- "Fee recipients are admin-controlled public keys stored in AmmConfig, so an attacker",
5324
+ "Fee recipients are admin-controlled pubkeys stored in AmmConfig, so an attacker",
4355
5325
  "cannot pass an arbitrary account - it must match one of the configured recipients."
4356
5326
  ];
4357
5327
  "writable": true;
@@ -4419,38 +5389,38 @@ export type LiquidSwap = {
4419
5389
  "program": {
4420
5390
  "kind": "const";
4421
5391
  "value": [
4422
- 217,
4423
- 168,
4424
- 237,
4425
- 183,
4426
- 0,
4427
- 44,
4428
- 187,
4429
- 171,
4430
- 53,
4431
- 87,
4432
- 202,
4433
- 162,
4434
- 64,
4435
- 131,
4436
- 189,
4437
- 106,
4438
- 187,
5392
+ 40,
5393
+ 72,
4439
5394
  249,
4440
- 130,
4441
- 171,
4442
- 56,
4443
- 202,
4444
- 127,
5395
+ 238,
5396
+ 156,
5397
+ 9,
5398
+ 94,
5399
+ 212,
5400
+ 53,
5401
+ 113,
5402
+ 167,
5403
+ 85,
5404
+ 204,
5405
+ 160,
5406
+ 219,
5407
+ 216,
5408
+ 233,
5409
+ 70,
5410
+ 184,
5411
+ 221,
4445
5412
  190,
4446
- 143,
4447
- 121,
4448
- 30,
4449
- 195,
4450
- 25,
4451
- 86,
4452
- 241,
4453
- 242
5413
+ 55,
5414
+ 115,
5415
+ 59,
5416
+ 112,
5417
+ 126,
5418
+ 65,
5419
+ 239,
5420
+ 51,
5421
+ 144,
5422
+ 212,
5423
+ 232
4454
5424
  ];
4455
5425
  };
4456
5426
  };
@@ -4680,38 +5650,38 @@ export type LiquidSwap = {
4680
5650
  "program": {
4681
5651
  "kind": "const";
4682
5652
  "value": [
4683
- 217,
4684
- 168,
4685
- 237,
4686
- 183,
4687
- 0,
4688
- 44,
4689
- 187,
4690
- 171,
4691
- 53,
4692
- 87,
4693
- 202,
4694
- 162,
4695
- 64,
4696
- 131,
4697
- 189,
4698
- 106,
4699
- 187,
5653
+ 40,
5654
+ 72,
4700
5655
  249,
4701
- 130,
4702
- 171,
4703
- 56,
4704
- 202,
4705
- 127,
5656
+ 238,
5657
+ 156,
5658
+ 9,
5659
+ 94,
5660
+ 212,
5661
+ 53,
5662
+ 113,
5663
+ 167,
5664
+ 85,
5665
+ 204,
5666
+ 160,
5667
+ 219,
5668
+ 216,
5669
+ 233,
5670
+ 70,
5671
+ 184,
5672
+ 221,
4706
5673
  190,
4707
- 143,
4708
- 121,
4709
- 30,
4710
- 195,
4711
- 25,
4712
- 86,
4713
- 241,
4714
- 242
5674
+ 55,
5675
+ 115,
5676
+ 59,
5677
+ 112,
5678
+ 126,
5679
+ 65,
5680
+ 239,
5681
+ 51,
5682
+ 144,
5683
+ 212,
5684
+ 232
4715
5685
  ];
4716
5686
  };
4717
5687
  };
@@ -4755,38 +5725,38 @@ export type LiquidSwap = {
4755
5725
  "program": {
4756
5726
  "kind": "const";
4757
5727
  "value": [
4758
- 6,
4759
- 161,
4760
- 216,
4761
- 199,
4762
- 206,
4763
- 40,
4764
- 40,
4765
- 163,
5728
+ 127,
5729
+ 56,
5730
+ 3,
4766
5731
  177,
4767
- 19,
4768
- 1,
4769
- 21,
4770
- 164,
4771
- 67,
4772
- 81,
4773
- 132,
4774
- 164,
4775
- 22,
4776
- 81,
4777
- 177,
4778
- 201,
4779
- 45,
4780
- 170,
4781
- 138,
4782
- 70,
4783
- 214,
4784
- 218,
4785
- 76,
4786
- 85,
4787
- 222,
4788
- 216,
4789
- 214
5732
+ 32,
5733
+ 84,
5734
+ 5,
5735
+ 50,
5736
+ 88,
5737
+ 108,
5738
+ 27,
5739
+ 165,
5740
+ 225,
5741
+ 206,
5742
+ 123,
5743
+ 139,
5744
+ 237,
5745
+ 77,
5746
+ 212,
5747
+ 191,
5748
+ 234,
5749
+ 246,
5750
+ 33,
5751
+ 236,
5752
+ 248,
5753
+ 123,
5754
+ 24,
5755
+ 125,
5756
+ 108,
5757
+ 2,
5758
+ 249,
5759
+ 229
4790
5760
  ];
4791
5761
  };
4792
5762
  };
@@ -4825,38 +5795,38 @@ export type LiquidSwap = {
4825
5795
  "program": {
4826
5796
  "kind": "const";
4827
5797
  "value": [
4828
- 6,
4829
- 161,
4830
- 216,
4831
- 199,
4832
- 206,
4833
- 40,
4834
- 40,
4835
- 163,
4836
- 177,
4837
- 19,
4838
- 1,
4839
- 21,
4840
- 164,
4841
- 67,
4842
- 81,
4843
- 132,
4844
- 164,
4845
- 22,
4846
- 81,
5798
+ 127,
5799
+ 56,
5800
+ 3,
4847
5801
  177,
4848
- 201,
4849
- 45,
4850
- 170,
4851
- 138,
4852
- 70,
4853
- 214,
4854
- 218,
4855
- 76,
4856
- 85,
4857
- 222,
4858
- 216,
4859
- 214
5802
+ 32,
5803
+ 84,
5804
+ 5,
5805
+ 50,
5806
+ 88,
5807
+ 108,
5808
+ 27,
5809
+ 165,
5810
+ 225,
5811
+ 206,
5812
+ 123,
5813
+ 139,
5814
+ 237,
5815
+ 77,
5816
+ 212,
5817
+ 191,
5818
+ 234,
5819
+ 246,
5820
+ 33,
5821
+ 236,
5822
+ 248,
5823
+ 123,
5824
+ 24,
5825
+ 125,
5826
+ 108,
5827
+ 2,
5828
+ 249,
5829
+ 229
4860
5830
  ];
4861
5831
  };
4862
5832
  };
@@ -4894,38 +5864,38 @@ export type LiquidSwap = {
4894
5864
  "program": {
4895
5865
  "kind": "const";
4896
5866
  "value": [
4897
- 6,
4898
- 161,
4899
- 216,
4900
- 199,
4901
- 206,
4902
- 40,
4903
- 40,
4904
- 163,
5867
+ 127,
5868
+ 56,
5869
+ 3,
4905
5870
  177,
4906
- 19,
4907
- 1,
4908
- 21,
4909
- 164,
4910
- 67,
4911
- 81,
4912
- 132,
4913
- 164,
4914
- 22,
4915
- 81,
4916
- 177,
4917
- 201,
4918
- 45,
4919
- 170,
4920
- 138,
4921
- 70,
4922
- 214,
4923
- 218,
4924
- 76,
4925
- 85,
4926
- 222,
4927
- 216,
4928
- 214
5871
+ 32,
5872
+ 84,
5873
+ 5,
5874
+ 50,
5875
+ 88,
5876
+ 108,
5877
+ 27,
5878
+ 165,
5879
+ 225,
5880
+ 206,
5881
+ 123,
5882
+ 139,
5883
+ 237,
5884
+ 77,
5885
+ 212,
5886
+ 191,
5887
+ 234,
5888
+ 246,
5889
+ 33,
5890
+ 236,
5891
+ 248,
5892
+ 123,
5893
+ 24,
5894
+ 125,
5895
+ 108,
5896
+ 2,
5897
+ 249,
5898
+ 229
4929
5899
  ];
4930
5900
  };
4931
5901
  };
@@ -4973,38 +5943,38 @@ export type LiquidSwap = {
4973
5943
  "program": {
4974
5944
  "kind": "const";
4975
5945
  "value": [
4976
- 6,
4977
- 161,
4978
- 216,
4979
- 199,
4980
- 206,
4981
- 40,
4982
- 40,
4983
- 163,
4984
- 177,
4985
- 19,
4986
- 1,
4987
- 21,
4988
- 164,
4989
- 67,
4990
- 81,
4991
- 132,
4992
- 164,
4993
- 22,
4994
- 81,
5946
+ 127,
5947
+ 56,
5948
+ 3,
4995
5949
  177,
4996
- 201,
4997
- 45,
4998
- 170,
4999
- 138,
5000
- 70,
5001
- 214,
5002
- 218,
5003
- 76,
5004
- 85,
5005
- 222,
5006
- 216,
5007
- 214
5950
+ 32,
5951
+ 84,
5952
+ 5,
5953
+ 50,
5954
+ 88,
5955
+ 108,
5956
+ 27,
5957
+ 165,
5958
+ 225,
5959
+ 206,
5960
+ 123,
5961
+ 139,
5962
+ 237,
5963
+ 77,
5964
+ 212,
5965
+ 191,
5966
+ 234,
5967
+ 246,
5968
+ 33,
5969
+ 236,
5970
+ 248,
5971
+ 123,
5972
+ 24,
5973
+ 125,
5974
+ 108,
5975
+ 2,
5976
+ 249,
5977
+ 229
5008
5978
  ];
5009
5979
  };
5010
5980
  };
@@ -5014,7 +5984,7 @@ export type LiquidSwap = {
5014
5984
  "docs": [
5015
5985
  "liquid-state program for unified state management."
5016
5986
  ];
5017
- "address": "State3HtEfi7cXdsTpAtRoBvrij8zSFCiGTAVWmYH2d";
5987
+ "address": "9ZcKPa3HAEVEKxwFX8fYD56ZJCKPEQgqjgr9rfUvtwKJ";
5018
5988
  },
5019
5989
  {
5020
5990
  "name": "stateEventsCpiAuthority";
@@ -5045,38 +6015,38 @@ export type LiquidSwap = {
5045
6015
  "program": {
5046
6016
  "kind": "const";
5047
6017
  "value": [
5048
- 6,
5049
- 161,
5050
- 216,
5051
- 199,
5052
- 206,
5053
- 40,
5054
- 40,
5055
- 163,
6018
+ 127,
6019
+ 56,
6020
+ 3,
5056
6021
  177,
5057
- 19,
5058
- 1,
5059
- 21,
5060
- 164,
5061
- 67,
5062
- 81,
5063
- 132,
5064
- 164,
5065
- 22,
5066
- 81,
5067
- 177,
5068
- 201,
5069
- 45,
5070
- 170,
5071
- 138,
5072
- 70,
5073
- 214,
5074
- 218,
5075
- 76,
5076
- 85,
5077
- 222,
5078
- 216,
5079
- 214
6022
+ 32,
6023
+ 84,
6024
+ 5,
6025
+ 50,
6026
+ 88,
6027
+ 108,
6028
+ 27,
6029
+ 165,
6030
+ 225,
6031
+ 206,
6032
+ 123,
6033
+ 139,
6034
+ 237,
6035
+ 77,
6036
+ 212,
6037
+ 191,
6038
+ 234,
6039
+ 246,
6040
+ 33,
6041
+ 236,
6042
+ 248,
6043
+ 123,
6044
+ 24,
6045
+ 125,
6046
+ 108,
6047
+ 2,
6048
+ 249,
6049
+ 229
5080
6050
  ];
5081
6051
  };
5082
6052
  };
@@ -5097,16 +6067,10 @@ export type LiquidSwap = {
5097
6067
  },
5098
6068
  {
5099
6069
  "name": "systemProgram";
5100
- "docs": [
5101
- "System program needed for init_if_needed"
5102
- ];
5103
6070
  "address": "11111111111111111111111111111111";
5104
6071
  },
5105
6072
  {
5106
6073
  "name": "tokenProgram";
5107
- "docs": [
5108
- "Token program for vault creation"
5109
- ];
5110
6074
  "address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA";
5111
6075
  },
5112
6076
  {
@@ -5146,7 +6110,7 @@ export type LiquidSwap = {
5146
6110
  "docs": [
5147
6111
  "Liquid events program for CPI event emission."
5148
6112
  ];
5149
- "address": "EventsQeXA43nLKR69DhHwNsJ6aM512AweMCgG3wG8zG";
6113
+ "address": "Bast7hBDiqSsxiwEmqazwvPvXC3N4z8UQR5ZmkqXnCiY";
5150
6114
  },
5151
6115
  {
5152
6116
  "name": "oraclePriceFeed";
@@ -5413,7 +6377,7 @@ export type LiquidSwap = {
5413
6377
  "docs": [
5414
6378
  "Liquid events program for CPI event emission."
5415
6379
  ];
5416
- "address": "EventsQeXA43nLKR69DhHwNsJ6aM512AweMCgG3wG8zG";
6380
+ "address": "Bast7hBDiqSsxiwEmqazwvPvXC3N4z8UQR5ZmkqXnCiY";
5417
6381
  }
5418
6382
  ];
5419
6383
  "args": [];
@@ -5698,7 +6662,7 @@ export type LiquidSwap = {
5698
6662
  "docs": [
5699
6663
  "Liquid events program for CPI event emission."
5700
6664
  ];
5701
- "address": "EventsQeXA43nLKR69DhHwNsJ6aM512AweMCgG3wG8zG";
6665
+ "address": "Bast7hBDiqSsxiwEmqazwvPvXC3N4z8UQR5ZmkqXnCiY";
5702
6666
  },
5703
6667
  {
5704
6668
  "name": "tokenProgram";