@candledottv/agent-sdk 0.6.7 → 0.6.8
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 +77 -30
- package/dist/client.d.ts +42 -58
- package/dist/client.d.ts.map +1 -1
- package/dist/hyperliquid-pnl.d.ts +68 -10
- package/dist/hyperliquid-pnl.d.ts.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +838 -4
- package/dist/launch-definition.d.ts +648 -0
- package/dist/launch-definition.d.ts.map +1 -0
- package/dist/launch-input.d.ts +9 -0
- package/dist/launch-input.d.ts.map +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,648 @@
|
|
|
1
|
+
export declare const LAUNCH_DEFINITION: {
|
|
2
|
+
readonly version: 1;
|
|
3
|
+
readonly wallet: {
|
|
4
|
+
readonly embeddedNames: readonly ["embedded", "main"];
|
|
5
|
+
readonly help: "The paying wallet: a TEE wallet name, or embedded (main) for the account's embedded wallet.";
|
|
6
|
+
};
|
|
7
|
+
readonly quoteDecimals: {
|
|
8
|
+
readonly sol: 9;
|
|
9
|
+
readonly usdc: 6;
|
|
10
|
+
readonly cndl: 6;
|
|
11
|
+
readonly eth: 18;
|
|
12
|
+
readonly usdg: 6;
|
|
13
|
+
};
|
|
14
|
+
readonly quoteChains: {
|
|
15
|
+
readonly sol: "solana";
|
|
16
|
+
readonly usdc: "solana";
|
|
17
|
+
readonly cndl: "solana";
|
|
18
|
+
readonly eth: "hood";
|
|
19
|
+
readonly usdg: "hood";
|
|
20
|
+
};
|
|
21
|
+
readonly defaultQuote: {
|
|
22
|
+
readonly solana: "sol";
|
|
23
|
+
readonly hood: "eth";
|
|
24
|
+
};
|
|
25
|
+
readonly buyLimits: {
|
|
26
|
+
readonly defaults: {
|
|
27
|
+
readonly sol: {
|
|
28
|
+
readonly env: "DEV_BUY_MAX_LAMPORTS";
|
|
29
|
+
readonly raw: "500000000";
|
|
30
|
+
readonly unit: "lamports";
|
|
31
|
+
};
|
|
32
|
+
readonly usdc: {
|
|
33
|
+
readonly env: "DEV_BUY_MAX_USDC_RAW";
|
|
34
|
+
readonly raw: "500000000";
|
|
35
|
+
readonly unit: "USDC raw units";
|
|
36
|
+
};
|
|
37
|
+
readonly cndl: {
|
|
38
|
+
readonly env: "DEV_BUY_MAX_CNDL_RAW";
|
|
39
|
+
readonly raw: "2000000000000";
|
|
40
|
+
readonly unit: "CNDL raw units";
|
|
41
|
+
};
|
|
42
|
+
readonly eth: {
|
|
43
|
+
readonly env: "DEV_BUY_MAX_WEI";
|
|
44
|
+
readonly raw: "20000000000000000";
|
|
45
|
+
readonly unit: "wei";
|
|
46
|
+
};
|
|
47
|
+
};
|
|
48
|
+
readonly thresholdBps: 1000;
|
|
49
|
+
readonly presetThresholds: {
|
|
50
|
+
readonly "exp-a": {
|
|
51
|
+
readonly sol: "5000000000";
|
|
52
|
+
readonly cndl: "330000000000";
|
|
53
|
+
};
|
|
54
|
+
readonly "exp-b": {
|
|
55
|
+
readonly sol: "5000000000";
|
|
56
|
+
readonly cndl: "330000000000";
|
|
57
|
+
};
|
|
58
|
+
readonly "exp-c": {
|
|
59
|
+
readonly sol: "5000000000";
|
|
60
|
+
readonly cndl: "330000000000";
|
|
61
|
+
};
|
|
62
|
+
};
|
|
63
|
+
};
|
|
64
|
+
readonly surfacesIntro: readonly ["CLI: scripts and terminals. Agents always pass --json.", "MCP: chat agents (Claude, the connector). The same launch fields and results as the CLI's --json.", "SDK: code that embeds Candle."];
|
|
65
|
+
readonly fields: readonly [{
|
|
66
|
+
readonly key: "wallet";
|
|
67
|
+
readonly type: "string";
|
|
68
|
+
readonly help: "The paying wallet: a TEE wallet name, or embedded (main) for the account's embedded wallet.";
|
|
69
|
+
readonly required: true;
|
|
70
|
+
readonly surfaces: {
|
|
71
|
+
readonly cli: {
|
|
72
|
+
readonly flag: "--wallet";
|
|
73
|
+
readonly value: "<tee>|embedded";
|
|
74
|
+
};
|
|
75
|
+
readonly mcp: {
|
|
76
|
+
readonly key: "wallet";
|
|
77
|
+
};
|
|
78
|
+
readonly sdk: {
|
|
79
|
+
readonly key: "wallet";
|
|
80
|
+
};
|
|
81
|
+
};
|
|
82
|
+
}, {
|
|
83
|
+
readonly key: "clientLaunchId";
|
|
84
|
+
readonly type: "string";
|
|
85
|
+
readonly help: "An idempotency key of at most 128 characters; reuse it to recover the same launch.";
|
|
86
|
+
readonly range: {
|
|
87
|
+
readonly min: "1";
|
|
88
|
+
readonly max: "128";
|
|
89
|
+
readonly unit: "characters";
|
|
90
|
+
};
|
|
91
|
+
readonly surfaces: {
|
|
92
|
+
readonly cli: {
|
|
93
|
+
readonly flag: "--client-trade-id";
|
|
94
|
+
readonly value: "<id>";
|
|
95
|
+
};
|
|
96
|
+
readonly mcp: {
|
|
97
|
+
readonly key: "clientLaunchId";
|
|
98
|
+
};
|
|
99
|
+
readonly sdk: {
|
|
100
|
+
readonly key: "clientLaunchId";
|
|
101
|
+
};
|
|
102
|
+
};
|
|
103
|
+
}, {
|
|
104
|
+
readonly key: "name";
|
|
105
|
+
readonly type: "string";
|
|
106
|
+
readonly help: "The token's name, at most 32 UTF-8 bytes.";
|
|
107
|
+
readonly required: true;
|
|
108
|
+
readonly range: {
|
|
109
|
+
readonly min: "1";
|
|
110
|
+
readonly max: "32";
|
|
111
|
+
readonly unit: "UTF-8 bytes";
|
|
112
|
+
};
|
|
113
|
+
readonly surfaces: {
|
|
114
|
+
readonly cli: {
|
|
115
|
+
readonly flag: "--name";
|
|
116
|
+
readonly value: "<name>";
|
|
117
|
+
};
|
|
118
|
+
readonly mcp: {
|
|
119
|
+
readonly key: "name";
|
|
120
|
+
};
|
|
121
|
+
readonly sdk: {
|
|
122
|
+
readonly key: "name";
|
|
123
|
+
};
|
|
124
|
+
};
|
|
125
|
+
}, {
|
|
126
|
+
readonly key: "symbol";
|
|
127
|
+
readonly type: "string";
|
|
128
|
+
readonly help: "The token's ticker, at most 10 UTF-8 bytes.";
|
|
129
|
+
readonly required: true;
|
|
130
|
+
readonly range: {
|
|
131
|
+
readonly min: "1";
|
|
132
|
+
readonly max: "10";
|
|
133
|
+
readonly unit: "UTF-8 bytes";
|
|
134
|
+
};
|
|
135
|
+
readonly surfaces: {
|
|
136
|
+
readonly cli: {
|
|
137
|
+
readonly flag: "--symbol";
|
|
138
|
+
readonly value: "<symbol>";
|
|
139
|
+
};
|
|
140
|
+
readonly mcp: {
|
|
141
|
+
readonly key: "symbol";
|
|
142
|
+
};
|
|
143
|
+
readonly sdk: {
|
|
144
|
+
readonly key: "symbol";
|
|
145
|
+
};
|
|
146
|
+
};
|
|
147
|
+
}, {
|
|
148
|
+
readonly key: "imageUrl";
|
|
149
|
+
readonly type: "url";
|
|
150
|
+
readonly help: "The roughly square token image at an https URL; --image <path> uploads a local file instead.";
|
|
151
|
+
readonly required: true;
|
|
152
|
+
readonly surfaces: {
|
|
153
|
+
readonly cli: {
|
|
154
|
+
readonly flag: "--image-url";
|
|
155
|
+
readonly value: "<https-url>";
|
|
156
|
+
};
|
|
157
|
+
readonly mcp: {
|
|
158
|
+
readonly key: "imageUrl";
|
|
159
|
+
};
|
|
160
|
+
readonly sdk: {
|
|
161
|
+
readonly key: "imageUrl";
|
|
162
|
+
};
|
|
163
|
+
};
|
|
164
|
+
}, {
|
|
165
|
+
readonly key: "bannerUrl";
|
|
166
|
+
readonly type: "url";
|
|
167
|
+
readonly help: "A wide banner at an https URL or a local file; uploads are public and permanent.";
|
|
168
|
+
readonly surfaces: {
|
|
169
|
+
readonly cli: {
|
|
170
|
+
readonly flag: "--banner";
|
|
171
|
+
readonly value: "<file|URL>";
|
|
172
|
+
};
|
|
173
|
+
readonly mcp: {
|
|
174
|
+
readonly key: "bannerUrl";
|
|
175
|
+
};
|
|
176
|
+
readonly sdk: {
|
|
177
|
+
readonly key: "bannerUrl";
|
|
178
|
+
};
|
|
179
|
+
};
|
|
180
|
+
}, {
|
|
181
|
+
readonly key: "description";
|
|
182
|
+
readonly type: "string";
|
|
183
|
+
readonly help: "The token's description, safe for on-chain JSON.";
|
|
184
|
+
readonly surfaces: {
|
|
185
|
+
readonly cli: {
|
|
186
|
+
readonly flag: "--description";
|
|
187
|
+
readonly value: "<text>";
|
|
188
|
+
};
|
|
189
|
+
readonly mcp: {
|
|
190
|
+
readonly key: "description";
|
|
191
|
+
};
|
|
192
|
+
readonly sdk: {
|
|
193
|
+
readonly key: "description";
|
|
194
|
+
};
|
|
195
|
+
};
|
|
196
|
+
}, {
|
|
197
|
+
readonly key: "socials.website";
|
|
198
|
+
readonly type: "url";
|
|
199
|
+
readonly help: "The token's website link as an absolute http(s) URL.";
|
|
200
|
+
readonly surfaces: {
|
|
201
|
+
readonly cli: {
|
|
202
|
+
readonly flag: "--website";
|
|
203
|
+
readonly value: "<url>";
|
|
204
|
+
};
|
|
205
|
+
readonly mcp: {
|
|
206
|
+
readonly key: "socials.website";
|
|
207
|
+
};
|
|
208
|
+
readonly sdk: {
|
|
209
|
+
readonly key: "socials.website";
|
|
210
|
+
};
|
|
211
|
+
};
|
|
212
|
+
}, {
|
|
213
|
+
readonly key: "socials.twitter";
|
|
214
|
+
readonly type: "url";
|
|
215
|
+
readonly help: "The token's X link as an absolute http(s) URL.";
|
|
216
|
+
readonly surfaces: {
|
|
217
|
+
readonly cli: {
|
|
218
|
+
readonly flag: "--x";
|
|
219
|
+
readonly value: "<url>";
|
|
220
|
+
};
|
|
221
|
+
readonly mcp: {
|
|
222
|
+
readonly key: "socials.twitter";
|
|
223
|
+
};
|
|
224
|
+
readonly sdk: {
|
|
225
|
+
readonly key: "socials.twitter";
|
|
226
|
+
};
|
|
227
|
+
};
|
|
228
|
+
}, {
|
|
229
|
+
readonly key: "socials.telegram";
|
|
230
|
+
readonly type: "url";
|
|
231
|
+
readonly help: "The token's telegram link as an absolute http(s) URL.";
|
|
232
|
+
readonly surfaces: {
|
|
233
|
+
readonly cli: {
|
|
234
|
+
readonly flag: "--telegram";
|
|
235
|
+
readonly value: "<url>";
|
|
236
|
+
};
|
|
237
|
+
readonly mcp: {
|
|
238
|
+
readonly key: "socials.telegram";
|
|
239
|
+
};
|
|
240
|
+
readonly sdk: {
|
|
241
|
+
readonly key: "socials.telegram";
|
|
242
|
+
};
|
|
243
|
+
};
|
|
244
|
+
}, {
|
|
245
|
+
readonly key: "socials.discord";
|
|
246
|
+
readonly type: "url";
|
|
247
|
+
readonly help: "The token's discord link as an absolute http(s) URL.";
|
|
248
|
+
readonly surfaces: {
|
|
249
|
+
readonly cli: {
|
|
250
|
+
readonly flag: "--discord";
|
|
251
|
+
readonly value: "<url>";
|
|
252
|
+
};
|
|
253
|
+
readonly mcp: {
|
|
254
|
+
readonly key: "socials.discord";
|
|
255
|
+
};
|
|
256
|
+
readonly sdk: {
|
|
257
|
+
readonly key: "socials.discord";
|
|
258
|
+
};
|
|
259
|
+
};
|
|
260
|
+
}, {
|
|
261
|
+
readonly key: "chain";
|
|
262
|
+
readonly type: "enum";
|
|
263
|
+
readonly values: readonly ["solana", "hood"];
|
|
264
|
+
readonly default: "solana";
|
|
265
|
+
readonly help: "The launch chain, inferred from the wallet, quote asset and dex version on the CLI.";
|
|
266
|
+
readonly surfaces: {
|
|
267
|
+
readonly cli: {
|
|
268
|
+
readonly derived: "wallet, --quote-asset and --dex-version";
|
|
269
|
+
};
|
|
270
|
+
readonly mcp: {
|
|
271
|
+
readonly key: "chain";
|
|
272
|
+
};
|
|
273
|
+
readonly sdk: {
|
|
274
|
+
readonly key: "chain";
|
|
275
|
+
};
|
|
276
|
+
};
|
|
277
|
+
}, {
|
|
278
|
+
readonly key: "quoteAsset";
|
|
279
|
+
readonly type: "enum";
|
|
280
|
+
readonly help: "The quote asset: sol, usdc or cndl on Solana; eth or usdg on Hood (defaults sol and eth).";
|
|
281
|
+
readonly values: readonly ["sol", "usdc", "cndl", "eth", "usdg"];
|
|
282
|
+
readonly surfaces: {
|
|
283
|
+
readonly cli: {
|
|
284
|
+
readonly flag: "--quote-asset";
|
|
285
|
+
readonly value: "sol|usdc|cndl|eth|usdg";
|
|
286
|
+
};
|
|
287
|
+
readonly mcp: {
|
|
288
|
+
readonly key: "quoteAsset";
|
|
289
|
+
};
|
|
290
|
+
readonly sdk: {
|
|
291
|
+
readonly key: "quoteAsset";
|
|
292
|
+
};
|
|
293
|
+
};
|
|
294
|
+
}, {
|
|
295
|
+
readonly key: "mode";
|
|
296
|
+
readonly type: "enum";
|
|
297
|
+
readonly help: "The curve mode: open or exclusive; test-open or test-exclusive need ENABLE_TEST_CURVES; exp-a, exp-b, exp-c and exp-custom are Solana sol/cndl only.";
|
|
298
|
+
readonly values: readonly ["open", "exclusive", "test-open", "test-exclusive", "exp-a", "exp-b", "exp-c", "exp-custom"];
|
|
299
|
+
readonly default: "open";
|
|
300
|
+
readonly surfaces: {
|
|
301
|
+
readonly cli: {
|
|
302
|
+
readonly flag: "--mode";
|
|
303
|
+
readonly value: "<mode>";
|
|
304
|
+
};
|
|
305
|
+
readonly mcp: {
|
|
306
|
+
readonly key: "mode";
|
|
307
|
+
};
|
|
308
|
+
readonly sdk: {
|
|
309
|
+
readonly key: "mode";
|
|
310
|
+
};
|
|
311
|
+
};
|
|
312
|
+
}, {
|
|
313
|
+
readonly key: "curve.virtualQuote";
|
|
314
|
+
readonly type: "decimal";
|
|
315
|
+
readonly help: "exp-custom's virtual quote, in whole quote units: 1 to 100 SOL or 66000 to 6600000 CNDL; requires --curve-g and EXP_CUSTOM_CURVES.";
|
|
316
|
+
readonly modes: readonly ["exp-custom"];
|
|
317
|
+
readonly chains: readonly ["solana"];
|
|
318
|
+
readonly requires: readonly ["curve.threshold"];
|
|
319
|
+
readonly range: {
|
|
320
|
+
readonly unit: "whole quote units";
|
|
321
|
+
readonly byQuote: {
|
|
322
|
+
readonly sol: {
|
|
323
|
+
readonly min: "1";
|
|
324
|
+
readonly max: "100";
|
|
325
|
+
};
|
|
326
|
+
readonly cndl: {
|
|
327
|
+
readonly min: "66000";
|
|
328
|
+
readonly max: "6600000";
|
|
329
|
+
};
|
|
330
|
+
};
|
|
331
|
+
};
|
|
332
|
+
readonly surfaces: {
|
|
333
|
+
readonly cli: {
|
|
334
|
+
readonly flag: "--curve-v";
|
|
335
|
+
readonly value: "<V>";
|
|
336
|
+
};
|
|
337
|
+
readonly mcp: {
|
|
338
|
+
readonly key: "curve.virtualQuote";
|
|
339
|
+
};
|
|
340
|
+
readonly sdk: {
|
|
341
|
+
readonly key: "curve.virtualQuote";
|
|
342
|
+
};
|
|
343
|
+
};
|
|
344
|
+
}, {
|
|
345
|
+
readonly key: "curve.threshold";
|
|
346
|
+
readonly type: "decimal";
|
|
347
|
+
readonly help: "exp-custom's graduation threshold, in whole quote units: 1 to 250 SOL or 66000 to 16500000 CNDL; requires --curve-v and EXP_CUSTOM_CURVES.";
|
|
348
|
+
readonly modes: readonly ["exp-custom"];
|
|
349
|
+
readonly chains: readonly ["solana"];
|
|
350
|
+
readonly requires: readonly ["curve.virtualQuote"];
|
|
351
|
+
readonly range: {
|
|
352
|
+
readonly unit: "whole quote units";
|
|
353
|
+
readonly byQuote: {
|
|
354
|
+
readonly sol: {
|
|
355
|
+
readonly min: "1";
|
|
356
|
+
readonly max: "250";
|
|
357
|
+
};
|
|
358
|
+
readonly cndl: {
|
|
359
|
+
readonly min: "66000";
|
|
360
|
+
readonly max: "16500000";
|
|
361
|
+
};
|
|
362
|
+
};
|
|
363
|
+
};
|
|
364
|
+
readonly surfaces: {
|
|
365
|
+
readonly cli: {
|
|
366
|
+
readonly flag: "--curve-g";
|
|
367
|
+
readonly value: "<G>";
|
|
368
|
+
};
|
|
369
|
+
readonly mcp: {
|
|
370
|
+
readonly key: "curve.threshold";
|
|
371
|
+
};
|
|
372
|
+
readonly sdk: {
|
|
373
|
+
readonly key: "curve.threshold";
|
|
374
|
+
};
|
|
375
|
+
};
|
|
376
|
+
}, {
|
|
377
|
+
readonly key: "creatorFeeBps";
|
|
378
|
+
readonly type: "enum";
|
|
379
|
+
readonly help: "An exp- mode's extra creator fee: 0, 100 or 200 bps on the curve and pool, paid to the creator in full.";
|
|
380
|
+
readonly values: readonly [0, 100, 200];
|
|
381
|
+
readonly default: 0;
|
|
382
|
+
readonly surfaces: {
|
|
383
|
+
readonly cli: {
|
|
384
|
+
readonly flag: "--creator-fee-bps";
|
|
385
|
+
readonly value: "0|100|200";
|
|
386
|
+
};
|
|
387
|
+
readonly mcp: {
|
|
388
|
+
readonly key: "creatorFeeBps";
|
|
389
|
+
};
|
|
390
|
+
readonly sdk: {
|
|
391
|
+
readonly key: "creatorFeeBps";
|
|
392
|
+
};
|
|
393
|
+
};
|
|
394
|
+
}, {
|
|
395
|
+
readonly key: "stakerAllocationBps";
|
|
396
|
+
readonly type: "integer";
|
|
397
|
+
readonly help: "The staker allocation, 50 to 1000 bps; defaults to 50, or 500 on exp- curves.";
|
|
398
|
+
readonly range: {
|
|
399
|
+
readonly min: "50";
|
|
400
|
+
readonly max: "1000";
|
|
401
|
+
readonly unit: "bps";
|
|
402
|
+
};
|
|
403
|
+
readonly default: 50;
|
|
404
|
+
readonly surfaces: {
|
|
405
|
+
readonly cli: {
|
|
406
|
+
readonly flag: "--staker-allocation-bps";
|
|
407
|
+
readonly value: "<bps>";
|
|
408
|
+
};
|
|
409
|
+
readonly mcp: {
|
|
410
|
+
readonly key: "stakerAllocationBps";
|
|
411
|
+
};
|
|
412
|
+
readonly sdk: {
|
|
413
|
+
readonly key: "stakerAllocationBps";
|
|
414
|
+
};
|
|
415
|
+
};
|
|
416
|
+
}, {
|
|
417
|
+
readonly key: "poolFee.tier";
|
|
418
|
+
readonly type: "enum";
|
|
419
|
+
readonly help: "Solana's graduated pool fee: 25, 50 or 100 bps (default 50), or the ending rate with --pool-fee-from.";
|
|
420
|
+
readonly values: readonly [25, 50, 100];
|
|
421
|
+
readonly default: 50;
|
|
422
|
+
readonly chains: readonly ["solana"];
|
|
423
|
+
readonly surfaces: {
|
|
424
|
+
readonly cli: {
|
|
425
|
+
readonly flag: "--pool-fee";
|
|
426
|
+
readonly value: "25|50|100";
|
|
427
|
+
};
|
|
428
|
+
readonly mcp: {
|
|
429
|
+
readonly key: "poolFee.tier";
|
|
430
|
+
};
|
|
431
|
+
readonly sdk: {
|
|
432
|
+
readonly key: "poolFee.tier";
|
|
433
|
+
};
|
|
434
|
+
};
|
|
435
|
+
}, {
|
|
436
|
+
readonly key: "poolFee.startBps";
|
|
437
|
+
readonly type: "integer";
|
|
438
|
+
readonly help: "The falling pool fee's starting rate, at most 2500 bps; requires --pool-fee and --pool-fee-minutes.";
|
|
439
|
+
readonly range: {
|
|
440
|
+
readonly min: "25";
|
|
441
|
+
readonly max: "2500";
|
|
442
|
+
readonly unit: "bps";
|
|
443
|
+
};
|
|
444
|
+
readonly chains: readonly ["solana"];
|
|
445
|
+
readonly requires: readonly ["poolFee.tier", "poolFee.minutes"];
|
|
446
|
+
readonly surfaces: {
|
|
447
|
+
readonly cli: {
|
|
448
|
+
readonly flag: "--pool-fee-from";
|
|
449
|
+
readonly value: "<bps>";
|
|
450
|
+
};
|
|
451
|
+
readonly mcp: {
|
|
452
|
+
readonly key: "poolFee.startBps";
|
|
453
|
+
};
|
|
454
|
+
readonly sdk: {
|
|
455
|
+
readonly key: "poolFee.startBps";
|
|
456
|
+
};
|
|
457
|
+
};
|
|
458
|
+
}, {
|
|
459
|
+
readonly key: "poolFee.minutes";
|
|
460
|
+
readonly type: "decimal";
|
|
461
|
+
readonly help: "The pool fee's fall time, at most 30 minutes; requires --pool-fee and --pool-fee-from.";
|
|
462
|
+
readonly wireType: "number";
|
|
463
|
+
readonly range: {
|
|
464
|
+
readonly min: "0.006666666666666667";
|
|
465
|
+
readonly max: "30";
|
|
466
|
+
readonly unit: "minutes";
|
|
467
|
+
};
|
|
468
|
+
readonly chains: readonly ["solana"];
|
|
469
|
+
readonly requires: readonly ["poolFee.tier", "poolFee.startBps"];
|
|
470
|
+
readonly surfaces: {
|
|
471
|
+
readonly cli: {
|
|
472
|
+
readonly flag: "--pool-fee-minutes";
|
|
473
|
+
readonly value: "<min>";
|
|
474
|
+
};
|
|
475
|
+
readonly mcp: {
|
|
476
|
+
readonly key: "poolFee.minutes";
|
|
477
|
+
};
|
|
478
|
+
readonly sdk: {
|
|
479
|
+
readonly key: "poolFee.minutes";
|
|
480
|
+
};
|
|
481
|
+
};
|
|
482
|
+
}, {
|
|
483
|
+
readonly key: "poolFee.endBps";
|
|
484
|
+
readonly type: "enum";
|
|
485
|
+
readonly values: readonly [25, 50, 100];
|
|
486
|
+
readonly chains: readonly ["solana"];
|
|
487
|
+
readonly help: "The falling fee's ending rate, taken from --pool-fee.";
|
|
488
|
+
readonly surfaces: {
|
|
489
|
+
readonly cli: {
|
|
490
|
+
readonly derived: "--pool-fee with --pool-fee-from";
|
|
491
|
+
};
|
|
492
|
+
readonly mcp: {
|
|
493
|
+
readonly key: "poolFee.endBps";
|
|
494
|
+
};
|
|
495
|
+
readonly sdk: {
|
|
496
|
+
readonly key: "poolFee.endBps";
|
|
497
|
+
};
|
|
498
|
+
};
|
|
499
|
+
}, {
|
|
500
|
+
readonly key: "poolOpen";
|
|
501
|
+
readonly type: "enum";
|
|
502
|
+
readonly help: "Solana preset pools: curve_price opens at the curve's last price and burns the rest; omitted uses curve_price when allocations fit graduation.maxStakerCarveBps, otherwise legacy; explicit curve_price above that limit is refused.";
|
|
503
|
+
readonly values: readonly ["legacy", "curve_price"];
|
|
504
|
+
readonly chains: readonly ["solana"];
|
|
505
|
+
readonly surfaces: {
|
|
506
|
+
readonly cli: {
|
|
507
|
+
readonly flag: "--pool-open";
|
|
508
|
+
readonly value: "legacy|curve_price";
|
|
509
|
+
};
|
|
510
|
+
readonly mcp: {
|
|
511
|
+
readonly key: "poolOpen";
|
|
512
|
+
};
|
|
513
|
+
readonly sdk: {
|
|
514
|
+
readonly key: "poolOpen";
|
|
515
|
+
};
|
|
516
|
+
};
|
|
517
|
+
}, {
|
|
518
|
+
readonly key: "expPoolShape";
|
|
519
|
+
readonly type: "enum";
|
|
520
|
+
readonly help: "Solana exp- pools: floor by default, or full_range to open across the whole price range.";
|
|
521
|
+
readonly values: readonly ["floor", "full_range"];
|
|
522
|
+
readonly default: "floor";
|
|
523
|
+
readonly chains: readonly ["solana"];
|
|
524
|
+
readonly surfaces: {
|
|
525
|
+
readonly cli: {
|
|
526
|
+
readonly flag: "--exp-pool-shape";
|
|
527
|
+
readonly value: "floor|full_range";
|
|
528
|
+
};
|
|
529
|
+
readonly mcp: {
|
|
530
|
+
readonly key: "expPoolShape";
|
|
531
|
+
};
|
|
532
|
+
readonly sdk: {
|
|
533
|
+
readonly key: "expPoolShape";
|
|
534
|
+
};
|
|
535
|
+
};
|
|
536
|
+
}, {
|
|
537
|
+
readonly key: "dexVersion";
|
|
538
|
+
readonly type: "enum";
|
|
539
|
+
readonly help: "Hood only, required there: the Uniswap version the curve graduates to.";
|
|
540
|
+
readonly values: readonly ["v3", "v4"];
|
|
541
|
+
readonly chains: readonly ["hood"];
|
|
542
|
+
readonly surfaces: {
|
|
543
|
+
readonly cli: {
|
|
544
|
+
readonly flag: "--dex-version";
|
|
545
|
+
readonly value: "v3|v4";
|
|
546
|
+
};
|
|
547
|
+
readonly mcp: {
|
|
548
|
+
readonly key: "dexVersion";
|
|
549
|
+
};
|
|
550
|
+
readonly sdk: {
|
|
551
|
+
readonly key: "dexVersion";
|
|
552
|
+
};
|
|
553
|
+
};
|
|
554
|
+
}, {
|
|
555
|
+
readonly key: "visibility";
|
|
556
|
+
readonly type: "enum";
|
|
557
|
+
readonly help: "The token's visibility: production, test, local or hidden; test keys require test or hidden.";
|
|
558
|
+
readonly values: readonly ["production", "test", "local", "hidden"];
|
|
559
|
+
readonly default: "production";
|
|
560
|
+
readonly surfaces: {
|
|
561
|
+
readonly cli: {
|
|
562
|
+
readonly flag: "--visibility";
|
|
563
|
+
readonly value: "production|test|local|hidden";
|
|
564
|
+
};
|
|
565
|
+
readonly mcp: {
|
|
566
|
+
readonly key: "visibility";
|
|
567
|
+
};
|
|
568
|
+
readonly sdk: {
|
|
569
|
+
readonly key: "visibility";
|
|
570
|
+
};
|
|
571
|
+
};
|
|
572
|
+
}, {
|
|
573
|
+
readonly key: "buy";
|
|
574
|
+
readonly type: "decimal";
|
|
575
|
+
readonly help: "An optional first buy in whole quote units; zero or empty means no buy, and the server applies dev-buy ceilings and TEE_LAUNCH_BUYS_ENABLED for TEE buys.";
|
|
576
|
+
readonly default: "0";
|
|
577
|
+
readonly range: {
|
|
578
|
+
readonly min: "0";
|
|
579
|
+
readonly unit: "whole quote units";
|
|
580
|
+
};
|
|
581
|
+
readonly more: "Default raw caps (apps/api/src/lib/headless-validation.ts): DEV_BUY_MAX_LAMPORTS=500000000, DEV_BUY_MAX_USDC_RAW=500000000, DEV_BUY_MAX_CNDL_RAW=2000000000000, DEV_BUY_MAX_WEI=20000000000000000. On exp- curves the lower of the quote cap and 10% of G applies.";
|
|
582
|
+
readonly surfaces: {
|
|
583
|
+
readonly cli: {
|
|
584
|
+
readonly flag: "--buy";
|
|
585
|
+
readonly value: "<amount>";
|
|
586
|
+
};
|
|
587
|
+
readonly mcp: {
|
|
588
|
+
readonly key: "buy";
|
|
589
|
+
};
|
|
590
|
+
readonly sdk: {
|
|
591
|
+
readonly key: "buy";
|
|
592
|
+
};
|
|
593
|
+
};
|
|
594
|
+
}, {
|
|
595
|
+
readonly key: "dryRun";
|
|
596
|
+
readonly type: "boolean";
|
|
597
|
+
readonly help: "Print the launch preview without building, signing or recording a launch; local image uploads still become public and permanent.";
|
|
598
|
+
readonly default: false;
|
|
599
|
+
readonly surfaces: {
|
|
600
|
+
readonly cli: {
|
|
601
|
+
readonly flag: "--dry-run";
|
|
602
|
+
};
|
|
603
|
+
readonly mcp: {
|
|
604
|
+
readonly key: "dryRun";
|
|
605
|
+
};
|
|
606
|
+
readonly sdk: {
|
|
607
|
+
readonly key: "dryRun";
|
|
608
|
+
};
|
|
609
|
+
};
|
|
610
|
+
}];
|
|
611
|
+
};
|
|
612
|
+
export interface GeneratedLaunchFields {
|
|
613
|
+
wallet?: string;
|
|
614
|
+
clientLaunchId?: string;
|
|
615
|
+
name: string;
|
|
616
|
+
symbol: string;
|
|
617
|
+
imageUrl: string;
|
|
618
|
+
bannerUrl?: string;
|
|
619
|
+
description?: string;
|
|
620
|
+
socials?: {
|
|
621
|
+
website?: string;
|
|
622
|
+
twitter?: string;
|
|
623
|
+
telegram?: string;
|
|
624
|
+
discord?: string;
|
|
625
|
+
};
|
|
626
|
+
chain?: "solana" | "hood";
|
|
627
|
+
quoteAsset?: "sol" | "usdc" | "cndl" | "eth" | "usdg";
|
|
628
|
+
mode?: "open" | "exclusive" | "test-open" | "test-exclusive" | "exp-a" | "exp-b" | "exp-c" | "exp-custom";
|
|
629
|
+
curve?: {
|
|
630
|
+
virtualQuote?: string;
|
|
631
|
+
threshold?: string;
|
|
632
|
+
};
|
|
633
|
+
creatorFeeBps?: 0 | 100 | 200;
|
|
634
|
+
stakerAllocationBps?: number;
|
|
635
|
+
poolFee?: {
|
|
636
|
+
tier?: 25 | 50 | 100;
|
|
637
|
+
startBps?: number;
|
|
638
|
+
minutes?: number;
|
|
639
|
+
endBps?: 25 | 50 | 100;
|
|
640
|
+
};
|
|
641
|
+
poolOpen?: "legacy" | "curve_price";
|
|
642
|
+
expPoolShape?: "floor" | "full_range";
|
|
643
|
+
dexVersion?: "v3" | "v4";
|
|
644
|
+
visibility?: "production" | "test" | "local" | "hidden";
|
|
645
|
+
buy?: string;
|
|
646
|
+
dryRun?: boolean;
|
|
647
|
+
}
|
|
648
|
+
//# sourceMappingURL=launch-definition.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"launch-definition.d.ts","sourceRoot":"","sources":["../src/launch-definition.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAktBpB,CAAA;AAEV,MAAM,WAAW,qBAAqB;IACpC,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,EAAE,MAAM,CAAA;IACd,QAAQ,EAAE,MAAM,CAAA;IAChB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,OAAO,CAAC,EAAE;QACR,OAAO,CAAC,EAAE,MAAM,CAAA;QAChB,OAAO,CAAC,EAAE,MAAM,CAAA;QAChB,QAAQ,CAAC,EAAE,MAAM,CAAA;QACjB,OAAO,CAAC,EAAE,MAAM,CAAA;KACjB,CAAA;IACD,KAAK,CAAC,EAAE,QAAQ,GAAG,MAAM,CAAA;IACzB,UAAU,CAAC,EAAE,KAAK,GAAG,MAAM,GAAG,MAAM,GAAG,KAAK,GAAG,MAAM,CAAA;IACrD,IAAI,CAAC,EAAE,MAAM,GAAG,WAAW,GAAG,WAAW,GAAG,gBAAgB,GAAG,OAAO,GAAG,OAAO,GAAG,OAAO,GAAG,YAAY,CAAA;IACzG,KAAK,CAAC,EAAE;QACN,YAAY,CAAC,EAAE,MAAM,CAAA;QACrB,SAAS,CAAC,EAAE,MAAM,CAAA;KACnB,CAAA;IACD,aAAa,CAAC,EAAE,CAAC,GAAG,GAAG,GAAG,GAAG,CAAA;IAC7B,mBAAmB,CAAC,EAAE,MAAM,CAAA;IAC5B,OAAO,CAAC,EAAE;QACR,IAAI,CAAC,EAAE,EAAE,GAAG,EAAE,GAAG,GAAG,CAAA;QACpB,QAAQ,CAAC,EAAE,MAAM,CAAA;QACjB,OAAO,CAAC,EAAE,MAAM,CAAA;QAChB,MAAM,CAAC,EAAE,EAAE,GAAG,EAAE,GAAG,GAAG,CAAA;KACvB,CAAA;IACD,QAAQ,CAAC,EAAE,QAAQ,GAAG,aAAa,CAAA;IACnC,YAAY,CAAC,EAAE,OAAO,GAAG,YAAY,CAAA;IACrC,UAAU,CAAC,EAAE,IAAI,GAAG,IAAI,CAAA;IACxB,UAAU,CAAC,EAAE,YAAY,GAAG,MAAM,GAAG,OAAO,GAAG,QAAQ,CAAA;IACvD,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,MAAM,CAAC,EAAE,OAAO,CAAA;CACjB"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { Chain, LaunchRequest } from "./client";
|
|
2
|
+
import { CandleApiError } from "./errors";
|
|
3
|
+
export declare function embeddedLaunchWallet(wallet: LaunchRequest["wallet"]): boolean;
|
|
4
|
+
export declare function launchInputError(field: string, message: string, code?: string): CandleApiError;
|
|
5
|
+
/** Local shape refusals happen before discovery, build or signing. Server limits stay server-owned. */
|
|
6
|
+
export declare function validateLaunchInput(req: LaunchRequest): void;
|
|
7
|
+
/** Strip SDK controls and translate the whole-unit first buy without floating point rounding. */
|
|
8
|
+
export declare function launchBody(req: LaunchRequest, chain?: Chain): Omit<LaunchRequest, "wallet" | "buy">;
|
|
9
|
+
//# sourceMappingURL=launch-input.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"launch-input.d.ts","sourceRoot":"","sources":["../src/launch-input.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAA;AACpD,OAAO,EAAE,cAAc,EAAE,MAAM,UAAU,CAAA;AAGzC,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,aAAa,CAAC,QAAQ,CAAC,GAAG,OAAO,CAK7E;AAED,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,IAAI,SAAsB,GAAG,cAAc,CAE3G;AAED,uGAAuG;AACvG,wBAAgB,mBAAmB,CAAC,GAAG,EAAE,aAAa,GAAG,IAAI,CAwC5D;AAED,iGAAiG;AACjG,wBAAgB,UAAU,CAAC,GAAG,EAAE,aAAa,EAAE,KAAK,CAAC,EAAE,KAAK,GAAG,IAAI,CAAC,aAAa,EAAE,QAAQ,GAAG,KAAK,CAAC,CAkBnG"}
|
package/package.json
CHANGED