pump-kit 0.2.4 → 0.2.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +12 -36
- package/dist/index.js +12 -12
- package/dist/types/ammsdk/generated/accounts/bondingCurve.d.ts +43 -0
- package/dist/types/ammsdk/generated/accounts/feeConfig.d.ts +33 -0
- package/dist/types/ammsdk/generated/accounts/globalConfig.d.ts +16 -4
- package/dist/types/ammsdk/generated/accounts/globalVolumeAccumulator.d.ts +37 -0
- package/dist/types/ammsdk/generated/accounts/index.d.ts +5 -0
- package/dist/types/ammsdk/generated/accounts/pool.d.ts +6 -0
- package/dist/types/ammsdk/generated/accounts/sharingConfig.d.ts +39 -0
- package/dist/types/ammsdk/generated/accounts/userVolumeAccumulator.d.ts +43 -0
- package/dist/types/ammsdk/generated/errors/pumpAmm.d.ts +79 -29
- package/dist/types/ammsdk/generated/instructions/adminSetCoinCreator.d.ts +63 -0
- package/dist/types/ammsdk/generated/instructions/adminUpdateTokenIncentives.d.ts +99 -0
- package/dist/types/ammsdk/generated/instructions/buy.d.ts +67 -14
- package/dist/types/ammsdk/generated/instructions/buyExactQuoteIn.d.ts +144 -0
- package/dist/types/ammsdk/generated/instructions/claimCashback.d.ts +74 -0
- package/dist/types/ammsdk/generated/instructions/claimTokenIncentives.d.ts +86 -0
- package/dist/types/ammsdk/generated/instructions/closeUserVolumeAccumulator.d.ts +54 -0
- package/dist/types/ammsdk/generated/instructions/collectCoinCreatorFee.d.ts +70 -0
- package/dist/types/ammsdk/generated/instructions/createConfig.d.ts +26 -5
- package/dist/types/ammsdk/generated/instructions/createPool.d.ts +51 -12
- package/dist/types/ammsdk/generated/instructions/deposit.d.ts +33 -10
- package/dist/types/ammsdk/generated/instructions/disable.d.ts +16 -2
- package/dist/types/ammsdk/generated/instructions/extendAccount.d.ts +12 -2
- package/dist/types/ammsdk/generated/instructions/index.d.ts +15 -0
- package/dist/types/ammsdk/generated/instructions/initUserVolumeAccumulator.d.ts +62 -0
- package/dist/types/ammsdk/generated/instructions/migratePoolCoinCreator.d.ts +54 -0
- package/dist/types/ammsdk/generated/instructions/sell.d.ts +54 -14
- package/dist/types/ammsdk/generated/instructions/setCoinCreator.d.ts +58 -0
- package/dist/types/ammsdk/generated/instructions/setReservedFeeRecipients.d.ts +59 -0
- package/dist/types/ammsdk/generated/instructions/syncUserVolumeAccumulator.d.ts +58 -0
- package/dist/types/ammsdk/generated/instructions/toggleCashbackEnabled.d.ts +59 -0
- package/dist/types/ammsdk/generated/instructions/toggleMayhemMode.d.ts +59 -0
- package/dist/types/ammsdk/generated/instructions/transferCreatorFeesToPump.d.ts +81 -0
- package/dist/types/ammsdk/generated/instructions/updateAdmin.d.ts +12 -2
- package/dist/types/ammsdk/generated/instructions/updateFeeConfig.d.ts +22 -2
- package/dist/types/ammsdk/generated/instructions/withdraw.d.ts +33 -10
- package/dist/types/ammsdk/generated/programs/pumpAmm.d.ts +65 -15
- package/dist/types/ammsdk/generated/types/adminSetCoinCreatorEvent.d.ts +27 -0
- package/dist/types/ammsdk/generated/types/adminUpdateTokenIncentivesEvent.d.ts +29 -0
- package/dist/types/ammsdk/generated/types/buyEvent.d.ts +29 -4
- package/dist/types/ammsdk/generated/types/claimCashbackEvent.d.ts +25 -0
- package/dist/types/ammsdk/generated/types/claimTokenIncentivesEvent.d.ts +27 -0
- package/dist/types/ammsdk/generated/types/closeUserVolumeAccumulatorEvent.d.ts +27 -0
- package/dist/types/ammsdk/generated/types/collectCoinCreatorFeeEvent.d.ts +25 -0
- package/dist/types/ammsdk/generated/types/configStatus.d.ts +16 -0
- package/dist/types/ammsdk/generated/types/createConfigEvent.d.ts +4 -0
- package/dist/types/ammsdk/generated/types/createPoolEvent.d.ts +4 -0
- package/dist/types/ammsdk/generated/types/feeTier.d.ts +20 -0
- package/dist/types/ammsdk/generated/types/fees.d.ts +21 -0
- package/dist/types/ammsdk/generated/types/index.d.ts +17 -2
- package/dist/types/ammsdk/generated/types/initUserVolumeAccumulatorEvent.d.ts +21 -0
- package/dist/types/ammsdk/generated/types/migratePoolCoinCreatorEvent.d.ts +27 -0
- package/dist/types/ammsdk/generated/types/optionBool.d.ts +13 -0
- package/dist/types/ammsdk/generated/types/reservedFeeRecipientsEvent.d.ts +21 -0
- package/dist/types/ammsdk/generated/types/sellEvent.d.ts +10 -0
- package/dist/types/ammsdk/generated/types/setBondingCurveCoinCreatorEvent.d.ts +25 -0
- package/dist/types/ammsdk/generated/types/setMetaplexCoinCreatorEvent.d.ts +25 -0
- package/dist/types/ammsdk/generated/types/shareholder.d.ts +16 -0
- package/dist/types/ammsdk/generated/types/syncUserVolumeAccumulatorEvent.d.ts +23 -0
- package/dist/types/ammsdk/generated/types/updateFeeConfigEvent.d.ts +4 -0
- package/dist/types/clients/amm.d.ts +2 -10
- package/dist/types/pumpsdk/generated/accounts/bondingCurve.d.ts +4 -0
- package/dist/types/pumpsdk/generated/accounts/global.d.ts +12 -0
- package/dist/types/pumpsdk/generated/accounts/index.d.ts +1 -0
- package/dist/types/pumpsdk/generated/accounts/sharingConfig.d.ts +39 -0
- package/dist/types/pumpsdk/generated/accounts/userVolumeAccumulator.d.ts +4 -0
- package/dist/types/pumpsdk/generated/errors/pump.d.ts +29 -1
- package/dist/types/pumpsdk/generated/instructions/buy.d.ts +1 -1
- package/dist/types/pumpsdk/generated/instructions/buyExactSolIn.d.ts +1 -1
- package/dist/types/pumpsdk/generated/instructions/claimCashback.d.ts +58 -0
- package/dist/types/pumpsdk/generated/instructions/createV2.d.ts +128 -0
- package/dist/types/pumpsdk/generated/instructions/distributeCreatorFees.d.ts +66 -0
- package/dist/types/pumpsdk/generated/instructions/getMinimumDistributableFee.d.ts +54 -0
- package/dist/types/pumpsdk/generated/instructions/index.d.ts +10 -0
- package/dist/types/pumpsdk/generated/instructions/migrateBondingCurveCreator.d.ts +58 -0
- package/dist/types/pumpsdk/generated/instructions/setMayhemVirtualParams.d.ts +70 -0
- package/dist/types/pumpsdk/generated/instructions/setReservedFeeRecipients.d.ts +59 -0
- package/dist/types/pumpsdk/generated/instructions/toggleCashbackEnabled.d.ts +59 -0
- package/dist/types/pumpsdk/generated/instructions/toggleCreateV2.d.ts +59 -0
- package/dist/types/pumpsdk/generated/instructions/toggleMayhemMode.d.ts +59 -0
- package/dist/types/pumpsdk/generated/programs/pump.d.ts +47 -16
- package/dist/types/pumpsdk/generated/types/claimCashbackEvent.d.ts +25 -0
- package/dist/types/pumpsdk/generated/types/configStatus.d.ts +16 -0
- package/dist/types/pumpsdk/generated/types/createEvent.d.ts +6 -0
- package/dist/types/pumpsdk/generated/types/distributeCreatorFeesEvent.d.ts +30 -0
- package/dist/types/pumpsdk/generated/types/index.d.ts +8 -0
- package/dist/types/pumpsdk/generated/types/migrateBondingCurveCreatorEvent.d.ts +27 -0
- package/dist/types/pumpsdk/generated/types/minimumDistributableFeeEvent.d.ts +21 -0
- package/dist/types/pumpsdk/generated/types/reservedFeeRecipientsEvent.d.ts +21 -0
- package/dist/types/pumpsdk/generated/types/shareholder.d.ts +16 -0
- package/dist/types/pumpsdk/generated/types/tradeEvent.d.ts +6 -0
- package/dist/types/pumpsdk/generated/types/updateMayhemVirtualParamsEvent.d.ts +31 -0
- package/llms.txt +24 -0
- package/metadata/actions-registry.json +278 -0
- package/package.json +4 -2
- package/dist/types/ammsdk/generated/types/globalConfig.d.ts +0 -49
- package/dist/types/ammsdk/generated/types/pool.d.ts +0 -35
|
@@ -0,0 +1,278 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schemaVersion": "1.0.0",
|
|
3
|
+
"package": "pump-kit",
|
|
4
|
+
"entrypoints": [
|
|
5
|
+
"pump-kit",
|
|
6
|
+
"pump-kit/simple"
|
|
7
|
+
],
|
|
8
|
+
"jsonConventions": {
|
|
9
|
+
"bigintEncoding": "decimal-string",
|
|
10
|
+
"notes": [
|
|
11
|
+
"When invoking from JSON tools, encode bigint inputs as strings, then cast to BigInt in runtime code.",
|
|
12
|
+
"All slippage values are basis points (bps)."
|
|
13
|
+
]
|
|
14
|
+
},
|
|
15
|
+
"actions": [
|
|
16
|
+
{
|
|
17
|
+
"name": "buy",
|
|
18
|
+
"entrypoint": "pump-kit",
|
|
19
|
+
"mapsTo": "curveBuy",
|
|
20
|
+
"description": "Alias for curve buy."
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"name": "sell",
|
|
24
|
+
"entrypoint": "pump-kit",
|
|
25
|
+
"mapsTo": "curveSell",
|
|
26
|
+
"description": "Alias for curve sell."
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"name": "curveBuy",
|
|
30
|
+
"entrypoint": "pump-kit",
|
|
31
|
+
"description": "Build bonding-curve buy instruction with slippage guard.",
|
|
32
|
+
"requiredParams": [
|
|
33
|
+
"user",
|
|
34
|
+
"mint",
|
|
35
|
+
"solAmount",
|
|
36
|
+
"rpc"
|
|
37
|
+
],
|
|
38
|
+
"optionalParams": [
|
|
39
|
+
"slippageBps",
|
|
40
|
+
"feeRecipient",
|
|
41
|
+
"bondingCurveCreator",
|
|
42
|
+
"trackVolume",
|
|
43
|
+
"curveStateOverride",
|
|
44
|
+
"feeStructureOverride",
|
|
45
|
+
"allowAtaCreation",
|
|
46
|
+
"commitment"
|
|
47
|
+
],
|
|
48
|
+
"returns": "Instruction"
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"name": "curveSell",
|
|
52
|
+
"entrypoint": "pump-kit",
|
|
53
|
+
"description": "Build bonding-curve sell instruction using fixed token amount or wallet percentage.",
|
|
54
|
+
"requiredParams": [
|
|
55
|
+
"user",
|
|
56
|
+
"mint",
|
|
57
|
+
"rpc"
|
|
58
|
+
],
|
|
59
|
+
"optionalParams": [
|
|
60
|
+
"tokenAmount",
|
|
61
|
+
"useWalletPercentage",
|
|
62
|
+
"walletPercentage",
|
|
63
|
+
"tokenDecimals",
|
|
64
|
+
"slippageBps",
|
|
65
|
+
"feeRecipient",
|
|
66
|
+
"bondingCurveCreator",
|
|
67
|
+
"curveStateOverride",
|
|
68
|
+
"feeStructureOverride",
|
|
69
|
+
"commitment"
|
|
70
|
+
],
|
|
71
|
+
"returns": "Instruction"
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"name": "ammBuy",
|
|
75
|
+
"entrypoint": "pump-kit",
|
|
76
|
+
"description": "Build AMM buy instruction from a SOL budget.",
|
|
77
|
+
"requiredParams": [
|
|
78
|
+
"user",
|
|
79
|
+
"mint",
|
|
80
|
+
"solAmount",
|
|
81
|
+
"rpc"
|
|
82
|
+
],
|
|
83
|
+
"optionalParams": [
|
|
84
|
+
"slippageBps",
|
|
85
|
+
"poolAddress",
|
|
86
|
+
"poolCreator",
|
|
87
|
+
"poolIndex",
|
|
88
|
+
"quoteMint",
|
|
89
|
+
"allowTrackVolume",
|
|
90
|
+
"commitment"
|
|
91
|
+
],
|
|
92
|
+
"returns": "Instruction"
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
"name": "ammSell",
|
|
96
|
+
"entrypoint": "pump-kit",
|
|
97
|
+
"description": "Build AMM sell instruction using fixed amount or wallet percentage.",
|
|
98
|
+
"requiredParams": [
|
|
99
|
+
"user",
|
|
100
|
+
"mint",
|
|
101
|
+
"rpc"
|
|
102
|
+
],
|
|
103
|
+
"optionalParams": [
|
|
104
|
+
"tokenAmount",
|
|
105
|
+
"tokenDecimals",
|
|
106
|
+
"slippageBps",
|
|
107
|
+
"useWalletPercentage",
|
|
108
|
+
"walletPercentage",
|
|
109
|
+
"poolAddress",
|
|
110
|
+
"poolCreator",
|
|
111
|
+
"poolIndex",
|
|
112
|
+
"quoteMint",
|
|
113
|
+
"allowTrackVolume",
|
|
114
|
+
"commitment"
|
|
115
|
+
],
|
|
116
|
+
"returns": "Instruction"
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
"name": "addLiquidity",
|
|
120
|
+
"entrypoint": "pump-kit",
|
|
121
|
+
"description": "Build AMM liquidity deposit instruction.",
|
|
122
|
+
"requiredParams": [
|
|
123
|
+
"user",
|
|
124
|
+
"baseMint",
|
|
125
|
+
"maxBaseAmountIn",
|
|
126
|
+
"maxQuoteAmountIn"
|
|
127
|
+
],
|
|
128
|
+
"optionalParams": [
|
|
129
|
+
"quoteMint",
|
|
130
|
+
"poolIndex",
|
|
131
|
+
"poolAddress",
|
|
132
|
+
"poolCreator",
|
|
133
|
+
"minLpTokensOut",
|
|
134
|
+
"tokenProgram",
|
|
135
|
+
"token2022Program"
|
|
136
|
+
],
|
|
137
|
+
"returns": "Instruction"
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
"name": "removeLiquidity",
|
|
141
|
+
"entrypoint": "pump-kit",
|
|
142
|
+
"description": "Build AMM liquidity withdraw instruction.",
|
|
143
|
+
"requiredParams": [
|
|
144
|
+
"user",
|
|
145
|
+
"baseMint",
|
|
146
|
+
"lpAmountIn"
|
|
147
|
+
],
|
|
148
|
+
"optionalParams": [
|
|
149
|
+
"quoteMint",
|
|
150
|
+
"poolIndex",
|
|
151
|
+
"poolAddress",
|
|
152
|
+
"poolCreator",
|
|
153
|
+
"minBaseAmountOut",
|
|
154
|
+
"minQuoteAmountOut",
|
|
155
|
+
"tokenProgram",
|
|
156
|
+
"token2022Program"
|
|
157
|
+
],
|
|
158
|
+
"returns": "Instruction"
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
"name": "mintWithFirstBuy",
|
|
162
|
+
"entrypoint": "pump-kit",
|
|
163
|
+
"description": "Create token mint + initial curve buy instructions.",
|
|
164
|
+
"requiredParams": [
|
|
165
|
+
"user",
|
|
166
|
+
"mint",
|
|
167
|
+
"mintAuthority",
|
|
168
|
+
"name",
|
|
169
|
+
"symbol",
|
|
170
|
+
"uri",
|
|
171
|
+
"firstBuyTokenAmount",
|
|
172
|
+
"estimatedFirstBuyCost",
|
|
173
|
+
"rpc"
|
|
174
|
+
],
|
|
175
|
+
"optionalParams": [
|
|
176
|
+
"slippageBps",
|
|
177
|
+
"feeRecipient",
|
|
178
|
+
"bondingCurveCreator",
|
|
179
|
+
"trackVolume",
|
|
180
|
+
"commitment"
|
|
181
|
+
],
|
|
182
|
+
"returns": "MintAndBuyInstructions"
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
"name": "createAndBuy",
|
|
186
|
+
"entrypoint": "pump-kit",
|
|
187
|
+
"description": "Generate mint signer, create mint+buy instructions, then send+confirm transaction.",
|
|
188
|
+
"requiredParams": [
|
|
189
|
+
"creator",
|
|
190
|
+
"metadata",
|
|
191
|
+
"firstBuyTokenAmount",
|
|
192
|
+
"estimatedFirstBuyCost",
|
|
193
|
+
"rpc",
|
|
194
|
+
"rpcSubscriptions"
|
|
195
|
+
],
|
|
196
|
+
"optionalParams": [
|
|
197
|
+
"slippageBps",
|
|
198
|
+
"feeRecipient",
|
|
199
|
+
"bondingCurveCreator",
|
|
200
|
+
"mintAuthority",
|
|
201
|
+
"mint",
|
|
202
|
+
"priorityFees",
|
|
203
|
+
"prependInstructions",
|
|
204
|
+
"appendInstructions",
|
|
205
|
+
"additionalSigners",
|
|
206
|
+
"sendOptions",
|
|
207
|
+
"commitment"
|
|
208
|
+
],
|
|
209
|
+
"returns": "CreateAndBuyResult"
|
|
210
|
+
},
|
|
211
|
+
{
|
|
212
|
+
"name": "buildTransaction",
|
|
213
|
+
"entrypoint": "pump-kit",
|
|
214
|
+
"description": "Build transaction message with optional priority fee and prepend/append instruction hooks.",
|
|
215
|
+
"requiredParams": [
|
|
216
|
+
"instructions",
|
|
217
|
+
"payer",
|
|
218
|
+
"rpc"
|
|
219
|
+
],
|
|
220
|
+
"optionalParams": [
|
|
221
|
+
"additionalSigners",
|
|
222
|
+
"latestBlockhash",
|
|
223
|
+
"lastValidBlockHeight",
|
|
224
|
+
"prependInstructions",
|
|
225
|
+
"appendInstructions",
|
|
226
|
+
"priorityFees",
|
|
227
|
+
"version",
|
|
228
|
+
"commitment"
|
|
229
|
+
],
|
|
230
|
+
"returns": "BuiltTransaction"
|
|
231
|
+
},
|
|
232
|
+
{
|
|
233
|
+
"name": "sendAndConfirmTransaction",
|
|
234
|
+
"entrypoint": "pump-kit",
|
|
235
|
+
"description": "Build, sign, send, and confirm transaction.",
|
|
236
|
+
"requiredParams": [
|
|
237
|
+
"instructions",
|
|
238
|
+
"payer",
|
|
239
|
+
"rpc",
|
|
240
|
+
"rpcSubscriptions"
|
|
241
|
+
],
|
|
242
|
+
"optionalParams": [
|
|
243
|
+
"additionalSigners",
|
|
244
|
+
"latestBlockhash",
|
|
245
|
+
"lastValidBlockHeight",
|
|
246
|
+
"prependInstructions",
|
|
247
|
+
"appendInstructions",
|
|
248
|
+
"priorityFees",
|
|
249
|
+
"version",
|
|
250
|
+
"sendOptions",
|
|
251
|
+
"commitment"
|
|
252
|
+
],
|
|
253
|
+
"returns": "TransactionResult"
|
|
254
|
+
},
|
|
255
|
+
{
|
|
256
|
+
"name": "simulateTransaction",
|
|
257
|
+
"entrypoint": "pump-kit",
|
|
258
|
+
"description": "Build and simulate transaction without sending.",
|
|
259
|
+
"requiredParams": [
|
|
260
|
+
"instructions",
|
|
261
|
+
"payer",
|
|
262
|
+
"rpc"
|
|
263
|
+
],
|
|
264
|
+
"optionalParams": [
|
|
265
|
+
"additionalSigners",
|
|
266
|
+
"latestBlockhash",
|
|
267
|
+
"lastValidBlockHeight",
|
|
268
|
+
"prependInstructions",
|
|
269
|
+
"appendInstructions",
|
|
270
|
+
"priorityFees",
|
|
271
|
+
"version",
|
|
272
|
+
"options",
|
|
273
|
+
"commitment"
|
|
274
|
+
],
|
|
275
|
+
"returns": "SimulationResponse"
|
|
276
|
+
}
|
|
277
|
+
]
|
|
278
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pump-kit",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.5",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
@@ -15,7 +15,9 @@
|
|
|
15
15
|
"files": [
|
|
16
16
|
"dist",
|
|
17
17
|
"README.md",
|
|
18
|
-
"@pump-kit.png"
|
|
18
|
+
"@pump-kit.png",
|
|
19
|
+
"llms.txt",
|
|
20
|
+
"metadata/actions-registry.json"
|
|
19
21
|
],
|
|
20
22
|
"license": "MIT",
|
|
21
23
|
"engines": {
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This code was AUTOGENERATED using the Codama library.
|
|
3
|
-
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
4
|
-
* to add features, then rerun Codama to update it.
|
|
5
|
-
*
|
|
6
|
-
* @see https://github.com/codama-idl/codama
|
|
7
|
-
*/
|
|
8
|
-
import { type Address, type FixedSizeCodec, type FixedSizeDecoder, type FixedSizeEncoder } from '@solana/kit';
|
|
9
|
-
export type GlobalConfig = {
|
|
10
|
-
/** The admin pubkey */
|
|
11
|
-
admin: Address;
|
|
12
|
-
/** The lp fee in basis points (0.01%) */
|
|
13
|
-
lpFeeBasisPoints: bigint;
|
|
14
|
-
/** The protocol fee in basis points (0.01%) */
|
|
15
|
-
protocolFeeBasisPoints: bigint;
|
|
16
|
-
/**
|
|
17
|
-
* Flags to disable certain functionality
|
|
18
|
-
* bit 0 - Disable create pool
|
|
19
|
-
* bit 1 - Disable deposit
|
|
20
|
-
* bit 2 - Disable withdraw
|
|
21
|
-
* bit 3 - Disable buy
|
|
22
|
-
* bit 4 - Disable sell
|
|
23
|
-
*/
|
|
24
|
-
disableFlags: number;
|
|
25
|
-
/** Addresses of the protocol fee recipients */
|
|
26
|
-
protocolFeeRecipients: Array<Address>;
|
|
27
|
-
};
|
|
28
|
-
export type GlobalConfigArgs = {
|
|
29
|
-
/** The admin pubkey */
|
|
30
|
-
admin: Address;
|
|
31
|
-
/** The lp fee in basis points (0.01%) */
|
|
32
|
-
lpFeeBasisPoints: number | bigint;
|
|
33
|
-
/** The protocol fee in basis points (0.01%) */
|
|
34
|
-
protocolFeeBasisPoints: number | bigint;
|
|
35
|
-
/**
|
|
36
|
-
* Flags to disable certain functionality
|
|
37
|
-
* bit 0 - Disable create pool
|
|
38
|
-
* bit 1 - Disable deposit
|
|
39
|
-
* bit 2 - Disable withdraw
|
|
40
|
-
* bit 3 - Disable buy
|
|
41
|
-
* bit 4 - Disable sell
|
|
42
|
-
*/
|
|
43
|
-
disableFlags: number;
|
|
44
|
-
/** Addresses of the protocol fee recipients */
|
|
45
|
-
protocolFeeRecipients: Array<Address>;
|
|
46
|
-
};
|
|
47
|
-
export declare function getGlobalConfigEncoder(): FixedSizeEncoder<GlobalConfigArgs>;
|
|
48
|
-
export declare function getGlobalConfigDecoder(): FixedSizeDecoder<GlobalConfig>;
|
|
49
|
-
export declare function getGlobalConfigCodec(): FixedSizeCodec<GlobalConfigArgs, GlobalConfig>;
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This code was AUTOGENERATED using the Codama library.
|
|
3
|
-
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
4
|
-
* to add features, then rerun Codama to update it.
|
|
5
|
-
*
|
|
6
|
-
* @see https://github.com/codama-idl/codama
|
|
7
|
-
*/
|
|
8
|
-
import { type Address, type FixedSizeCodec, type FixedSizeDecoder, type FixedSizeEncoder } from '@solana/kit';
|
|
9
|
-
export type Pool = {
|
|
10
|
-
poolBump: number;
|
|
11
|
-
index: number;
|
|
12
|
-
creator: Address;
|
|
13
|
-
baseMint: Address;
|
|
14
|
-
quoteMint: Address;
|
|
15
|
-
lpMint: Address;
|
|
16
|
-
poolBaseTokenAccount: Address;
|
|
17
|
-
poolQuoteTokenAccount: Address;
|
|
18
|
-
/** True circulating supply without burns and lock-ups */
|
|
19
|
-
lpSupply: bigint;
|
|
20
|
-
};
|
|
21
|
-
export type PoolArgs = {
|
|
22
|
-
poolBump: number;
|
|
23
|
-
index: number;
|
|
24
|
-
creator: Address;
|
|
25
|
-
baseMint: Address;
|
|
26
|
-
quoteMint: Address;
|
|
27
|
-
lpMint: Address;
|
|
28
|
-
poolBaseTokenAccount: Address;
|
|
29
|
-
poolQuoteTokenAccount: Address;
|
|
30
|
-
/** True circulating supply without burns and lock-ups */
|
|
31
|
-
lpSupply: number | bigint;
|
|
32
|
-
};
|
|
33
|
-
export declare function getPoolEncoder(): FixedSizeEncoder<PoolArgs>;
|
|
34
|
-
export declare function getPoolDecoder(): FixedSizeDecoder<Pool>;
|
|
35
|
-
export declare function getPoolCodec(): FixedSizeCodec<PoolArgs, Pool>;
|