@meteora-ag/cp-amm-sdk 1.4.3 → 1.4.5

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/index.d.mts CHANGED
@@ -14,7 +14,7 @@ type CpAmm$1 = {
14
14
  address: "cpamdpZCGKUy5JxQXB4dcpGPiikHawvSWAd6mEn1sGG";
15
15
  metadata: {
16
16
  name: "cpAmm";
17
- version: "0.2.0";
17
+ version: "0.2.2";
18
18
  spec: "0.1.0";
19
19
  description: "Created with Anchor";
20
20
  };
@@ -69,8 +69,8 @@ type CpAmm$1 = {
69
69
  docs: ["The token account for nft"];
70
70
  },
71
71
  {
72
- name: "owner";
73
- docs: ["owner of position"];
72
+ name: "signer";
73
+ docs: ["Signer"];
74
74
  signer: true;
75
75
  },
76
76
  {
@@ -83,32 +83,6 @@ type CpAmm$1 = {
83
83
  },
84
84
  {
85
85
  name: "eventAuthority";
86
- pda: {
87
- seeds: [
88
- {
89
- kind: "const";
90
- value: [
91
- 95,
92
- 95,
93
- 101,
94
- 118,
95
- 101,
96
- 110,
97
- 116,
98
- 95,
99
- 97,
100
- 117,
101
- 116,
102
- 104,
103
- 111,
104
- 114,
105
- 105,
106
- 116,
107
- 121
108
- ];
109
- }
110
- ];
111
- };
112
86
  },
113
87
  {
114
88
  name: "program";
@@ -178,8 +152,8 @@ type CpAmm$1 = {
178
152
  docs: ["The token account for nft"];
179
153
  },
180
154
  {
181
- name: "owner";
182
- docs: ["owner of position"];
155
+ name: "signer";
156
+ docs: ["Signer"];
183
157
  signer: true;
184
158
  },
185
159
  {
@@ -192,32 +166,6 @@ type CpAmm$1 = {
192
166
  },
193
167
  {
194
168
  name: "eventAuthority";
195
- pda: {
196
- seeds: [
197
- {
198
- kind: "const";
199
- value: [
200
- 95,
201
- 95,
202
- 101,
203
- 118,
204
- 101,
205
- 110,
206
- 116,
207
- 95,
208
- 97,
209
- 117,
210
- 116,
211
- 104,
212
- 111,
213
- 114,
214
- 105,
215
- 116,
216
- 121
217
- ];
218
- }
219
- ];
220
- };
221
169
  },
222
170
  {
223
171
  name: "program";
@@ -286,32 +234,6 @@ type CpAmm$1 = {
286
234
  },
287
235
  {
288
236
  name: "eventAuthority";
289
- pda: {
290
- seeds: [
291
- {
292
- kind: "const";
293
- value: [
294
- 95,
295
- 95,
296
- 101,
297
- 118,
298
- 101,
299
- 110,
300
- 116,
301
- 95,
302
- 97,
303
- 117,
304
- 116,
305
- 104,
306
- 111,
307
- 114,
308
- 105,
309
- 116,
310
- 121
311
- ];
312
- }
313
- ];
314
- };
315
237
  },
316
238
  {
317
239
  name: "program";
@@ -328,6 +250,62 @@ type CpAmm$1 = {
328
250
  }
329
251
  ];
330
252
  },
253
+ {
254
+ name: "claimProtocolFee2";
255
+ discriminator: [235, 194, 54, 69, 65, 10, 236, 112];
256
+ accounts: [
257
+ {
258
+ name: "receiverTokenAccount";
259
+ docs: [
260
+ "receiver token account for the claimed token. validated through the protocol_fee program"
261
+ ];
262
+ writable: true;
263
+ },
264
+ {
265
+ name: "tokenAMint";
266
+ relations: ["pool"];
267
+ },
268
+ {
269
+ name: "tokenBMint";
270
+ relations: ["pool"];
271
+ },
272
+ {
273
+ name: "tokenAProgram";
274
+ },
275
+ {
276
+ name: "tokenBProgram";
277
+ },
278
+ {
279
+ name: "pool";
280
+ writable: true;
281
+ },
282
+ {
283
+ name: "tokenAVault";
284
+ writable: true;
285
+ relations: ["pool"];
286
+ },
287
+ {
288
+ name: "tokenBVault";
289
+ writable: true;
290
+ relations: ["pool"];
291
+ },
292
+ {
293
+ name: "poolAuthority";
294
+ address: "HLnpSz9h2S4hiLQ43rnSD9XkcUThA7B8hQMKmDaiTLcC";
295
+ },
296
+ {
297
+ name: "signer";
298
+ signer: true;
299
+ address: "FkU5rQCWQM131skHCpcEbK8P1JrQGsBgqXe55w525SSF";
300
+ }
301
+ ];
302
+ args: [
303
+ {
304
+ name: "maxAmount";
305
+ type: "u64";
306
+ }
307
+ ];
308
+ },
331
309
  {
332
310
  name: "claimReward";
333
311
  discriminator: [149, 95, 181, 242, 94, 90, 158, 162];
@@ -362,8 +340,8 @@ type CpAmm$1 = {
362
340
  docs: ["The token account for nft"];
363
341
  },
364
342
  {
365
- name: "owner";
366
- docs: ["owner of position"];
343
+ name: "signer";
344
+ docs: ["Signer"];
367
345
  signer: true;
368
346
  },
369
347
  {
@@ -371,32 +349,6 @@ type CpAmm$1 = {
371
349
  },
372
350
  {
373
351
  name: "eventAuthority";
374
- pda: {
375
- seeds: [
376
- {
377
- kind: "const";
378
- value: [
379
- 95,
380
- 95,
381
- 101,
382
- 118,
383
- 101,
384
- 110,
385
- 116,
386
- 95,
387
- 97,
388
- 117,
389
- 116,
390
- 104,
391
- 111,
392
- 114,
393
- 105,
394
- 116,
395
- 121
396
- ];
397
- }
398
- ];
399
- };
400
352
  },
401
353
  {
402
354
  name: "program";
@@ -434,32 +386,6 @@ type CpAmm$1 = {
434
386
  },
435
387
  {
436
388
  name: "eventAuthority";
437
- pda: {
438
- seeds: [
439
- {
440
- kind: "const";
441
- value: [
442
- 95,
443
- 95,
444
- 101,
445
- 118,
446
- 101,
447
- 110,
448
- 116,
449
- 95,
450
- 97,
451
- 117,
452
- 116,
453
- 104,
454
- 111,
455
- 114,
456
- 105,
457
- 116,
458
- 121
459
- ];
460
- }
461
- ];
462
- };
463
389
  },
464
390
  {
465
391
  name: "program";
@@ -485,32 +411,6 @@ type CpAmm$1 = {
485
411
  },
486
412
  {
487
413
  name: "eventAuthority";
488
- pda: {
489
- seeds: [
490
- {
491
- kind: "const";
492
- value: [
493
- 95,
494
- 95,
495
- 101,
496
- 118,
497
- 101,
498
- 110,
499
- 116,
500
- 95,
501
- 97,
502
- 117,
503
- 116,
504
- 104,
505
- 111,
506
- 114,
507
- 105,
508
- 116,
509
- 121
510
- ];
511
- }
512
- ];
513
- };
514
414
  },
515
415
  {
516
416
  name: "program";
@@ -563,32 +463,6 @@ type CpAmm$1 = {
563
463
  },
564
464
  {
565
465
  name: "eventAuthority";
566
- pda: {
567
- seeds: [
568
- {
569
- kind: "const";
570
- value: [
571
- 95,
572
- 95,
573
- 101,
574
- 118,
575
- 101,
576
- 110,
577
- 116,
578
- 95,
579
- 97,
580
- 117,
581
- 116,
582
- 104,
583
- 111,
584
- 114,
585
- 105,
586
- 116,
587
- 121
588
- ];
589
- }
590
- ];
591
- };
592
466
  },
593
467
  {
594
468
  name: "program";
@@ -617,32 +491,6 @@ type CpAmm$1 = {
617
491
  },
618
492
  {
619
493
  name: "eventAuthority";
620
- pda: {
621
- seeds: [
622
- {
623
- kind: "const";
624
- value: [
625
- 95,
626
- 95,
627
- 101,
628
- 118,
629
- 101,
630
- 110,
631
- 116,
632
- 95,
633
- 97,
634
- 117,
635
- 116,
636
- 104,
637
- 111,
638
- 114,
639
- 105,
640
- 116,
641
- 121
642
- ];
643
- }
644
- ];
645
- };
646
494
  },
647
495
  {
648
496
  name: "program";
@@ -689,32 +537,6 @@ type CpAmm$1 = {
689
537
  },
690
538
  {
691
539
  name: "eventAuthority";
692
- pda: {
693
- seeds: [
694
- {
695
- kind: "const";
696
- value: [
697
- 95,
698
- 95,
699
- 101,
700
- 118,
701
- 101,
702
- 110,
703
- 116,
704
- 95,
705
- 97,
706
- 117,
707
- 116,
708
- 104,
709
- 111,
710
- 114,
711
- 105,
712
- 116,
713
- 121
714
- ];
715
- }
716
- ];
717
- };
718
540
  },
719
541
  {
720
542
  name: "program";
@@ -773,32 +595,6 @@ type CpAmm$1 = {
773
595
  },
774
596
  {
775
597
  name: "eventAuthority";
776
- pda: {
777
- seeds: [
778
- {
779
- kind: "const";
780
- value: [
781
- 95,
782
- 95,
783
- 101,
784
- 118,
785
- 101,
786
- 110,
787
- 116,
788
- 95,
789
- 97,
790
- 117,
791
- 116,
792
- 104,
793
- 111,
794
- 114,
795
- 105,
796
- 116,
797
- 121
798
- ];
799
- }
800
- ];
801
- };
802
598
  },
803
599
  {
804
600
  name: "program";
@@ -858,32 +654,6 @@ type CpAmm$1 = {
858
654
  },
859
655
  {
860
656
  name: "eventAuthority";
861
- pda: {
862
- seeds: [
863
- {
864
- kind: "const";
865
- value: [
866
- 95,
867
- 95,
868
- 101,
869
- 118,
870
- 101,
871
- 110,
872
- 116,
873
- 95,
874
- 97,
875
- 117,
876
- 116,
877
- 104,
878
- 111,
879
- 114,
880
- 105,
881
- 116,
882
- 121
883
- ];
884
- }
885
- ];
886
- };
887
657
  },
888
658
  {
889
659
  name: "program";
@@ -990,32 +760,6 @@ type CpAmm$1 = {
990
760
  },
991
761
  {
992
762
  name: "eventAuthority";
993
- pda: {
994
- seeds: [
995
- {
996
- kind: "const";
997
- value: [
998
- 95,
999
- 95,
1000
- 101,
1001
- 118,
1002
- 101,
1003
- 110,
1004
- 116,
1005
- 95,
1006
- 97,
1007
- 117,
1008
- 116,
1009
- 104,
1010
- 111,
1011
- 114,
1012
- 105,
1013
- 116,
1014
- 121
1015
- ];
1016
- }
1017
- ];
1018
- };
1019
763
  },
1020
764
  {
1021
765
  name: "program";
@@ -1064,32 +808,6 @@ type CpAmm$1 = {
1064
808
  },
1065
809
  {
1066
810
  name: "eventAuthority";
1067
- pda: {
1068
- seeds: [
1069
- {
1070
- kind: "const";
1071
- value: [
1072
- 95,
1073
- 95,
1074
- 101,
1075
- 118,
1076
- 101,
1077
- 110,
1078
- 116,
1079
- 95,
1080
- 97,
1081
- 117,
1082
- 116,
1083
- 104,
1084
- 111,
1085
- 114,
1086
- 105,
1087
- 116,
1088
- 121
1089
- ];
1090
- }
1091
- ];
1092
- };
1093
811
  },
1094
812
  {
1095
813
  name: "program";
@@ -1222,32 +940,6 @@ type CpAmm$1 = {
1222
940
  },
1223
941
  {
1224
942
  name: "eventAuthority";
1225
- pda: {
1226
- seeds: [
1227
- {
1228
- kind: "const";
1229
- value: [
1230
- 95,
1231
- 95,
1232
- 101,
1233
- 118,
1234
- 101,
1235
- 110,
1236
- 116,
1237
- 95,
1238
- 97,
1239
- 117,
1240
- 116,
1241
- 104,
1242
- 111,
1243
- 114,
1244
- 105,
1245
- 116,
1246
- 121
1247
- ];
1248
- }
1249
- ];
1250
- };
1251
943
  },
1252
944
  {
1253
945
  name: "program";
@@ -1431,32 +1123,6 @@ type CpAmm$1 = {
1431
1123
  },
1432
1124
  {
1433
1125
  name: "eventAuthority";
1434
- pda: {
1435
- seeds: [
1436
- {
1437
- kind: "const";
1438
- value: [
1439
- 95,
1440
- 95,
1441
- 101,
1442
- 118,
1443
- 101,
1444
- 110,
1445
- 116,
1446
- 95,
1447
- 97,
1448
- 117,
1449
- 116,
1450
- 104,
1451
- 111,
1452
- 114,
1453
- 105,
1454
- 116,
1455
- 121
1456
- ];
1457
- }
1458
- ];
1459
- };
1460
1126
  },
1461
1127
  {
1462
1128
  name: "program";
@@ -1641,32 +1307,6 @@ type CpAmm$1 = {
1641
1307
  },
1642
1308
  {
1643
1309
  name: "eventAuthority";
1644
- pda: {
1645
- seeds: [
1646
- {
1647
- kind: "const";
1648
- value: [
1649
- 95,
1650
- 95,
1651
- 101,
1652
- 118,
1653
- 101,
1654
- 110,
1655
- 116,
1656
- 95,
1657
- 97,
1658
- 117,
1659
- 116,
1660
- 104,
1661
- 111,
1662
- 114,
1663
- 105,
1664
- 116,
1665
- 121
1666
- ];
1667
- }
1668
- ];
1669
- };
1670
1310
  },
1671
1311
  {
1672
1312
  name: "program";
@@ -1839,48 +1479,22 @@ type CpAmm$1 = {
1839
1479
  docs: ["Program to create mint account and mint tokens"];
1840
1480
  },
1841
1481
  {
1842
- name: "tokenBProgram";
1843
- docs: ["Program to create mint account and mint tokens"];
1844
- },
1845
- {
1846
- name: "token2022Program";
1847
- docs: [
1848
- "Program to create NFT mint/token account and transfer for token22 account"
1849
- ];
1850
- address: "TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb";
1851
- },
1852
- {
1853
- name: "systemProgram";
1854
- address: "11111111111111111111111111111111";
1855
- },
1856
- {
1857
- name: "eventAuthority";
1858
- pda: {
1859
- seeds: [
1860
- {
1861
- kind: "const";
1862
- value: [
1863
- 95,
1864
- 95,
1865
- 101,
1866
- 118,
1867
- 101,
1868
- 110,
1869
- 116,
1870
- 95,
1871
- 97,
1872
- 117,
1873
- 116,
1874
- 104,
1875
- 111,
1876
- 114,
1877
- 105,
1878
- 116,
1879
- 121
1880
- ];
1881
- }
1882
- ];
1883
- };
1482
+ name: "tokenBProgram";
1483
+ docs: ["Program to create mint account and mint tokens"];
1484
+ },
1485
+ {
1486
+ name: "token2022Program";
1487
+ docs: [
1488
+ "Program to create NFT mint/token account and transfer for token22 account"
1489
+ ];
1490
+ address: "TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb";
1491
+ },
1492
+ {
1493
+ name: "systemProgram";
1494
+ address: "11111111111111111111111111111111";
1495
+ },
1496
+ {
1497
+ name: "eventAuthority";
1884
1498
  },
1885
1499
  {
1886
1500
  name: "program";
@@ -1963,32 +1577,6 @@ type CpAmm$1 = {
1963
1577
  },
1964
1578
  {
1965
1579
  name: "eventAuthority";
1966
- pda: {
1967
- seeds: [
1968
- {
1969
- kind: "const";
1970
- value: [
1971
- 95,
1972
- 95,
1973
- 101,
1974
- 118,
1975
- 101,
1976
- 110,
1977
- 116,
1978
- 95,
1979
- 97,
1980
- 117,
1981
- 116,
1982
- 104,
1983
- 111,
1984
- 114,
1985
- 105,
1986
- 116,
1987
- 121
1988
- ];
1989
- }
1990
- ];
1991
- };
1992
1580
  },
1993
1581
  {
1994
1582
  name: "program";
@@ -2026,38 +1614,12 @@ type CpAmm$1 = {
2026
1614
  docs: ["The token account for nft"];
2027
1615
  },
2028
1616
  {
2029
- name: "owner";
2030
- docs: ["owner of position"];
1617
+ name: "signer";
1618
+ docs: ["Signer"];
2031
1619
  signer: true;
2032
1620
  },
2033
1621
  {
2034
1622
  name: "eventAuthority";
2035
- pda: {
2036
- seeds: [
2037
- {
2038
- kind: "const";
2039
- value: [
2040
- 95,
2041
- 95,
2042
- 101,
2043
- 118,
2044
- 101,
2045
- 110,
2046
- 116,
2047
- 95,
2048
- 97,
2049
- 117,
2050
- 116,
2051
- 104,
2052
- 111,
2053
- 114,
2054
- 105,
2055
- 116,
2056
- 121
2057
- ];
2058
- }
2059
- ];
2060
- };
2061
1623
  },
2062
1624
  {
2063
1625
  name: "program";
@@ -2096,8 +1658,8 @@ type CpAmm$1 = {
2096
1658
  docs: ["The token account for nft"];
2097
1659
  },
2098
1660
  {
2099
- name: "owner";
2100
- docs: ["owner of position"];
1661
+ name: "signer";
1662
+ docs: ["Signer"];
2101
1663
  signer: true;
2102
1664
  },
2103
1665
  {
@@ -2111,32 +1673,6 @@ type CpAmm$1 = {
2111
1673
  },
2112
1674
  {
2113
1675
  name: "eventAuthority";
2114
- pda: {
2115
- seeds: [
2116
- {
2117
- kind: "const";
2118
- value: [
2119
- 95,
2120
- 95,
2121
- 101,
2122
- 118,
2123
- 101,
2124
- 110,
2125
- 116,
2126
- 95,
2127
- 97,
2128
- 117,
2129
- 116,
2130
- 104,
2131
- 111,
2132
- 114,
2133
- 105,
2134
- 116,
2135
- 121
2136
- ];
2137
- }
2138
- ];
2139
- };
2140
1676
  },
2141
1677
  {
2142
1678
  name: "program";
@@ -2171,38 +1707,12 @@ type CpAmm$1 = {
2171
1707
  docs: ["The token account for nft"];
2172
1708
  },
2173
1709
  {
2174
- name: "owner";
2175
- docs: ["owner of position"];
1710
+ name: "signer";
1711
+ docs: ["Signer"];
2176
1712
  signer: true;
2177
1713
  },
2178
1714
  {
2179
1715
  name: "eventAuthority";
2180
- pda: {
2181
- seeds: [
2182
- {
2183
- kind: "const";
2184
- value: [
2185
- 95,
2186
- 95,
2187
- 101,
2188
- 118,
2189
- 101,
2190
- 110,
2191
- 116,
2192
- 95,
2193
- 97,
2194
- 117,
2195
- 116,
2196
- 104,
2197
- 111,
2198
- 114,
2199
- 105,
2200
- 116,
2201
- 121
2202
- ];
2203
- }
2204
- ];
2205
- };
2206
1716
  },
2207
1717
  {
2208
1718
  name: "program";
@@ -2291,8 +1801,8 @@ type CpAmm$1 = {
2291
1801
  docs: ["The token account for nft"];
2292
1802
  },
2293
1803
  {
2294
- name: "owner";
2295
- docs: ["owner of position"];
1804
+ name: "signer";
1805
+ docs: ["Signer"];
2296
1806
  signer: true;
2297
1807
  },
2298
1808
  {
@@ -2305,32 +1815,6 @@ type CpAmm$1 = {
2305
1815
  },
2306
1816
  {
2307
1817
  name: "eventAuthority";
2308
- pda: {
2309
- seeds: [
2310
- {
2311
- kind: "const";
2312
- value: [
2313
- 95,
2314
- 95,
2315
- 101,
2316
- 118,
2317
- 101,
2318
- 110,
2319
- 116,
2320
- 95,
2321
- 97,
2322
- 117,
2323
- 116,
2324
- 104,
2325
- 111,
2326
- 114,
2327
- 105,
2328
- 116,
2329
- 121
2330
- ];
2331
- }
2332
- ];
2333
- };
2334
1818
  },
2335
1819
  {
2336
1820
  name: "program";
@@ -2401,8 +1885,8 @@ type CpAmm$1 = {
2401
1885
  docs: ["The token account for nft"];
2402
1886
  },
2403
1887
  {
2404
- name: "owner";
2405
- docs: ["owner of position"];
1888
+ name: "signer";
1889
+ docs: ["Signer"];
2406
1890
  signer: true;
2407
1891
  },
2408
1892
  {
@@ -2415,32 +1899,6 @@ type CpAmm$1 = {
2415
1899
  },
2416
1900
  {
2417
1901
  name: "eventAuthority";
2418
- pda: {
2419
- seeds: [
2420
- {
2421
- kind: "const";
2422
- value: [
2423
- 95,
2424
- 95,
2425
- 101,
2426
- 118,
2427
- 101,
2428
- 110,
2429
- 116,
2430
- 95,
2431
- 97,
2432
- 117,
2433
- 116,
2434
- 104,
2435
- 111,
2436
- 114,
2437
- 105,
2438
- 116,
2439
- 121
2440
- ];
2441
- }
2442
- ];
2443
- };
2444
1902
  },
2445
1903
  {
2446
1904
  name: "program";
@@ -2474,32 +1932,6 @@ type CpAmm$1 = {
2474
1932
  },
2475
1933
  {
2476
1934
  name: "eventAuthority";
2477
- pda: {
2478
- seeds: [
2479
- {
2480
- kind: "const";
2481
- value: [
2482
- 95,
2483
- 95,
2484
- 101,
2485
- 118,
2486
- 101,
2487
- 110,
2488
- 116,
2489
- 95,
2490
- 97,
2491
- 117,
2492
- 116,
2493
- 104,
2494
- 111,
2495
- 114,
2496
- 105,
2497
- 116,
2498
- 121
2499
- ];
2500
- }
2501
- ];
2502
- };
2503
1935
  },
2504
1936
  {
2505
1937
  name: "program";
@@ -2551,32 +1983,6 @@ type CpAmm$1 = {
2551
1983
  },
2552
1984
  {
2553
1985
  name: "eventAuthority";
2554
- pda: {
2555
- seeds: [
2556
- {
2557
- kind: "const";
2558
- value: [
2559
- 95,
2560
- 95,
2561
- 101,
2562
- 118,
2563
- 101,
2564
- 110,
2565
- 116,
2566
- 95,
2567
- 97,
2568
- 117,
2569
- 116,
2570
- 104,
2571
- 111,
2572
- 114,
2573
- 105,
2574
- 116,
2575
- 121
2576
- ];
2577
- }
2578
- ];
2579
- };
2580
1986
  },
2581
1987
  {
2582
1988
  name: "program";
@@ -2618,46 +2024,20 @@ type CpAmm$1 = {
2618
2024
  },
2619
2025
  {
2620
2026
  name: "secondPositionNftAccount";
2621
- docs: ["The token account for position nft"];
2622
- },
2623
- {
2624
- name: "firstOwner";
2625
- docs: ["Owner of first position"];
2626
- signer: true;
2627
- },
2628
- {
2629
- name: "secondOwner";
2630
- docs: ["Owner of second position"];
2631
- signer: true;
2632
- },
2633
- {
2634
- name: "eventAuthority";
2635
- pda: {
2636
- seeds: [
2637
- {
2638
- kind: "const";
2639
- value: [
2640
- 95,
2641
- 95,
2642
- 101,
2643
- 118,
2644
- 101,
2645
- 110,
2646
- 116,
2647
- 95,
2648
- 97,
2649
- 117,
2650
- 116,
2651
- 104,
2652
- 111,
2653
- 114,
2654
- 105,
2655
- 116,
2656
- 121
2657
- ];
2658
- }
2659
- ];
2660
- };
2027
+ docs: ["The token account for position nft"];
2028
+ },
2029
+ {
2030
+ name: "firstOwner";
2031
+ docs: ["Owner of first position"];
2032
+ signer: true;
2033
+ },
2034
+ {
2035
+ name: "secondOwner";
2036
+ docs: ["Owner of second position"];
2037
+ signer: true;
2038
+ },
2039
+ {
2040
+ name: "eventAuthority";
2661
2041
  },
2662
2042
  {
2663
2043
  name: "program";
@@ -2734,32 +2114,6 @@ type CpAmm$1 = {
2734
2114
  },
2735
2115
  {
2736
2116
  name: "eventAuthority";
2737
- pda: {
2738
- seeds: [
2739
- {
2740
- kind: "const";
2741
- value: [
2742
- 95,
2743
- 95,
2744
- 101,
2745
- 118,
2746
- 101,
2747
- 110,
2748
- 116,
2749
- 95,
2750
- 97,
2751
- 117,
2752
- 116,
2753
- 104,
2754
- 111,
2755
- 114,
2756
- 105,
2757
- 116,
2758
- 121
2759
- ];
2760
- }
2761
- ];
2762
- };
2763
2117
  },
2764
2118
  {
2765
2119
  name: "program";
@@ -2840,32 +2194,6 @@ type CpAmm$1 = {
2840
2194
  },
2841
2195
  {
2842
2196
  name: "eventAuthority";
2843
- pda: {
2844
- seeds: [
2845
- {
2846
- kind: "const";
2847
- value: [
2848
- 95,
2849
- 95,
2850
- 101,
2851
- 118,
2852
- 101,
2853
- 110,
2854
- 116,
2855
- 95,
2856
- 97,
2857
- 117,
2858
- 116,
2859
- 104,
2860
- 111,
2861
- 114,
2862
- 105,
2863
- 116,
2864
- 121
2865
- ];
2866
- }
2867
- ];
2868
- };
2869
2197
  },
2870
2198
  {
2871
2199
  name: "program";
@@ -2882,6 +2210,36 @@ type CpAmm$1 = {
2882
2210
  }
2883
2211
  ];
2884
2212
  },
2213
+ {
2214
+ name: "updateDelegatePermission";
2215
+ discriminator: [175, 165, 56, 64, 0, 251, 89, 47];
2216
+ accounts: [
2217
+ {
2218
+ name: "position";
2219
+ writable: true;
2220
+ },
2221
+ {
2222
+ name: "positionNftAccount";
2223
+ docs: ["The token account for nft"];
2224
+ },
2225
+ {
2226
+ name: "owner";
2227
+ signer: true;
2228
+ },
2229
+ {
2230
+ name: "eventAuthority";
2231
+ },
2232
+ {
2233
+ name: "program";
2234
+ }
2235
+ ];
2236
+ args: [
2237
+ {
2238
+ name: "permission";
2239
+ type: "u32";
2240
+ }
2241
+ ];
2242
+ },
2885
2243
  {
2886
2244
  name: "updatePoolFees";
2887
2245
  discriminator: [118, 217, 203, 179, 60, 8, 70, 89];
@@ -2899,32 +2257,6 @@ type CpAmm$1 = {
2899
2257
  },
2900
2258
  {
2901
2259
  name: "eventAuthority";
2902
- pda: {
2903
- seeds: [
2904
- {
2905
- kind: "const";
2906
- value: [
2907
- 95,
2908
- 95,
2909
- 101,
2910
- 118,
2911
- 101,
2912
- 110,
2913
- 116,
2914
- 95,
2915
- 97,
2916
- 117,
2917
- 116,
2918
- 104,
2919
- 111,
2920
- 114,
2921
- 105,
2922
- 116,
2923
- 121
2924
- ];
2925
- }
2926
- ];
2927
- };
2928
2260
  },
2929
2261
  {
2930
2262
  name: "program";
@@ -2955,32 +2287,6 @@ type CpAmm$1 = {
2955
2287
  },
2956
2288
  {
2957
2289
  name: "eventAuthority";
2958
- pda: {
2959
- seeds: [
2960
- {
2961
- kind: "const";
2962
- value: [
2963
- 95,
2964
- 95,
2965
- 101,
2966
- 118,
2967
- 101,
2968
- 110,
2969
- 116,
2970
- 95,
2971
- 97,
2972
- 117,
2973
- 116,
2974
- 104,
2975
- 111,
2976
- 114,
2977
- 105,
2978
- 116,
2979
- 121
2980
- ];
2981
- }
2982
- ];
2983
- };
2984
2290
  },
2985
2291
  {
2986
2292
  name: "program";
@@ -3011,32 +2317,6 @@ type CpAmm$1 = {
3011
2317
  },
3012
2318
  {
3013
2319
  name: "eventAuthority";
3014
- pda: {
3015
- seeds: [
3016
- {
3017
- kind: "const";
3018
- value: [
3019
- 95,
3020
- 95,
3021
- 101,
3022
- 118,
3023
- 101,
3024
- 110,
3025
- 116,
3026
- 95,
3027
- 97,
3028
- 117,
3029
- 116,
3030
- 104,
3031
- 111,
3032
- 114,
3033
- 105,
3034
- 116,
3035
- 121
3036
- ];
3037
- }
3038
- ];
3039
- };
3040
2320
  },
3041
2321
  {
3042
2322
  name: "program";
@@ -3053,6 +2333,50 @@ type CpAmm$1 = {
3053
2333
  }
3054
2334
  ];
3055
2335
  },
2336
+ {
2337
+ name: "withdrawDeadLiquidityReward";
2338
+ discriminator: [121, 99, 224, 91, 178, 14, 22, 132];
2339
+ accounts: [
2340
+ {
2341
+ name: "poolAuthority";
2342
+ address: "HLnpSz9h2S4hiLQ43rnSD9XkcUThA7B8hQMKmDaiTLcC";
2343
+ },
2344
+ {
2345
+ name: "pool";
2346
+ writable: true;
2347
+ },
2348
+ {
2349
+ name: "rewardVault";
2350
+ writable: true;
2351
+ },
2352
+ {
2353
+ name: "rewardMint";
2354
+ },
2355
+ {
2356
+ name: "funderTokenAccount";
2357
+ writable: true;
2358
+ },
2359
+ {
2360
+ name: "funder";
2361
+ signer: true;
2362
+ },
2363
+ {
2364
+ name: "tokenProgram";
2365
+ },
2366
+ {
2367
+ name: "eventAuthority";
2368
+ },
2369
+ {
2370
+ name: "program";
2371
+ }
2372
+ ];
2373
+ args: [
2374
+ {
2375
+ name: "rewardIndex";
2376
+ type: "u8";
2377
+ }
2378
+ ];
2379
+ },
3056
2380
  {
3057
2381
  name: "withdrawIneligibleReward";
3058
2382
  discriminator: [148, 206, 42, 195, 247, 49, 103, 8];
@@ -3085,32 +2409,6 @@ type CpAmm$1 = {
3085
2409
  },
3086
2410
  {
3087
2411
  name: "eventAuthority";
3088
- pda: {
3089
- seeds: [
3090
- {
3091
- kind: "const";
3092
- value: [
3093
- 95,
3094
- 95,
3095
- 101,
3096
- 118,
3097
- 101,
3098
- 110,
3099
- 116,
3100
- 95,
3101
- 97,
3102
- 117,
3103
- 116,
3104
- 104,
3105
- 111,
3106
- 114,
3107
- 105,
3108
- 116,
3109
- 121
3110
- ];
3111
- }
3112
- ];
3113
- };
3114
2412
  },
3115
2413
  {
3116
2414
  name: "program";
@@ -3219,6 +2517,10 @@ type CpAmm$1 = {
3219
2517
  name: "evtClaimProtocolFee";
3220
2518
  discriminator: [186, 244, 75, 251, 188, 13, 25, 33];
3221
2519
  },
2520
+ {
2521
+ name: "evtClaimProtocolFee2";
2522
+ discriminator: [187, 133, 66, 9, 205, 161, 84, 13];
2523
+ },
3222
2524
  {
3223
2525
  name: "evtClaimReward";
3224
2526
  discriminator: [218, 86, 147, 200, 235, 188, 215, 231];
@@ -3287,6 +2589,10 @@ type CpAmm$1 = {
3287
2589
  name: "evtSwap2";
3288
2590
  discriminator: [189, 66, 51, 168, 38, 80, 117, 153];
3289
2591
  },
2592
+ {
2593
+ name: "evtUpdateDelegatePermission";
2594
+ discriminator: [66, 188, 75, 151, 150, 232, 87, 93];
2595
+ },
3290
2596
  {
3291
2597
  name: "evtUpdatePoolFees";
3292
2598
  discriminator: [76, 165, 246, 102, 102, 217, 156, 44];
@@ -3299,6 +2605,10 @@ type CpAmm$1 = {
3299
2605
  name: "evtUpdateRewardFunder";
3300
2606
  discriminator: [76, 154, 208, 13, 40, 115, 246, 146];
3301
2607
  },
2608
+ {
2609
+ name: "evtWithdrawDeadLiquidityReward";
2610
+ discriminator: [228, 66, 150, 195, 42, 62, 163, 13];
2611
+ },
3302
2612
  {
3303
2613
  name: "evtWithdrawIneligibleReward";
3304
2614
  discriminator: [248, 215, 184, 78, 31, 180, 179, 168];
@@ -3644,6 +2954,21 @@ type CpAmm$1 = {
3644
2954
  code: 6067;
3645
2955
  name: "invalidCompoundingFeeBps";
3646
2956
  msg: "Invalid compounding fee bps";
2957
+ },
2958
+ {
2959
+ code: 6068;
2960
+ name: "invalidClaimProtocolFeeAccounts";
2961
+ msg: "Invalid claim protocol fee accounts";
2962
+ },
2963
+ {
2964
+ code: 6069;
2965
+ name: "transferFeeExcludedAmountIsZero";
2966
+ msg: "Transfer fee excluded amount is zero";
2967
+ },
2968
+ {
2969
+ code: 6070;
2970
+ name: "delegatedAmountNonZero";
2971
+ msg: "Delegated amount is not zero";
3647
2972
  }
3648
2973
  ];
3649
2974
  types: [
@@ -4124,22 +3449,42 @@ type CpAmm$1 = {
4124
3449
  type: "pubkey";
4125
3450
  },
4126
3451
  {
4127
- name: "owner";
3452
+ name: "owner";
3453
+ type: "pubkey";
3454
+ },
3455
+ {
3456
+ name: "feeAClaimed";
3457
+ type: "u64";
3458
+ },
3459
+ {
3460
+ name: "feeBClaimed";
3461
+ type: "u64";
3462
+ }
3463
+ ];
3464
+ };
3465
+ },
3466
+ {
3467
+ name: "evtClaimProtocolFee";
3468
+ type: {
3469
+ kind: "struct";
3470
+ fields: [
3471
+ {
3472
+ name: "pool";
4128
3473
  type: "pubkey";
4129
3474
  },
4130
3475
  {
4131
- name: "feeAClaimed";
3476
+ name: "tokenAAmount";
4132
3477
  type: "u64";
4133
3478
  },
4134
3479
  {
4135
- name: "feeBClaimed";
3480
+ name: "tokenBAmount";
4136
3481
  type: "u64";
4137
3482
  }
4138
3483
  ];
4139
3484
  };
4140
3485
  },
4141
3486
  {
4142
- name: "evtClaimProtocolFee";
3487
+ name: "evtClaimProtocolFee2";
4143
3488
  type: {
4144
3489
  kind: "struct";
4145
3490
  fields: [
@@ -4148,11 +3493,15 @@ type CpAmm$1 = {
4148
3493
  type: "pubkey";
4149
3494
  },
4150
3495
  {
4151
- name: "tokenAAmount";
4152
- type: "u64";
3496
+ name: "receiverTokenAccount";
3497
+ type: "pubkey";
4153
3498
  },
4154
3499
  {
4155
- name: "tokenBAmount";
3500
+ name: "tokenMint";
3501
+ type: "pubkey";
3502
+ },
3503
+ {
3504
+ name: "amount";
4156
3505
  type: "u64";
4157
3506
  }
4158
3507
  ];
@@ -4848,6 +4197,32 @@ type CpAmm$1 = {
4848
4197
  ];
4849
4198
  };
4850
4199
  },
4200
+ {
4201
+ name: "evtUpdateDelegatePermission";
4202
+ type: {
4203
+ kind: "struct";
4204
+ fields: [
4205
+ {
4206
+ name: "position";
4207
+ type: "pubkey";
4208
+ },
4209
+ {
4210
+ name: "owner";
4211
+ type: "pubkey";
4212
+ },
4213
+ {
4214
+ name: "permission";
4215
+ type: "u32";
4216
+ },
4217
+ {
4218
+ name: "delegate";
4219
+ type: {
4220
+ option: "pubkey";
4221
+ };
4222
+ }
4223
+ ];
4224
+ };
4225
+ },
4851
4226
  {
4852
4227
  name: "evtUpdatePoolFees";
4853
4228
  type: {
@@ -4920,6 +4295,26 @@ type CpAmm$1 = {
4920
4295
  ];
4921
4296
  };
4922
4297
  },
4298
+ {
4299
+ name: "evtWithdrawDeadLiquidityReward";
4300
+ type: {
4301
+ kind: "struct";
4302
+ fields: [
4303
+ {
4304
+ name: "pool";
4305
+ type: "pubkey";
4306
+ },
4307
+ {
4308
+ name: "rewardMint";
4309
+ type: "pubkey";
4310
+ },
4311
+ {
4312
+ name: "amount";
4313
+ type: "u64";
4314
+ }
4315
+ ];
4316
+ };
4317
+ },
4923
4318
  {
4924
4319
  name: "evtWithdrawIneligibleReward";
4925
4320
  type: {
@@ -5751,10 +5146,19 @@ type CpAmm$1 = {
5751
5146
  };
5752
5147
  };
5753
5148
  },
5149
+ {
5150
+ name: "delegatePermission";
5151
+ docs: [
5152
+ "delegate permission bitmask (paired with SPL token Approve)"
5153
+ ];
5154
+ type: "u32";
5155
+ },
5754
5156
  {
5755
5157
  name: "padding";
5756
5158
  docs: ["padding for future usage"];
5757
- type: "u128";
5159
+ type: {
5160
+ array: ["u8", 12];
5161
+ };
5758
5162
  }
5759
5163
  ];
5760
5164
  };
@@ -5830,11 +5234,9 @@ type CpAmm$1 = {
5830
5234
  };
5831
5235
  },
5832
5236
  {
5833
- name: "padding1";
5834
- docs: ["Padding to ensure `reward_rate: u128` is 16-byte aligned"];
5835
- type: {
5836
- array: ["u8", 8];
5837
- };
5237
+ name: "deadLiquidityRewardCheckpoint";
5238
+ docs: ["Cumulative dead-liquidity reward (Compounding Pool only)"];
5239
+ type: "u64";
5838
5240
  },
5839
5241
  {
5840
5242
  name: "mint";
@@ -6334,6 +5736,17 @@ type CpAmm$1 = {
6334
5736
  };
6335
5737
  };
6336
5738
  };
5739
+ },
5740
+ {
5741
+ name: "compoundingFeeBps";
5742
+ docs: [
5743
+ "Compounding fee update mode:",
5744
+ "- None: skip compounding fee update",
5745
+ "- Some: update compounding_fee_bps; pool must use CollectFeeMode::Compounding"
5746
+ ];
5747
+ type: {
5748
+ option: "u16";
5749
+ };
6337
5750
  }
6338
5751
  ];
6339
5752
  };
@@ -6570,6 +5983,16 @@ declare enum SwapMode {
6570
5983
  PartialFill = 1,
6571
5984
  ExactOut = 2
6572
5985
  }
5986
+ declare enum PositionDelegatePermission {
5987
+ AddLiquidity = 0,
5988
+ RemoveLiquidity = 1,
5989
+ RemoveLiquidityToOwner = 2,
5990
+ ClaimPositionFee = 3,
5991
+ ClaimPositionFeeToOwner = 4,
5992
+ ClaimReward = 5,
5993
+ ClaimRewardToOwner = 6,
5994
+ LockPosition = 7
5995
+ }
6573
5996
  type FeeMode = {
6574
5997
  feesOnInput: boolean;
6575
5998
  feesOnTokenA: boolean;
@@ -6727,6 +6150,12 @@ type CreatePositionParams = {
6727
6150
  pool: PublicKey;
6728
6151
  positionNft: PublicKey;
6729
6152
  };
6153
+ type UpdateDelegatePermissionParams = {
6154
+ owner: PublicKey;
6155
+ positionNft: PublicKey;
6156
+ delegate: PublicKey;
6157
+ permission: number;
6158
+ };
6730
6159
  type AddLiquidityParams = {
6731
6160
  owner: PublicKey;
6732
6161
  position: PublicKey;
@@ -7110,6 +6539,11 @@ type WithdrawIneligibleRewardParams = {
7110
6539
  pool: PublicKey;
7111
6540
  funder: PublicKey;
7112
6541
  };
6542
+ type WithdrawDeadLiquidityRewardParams = {
6543
+ rewardIndex: number;
6544
+ pool: PublicKey;
6545
+ funder: PublicKey;
6546
+ };
7113
6547
  type ClaimRewardParams = {
7114
6548
  user: PublicKey;
7115
6549
  position: PublicKey;
@@ -7371,6 +6805,25 @@ declare class CpAmm {
7371
6805
  publicKey: PublicKey;
7372
6806
  account: PoolState;
7373
6807
  }>>;
6808
+ /**
6809
+ * Fetches all Pool states by tokenBMint.
6810
+ * @param tokenBMint - Public key of the tokenB mint.
6811
+ * @returns Array of matched pool accounts and their state.
6812
+ */
6813
+ fetchPoolStatesByTokenBMint(tokenBMint: PublicKey): Promise<Array<{
6814
+ publicKey: PublicKey;
6815
+ account: PoolState;
6816
+ }>>;
6817
+ /**
6818
+ * Fetches all Pool states that contain the given mint on either side of the pair
6819
+ * (tokenAMint or tokenBMint).
6820
+ * @param tokenMint - Public key of the token mint.
6821
+ * @returns Array of matched pool accounts and their state.
6822
+ */
6823
+ fetchPoolStatesByTokenMint(tokenMint: PublicKey): Promise<Array<{
6824
+ publicKey: PublicKey;
6825
+ account: PoolState;
6826
+ }>>;
7374
6827
  fetchPoolFees(pool: PublicKey): Promise<DecodedPoolFees | null>;
7375
6828
  /**
7376
6829
  * Fetches the Position state.
@@ -7458,6 +6911,21 @@ declare class CpAmm {
7458
6911
  position: PublicKey;
7459
6912
  positionState: PositionState;
7460
6913
  }>>;
6914
+ /**
6915
+ * Gets all positions of a user in pools that contain the given token mint on either side of
6916
+ * the pair. Resolves the user's positions first and then filters by their pools' mints, so it
6917
+ * never scans the program's pool accounts.
6918
+ * @param user - Public key of the user.
6919
+ * @param tokenMint - Public key of the token mint.
6920
+ * @returns Array of user positions (sorted by liquidity, descending) with their pool and state.
6921
+ */
6922
+ getPositionsByUserAndTokenMint(user: PublicKey, tokenMint: PublicKey): Promise<Array<{
6923
+ positionNftAccount: PublicKey;
6924
+ position: PublicKey;
6925
+ positionState: PositionState;
6926
+ pool: PublicKey;
6927
+ poolState: PoolState;
6928
+ }>>;
7461
6929
  /**
7462
6930
  * Retrieves all vesting accounts associated with a position.
7463
6931
  * @param position - Public key of the position.
@@ -7605,6 +7073,24 @@ declare class CpAmm {
7605
7073
  * @returns Transaction builder.
7606
7074
  */
7607
7075
  createPosition(params: CreatePositionParams): TxBuilder;
7076
+ /**
7077
+ * Builds a transaction that assigns a delegate to a position and sets its
7078
+ * onchain permissions in a single transaction.
7079
+ *
7080
+ * This performs two actions:
7081
+ * 1. SPL-approves `delegate` on the position NFT account (so the program
7082
+ * recognizes it as the position's delegate), and
7083
+ * 2. sets the on-chain delegate permission bitmask via the
7084
+ * `updateDelegatePermission` instruction.
7085
+ *
7086
+ * Both are kept together so the approved delegate and the granted
7087
+ * permissions never drift out of sync. To revoke, pass an empty permission
7088
+ * set (`permission: 0`).
7089
+ *
7090
+ * @param {UpdateDelegatePermissionParams} params - Parameters for delegate permission update.
7091
+ * @returns Transaction builder.
7092
+ */
7093
+ updateDelegatePermission(params: UpdateDelegatePermissionParams): TxBuilder;
7608
7094
  /**
7609
7095
  * Builds a transaction to add liquidity to an existing position.
7610
7096
  * @param {AddLiquidityParams} params - Parameters for adding liquidity.
@@ -7730,6 +7216,12 @@ declare class CpAmm {
7730
7216
  * @returns Transaction builder.
7731
7217
  */
7732
7218
  withdrawIneligibleReward(params: WithdrawIneligibleRewardParams): TxBuilder;
7219
+ /**
7220
+ * Builds a transaction to withdraw dead liquidity rewards from a pool.
7221
+ * @param {WithdrawDeadLiquidityRewardParams} params - Parameters for withdrawal.
7222
+ * @returns Transaction builder.
7223
+ */
7224
+ withdrawDeadLiquidityReward(params: WithdrawDeadLiquidityRewardParams): TxBuilder;
7733
7225
  /**
7734
7226
  * Builds a transaction to claim position fee rewards.
7735
7227
  * @param {ClaimPositionFeeParams} params - Parameters for claiming position fee.
@@ -7894,6 +7386,8 @@ declare const DEAD_LIQUIDITY: BN$1;
7894
7386
  declare const NUM_REWARDS = 2;
7895
7387
  declare const MIN_REWARD_DURATION = 86400;
7896
7388
  declare const MAX_REWARD_DURATION = 31536000;
7389
+ declare const POOL_TOKEN_A_MINT_OFFSET = 168;
7390
+ declare const POOL_TOKEN_B_MINT_OFFSET = 200;
7897
7391
 
7898
7392
  /**
7899
7393
  * Gets the token program
@@ -8554,6 +8048,8 @@ declare function encodeFeeRateLimiterParams(cliffFeeNumerator: BN$1, feeIncremen
8554
8048
  declare function decodeFeeRateLimiterParams(data: Buffer): BorshFeeRateLimiter;
8555
8049
  declare function decodePodAlignedFeeRateLimiter(data: Buffer): PodAlignedFeeRateLimiter;
8556
8050
 
8051
+ declare function encodeDelegatePermissions(permissions: PositionDelegatePermission[]): number;
8052
+
8557
8053
  /**
8558
8054
  * Calculate initial pool information given sqrtPrice and liquidity.
8559
8055
  * Computes the initial token A and B amounts, calculates actual initial liquidity,
@@ -9550,7 +9046,7 @@ declare function pow(base: BN$1, exp: BN$1): BN$1;
9550
9046
  var address = "cpamdpZCGKUy5JxQXB4dcpGPiikHawvSWAd6mEn1sGG";
9551
9047
  var metadata = {
9552
9048
  name: "cp_amm",
9553
- version: "0.2.0",
9049
+ version: "0.2.2",
9554
9050
  spec: "0.1.0",
9555
9051
  description: "Created with Anchor"
9556
9052
  };
@@ -9638,9 +9134,9 @@ var instructions = [
9638
9134
  ]
9639
9135
  },
9640
9136
  {
9641
- name: "owner",
9137
+ name: "signer",
9642
9138
  docs: [
9643
- "owner of position"
9139
+ "Signer"
9644
9140
  ],
9645
9141
  signer: true
9646
9142
  },
@@ -9657,33 +9153,7 @@ var instructions = [
9657
9153
  ]
9658
9154
  },
9659
9155
  {
9660
- name: "event_authority",
9661
- pda: {
9662
- seeds: [
9663
- {
9664
- kind: "const",
9665
- value: [
9666
- 95,
9667
- 95,
9668
- 101,
9669
- 118,
9670
- 101,
9671
- 110,
9672
- 116,
9673
- 95,
9674
- 97,
9675
- 117,
9676
- 116,
9677
- 104,
9678
- 111,
9679
- 114,
9680
- 105,
9681
- 116,
9682
- 121
9683
- ]
9684
- }
9685
- ]
9686
- }
9156
+ name: "event_authority"
9687
9157
  },
9688
9158
  {
9689
9159
  name: "program"
@@ -9786,9 +9256,9 @@ var instructions = [
9786
9256
  ]
9787
9257
  },
9788
9258
  {
9789
- name: "owner",
9259
+ name: "signer",
9790
9260
  docs: [
9791
- "owner of position"
9261
+ "Signer"
9792
9262
  ],
9793
9263
  signer: true
9794
9264
  },
@@ -9805,33 +9275,7 @@ var instructions = [
9805
9275
  ]
9806
9276
  },
9807
9277
  {
9808
- name: "event_authority",
9809
- pda: {
9810
- seeds: [
9811
- {
9812
- kind: "const",
9813
- value: [
9814
- 95,
9815
- 95,
9816
- 101,
9817
- 118,
9818
- 101,
9819
- 110,
9820
- 116,
9821
- 95,
9822
- 97,
9823
- 117,
9824
- 116,
9825
- 104,
9826
- 111,
9827
- 114,
9828
- 105,
9829
- 116,
9830
- 121
9831
- ]
9832
- }
9833
- ]
9834
- }
9278
+ name: "event_authority"
9835
9279
  },
9836
9280
  {
9837
9281
  name: "program"
@@ -9933,45 +9377,92 @@ var instructions = [
9933
9377
  ]
9934
9378
  },
9935
9379
  {
9936
- name: "event_authority",
9937
- pda: {
9938
- seeds: [
9939
- {
9940
- kind: "const",
9941
- value: [
9942
- 95,
9943
- 95,
9944
- 101,
9945
- 118,
9946
- 101,
9947
- 110,
9948
- 116,
9949
- 95,
9950
- 97,
9951
- 117,
9952
- 116,
9953
- 104,
9954
- 111,
9955
- 114,
9956
- 105,
9957
- 116,
9958
- 121
9959
- ]
9960
- }
9961
- ]
9962
- }
9380
+ name: "event_authority"
9381
+ },
9382
+ {
9383
+ name: "program"
9384
+ }
9385
+ ],
9386
+ args: [
9387
+ {
9388
+ name: "max_amount_a",
9389
+ type: "u64"
9390
+ },
9391
+ {
9392
+ name: "max_amount_b",
9393
+ type: "u64"
9394
+ }
9395
+ ]
9396
+ },
9397
+ {
9398
+ name: "claim_protocol_fee2",
9399
+ discriminator: [
9400
+ 235,
9401
+ 194,
9402
+ 54,
9403
+ 69,
9404
+ 65,
9405
+ 10,
9406
+ 236,
9407
+ 112
9408
+ ],
9409
+ accounts: [
9410
+ {
9411
+ name: "receiver_token_account",
9412
+ docs: [
9413
+ "receiver token account for the claimed token. validated through the protocol_fee program"
9414
+ ],
9415
+ writable: true
9416
+ },
9417
+ {
9418
+ name: "token_a_mint",
9419
+ relations: [
9420
+ "pool"
9421
+ ]
9422
+ },
9423
+ {
9424
+ name: "token_b_mint",
9425
+ relations: [
9426
+ "pool"
9427
+ ]
9428
+ },
9429
+ {
9430
+ name: "token_a_program"
9431
+ },
9432
+ {
9433
+ name: "token_b_program"
9434
+ },
9435
+ {
9436
+ name: "pool",
9437
+ writable: true
9438
+ },
9439
+ {
9440
+ name: "token_a_vault",
9441
+ writable: true,
9442
+ relations: [
9443
+ "pool"
9444
+ ]
9445
+ },
9446
+ {
9447
+ name: "token_b_vault",
9448
+ writable: true,
9449
+ relations: [
9450
+ "pool"
9451
+ ]
9963
9452
  },
9964
9453
  {
9965
- name: "program"
9454
+ name: "pool_authority",
9455
+ address: "HLnpSz9h2S4hiLQ43rnSD9XkcUThA7B8hQMKmDaiTLcC"
9456
+ },
9457
+ {
9458
+ name: "signer",
9459
+ signer: true,
9460
+ address: "FkU5rQCWQM131skHCpcEbK8P1JrQGsBgqXe55w525SSF"
9966
9461
  }
9967
9462
  ],
9968
9463
  args: [
9969
9464
  {
9970
- name: "max_amount_a",
9971
- type: "u64"
9972
- },
9973
- {
9974
- name: "max_amount_b",
9465
+ name: "max_amount",
9975
9466
  type: "u64"
9976
9467
  }
9977
9468
  ]
@@ -10025,9 +9516,9 @@ var instructions = [
10025
9516
  ]
10026
9517
  },
10027
9518
  {
10028
- name: "owner",
9519
+ name: "signer",
10029
9520
  docs: [
10030
- "owner of position"
9521
+ "Signer"
10031
9522
  ],
10032
9523
  signer: true
10033
9524
  },
@@ -10035,33 +9526,7 @@ var instructions = [
10035
9526
  name: "token_program"
10036
9527
  },
10037
9528
  {
10038
- name: "event_authority",
10039
- pda: {
10040
- seeds: [
10041
- {
10042
- kind: "const",
10043
- value: [
10044
- 95,
10045
- 95,
10046
- 101,
10047
- 118,
10048
- 101,
10049
- 110,
10050
- 116,
10051
- 95,
10052
- 97,
10053
- 117,
10054
- 116,
10055
- 104,
10056
- 111,
10057
- 114,
10058
- 105,
10059
- 116,
10060
- 121
10061
- ]
10062
- }
10063
- ]
10064
- }
9529
+ name: "event_authority"
10065
9530
  },
10066
9531
  {
10067
9532
  name: "program"
@@ -10107,33 +9572,7 @@ var instructions = [
10107
9572
  writable: true
10108
9573
  },
10109
9574
  {
10110
- name: "event_authority",
10111
- pda: {
10112
- seeds: [
10113
- {
10114
- kind: "const",
10115
- value: [
10116
- 95,
10117
- 95,
10118
- 101,
10119
- 118,
10120
- 101,
10121
- 110,
10122
- 116,
10123
- 95,
10124
- 97,
10125
- 117,
10126
- 116,
10127
- 104,
10128
- 111,
10129
- 114,
10130
- 105,
10131
- 116,
10132
- 121
10133
- ]
10134
- }
10135
- ]
10136
- }
9575
+ name: "event_authority"
10137
9576
  },
10138
9577
  {
10139
9578
  name: "program"
@@ -10168,33 +9607,7 @@ var instructions = [
10168
9607
  writable: true
10169
9608
  },
10170
9609
  {
10171
- name: "event_authority",
10172
- pda: {
10173
- seeds: [
10174
- {
10175
- kind: "const",
10176
- value: [
10177
- 95,
10178
- 95,
10179
- 101,
10180
- 118,
10181
- 101,
10182
- 110,
10183
- 116,
10184
- 95,
10185
- 97,
10186
- 117,
10187
- 116,
10188
- 104,
10189
- 111,
10190
- 114,
10191
- 105,
10192
- 116,
10193
- 121
10194
- ]
10195
- }
10196
- ]
10197
- }
9610
+ name: "event_authority"
10198
9611
  },
10199
9612
  {
10200
9613
  name: "program"
@@ -10264,33 +9677,7 @@ var instructions = [
10264
9677
  address: "TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb"
10265
9678
  },
10266
9679
  {
10267
- name: "event_authority",
10268
- pda: {
10269
- seeds: [
10270
- {
10271
- kind: "const",
10272
- value: [
10273
- 95,
10274
- 95,
10275
- 101,
10276
- 118,
10277
- 101,
10278
- 110,
10279
- 116,
10280
- 95,
10281
- 97,
10282
- 117,
10283
- 116,
10284
- 104,
10285
- 111,
10286
- 114,
10287
- 105,
10288
- 116,
10289
- 121
10290
- ]
10291
- }
10292
- ]
10293
- }
9680
+ name: "event_authority"
10294
9681
  },
10295
9682
  {
10296
9683
  name: "program"
@@ -10328,33 +9715,7 @@ var instructions = [
10328
9715
  writable: true
10329
9716
  },
10330
9717
  {
10331
- name: "event_authority",
10332
- pda: {
10333
- seeds: [
10334
- {
10335
- kind: "const",
10336
- value: [
10337
- 95,
10338
- 95,
10339
- 101,
10340
- 118,
10341
- 101,
10342
- 110,
10343
- 116,
10344
- 95,
10345
- 97,
10346
- 117,
10347
- 116,
10348
- 104,
10349
- 111,
10350
- 114,
10351
- 105,
10352
- 116,
10353
- 121
10354
- ]
10355
- }
10356
- ]
10357
- }
9718
+ name: "event_authority"
10358
9719
  },
10359
9720
  {
10360
9721
  name: "program"
@@ -10419,33 +9780,7 @@ var instructions = [
10419
9780
  address: "11111111111111111111111111111111"
10420
9781
  },
10421
9782
  {
10422
- name: "event_authority",
10423
- pda: {
10424
- seeds: [
10425
- {
10426
- kind: "const",
10427
- value: [
10428
- 95,
10429
- 95,
10430
- 101,
10431
- 118,
10432
- 101,
10433
- 110,
10434
- 116,
10435
- 95,
10436
- 97,
10437
- 117,
10438
- 116,
10439
- 104,
10440
- 111,
10441
- 114,
10442
- 105,
10443
- 116,
10444
- 121
10445
- ]
10446
- }
10447
- ]
10448
- }
9783
+ name: "event_authority"
10449
9784
  },
10450
9785
  {
10451
9786
  name: "program"
@@ -10519,33 +9854,7 @@ var instructions = [
10519
9854
  address: "11111111111111111111111111111111"
10520
9855
  },
10521
9856
  {
10522
- name: "event_authority",
10523
- pda: {
10524
- seeds: [
10525
- {
10526
- kind: "const",
10527
- value: [
10528
- 95,
10529
- 95,
10530
- 101,
10531
- 118,
10532
- 101,
10533
- 110,
10534
- 116,
10535
- 95,
10536
- 97,
10537
- 117,
10538
- 116,
10539
- 104,
10540
- 111,
10541
- 114,
10542
- 105,
10543
- 116,
10544
- 121
10545
- ]
10546
- }
10547
- ]
10548
- }
9857
+ name: "event_authority"
10549
9858
  },
10550
9859
  {
10551
9860
  name: "program"
@@ -10624,33 +9933,7 @@ var instructions = [
10624
9933
  address: "11111111111111111111111111111111"
10625
9934
  },
10626
9935
  {
10627
- name: "event_authority",
10628
- pda: {
10629
- seeds: [
10630
- {
10631
- kind: "const",
10632
- value: [
10633
- 95,
10634
- 95,
10635
- 101,
10636
- 118,
10637
- 101,
10638
- 110,
10639
- 116,
10640
- 95,
10641
- 97,
10642
- 117,
10643
- 116,
10644
- 104,
10645
- 111,
10646
- 114,
10647
- 105,
10648
- 116,
10649
- 121
10650
- ]
10651
- }
10652
- ]
10653
- }
9936
+ name: "event_authority"
10654
9937
  },
10655
9938
  {
10656
9939
  name: "program"
@@ -10757,56 +10040,30 @@ var instructions = [
10757
10040
  }
10758
10041
  },
10759
10042
  {
10760
- name: "pool_authority",
10761
- address: "HLnpSz9h2S4hiLQ43rnSD9XkcUThA7B8hQMKmDaiTLcC"
10762
- },
10763
- {
10764
- name: "payer",
10765
- docs: [
10766
- "Address paying to create the position. Can be anyone"
10767
- ],
10768
- writable: true,
10769
- signer: true
10770
- },
10771
- {
10772
- name: "token_program",
10773
- docs: [
10774
- "Program to create NFT mint/token account and transfer for token22 account"
10775
- ],
10776
- address: "TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb"
10777
- },
10778
- {
10779
- name: "system_program",
10780
- address: "11111111111111111111111111111111"
10781
- },
10782
- {
10783
- name: "event_authority",
10784
- pda: {
10785
- seeds: [
10786
- {
10787
- kind: "const",
10788
- value: [
10789
- 95,
10790
- 95,
10791
- 101,
10792
- 118,
10793
- 101,
10794
- 110,
10795
- 116,
10796
- 95,
10797
- 97,
10798
- 117,
10799
- 116,
10800
- 104,
10801
- 111,
10802
- 114,
10803
- 105,
10804
- 116,
10805
- 121
10806
- ]
10807
- }
10808
- ]
10809
- }
10043
+ name: "pool_authority",
10044
+ address: "HLnpSz9h2S4hiLQ43rnSD9XkcUThA7B8hQMKmDaiTLcC"
10045
+ },
10046
+ {
10047
+ name: "payer",
10048
+ docs: [
10049
+ "Address paying to create the position. Can be anyone"
10050
+ ],
10051
+ writable: true,
10052
+ signer: true
10053
+ },
10054
+ {
10055
+ name: "token_program",
10056
+ docs: [
10057
+ "Program to create NFT mint/token account and transfer for token22 account"
10058
+ ],
10059
+ address: "TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb"
10060
+ },
10061
+ {
10062
+ name: "system_program",
10063
+ address: "11111111111111111111111111111111"
10064
+ },
10065
+ {
10066
+ name: "event_authority"
10810
10067
  },
10811
10068
  {
10812
10069
  name: "program"
@@ -10876,33 +10133,7 @@ var instructions = [
10876
10133
  address: "11111111111111111111111111111111"
10877
10134
  },
10878
10135
  {
10879
- name: "event_authority",
10880
- pda: {
10881
- seeds: [
10882
- {
10883
- kind: "const",
10884
- value: [
10885
- 95,
10886
- 95,
10887
- 101,
10888
- 118,
10889
- 101,
10890
- 110,
10891
- 116,
10892
- 95,
10893
- 97,
10894
- 117,
10895
- 116,
10896
- 104,
10897
- 111,
10898
- 114,
10899
- 105,
10900
- 116,
10901
- 121
10902
- ]
10903
- }
10904
- ]
10905
- }
10136
+ name: "event_authority"
10906
10137
  },
10907
10138
  {
10908
10139
  name: "program"
@@ -11081,33 +10312,7 @@ var instructions = [
11081
10312
  name: "token_program"
11082
10313
  },
11083
10314
  {
11084
- name: "event_authority",
11085
- pda: {
11086
- seeds: [
11087
- {
11088
- kind: "const",
11089
- value: [
11090
- 95,
11091
- 95,
11092
- 101,
11093
- 118,
11094
- 101,
11095
- 110,
11096
- 116,
11097
- 95,
11098
- 97,
11099
- 117,
11100
- 116,
11101
- 104,
11102
- 111,
11103
- 114,
11104
- 105,
11105
- 116,
11106
- 121
11107
- ]
11108
- }
11109
- ]
11110
- }
10315
+ name: "event_authority"
11111
10316
  },
11112
10317
  {
11113
10318
  name: "program"
@@ -11356,33 +10561,7 @@ var instructions = [
11356
10561
  address: "11111111111111111111111111111111"
11357
10562
  },
11358
10563
  {
11359
- name: "event_authority",
11360
- pda: {
11361
- seeds: [
11362
- {
11363
- kind: "const",
11364
- value: [
11365
- 95,
11366
- 95,
11367
- 101,
11368
- 118,
11369
- 101,
11370
- 110,
11371
- 116,
11372
- 95,
11373
- 97,
11374
- 117,
11375
- 116,
11376
- 104,
11377
- 111,
11378
- 114,
11379
- 105,
11380
- 116,
11381
- 121
11382
- ]
11383
- }
11384
- ]
11385
- }
10564
+ name: "event_authority"
11386
10565
  },
11387
10566
  {
11388
10567
  name: "program"
@@ -11636,33 +10815,7 @@ var instructions = [
11636
10815
  address: "11111111111111111111111111111111"
11637
10816
  },
11638
10817
  {
11639
- name: "event_authority",
11640
- pda: {
11641
- seeds: [
11642
- {
11643
- kind: "const",
11644
- value: [
11645
- 95,
11646
- 95,
11647
- 101,
11648
- 118,
11649
- 101,
11650
- 110,
11651
- 116,
11652
- 95,
11653
- 97,
11654
- 117,
11655
- 116,
11656
- 104,
11657
- 111,
11658
- 114,
11659
- 105,
11660
- 116,
11661
- 121
11662
- ]
11663
- }
11664
- ]
11665
- }
10818
+ name: "event_authority"
11666
10819
  },
11667
10820
  {
11668
10821
  name: "program"
@@ -11920,33 +11073,7 @@ var instructions = [
11920
11073
  address: "11111111111111111111111111111111"
11921
11074
  },
11922
11075
  {
11923
- name: "event_authority",
11924
- pda: {
11925
- seeds: [
11926
- {
11927
- kind: "const",
11928
- value: [
11929
- 95,
11930
- 95,
11931
- 101,
11932
- 118,
11933
- 101,
11934
- 110,
11935
- 116,
11936
- 95,
11937
- 97,
11938
- 117,
11939
- 116,
11940
- 104,
11941
- 111,
11942
- 114,
11943
- 105,
11944
- 116,
11945
- 121
11946
- ]
11947
- }
11948
- ]
11949
- }
11076
+ name: "event_authority"
11950
11077
  },
11951
11078
  {
11952
11079
  name: "program"
@@ -12037,33 +11164,7 @@ var instructions = [
12037
11164
  address: "11111111111111111111111111111111"
12038
11165
  },
12039
11166
  {
12040
- name: "event_authority",
12041
- pda: {
12042
- seeds: [
12043
- {
12044
- kind: "const",
12045
- value: [
12046
- 95,
12047
- 95,
12048
- 101,
12049
- 118,
12050
- 101,
12051
- 110,
12052
- 116,
12053
- 95,
12054
- 97,
12055
- 117,
12056
- 116,
12057
- 104,
12058
- 111,
12059
- 114,
12060
- 105,
12061
- 116,
12062
- 121
12063
- ]
12064
- }
12065
- ]
12066
- }
11167
+ name: "event_authority"
12067
11168
  },
12068
11169
  {
12069
11170
  name: "program"
@@ -12114,40 +11215,14 @@ var instructions = [
12114
11215
  ]
12115
11216
  },
12116
11217
  {
12117
- name: "owner",
11218
+ name: "signer",
12118
11219
  docs: [
12119
- "owner of position"
11220
+ "Signer"
12120
11221
  ],
12121
11222
  signer: true
12122
11223
  },
12123
11224
  {
12124
- name: "event_authority",
12125
- pda: {
12126
- seeds: [
12127
- {
12128
- kind: "const",
12129
- value: [
12130
- 95,
12131
- 95,
12132
- 101,
12133
- 118,
12134
- 101,
12135
- 110,
12136
- 116,
12137
- 95,
12138
- 97,
12139
- 117,
12140
- 116,
12141
- 104,
12142
- 111,
12143
- 114,
12144
- 105,
12145
- 116,
12146
- 121
12147
- ]
12148
- }
12149
- ]
12150
- }
11225
+ name: "event_authority"
12151
11226
  },
12152
11227
  {
12153
11228
  name: "program"
@@ -12199,9 +11274,9 @@ var instructions = [
12199
11274
  ]
12200
11275
  },
12201
11276
  {
12202
- name: "owner",
11277
+ name: "signer",
12203
11278
  docs: [
12204
- "owner of position"
11279
+ "Signer"
12205
11280
  ],
12206
11281
  signer: true
12207
11282
  },
@@ -12215,33 +11290,7 @@ var instructions = [
12215
11290
  address: "11111111111111111111111111111111"
12216
11291
  },
12217
11292
  {
12218
- name: "event_authority",
12219
- pda: {
12220
- seeds: [
12221
- {
12222
- kind: "const",
12223
- value: [
12224
- 95,
12225
- 95,
12226
- 101,
12227
- 118,
12228
- 101,
12229
- 110,
12230
- 116,
12231
- 95,
12232
- 97,
12233
- 117,
12234
- 116,
12235
- 104,
12236
- 111,
12237
- 114,
12238
- 105,
12239
- 116,
12240
- 121
12241
- ]
12242
- }
12243
- ]
12244
- }
11293
+ name: "event_authority"
12245
11294
  },
12246
11295
  {
12247
11296
  name: "program"
@@ -12282,47 +11331,21 @@ var instructions = [
12282
11331
  name: "position",
12283
11332
  writable: true
12284
11333
  },
12285
- {
12286
- name: "position_nft_account",
12287
- docs: [
12288
- "The token account for nft"
12289
- ]
12290
- },
12291
- {
12292
- name: "owner",
12293
- docs: [
12294
- "owner of position"
12295
- ],
12296
- signer: true
12297
- },
12298
- {
12299
- name: "event_authority",
12300
- pda: {
12301
- seeds: [
12302
- {
12303
- kind: "const",
12304
- value: [
12305
- 95,
12306
- 95,
12307
- 101,
12308
- 118,
12309
- 101,
12310
- 110,
12311
- 116,
12312
- 95,
12313
- 97,
12314
- 117,
12315
- 116,
12316
- 104,
12317
- 111,
12318
- 114,
12319
- 105,
12320
- 116,
12321
- 121
12322
- ]
12323
- }
12324
- ]
12325
- }
11334
+ {
11335
+ name: "position_nft_account",
11336
+ docs: [
11337
+ "The token account for nft"
11338
+ ]
11339
+ },
11340
+ {
11341
+ name: "signer",
11342
+ docs: [
11343
+ "Signer"
11344
+ ],
11345
+ signer: true
11346
+ },
11347
+ {
11348
+ name: "event_authority"
12326
11349
  },
12327
11350
  {
12328
11351
  name: "program"
@@ -12458,9 +11481,9 @@ var instructions = [
12458
11481
  ]
12459
11482
  },
12460
11483
  {
12461
- name: "owner",
11484
+ name: "signer",
12462
11485
  docs: [
12463
- "owner of position"
11486
+ "Signer"
12464
11487
  ],
12465
11488
  signer: true
12466
11489
  },
@@ -12477,33 +11500,7 @@ var instructions = [
12477
11500
  ]
12478
11501
  },
12479
11502
  {
12480
- name: "event_authority",
12481
- pda: {
12482
- seeds: [
12483
- {
12484
- kind: "const",
12485
- value: [
12486
- 95,
12487
- 95,
12488
- 101,
12489
- 118,
12490
- 101,
12491
- 110,
12492
- 116,
12493
- 95,
12494
- 97,
12495
- 117,
12496
- 116,
12497
- 104,
12498
- 111,
12499
- 114,
12500
- 105,
12501
- 116,
12502
- 121
12503
- ]
12504
- }
12505
- ]
12506
- }
11503
+ name: "event_authority"
12507
11504
  },
12508
11505
  {
12509
11506
  name: "program"
@@ -12607,9 +11604,9 @@ var instructions = [
12607
11604
  ]
12608
11605
  },
12609
11606
  {
12610
- name: "owner",
11607
+ name: "signer",
12611
11608
  docs: [
12612
- "owner of position"
11609
+ "Signer"
12613
11610
  ],
12614
11611
  signer: true
12615
11612
  },
@@ -12626,33 +11623,7 @@ var instructions = [
12626
11623
  ]
12627
11624
  },
12628
11625
  {
12629
- name: "event_authority",
12630
- pda: {
12631
- seeds: [
12632
- {
12633
- kind: "const",
12634
- value: [
12635
- 95,
12636
- 95,
12637
- 101,
12638
- 118,
12639
- 101,
12640
- 110,
12641
- 116,
12642
- 95,
12643
- 97,
12644
- 117,
12645
- 116,
12646
- 104,
12647
- 111,
12648
- 114,
12649
- 105,
12650
- 116,
12651
- 121
12652
- ]
12653
- }
12654
- ]
12655
- }
11626
+ name: "event_authority"
12656
11627
  },
12657
11628
  {
12658
11629
  name: "program"
@@ -12694,33 +11665,7 @@ var instructions = [
12694
11665
  signer: true
12695
11666
  },
12696
11667
  {
12697
- name: "event_authority",
12698
- pda: {
12699
- seeds: [
12700
- {
12701
- kind: "const",
12702
- value: [
12703
- 95,
12704
- 95,
12705
- 101,
12706
- 118,
12707
- 101,
12708
- 110,
12709
- 116,
12710
- 95,
12711
- 97,
12712
- 117,
12713
- 116,
12714
- 104,
12715
- 111,
12716
- 114,
12717
- 105,
12718
- 116,
12719
- 121
12720
- ]
12721
- }
12722
- ]
12723
- }
11668
+ name: "event_authority"
12724
11669
  },
12725
11670
  {
12726
11671
  name: "program"
@@ -12795,33 +11740,7 @@ var instructions = [
12795
11740
  signer: true
12796
11741
  },
12797
11742
  {
12798
- name: "event_authority",
12799
- pda: {
12800
- seeds: [
12801
- {
12802
- kind: "const",
12803
- value: [
12804
- 95,
12805
- 95,
12806
- 101,
12807
- 118,
12808
- 101,
12809
- 110,
12810
- 116,
12811
- 95,
12812
- 97,
12813
- 117,
12814
- 116,
12815
- 104,
12816
- 111,
12817
- 114,
12818
- 105,
12819
- 116,
12820
- 121
12821
- ]
12822
- }
12823
- ]
12824
- }
11743
+ name: "event_authority"
12825
11744
  },
12826
11745
  {
12827
11746
  name: "program"
@@ -12900,33 +11819,7 @@ var instructions = [
12900
11819
  signer: true
12901
11820
  },
12902
11821
  {
12903
- name: "event_authority",
12904
- pda: {
12905
- seeds: [
12906
- {
12907
- kind: "const",
12908
- value: [
12909
- 95,
12910
- 95,
12911
- 101,
12912
- 118,
12913
- 101,
12914
- 110,
12915
- 116,
12916
- 95,
12917
- 97,
12918
- 117,
12919
- 116,
12920
- 104,
12921
- 111,
12922
- 114,
12923
- 105,
12924
- 116,
12925
- 121
12926
- ]
12927
- }
12928
- ]
12929
- }
11822
+ name: "event_authority"
12930
11823
  },
12931
11824
  {
12932
11825
  name: "program"
@@ -13037,33 +11930,7 @@ var instructions = [
13037
11930
  optional: true
13038
11931
  },
13039
11932
  {
13040
- name: "event_authority",
13041
- pda: {
13042
- seeds: [
13043
- {
13044
- kind: "const",
13045
- value: [
13046
- 95,
13047
- 95,
13048
- 101,
13049
- 118,
13050
- 101,
13051
- 110,
13052
- 116,
13053
- 95,
13054
- 97,
13055
- 117,
13056
- 116,
13057
- 104,
13058
- 111,
13059
- 114,
13060
- 105,
13061
- 116,
13062
- 121
13063
- ]
13064
- }
13065
- ]
13066
- }
11933
+ name: "event_authority"
13067
11934
  },
13068
11935
  {
13069
11936
  name: "program"
@@ -13178,33 +12045,7 @@ var instructions = [
13178
12045
  optional: true
13179
12046
  },
13180
12047
  {
13181
- name: "event_authority",
13182
- pda: {
13183
- seeds: [
13184
- {
13185
- kind: "const",
13186
- value: [
13187
- 95,
13188
- 95,
13189
- 101,
13190
- 118,
13191
- 101,
13192
- 110,
13193
- 116,
13194
- 95,
13195
- 97,
13196
- 117,
13197
- 116,
13198
- 104,
13199
- 111,
13200
- 114,
13201
- 105,
13202
- 116,
13203
- 121
13204
- ]
13205
- }
13206
- ]
13207
- }
12048
+ name: "event_authority"
13208
12049
  },
13209
12050
  {
13210
12051
  name: "program"
@@ -13221,6 +12062,47 @@ var instructions = [
13221
12062
  }
13222
12063
  ]
13223
12064
  },
12065
+ {
12066
+ name: "update_delegate_permission",
12067
+ discriminator: [
12068
+ 175,
12069
+ 165,
12070
+ 56,
12071
+ 64,
12072
+ 0,
12073
+ 251,
12074
+ 89,
12075
+ 47
12076
+ ],
12077
+ accounts: [
12078
+ {
12079
+ name: "position",
12080
+ writable: true
12081
+ },
12082
+ {
12083
+ name: "position_nft_account",
12084
+ docs: [
12085
+ "The token account for nft"
12086
+ ]
12087
+ },
12088
+ {
12089
+ name: "owner",
12090
+ signer: true
12091
+ },
12092
+ {
12093
+ name: "event_authority"
12094
+ },
12095
+ {
12096
+ name: "program"
12097
+ }
12098
+ ],
12099
+ args: [
12100
+ {
12101
+ name: "permission",
12102
+ type: "u32"
12103
+ }
12104
+ ]
12105
+ },
13224
12106
  {
13225
12107
  name: "update_pool_fees",
13226
12108
  discriminator: [
@@ -13239,42 +12121,16 @@ var instructions = [
13239
12121
  writable: true
13240
12122
  },
13241
12123
  {
13242
- name: "operator"
13243
- },
13244
- {
13245
- name: "signer",
13246
- signer: true
13247
- },
13248
- {
13249
- name: "event_authority",
13250
- pda: {
13251
- seeds: [
13252
- {
13253
- kind: "const",
13254
- value: [
13255
- 95,
13256
- 95,
13257
- 101,
13258
- 118,
13259
- 101,
13260
- 110,
13261
- 116,
13262
- 95,
13263
- 97,
13264
- 117,
13265
- 116,
13266
- 104,
13267
- 111,
13268
- 114,
13269
- 105,
13270
- 116,
13271
- 121
13272
- ]
13273
- }
13274
- ]
13275
- }
13276
- },
13277
- {
12124
+ name: "operator"
12125
+ },
12126
+ {
12127
+ name: "signer",
12128
+ signer: true
12129
+ },
12130
+ {
12131
+ name: "event_authority"
12132
+ },
12133
+ {
13278
12134
  name: "program"
13279
12135
  }
13280
12136
  ],
@@ -13311,33 +12167,7 @@ var instructions = [
13311
12167
  signer: true
13312
12168
  },
13313
12169
  {
13314
- name: "event_authority",
13315
- pda: {
13316
- seeds: [
13317
- {
13318
- kind: "const",
13319
- value: [
13320
- 95,
13321
- 95,
13322
- 101,
13323
- 118,
13324
- 101,
13325
- 110,
13326
- 116,
13327
- 95,
13328
- 97,
13329
- 117,
13330
- 116,
13331
- 104,
13332
- 111,
13333
- 114,
13334
- 105,
13335
- 116,
13336
- 121
13337
- ]
13338
- }
13339
- ]
13340
- }
12170
+ name: "event_authority"
13341
12171
  },
13342
12172
  {
13343
12173
  name: "program"
@@ -13376,33 +12206,7 @@ var instructions = [
13376
12206
  signer: true
13377
12207
  },
13378
12208
  {
13379
- name: "event_authority",
13380
- pda: {
13381
- seeds: [
13382
- {
13383
- kind: "const",
13384
- value: [
13385
- 95,
13386
- 95,
13387
- 101,
13388
- 118,
13389
- 101,
13390
- 110,
13391
- 116,
13392
- 95,
13393
- 97,
13394
- 117,
13395
- 116,
13396
- 104,
13397
- 111,
13398
- 114,
13399
- 105,
13400
- 116,
13401
- 121
13402
- ]
13403
- }
13404
- ]
13405
- }
12209
+ name: "event_authority"
13406
12210
  },
13407
12211
  {
13408
12212
  name: "program"
@@ -13419,6 +12223,59 @@ var instructions = [
13419
12223
  }
13420
12224
  ]
13421
12225
  },
12226
+ {
12227
+ name: "withdraw_dead_liquidity_reward",
12228
+ discriminator: [
12229
+ 121,
12230
+ 99,
12231
+ 224,
12232
+ 91,
12233
+ 178,
12234
+ 14,
12235
+ 22,
12236
+ 132
12237
+ ],
12238
+ accounts: [
12239
+ {
12240
+ name: "pool_authority",
12241
+ address: "HLnpSz9h2S4hiLQ43rnSD9XkcUThA7B8hQMKmDaiTLcC"
12242
+ },
12243
+ {
12244
+ name: "pool",
12245
+ writable: true
12246
+ },
12247
+ {
12248
+ name: "reward_vault",
12249
+ writable: true
12250
+ },
12251
+ {
12252
+ name: "reward_mint"
12253
+ },
12254
+ {
12255
+ name: "funder_token_account",
12256
+ writable: true
12257
+ },
12258
+ {
12259
+ name: "funder",
12260
+ signer: true
12261
+ },
12262
+ {
12263
+ name: "token_program"
12264
+ },
12265
+ {
12266
+ name: "event_authority"
12267
+ },
12268
+ {
12269
+ name: "program"
12270
+ }
12271
+ ],
12272
+ args: [
12273
+ {
12274
+ name: "reward_index",
12275
+ type: "u8"
12276
+ }
12277
+ ]
12278
+ },
13422
12279
  {
13423
12280
  name: "withdraw_ineligible_reward",
13424
12281
  discriminator: [
@@ -13459,33 +12316,7 @@ var instructions = [
13459
12316
  name: "token_program"
13460
12317
  },
13461
12318
  {
13462
- name: "event_authority",
13463
- pda: {
13464
- seeds: [
13465
- {
13466
- kind: "const",
13467
- value: [
13468
- 95,
13469
- 95,
13470
- 101,
13471
- 118,
13472
- 101,
13473
- 110,
13474
- 116,
13475
- 95,
13476
- 97,
13477
- 117,
13478
- 116,
13479
- 104,
13480
- 111,
13481
- 114,
13482
- 105,
13483
- 116,
13484
- 121
13485
- ]
13486
- }
13487
- ]
13488
- }
12319
+ name: "event_authority"
13489
12320
  },
13490
12321
  {
13491
12322
  name: "program"
@@ -13708,6 +12539,19 @@ var events = [
13708
12539
  33
13709
12540
  ]
13710
12541
  },
12542
+ {
12543
+ name: "EvtClaimProtocolFee2",
12544
+ discriminator: [
12545
+ 187,
12546
+ 133,
12547
+ 66,
12548
+ 9,
12549
+ 205,
12550
+ 161,
12551
+ 84,
12552
+ 13
12553
+ ]
12554
+ },
13711
12555
  {
13712
12556
  name: "EvtClaimReward",
13713
12557
  discriminator: [
@@ -13929,6 +12773,19 @@ var events = [
13929
12773
  153
13930
12774
  ]
13931
12775
  },
12776
+ {
12777
+ name: "EvtUpdateDelegatePermission",
12778
+ discriminator: [
12779
+ 66,
12780
+ 188,
12781
+ 75,
12782
+ 151,
12783
+ 150,
12784
+ 232,
12785
+ 87,
12786
+ 93
12787
+ ]
12788
+ },
13932
12789
  {
13933
12790
  name: "EvtUpdatePoolFees",
13934
12791
  discriminator: [
@@ -13968,6 +12825,19 @@ var events = [
13968
12825
  146
13969
12826
  ]
13970
12827
  },
12828
+ {
12829
+ name: "EvtWithdrawDeadLiquidityReward",
12830
+ discriminator: [
12831
+ 228,
12832
+ 66,
12833
+ 150,
12834
+ 195,
12835
+ 42,
12836
+ 62,
12837
+ 163,
12838
+ 13
12839
+ ]
12840
+ },
13971
12841
  {
13972
12842
  name: "EvtWithdrawIneligibleReward",
13973
12843
  discriminator: [
@@ -14322,6 +13192,21 @@ var errors = [
14322
13192
  code: 6067,
14323
13193
  name: "InvalidCompoundingFeeBps",
14324
13194
  msg: "Invalid compounding fee bps"
13195
+ },
13196
+ {
13197
+ code: 6068,
13198
+ name: "InvalidClaimProtocolFeeAccounts",
13199
+ msg: "Invalid claim protocol fee accounts"
13200
+ },
13201
+ {
13202
+ code: 6069,
13203
+ name: "TransferFeeExcludedAmountIsZero",
13204
+ msg: "Transfer fee excluded amount is zero"
13205
+ },
13206
+ {
13207
+ code: 6070,
13208
+ name: "DelegatedAmountNonZero",
13209
+ msg: "Delegated amount is not zero"
14325
13210
  }
14326
13211
  ];
14327
13212
  var types = [
@@ -14884,6 +13769,30 @@ var types = [
14884
13769
  ]
14885
13770
  }
14886
13771
  },
13772
+ {
13773
+ name: "EvtClaimProtocolFee2",
13774
+ type: {
13775
+ kind: "struct",
13776
+ fields: [
13777
+ {
13778
+ name: "pool",
13779
+ type: "pubkey"
13780
+ },
13781
+ {
13782
+ name: "receiver_token_account",
13783
+ type: "pubkey"
13784
+ },
13785
+ {
13786
+ name: "token_mint",
13787
+ type: "pubkey"
13788
+ },
13789
+ {
13790
+ name: "amount",
13791
+ type: "u64"
13792
+ }
13793
+ ]
13794
+ }
13795
+ },
14887
13796
  {
14888
13797
  name: "EvtClaimReward",
14889
13798
  type: {
@@ -15586,6 +14495,32 @@ var types = [
15586
14495
  ]
15587
14496
  }
15588
14497
  },
14498
+ {
14499
+ name: "EvtUpdateDelegatePermission",
14500
+ type: {
14501
+ kind: "struct",
14502
+ fields: [
14503
+ {
14504
+ name: "position",
14505
+ type: "pubkey"
14506
+ },
14507
+ {
14508
+ name: "owner",
14509
+ type: "pubkey"
14510
+ },
14511
+ {
14512
+ name: "permission",
14513
+ type: "u32"
14514
+ },
14515
+ {
14516
+ name: "delegate",
14517
+ type: {
14518
+ option: "pubkey"
14519
+ }
14520
+ }
14521
+ ]
14522
+ }
14523
+ },
15589
14524
  {
15590
14525
  name: "EvtUpdatePoolFees",
15591
14526
  type: {
@@ -15658,6 +14593,26 @@ var types = [
15658
14593
  ]
15659
14594
  }
15660
14595
  },
14596
+ {
14597
+ name: "EvtWithdrawDeadLiquidityReward",
14598
+ type: {
14599
+ kind: "struct",
14600
+ fields: [
14601
+ {
14602
+ name: "pool",
14603
+ type: "pubkey"
14604
+ },
14605
+ {
14606
+ name: "reward_mint",
14607
+ type: "pubkey"
14608
+ },
14609
+ {
14610
+ name: "amount",
14611
+ type: "u64"
14612
+ }
14613
+ ]
14614
+ }
14615
+ },
15661
14616
  {
15662
14617
  name: "EvtWithdrawIneligibleReward",
15663
14618
  type: {
@@ -16649,12 +15604,24 @@ var types = [
16649
15604
  }
16650
15605
  }
16651
15606
  },
15607
+ {
15608
+ name: "delegate_permission",
15609
+ docs: [
15610
+ "delegate permission bitmask (paired with SPL token Approve)"
15611
+ ],
15612
+ type: "u32"
15613
+ },
16652
15614
  {
16653
15615
  name: "padding",
16654
15616
  docs: [
16655
15617
  "padding for future usage"
16656
15618
  ],
16657
- type: "u128"
15619
+ type: {
15620
+ array: [
15621
+ "u8",
15622
+ 12
15623
+ ]
15624
+ }
16658
15625
  }
16659
15626
  ]
16660
15627
  }
@@ -16747,16 +15714,11 @@ var types = [
16747
15714
  }
16748
15715
  },
16749
15716
  {
16750
- name: "_padding_1",
15717
+ name: "dead_liquidity_reward_checkpoint",
16751
15718
  docs: [
16752
- "Padding to ensure `reward_rate: u128` is 16-byte aligned"
15719
+ "Cumulative dead-liquidity reward (Compounding Pool only)"
16753
15720
  ],
16754
- type: {
16755
- array: [
16756
- "u8",
16757
- 8
16758
- ]
16759
- }
15721
+ type: "u64"
16760
15722
  },
16761
15723
  {
16762
15724
  name: "mint",
@@ -17293,6 +16255,17 @@ var types = [
17293
16255
  }
17294
16256
  }
17295
16257
  }
16258
+ },
16259
+ {
16260
+ name: "compounding_fee_bps",
16261
+ docs: [
16262
+ "Compounding fee update mode:",
16263
+ "- None: skip compounding fee update",
16264
+ "- Some: update compounding_fee_bps; pool must use CollectFeeMode::Compounding"
16265
+ ],
16266
+ type: {
16267
+ option: "u16"
16268
+ }
17296
16269
  }
17297
16270
  ]
17298
16271
  }
@@ -17518,4 +16491,4 @@ var cp_amm = {
17518
16491
  constants: constants
17519
16492
  };
17520
16493
 
17521
- export { ActivationPoint, ActivationType, type AddLiquidityParams, type AmmProgram, AmountIsZeroError, BASIS_POINT_MAX, BIN_STEP_BPS_DEFAULT, BIN_STEP_BPS_U128_DEFAULT, type BaseFee, type BaseFeeHandler, BaseFeeMode, type BorshFeeMarketCapScheduler, type BorshFeeRateLimiter, type BorshFeeTimeScheduler, type BuildAddLiquidityParams, type BuildLiquidatePositionInstructionParams, type BuildRemoveAllLiquidityInstructionParams, CP_AMM_PROGRAM_ID, CURRENT_POOL_VERSION, type ClaimPositionFeeInstructionParams, type ClaimPositionFeeParams, type ClaimPositionFeeParams2, type ClaimRewardParams, type ClosePositionInstructionParams, type ClosePositionParams, CollectFeeMode, CompoundingLiquidityHandler, ConcentratedLiquidityHandler, type ConfigState, CpAmm, cp_amm as CpAmmIdl, type CpAmm$1 as CpAmmTypes, type CreatePoolParams, type CreatePositionAndAddLiquidity, type CreatePositionParams, DEAD_LIQUIDITY, DYNAMIC_FEE_DECAY_PERIOD_DEFAULT, DYNAMIC_FEE_FILTER_PERIOD_DEFAULT, DYNAMIC_FEE_REDUCTION_FACTOR_DEFAULT, DYNAMIC_FEE_ROUNDING_OFFSET, DYNAMIC_FEE_SCALING_FACTOR, type DecodedPoolFees, type DepositQuote, DepositTokenNotAcceptedError, type DynamicFee, type DynamicFeeParams, type DynamicFeeStruct, ExceedMaxFeeBpsError, FEE_DENOMINATOR, FeeMarketCapScheduler, type FeeMode, type FeeOnAmountResult, FeeRateLimiter, FeeTimeScheduler, type FundRewardParams, type GetDepositQuoteParams, type GetQuote2Params, type GetQuoteParams, type GetWithdrawQuoteParams, type InitialPoolInformation, type InitializeAndFundReward, type InitializeCustomizeablePoolParams, type InitializeCustomizeablePoolWithDynamicConfigParams, type InitializeRewardParams, type InnerVesting, InsufficientLiquidityError, InvalidActivationTypeError, InvalidBaseFeeModeError, InvalidCollectFeeModeError, InvalidCompoundingFeeBpsError, InvalidDynamicFeeParametersError, InvalidFeeError, InvalidFeeMarketCapSchedulerError, InvalidFeeRateLimiterError, InvalidFeeTimeSchedulerError, InvalidInputError, InvalidMinimumLiquidityError, InvalidParametersError, InvalidPoolVersionError, InvalidPriceRangeError, InvalidRewardDurationError, InvalidRewardIndexError, InvalidSplitPositionParametersError, InvalidVestingInfoError, LIQUIDITY_SCALE, LayoutVersion, type LiquidityDeltaParams, type LiquidityHandler, type LockPositionParams, MAX, MAX_CU_BUFFER, MAX_EXPONENTIAL, MAX_FEE_BPS_V0, MAX_FEE_BPS_V1, MAX_FEE_NUMERATOR_V0, MAX_FEE_NUMERATOR_V1, MAX_PRICE_CHANGE_BPS_DEFAULT, MAX_RATE_LIMITER_DURATION_IN_SECONDS, MAX_RATE_LIMITER_DURATION_IN_SLOTS, MAX_REWARD_DURATION, MAX_SQRT_PRICE, MIN_CU_BUFFER, MIN_FEE_BPS, MIN_FEE_NUMERATOR, MIN_REWARD_DURATION, MIN_SQRT_PRICE, MathOverflowError, type MergePositionParams, NUM_REWARDS, ONE_Q64, type PermanentLockParams, type PodAlignedFeeMarketCapScheduler, type PodAlignedFeeRateLimiter, type PodAlignedFeeTimeScheduler, type PoolFeesParams, type PoolFeesStruct, type PoolState, PoolStatus, type PositionState, type PrepareCustomizablePoolParams, type PreparePoolCreationParams, type PreparePoolCreationSingleSide, type PrepareTokenAccountParams, type PreparedPoolCreation, PriceRangeViolationError, type Quote2Result, type RefreshVestingParams, type RemoveAllLiquidityAndClosePositionParams, type RemoveAllLiquidityParams, type RemoveLiquidityParams, type RewardInfo, Rounding, SCALE_OFFSET, SPLIT_POSITION_DENOMINATOR, SameTokenMintsError, type SetupFeeClaimAccountsParams, type SplitFees, type SplitPosition2Params, type SplitPositionParams, type Swap2Params, type SwapAmount, type SwapAmountFromInput, type SwapAmountFromOutput, SwapDisabledError, SwapMode, type SwapParams, type SwapResult2, type TokenBadgeState, TradeDirection, type TransferHookState, type TxBuilder, U128_MAX, U16_MAX, U24_MAX, U64_MAX, type UpdateRewardDurationParams, type UpdateRewardFunderParams, type UserRewardInfo, type VestingState, type WithdrawIneligibleRewardParams, type WithdrawQuote, applySwapResult, bpsToFeeNumerator, calculateAtoBFromAmountInForCompoundingLiquidity, calculateAtoBFromAmountInForConcentratedLiquidity, calculateAtoBFromAmountOutForCompoundingLiquidity, calculateAtoBFromAmountOutForConcentratedLiquidity, calculateAtoBFromPartialAmountInForCompoundingLiquidity, calculateAtoBFromPartialAmountInForConcentratedLiquidity, calculateBtoAFromAmountInForCompoundingLiquidity, calculateBtoAFromAmountInForConcentratedLiquidity, calculateBtoAFromAmountOutForCompoundingLiquidity, calculateBtoAFromAmountOutForConcentratedLiquidity, calculateBtoAFromPartialAmountInForCompoundingLiquidity, calculateBtoAFromPartialAmountInForConcentratedLiquidity, calculateInitSqrtPrice, calculateTransferFeeExcludedAmount, calculateTransferFeeIncludedAmount, computeSqrtPriceStepBps, convertToFeeSchedulerSecondFactor, convertToLamports, convertToRateLimiterSecondFactor, cpAmmCoder, decimalToQ64, decodeFeeMarketCapSchedulerParams, decodeFeeRateLimiterParams, decodeFeeTimeSchedulerParams, decodePodAlignedFeeMarketCapScheduler, decodePodAlignedFeeRateLimiter, decodePodAlignedFeeTimeScheduler, deriveClaimFeeOperatorAddress, deriveConfigAddress, deriveCustomizablePoolAddress, deriveOperatorAddress, derivePoolAddress, derivePoolAuthority, derivePositionAddress, derivePositionNftAccount, deriveRewardVaultAddress, deriveTokenBadgeAddress, deriveTokenVaultAddress, encodeFeeMarketCapSchedulerParams, encodeFeeRateLimiterParams, encodeFeeTimeSchedulerParams, feeNumeratorToBps, fromDecimalToBN, getAllPositionNftAccountByOwner, getAllUserPositionNftAccount, getAmountAFromLiquidityDelta, getAmountAFromLiquidityDeltaForCompoundingLiquidity, getAmountAFromLiquidityDeltaForConcentratedLiquidity, getAmountBFromLiquidityDelta, getAmountBFromLiquidityDeltaForCompoundingLiquidity, getAmountBFromLiquidityDeltaForConcentratedLiquidity, getAmountWithSlippage, getAmountsForModifyForCompoundingLiquidity, getAmountsForModifyForConcentratedLiquidity, getAvailableVestingLiquidity, getBaseFeeHandlerFromBorshData, getBaseFeeHandlerFromPodAlignedData, getBaseFeeParams, getCheckedAmounts, getCurrentPoint, getDynamicFeeNumerator, getDynamicFeeParams, getEstimatedComputeUnitIxWithBuffer, getEstimatedComputeUnitUsageWithBuffer, getExcludedFeeAmount, getExcludedFeeAmountFromIncludedFeeAmount, getFeeInPeriod, getFeeMarketCapBaseFeeNumerator, getFeeMarketCapBaseFeeNumeratorByPeriod, getFeeMarketCapMinBaseFeeNumerator, getFeeMarketCapSchedulerParams, getFeeMode, getFeeNumeratorFromExcludedFeeAmount, getFeeNumeratorFromIncludedFeeAmount, getFeeNumeratorOnExponentialFeeScheduler, getFeeNumeratorOnLinearFeeScheduler, getFeeOnAmount, getFeeTimeBaseFeeNumerator, getFeeTimeBaseFeeNumeratorByPeriod, getFeeTimeMinBaseFeeNumerator, getFeeTimeSchedulerParams, getFirstKey, getIncludedFeeAmount, getInitialCompoundingPoolInformation, getInitialConcentratedLiquidityPoolInformation, getInitialPoolInformation, getLiquidityDeltaFromAmountA, getLiquidityDeltaFromAmountAForCompoundingLiquidity, getLiquidityDeltaFromAmountAForConcentratedLiquidity, getLiquidityDeltaFromAmountB, getLiquidityDeltaFromAmountBForCompoundingLiquidity, getLiquidityDeltaFromAmountBForConcentratedLiquidity, getLiquidityHandler, getMaxAmountWithSlippage, getMaxBaseFeeNumerator, getMaxFeeBps, getMaxFeeNumerator, getMaxIndex, getNextSqrtPriceForCompoundingLiquidity, getNextSqrtPriceFromAmountInARoundingUp, getNextSqrtPriceFromAmountInBRoundingDown, getNextSqrtPriceFromAmountOutARoundingUp, getNextSqrtPriceFromAmountOutBRoundingDown, getNextSqrtPriceFromInput, getNextSqrtPriceFromOutput, getOrCreateATAInstruction, getPoolCreationAmountAFromLiquidityDeltaForCompoundingLiquidity, getPoolCreationAmountBFromLiquidityDeltaForCompoundingLiquidity, getPoolCreationLiquidityDeltaFromAmountAForCompoundingLiquidity, getPoolCreationLiquidityDeltaFromAmountBForCompoundingLiquidity, getPriceChange, getPriceFromSqrtPrice, getPriceImpact, getRateLimiterMaxBaseFeeNumerator, getRateLimiterMinBaseFeeNumerator, getRateLimiterParams, getReservesAmountForCompoundingLiquidity, getReservesAmountForConcentratedLiquidity, getRewardInfo, getSecondKey, getSimulationComputeUnits, getSqrtPriceFromAmountsForCompoundingLiquidity, getSqrtPriceFromPrice, getSwapResultFromExactInput, getSwapResultFromExactOutput, getSwapResultFromPartialInput, getTokenDecimals, getTokenProgram, getTotalFeeNumerator, getTotalLockedLiquidity, getTotalTradingFeeFromExcludedFeeAmount, getTotalTradingFeeFromIncludedFeeAmount, getUnClaimLpFee, getUserRewardPending, hasTransferHookExtension, isDynamicFeeEnabled, isNonZeroRateLimiter, isRateLimiterApplied, isSwapEnabled, isVestingComplete, isZeroRateLimiter, mulDiv, offsetBasedFilter, parseFeeSchedulerSecondFactor, parseRateLimiterSecondFactor, positionByPoolFilter, pow, q64ToDecimal, splitFees, sqrt, swapQuoteExactInput, swapQuoteExactOutput, swapQuotePartialInput, toNumerator, unwrapSOLInstruction, validateActivationType, validateAddLiquidityParams, validateCollectFeeMode, validateCompoundingFee, validateCreatePoolParams, validateCustomizablePoolParams, validateDynamicFee, validateFeeFraction, validateFeeMarketCapBaseFeeIsStatic, validateFeeMarketCapScheduler, validateFeeRateLimiter, validateFeeRateLimiterBaseFeeIsStatic, validateFeeTimeScheduler, validateFeeTimeSchedulerBaseFeeIsStatic, validateInitialSqrtPrice, validateLockPositionParams, validateNoTransferHook, validatePoolFees, validatePriceRange, validateRemoveLiquidityParams, validateRewardDuration, validateRewardIndex, validateSplitPosition2Params, validateSplitPositionParams, validateTokenMints, vestingByPositionFilter, wrapSOLInstruction };
16494
+ export { ActivationPoint, ActivationType, type AddLiquidityParams, type AmmProgram, AmountIsZeroError, BASIS_POINT_MAX, BIN_STEP_BPS_DEFAULT, BIN_STEP_BPS_U128_DEFAULT, type BaseFee, type BaseFeeHandler, BaseFeeMode, type BorshFeeMarketCapScheduler, type BorshFeeRateLimiter, type BorshFeeTimeScheduler, type BuildAddLiquidityParams, type BuildLiquidatePositionInstructionParams, type BuildRemoveAllLiquidityInstructionParams, CP_AMM_PROGRAM_ID, CURRENT_POOL_VERSION, type ClaimPositionFeeInstructionParams, type ClaimPositionFeeParams, type ClaimPositionFeeParams2, type ClaimRewardParams, type ClosePositionInstructionParams, type ClosePositionParams, CollectFeeMode, CompoundingLiquidityHandler, ConcentratedLiquidityHandler, type ConfigState, CpAmm, cp_amm as CpAmmIdl, type CpAmm$1 as CpAmmTypes, type CreatePoolParams, type CreatePositionAndAddLiquidity, type CreatePositionParams, DEAD_LIQUIDITY, DYNAMIC_FEE_DECAY_PERIOD_DEFAULT, DYNAMIC_FEE_FILTER_PERIOD_DEFAULT, DYNAMIC_FEE_REDUCTION_FACTOR_DEFAULT, DYNAMIC_FEE_ROUNDING_OFFSET, DYNAMIC_FEE_SCALING_FACTOR, type DecodedPoolFees, type DepositQuote, DepositTokenNotAcceptedError, type DynamicFee, type DynamicFeeParams, type DynamicFeeStruct, ExceedMaxFeeBpsError, FEE_DENOMINATOR, FeeMarketCapScheduler, type FeeMode, type FeeOnAmountResult, FeeRateLimiter, FeeTimeScheduler, type FundRewardParams, type GetDepositQuoteParams, type GetQuote2Params, type GetQuoteParams, type GetWithdrawQuoteParams, type InitialPoolInformation, type InitializeAndFundReward, type InitializeCustomizeablePoolParams, type InitializeCustomizeablePoolWithDynamicConfigParams, type InitializeRewardParams, type InnerVesting, InsufficientLiquidityError, InvalidActivationTypeError, InvalidBaseFeeModeError, InvalidCollectFeeModeError, InvalidCompoundingFeeBpsError, InvalidDynamicFeeParametersError, InvalidFeeError, InvalidFeeMarketCapSchedulerError, InvalidFeeRateLimiterError, InvalidFeeTimeSchedulerError, InvalidInputError, InvalidMinimumLiquidityError, InvalidParametersError, InvalidPoolVersionError, InvalidPriceRangeError, InvalidRewardDurationError, InvalidRewardIndexError, InvalidSplitPositionParametersError, InvalidVestingInfoError, LIQUIDITY_SCALE, LayoutVersion, type LiquidityDeltaParams, type LiquidityHandler, type LockPositionParams, MAX, MAX_CU_BUFFER, MAX_EXPONENTIAL, MAX_FEE_BPS_V0, MAX_FEE_BPS_V1, MAX_FEE_NUMERATOR_V0, MAX_FEE_NUMERATOR_V1, MAX_PRICE_CHANGE_BPS_DEFAULT, MAX_RATE_LIMITER_DURATION_IN_SECONDS, MAX_RATE_LIMITER_DURATION_IN_SLOTS, MAX_REWARD_DURATION, MAX_SQRT_PRICE, MIN_CU_BUFFER, MIN_FEE_BPS, MIN_FEE_NUMERATOR, MIN_REWARD_DURATION, MIN_SQRT_PRICE, MathOverflowError, type MergePositionParams, NUM_REWARDS, ONE_Q64, POOL_TOKEN_A_MINT_OFFSET, POOL_TOKEN_B_MINT_OFFSET, type PermanentLockParams, type PodAlignedFeeMarketCapScheduler, type PodAlignedFeeRateLimiter, type PodAlignedFeeTimeScheduler, type PoolFeesParams, type PoolFeesStruct, type PoolState, PoolStatus, PositionDelegatePermission, type PositionState, type PrepareCustomizablePoolParams, type PreparePoolCreationParams, type PreparePoolCreationSingleSide, type PrepareTokenAccountParams, type PreparedPoolCreation, PriceRangeViolationError, type Quote2Result, type RefreshVestingParams, type RemoveAllLiquidityAndClosePositionParams, type RemoveAllLiquidityParams, type RemoveLiquidityParams, type RewardInfo, Rounding, SCALE_OFFSET, SPLIT_POSITION_DENOMINATOR, SameTokenMintsError, type SetupFeeClaimAccountsParams, type SplitFees, type SplitPosition2Params, type SplitPositionParams, type Swap2Params, type SwapAmount, type SwapAmountFromInput, type SwapAmountFromOutput, SwapDisabledError, SwapMode, type SwapParams, type SwapResult2, type TokenBadgeState, TradeDirection, type TransferHookState, type TxBuilder, U128_MAX, U16_MAX, U24_MAX, U64_MAX, type UpdateDelegatePermissionParams, type UpdateRewardDurationParams, type UpdateRewardFunderParams, type UserRewardInfo, type VestingState, type WithdrawDeadLiquidityRewardParams, type WithdrawIneligibleRewardParams, type WithdrawQuote, applySwapResult, bpsToFeeNumerator, calculateAtoBFromAmountInForCompoundingLiquidity, calculateAtoBFromAmountInForConcentratedLiquidity, calculateAtoBFromAmountOutForCompoundingLiquidity, calculateAtoBFromAmountOutForConcentratedLiquidity, calculateAtoBFromPartialAmountInForCompoundingLiquidity, calculateAtoBFromPartialAmountInForConcentratedLiquidity, calculateBtoAFromAmountInForCompoundingLiquidity, calculateBtoAFromAmountInForConcentratedLiquidity, calculateBtoAFromAmountOutForCompoundingLiquidity, calculateBtoAFromAmountOutForConcentratedLiquidity, calculateBtoAFromPartialAmountInForCompoundingLiquidity, calculateBtoAFromPartialAmountInForConcentratedLiquidity, calculateInitSqrtPrice, calculateTransferFeeExcludedAmount, calculateTransferFeeIncludedAmount, computeSqrtPriceStepBps, convertToFeeSchedulerSecondFactor, convertToLamports, convertToRateLimiterSecondFactor, cpAmmCoder, decimalToQ64, decodeFeeMarketCapSchedulerParams, decodeFeeRateLimiterParams, decodeFeeTimeSchedulerParams, decodePodAlignedFeeMarketCapScheduler, decodePodAlignedFeeRateLimiter, decodePodAlignedFeeTimeScheduler, deriveClaimFeeOperatorAddress, deriveConfigAddress, deriveCustomizablePoolAddress, deriveOperatorAddress, derivePoolAddress, derivePoolAuthority, derivePositionAddress, derivePositionNftAccount, deriveRewardVaultAddress, deriveTokenBadgeAddress, deriveTokenVaultAddress, encodeDelegatePermissions, encodeFeeMarketCapSchedulerParams, encodeFeeRateLimiterParams, encodeFeeTimeSchedulerParams, feeNumeratorToBps, fromDecimalToBN, getAllPositionNftAccountByOwner, getAllUserPositionNftAccount, getAmountAFromLiquidityDelta, getAmountAFromLiquidityDeltaForCompoundingLiquidity, getAmountAFromLiquidityDeltaForConcentratedLiquidity, getAmountBFromLiquidityDelta, getAmountBFromLiquidityDeltaForCompoundingLiquidity, getAmountBFromLiquidityDeltaForConcentratedLiquidity, getAmountWithSlippage, getAmountsForModifyForCompoundingLiquidity, getAmountsForModifyForConcentratedLiquidity, getAvailableVestingLiquidity, getBaseFeeHandlerFromBorshData, getBaseFeeHandlerFromPodAlignedData, getBaseFeeParams, getCheckedAmounts, getCurrentPoint, getDynamicFeeNumerator, getDynamicFeeParams, getEstimatedComputeUnitIxWithBuffer, getEstimatedComputeUnitUsageWithBuffer, getExcludedFeeAmount, getExcludedFeeAmountFromIncludedFeeAmount, getFeeInPeriod, getFeeMarketCapBaseFeeNumerator, getFeeMarketCapBaseFeeNumeratorByPeriod, getFeeMarketCapMinBaseFeeNumerator, getFeeMarketCapSchedulerParams, getFeeMode, getFeeNumeratorFromExcludedFeeAmount, getFeeNumeratorFromIncludedFeeAmount, getFeeNumeratorOnExponentialFeeScheduler, getFeeNumeratorOnLinearFeeScheduler, getFeeOnAmount, getFeeTimeBaseFeeNumerator, getFeeTimeBaseFeeNumeratorByPeriod, getFeeTimeMinBaseFeeNumerator, getFeeTimeSchedulerParams, getFirstKey, getIncludedFeeAmount, getInitialCompoundingPoolInformation, getInitialConcentratedLiquidityPoolInformation, getInitialPoolInformation, getLiquidityDeltaFromAmountA, getLiquidityDeltaFromAmountAForCompoundingLiquidity, getLiquidityDeltaFromAmountAForConcentratedLiquidity, getLiquidityDeltaFromAmountB, getLiquidityDeltaFromAmountBForCompoundingLiquidity, getLiquidityDeltaFromAmountBForConcentratedLiquidity, getLiquidityHandler, getMaxAmountWithSlippage, getMaxBaseFeeNumerator, getMaxFeeBps, getMaxFeeNumerator, getMaxIndex, getNextSqrtPriceForCompoundingLiquidity, getNextSqrtPriceFromAmountInARoundingUp, getNextSqrtPriceFromAmountInBRoundingDown, getNextSqrtPriceFromAmountOutARoundingUp, getNextSqrtPriceFromAmountOutBRoundingDown, getNextSqrtPriceFromInput, getNextSqrtPriceFromOutput, getOrCreateATAInstruction, getPoolCreationAmountAFromLiquidityDeltaForCompoundingLiquidity, getPoolCreationAmountBFromLiquidityDeltaForCompoundingLiquidity, getPoolCreationLiquidityDeltaFromAmountAForCompoundingLiquidity, getPoolCreationLiquidityDeltaFromAmountBForCompoundingLiquidity, getPriceChange, getPriceFromSqrtPrice, getPriceImpact, getRateLimiterMaxBaseFeeNumerator, getRateLimiterMinBaseFeeNumerator, getRateLimiterParams, getReservesAmountForCompoundingLiquidity, getReservesAmountForConcentratedLiquidity, getRewardInfo, getSecondKey, getSimulationComputeUnits, getSqrtPriceFromAmountsForCompoundingLiquidity, getSqrtPriceFromPrice, getSwapResultFromExactInput, getSwapResultFromExactOutput, getSwapResultFromPartialInput, getTokenDecimals, getTokenProgram, getTotalFeeNumerator, getTotalLockedLiquidity, getTotalTradingFeeFromExcludedFeeAmount, getTotalTradingFeeFromIncludedFeeAmount, getUnClaimLpFee, getUserRewardPending, hasTransferHookExtension, isDynamicFeeEnabled, isNonZeroRateLimiter, isRateLimiterApplied, isSwapEnabled, isVestingComplete, isZeroRateLimiter, mulDiv, offsetBasedFilter, parseFeeSchedulerSecondFactor, parseRateLimiterSecondFactor, positionByPoolFilter, pow, q64ToDecimal, splitFees, sqrt, swapQuoteExactInput, swapQuoteExactOutput, swapQuotePartialInput, toNumerator, unwrapSOLInstruction, validateActivationType, validateAddLiquidityParams, validateCollectFeeMode, validateCompoundingFee, validateCreatePoolParams, validateCustomizablePoolParams, validateDynamicFee, validateFeeFraction, validateFeeMarketCapBaseFeeIsStatic, validateFeeMarketCapScheduler, validateFeeRateLimiter, validateFeeRateLimiterBaseFeeIsStatic, validateFeeTimeScheduler, validateFeeTimeSchedulerBaseFeeIsStatic, validateInitialSqrtPrice, validateLockPositionParams, validateNoTransferHook, validatePoolFees, validatePriceRange, validateRemoveLiquidityParams, validateRewardDuration, validateRewardIndex, validateSplitPosition2Params, validateSplitPositionParams, validateTokenMints, vestingByPositionFilter, wrapSOLInstruction };