@meteora-ag/cp-amm-sdk 1.0.1 → 1.0.2-rc.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +1159 -314
- package/dist/index.d.ts +1159 -314
- package/dist/index.js +730 -144
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +731 -145
- package/dist/index.mjs.map +1 -1
- package/package.json +42 -42
package/dist/index.d.mts
CHANGED
|
@@ -13,7 +13,7 @@ type CpAmm$1 = {
|
|
|
13
13
|
address: "cpamdpZCGKUy5JxQXB4dcpGPiikHawvSWAd6mEn1sGG";
|
|
14
14
|
metadata: {
|
|
15
15
|
name: "cpAmm";
|
|
16
|
-
version: "0.1.
|
|
16
|
+
version: "0.1.1";
|
|
17
17
|
spec: "0.1.0";
|
|
18
18
|
description: "Created with Anchor";
|
|
19
19
|
};
|
|
@@ -434,38 +434,38 @@ type CpAmm$1 = {
|
|
|
434
434
|
{
|
|
435
435
|
kind: "const";
|
|
436
436
|
value: [
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
437
|
+
48,
|
|
438
|
+
9,
|
|
439
|
+
89,
|
|
440
|
+
123,
|
|
441
|
+
106,
|
|
442
|
+
114,
|
|
443
|
+
131,
|
|
444
|
+
251,
|
|
445
|
+
50,
|
|
444
446
|
173,
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
161,
|
|
454
|
-
33,
|
|
447
|
+
254,
|
|
448
|
+
250,
|
|
449
|
+
10,
|
|
450
|
+
80,
|
|
451
|
+
160,
|
|
452
|
+
84,
|
|
453
|
+
143,
|
|
454
|
+
100,
|
|
455
455
|
81,
|
|
456
|
-
|
|
456
|
+
249,
|
|
457
|
+
134,
|
|
458
|
+
112,
|
|
459
|
+
30,
|
|
460
|
+
213,
|
|
461
|
+
50,
|
|
457
462
|
166,
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
68,
|
|
465
|
-
162,
|
|
466
|
-
70,
|
|
467
|
-
126,
|
|
468
|
-
100
|
|
463
|
+
239,
|
|
464
|
+
78,
|
|
465
|
+
53,
|
|
466
|
+
175,
|
|
467
|
+
188,
|
|
468
|
+
85
|
|
469
469
|
];
|
|
470
470
|
},
|
|
471
471
|
{
|
|
@@ -525,38 +525,38 @@ type CpAmm$1 = {
|
|
|
525
525
|
{
|
|
526
526
|
kind: "const";
|
|
527
527
|
value: [
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
528
|
+
48,
|
|
529
|
+
9,
|
|
530
|
+
89,
|
|
531
|
+
123,
|
|
532
|
+
106,
|
|
533
|
+
114,
|
|
534
|
+
131,
|
|
535
|
+
251,
|
|
536
|
+
50,
|
|
535
537
|
173,
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
161,
|
|
545
|
-
33,
|
|
538
|
+
254,
|
|
539
|
+
250,
|
|
540
|
+
10,
|
|
541
|
+
80,
|
|
542
|
+
160,
|
|
543
|
+
84,
|
|
544
|
+
143,
|
|
545
|
+
100,
|
|
546
546
|
81,
|
|
547
|
-
|
|
547
|
+
249,
|
|
548
|
+
134,
|
|
549
|
+
112,
|
|
550
|
+
30,
|
|
551
|
+
213,
|
|
552
|
+
50,
|
|
548
553
|
166,
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
68,
|
|
556
|
-
162,
|
|
557
|
-
70,
|
|
558
|
-
126,
|
|
559
|
-
100
|
|
554
|
+
239,
|
|
555
|
+
78,
|
|
556
|
+
53,
|
|
557
|
+
175,
|
|
558
|
+
188,
|
|
559
|
+
85
|
|
560
560
|
];
|
|
561
561
|
},
|
|
562
562
|
{
|
|
@@ -1049,7 +1049,84 @@ type CpAmm$1 = {
|
|
|
1049
1049
|
},
|
|
1050
1050
|
{
|
|
1051
1051
|
kind: "arg";
|
|
1052
|
-
path: "
|
|
1052
|
+
path: "index";
|
|
1053
|
+
}
|
|
1054
|
+
];
|
|
1055
|
+
};
|
|
1056
|
+
},
|
|
1057
|
+
{
|
|
1058
|
+
name: "admin";
|
|
1059
|
+
writable: true;
|
|
1060
|
+
signer: true;
|
|
1061
|
+
},
|
|
1062
|
+
{
|
|
1063
|
+
name: "systemProgram";
|
|
1064
|
+
address: "11111111111111111111111111111111";
|
|
1065
|
+
},
|
|
1066
|
+
{
|
|
1067
|
+
name: "eventAuthority";
|
|
1068
|
+
pda: {
|
|
1069
|
+
seeds: [
|
|
1070
|
+
{
|
|
1071
|
+
kind: "const";
|
|
1072
|
+
value: [
|
|
1073
|
+
95,
|
|
1074
|
+
95,
|
|
1075
|
+
101,
|
|
1076
|
+
118,
|
|
1077
|
+
101,
|
|
1078
|
+
110,
|
|
1079
|
+
116,
|
|
1080
|
+
95,
|
|
1081
|
+
97,
|
|
1082
|
+
117,
|
|
1083
|
+
116,
|
|
1084
|
+
104,
|
|
1085
|
+
111,
|
|
1086
|
+
114,
|
|
1087
|
+
105,
|
|
1088
|
+
116,
|
|
1089
|
+
121
|
|
1090
|
+
];
|
|
1091
|
+
}
|
|
1092
|
+
];
|
|
1093
|
+
};
|
|
1094
|
+
},
|
|
1095
|
+
{
|
|
1096
|
+
name: "program";
|
|
1097
|
+
}
|
|
1098
|
+
];
|
|
1099
|
+
args: [
|
|
1100
|
+
{
|
|
1101
|
+
name: "index";
|
|
1102
|
+
type: "u64";
|
|
1103
|
+
},
|
|
1104
|
+
{
|
|
1105
|
+
name: "configParameters";
|
|
1106
|
+
type: {
|
|
1107
|
+
defined: {
|
|
1108
|
+
name: "staticConfigParameters";
|
|
1109
|
+
};
|
|
1110
|
+
};
|
|
1111
|
+
}
|
|
1112
|
+
];
|
|
1113
|
+
},
|
|
1114
|
+
{
|
|
1115
|
+
name: "createDynamicConfig";
|
|
1116
|
+
discriminator: [81, 251, 122, 78, 66, 57, 208, 82];
|
|
1117
|
+
accounts: [
|
|
1118
|
+
{
|
|
1119
|
+
name: "config";
|
|
1120
|
+
writable: true;
|
|
1121
|
+
pda: {
|
|
1122
|
+
seeds: [
|
|
1123
|
+
{
|
|
1124
|
+
kind: "const";
|
|
1125
|
+
value: [99, 111, 110, 102, 105, 103];
|
|
1126
|
+
},
|
|
1127
|
+
{
|
|
1128
|
+
kind: "arg";
|
|
1129
|
+
path: "index";
|
|
1053
1130
|
}
|
|
1054
1131
|
];
|
|
1055
1132
|
};
|
|
@@ -1097,11 +1174,15 @@ type CpAmm$1 = {
|
|
|
1097
1174
|
}
|
|
1098
1175
|
];
|
|
1099
1176
|
args: [
|
|
1177
|
+
{
|
|
1178
|
+
name: "index";
|
|
1179
|
+
type: "u64";
|
|
1180
|
+
},
|
|
1100
1181
|
{
|
|
1101
1182
|
name: "configParameters";
|
|
1102
1183
|
type: {
|
|
1103
1184
|
defined: {
|
|
1104
|
-
name: "
|
|
1185
|
+
name: "dynamicConfigParameters";
|
|
1105
1186
|
};
|
|
1106
1187
|
};
|
|
1107
1188
|
}
|
|
@@ -1857,9 +1938,71 @@ type CpAmm$1 = {
|
|
|
1857
1938
|
];
|
|
1858
1939
|
},
|
|
1859
1940
|
{
|
|
1860
|
-
name: "
|
|
1861
|
-
discriminator: [
|
|
1941
|
+
name: "initializePoolWithDynamicConfig";
|
|
1942
|
+
discriminator: [149, 82, 72, 197, 253, 252, 68, 15];
|
|
1862
1943
|
accounts: [
|
|
1944
|
+
{
|
|
1945
|
+
name: "creator";
|
|
1946
|
+
},
|
|
1947
|
+
{
|
|
1948
|
+
name: "positionNftMint";
|
|
1949
|
+
docs: ["positionNftMint"];
|
|
1950
|
+
writable: true;
|
|
1951
|
+
signer: true;
|
|
1952
|
+
},
|
|
1953
|
+
{
|
|
1954
|
+
name: "positionNftAccount";
|
|
1955
|
+
docs: ["position nft account"];
|
|
1956
|
+
writable: true;
|
|
1957
|
+
pda: {
|
|
1958
|
+
seeds: [
|
|
1959
|
+
{
|
|
1960
|
+
kind: "const";
|
|
1961
|
+
value: [
|
|
1962
|
+
112,
|
|
1963
|
+
111,
|
|
1964
|
+
115,
|
|
1965
|
+
105,
|
|
1966
|
+
116,
|
|
1967
|
+
105,
|
|
1968
|
+
111,
|
|
1969
|
+
110,
|
|
1970
|
+
95,
|
|
1971
|
+
110,
|
|
1972
|
+
102,
|
|
1973
|
+
116,
|
|
1974
|
+
95,
|
|
1975
|
+
97,
|
|
1976
|
+
99,
|
|
1977
|
+
99,
|
|
1978
|
+
111,
|
|
1979
|
+
117,
|
|
1980
|
+
110,
|
|
1981
|
+
116
|
|
1982
|
+
];
|
|
1983
|
+
},
|
|
1984
|
+
{
|
|
1985
|
+
kind: "account";
|
|
1986
|
+
path: "positionNftMint";
|
|
1987
|
+
}
|
|
1988
|
+
];
|
|
1989
|
+
};
|
|
1990
|
+
},
|
|
1991
|
+
{
|
|
1992
|
+
name: "payer";
|
|
1993
|
+
docs: ["Address paying to create the pool. Can be anyone"];
|
|
1994
|
+
writable: true;
|
|
1995
|
+
signer: true;
|
|
1996
|
+
},
|
|
1997
|
+
{
|
|
1998
|
+
name: "poolCreatorAuthority";
|
|
1999
|
+
signer: true;
|
|
2000
|
+
relations: ["config"];
|
|
2001
|
+
},
|
|
2002
|
+
{
|
|
2003
|
+
name: "config";
|
|
2004
|
+
docs: ["Which config the pool belongs to."];
|
|
2005
|
+
},
|
|
1863
2006
|
{
|
|
1864
2007
|
name: "poolAuthority";
|
|
1865
2008
|
pda: {
|
|
@@ -1888,51 +2031,99 @@ type CpAmm$1 = {
|
|
|
1888
2031
|
},
|
|
1889
2032
|
{
|
|
1890
2033
|
name: "pool";
|
|
2034
|
+
docs: ["Initialize an account to store the pool state"];
|
|
1891
2035
|
writable: true;
|
|
1892
2036
|
},
|
|
1893
2037
|
{
|
|
1894
|
-
name: "
|
|
2038
|
+
name: "position";
|
|
1895
2039
|
writable: true;
|
|
1896
2040
|
pda: {
|
|
1897
2041
|
seeds: [
|
|
1898
2042
|
{
|
|
1899
2043
|
kind: "const";
|
|
1900
|
-
value: [
|
|
1901
|
-
|
|
1902
|
-
|
|
1903
|
-
|
|
1904
|
-
|
|
1905
|
-
|
|
1906
|
-
|
|
1907
|
-
|
|
1908
|
-
|
|
1909
|
-
|
|
1910
|
-
|
|
1911
|
-
|
|
1912
|
-
|
|
1913
|
-
|
|
2044
|
+
value: [112, 111, 115, 105, 116, 105, 111, 110];
|
|
2045
|
+
},
|
|
2046
|
+
{
|
|
2047
|
+
kind: "account";
|
|
2048
|
+
path: "positionNftMint";
|
|
2049
|
+
}
|
|
2050
|
+
];
|
|
2051
|
+
};
|
|
2052
|
+
},
|
|
2053
|
+
{
|
|
2054
|
+
name: "tokenAMint";
|
|
2055
|
+
docs: ["Token a mint"];
|
|
2056
|
+
},
|
|
2057
|
+
{
|
|
2058
|
+
name: "tokenBMint";
|
|
2059
|
+
docs: ["Token b mint"];
|
|
2060
|
+
},
|
|
2061
|
+
{
|
|
2062
|
+
name: "tokenAVault";
|
|
2063
|
+
docs: ["Token a vault for the pool"];
|
|
2064
|
+
writable: true;
|
|
2065
|
+
pda: {
|
|
2066
|
+
seeds: [
|
|
2067
|
+
{
|
|
2068
|
+
kind: "const";
|
|
2069
|
+
value: [116, 111, 107, 101, 110, 95, 118, 97, 117, 108, 116];
|
|
2070
|
+
},
|
|
2071
|
+
{
|
|
2072
|
+
kind: "account";
|
|
2073
|
+
path: "tokenAMint";
|
|
1914
2074
|
},
|
|
1915
2075
|
{
|
|
1916
2076
|
kind: "account";
|
|
1917
2077
|
path: "pool";
|
|
2078
|
+
}
|
|
2079
|
+
];
|
|
2080
|
+
};
|
|
2081
|
+
},
|
|
2082
|
+
{
|
|
2083
|
+
name: "tokenBVault";
|
|
2084
|
+
docs: ["Token b vault for the pool"];
|
|
2085
|
+
writable: true;
|
|
2086
|
+
pda: {
|
|
2087
|
+
seeds: [
|
|
2088
|
+
{
|
|
2089
|
+
kind: "const";
|
|
2090
|
+
value: [116, 111, 107, 101, 110, 95, 118, 97, 117, 108, 116];
|
|
1918
2091
|
},
|
|
1919
2092
|
{
|
|
1920
|
-
kind: "
|
|
1921
|
-
path: "
|
|
2093
|
+
kind: "account";
|
|
2094
|
+
path: "tokenBMint";
|
|
2095
|
+
},
|
|
2096
|
+
{
|
|
2097
|
+
kind: "account";
|
|
2098
|
+
path: "pool";
|
|
1922
2099
|
}
|
|
1923
2100
|
];
|
|
1924
2101
|
};
|
|
1925
2102
|
},
|
|
1926
2103
|
{
|
|
1927
|
-
name: "
|
|
2104
|
+
name: "payerTokenA";
|
|
2105
|
+
docs: ["payer token a account"];
|
|
2106
|
+
writable: true;
|
|
1928
2107
|
},
|
|
1929
2108
|
{
|
|
1930
|
-
name: "
|
|
2109
|
+
name: "payerTokenB";
|
|
2110
|
+
docs: ["creator token b account"];
|
|
1931
2111
|
writable: true;
|
|
1932
|
-
signer: true;
|
|
1933
2112
|
},
|
|
1934
2113
|
{
|
|
1935
|
-
name: "
|
|
2114
|
+
name: "tokenAProgram";
|
|
2115
|
+
docs: ["Program to create mint account and mint tokens"];
|
|
2116
|
+
},
|
|
2117
|
+
{
|
|
2118
|
+
name: "tokenBProgram";
|
|
2119
|
+
docs: ["Program to create mint account and mint tokens"];
|
|
2120
|
+
},
|
|
2121
|
+
{
|
|
2122
|
+
name: "token2022Program";
|
|
2123
|
+
docs: [
|
|
2124
|
+
"Program to create NFT mint/token account and transfer for token22 account"
|
|
2125
|
+
];
|
|
2126
|
+
address: "TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb";
|
|
1936
2127
|
},
|
|
1937
2128
|
{
|
|
1938
2129
|
name: "systemProgram";
|
|
@@ -1973,19 +2164,145 @@ type CpAmm$1 = {
|
|
|
1973
2164
|
];
|
|
1974
2165
|
args: [
|
|
1975
2166
|
{
|
|
1976
|
-
name: "
|
|
1977
|
-
type:
|
|
1978
|
-
|
|
1979
|
-
|
|
1980
|
-
|
|
1981
|
-
|
|
1982
|
-
}
|
|
1983
|
-
|
|
1984
|
-
|
|
1985
|
-
|
|
1986
|
-
|
|
1987
|
-
];
|
|
1988
|
-
|
|
2167
|
+
name: "params";
|
|
2168
|
+
type: {
|
|
2169
|
+
defined: {
|
|
2170
|
+
name: "initializeCustomizablePoolParameters";
|
|
2171
|
+
};
|
|
2172
|
+
};
|
|
2173
|
+
}
|
|
2174
|
+
];
|
|
2175
|
+
},
|
|
2176
|
+
{
|
|
2177
|
+
name: "initializeReward";
|
|
2178
|
+
discriminator: [95, 135, 192, 196, 242, 129, 230, 68];
|
|
2179
|
+
accounts: [
|
|
2180
|
+
{
|
|
2181
|
+
name: "poolAuthority";
|
|
2182
|
+
pda: {
|
|
2183
|
+
seeds: [
|
|
2184
|
+
{
|
|
2185
|
+
kind: "const";
|
|
2186
|
+
value: [
|
|
2187
|
+
112,
|
|
2188
|
+
111,
|
|
2189
|
+
111,
|
|
2190
|
+
108,
|
|
2191
|
+
95,
|
|
2192
|
+
97,
|
|
2193
|
+
117,
|
|
2194
|
+
116,
|
|
2195
|
+
104,
|
|
2196
|
+
111,
|
|
2197
|
+
114,
|
|
2198
|
+
105,
|
|
2199
|
+
116,
|
|
2200
|
+
121
|
|
2201
|
+
];
|
|
2202
|
+
}
|
|
2203
|
+
];
|
|
2204
|
+
};
|
|
2205
|
+
},
|
|
2206
|
+
{
|
|
2207
|
+
name: "pool";
|
|
2208
|
+
writable: true;
|
|
2209
|
+
},
|
|
2210
|
+
{
|
|
2211
|
+
name: "rewardVault";
|
|
2212
|
+
writable: true;
|
|
2213
|
+
pda: {
|
|
2214
|
+
seeds: [
|
|
2215
|
+
{
|
|
2216
|
+
kind: "const";
|
|
2217
|
+
value: [
|
|
2218
|
+
114,
|
|
2219
|
+
101,
|
|
2220
|
+
119,
|
|
2221
|
+
97,
|
|
2222
|
+
114,
|
|
2223
|
+
100,
|
|
2224
|
+
95,
|
|
2225
|
+
118,
|
|
2226
|
+
97,
|
|
2227
|
+
117,
|
|
2228
|
+
108,
|
|
2229
|
+
116
|
|
2230
|
+
];
|
|
2231
|
+
},
|
|
2232
|
+
{
|
|
2233
|
+
kind: "account";
|
|
2234
|
+
path: "pool";
|
|
2235
|
+
},
|
|
2236
|
+
{
|
|
2237
|
+
kind: "arg";
|
|
2238
|
+
path: "rewardIndex";
|
|
2239
|
+
}
|
|
2240
|
+
];
|
|
2241
|
+
};
|
|
2242
|
+
},
|
|
2243
|
+
{
|
|
2244
|
+
name: "rewardMint";
|
|
2245
|
+
},
|
|
2246
|
+
{
|
|
2247
|
+
name: "admin";
|
|
2248
|
+
writable: true;
|
|
2249
|
+
signer: true;
|
|
2250
|
+
},
|
|
2251
|
+
{
|
|
2252
|
+
name: "tokenProgram";
|
|
2253
|
+
},
|
|
2254
|
+
{
|
|
2255
|
+
name: "systemProgram";
|
|
2256
|
+
address: "11111111111111111111111111111111";
|
|
2257
|
+
},
|
|
2258
|
+
{
|
|
2259
|
+
name: "eventAuthority";
|
|
2260
|
+
pda: {
|
|
2261
|
+
seeds: [
|
|
2262
|
+
{
|
|
2263
|
+
kind: "const";
|
|
2264
|
+
value: [
|
|
2265
|
+
95,
|
|
2266
|
+
95,
|
|
2267
|
+
101,
|
|
2268
|
+
118,
|
|
2269
|
+
101,
|
|
2270
|
+
110,
|
|
2271
|
+
116,
|
|
2272
|
+
95,
|
|
2273
|
+
97,
|
|
2274
|
+
117,
|
|
2275
|
+
116,
|
|
2276
|
+
104,
|
|
2277
|
+
111,
|
|
2278
|
+
114,
|
|
2279
|
+
105,
|
|
2280
|
+
116,
|
|
2281
|
+
121
|
|
2282
|
+
];
|
|
2283
|
+
}
|
|
2284
|
+
];
|
|
2285
|
+
};
|
|
2286
|
+
},
|
|
2287
|
+
{
|
|
2288
|
+
name: "program";
|
|
2289
|
+
}
|
|
2290
|
+
];
|
|
2291
|
+
args: [
|
|
2292
|
+
{
|
|
2293
|
+
name: "rewardIndex";
|
|
2294
|
+
type: "u8";
|
|
2295
|
+
},
|
|
2296
|
+
{
|
|
2297
|
+
name: "rewardDuration";
|
|
2298
|
+
type: "u64";
|
|
2299
|
+
},
|
|
2300
|
+
{
|
|
2301
|
+
name: "funder";
|
|
2302
|
+
type: "pubkey";
|
|
2303
|
+
}
|
|
2304
|
+
];
|
|
2305
|
+
},
|
|
1989
2306
|
{
|
|
1990
2307
|
name: "lockPosition";
|
|
1991
2308
|
discriminator: [227, 62, 2, 252, 247, 10, 171, 185];
|
|
@@ -2865,6 +3182,10 @@ type CpAmm$1 = {
|
|
|
2865
3182
|
name: "evtCreateConfig";
|
|
2866
3183
|
discriminator: [131, 207, 180, 174, 180, 73, 165, 54];
|
|
2867
3184
|
},
|
|
3185
|
+
{
|
|
3186
|
+
name: "evtCreateDynamicConfig";
|
|
3187
|
+
discriminator: [231, 197, 13, 164, 248, 213, 133, 152];
|
|
3188
|
+
},
|
|
2868
3189
|
{
|
|
2869
3190
|
name: "evtCreatePosition";
|
|
2870
3191
|
discriminator: [156, 15, 119, 198, 29, 181, 221, 55];
|
|
@@ -3118,6 +3439,16 @@ type CpAmm$1 = {
|
|
|
3118
3439
|
code: 6039;
|
|
3119
3440
|
name: "positionIsNotEmpty";
|
|
3120
3441
|
msg: "Position is not empty";
|
|
3442
|
+
},
|
|
3443
|
+
{
|
|
3444
|
+
code: 6040;
|
|
3445
|
+
name: "invalidPoolCreatorAuthority";
|
|
3446
|
+
msg: "Invalid pool creator authority";
|
|
3447
|
+
},
|
|
3448
|
+
{
|
|
3449
|
+
code: 6041;
|
|
3450
|
+
name: "invalidConfigType";
|
|
3451
|
+
msg: "Invalid config type";
|
|
3121
3452
|
}
|
|
3122
3453
|
];
|
|
3123
3454
|
types: [
|
|
@@ -3317,11 +3648,16 @@ type CpAmm$1 = {
|
|
|
3317
3648
|
docs: ["Collect fee mode"];
|
|
3318
3649
|
type: "u8";
|
|
3319
3650
|
},
|
|
3651
|
+
{
|
|
3652
|
+
name: "configType";
|
|
3653
|
+
docs: ["Config type mode, 0 for static, 1 for dynamic"];
|
|
3654
|
+
type: "u8";
|
|
3655
|
+
},
|
|
3320
3656
|
{
|
|
3321
3657
|
name: "padding0";
|
|
3322
3658
|
docs: ["padding 0"];
|
|
3323
3659
|
type: {
|
|
3324
|
-
array: ["u8",
|
|
3660
|
+
array: ["u8", 5];
|
|
3325
3661
|
};
|
|
3326
3662
|
},
|
|
3327
3663
|
{
|
|
@@ -3350,45 +3686,13 @@ type CpAmm$1 = {
|
|
|
3350
3686
|
};
|
|
3351
3687
|
},
|
|
3352
3688
|
{
|
|
3353
|
-
name: "
|
|
3689
|
+
name: "dynamicConfigParameters";
|
|
3354
3690
|
type: {
|
|
3355
3691
|
kind: "struct";
|
|
3356
3692
|
fields: [
|
|
3357
|
-
{
|
|
3358
|
-
name: "poolFees";
|
|
3359
|
-
type: {
|
|
3360
|
-
defined: {
|
|
3361
|
-
name: "poolFeeParameters";
|
|
3362
|
-
};
|
|
3363
|
-
};
|
|
3364
|
-
},
|
|
3365
|
-
{
|
|
3366
|
-
name: "sqrtMinPrice";
|
|
3367
|
-
type: "u128";
|
|
3368
|
-
},
|
|
3369
|
-
{
|
|
3370
|
-
name: "sqrtMaxPrice";
|
|
3371
|
-
type: "u128";
|
|
3372
|
-
},
|
|
3373
|
-
{
|
|
3374
|
-
name: "vaultConfigKey";
|
|
3375
|
-
type: "pubkey";
|
|
3376
|
-
},
|
|
3377
3693
|
{
|
|
3378
3694
|
name: "poolCreatorAuthority";
|
|
3379
3695
|
type: "pubkey";
|
|
3380
|
-
},
|
|
3381
|
-
{
|
|
3382
|
-
name: "activationType";
|
|
3383
|
-
type: "u8";
|
|
3384
|
-
},
|
|
3385
|
-
{
|
|
3386
|
-
name: "collectFeeMode";
|
|
3387
|
-
type: "u8";
|
|
3388
|
-
},
|
|
3389
|
-
{
|
|
3390
|
-
name: "index";
|
|
3391
|
-
type: "u64";
|
|
3392
3696
|
}
|
|
3393
3697
|
];
|
|
3394
3698
|
};
|
|
@@ -3770,7 +4074,7 @@ type CpAmm$1 = {
|
|
|
3770
4074
|
},
|
|
3771
4075
|
{
|
|
3772
4076
|
name: "evtCreateConfig";
|
|
3773
|
-
docs: ["Create config"];
|
|
4077
|
+
docs: ["Create static config"];
|
|
3774
4078
|
type: {
|
|
3775
4079
|
kind: "struct";
|
|
3776
4080
|
fields: [
|
|
@@ -3817,6 +4121,27 @@ type CpAmm$1 = {
|
|
|
3817
4121
|
];
|
|
3818
4122
|
};
|
|
3819
4123
|
},
|
|
4124
|
+
{
|
|
4125
|
+
name: "evtCreateDynamicConfig";
|
|
4126
|
+
docs: ["Create dynamic config"];
|
|
4127
|
+
type: {
|
|
4128
|
+
kind: "struct";
|
|
4129
|
+
fields: [
|
|
4130
|
+
{
|
|
4131
|
+
name: "config";
|
|
4132
|
+
type: "pubkey";
|
|
4133
|
+
},
|
|
4134
|
+
{
|
|
4135
|
+
name: "poolCreatorAuthority";
|
|
4136
|
+
type: "pubkey";
|
|
4137
|
+
},
|
|
4138
|
+
{
|
|
4139
|
+
name: "index";
|
|
4140
|
+
type: "u64";
|
|
4141
|
+
}
|
|
4142
|
+
];
|
|
4143
|
+
};
|
|
4144
|
+
},
|
|
3820
4145
|
{
|
|
3821
4146
|
name: "evtCreatePosition";
|
|
3822
4147
|
type: {
|
|
@@ -4386,14 +4711,11 @@ type CpAmm$1 = {
|
|
|
4386
4711
|
type: "u128";
|
|
4387
4712
|
},
|
|
4388
4713
|
{
|
|
4389
|
-
name: "
|
|
4390
|
-
docs: [
|
|
4391
|
-
|
|
4392
|
-
|
|
4393
|
-
|
|
4394
|
-
name: "tokenBReserve";
|
|
4395
|
-
docs: ["token b reserve"];
|
|
4396
|
-
type: "u64";
|
|
4714
|
+
name: "padding";
|
|
4715
|
+
docs: [
|
|
4716
|
+
"padding, previous reserve amount, be careful to use that field"
|
|
4717
|
+
];
|
|
4718
|
+
type: "u128";
|
|
4397
4719
|
},
|
|
4398
4720
|
{
|
|
4399
4721
|
name: "protocolAFee";
|
|
@@ -4960,6 +5282,46 @@ type CpAmm$1 = {
|
|
|
4960
5282
|
];
|
|
4961
5283
|
};
|
|
4962
5284
|
},
|
|
5285
|
+
{
|
|
5286
|
+
name: "staticConfigParameters";
|
|
5287
|
+
type: {
|
|
5288
|
+
kind: "struct";
|
|
5289
|
+
fields: [
|
|
5290
|
+
{
|
|
5291
|
+
name: "poolFees";
|
|
5292
|
+
type: {
|
|
5293
|
+
defined: {
|
|
5294
|
+
name: "poolFeeParameters";
|
|
5295
|
+
};
|
|
5296
|
+
};
|
|
5297
|
+
},
|
|
5298
|
+
{
|
|
5299
|
+
name: "sqrtMinPrice";
|
|
5300
|
+
type: "u128";
|
|
5301
|
+
},
|
|
5302
|
+
{
|
|
5303
|
+
name: "sqrtMaxPrice";
|
|
5304
|
+
type: "u128";
|
|
5305
|
+
},
|
|
5306
|
+
{
|
|
5307
|
+
name: "vaultConfigKey";
|
|
5308
|
+
type: "pubkey";
|
|
5309
|
+
},
|
|
5310
|
+
{
|
|
5311
|
+
name: "poolCreatorAuthority";
|
|
5312
|
+
type: "pubkey";
|
|
5313
|
+
},
|
|
5314
|
+
{
|
|
5315
|
+
name: "activationType";
|
|
5316
|
+
type: "u8";
|
|
5317
|
+
},
|
|
5318
|
+
{
|
|
5319
|
+
name: "collectFeeMode";
|
|
5320
|
+
type: "u8";
|
|
5321
|
+
}
|
|
5322
|
+
];
|
|
5323
|
+
};
|
|
5324
|
+
},
|
|
4963
5325
|
{
|
|
4964
5326
|
name: "swapParameters";
|
|
4965
5327
|
type: {
|
|
@@ -5207,17 +5569,28 @@ type PoolFeesParams = {
|
|
|
5207
5569
|
referralFeePercent: number;
|
|
5208
5570
|
dynamicFee: DynamicFee | null;
|
|
5209
5571
|
};
|
|
5210
|
-
type
|
|
5211
|
-
|
|
5212
|
-
creator: PublicKey;
|
|
5213
|
-
positionNft: PublicKey;
|
|
5572
|
+
type PrepareCustomizablePoolParams = {
|
|
5573
|
+
pool: PublicKey;
|
|
5214
5574
|
tokenAMint: PublicKey;
|
|
5215
5575
|
tokenBMint: PublicKey;
|
|
5216
5576
|
tokenAAmount: BN;
|
|
5217
5577
|
tokenBAmount: BN;
|
|
5218
|
-
|
|
5219
|
-
|
|
5220
|
-
|
|
5578
|
+
payer: PublicKey;
|
|
5579
|
+
positionNft: PublicKey;
|
|
5580
|
+
tokenAProgram: PublicKey;
|
|
5581
|
+
tokenBProgram: PublicKey;
|
|
5582
|
+
};
|
|
5583
|
+
type InitializeCustomizeablePoolParams = {
|
|
5584
|
+
payer: PublicKey;
|
|
5585
|
+
creator: PublicKey;
|
|
5586
|
+
positionNft: PublicKey;
|
|
5587
|
+
tokenAMint: PublicKey;
|
|
5588
|
+
tokenBMint: PublicKey;
|
|
5589
|
+
tokenAAmount: BN;
|
|
5590
|
+
tokenBAmount: BN;
|
|
5591
|
+
sqrtMinPrice: BN;
|
|
5592
|
+
sqrtMaxPrice: BN;
|
|
5593
|
+
liquidityDelta: BN;
|
|
5221
5594
|
initSqrtPrice: BN;
|
|
5222
5595
|
poolFees: PoolFeesParams;
|
|
5223
5596
|
hasAlphaVault: boolean;
|
|
@@ -5227,6 +5600,10 @@ type InitializeCustomizeablePoolParams = {
|
|
|
5227
5600
|
tokenAProgram: PublicKey;
|
|
5228
5601
|
tokenBProgram: PublicKey;
|
|
5229
5602
|
};
|
|
5603
|
+
type InitializeCustomizeablePoolWithDynamicConfigParams = InitializeCustomizeablePoolParams & {
|
|
5604
|
+
config: PublicKey;
|
|
5605
|
+
poolCreatorAuthority: PublicKey;
|
|
5606
|
+
};
|
|
5230
5607
|
type PreparePoolCreationParams = {
|
|
5231
5608
|
tokenAAmount: BN;
|
|
5232
5609
|
tokenBAmount: BN;
|
|
@@ -5691,6 +6068,12 @@ declare class CpAmm {
|
|
|
5691
6068
|
* @returns Transaction instruction.
|
|
5692
6069
|
*/
|
|
5693
6070
|
private buildCreatePositionInstruction;
|
|
6071
|
+
/**
|
|
6072
|
+
* Private helper method to prepare common customizable pool creation logic
|
|
6073
|
+
* @param {PrepareCustomizablePoolParams} params - Common parameters for pool creation
|
|
6074
|
+
* @returns Prepared transaction data including instructions and accounts
|
|
6075
|
+
*/
|
|
6076
|
+
private prepareCreateCustomizablePoolParams;
|
|
5694
6077
|
/**
|
|
5695
6078
|
* Fetches the Config state of the program.
|
|
5696
6079
|
* @param config - Public key of the config account.
|
|
@@ -5868,6 +6251,11 @@ declare class CpAmm {
|
|
|
5868
6251
|
pool: PublicKey;
|
|
5869
6252
|
position: PublicKey;
|
|
5870
6253
|
}>;
|
|
6254
|
+
createCustomPoolWithDynamicConfig(params: InitializeCustomizeablePoolWithDynamicConfigParams): Promise<{
|
|
6255
|
+
tx: Transaction;
|
|
6256
|
+
pool: PublicKey;
|
|
6257
|
+
position: PublicKey;
|
|
6258
|
+
}>;
|
|
5871
6259
|
/**
|
|
5872
6260
|
* Builds a transaction to create a position.
|
|
5873
6261
|
* @param {CreatePositionParams} params - Parameters for position creation.
|
|
@@ -6236,7 +6624,7 @@ declare function decimalToQ64(num: Decimal): BN;
|
|
|
6236
6624
|
var address = "cpamdpZCGKUy5JxQXB4dcpGPiikHawvSWAd6mEn1sGG";
|
|
6237
6625
|
var metadata = {
|
|
6238
6626
|
name: "cp_amm",
|
|
6239
|
-
version: "0.1.
|
|
6627
|
+
version: "0.1.1",
|
|
6240
6628
|
spec: "0.1.0",
|
|
6241
6629
|
description: "Created with Anchor"
|
|
6242
6630
|
};
|
|
@@ -6798,38 +7186,38 @@ var instructions = [
|
|
|
6798
7186
|
{
|
|
6799
7187
|
kind: "const",
|
|
6800
7188
|
value: [
|
|
6801
|
-
|
|
6802
|
-
|
|
6803
|
-
|
|
6804
|
-
|
|
6805
|
-
|
|
6806
|
-
|
|
6807
|
-
|
|
7189
|
+
48,
|
|
7190
|
+
9,
|
|
7191
|
+
89,
|
|
7192
|
+
123,
|
|
7193
|
+
106,
|
|
7194
|
+
114,
|
|
7195
|
+
131,
|
|
7196
|
+
251,
|
|
7197
|
+
50,
|
|
6808
7198
|
173,
|
|
6809
|
-
|
|
6810
|
-
|
|
6811
|
-
|
|
6812
|
-
|
|
6813
|
-
|
|
6814
|
-
|
|
6815
|
-
|
|
6816
|
-
|
|
6817
|
-
161,
|
|
6818
|
-
33,
|
|
7199
|
+
254,
|
|
7200
|
+
250,
|
|
7201
|
+
10,
|
|
7202
|
+
80,
|
|
7203
|
+
160,
|
|
7204
|
+
84,
|
|
7205
|
+
143,
|
|
7206
|
+
100,
|
|
6819
7207
|
81,
|
|
6820
|
-
|
|
7208
|
+
249,
|
|
7209
|
+
134,
|
|
7210
|
+
112,
|
|
7211
|
+
30,
|
|
7212
|
+
213,
|
|
7213
|
+
50,
|
|
6821
7214
|
166,
|
|
6822
|
-
|
|
6823
|
-
|
|
6824
|
-
|
|
6825
|
-
|
|
6826
|
-
|
|
6827
|
-
|
|
6828
|
-
68,
|
|
6829
|
-
162,
|
|
6830
|
-
70,
|
|
6831
|
-
126,
|
|
6832
|
-
100
|
|
7215
|
+
239,
|
|
7216
|
+
78,
|
|
7217
|
+
53,
|
|
7218
|
+
175,
|
|
7219
|
+
188,
|
|
7220
|
+
85
|
|
6833
7221
|
]
|
|
6834
7222
|
},
|
|
6835
7223
|
{
|
|
@@ -6891,38 +7279,38 @@ var instructions = [
|
|
|
6891
7279
|
{
|
|
6892
7280
|
kind: "const",
|
|
6893
7281
|
value: [
|
|
6894
|
-
|
|
6895
|
-
|
|
6896
|
-
|
|
6897
|
-
|
|
6898
|
-
|
|
6899
|
-
|
|
6900
|
-
|
|
7282
|
+
48,
|
|
7283
|
+
9,
|
|
7284
|
+
89,
|
|
7285
|
+
123,
|
|
7286
|
+
106,
|
|
7287
|
+
114,
|
|
7288
|
+
131,
|
|
7289
|
+
251,
|
|
7290
|
+
50,
|
|
6901
7291
|
173,
|
|
6902
|
-
|
|
6903
|
-
|
|
6904
|
-
|
|
6905
|
-
|
|
6906
|
-
|
|
6907
|
-
|
|
6908
|
-
|
|
6909
|
-
|
|
6910
|
-
161,
|
|
6911
|
-
33,
|
|
7292
|
+
254,
|
|
7293
|
+
250,
|
|
7294
|
+
10,
|
|
7295
|
+
80,
|
|
7296
|
+
160,
|
|
7297
|
+
84,
|
|
7298
|
+
143,
|
|
7299
|
+
100,
|
|
6912
7300
|
81,
|
|
6913
|
-
|
|
7301
|
+
249,
|
|
7302
|
+
134,
|
|
7303
|
+
112,
|
|
7304
|
+
30,
|
|
7305
|
+
213,
|
|
7306
|
+
50,
|
|
6914
7307
|
166,
|
|
6915
|
-
|
|
6916
|
-
|
|
6917
|
-
|
|
6918
|
-
|
|
6919
|
-
|
|
6920
|
-
|
|
6921
|
-
68,
|
|
6922
|
-
162,
|
|
6923
|
-
70,
|
|
6924
|
-
126,
|
|
6925
|
-
100
|
|
7308
|
+
239,
|
|
7309
|
+
78,
|
|
7310
|
+
53,
|
|
7311
|
+
175,
|
|
7312
|
+
188,
|
|
7313
|
+
85
|
|
6926
7314
|
]
|
|
6927
7315
|
},
|
|
6928
7316
|
{
|
|
@@ -7521,7 +7909,7 @@ var instructions = [
|
|
|
7521
7909
|
},
|
|
7522
7910
|
{
|
|
7523
7911
|
kind: "arg",
|
|
7524
|
-
path: "
|
|
7912
|
+
path: "index"
|
|
7525
7913
|
}
|
|
7526
7914
|
]
|
|
7527
7915
|
}
|
|
@@ -7569,11 +7957,108 @@ var instructions = [
|
|
|
7569
7957
|
}
|
|
7570
7958
|
],
|
|
7571
7959
|
args: [
|
|
7960
|
+
{
|
|
7961
|
+
name: "index",
|
|
7962
|
+
type: "u64"
|
|
7963
|
+
},
|
|
7572
7964
|
{
|
|
7573
7965
|
name: "config_parameters",
|
|
7574
7966
|
type: {
|
|
7575
7967
|
defined: {
|
|
7576
|
-
name: "
|
|
7968
|
+
name: "StaticConfigParameters"
|
|
7969
|
+
}
|
|
7970
|
+
}
|
|
7971
|
+
}
|
|
7972
|
+
]
|
|
7973
|
+
},
|
|
7974
|
+
{
|
|
7975
|
+
name: "create_dynamic_config",
|
|
7976
|
+
discriminator: [
|
|
7977
|
+
81,
|
|
7978
|
+
251,
|
|
7979
|
+
122,
|
|
7980
|
+
78,
|
|
7981
|
+
66,
|
|
7982
|
+
57,
|
|
7983
|
+
208,
|
|
7984
|
+
82
|
|
7985
|
+
],
|
|
7986
|
+
accounts: [
|
|
7987
|
+
{
|
|
7988
|
+
name: "config",
|
|
7989
|
+
writable: true,
|
|
7990
|
+
pda: {
|
|
7991
|
+
seeds: [
|
|
7992
|
+
{
|
|
7993
|
+
kind: "const",
|
|
7994
|
+
value: [
|
|
7995
|
+
99,
|
|
7996
|
+
111,
|
|
7997
|
+
110,
|
|
7998
|
+
102,
|
|
7999
|
+
105,
|
|
8000
|
+
103
|
|
8001
|
+
]
|
|
8002
|
+
},
|
|
8003
|
+
{
|
|
8004
|
+
kind: "arg",
|
|
8005
|
+
path: "index"
|
|
8006
|
+
}
|
|
8007
|
+
]
|
|
8008
|
+
}
|
|
8009
|
+
},
|
|
8010
|
+
{
|
|
8011
|
+
name: "admin",
|
|
8012
|
+
writable: true,
|
|
8013
|
+
signer: true
|
|
8014
|
+
},
|
|
8015
|
+
{
|
|
8016
|
+
name: "system_program",
|
|
8017
|
+
address: "11111111111111111111111111111111"
|
|
8018
|
+
},
|
|
8019
|
+
{
|
|
8020
|
+
name: "event_authority",
|
|
8021
|
+
pda: {
|
|
8022
|
+
seeds: [
|
|
8023
|
+
{
|
|
8024
|
+
kind: "const",
|
|
8025
|
+
value: [
|
|
8026
|
+
95,
|
|
8027
|
+
95,
|
|
8028
|
+
101,
|
|
8029
|
+
118,
|
|
8030
|
+
101,
|
|
8031
|
+
110,
|
|
8032
|
+
116,
|
|
8033
|
+
95,
|
|
8034
|
+
97,
|
|
8035
|
+
117,
|
|
8036
|
+
116,
|
|
8037
|
+
104,
|
|
8038
|
+
111,
|
|
8039
|
+
114,
|
|
8040
|
+
105,
|
|
8041
|
+
116,
|
|
8042
|
+
121
|
|
8043
|
+
]
|
|
8044
|
+
}
|
|
8045
|
+
]
|
|
8046
|
+
}
|
|
8047
|
+
},
|
|
8048
|
+
{
|
|
8049
|
+
name: "program"
|
|
8050
|
+
}
|
|
8051
|
+
],
|
|
8052
|
+
args: [
|
|
8053
|
+
{
|
|
8054
|
+
name: "index",
|
|
8055
|
+
type: "u64"
|
|
8056
|
+
},
|
|
8057
|
+
{
|
|
8058
|
+
name: "config_parameters",
|
|
8059
|
+
type: {
|
|
8060
|
+
defined: {
|
|
8061
|
+
name: "DynamicConfigParameters"
|
|
7577
8062
|
}
|
|
7578
8063
|
}
|
|
7579
8064
|
}
|
|
@@ -7836,46 +8321,343 @@ var instructions = [
|
|
|
7836
8321
|
}
|
|
7837
8322
|
},
|
|
7838
8323
|
{
|
|
7839
|
-
name: "program"
|
|
7840
|
-
}
|
|
7841
|
-
],
|
|
7842
|
-
args: [
|
|
7843
|
-
]
|
|
7844
|
-
},
|
|
7845
|
-
{
|
|
7846
|
-
name: "fund_reward",
|
|
7847
|
-
discriminator: [
|
|
7848
|
-
188,
|
|
7849
|
-
50,
|
|
7850
|
-
249,
|
|
7851
|
-
165,
|
|
7852
|
-
93,
|
|
7853
|
-
151,
|
|
7854
|
-
38,
|
|
7855
|
-
63
|
|
7856
|
-
],
|
|
7857
|
-
accounts: [
|
|
7858
|
-
{
|
|
7859
|
-
name: "pool",
|
|
8324
|
+
name: "program"
|
|
8325
|
+
}
|
|
8326
|
+
],
|
|
8327
|
+
args: [
|
|
8328
|
+
]
|
|
8329
|
+
},
|
|
8330
|
+
{
|
|
8331
|
+
name: "fund_reward",
|
|
8332
|
+
discriminator: [
|
|
8333
|
+
188,
|
|
8334
|
+
50,
|
|
8335
|
+
249,
|
|
8336
|
+
165,
|
|
8337
|
+
93,
|
|
8338
|
+
151,
|
|
8339
|
+
38,
|
|
8340
|
+
63
|
|
8341
|
+
],
|
|
8342
|
+
accounts: [
|
|
8343
|
+
{
|
|
8344
|
+
name: "pool",
|
|
8345
|
+
writable: true
|
|
8346
|
+
},
|
|
8347
|
+
{
|
|
8348
|
+
name: "reward_vault",
|
|
8349
|
+
writable: true
|
|
8350
|
+
},
|
|
8351
|
+
{
|
|
8352
|
+
name: "reward_mint"
|
|
8353
|
+
},
|
|
8354
|
+
{
|
|
8355
|
+
name: "funder_token_account",
|
|
8356
|
+
writable: true
|
|
8357
|
+
},
|
|
8358
|
+
{
|
|
8359
|
+
name: "funder",
|
|
8360
|
+
signer: true
|
|
8361
|
+
},
|
|
8362
|
+
{
|
|
8363
|
+
name: "token_program"
|
|
8364
|
+
},
|
|
8365
|
+
{
|
|
8366
|
+
name: "event_authority",
|
|
8367
|
+
pda: {
|
|
8368
|
+
seeds: [
|
|
8369
|
+
{
|
|
8370
|
+
kind: "const",
|
|
8371
|
+
value: [
|
|
8372
|
+
95,
|
|
8373
|
+
95,
|
|
8374
|
+
101,
|
|
8375
|
+
118,
|
|
8376
|
+
101,
|
|
8377
|
+
110,
|
|
8378
|
+
116,
|
|
8379
|
+
95,
|
|
8380
|
+
97,
|
|
8381
|
+
117,
|
|
8382
|
+
116,
|
|
8383
|
+
104,
|
|
8384
|
+
111,
|
|
8385
|
+
114,
|
|
8386
|
+
105,
|
|
8387
|
+
116,
|
|
8388
|
+
121
|
|
8389
|
+
]
|
|
8390
|
+
}
|
|
8391
|
+
]
|
|
8392
|
+
}
|
|
8393
|
+
},
|
|
8394
|
+
{
|
|
8395
|
+
name: "program"
|
|
8396
|
+
}
|
|
8397
|
+
],
|
|
8398
|
+
args: [
|
|
8399
|
+
{
|
|
8400
|
+
name: "reward_index",
|
|
8401
|
+
type: "u8"
|
|
8402
|
+
},
|
|
8403
|
+
{
|
|
8404
|
+
name: "amount",
|
|
8405
|
+
type: "u64"
|
|
8406
|
+
},
|
|
8407
|
+
{
|
|
8408
|
+
name: "carry_forward",
|
|
8409
|
+
type: "bool"
|
|
8410
|
+
}
|
|
8411
|
+
]
|
|
8412
|
+
},
|
|
8413
|
+
{
|
|
8414
|
+
name: "initialize_customizable_pool",
|
|
8415
|
+
discriminator: [
|
|
8416
|
+
20,
|
|
8417
|
+
161,
|
|
8418
|
+
241,
|
|
8419
|
+
24,
|
|
8420
|
+
189,
|
|
8421
|
+
221,
|
|
8422
|
+
180,
|
|
8423
|
+
2
|
|
8424
|
+
],
|
|
8425
|
+
accounts: [
|
|
8426
|
+
{
|
|
8427
|
+
name: "creator"
|
|
8428
|
+
},
|
|
8429
|
+
{
|
|
8430
|
+
name: "position_nft_mint",
|
|
8431
|
+
docs: [
|
|
8432
|
+
"position_nft_mint"
|
|
8433
|
+
],
|
|
8434
|
+
writable: true,
|
|
8435
|
+
signer: true
|
|
8436
|
+
},
|
|
8437
|
+
{
|
|
8438
|
+
name: "position_nft_account",
|
|
8439
|
+
docs: [
|
|
8440
|
+
"position nft account"
|
|
8441
|
+
],
|
|
8442
|
+
writable: true,
|
|
8443
|
+
pda: {
|
|
8444
|
+
seeds: [
|
|
8445
|
+
{
|
|
8446
|
+
kind: "const",
|
|
8447
|
+
value: [
|
|
8448
|
+
112,
|
|
8449
|
+
111,
|
|
8450
|
+
115,
|
|
8451
|
+
105,
|
|
8452
|
+
116,
|
|
8453
|
+
105,
|
|
8454
|
+
111,
|
|
8455
|
+
110,
|
|
8456
|
+
95,
|
|
8457
|
+
110,
|
|
8458
|
+
102,
|
|
8459
|
+
116,
|
|
8460
|
+
95,
|
|
8461
|
+
97,
|
|
8462
|
+
99,
|
|
8463
|
+
99,
|
|
8464
|
+
111,
|
|
8465
|
+
117,
|
|
8466
|
+
110,
|
|
8467
|
+
116
|
|
8468
|
+
]
|
|
8469
|
+
},
|
|
8470
|
+
{
|
|
8471
|
+
kind: "account",
|
|
8472
|
+
path: "position_nft_mint"
|
|
8473
|
+
}
|
|
8474
|
+
]
|
|
8475
|
+
}
|
|
8476
|
+
},
|
|
8477
|
+
{
|
|
8478
|
+
name: "payer",
|
|
8479
|
+
docs: [
|
|
8480
|
+
"Address paying to create the pool. Can be anyone"
|
|
8481
|
+
],
|
|
8482
|
+
writable: true,
|
|
8483
|
+
signer: true
|
|
8484
|
+
},
|
|
8485
|
+
{
|
|
8486
|
+
name: "pool_authority",
|
|
8487
|
+
pda: {
|
|
8488
|
+
seeds: [
|
|
8489
|
+
{
|
|
8490
|
+
kind: "const",
|
|
8491
|
+
value: [
|
|
8492
|
+
112,
|
|
8493
|
+
111,
|
|
8494
|
+
111,
|
|
8495
|
+
108,
|
|
8496
|
+
95,
|
|
8497
|
+
97,
|
|
8498
|
+
117,
|
|
8499
|
+
116,
|
|
8500
|
+
104,
|
|
8501
|
+
111,
|
|
8502
|
+
114,
|
|
8503
|
+
105,
|
|
8504
|
+
116,
|
|
8505
|
+
121
|
|
8506
|
+
]
|
|
8507
|
+
}
|
|
8508
|
+
]
|
|
8509
|
+
}
|
|
8510
|
+
},
|
|
8511
|
+
{
|
|
8512
|
+
name: "pool",
|
|
8513
|
+
docs: [
|
|
8514
|
+
"Initialize an account to store the pool state"
|
|
8515
|
+
],
|
|
8516
|
+
writable: true
|
|
8517
|
+
},
|
|
8518
|
+
{
|
|
8519
|
+
name: "position",
|
|
8520
|
+
writable: true,
|
|
8521
|
+
pda: {
|
|
8522
|
+
seeds: [
|
|
8523
|
+
{
|
|
8524
|
+
kind: "const",
|
|
8525
|
+
value: [
|
|
8526
|
+
112,
|
|
8527
|
+
111,
|
|
8528
|
+
115,
|
|
8529
|
+
105,
|
|
8530
|
+
116,
|
|
8531
|
+
105,
|
|
8532
|
+
111,
|
|
8533
|
+
110
|
|
8534
|
+
]
|
|
8535
|
+
},
|
|
8536
|
+
{
|
|
8537
|
+
kind: "account",
|
|
8538
|
+
path: "position_nft_mint"
|
|
8539
|
+
}
|
|
8540
|
+
]
|
|
8541
|
+
}
|
|
8542
|
+
},
|
|
8543
|
+
{
|
|
8544
|
+
name: "token_a_mint",
|
|
8545
|
+
docs: [
|
|
8546
|
+
"Token a mint"
|
|
8547
|
+
]
|
|
8548
|
+
},
|
|
8549
|
+
{
|
|
8550
|
+
name: "token_b_mint",
|
|
8551
|
+
docs: [
|
|
8552
|
+
"Token b mint"
|
|
8553
|
+
]
|
|
8554
|
+
},
|
|
8555
|
+
{
|
|
8556
|
+
name: "token_a_vault",
|
|
8557
|
+
docs: [
|
|
8558
|
+
"Token a vault for the pool"
|
|
8559
|
+
],
|
|
8560
|
+
writable: true,
|
|
8561
|
+
pda: {
|
|
8562
|
+
seeds: [
|
|
8563
|
+
{
|
|
8564
|
+
kind: "const",
|
|
8565
|
+
value: [
|
|
8566
|
+
116,
|
|
8567
|
+
111,
|
|
8568
|
+
107,
|
|
8569
|
+
101,
|
|
8570
|
+
110,
|
|
8571
|
+
95,
|
|
8572
|
+
118,
|
|
8573
|
+
97,
|
|
8574
|
+
117,
|
|
8575
|
+
108,
|
|
8576
|
+
116
|
|
8577
|
+
]
|
|
8578
|
+
},
|
|
8579
|
+
{
|
|
8580
|
+
kind: "account",
|
|
8581
|
+
path: "token_a_mint"
|
|
8582
|
+
},
|
|
8583
|
+
{
|
|
8584
|
+
kind: "account",
|
|
8585
|
+
path: "pool"
|
|
8586
|
+
}
|
|
8587
|
+
]
|
|
8588
|
+
}
|
|
8589
|
+
},
|
|
8590
|
+
{
|
|
8591
|
+
name: "token_b_vault",
|
|
8592
|
+
docs: [
|
|
8593
|
+
"Token b vault for the pool"
|
|
8594
|
+
],
|
|
8595
|
+
writable: true,
|
|
8596
|
+
pda: {
|
|
8597
|
+
seeds: [
|
|
8598
|
+
{
|
|
8599
|
+
kind: "const",
|
|
8600
|
+
value: [
|
|
8601
|
+
116,
|
|
8602
|
+
111,
|
|
8603
|
+
107,
|
|
8604
|
+
101,
|
|
8605
|
+
110,
|
|
8606
|
+
95,
|
|
8607
|
+
118,
|
|
8608
|
+
97,
|
|
8609
|
+
117,
|
|
8610
|
+
108,
|
|
8611
|
+
116
|
|
8612
|
+
]
|
|
8613
|
+
},
|
|
8614
|
+
{
|
|
8615
|
+
kind: "account",
|
|
8616
|
+
path: "token_b_mint"
|
|
8617
|
+
},
|
|
8618
|
+
{
|
|
8619
|
+
kind: "account",
|
|
8620
|
+
path: "pool"
|
|
8621
|
+
}
|
|
8622
|
+
]
|
|
8623
|
+
}
|
|
8624
|
+
},
|
|
8625
|
+
{
|
|
8626
|
+
name: "payer_token_a",
|
|
8627
|
+
docs: [
|
|
8628
|
+
"payer token a account"
|
|
8629
|
+
],
|
|
7860
8630
|
writable: true
|
|
7861
8631
|
},
|
|
7862
8632
|
{
|
|
7863
|
-
name: "
|
|
8633
|
+
name: "payer_token_b",
|
|
8634
|
+
docs: [
|
|
8635
|
+
"creator token b account"
|
|
8636
|
+
],
|
|
7864
8637
|
writable: true
|
|
7865
8638
|
},
|
|
7866
8639
|
{
|
|
7867
|
-
name: "
|
|
8640
|
+
name: "token_a_program",
|
|
8641
|
+
docs: [
|
|
8642
|
+
"Program to create mint account and mint tokens"
|
|
8643
|
+
]
|
|
7868
8644
|
},
|
|
7869
8645
|
{
|
|
7870
|
-
name: "
|
|
7871
|
-
|
|
8646
|
+
name: "token_b_program",
|
|
8647
|
+
docs: [
|
|
8648
|
+
"Program to create mint account and mint tokens"
|
|
8649
|
+
]
|
|
7872
8650
|
},
|
|
7873
8651
|
{
|
|
7874
|
-
name: "
|
|
7875
|
-
|
|
8652
|
+
name: "token_2022_program",
|
|
8653
|
+
docs: [
|
|
8654
|
+
"Program to create NFT mint/token account and transfer for token22 account"
|
|
8655
|
+
],
|
|
8656
|
+
address: "TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb"
|
|
7876
8657
|
},
|
|
7877
8658
|
{
|
|
7878
|
-
name: "
|
|
8659
|
+
name: "system_program",
|
|
8660
|
+
address: "11111111111111111111111111111111"
|
|
7879
8661
|
},
|
|
7880
8662
|
{
|
|
7881
8663
|
name: "event_authority",
|
|
@@ -7912,30 +8694,29 @@ var instructions = [
|
|
|
7912
8694
|
],
|
|
7913
8695
|
args: [
|
|
7914
8696
|
{
|
|
7915
|
-
name: "
|
|
7916
|
-
type:
|
|
7917
|
-
|
|
7918
|
-
|
|
7919
|
-
|
|
7920
|
-
|
|
7921
|
-
},
|
|
7922
|
-
{
|
|
7923
|
-
name: "carry_forward",
|
|
7924
|
-
type: "bool"
|
|
8697
|
+
name: "params",
|
|
8698
|
+
type: {
|
|
8699
|
+
defined: {
|
|
8700
|
+
name: "InitializeCustomizablePoolParameters"
|
|
8701
|
+
}
|
|
8702
|
+
}
|
|
7925
8703
|
}
|
|
7926
8704
|
]
|
|
7927
8705
|
},
|
|
7928
8706
|
{
|
|
7929
|
-
name: "
|
|
8707
|
+
name: "initialize_pool",
|
|
8708
|
+
docs: [
|
|
8709
|
+
"USER FUNCTIONS ////"
|
|
8710
|
+
],
|
|
7930
8711
|
discriminator: [
|
|
7931
|
-
|
|
7932
|
-
161,
|
|
7933
|
-
241,
|
|
7934
|
-
24,
|
|
7935
|
-
189,
|
|
7936
|
-
221,
|
|
8712
|
+
95,
|
|
7937
8713
|
180,
|
|
7938
|
-
|
|
8714
|
+
10,
|
|
8715
|
+
172,
|
|
8716
|
+
84,
|
|
8717
|
+
174,
|
|
8718
|
+
232,
|
|
8719
|
+
40
|
|
7939
8720
|
],
|
|
7940
8721
|
accounts: [
|
|
7941
8722
|
{
|
|
@@ -7997,6 +8778,12 @@ var instructions = [
|
|
|
7997
8778
|
writable: true,
|
|
7998
8779
|
signer: true
|
|
7999
8780
|
},
|
|
8781
|
+
{
|
|
8782
|
+
name: "config",
|
|
8783
|
+
docs: [
|
|
8784
|
+
"Which config the pool belongs to."
|
|
8785
|
+
]
|
|
8786
|
+
},
|
|
8000
8787
|
{
|
|
8001
8788
|
name: "pool_authority",
|
|
8002
8789
|
pda: {
|
|
@@ -8212,26 +8999,23 @@ var instructions = [
|
|
|
8212
8999
|
name: "params",
|
|
8213
9000
|
type: {
|
|
8214
9001
|
defined: {
|
|
8215
|
-
name: "
|
|
9002
|
+
name: "InitializePoolParameters"
|
|
8216
9003
|
}
|
|
8217
9004
|
}
|
|
8218
9005
|
}
|
|
8219
9006
|
]
|
|
8220
9007
|
},
|
|
8221
9008
|
{
|
|
8222
|
-
name: "
|
|
8223
|
-
docs: [
|
|
8224
|
-
"USER FUNCTIONS ////"
|
|
8225
|
-
],
|
|
9009
|
+
name: "initialize_pool_with_dynamic_config",
|
|
8226
9010
|
discriminator: [
|
|
8227
|
-
|
|
8228
|
-
|
|
8229
|
-
|
|
8230
|
-
|
|
8231
|
-
|
|
8232
|
-
|
|
8233
|
-
|
|
8234
|
-
|
|
9011
|
+
149,
|
|
9012
|
+
82,
|
|
9013
|
+
72,
|
|
9014
|
+
197,
|
|
9015
|
+
253,
|
|
9016
|
+
252,
|
|
9017
|
+
68,
|
|
9018
|
+
15
|
|
8235
9019
|
],
|
|
8236
9020
|
accounts: [
|
|
8237
9021
|
{
|
|
@@ -8293,6 +9077,13 @@ var instructions = [
|
|
|
8293
9077
|
writable: true,
|
|
8294
9078
|
signer: true
|
|
8295
9079
|
},
|
|
9080
|
+
{
|
|
9081
|
+
name: "pool_creator_authority",
|
|
9082
|
+
signer: true,
|
|
9083
|
+
relations: [
|
|
9084
|
+
"config"
|
|
9085
|
+
]
|
|
9086
|
+
},
|
|
8296
9087
|
{
|
|
8297
9088
|
name: "config",
|
|
8298
9089
|
docs: [
|
|
@@ -8514,7 +9305,7 @@ var instructions = [
|
|
|
8514
9305
|
name: "params",
|
|
8515
9306
|
type: {
|
|
8516
9307
|
defined: {
|
|
8517
|
-
name: "
|
|
9308
|
+
name: "InitializeCustomizablePoolParameters"
|
|
8518
9309
|
}
|
|
8519
9310
|
}
|
|
8520
9311
|
}
|
|
@@ -9875,6 +10666,19 @@ var events = [
|
|
|
9875
10666
|
54
|
|
9876
10667
|
]
|
|
9877
10668
|
},
|
|
10669
|
+
{
|
|
10670
|
+
name: "EvtCreateDynamicConfig",
|
|
10671
|
+
discriminator: [
|
|
10672
|
+
231,
|
|
10673
|
+
197,
|
|
10674
|
+
13,
|
|
10675
|
+
164,
|
|
10676
|
+
248,
|
|
10677
|
+
213,
|
|
10678
|
+
133,
|
|
10679
|
+
152
|
|
10680
|
+
]
|
|
10681
|
+
},
|
|
9878
10682
|
{
|
|
9879
10683
|
name: "EvtCreatePosition",
|
|
9880
10684
|
discriminator: [
|
|
@@ -10245,6 +11049,16 @@ var errors = [
|
|
|
10245
11049
|
code: 6039,
|
|
10246
11050
|
name: "PositionIsNotEmpty",
|
|
10247
11051
|
msg: "Position is not empty"
|
|
11052
|
+
},
|
|
11053
|
+
{
|
|
11054
|
+
code: 6040,
|
|
11055
|
+
name: "InvalidPoolCreatorAuthority",
|
|
11056
|
+
msg: "Invalid pool creator authority"
|
|
11057
|
+
},
|
|
11058
|
+
{
|
|
11059
|
+
code: 6041,
|
|
11060
|
+
name: "InvalidConfigType",
|
|
11061
|
+
msg: "Invalid config type"
|
|
10248
11062
|
}
|
|
10249
11063
|
];
|
|
10250
11064
|
var types = [
|
|
@@ -10473,6 +11287,13 @@ var types = [
|
|
|
10473
11287
|
],
|
|
10474
11288
|
type: "u8"
|
|
10475
11289
|
},
|
|
11290
|
+
{
|
|
11291
|
+
name: "config_type",
|
|
11292
|
+
docs: [
|
|
11293
|
+
"Config type mode, 0 for static, 1 for dynamic"
|
|
11294
|
+
],
|
|
11295
|
+
type: "u8"
|
|
11296
|
+
},
|
|
10476
11297
|
{
|
|
10477
11298
|
name: "_padding_0",
|
|
10478
11299
|
docs: [
|
|
@@ -10481,7 +11302,7 @@ var types = [
|
|
|
10481
11302
|
type: {
|
|
10482
11303
|
array: [
|
|
10483
11304
|
"u8",
|
|
10484
|
-
|
|
11305
|
+
5
|
|
10485
11306
|
]
|
|
10486
11307
|
}
|
|
10487
11308
|
},
|
|
@@ -10523,45 +11344,13 @@ var types = [
|
|
|
10523
11344
|
}
|
|
10524
11345
|
},
|
|
10525
11346
|
{
|
|
10526
|
-
name: "
|
|
11347
|
+
name: "DynamicConfigParameters",
|
|
10527
11348
|
type: {
|
|
10528
11349
|
kind: "struct",
|
|
10529
11350
|
fields: [
|
|
10530
|
-
{
|
|
10531
|
-
name: "pool_fees",
|
|
10532
|
-
type: {
|
|
10533
|
-
defined: {
|
|
10534
|
-
name: "PoolFeeParameters"
|
|
10535
|
-
}
|
|
10536
|
-
}
|
|
10537
|
-
},
|
|
10538
|
-
{
|
|
10539
|
-
name: "sqrt_min_price",
|
|
10540
|
-
type: "u128"
|
|
10541
|
-
},
|
|
10542
|
-
{
|
|
10543
|
-
name: "sqrt_max_price",
|
|
10544
|
-
type: "u128"
|
|
10545
|
-
},
|
|
10546
|
-
{
|
|
10547
|
-
name: "vault_config_key",
|
|
10548
|
-
type: "pubkey"
|
|
10549
|
-
},
|
|
10550
11351
|
{
|
|
10551
11352
|
name: "pool_creator_authority",
|
|
10552
11353
|
type: "pubkey"
|
|
10553
|
-
},
|
|
10554
|
-
{
|
|
10555
|
-
name: "activation_type",
|
|
10556
|
-
type: "u8"
|
|
10557
|
-
},
|
|
10558
|
-
{
|
|
10559
|
-
name: "collect_fee_mode",
|
|
10560
|
-
type: "u8"
|
|
10561
|
-
},
|
|
10562
|
-
{
|
|
10563
|
-
name: "index",
|
|
10564
|
-
type: "u64"
|
|
10565
11354
|
}
|
|
10566
11355
|
]
|
|
10567
11356
|
}
|
|
@@ -10963,7 +11752,7 @@ var types = [
|
|
|
10963
11752
|
{
|
|
10964
11753
|
name: "EvtCreateConfig",
|
|
10965
11754
|
docs: [
|
|
10966
|
-
"Create config"
|
|
11755
|
+
"Create static config"
|
|
10967
11756
|
],
|
|
10968
11757
|
type: {
|
|
10969
11758
|
kind: "struct",
|
|
@@ -11011,6 +11800,29 @@ var types = [
|
|
|
11011
11800
|
]
|
|
11012
11801
|
}
|
|
11013
11802
|
},
|
|
11803
|
+
{
|
|
11804
|
+
name: "EvtCreateDynamicConfig",
|
|
11805
|
+
docs: [
|
|
11806
|
+
"Create dynamic config"
|
|
11807
|
+
],
|
|
11808
|
+
type: {
|
|
11809
|
+
kind: "struct",
|
|
11810
|
+
fields: [
|
|
11811
|
+
{
|
|
11812
|
+
name: "config",
|
|
11813
|
+
type: "pubkey"
|
|
11814
|
+
},
|
|
11815
|
+
{
|
|
11816
|
+
name: "pool_creator_authority",
|
|
11817
|
+
type: "pubkey"
|
|
11818
|
+
},
|
|
11819
|
+
{
|
|
11820
|
+
name: "index",
|
|
11821
|
+
type: "u64"
|
|
11822
|
+
}
|
|
11823
|
+
]
|
|
11824
|
+
}
|
|
11825
|
+
},
|
|
11014
11826
|
{
|
|
11015
11827
|
name: "EvtCreatePosition",
|
|
11016
11828
|
type: {
|
|
@@ -11616,18 +12428,11 @@ var types = [
|
|
|
11616
12428
|
type: "u128"
|
|
11617
12429
|
},
|
|
11618
12430
|
{
|
|
11619
|
-
name: "
|
|
11620
|
-
docs: [
|
|
11621
|
-
"token a reserve"
|
|
11622
|
-
],
|
|
11623
|
-
type: "u64"
|
|
11624
|
-
},
|
|
11625
|
-
{
|
|
11626
|
-
name: "token_b_reserve",
|
|
12431
|
+
name: "_padding",
|
|
11627
12432
|
docs: [
|
|
11628
|
-
"
|
|
12433
|
+
"padding, previous reserve amount, be careful to use that field"
|
|
11629
12434
|
],
|
|
11630
|
-
type: "
|
|
12435
|
+
type: "u128"
|
|
11631
12436
|
},
|
|
11632
12437
|
{
|
|
11633
12438
|
name: "protocol_a_fee",
|
|
@@ -12350,6 +13155,46 @@ var types = [
|
|
|
12350
13155
|
]
|
|
12351
13156
|
}
|
|
12352
13157
|
},
|
|
13158
|
+
{
|
|
13159
|
+
name: "StaticConfigParameters",
|
|
13160
|
+
type: {
|
|
13161
|
+
kind: "struct",
|
|
13162
|
+
fields: [
|
|
13163
|
+
{
|
|
13164
|
+
name: "pool_fees",
|
|
13165
|
+
type: {
|
|
13166
|
+
defined: {
|
|
13167
|
+
name: "PoolFeeParameters"
|
|
13168
|
+
}
|
|
13169
|
+
}
|
|
13170
|
+
},
|
|
13171
|
+
{
|
|
13172
|
+
name: "sqrt_min_price",
|
|
13173
|
+
type: "u128"
|
|
13174
|
+
},
|
|
13175
|
+
{
|
|
13176
|
+
name: "sqrt_max_price",
|
|
13177
|
+
type: "u128"
|
|
13178
|
+
},
|
|
13179
|
+
{
|
|
13180
|
+
name: "vault_config_key",
|
|
13181
|
+
type: "pubkey"
|
|
13182
|
+
},
|
|
13183
|
+
{
|
|
13184
|
+
name: "pool_creator_authority",
|
|
13185
|
+
type: "pubkey"
|
|
13186
|
+
},
|
|
13187
|
+
{
|
|
13188
|
+
name: "activation_type",
|
|
13189
|
+
type: "u8"
|
|
13190
|
+
},
|
|
13191
|
+
{
|
|
13192
|
+
name: "collect_fee_mode",
|
|
13193
|
+
type: "u8"
|
|
13194
|
+
}
|
|
13195
|
+
]
|
|
13196
|
+
}
|
|
13197
|
+
},
|
|
12353
13198
|
{
|
|
12354
13199
|
name: "SwapParameters",
|
|
12355
13200
|
type: {
|
|
@@ -12572,4 +13417,4 @@ var CpAmmIDL = {
|
|
|
12572
13417
|
types: types
|
|
12573
13418
|
};
|
|
12574
13419
|
|
|
12575
|
-
export { ActivationPoint, ActivationType, type AddLiquidityParams, type AmmProgram, BASIS_POINT_MAX, BIN_STEP_BPS_DEFAULT, BIN_STEP_BPS_U128_DEFAULT, type BaseFee, type BuildAddLiquidityParams, type BuildLiquidatePositionInstructionParams, type BuildRemoveAllLiquidityInstructionParams, CP_AMM_PROGRAM_ID, type ClaimPartnerFeeParams, type ClaimPositionFeeInstructionParams, type ClaimPositionFeeParams, type ClaimRewardParams, type ClosePositionInstructionParams, type ClosePositionParams, CollectFeeMode, type ConfigState, CpAmm, type CpAmm$1 as CpAmmTypes, type CreatePoolParams, type CreatePositionAndAddLiquidity, type CreatePositionParams, DYNAMIC_FEE_DECAY_PERIOD_DEFAULT, DYNAMIC_FEE_FILTER_PERIOD_DEFAULT, DYNAMIC_FEE_REDUCTION_FACTOR_DEFAULT, type DepositQuote, type DynamicFee, type DynamicFeeParams, FEE_DENOMINATOR, type FeeMode, FeeSchedulerMode, type FundRewardParams, type GetDepositQuoteParams, type GetQuoteParams, type GetWithdrawQuoteParams, type InitializeCustomizeablePoolParams, type InitializeRewardParams, LIQUIDITY_SCALE, type LiquidityDeltaParams, type LockPositionParams, MAX_CU_BUFFER, MAX_FEE_NUMERATOR, MAX_PRICE_CHANGE_BPS_DEFAULT, MAX_SQRT_PRICE, MIN_CU_BUFFER, MIN_SQRT_PRICE, type MergePositionParams, ONE, type PermanentLockParams, type PoolFeesParams, type PoolState, type PositionState, type PreparePoolCreationParams, type PreparePoolCreationSingleSide, type PreparedPoolCreation, type RefreshVestingParams, type RemoveAllLiquidityAndClosePositionParams, type RemoveAllLiquidityParams, type RemoveLiquidityParams, type RewardInfo, Rounding, SCALE_OFFSET, type SwapParams, type SwapQuotes, type TokenBadgeState, TradeDirection, type TxBuilder, type UpdateRewardDurationParams, type UpdateRewardFunderParams, type VestingState, type WithdrawIneligibleRewardParams, type WithdrawQuote, bpsToFeeNumerator, calculateInitSqrtPrice, calculateTransferFeeExcludedAmount, calculateTransferFeeIncludedAmount, decimalToQ64, CpAmmIDL as default, deriveClaimFeeOperatorAddress, deriveConfigAddress, deriveCustomizablePoolAddress, derivePoolAddress, derivePoolAuthority, derivePositionAddress, derivePositionNftAccount, deriveRewardVaultAddress, deriveTokenBadgeAddress, deriveTokenVaultAddress, feeNumeratorToBps, getAllPositionNftAccountByOwner, getAllUserPositionNftAccount, getAmountAFromLiquidityDelta, getAmountBFromLiquidityDelta, getAvailableVestingLiquidity, getBaseFeeNumerator, getBaseFeeParams, getDynamicFeeNumerator, getDynamicFeeParams, getEstimatedComputeUnitIxWithBuffer, getEstimatedComputeUnitUsageWithBuffer, getFeeNumerator, getFirstKey, getLiquidityDeltaFromAmountA, getLiquidityDeltaFromAmountB, getMaxAmountWithSlippage, getMinAmountWithSlippage, getNextSqrtPrice, getOrCreateATAInstruction, getPriceFromSqrtPrice, getPriceImpact, getSecondKey, getSimulationComputeUnits, getSqrtPriceFromPrice, getSwapAmount, getTokenDecimals, getTokenProgram, getTotalLockedLiquidity, getUnClaimReward, isVestingComplete, mulDiv, positionByPoolFilter, pow, q64ToDecimal, unwrapSOLInstruction, vestingByPositionFilter, wrapSOLInstruction };
|
|
13420
|
+
export { ActivationPoint, ActivationType, type AddLiquidityParams, type AmmProgram, BASIS_POINT_MAX, BIN_STEP_BPS_DEFAULT, BIN_STEP_BPS_U128_DEFAULT, type BaseFee, type BuildAddLiquidityParams, type BuildLiquidatePositionInstructionParams, type BuildRemoveAllLiquidityInstructionParams, CP_AMM_PROGRAM_ID, type ClaimPartnerFeeParams, type ClaimPositionFeeInstructionParams, type ClaimPositionFeeParams, type ClaimRewardParams, type ClosePositionInstructionParams, type ClosePositionParams, CollectFeeMode, type ConfigState, CpAmm, type CpAmm$1 as CpAmmTypes, type CreatePoolParams, type CreatePositionAndAddLiquidity, type CreatePositionParams, DYNAMIC_FEE_DECAY_PERIOD_DEFAULT, DYNAMIC_FEE_FILTER_PERIOD_DEFAULT, DYNAMIC_FEE_REDUCTION_FACTOR_DEFAULT, type DepositQuote, type DynamicFee, type DynamicFeeParams, FEE_DENOMINATOR, type FeeMode, FeeSchedulerMode, type FundRewardParams, type GetDepositQuoteParams, type GetQuoteParams, type GetWithdrawQuoteParams, type InitializeCustomizeablePoolParams, type InitializeCustomizeablePoolWithDynamicConfigParams, type InitializeRewardParams, LIQUIDITY_SCALE, type LiquidityDeltaParams, type LockPositionParams, MAX_CU_BUFFER, MAX_FEE_NUMERATOR, MAX_PRICE_CHANGE_BPS_DEFAULT, MAX_SQRT_PRICE, MIN_CU_BUFFER, MIN_SQRT_PRICE, type MergePositionParams, ONE, type PermanentLockParams, type PoolFeesParams, type PoolState, type PositionState, type PrepareCustomizablePoolParams, type PreparePoolCreationParams, type PreparePoolCreationSingleSide, type PreparedPoolCreation, type RefreshVestingParams, type RemoveAllLiquidityAndClosePositionParams, type RemoveAllLiquidityParams, type RemoveLiquidityParams, type RewardInfo, Rounding, SCALE_OFFSET, type SwapParams, type SwapQuotes, type TokenBadgeState, TradeDirection, type TxBuilder, type UpdateRewardDurationParams, type UpdateRewardFunderParams, type VestingState, type WithdrawIneligibleRewardParams, type WithdrawQuote, bpsToFeeNumerator, calculateInitSqrtPrice, calculateTransferFeeExcludedAmount, calculateTransferFeeIncludedAmount, decimalToQ64, CpAmmIDL as default, deriveClaimFeeOperatorAddress, deriveConfigAddress, deriveCustomizablePoolAddress, derivePoolAddress, derivePoolAuthority, derivePositionAddress, derivePositionNftAccount, deriveRewardVaultAddress, deriveTokenBadgeAddress, deriveTokenVaultAddress, feeNumeratorToBps, getAllPositionNftAccountByOwner, getAllUserPositionNftAccount, getAmountAFromLiquidityDelta, getAmountBFromLiquidityDelta, getAvailableVestingLiquidity, getBaseFeeNumerator, getBaseFeeParams, getDynamicFeeNumerator, getDynamicFeeParams, getEstimatedComputeUnitIxWithBuffer, getEstimatedComputeUnitUsageWithBuffer, getFeeNumerator, getFirstKey, getLiquidityDeltaFromAmountA, getLiquidityDeltaFromAmountB, getMaxAmountWithSlippage, getMinAmountWithSlippage, getNextSqrtPrice, getOrCreateATAInstruction, getPriceFromSqrtPrice, getPriceImpact, getSecondKey, getSimulationComputeUnits, getSqrtPriceFromPrice, getSwapAmount, getTokenDecimals, getTokenProgram, getTotalLockedLiquidity, getUnClaimReward, isVestingComplete, mulDiv, positionByPoolFilter, pow, q64ToDecimal, unwrapSOLInstruction, vestingByPositionFilter, wrapSOLInstruction };
|