@meteora-ag/cp-amm-sdk 1.3.2 → 1.3.3
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 +875 -110
- package/dist/index.d.ts +875 -110
- package/dist/index.js +518 -79
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +517 -78
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
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.1.
|
|
17
|
+
version: "0.1.8";
|
|
18
18
|
spec: "0.1.0";
|
|
19
19
|
description: "Created with Anchor";
|
|
20
20
|
};
|
|
@@ -1223,6 +1223,60 @@ type CpAmm$1 = {
|
|
|
1223
1223
|
}
|
|
1224
1224
|
];
|
|
1225
1225
|
},
|
|
1226
|
+
{
|
|
1227
|
+
name: "fixConfigFeeParams";
|
|
1228
|
+
discriminator: [38, 30, 216, 81, 250, 177, 243, 254];
|
|
1229
|
+
accounts: [
|
|
1230
|
+
{
|
|
1231
|
+
name: "config";
|
|
1232
|
+
writable: true;
|
|
1233
|
+
},
|
|
1234
|
+
{
|
|
1235
|
+
name: "operator";
|
|
1236
|
+
},
|
|
1237
|
+
{
|
|
1238
|
+
name: "signer";
|
|
1239
|
+
signer: true;
|
|
1240
|
+
}
|
|
1241
|
+
];
|
|
1242
|
+
args: [
|
|
1243
|
+
{
|
|
1244
|
+
name: "params";
|
|
1245
|
+
type: {
|
|
1246
|
+
defined: {
|
|
1247
|
+
name: "baseFeeParameters";
|
|
1248
|
+
};
|
|
1249
|
+
};
|
|
1250
|
+
}
|
|
1251
|
+
];
|
|
1252
|
+
},
|
|
1253
|
+
{
|
|
1254
|
+
name: "fixPoolFeeParams";
|
|
1255
|
+
discriminator: [132, 98, 81, 196, 44, 58, 120, 193];
|
|
1256
|
+
accounts: [
|
|
1257
|
+
{
|
|
1258
|
+
name: "pool";
|
|
1259
|
+
writable: true;
|
|
1260
|
+
},
|
|
1261
|
+
{
|
|
1262
|
+
name: "operator";
|
|
1263
|
+
},
|
|
1264
|
+
{
|
|
1265
|
+
name: "signer";
|
|
1266
|
+
signer: true;
|
|
1267
|
+
}
|
|
1268
|
+
];
|
|
1269
|
+
args: [
|
|
1270
|
+
{
|
|
1271
|
+
name: "params";
|
|
1272
|
+
type: {
|
|
1273
|
+
defined: {
|
|
1274
|
+
name: "baseFeeParameters";
|
|
1275
|
+
};
|
|
1276
|
+
};
|
|
1277
|
+
}
|
|
1278
|
+
];
|
|
1279
|
+
},
|
|
1226
1280
|
{
|
|
1227
1281
|
name: "fundReward";
|
|
1228
1282
|
discriminator: [188, 50, 249, 165, 93, 151, 38, 63];
|
|
@@ -2038,6 +2092,71 @@ type CpAmm$1 = {
|
|
|
2038
2092
|
}
|
|
2039
2093
|
];
|
|
2040
2094
|
},
|
|
2095
|
+
{
|
|
2096
|
+
name: "lockInnerPosition";
|
|
2097
|
+
discriminator: [72, 19, 49, 204, 18, 122, 23, 90];
|
|
2098
|
+
accounts: [
|
|
2099
|
+
{
|
|
2100
|
+
name: "pool";
|
|
2101
|
+
relations: ["position"];
|
|
2102
|
+
},
|
|
2103
|
+
{
|
|
2104
|
+
name: "position";
|
|
2105
|
+
writable: true;
|
|
2106
|
+
},
|
|
2107
|
+
{
|
|
2108
|
+
name: "positionNftAccount";
|
|
2109
|
+
docs: ["The token account for nft"];
|
|
2110
|
+
},
|
|
2111
|
+
{
|
|
2112
|
+
name: "owner";
|
|
2113
|
+
docs: ["owner of position"];
|
|
2114
|
+
signer: true;
|
|
2115
|
+
},
|
|
2116
|
+
{
|
|
2117
|
+
name: "eventAuthority";
|
|
2118
|
+
pda: {
|
|
2119
|
+
seeds: [
|
|
2120
|
+
{
|
|
2121
|
+
kind: "const";
|
|
2122
|
+
value: [
|
|
2123
|
+
95,
|
|
2124
|
+
95,
|
|
2125
|
+
101,
|
|
2126
|
+
118,
|
|
2127
|
+
101,
|
|
2128
|
+
110,
|
|
2129
|
+
116,
|
|
2130
|
+
95,
|
|
2131
|
+
97,
|
|
2132
|
+
117,
|
|
2133
|
+
116,
|
|
2134
|
+
104,
|
|
2135
|
+
111,
|
|
2136
|
+
114,
|
|
2137
|
+
105,
|
|
2138
|
+
116,
|
|
2139
|
+
121
|
|
2140
|
+
];
|
|
2141
|
+
}
|
|
2142
|
+
];
|
|
2143
|
+
};
|
|
2144
|
+
},
|
|
2145
|
+
{
|
|
2146
|
+
name: "program";
|
|
2147
|
+
}
|
|
2148
|
+
];
|
|
2149
|
+
args: [
|
|
2150
|
+
{
|
|
2151
|
+
name: "params";
|
|
2152
|
+
type: {
|
|
2153
|
+
defined: {
|
|
2154
|
+
name: "vestingParameters";
|
|
2155
|
+
};
|
|
2156
|
+
};
|
|
2157
|
+
}
|
|
2158
|
+
];
|
|
2159
|
+
},
|
|
2041
2160
|
{
|
|
2042
2161
|
name: "lockPosition";
|
|
2043
2162
|
discriminator: [227, 62, 2, 252, 247, 10, 171, 185];
|
|
@@ -3247,6 +3366,10 @@ type CpAmm$1 = {
|
|
|
3247
3366
|
name: "evtSplitPosition2";
|
|
3248
3367
|
discriminator: [165, 32, 203, 174, 72, 100, 233, 103];
|
|
3249
3368
|
},
|
|
3369
|
+
{
|
|
3370
|
+
name: "evtSplitPosition3";
|
|
3371
|
+
discriminator: [232, 117, 190, 218, 85, 162, 207, 78];
|
|
3372
|
+
},
|
|
3250
3373
|
{
|
|
3251
3374
|
name: "evtSwap2";
|
|
3252
3375
|
discriminator: [189, 66, 51, 168, 38, 80, 117, 153];
|
|
@@ -4717,6 +4840,70 @@ type CpAmm$1 = {
|
|
|
4717
4840
|
];
|
|
4718
4841
|
};
|
|
4719
4842
|
},
|
|
4843
|
+
{
|
|
4844
|
+
name: "evtSplitPosition3";
|
|
4845
|
+
type: {
|
|
4846
|
+
kind: "struct";
|
|
4847
|
+
fields: [
|
|
4848
|
+
{
|
|
4849
|
+
name: "pool";
|
|
4850
|
+
type: "pubkey";
|
|
4851
|
+
},
|
|
4852
|
+
{
|
|
4853
|
+
name: "firstOwner";
|
|
4854
|
+
type: "pubkey";
|
|
4855
|
+
},
|
|
4856
|
+
{
|
|
4857
|
+
name: "secondOwner";
|
|
4858
|
+
type: "pubkey";
|
|
4859
|
+
},
|
|
4860
|
+
{
|
|
4861
|
+
name: "firstPosition";
|
|
4862
|
+
type: "pubkey";
|
|
4863
|
+
},
|
|
4864
|
+
{
|
|
4865
|
+
name: "secondPosition";
|
|
4866
|
+
type: "pubkey";
|
|
4867
|
+
},
|
|
4868
|
+
{
|
|
4869
|
+
name: "currentSqrtPrice";
|
|
4870
|
+
type: "u128";
|
|
4871
|
+
},
|
|
4872
|
+
{
|
|
4873
|
+
name: "amountSplits";
|
|
4874
|
+
type: {
|
|
4875
|
+
defined: {
|
|
4876
|
+
name: "splitAmountInfo2";
|
|
4877
|
+
};
|
|
4878
|
+
};
|
|
4879
|
+
},
|
|
4880
|
+
{
|
|
4881
|
+
name: "firstPositionInfo";
|
|
4882
|
+
type: {
|
|
4883
|
+
defined: {
|
|
4884
|
+
name: "splitPositionInfo2";
|
|
4885
|
+
};
|
|
4886
|
+
};
|
|
4887
|
+
},
|
|
4888
|
+
{
|
|
4889
|
+
name: "secondPositionInfo";
|
|
4890
|
+
type: {
|
|
4891
|
+
defined: {
|
|
4892
|
+
name: "splitPositionInfo2";
|
|
4893
|
+
};
|
|
4894
|
+
};
|
|
4895
|
+
},
|
|
4896
|
+
{
|
|
4897
|
+
name: "splitPositionParameters";
|
|
4898
|
+
type: {
|
|
4899
|
+
defined: {
|
|
4900
|
+
name: "splitPositionParameters3";
|
|
4901
|
+
};
|
|
4902
|
+
};
|
|
4903
|
+
}
|
|
4904
|
+
];
|
|
4905
|
+
};
|
|
4906
|
+
},
|
|
4720
4907
|
{
|
|
4721
4908
|
name: "evtSwap2";
|
|
4722
4909
|
type: {
|
|
@@ -4961,6 +5148,48 @@ type CpAmm$1 = {
|
|
|
4961
5148
|
];
|
|
4962
5149
|
};
|
|
4963
5150
|
},
|
|
5151
|
+
{
|
|
5152
|
+
name: "innerVesting";
|
|
5153
|
+
serialization: "bytemuck";
|
|
5154
|
+
repr: {
|
|
5155
|
+
kind: "c";
|
|
5156
|
+
};
|
|
5157
|
+
type: {
|
|
5158
|
+
kind: "struct";
|
|
5159
|
+
fields: [
|
|
5160
|
+
{
|
|
5161
|
+
name: "cliffPoint";
|
|
5162
|
+
type: "u64";
|
|
5163
|
+
},
|
|
5164
|
+
{
|
|
5165
|
+
name: "periodFrequency";
|
|
5166
|
+
type: "u64";
|
|
5167
|
+
},
|
|
5168
|
+
{
|
|
5169
|
+
name: "cliffUnlockLiquidity";
|
|
5170
|
+
type: "u128";
|
|
5171
|
+
},
|
|
5172
|
+
{
|
|
5173
|
+
name: "liquidityPerPeriod";
|
|
5174
|
+
type: "u128";
|
|
5175
|
+
},
|
|
5176
|
+
{
|
|
5177
|
+
name: "totalReleasedLiquidity";
|
|
5178
|
+
type: "u128";
|
|
5179
|
+
},
|
|
5180
|
+
{
|
|
5181
|
+
name: "numberOfPeriod";
|
|
5182
|
+
type: "u16";
|
|
5183
|
+
},
|
|
5184
|
+
{
|
|
5185
|
+
name: "padding";
|
|
5186
|
+
type: {
|
|
5187
|
+
array: ["u8", 14];
|
|
5188
|
+
};
|
|
5189
|
+
}
|
|
5190
|
+
];
|
|
5191
|
+
};
|
|
5192
|
+
},
|
|
4964
5193
|
{
|
|
4965
5194
|
name: "operator";
|
|
4966
5195
|
serialization: "bytemuck";
|
|
@@ -5589,11 +5818,18 @@ type CpAmm$1 = {
|
|
|
5589
5818
|
};
|
|
5590
5819
|
},
|
|
5591
5820
|
{
|
|
5592
|
-
name: "
|
|
5593
|
-
docs: ["
|
|
5821
|
+
name: "innerVesting";
|
|
5822
|
+
docs: ["inner vesting info"];
|
|
5594
5823
|
type: {
|
|
5595
|
-
|
|
5824
|
+
defined: {
|
|
5825
|
+
name: "innerVesting";
|
|
5826
|
+
};
|
|
5596
5827
|
};
|
|
5828
|
+
},
|
|
5829
|
+
{
|
|
5830
|
+
name: "padding";
|
|
5831
|
+
docs: ["padding for future usage"];
|
|
5832
|
+
type: "u128";
|
|
5597
5833
|
}
|
|
5598
5834
|
];
|
|
5599
5835
|
};
|
|
@@ -5761,12 +5997,20 @@ type CpAmm$1 = {
|
|
|
5761
5997
|
};
|
|
5762
5998
|
},
|
|
5763
5999
|
{
|
|
5764
|
-
name: "
|
|
6000
|
+
name: "splitAmountInfo2";
|
|
5765
6001
|
type: {
|
|
5766
6002
|
kind: "struct";
|
|
5767
6003
|
fields: [
|
|
5768
6004
|
{
|
|
5769
|
-
name: "
|
|
6005
|
+
name: "permanentLockedLiquidity";
|
|
6006
|
+
type: "u128";
|
|
6007
|
+
},
|
|
6008
|
+
{
|
|
6009
|
+
name: "unlockedLiquidity";
|
|
6010
|
+
type: "u128";
|
|
6011
|
+
},
|
|
6012
|
+
{
|
|
6013
|
+
name: "vestedLiquidity";
|
|
5770
6014
|
type: "u128";
|
|
5771
6015
|
},
|
|
5772
6016
|
{
|
|
@@ -5789,30 +6033,94 @@ type CpAmm$1 = {
|
|
|
5789
6033
|
};
|
|
5790
6034
|
},
|
|
5791
6035
|
{
|
|
5792
|
-
name: "
|
|
6036
|
+
name: "splitPositionInfo";
|
|
5793
6037
|
type: {
|
|
5794
6038
|
kind: "struct";
|
|
5795
6039
|
fields: [
|
|
5796
6040
|
{
|
|
5797
|
-
name: "
|
|
5798
|
-
|
|
5799
|
-
"Percentage of unlocked liquidity to split to the second position"
|
|
5800
|
-
];
|
|
5801
|
-
type: "u8";
|
|
6041
|
+
name: "liquidity";
|
|
6042
|
+
type: "u128";
|
|
5802
6043
|
},
|
|
5803
6044
|
{
|
|
5804
|
-
name: "
|
|
5805
|
-
|
|
5806
|
-
"Percentage of permanent locked liquidity to split to the second position"
|
|
5807
|
-
];
|
|
5808
|
-
type: "u8";
|
|
6045
|
+
name: "feeA";
|
|
6046
|
+
type: "u64";
|
|
5809
6047
|
},
|
|
5810
6048
|
{
|
|
5811
|
-
name: "
|
|
5812
|
-
|
|
5813
|
-
|
|
5814
|
-
|
|
5815
|
-
|
|
6049
|
+
name: "feeB";
|
|
6050
|
+
type: "u64";
|
|
6051
|
+
},
|
|
6052
|
+
{
|
|
6053
|
+
name: "reward0";
|
|
6054
|
+
type: "u64";
|
|
6055
|
+
},
|
|
6056
|
+
{
|
|
6057
|
+
name: "reward1";
|
|
6058
|
+
type: "u64";
|
|
6059
|
+
}
|
|
6060
|
+
];
|
|
6061
|
+
};
|
|
6062
|
+
},
|
|
6063
|
+
{
|
|
6064
|
+
name: "splitPositionInfo2";
|
|
6065
|
+
type: {
|
|
6066
|
+
kind: "struct";
|
|
6067
|
+
fields: [
|
|
6068
|
+
{
|
|
6069
|
+
name: "unlockedLiquidity";
|
|
6070
|
+
type: "u128";
|
|
6071
|
+
},
|
|
6072
|
+
{
|
|
6073
|
+
name: "permanentLockedLiquidity";
|
|
6074
|
+
type: "u128";
|
|
6075
|
+
},
|
|
6076
|
+
{
|
|
6077
|
+
name: "vestedLiquidity";
|
|
6078
|
+
type: "u128";
|
|
6079
|
+
},
|
|
6080
|
+
{
|
|
6081
|
+
name: "feeA";
|
|
6082
|
+
type: "u64";
|
|
6083
|
+
},
|
|
6084
|
+
{
|
|
6085
|
+
name: "feeB";
|
|
6086
|
+
type: "u64";
|
|
6087
|
+
},
|
|
6088
|
+
{
|
|
6089
|
+
name: "reward0";
|
|
6090
|
+
type: "u64";
|
|
6091
|
+
},
|
|
6092
|
+
{
|
|
6093
|
+
name: "reward1";
|
|
6094
|
+
type: "u64";
|
|
6095
|
+
}
|
|
6096
|
+
];
|
|
6097
|
+
};
|
|
6098
|
+
},
|
|
6099
|
+
{
|
|
6100
|
+
name: "splitPositionParameters";
|
|
6101
|
+
type: {
|
|
6102
|
+
kind: "struct";
|
|
6103
|
+
fields: [
|
|
6104
|
+
{
|
|
6105
|
+
name: "unlockedLiquidityPercentage";
|
|
6106
|
+
docs: [
|
|
6107
|
+
"Percentage of unlocked liquidity to split to the second position"
|
|
6108
|
+
];
|
|
6109
|
+
type: "u8";
|
|
6110
|
+
},
|
|
6111
|
+
{
|
|
6112
|
+
name: "permanentLockedLiquidityPercentage";
|
|
6113
|
+
docs: [
|
|
6114
|
+
"Percentage of permanent locked liquidity to split to the second position"
|
|
6115
|
+
];
|
|
6116
|
+
type: "u8";
|
|
6117
|
+
},
|
|
6118
|
+
{
|
|
6119
|
+
name: "feeAPercentage";
|
|
6120
|
+
docs: [
|
|
6121
|
+
"Percentage of fee A pending to split to the second position"
|
|
6122
|
+
];
|
|
6123
|
+
type: "u8";
|
|
5816
6124
|
},
|
|
5817
6125
|
{
|
|
5818
6126
|
name: "feeBPercentage";
|
|
@@ -5835,11 +6143,16 @@ type CpAmm$1 = {
|
|
|
5835
6143
|
];
|
|
5836
6144
|
type: "u8";
|
|
5837
6145
|
},
|
|
6146
|
+
{
|
|
6147
|
+
name: "innerVestingLiquidityPercentage";
|
|
6148
|
+
docs: ["Percentage of inner vesting liquidity"];
|
|
6149
|
+
type: "u8";
|
|
6150
|
+
},
|
|
5838
6151
|
{
|
|
5839
6152
|
name: "padding";
|
|
5840
6153
|
docs: ["padding for future"];
|
|
5841
6154
|
type: {
|
|
5842
|
-
array: ["u8",
|
|
6155
|
+
array: ["u8", 15];
|
|
5843
6156
|
};
|
|
5844
6157
|
}
|
|
5845
6158
|
];
|
|
@@ -5877,6 +6190,42 @@ type CpAmm$1 = {
|
|
|
5877
6190
|
];
|
|
5878
6191
|
};
|
|
5879
6192
|
},
|
|
6193
|
+
{
|
|
6194
|
+
name: "splitPositionParameters3";
|
|
6195
|
+
type: {
|
|
6196
|
+
kind: "struct";
|
|
6197
|
+
fields: [
|
|
6198
|
+
{
|
|
6199
|
+
name: "unlockedLiquidityNumerator";
|
|
6200
|
+
type: "u32";
|
|
6201
|
+
},
|
|
6202
|
+
{
|
|
6203
|
+
name: "permanentLockedLiquidityNumerator";
|
|
6204
|
+
type: "u32";
|
|
6205
|
+
},
|
|
6206
|
+
{
|
|
6207
|
+
name: "feeANumerator";
|
|
6208
|
+
type: "u32";
|
|
6209
|
+
},
|
|
6210
|
+
{
|
|
6211
|
+
name: "feeBNumerator";
|
|
6212
|
+
type: "u32";
|
|
6213
|
+
},
|
|
6214
|
+
{
|
|
6215
|
+
name: "reward0Numerator";
|
|
6216
|
+
type: "u32";
|
|
6217
|
+
},
|
|
6218
|
+
{
|
|
6219
|
+
name: "reward1Numerator";
|
|
6220
|
+
type: "u32";
|
|
6221
|
+
},
|
|
6222
|
+
{
|
|
6223
|
+
name: "innerVestingLiquidityNumerator";
|
|
6224
|
+
type: "u32";
|
|
6225
|
+
}
|
|
6226
|
+
];
|
|
6227
|
+
};
|
|
6228
|
+
},
|
|
5880
6229
|
{
|
|
5881
6230
|
name: "staticConfigParameters";
|
|
5882
6231
|
type: {
|
|
@@ -6107,33 +6456,11 @@ type CpAmm$1 = {
|
|
|
6107
6456
|
type: "pubkey";
|
|
6108
6457
|
},
|
|
6109
6458
|
{
|
|
6110
|
-
name: "
|
|
6111
|
-
type: "u64";
|
|
6112
|
-
},
|
|
6113
|
-
{
|
|
6114
|
-
name: "periodFrequency";
|
|
6115
|
-
type: "u64";
|
|
6116
|
-
},
|
|
6117
|
-
{
|
|
6118
|
-
name: "cliffUnlockLiquidity";
|
|
6119
|
-
type: "u128";
|
|
6120
|
-
},
|
|
6121
|
-
{
|
|
6122
|
-
name: "liquidityPerPeriod";
|
|
6123
|
-
type: "u128";
|
|
6124
|
-
},
|
|
6125
|
-
{
|
|
6126
|
-
name: "totalReleasedLiquidity";
|
|
6127
|
-
type: "u128";
|
|
6128
|
-
},
|
|
6129
|
-
{
|
|
6130
|
-
name: "numberOfPeriod";
|
|
6131
|
-
type: "u16";
|
|
6132
|
-
},
|
|
6133
|
-
{
|
|
6134
|
-
name: "padding";
|
|
6459
|
+
name: "innerVesting";
|
|
6135
6460
|
type: {
|
|
6136
|
-
|
|
6461
|
+
defined: {
|
|
6462
|
+
name: "innerVesting";
|
|
6463
|
+
};
|
|
6137
6464
|
};
|
|
6138
6465
|
},
|
|
6139
6466
|
{
|
|
@@ -6189,6 +6516,11 @@ type CpAmm$1 = {
|
|
|
6189
6516
|
};
|
|
6190
6517
|
value: "[203, 16, 199, 186, 184, 141, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0]";
|
|
6191
6518
|
},
|
|
6519
|
+
{
|
|
6520
|
+
name: "currentPoolVersion";
|
|
6521
|
+
type: "u8";
|
|
6522
|
+
value: "1";
|
|
6523
|
+
},
|
|
6192
6524
|
{
|
|
6193
6525
|
name: "customizablePoolPrefix";
|
|
6194
6526
|
type: "bytes";
|
|
@@ -6208,6 +6540,16 @@ type CpAmm$1 = {
|
|
|
6208
6540
|
type: "u64";
|
|
6209
6541
|
value: "10000";
|
|
6210
6542
|
},
|
|
6543
|
+
{
|
|
6544
|
+
name: "maxFeeNumeratorV0";
|
|
6545
|
+
type: "u64";
|
|
6546
|
+
value: "500000000";
|
|
6547
|
+
},
|
|
6548
|
+
{
|
|
6549
|
+
name: "maxFeeNumeratorV1";
|
|
6550
|
+
type: "u64";
|
|
6551
|
+
value: "990000000";
|
|
6552
|
+
},
|
|
6211
6553
|
{
|
|
6212
6554
|
name: "maxSqrtPriceLeBytes";
|
|
6213
6555
|
type: {
|
|
@@ -6215,6 +6557,11 @@ type CpAmm$1 = {
|
|
|
6215
6557
|
};
|
|
6216
6558
|
value: "[155, 87, 105, 78, 169, 26, 92, 132, 177, 196, 254, 255, 0, 0, 0, 0]";
|
|
6217
6559
|
},
|
|
6560
|
+
{
|
|
6561
|
+
name: "minFeeNumerator";
|
|
6562
|
+
type: "u64";
|
|
6563
|
+
value: "100000";
|
|
6564
|
+
},
|
|
6218
6565
|
{
|
|
6219
6566
|
name: "minSqrtPriceLeBytes";
|
|
6220
6567
|
type: {
|
|
@@ -6288,11 +6635,6 @@ declare enum PoolVersion {
|
|
|
6288
6635
|
V0 = 0,
|
|
6289
6636
|
V1 = 1
|
|
6290
6637
|
}
|
|
6291
|
-
type FeeMode = {
|
|
6292
|
-
feesOnInput: boolean;
|
|
6293
|
-
feesOnTokenA: boolean;
|
|
6294
|
-
hasReferral: boolean;
|
|
6295
|
-
};
|
|
6296
6638
|
declare enum PoolStatus {
|
|
6297
6639
|
Enable = 0,
|
|
6298
6640
|
Disable = 1
|
|
@@ -6302,6 +6644,11 @@ declare enum SwapMode {
|
|
|
6302
6644
|
PartialFill = 1,
|
|
6303
6645
|
ExactOut = 2
|
|
6304
6646
|
}
|
|
6647
|
+
type FeeMode = {
|
|
6648
|
+
feesOnInput: boolean;
|
|
6649
|
+
feesOnTokenA: boolean;
|
|
6650
|
+
hasReferral: boolean;
|
|
6651
|
+
};
|
|
6305
6652
|
type PoolState = IdlAccounts<CpAmm$1>["pool"];
|
|
6306
6653
|
type PositionState = IdlAccounts<CpAmm$1>["position"];
|
|
6307
6654
|
type VestingState = IdlAccounts<CpAmm$1>["vesting"];
|
|
@@ -6315,6 +6662,7 @@ type PodAlignedFeeMarketCapScheduler = IdlTypes<CpAmm$1>["podAlignedFeeMarketCap
|
|
|
6315
6662
|
type PodAlignedFeeRateLimiter = IdlTypes<CpAmm$1>["podAlignedFeeRateLimiter"];
|
|
6316
6663
|
type RewardInfo = IdlTypes<CpAmm$1>["rewardInfo"];
|
|
6317
6664
|
type UserRewardInfo = IdlTypes<CpAmm$1>["userRewardInfo"];
|
|
6665
|
+
type InnerVesting = IdlTypes<CpAmm$1>["innerVesting"];
|
|
6318
6666
|
/**
|
|
6319
6667
|
* Dynamic fee parameters
|
|
6320
6668
|
* @param binStep
|
|
@@ -6700,10 +7048,9 @@ type Swap2Params = {
|
|
|
6700
7048
|
amountOut: BN;
|
|
6701
7049
|
maximumAmountIn: BN;
|
|
6702
7050
|
});
|
|
6703
|
-
type
|
|
7051
|
+
type _LockPositionParams = {
|
|
6704
7052
|
owner: PublicKey;
|
|
6705
7053
|
payer: PublicKey;
|
|
6706
|
-
vestingAccount: PublicKey;
|
|
6707
7054
|
position: PublicKey;
|
|
6708
7055
|
positionNftAccount: PublicKey;
|
|
6709
7056
|
pool: PublicKey;
|
|
@@ -6713,6 +7060,13 @@ type LockPositionParams = {
|
|
|
6713
7060
|
liquidityPerPeriod: BN;
|
|
6714
7061
|
numberOfPeriod: number;
|
|
6715
7062
|
};
|
|
7063
|
+
type LockPositionParams = (_LockPositionParams & {
|
|
7064
|
+
innerPosition?: false;
|
|
7065
|
+
vestingAccount: PublicKey;
|
|
7066
|
+
}) | (_LockPositionParams & {
|
|
7067
|
+
innerPosition: true;
|
|
7068
|
+
vestingAccount?: never;
|
|
7069
|
+
});
|
|
6716
7070
|
type SetupFeeClaimAccountsParams = {
|
|
6717
7071
|
payer: PublicKey;
|
|
6718
7072
|
owner: PublicKey;
|
|
@@ -6915,6 +7269,7 @@ type SplitPositionParams = {
|
|
|
6915
7269
|
feeBPercentage: number;
|
|
6916
7270
|
reward0Percentage: number;
|
|
6917
7271
|
reward1Percentage: number;
|
|
7272
|
+
innerVestingLiquidityPercentage: number;
|
|
6918
7273
|
};
|
|
6919
7274
|
type SplitPosition2Params = {
|
|
6920
7275
|
firstPositionOwner: PublicKey;
|
|
@@ -6931,7 +7286,8 @@ interface BaseFeeHandler {
|
|
|
6931
7286
|
getBaseFeeNumeratorFromIncludedFeeAmount(currentPoint: BN, activationPoint: BN, tradeDirection: TradeDirection, includedFeeAmount: BN, initSqrtPrice: BN, currentSqrtPrice: BN): BN;
|
|
6932
7287
|
getBaseFeeNumeratorFromExcludedFeeAmount(currentPoint: BN, activationPoint: BN, tradeDirection: TradeDirection, excludedFeeAmount: BN, initSqrtPrice: BN, currentSqrtPrice: BN): BN;
|
|
6933
7288
|
validateBaseFeeIsStatic(currentPoint: BN, activationPoint: BN): boolean;
|
|
6934
|
-
|
|
7289
|
+
getMinFeeNumerator(): BN;
|
|
7290
|
+
getMaxFeeNumerator(): BN;
|
|
6935
7291
|
}
|
|
6936
7292
|
interface FeeOnAmountResult {
|
|
6937
7293
|
amount: BN;
|
|
@@ -8146,7 +8502,8 @@ declare class FeeRateLimiter implements BaseFeeHandler {
|
|
|
8146
8502
|
getBaseFeeNumeratorFromIncludedFeeAmount(currentPoint: BN$1, activationPoint: BN$1, tradeDirection: TradeDirection, includedFeeAmount: BN$1, _initSqrtPrice: BN$1, _currentSqrtPrice: BN$1): BN$1;
|
|
8147
8503
|
getBaseFeeNumeratorFromExcludedFeeAmount(currentPoint: BN$1, activationPoint: BN$1, tradeDirection: TradeDirection, excludedFeeAmount: BN$1, _initSqrtPrice: BN$1, _currentSqrtPrice: BN$1): BN$1;
|
|
8148
8504
|
validateBaseFeeIsStatic(currentPoint: BN$1, activationPoint: BN$1): boolean;
|
|
8149
|
-
|
|
8505
|
+
getMinFeeNumerator(): BN$1;
|
|
8506
|
+
getMaxFeeNumerator(): BN$1;
|
|
8150
8507
|
}
|
|
8151
8508
|
/**
|
|
8152
8509
|
* Fee Time Scheduler implementation
|
|
@@ -8162,7 +8519,8 @@ declare class FeeTimeScheduler implements BaseFeeHandler {
|
|
|
8162
8519
|
getBaseFeeNumeratorFromIncludedFeeAmount(currentPoint: BN$1, activationPoint: BN$1, _tradeDirection: TradeDirection, _includedFeeAmount: BN$1, _initSqrtPrice: BN$1, _currentSqrtPrice: BN$1): BN$1;
|
|
8163
8520
|
getBaseFeeNumeratorFromExcludedFeeAmount(currentPoint: BN$1, activationPoint: BN$1, _tradeDirection: TradeDirection, _excludedFeeAmount: BN$1, _initSqrtPrice: BN$1, _currentSqrtPrice: BN$1): BN$1;
|
|
8164
8521
|
validateBaseFeeIsStatic(currentPoint: BN$1, activationPoint: BN$1): boolean;
|
|
8165
|
-
|
|
8522
|
+
getMinFeeNumerator(): BN$1;
|
|
8523
|
+
getMaxFeeNumerator(): BN$1;
|
|
8166
8524
|
}
|
|
8167
8525
|
/**
|
|
8168
8526
|
* Fee Market Cap Scheduler implementation
|
|
@@ -8179,7 +8537,8 @@ declare class FeeMarketCapScheduler implements BaseFeeHandler {
|
|
|
8179
8537
|
getBaseFeeNumeratorFromIncludedFeeAmount(currentPoint: BN$1, activationPoint: BN$1, _tradeDirection: TradeDirection, _includedFeeAmount: BN$1, initSqrtPrice: BN$1, currentSqrtPrice: BN$1): BN$1;
|
|
8180
8538
|
getBaseFeeNumeratorFromExcludedFeeAmount(currentPoint: BN$1, activationPoint: BN$1, _tradeDirection: TradeDirection, _excludedFeeAmount: BN$1, initSqrtPrice: BN$1, currentSqrtPrice: BN$1): BN$1;
|
|
8181
8539
|
validateBaseFeeIsStatic(currentPoint: BN$1, activationPoint: BN$1): boolean;
|
|
8182
|
-
|
|
8540
|
+
getMinFeeNumerator(): BN$1;
|
|
8541
|
+
getMaxFeeNumerator(): BN$1;
|
|
8183
8542
|
}
|
|
8184
8543
|
/**
|
|
8185
8544
|
* Get base fee handler based on base fee mode
|
|
@@ -8376,6 +8735,22 @@ declare function getCheckedAmounts(referenceAmount: BN$1, cliffFeeNumerator: BN$
|
|
|
8376
8735
|
* @returns The fee numerator
|
|
8377
8736
|
*/
|
|
8378
8737
|
declare function getFeeNumeratorFromExcludedFeeAmount(excludedFeeAmount: BN$1, referenceAmount: BN$1, cliffFeeNumerator: BN$1, maxFeeBps: number, feeIncrementBps: number): BN$1;
|
|
8738
|
+
/**
|
|
8739
|
+
* Gets the min base fee numerator for rate limiter.
|
|
8740
|
+
* @param cliffFeeNumerator - The cliff fee numerator.
|
|
8741
|
+
* @returns The min base fee numerator.
|
|
8742
|
+
*/
|
|
8743
|
+
declare function getRateLimiterMinBaseFeeNumerator(cliffFeeNumerator: BN$1): BN$1;
|
|
8744
|
+
/**
|
|
8745
|
+
* Gets the max base fee numerator for rate limiter.
|
|
8746
|
+
* @param includedFeeAmount - The included fee amount.
|
|
8747
|
+
* @param referenceAmount - The reference amount.
|
|
8748
|
+
* @param cliffFeeNumerator - The cliff fee numerator.
|
|
8749
|
+
* @param maxFeeBps - The maximum fee in basis points.
|
|
8750
|
+
* @param feeIncrementBps - The fee increment in basis points.
|
|
8751
|
+
* @returns The max base fee numerator.
|
|
8752
|
+
*/
|
|
8753
|
+
declare function getRateLimiterMaxBaseFeeNumerator(includedFeeAmount: BN$1, referenceAmount: BN$1, cliffFeeNumerator: BN$1, maxFeeBps: number, feeIncrementBps: number): BN$1;
|
|
8379
8754
|
|
|
8380
8755
|
/**
|
|
8381
8756
|
* Gets the swap result from exact input
|
|
@@ -8652,7 +9027,7 @@ declare function calculateInitSqrtPrice(tokenAAmount: BN, tokenBAmount: BN, minS
|
|
|
8652
9027
|
var address = "cpamdpZCGKUy5JxQXB4dcpGPiikHawvSWAd6mEn1sGG";
|
|
8653
9028
|
var metadata = {
|
|
8654
9029
|
name: "cp_amm",
|
|
8655
|
-
version: "0.1.
|
|
9030
|
+
version: "0.1.8",
|
|
8656
9031
|
spec: "0.1.0",
|
|
8657
9032
|
description: "Created with Anchor"
|
|
8658
9033
|
};
|
|
@@ -10183,6 +10558,78 @@ var instructions = [
|
|
|
10183
10558
|
}
|
|
10184
10559
|
]
|
|
10185
10560
|
},
|
|
10561
|
+
{
|
|
10562
|
+
name: "fix_config_fee_params",
|
|
10563
|
+
discriminator: [
|
|
10564
|
+
38,
|
|
10565
|
+
30,
|
|
10566
|
+
216,
|
|
10567
|
+
81,
|
|
10568
|
+
250,
|
|
10569
|
+
177,
|
|
10570
|
+
243,
|
|
10571
|
+
254
|
|
10572
|
+
],
|
|
10573
|
+
accounts: [
|
|
10574
|
+
{
|
|
10575
|
+
name: "config",
|
|
10576
|
+
writable: true
|
|
10577
|
+
},
|
|
10578
|
+
{
|
|
10579
|
+
name: "operator"
|
|
10580
|
+
},
|
|
10581
|
+
{
|
|
10582
|
+
name: "signer",
|
|
10583
|
+
signer: true
|
|
10584
|
+
}
|
|
10585
|
+
],
|
|
10586
|
+
args: [
|
|
10587
|
+
{
|
|
10588
|
+
name: "params",
|
|
10589
|
+
type: {
|
|
10590
|
+
defined: {
|
|
10591
|
+
name: "BaseFeeParameters"
|
|
10592
|
+
}
|
|
10593
|
+
}
|
|
10594
|
+
}
|
|
10595
|
+
]
|
|
10596
|
+
},
|
|
10597
|
+
{
|
|
10598
|
+
name: "fix_pool_fee_params",
|
|
10599
|
+
discriminator: [
|
|
10600
|
+
132,
|
|
10601
|
+
98,
|
|
10602
|
+
81,
|
|
10603
|
+
196,
|
|
10604
|
+
44,
|
|
10605
|
+
58,
|
|
10606
|
+
120,
|
|
10607
|
+
193
|
|
10608
|
+
],
|
|
10609
|
+
accounts: [
|
|
10610
|
+
{
|
|
10611
|
+
name: "pool",
|
|
10612
|
+
writable: true
|
|
10613
|
+
},
|
|
10614
|
+
{
|
|
10615
|
+
name: "operator"
|
|
10616
|
+
},
|
|
10617
|
+
{
|
|
10618
|
+
name: "signer",
|
|
10619
|
+
signer: true
|
|
10620
|
+
}
|
|
10621
|
+
],
|
|
10622
|
+
args: [
|
|
10623
|
+
{
|
|
10624
|
+
name: "params",
|
|
10625
|
+
type: {
|
|
10626
|
+
defined: {
|
|
10627
|
+
name: "BaseFeeParameters"
|
|
10628
|
+
}
|
|
10629
|
+
}
|
|
10630
|
+
}
|
|
10631
|
+
]
|
|
10632
|
+
},
|
|
10186
10633
|
{
|
|
10187
10634
|
name: "fund_reward",
|
|
10188
10635
|
discriminator: [
|
|
@@ -11223,16 +11670,16 @@ var instructions = [
|
|
|
11223
11670
|
]
|
|
11224
11671
|
},
|
|
11225
11672
|
{
|
|
11226
|
-
name: "
|
|
11673
|
+
name: "lock_inner_position",
|
|
11227
11674
|
discriminator: [
|
|
11228
|
-
|
|
11229
|
-
|
|
11230
|
-
|
|
11231
|
-
|
|
11232
|
-
|
|
11233
|
-
|
|
11234
|
-
|
|
11235
|
-
|
|
11675
|
+
72,
|
|
11676
|
+
19,
|
|
11677
|
+
49,
|
|
11678
|
+
204,
|
|
11679
|
+
18,
|
|
11680
|
+
122,
|
|
11681
|
+
23,
|
|
11682
|
+
90
|
|
11236
11683
|
],
|
|
11237
11684
|
accounts: [
|
|
11238
11685
|
{
|
|
@@ -11246,9 +11693,89 @@ var instructions = [
|
|
|
11246
11693
|
writable: true
|
|
11247
11694
|
},
|
|
11248
11695
|
{
|
|
11249
|
-
name: "
|
|
11250
|
-
|
|
11251
|
-
|
|
11696
|
+
name: "position_nft_account",
|
|
11697
|
+
docs: [
|
|
11698
|
+
"The token account for nft"
|
|
11699
|
+
]
|
|
11700
|
+
},
|
|
11701
|
+
{
|
|
11702
|
+
name: "owner",
|
|
11703
|
+
docs: [
|
|
11704
|
+
"owner of position"
|
|
11705
|
+
],
|
|
11706
|
+
signer: true
|
|
11707
|
+
},
|
|
11708
|
+
{
|
|
11709
|
+
name: "event_authority",
|
|
11710
|
+
pda: {
|
|
11711
|
+
seeds: [
|
|
11712
|
+
{
|
|
11713
|
+
kind: "const",
|
|
11714
|
+
value: [
|
|
11715
|
+
95,
|
|
11716
|
+
95,
|
|
11717
|
+
101,
|
|
11718
|
+
118,
|
|
11719
|
+
101,
|
|
11720
|
+
110,
|
|
11721
|
+
116,
|
|
11722
|
+
95,
|
|
11723
|
+
97,
|
|
11724
|
+
117,
|
|
11725
|
+
116,
|
|
11726
|
+
104,
|
|
11727
|
+
111,
|
|
11728
|
+
114,
|
|
11729
|
+
105,
|
|
11730
|
+
116,
|
|
11731
|
+
121
|
|
11732
|
+
]
|
|
11733
|
+
}
|
|
11734
|
+
]
|
|
11735
|
+
}
|
|
11736
|
+
},
|
|
11737
|
+
{
|
|
11738
|
+
name: "program"
|
|
11739
|
+
}
|
|
11740
|
+
],
|
|
11741
|
+
args: [
|
|
11742
|
+
{
|
|
11743
|
+
name: "params",
|
|
11744
|
+
type: {
|
|
11745
|
+
defined: {
|
|
11746
|
+
name: "VestingParameters"
|
|
11747
|
+
}
|
|
11748
|
+
}
|
|
11749
|
+
}
|
|
11750
|
+
]
|
|
11751
|
+
},
|
|
11752
|
+
{
|
|
11753
|
+
name: "lock_position",
|
|
11754
|
+
discriminator: [
|
|
11755
|
+
227,
|
|
11756
|
+
62,
|
|
11757
|
+
2,
|
|
11758
|
+
252,
|
|
11759
|
+
247,
|
|
11760
|
+
10,
|
|
11761
|
+
171,
|
|
11762
|
+
185
|
|
11763
|
+
],
|
|
11764
|
+
accounts: [
|
|
11765
|
+
{
|
|
11766
|
+
name: "pool",
|
|
11767
|
+
relations: [
|
|
11768
|
+
"position"
|
|
11769
|
+
]
|
|
11770
|
+
},
|
|
11771
|
+
{
|
|
11772
|
+
name: "position",
|
|
11773
|
+
writable: true
|
|
11774
|
+
},
|
|
11775
|
+
{
|
|
11776
|
+
name: "vesting",
|
|
11777
|
+
writable: true,
|
|
11778
|
+
signer: true
|
|
11252
11779
|
},
|
|
11253
11780
|
{
|
|
11254
11781
|
name: "position_nft_account",
|
|
@@ -12974,6 +13501,19 @@ var events = [
|
|
|
12974
13501
|
103
|
|
12975
13502
|
]
|
|
12976
13503
|
},
|
|
13504
|
+
{
|
|
13505
|
+
name: "EvtSplitPosition3",
|
|
13506
|
+
discriminator: [
|
|
13507
|
+
232,
|
|
13508
|
+
117,
|
|
13509
|
+
190,
|
|
13510
|
+
218,
|
|
13511
|
+
85,
|
|
13512
|
+
162,
|
|
13513
|
+
207,
|
|
13514
|
+
78
|
|
13515
|
+
]
|
|
13516
|
+
},
|
|
12977
13517
|
{
|
|
12978
13518
|
name: "EvtSwap2",
|
|
12979
13519
|
discriminator: [
|
|
@@ -14558,6 +15098,70 @@ var types = [
|
|
|
14558
15098
|
]
|
|
14559
15099
|
}
|
|
14560
15100
|
},
|
|
15101
|
+
{
|
|
15102
|
+
name: "EvtSplitPosition3",
|
|
15103
|
+
type: {
|
|
15104
|
+
kind: "struct",
|
|
15105
|
+
fields: [
|
|
15106
|
+
{
|
|
15107
|
+
name: "pool",
|
|
15108
|
+
type: "pubkey"
|
|
15109
|
+
},
|
|
15110
|
+
{
|
|
15111
|
+
name: "first_owner",
|
|
15112
|
+
type: "pubkey"
|
|
15113
|
+
},
|
|
15114
|
+
{
|
|
15115
|
+
name: "second_owner",
|
|
15116
|
+
type: "pubkey"
|
|
15117
|
+
},
|
|
15118
|
+
{
|
|
15119
|
+
name: "first_position",
|
|
15120
|
+
type: "pubkey"
|
|
15121
|
+
},
|
|
15122
|
+
{
|
|
15123
|
+
name: "second_position",
|
|
15124
|
+
type: "pubkey"
|
|
15125
|
+
},
|
|
15126
|
+
{
|
|
15127
|
+
name: "current_sqrt_price",
|
|
15128
|
+
type: "u128"
|
|
15129
|
+
},
|
|
15130
|
+
{
|
|
15131
|
+
name: "amount_splits",
|
|
15132
|
+
type: {
|
|
15133
|
+
defined: {
|
|
15134
|
+
name: "SplitAmountInfo2"
|
|
15135
|
+
}
|
|
15136
|
+
}
|
|
15137
|
+
},
|
|
15138
|
+
{
|
|
15139
|
+
name: "first_position_info",
|
|
15140
|
+
type: {
|
|
15141
|
+
defined: {
|
|
15142
|
+
name: "SplitPositionInfo2"
|
|
15143
|
+
}
|
|
15144
|
+
}
|
|
15145
|
+
},
|
|
15146
|
+
{
|
|
15147
|
+
name: "second_position_info",
|
|
15148
|
+
type: {
|
|
15149
|
+
defined: {
|
|
15150
|
+
name: "SplitPositionInfo2"
|
|
15151
|
+
}
|
|
15152
|
+
}
|
|
15153
|
+
},
|
|
15154
|
+
{
|
|
15155
|
+
name: "split_position_parameters",
|
|
15156
|
+
type: {
|
|
15157
|
+
defined: {
|
|
15158
|
+
name: "SplitPositionParameters3"
|
|
15159
|
+
}
|
|
15160
|
+
}
|
|
15161
|
+
}
|
|
15162
|
+
]
|
|
15163
|
+
}
|
|
15164
|
+
},
|
|
14561
15165
|
{
|
|
14562
15166
|
name: "EvtSwap2",
|
|
14563
15167
|
type: {
|
|
@@ -14822,6 +15426,51 @@ var types = [
|
|
|
14822
15426
|
]
|
|
14823
15427
|
}
|
|
14824
15428
|
},
|
|
15429
|
+
{
|
|
15430
|
+
name: "InnerVesting",
|
|
15431
|
+
serialization: "bytemuck",
|
|
15432
|
+
repr: {
|
|
15433
|
+
kind: "c"
|
|
15434
|
+
},
|
|
15435
|
+
type: {
|
|
15436
|
+
kind: "struct",
|
|
15437
|
+
fields: [
|
|
15438
|
+
{
|
|
15439
|
+
name: "cliff_point",
|
|
15440
|
+
type: "u64"
|
|
15441
|
+
},
|
|
15442
|
+
{
|
|
15443
|
+
name: "period_frequency",
|
|
15444
|
+
type: "u64"
|
|
15445
|
+
},
|
|
15446
|
+
{
|
|
15447
|
+
name: "cliff_unlock_liquidity",
|
|
15448
|
+
type: "u128"
|
|
15449
|
+
},
|
|
15450
|
+
{
|
|
15451
|
+
name: "liquidity_per_period",
|
|
15452
|
+
type: "u128"
|
|
15453
|
+
},
|
|
15454
|
+
{
|
|
15455
|
+
name: "total_released_liquidity",
|
|
15456
|
+
type: "u128"
|
|
15457
|
+
},
|
|
15458
|
+
{
|
|
15459
|
+
name: "number_of_period",
|
|
15460
|
+
type: "u16"
|
|
15461
|
+
},
|
|
15462
|
+
{
|
|
15463
|
+
name: "padding",
|
|
15464
|
+
type: {
|
|
15465
|
+
array: [
|
|
15466
|
+
"u8",
|
|
15467
|
+
14
|
|
15468
|
+
]
|
|
15469
|
+
}
|
|
15470
|
+
}
|
|
15471
|
+
]
|
|
15472
|
+
}
|
|
15473
|
+
},
|
|
14825
15474
|
{
|
|
14826
15475
|
name: "Operator",
|
|
14827
15476
|
serialization: "bytemuck",
|
|
@@ -15574,16 +16223,22 @@ var types = [
|
|
|
15574
16223
|
}
|
|
15575
16224
|
},
|
|
15576
16225
|
{
|
|
15577
|
-
name: "
|
|
16226
|
+
name: "inner_vesting",
|
|
15578
16227
|
docs: [
|
|
15579
|
-
"
|
|
16228
|
+
"inner vesting info"
|
|
15580
16229
|
],
|
|
15581
16230
|
type: {
|
|
15582
|
-
|
|
15583
|
-
"
|
|
15584
|
-
|
|
15585
|
-
]
|
|
16231
|
+
defined: {
|
|
16232
|
+
name: "InnerVesting"
|
|
16233
|
+
}
|
|
15586
16234
|
}
|
|
16235
|
+
},
|
|
16236
|
+
{
|
|
16237
|
+
name: "padding",
|
|
16238
|
+
docs: [
|
|
16239
|
+
"padding for future usage"
|
|
16240
|
+
],
|
|
16241
|
+
type: "u128"
|
|
15587
16242
|
}
|
|
15588
16243
|
]
|
|
15589
16244
|
}
|
|
@@ -15791,6 +16446,42 @@ var types = [
|
|
|
15791
16446
|
]
|
|
15792
16447
|
}
|
|
15793
16448
|
},
|
|
16449
|
+
{
|
|
16450
|
+
name: "SplitAmountInfo2",
|
|
16451
|
+
type: {
|
|
16452
|
+
kind: "struct",
|
|
16453
|
+
fields: [
|
|
16454
|
+
{
|
|
16455
|
+
name: "permanent_locked_liquidity",
|
|
16456
|
+
type: "u128"
|
|
16457
|
+
},
|
|
16458
|
+
{
|
|
16459
|
+
name: "unlocked_liquidity",
|
|
16460
|
+
type: "u128"
|
|
16461
|
+
},
|
|
16462
|
+
{
|
|
16463
|
+
name: "vested_liquidity",
|
|
16464
|
+
type: "u128"
|
|
16465
|
+
},
|
|
16466
|
+
{
|
|
16467
|
+
name: "fee_a",
|
|
16468
|
+
type: "u64"
|
|
16469
|
+
},
|
|
16470
|
+
{
|
|
16471
|
+
name: "fee_b",
|
|
16472
|
+
type: "u64"
|
|
16473
|
+
},
|
|
16474
|
+
{
|
|
16475
|
+
name: "reward_0",
|
|
16476
|
+
type: "u64"
|
|
16477
|
+
},
|
|
16478
|
+
{
|
|
16479
|
+
name: "reward_1",
|
|
16480
|
+
type: "u64"
|
|
16481
|
+
}
|
|
16482
|
+
]
|
|
16483
|
+
}
|
|
16484
|
+
},
|
|
15794
16485
|
{
|
|
15795
16486
|
name: "SplitPositionInfo",
|
|
15796
16487
|
type: {
|
|
@@ -15819,6 +16510,42 @@ var types = [
|
|
|
15819
16510
|
]
|
|
15820
16511
|
}
|
|
15821
16512
|
},
|
|
16513
|
+
{
|
|
16514
|
+
name: "SplitPositionInfo2",
|
|
16515
|
+
type: {
|
|
16516
|
+
kind: "struct",
|
|
16517
|
+
fields: [
|
|
16518
|
+
{
|
|
16519
|
+
name: "unlocked_liquidity",
|
|
16520
|
+
type: "u128"
|
|
16521
|
+
},
|
|
16522
|
+
{
|
|
16523
|
+
name: "permanent_locked_liquidity",
|
|
16524
|
+
type: "u128"
|
|
16525
|
+
},
|
|
16526
|
+
{
|
|
16527
|
+
name: "vested_liquidity",
|
|
16528
|
+
type: "u128"
|
|
16529
|
+
},
|
|
16530
|
+
{
|
|
16531
|
+
name: "fee_a",
|
|
16532
|
+
type: "u64"
|
|
16533
|
+
},
|
|
16534
|
+
{
|
|
16535
|
+
name: "fee_b",
|
|
16536
|
+
type: "u64"
|
|
16537
|
+
},
|
|
16538
|
+
{
|
|
16539
|
+
name: "reward_0",
|
|
16540
|
+
type: "u64"
|
|
16541
|
+
},
|
|
16542
|
+
{
|
|
16543
|
+
name: "reward_1",
|
|
16544
|
+
type: "u64"
|
|
16545
|
+
}
|
|
16546
|
+
]
|
|
16547
|
+
}
|
|
16548
|
+
},
|
|
15822
16549
|
{
|
|
15823
16550
|
name: "SplitPositionParameters",
|
|
15824
16551
|
type: {
|
|
@@ -15866,6 +16593,13 @@ var types = [
|
|
|
15866
16593
|
],
|
|
15867
16594
|
type: "u8"
|
|
15868
16595
|
},
|
|
16596
|
+
{
|
|
16597
|
+
name: "inner_vesting_liquidity_percentage",
|
|
16598
|
+
docs: [
|
|
16599
|
+
"Percentage of inner vesting liquidity"
|
|
16600
|
+
],
|
|
16601
|
+
type: "u8"
|
|
16602
|
+
},
|
|
15869
16603
|
{
|
|
15870
16604
|
name: "padding",
|
|
15871
16605
|
docs: [
|
|
@@ -15874,7 +16608,7 @@ var types = [
|
|
|
15874
16608
|
type: {
|
|
15875
16609
|
array: [
|
|
15876
16610
|
"u8",
|
|
15877
|
-
|
|
16611
|
+
15
|
|
15878
16612
|
]
|
|
15879
16613
|
}
|
|
15880
16614
|
}
|
|
@@ -15913,6 +16647,42 @@ var types = [
|
|
|
15913
16647
|
]
|
|
15914
16648
|
}
|
|
15915
16649
|
},
|
|
16650
|
+
{
|
|
16651
|
+
name: "SplitPositionParameters3",
|
|
16652
|
+
type: {
|
|
16653
|
+
kind: "struct",
|
|
16654
|
+
fields: [
|
|
16655
|
+
{
|
|
16656
|
+
name: "unlocked_liquidity_numerator",
|
|
16657
|
+
type: "u32"
|
|
16658
|
+
},
|
|
16659
|
+
{
|
|
16660
|
+
name: "permanent_locked_liquidity_numerator",
|
|
16661
|
+
type: "u32"
|
|
16662
|
+
},
|
|
16663
|
+
{
|
|
16664
|
+
name: "fee_a_numerator",
|
|
16665
|
+
type: "u32"
|
|
16666
|
+
},
|
|
16667
|
+
{
|
|
16668
|
+
name: "fee_b_numerator",
|
|
16669
|
+
type: "u32"
|
|
16670
|
+
},
|
|
16671
|
+
{
|
|
16672
|
+
name: "reward_0_numerator",
|
|
16673
|
+
type: "u32"
|
|
16674
|
+
},
|
|
16675
|
+
{
|
|
16676
|
+
name: "reward_1_numerator",
|
|
16677
|
+
type: "u32"
|
|
16678
|
+
},
|
|
16679
|
+
{
|
|
16680
|
+
name: "inner_vesting_liquidity_numerator",
|
|
16681
|
+
type: "u32"
|
|
16682
|
+
}
|
|
16683
|
+
]
|
|
16684
|
+
}
|
|
16685
|
+
},
|
|
15916
16686
|
{
|
|
15917
16687
|
name: "StaticConfigParameters",
|
|
15918
16688
|
type: {
|
|
@@ -16163,36 +16933,11 @@ var types = [
|
|
|
16163
16933
|
type: "pubkey"
|
|
16164
16934
|
},
|
|
16165
16935
|
{
|
|
16166
|
-
name: "
|
|
16167
|
-
type: "u64"
|
|
16168
|
-
},
|
|
16169
|
-
{
|
|
16170
|
-
name: "period_frequency",
|
|
16171
|
-
type: "u64"
|
|
16172
|
-
},
|
|
16173
|
-
{
|
|
16174
|
-
name: "cliff_unlock_liquidity",
|
|
16175
|
-
type: "u128"
|
|
16176
|
-
},
|
|
16177
|
-
{
|
|
16178
|
-
name: "liquidity_per_period",
|
|
16179
|
-
type: "u128"
|
|
16180
|
-
},
|
|
16181
|
-
{
|
|
16182
|
-
name: "total_released_liquidity",
|
|
16183
|
-
type: "u128"
|
|
16184
|
-
},
|
|
16185
|
-
{
|
|
16186
|
-
name: "number_of_period",
|
|
16187
|
-
type: "u16"
|
|
16188
|
-
},
|
|
16189
|
-
{
|
|
16190
|
-
name: "padding",
|
|
16936
|
+
name: "inner_vesting",
|
|
16191
16937
|
type: {
|
|
16192
|
-
|
|
16193
|
-
"
|
|
16194
|
-
|
|
16195
|
-
]
|
|
16938
|
+
defined: {
|
|
16939
|
+
name: "InnerVesting"
|
|
16940
|
+
}
|
|
16196
16941
|
}
|
|
16197
16942
|
},
|
|
16198
16943
|
{
|
|
@@ -16254,6 +16999,11 @@ var constants = [
|
|
|
16254
16999
|
},
|
|
16255
17000
|
value: "[203, 16, 199, 186, 184, 141, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0]"
|
|
16256
17001
|
},
|
|
17002
|
+
{
|
|
17003
|
+
name: "CURRENT_POOL_VERSION",
|
|
17004
|
+
type: "u8",
|
|
17005
|
+
value: "1"
|
|
17006
|
+
},
|
|
16257
17007
|
{
|
|
16258
17008
|
name: "CUSTOMIZABLE_POOL_PREFIX",
|
|
16259
17009
|
type: "bytes",
|
|
@@ -16275,6 +17025,16 @@ var constants = [
|
|
|
16275
17025
|
type: "u64",
|
|
16276
17026
|
value: "10000"
|
|
16277
17027
|
},
|
|
17028
|
+
{
|
|
17029
|
+
name: "MAX_FEE_NUMERATOR_V0",
|
|
17030
|
+
type: "u64",
|
|
17031
|
+
value: "500000000"
|
|
17032
|
+
},
|
|
17033
|
+
{
|
|
17034
|
+
name: "MAX_FEE_NUMERATOR_V1",
|
|
17035
|
+
type: "u64",
|
|
17036
|
+
value: "990000000"
|
|
17037
|
+
},
|
|
16278
17038
|
{
|
|
16279
17039
|
name: "MAX_SQRT_PRICE_LE_BYTES",
|
|
16280
17040
|
type: {
|
|
@@ -16285,6 +17045,11 @@ var constants = [
|
|
|
16285
17045
|
},
|
|
16286
17046
|
value: "[155, 87, 105, 78, 169, 26, 92, 132, 177, 196, 254, 255, 0, 0, 0, 0]"
|
|
16287
17047
|
},
|
|
17048
|
+
{
|
|
17049
|
+
name: "MIN_FEE_NUMERATOR",
|
|
17050
|
+
type: "u64",
|
|
17051
|
+
value: "100000"
|
|
17052
|
+
},
|
|
16288
17053
|
{
|
|
16289
17054
|
name: "MIN_SQRT_PRICE_LE_BYTES",
|
|
16290
17055
|
type: {
|
|
@@ -16337,4 +17102,4 @@ var cp_amm = {
|
|
|
16337
17102
|
constants: constants
|
|
16338
17103
|
};
|
|
16339
17104
|
|
|
16340
|
-
export { ActivationPoint, ActivationType, type AddLiquidityParams, type AmmProgram, 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 ClaimPartnerFeeParams, type ClaimPositionFeeInstructionParams, type ClaimPositionFeeParams, type ClaimPositionFeeParams2, type ClaimRewardParams, type ClosePositionInstructionParams, type ClosePositionParams, CollectFeeMode, type ConfigState, CpAmm, cp_amm as CpAmmIdl, 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, DYNAMIC_FEE_ROUNDING_OFFSET, DYNAMIC_FEE_SCALING_FACTOR, type DecodedPoolFees, type DepositQuote, type DynamicFee, type DynamicFeeParams, type DynamicFeeStruct, FEE_DENOMINATOR, FEE_PADDING, FeeMarketCapScheduler, type FeeMode, type FeeOnAmountResult, FeeRateLimiter, FeeTimeScheduler, type FundRewardParams, type GetDepositQuoteParams, type GetQuote2Params, type GetQuoteParams, type GetWithdrawQuoteParams, type InitializeAndFundReward, type InitializeCustomizeablePoolParams, type InitializeCustomizeablePoolWithDynamicConfigParams, type InitializeRewardParams, LIQUIDITY_SCALE, type LiquidityDeltaParams, 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_SQRT_PRICE, MIN_CU_BUFFER, MIN_FEE_BPS, MIN_FEE_NUMERATOR, MIN_SQRT_PRICE, type MergePositionParams, ONE_Q64, type PermanentLockParams, type PodAlignedFeeMarketCapScheduler, type PodAlignedFeeRateLimiter, type PodAlignedFeeTimeScheduler, type PoolFeesParams, type PoolFeesStruct, type PoolState, PoolStatus, PoolVersion, type PositionState, type PrepareCustomizablePoolParams, type PreparePoolCreationParams, type PreparePoolCreationSingleSide, type PrepareTokenAccountParams, type PreparedPoolCreation, type Quote2Result, type RefreshVestingParams, type RemoveAllLiquidityAndClosePositionParams, type RemoveAllLiquidityParams, type RemoveLiquidityParams, type RewardInfo, Rounding, SCALE_OFFSET, SPLIT_POSITION_DENOMINATOR, type SetupFeeClaimAccountsParams, type SplitFees, type SplitPosition2Params, type SplitPositionParams, type Swap2Params, type SwapAmount, SwapMode, type SwapParams, type SwapResult2, type TokenBadgeState, TradeDirection, type TransferHookState, type TxBuilder, U128_MAX, U16_MAX, U64_MAX, type UpdateRewardDurationParams, type UpdateRewardFunderParams, type UserRewardInfo, type VestingState, type WithdrawIneligibleRewardParams, type WithdrawQuote, bpsToFeeNumerator, calculateAtoBFromAmountIn, calculateAtoBFromAmountOut, calculateAtoBFromPartialAmountIn, calculateBtoAFromAmountIn, calculateBtoAFromAmountOut, calculateBtoAFromPartialAmountIn, calculateInitSqrtPrice, calculateTransferFeeExcludedAmount, calculateTransferFeeIncludedAmount, 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, getAmountBFromLiquidityDelta, getAmountWithSlippage, getAvailableVestingLiquidity, getBaseFeeHandler, 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, getLiquidityDeltaFromAmountA, getLiquidityDeltaFromAmountB, getMaxAmountWithSlippage, getMaxBaseFeeNumerator, getMaxFeeBps, getMaxFeeNumerator, getMaxIndex, getNextSqrtPriceFromAmountInARoundingUp, getNextSqrtPriceFromAmountInBRoundingDown, getNextSqrtPriceFromAmountOutARoundingUp, getNextSqrtPriceFromAmountOutBRoundingDown, getNextSqrtPriceFromInput, getNextSqrtPriceFromOutput, getOrCreateATAInstruction, getPriceChange, getPriceFromSqrtPrice, getPriceImpact, getRateLimiterParams, getRewardInfo, getSecondKey, getSimulationComputeUnits, getSqrtPriceFromPrice, getSwapResultFromExactInput, getSwapResultFromExactOutput, getSwapResultFromPartialInput, getTokenDecimals, getTokenProgram, getTotalFeeNumerator, getTotalLockedLiquidity, getTotalTradingFeeFromExcludedFeeAmount, getTotalTradingFeeFromIncludedFeeAmount, getUnClaimLpFee, getUserRewardPending, hasPartner, hasTransferHookExtension, isDynamicFeeEnabled, isNonZeroRateLimiter, isRateLimiterApplied, isSwapEnabled, isVestingComplete, isZeroRateLimiter, mulDiv, offsetBasedFilter, parseFeeSchedulerSecondFactor, parseRateLimiterSecondFactor, positionByPoolFilter, pow, q64ToDecimal, splitFees, sqrt, swapQuoteExactInput, swapQuoteExactOutput, swapQuotePartialInput, toNumerator, unwrapSOLInstruction, validateFeeFraction, validateFeeMarketCapBaseFeeIsStatic, validateFeeMarketCapScheduler, validateFeeRateLimiter, validateFeeRateLimiterBaseFeeIsStatic, validateFeeTimeScheduler, validateFeeTimeSchedulerBaseFeeIsStatic, validateNoTransferHook, vestingByPositionFilter, wrapSOLInstruction };
|
|
17105
|
+
export { ActivationPoint, ActivationType, type AddLiquidityParams, type AmmProgram, 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 ClaimPartnerFeeParams, type ClaimPositionFeeInstructionParams, type ClaimPositionFeeParams, type ClaimPositionFeeParams2, type ClaimRewardParams, type ClosePositionInstructionParams, type ClosePositionParams, CollectFeeMode, type ConfigState, CpAmm, cp_amm as CpAmmIdl, 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, DYNAMIC_FEE_ROUNDING_OFFSET, DYNAMIC_FEE_SCALING_FACTOR, type DecodedPoolFees, type DepositQuote, type DynamicFee, type DynamicFeeParams, type DynamicFeeStruct, FEE_DENOMINATOR, FEE_PADDING, FeeMarketCapScheduler, type FeeMode, type FeeOnAmountResult, FeeRateLimiter, FeeTimeScheduler, type FundRewardParams, type GetDepositQuoteParams, type GetQuote2Params, type GetQuoteParams, type GetWithdrawQuoteParams, type InitializeAndFundReward, type InitializeCustomizeablePoolParams, type InitializeCustomizeablePoolWithDynamicConfigParams, type InitializeRewardParams, type InnerVesting, LIQUIDITY_SCALE, type LiquidityDeltaParams, 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_SQRT_PRICE, MIN_CU_BUFFER, MIN_FEE_BPS, MIN_FEE_NUMERATOR, MIN_SQRT_PRICE, type MergePositionParams, ONE_Q64, type PermanentLockParams, type PodAlignedFeeMarketCapScheduler, type PodAlignedFeeRateLimiter, type PodAlignedFeeTimeScheduler, type PoolFeesParams, type PoolFeesStruct, type PoolState, PoolStatus, PoolVersion, type PositionState, type PrepareCustomizablePoolParams, type PreparePoolCreationParams, type PreparePoolCreationSingleSide, type PrepareTokenAccountParams, type PreparedPoolCreation, type Quote2Result, type RefreshVestingParams, type RemoveAllLiquidityAndClosePositionParams, type RemoveAllLiquidityParams, type RemoveLiquidityParams, type RewardInfo, Rounding, SCALE_OFFSET, SPLIT_POSITION_DENOMINATOR, type SetupFeeClaimAccountsParams, type SplitFees, type SplitPosition2Params, type SplitPositionParams, type Swap2Params, type SwapAmount, SwapMode, type SwapParams, type SwapResult2, type TokenBadgeState, TradeDirection, type TransferHookState, type TxBuilder, U128_MAX, U16_MAX, U64_MAX, type UpdateRewardDurationParams, type UpdateRewardFunderParams, type UserRewardInfo, type VestingState, type WithdrawIneligibleRewardParams, type WithdrawQuote, bpsToFeeNumerator, calculateAtoBFromAmountIn, calculateAtoBFromAmountOut, calculateAtoBFromPartialAmountIn, calculateBtoAFromAmountIn, calculateBtoAFromAmountOut, calculateBtoAFromPartialAmountIn, calculateInitSqrtPrice, calculateTransferFeeExcludedAmount, calculateTransferFeeIncludedAmount, 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, getAmountBFromLiquidityDelta, getAmountWithSlippage, getAvailableVestingLiquidity, getBaseFeeHandler, 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, getLiquidityDeltaFromAmountA, getLiquidityDeltaFromAmountB, getMaxAmountWithSlippage, getMaxBaseFeeNumerator, getMaxFeeBps, getMaxFeeNumerator, getMaxIndex, getNextSqrtPriceFromAmountInARoundingUp, getNextSqrtPriceFromAmountInBRoundingDown, getNextSqrtPriceFromAmountOutARoundingUp, getNextSqrtPriceFromAmountOutBRoundingDown, getNextSqrtPriceFromInput, getNextSqrtPriceFromOutput, getOrCreateATAInstruction, getPriceChange, getPriceFromSqrtPrice, getPriceImpact, getRateLimiterMaxBaseFeeNumerator, getRateLimiterMinBaseFeeNumerator, getRateLimiterParams, getRewardInfo, getSecondKey, getSimulationComputeUnits, getSqrtPriceFromPrice, getSwapResultFromExactInput, getSwapResultFromExactOutput, getSwapResultFromPartialInput, getTokenDecimals, getTokenProgram, getTotalFeeNumerator, getTotalLockedLiquidity, getTotalTradingFeeFromExcludedFeeAmount, getTotalTradingFeeFromIncludedFeeAmount, getUnClaimLpFee, getUserRewardPending, hasPartner, hasTransferHookExtension, isDynamicFeeEnabled, isNonZeroRateLimiter, isRateLimiterApplied, isSwapEnabled, isVestingComplete, isZeroRateLimiter, mulDiv, offsetBasedFilter, parseFeeSchedulerSecondFactor, parseRateLimiterSecondFactor, positionByPoolFilter, pow, q64ToDecimal, splitFees, sqrt, swapQuoteExactInput, swapQuoteExactOutput, swapQuotePartialInput, toNumerator, unwrapSOLInstruction, validateFeeFraction, validateFeeMarketCapBaseFeeIsStatic, validateFeeMarketCapScheduler, validateFeeRateLimiter, validateFeeRateLimiterBaseFeeIsStatic, validateFeeTimeScheduler, validateFeeTimeSchedulerBaseFeeIsStatic, validateNoTransferHook, vestingByPositionFilter, wrapSOLInstruction };
|