@liquid-af/sdk 0.11.1 → 0.11.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/idl/liquid.d.ts +24 -1
- package/dist/idl/liquid.d.ts.map +1 -1
- package/dist/idl/liquid.json +24 -1
- package/dist/idl/liquid_events.d.ts +6 -0
- package/dist/idl/liquid_events.d.ts.map +1 -1
- package/dist/idl/liquid_events.json +6 -0
- package/dist/idl/liquid_fees.d.ts +85 -2
- package/dist/idl/liquid_fees.d.ts.map +1 -1
- package/dist/idl/liquid_fees.json +85 -2
- package/dist/idl/liquid_state.d.ts +115 -16
- package/dist/idl/liquid_state.d.ts.map +1 -1
- package/dist/idl/liquid_state.json +115 -16
- package/dist/idl/liquid_swap.d.ts +53 -15
- package/dist/idl/liquid_swap.d.ts.map +1 -1
- package/dist/idl/liquid_swap.json +53 -15
- package/dist/lut.d.ts +0 -13
- package/dist/lut.d.ts.map +1 -1
- package/dist/lut.js +1 -24
- package/dist/lut.js.map +1 -1
- package/package.json +1 -1
- package/src/idl/liquid.json +24 -1
- package/src/idl/liquid.ts +24 -1
- package/src/idl/liquid_events.json +6 -0
- package/src/idl/liquid_events.ts +6 -0
- package/src/idl/liquid_fees.json +85 -2
- package/src/idl/liquid_fees.ts +85 -2
- package/src/idl/liquid_state.json +115 -16
- package/src/idl/liquid_state.ts +115 -16
- package/src/idl/liquid_swap.json +53 -15
- package/src/idl/liquid_swap.ts +53 -15
- package/src/lut.ts +1 -33
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
{
|
|
11
11
|
"name": "accept_admin",
|
|
12
12
|
"docs": [
|
|
13
|
-
"Accept a pending admin transfer, completing the two-step handoff"
|
|
13
|
+
"Accept a pending admin transfer, completing the two-step handoff."
|
|
14
14
|
],
|
|
15
15
|
"discriminator": [
|
|
16
16
|
112,
|
|
@@ -245,6 +245,9 @@
|
|
|
245
245
|
},
|
|
246
246
|
{
|
|
247
247
|
"name": "system_program",
|
|
248
|
+
"docs": [
|
|
249
|
+
"System program."
|
|
250
|
+
],
|
|
248
251
|
"address": "11111111111111111111111111111111"
|
|
249
252
|
}
|
|
250
253
|
],
|
|
@@ -262,7 +265,7 @@
|
|
|
262
265
|
{
|
|
263
266
|
"name": "cancel_admin_transfer",
|
|
264
267
|
"docs": [
|
|
265
|
-
"Cancel a pending admin transfer (callable by current or pending admin)"
|
|
268
|
+
"Cancel a pending admin transfer (callable by current or pending admin)."
|
|
266
269
|
],
|
|
267
270
|
"discriminator": [
|
|
268
271
|
38,
|
|
@@ -320,7 +323,7 @@
|
|
|
320
323
|
{
|
|
321
324
|
"name": "close_deal",
|
|
322
325
|
"docs": [
|
|
323
|
-
"Admin closes/deletes a deal, returning rent to admin"
|
|
326
|
+
"Admin closes/deletes a deal, returning rent to admin."
|
|
324
327
|
],
|
|
325
328
|
"discriminator": [
|
|
326
329
|
157,
|
|
@@ -437,11 +440,11 @@
|
|
|
437
440
|
{
|
|
438
441
|
"name": "create_deal",
|
|
439
442
|
"docs": [
|
|
440
|
-
"Admin creates an exclusive deal for a pubkey",
|
|
443
|
+
"Admin creates an exclusive deal for a pubkey.",
|
|
441
444
|
"",
|
|
442
445
|
"# Arguments",
|
|
443
|
-
"* `owner` - The pubkey this deal belongs to",
|
|
444
|
-
"* `cashback_multiplier_bps` - Cashback multiplier in basis points (10000 = 1x)"
|
|
446
|
+
"* `owner` - The pubkey this deal belongs to.",
|
|
447
|
+
"* `cashback_multiplier_bps` - Cashback multiplier in basis points (10000 = 1x)."
|
|
445
448
|
],
|
|
446
449
|
"discriminator": [
|
|
447
450
|
198,
|
|
@@ -560,6 +563,9 @@
|
|
|
560
563
|
},
|
|
561
564
|
{
|
|
562
565
|
"name": "system_program",
|
|
566
|
+
"docs": [
|
|
567
|
+
"System program."
|
|
568
|
+
],
|
|
563
569
|
"address": "11111111111111111111111111111111"
|
|
564
570
|
}
|
|
565
571
|
],
|
|
@@ -609,6 +615,9 @@
|
|
|
609
615
|
},
|
|
610
616
|
{
|
|
611
617
|
"name": "user_properties",
|
|
618
|
+
"docs": [
|
|
619
|
+
"User properties account to credit cashback to."
|
|
620
|
+
],
|
|
612
621
|
"writable": true,
|
|
613
622
|
"pda": {
|
|
614
623
|
"seeds": [
|
|
@@ -733,11 +742,17 @@
|
|
|
733
742
|
"accounts": [
|
|
734
743
|
{
|
|
735
744
|
"name": "payer",
|
|
745
|
+
"docs": [
|
|
746
|
+
"The payer for account creation."
|
|
747
|
+
],
|
|
736
748
|
"writable": true,
|
|
737
749
|
"signer": true
|
|
738
750
|
},
|
|
739
751
|
{
|
|
740
752
|
"name": "cashback_config",
|
|
753
|
+
"docs": [
|
|
754
|
+
"Cashback configuration account to initialize."
|
|
755
|
+
],
|
|
741
756
|
"writable": true,
|
|
742
757
|
"pda": {
|
|
743
758
|
"seeds": [
|
|
@@ -766,6 +781,9 @@
|
|
|
766
781
|
},
|
|
767
782
|
{
|
|
768
783
|
"name": "global_curve_volume",
|
|
784
|
+
"docs": [
|
|
785
|
+
"Global curve volume accumulator to initialize."
|
|
786
|
+
],
|
|
769
787
|
"writable": true,
|
|
770
788
|
"pda": {
|
|
771
789
|
"seeds": [
|
|
@@ -798,6 +816,9 @@
|
|
|
798
816
|
},
|
|
799
817
|
{
|
|
800
818
|
"name": "global_amm_volume",
|
|
819
|
+
"docs": [
|
|
820
|
+
"Global AMM volume accumulator to initialize."
|
|
821
|
+
],
|
|
801
822
|
"writable": true,
|
|
802
823
|
"pda": {
|
|
803
824
|
"seeds": [
|
|
@@ -828,6 +849,9 @@
|
|
|
828
849
|
},
|
|
829
850
|
{
|
|
830
851
|
"name": "system_program",
|
|
852
|
+
"docs": [
|
|
853
|
+
"System program."
|
|
854
|
+
],
|
|
831
855
|
"address": "11111111111111111111111111111111"
|
|
832
856
|
}
|
|
833
857
|
],
|
|
@@ -845,7 +869,7 @@
|
|
|
845
869
|
{
|
|
846
870
|
"name": "initialize_token_volume",
|
|
847
871
|
"docs": [
|
|
848
|
-
"Initialize a token's volume accumulator with default values"
|
|
872
|
+
"Initialize a token's volume accumulator with default values."
|
|
849
873
|
],
|
|
850
874
|
"discriminator": [
|
|
851
875
|
98,
|
|
@@ -917,7 +941,7 @@
|
|
|
917
941
|
{
|
|
918
942
|
"name": "initialize_user",
|
|
919
943
|
"docs": [
|
|
920
|
-
"Initialize a user's properties account with default values"
|
|
944
|
+
"Initialize a user's properties account with default values."
|
|
921
945
|
],
|
|
922
946
|
"discriminator": [
|
|
923
947
|
111,
|
|
@@ -986,7 +1010,7 @@
|
|
|
986
1010
|
{
|
|
987
1011
|
"name": "redeem_deal",
|
|
988
1012
|
"docs": [
|
|
989
|
-
"User redeems their referrer's deal, copying the multiplier"
|
|
1013
|
+
"User redeems their referrer's deal, copying the multiplier."
|
|
990
1014
|
],
|
|
991
1015
|
"discriminator": [
|
|
992
1016
|
28,
|
|
@@ -1107,8 +1131,8 @@
|
|
|
1107
1131
|
{
|
|
1108
1132
|
"name": "set_cashback_mode",
|
|
1109
1133
|
"docs": [
|
|
1110
|
-
"
|
|
1111
|
-
"Applies volume-based multiplier to credits"
|
|
1134
|
+
"Activates cashback spending mode for the caller.",
|
|
1135
|
+
"Applies the volume-based multiplier to accumulated credits."
|
|
1112
1136
|
],
|
|
1113
1137
|
"discriminator": [
|
|
1114
1138
|
172,
|
|
@@ -1123,10 +1147,16 @@
|
|
|
1123
1147
|
"accounts": [
|
|
1124
1148
|
{
|
|
1125
1149
|
"name": "user",
|
|
1150
|
+
"docs": [
|
|
1151
|
+
"The user activating spending mode."
|
|
1152
|
+
],
|
|
1126
1153
|
"signer": true
|
|
1127
1154
|
},
|
|
1128
1155
|
{
|
|
1129
1156
|
"name": "user_properties",
|
|
1157
|
+
"docs": [
|
|
1158
|
+
"User properties account to toggle spending mode on."
|
|
1159
|
+
],
|
|
1130
1160
|
"writable": true,
|
|
1131
1161
|
"pda": {
|
|
1132
1162
|
"seeds": [
|
|
@@ -1216,6 +1246,9 @@
|
|
|
1216
1246
|
"accounts": [
|
|
1217
1247
|
{
|
|
1218
1248
|
"name": "user",
|
|
1249
|
+
"docs": [
|
|
1250
|
+
"The user setting their referrer."
|
|
1251
|
+
],
|
|
1219
1252
|
"signer": true
|
|
1220
1253
|
},
|
|
1221
1254
|
{
|
|
@@ -1228,6 +1261,9 @@
|
|
|
1228
1261
|
},
|
|
1229
1262
|
{
|
|
1230
1263
|
"name": "user_properties",
|
|
1264
|
+
"docs": [
|
|
1265
|
+
"User properties account to set the referrer on."
|
|
1266
|
+
],
|
|
1231
1267
|
"writable": true,
|
|
1232
1268
|
"pda": {
|
|
1233
1269
|
"seeds": [
|
|
@@ -1307,10 +1343,7 @@
|
|
|
1307
1343
|
"Spend cashback credits to offset protocol fees (called via CPI).",
|
|
1308
1344
|
"",
|
|
1309
1345
|
"# Arguments",
|
|
1310
|
-
"* `amount` - Maximum USD credits to spend (6 decimals)."
|
|
1311
|
-
"",
|
|
1312
|
-
"# Returns",
|
|
1313
|
-
"* `SpendCashbackResult` - The amount of credits actually spent."
|
|
1346
|
+
"* `amount` - Maximum USD credits to spend (6 decimals)."
|
|
1314
1347
|
],
|
|
1315
1348
|
"discriminator": [
|
|
1316
1349
|
59,
|
|
@@ -1339,6 +1372,9 @@
|
|
|
1339
1372
|
},
|
|
1340
1373
|
{
|
|
1341
1374
|
"name": "user_properties",
|
|
1375
|
+
"docs": [
|
|
1376
|
+
"User properties account to debit cashback from."
|
|
1377
|
+
],
|
|
1342
1378
|
"writable": true,
|
|
1343
1379
|
"pda": {
|
|
1344
1380
|
"seeds": [
|
|
@@ -1420,7 +1456,7 @@
|
|
|
1420
1456
|
{
|
|
1421
1457
|
"name": "take_snapshot",
|
|
1422
1458
|
"docs": [
|
|
1423
|
-
"Admin takes a snapshot of a user's volume since last snapshot"
|
|
1459
|
+
"Admin takes a snapshot of a user's volume since last snapshot."
|
|
1424
1460
|
],
|
|
1425
1461
|
"discriminator": [
|
|
1426
1462
|
183,
|
|
@@ -1594,6 +1630,9 @@
|
|
|
1594
1630
|
},
|
|
1595
1631
|
{
|
|
1596
1632
|
"name": "system_program",
|
|
1633
|
+
"docs": [
|
|
1634
|
+
"System program."
|
|
1635
|
+
],
|
|
1597
1636
|
"address": "11111111111111111111111111111111"
|
|
1598
1637
|
}
|
|
1599
1638
|
],
|
|
@@ -1687,6 +1726,9 @@
|
|
|
1687
1726
|
"accounts": [
|
|
1688
1727
|
{
|
|
1689
1728
|
"name": "payer",
|
|
1729
|
+
"docs": [
|
|
1730
|
+
"The payer for the transaction."
|
|
1731
|
+
],
|
|
1690
1732
|
"writable": true,
|
|
1691
1733
|
"signer": true
|
|
1692
1734
|
},
|
|
@@ -1759,6 +1801,9 @@
|
|
|
1759
1801
|
},
|
|
1760
1802
|
{
|
|
1761
1803
|
"name": "user_properties",
|
|
1804
|
+
"docs": [
|
|
1805
|
+
"User properties account to update volumes on."
|
|
1806
|
+
],
|
|
1762
1807
|
"writable": true,
|
|
1763
1808
|
"pda": {
|
|
1764
1809
|
"seeds": [
|
|
@@ -1791,6 +1836,9 @@
|
|
|
1791
1836
|
},
|
|
1792
1837
|
{
|
|
1793
1838
|
"name": "global_amm_volume",
|
|
1839
|
+
"docs": [
|
|
1840
|
+
"Global AMM volume accumulator."
|
|
1841
|
+
],
|
|
1794
1842
|
"writable": true,
|
|
1795
1843
|
"pda": {
|
|
1796
1844
|
"seeds": [
|
|
@@ -1821,6 +1869,9 @@
|
|
|
1821
1869
|
},
|
|
1822
1870
|
{
|
|
1823
1871
|
"name": "token_volume",
|
|
1872
|
+
"docs": [
|
|
1873
|
+
"Token-specific volume accumulator."
|
|
1874
|
+
],
|
|
1824
1875
|
"writable": true,
|
|
1825
1876
|
"pda": {
|
|
1826
1877
|
"seeds": [
|
|
@@ -1862,6 +1913,9 @@
|
|
|
1862
1913
|
},
|
|
1863
1914
|
{
|
|
1864
1915
|
"name": "system_program",
|
|
1916
|
+
"docs": [
|
|
1917
|
+
"System program."
|
|
1918
|
+
],
|
|
1865
1919
|
"address": "11111111111111111111111111111111"
|
|
1866
1920
|
}
|
|
1867
1921
|
],
|
|
@@ -1968,6 +2022,9 @@
|
|
|
1968
2022
|
"accounts": [
|
|
1969
2023
|
{
|
|
1970
2024
|
"name": "payer",
|
|
2025
|
+
"docs": [
|
|
2026
|
+
"The payer for the transaction."
|
|
2027
|
+
],
|
|
1971
2028
|
"writable": true,
|
|
1972
2029
|
"signer": true
|
|
1973
2030
|
},
|
|
@@ -2040,6 +2097,9 @@
|
|
|
2040
2097
|
},
|
|
2041
2098
|
{
|
|
2042
2099
|
"name": "user_properties",
|
|
2100
|
+
"docs": [
|
|
2101
|
+
"User properties account to update volumes on."
|
|
2102
|
+
],
|
|
2043
2103
|
"writable": true,
|
|
2044
2104
|
"pda": {
|
|
2045
2105
|
"seeds": [
|
|
@@ -2072,6 +2132,9 @@
|
|
|
2072
2132
|
},
|
|
2073
2133
|
{
|
|
2074
2134
|
"name": "global_curve_volume",
|
|
2135
|
+
"docs": [
|
|
2136
|
+
"Global curve volume accumulator."
|
|
2137
|
+
],
|
|
2075
2138
|
"writable": true,
|
|
2076
2139
|
"pda": {
|
|
2077
2140
|
"seeds": [
|
|
@@ -2104,6 +2167,9 @@
|
|
|
2104
2167
|
},
|
|
2105
2168
|
{
|
|
2106
2169
|
"name": "token_volume",
|
|
2170
|
+
"docs": [
|
|
2171
|
+
"Token-specific volume accumulator."
|
|
2172
|
+
],
|
|
2107
2173
|
"writable": true,
|
|
2108
2174
|
"pda": {
|
|
2109
2175
|
"seeds": [
|
|
@@ -2145,6 +2211,9 @@
|
|
|
2145
2211
|
},
|
|
2146
2212
|
{
|
|
2147
2213
|
"name": "system_program",
|
|
2214
|
+
"docs": [
|
|
2215
|
+
"System program."
|
|
2216
|
+
],
|
|
2148
2217
|
"address": "11111111111111111111111111111111"
|
|
2149
2218
|
}
|
|
2150
2219
|
],
|
|
@@ -2457,6 +2526,9 @@
|
|
|
2457
2526
|
"types": [
|
|
2458
2527
|
{
|
|
2459
2528
|
"name": "AdminUpdateUserArgs",
|
|
2529
|
+
"docs": [
|
|
2530
|
+
"Arguments for admin-updating a user's referrer or cashback multiplier."
|
|
2531
|
+
],
|
|
2460
2532
|
"type": {
|
|
2461
2533
|
"kind": "struct",
|
|
2462
2534
|
"fields": [
|
|
@@ -2660,15 +2732,24 @@
|
|
|
2660
2732
|
},
|
|
2661
2733
|
{
|
|
2662
2734
|
"name": "InitializeConfigArgs",
|
|
2735
|
+
"docs": [
|
|
2736
|
+
"Arguments for initializing the global cashback and volume configuration."
|
|
2737
|
+
],
|
|
2663
2738
|
"type": {
|
|
2664
2739
|
"kind": "struct",
|
|
2665
2740
|
"fields": [
|
|
2666
2741
|
{
|
|
2667
2742
|
"name": "admin_authority",
|
|
2743
|
+
"docs": [
|
|
2744
|
+
"The admin authority pubkey for the cashback configuration."
|
|
2745
|
+
],
|
|
2668
2746
|
"type": "pubkey"
|
|
2669
2747
|
},
|
|
2670
2748
|
{
|
|
2671
2749
|
"name": "ranges",
|
|
2750
|
+
"docs": [
|
|
2751
|
+
"Balance-based multiplier ranges for progressive cashback tiers."
|
|
2752
|
+
],
|
|
2672
2753
|
"type": {
|
|
2673
2754
|
"vec": {
|
|
2674
2755
|
"defined": {
|
|
@@ -2679,6 +2760,9 @@
|
|
|
2679
2760
|
},
|
|
2680
2761
|
{
|
|
2681
2762
|
"name": "trader_cashback_basis_points",
|
|
2763
|
+
"docs": [
|
|
2764
|
+
"Base trader cashback rate in basis points (10000 = 100%)."
|
|
2765
|
+
],
|
|
2682
2766
|
"type": "u16"
|
|
2683
2767
|
}
|
|
2684
2768
|
]
|
|
@@ -2720,11 +2804,17 @@
|
|
|
2720
2804
|
},
|
|
2721
2805
|
{
|
|
2722
2806
|
"name": "SpendCashbackResult",
|
|
2807
|
+
"docs": [
|
|
2808
|
+
"Result of a cashback spend operation."
|
|
2809
|
+
],
|
|
2723
2810
|
"type": {
|
|
2724
2811
|
"kind": "struct",
|
|
2725
2812
|
"fields": [
|
|
2726
2813
|
{
|
|
2727
2814
|
"name": "spent",
|
|
2815
|
+
"docs": [
|
|
2816
|
+
"The amount of credits actually spent (may be less than requested)."
|
|
2817
|
+
],
|
|
2728
2818
|
"type": "u64"
|
|
2729
2819
|
}
|
|
2730
2820
|
]
|
|
@@ -2780,11 +2870,17 @@
|
|
|
2780
2870
|
},
|
|
2781
2871
|
{
|
|
2782
2872
|
"name": "UpdateConfigArgs",
|
|
2873
|
+
"docs": [
|
|
2874
|
+
"Arguments for updating the cashback configuration."
|
|
2875
|
+
],
|
|
2783
2876
|
"type": {
|
|
2784
2877
|
"kind": "struct",
|
|
2785
2878
|
"fields": [
|
|
2786
2879
|
{
|
|
2787
2880
|
"name": "new_ranges",
|
|
2881
|
+
"docs": [
|
|
2882
|
+
"Optional new balance-based multiplier ranges."
|
|
2883
|
+
],
|
|
2788
2884
|
"type": {
|
|
2789
2885
|
"option": {
|
|
2790
2886
|
"vec": {
|
|
@@ -2797,6 +2893,9 @@
|
|
|
2797
2893
|
},
|
|
2798
2894
|
{
|
|
2799
2895
|
"name": "new_trader_cashback_basis_points",
|
|
2896
|
+
"docs": [
|
|
2897
|
+
"Optional new trader cashback rate in basis points."
|
|
2898
|
+
],
|
|
2800
2899
|
"type": {
|
|
2801
2900
|
"option": "u16"
|
|
2802
2901
|
}
|
|
@@ -2100,12 +2100,12 @@ export type LiquidSwap = {
|
|
|
2100
2100
|
{
|
|
2101
2101
|
"name": "create";
|
|
2102
2102
|
"docs": [
|
|
2103
|
-
"Creates
|
|
2103
|
+
"Creates an AMM pool for the given token pair with an initial deposit.",
|
|
2104
2104
|
"",
|
|
2105
2105
|
"# Arguments",
|
|
2106
|
-
"* `init_amount_base` -
|
|
2107
|
-
"* `init_amount_quote` -
|
|
2108
|
-
"* `creator` -
|
|
2106
|
+
"* `init_amount_base` - Initial base token amount to deposit into the pool.",
|
|
2107
|
+
"* `init_amount_quote` - Initial quote token amount to deposit into the pool.",
|
|
2108
|
+
"* `creator` - Optional creator pubkey (for program-initiated migration pools)."
|
|
2109
2109
|
];
|
|
2110
2110
|
"discriminator": [
|
|
2111
2111
|
24,
|
|
@@ -2832,12 +2832,12 @@ export type LiquidSwap = {
|
|
|
2832
2832
|
{
|
|
2833
2833
|
"name": "deposit";
|
|
2834
2834
|
"docs": [
|
|
2835
|
-
"
|
|
2835
|
+
"Deposits liquidity into the pool, minting LP tokens to the owner.",
|
|
2836
2836
|
"",
|
|
2837
2837
|
"# Arguments",
|
|
2838
|
-
"* `lp_token_amount` -
|
|
2839
|
-
"* `maximum_base_token_amount` -
|
|
2840
|
-
"* `maximum_quote_token_amount` - Maximum quote
|
|
2838
|
+
"* `lp_token_amount` - Number of LP tokens to mint.",
|
|
2839
|
+
"* `maximum_base_token_amount` - Maximum base tokens willing to deposit (slippage protection).",
|
|
2840
|
+
"* `maximum_quote_token_amount` - Maximum quote tokens willing to deposit (slippage protection)."
|
|
2841
2841
|
];
|
|
2842
2842
|
"discriminator": [
|
|
2843
2843
|
242,
|
|
@@ -2853,12 +2853,15 @@ export type LiquidSwap = {
|
|
|
2853
2853
|
{
|
|
2854
2854
|
"name": "owner";
|
|
2855
2855
|
"docs": [
|
|
2856
|
-
"
|
|
2856
|
+
"The owner depositing liquidity into the pool."
|
|
2857
2857
|
];
|
|
2858
2858
|
"signer": true;
|
|
2859
2859
|
},
|
|
2860
2860
|
{
|
|
2861
2861
|
"name": "poolState";
|
|
2862
|
+
"docs": [
|
|
2863
|
+
"Pool state account validated against base/quote vaults and LP mint."
|
|
2864
|
+
];
|
|
2862
2865
|
"writable": true;
|
|
2863
2866
|
},
|
|
2864
2867
|
{
|
|
@@ -4126,10 +4129,16 @@ export type LiquidSwap = {
|
|
|
4126
4129
|
"accounts": [
|
|
4127
4130
|
{
|
|
4128
4131
|
"name": "admin";
|
|
4132
|
+
"docs": [
|
|
4133
|
+
"The admin authorized to pause the protocol."
|
|
4134
|
+
];
|
|
4129
4135
|
"signer": true;
|
|
4130
4136
|
},
|
|
4131
4137
|
{
|
|
4132
4138
|
"name": "globalConfig";
|
|
4139
|
+
"docs": [
|
|
4140
|
+
"Global configuration account to be updated."
|
|
4141
|
+
];
|
|
4133
4142
|
"writable": true;
|
|
4134
4143
|
"pda": {
|
|
4135
4144
|
"seeds": [
|
|
@@ -6349,10 +6358,16 @@ export type LiquidSwap = {
|
|
|
6349
6358
|
"accounts": [
|
|
6350
6359
|
{
|
|
6351
6360
|
"name": "admin";
|
|
6361
|
+
"docs": [
|
|
6362
|
+
"The admin authorized to unpause the protocol."
|
|
6363
|
+
];
|
|
6352
6364
|
"signer": true;
|
|
6353
6365
|
},
|
|
6354
6366
|
{
|
|
6355
6367
|
"name": "globalConfig";
|
|
6368
|
+
"docs": [
|
|
6369
|
+
"Global configuration account to be updated."
|
|
6370
|
+
];
|
|
6356
6371
|
"writable": true;
|
|
6357
6372
|
"pda": {
|
|
6358
6373
|
"seeds": [
|
|
@@ -6506,12 +6521,12 @@ export type LiquidSwap = {
|
|
|
6506
6521
|
{
|
|
6507
6522
|
"name": "withdraw";
|
|
6508
6523
|
"docs": [
|
|
6509
|
-
"
|
|
6524
|
+
"Withdraws liquidity from the pool, burning LP tokens and returning base and quote tokens.",
|
|
6510
6525
|
"",
|
|
6511
6526
|
"# Arguments",
|
|
6512
|
-
"* `lp_token_amount` -
|
|
6513
|
-
"* `minimum_base_amount` -
|
|
6514
|
-
"* `minimum_quote_amount` -
|
|
6527
|
+
"* `lp_token_amount` - Number of LP tokens to burn.",
|
|
6528
|
+
"* `minimum_base_amount` - Minimum base tokens expected to receive (slippage protection).",
|
|
6529
|
+
"* `minimum_quote_amount` - Minimum quote tokens expected to receive (slippage protection)."
|
|
6515
6530
|
];
|
|
6516
6531
|
"discriminator": [
|
|
6517
6532
|
183,
|
|
@@ -6527,14 +6542,14 @@ export type LiquidSwap = {
|
|
|
6527
6542
|
{
|
|
6528
6543
|
"name": "owner";
|
|
6529
6544
|
"docs": [
|
|
6530
|
-
"
|
|
6545
|
+
"The owner withdrawing liquidity from the pool."
|
|
6531
6546
|
];
|
|
6532
6547
|
"signer": true;
|
|
6533
6548
|
},
|
|
6534
6549
|
{
|
|
6535
6550
|
"name": "poolState";
|
|
6536
6551
|
"docs": [
|
|
6537
|
-
"Pool state account."
|
|
6552
|
+
"Pool state account validated against base/quote vaults and LP mint."
|
|
6538
6553
|
];
|
|
6539
6554
|
"writable": true;
|
|
6540
6555
|
},
|
|
@@ -7185,6 +7200,9 @@ export type LiquidSwap = {
|
|
|
7185
7200
|
},
|
|
7186
7201
|
{
|
|
7187
7202
|
"name": "feeMode";
|
|
7203
|
+
"docs": [
|
|
7204
|
+
"The fee distribution mode for a token's fee configuration."
|
|
7205
|
+
];
|
|
7188
7206
|
"repr": {
|
|
7189
7207
|
"kind": "rust";
|
|
7190
7208
|
};
|
|
@@ -7202,6 +7220,9 @@ export type LiquidSwap = {
|
|
|
7202
7220
|
},
|
|
7203
7221
|
{
|
|
7204
7222
|
"name": "feeRecipient";
|
|
7223
|
+
"docs": [
|
|
7224
|
+
"A fee recipient with their allocation and vault PDA bump."
|
|
7225
|
+
];
|
|
7205
7226
|
"repr": {
|
|
7206
7227
|
"kind": "c";
|
|
7207
7228
|
};
|
|
@@ -7210,18 +7231,30 @@ export type LiquidSwap = {
|
|
|
7210
7231
|
"fields": [
|
|
7211
7232
|
{
|
|
7212
7233
|
"name": "pubkey";
|
|
7234
|
+
"docs": [
|
|
7235
|
+
"The public key of the fee recipient."
|
|
7236
|
+
];
|
|
7213
7237
|
"type": "pubkey";
|
|
7214
7238
|
},
|
|
7215
7239
|
{
|
|
7216
7240
|
"name": "basisPoints";
|
|
7241
|
+
"docs": [
|
|
7242
|
+
"The recipient's share of fees in basis points (out of 10,000)."
|
|
7243
|
+
];
|
|
7217
7244
|
"type": "u16";
|
|
7218
7245
|
},
|
|
7219
7246
|
{
|
|
7220
7247
|
"name": "vaultBump";
|
|
7248
|
+
"docs": [
|
|
7249
|
+
"The bump seed for the recipient's vault PDA."
|
|
7250
|
+
];
|
|
7221
7251
|
"type": "u8";
|
|
7222
7252
|
},
|
|
7223
7253
|
{
|
|
7224
7254
|
"name": "padding";
|
|
7255
|
+
"docs": [
|
|
7256
|
+
"Padding to align to 8-byte boundary (32 + 2 + 1 + 5 = 40 bytes)."
|
|
7257
|
+
];
|
|
7225
7258
|
"type": {
|
|
7226
7259
|
"array": [
|
|
7227
7260
|
"u8",
|
|
@@ -7579,6 +7612,11 @@ export type LiquidSwap = {
|
|
|
7579
7612
|
},
|
|
7580
7613
|
{
|
|
7581
7614
|
"name": "unifiedFeeConfiguration";
|
|
7615
|
+
"docs": [
|
|
7616
|
+
"Unified fee configuration for a token, supporting both Recipients and Revoked modes.",
|
|
7617
|
+
"",
|
|
7618
|
+
"Stored as a zero-copy account for efficient access in hot paths."
|
|
7619
|
+
];
|
|
7582
7620
|
"serialization": "bytemuckunsafe";
|
|
7583
7621
|
"repr": {
|
|
7584
7622
|
"kind": "c";
|