@star-factory/sdk-launchpad 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +13 -1
- package/dist/idl/index.d.ts +2 -0
- package/dist/idl/index.d.ts.map +1 -0
- package/dist/idl/index.js +6 -0
- package/dist/idl/index.js.map +1 -0
- package/dist/idl/launchpad.json +2892 -0
- package/dist/index.d.ts +7 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +10 -3
- package/dist/index.js.map +1 -1
- package/dist/program.d.ts +15 -0
- package/dist/program.d.ts.map +1 -0
- package/dist/program.js +31 -0
- package/dist/program.js.map +1 -0
- package/package.json +2 -2
|
@@ -0,0 +1,2892 @@
|
|
|
1
|
+
{
|
|
2
|
+
"address": "GdmC9tCxEvCLF3affN1mSEiLbowm5qKbJzfHSm1yyEDU",
|
|
3
|
+
"metadata": {
|
|
4
|
+
"name": "launchpad",
|
|
5
|
+
"version": "0.1.0",
|
|
6
|
+
"spec": "0.1.0",
|
|
7
|
+
"description": "Star Vault Launchpad Program"
|
|
8
|
+
},
|
|
9
|
+
"instructions": [
|
|
10
|
+
{
|
|
11
|
+
"name": "admin_sweep_dust",
|
|
12
|
+
"docs": [
|
|
13
|
+
"Sweep remaining tokens (rounding dust) from token_vault to DAO treasury.",
|
|
14
|
+
"Only valid after launch + grace period (180 days)."
|
|
15
|
+
],
|
|
16
|
+
"discriminator": [
|
|
17
|
+
131,
|
|
18
|
+
100,
|
|
19
|
+
94,
|
|
20
|
+
232,
|
|
21
|
+
197,
|
|
22
|
+
203,
|
|
23
|
+
4,
|
|
24
|
+
19
|
|
25
|
+
],
|
|
26
|
+
"accounts": [
|
|
27
|
+
{
|
|
28
|
+
"name": "admin",
|
|
29
|
+
"docs": [
|
|
30
|
+
"Platform admin signer."
|
|
31
|
+
],
|
|
32
|
+
"writable": true,
|
|
33
|
+
"signer": true
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"name": "launch_config",
|
|
37
|
+
"docs": [
|
|
38
|
+
"The launch config (must be in Launched state)."
|
|
39
|
+
],
|
|
40
|
+
"writable": true,
|
|
41
|
+
"pda": {
|
|
42
|
+
"seeds": [
|
|
43
|
+
{
|
|
44
|
+
"kind": "const",
|
|
45
|
+
"value": [
|
|
46
|
+
108,
|
|
47
|
+
97,
|
|
48
|
+
117,
|
|
49
|
+
110,
|
|
50
|
+
99,
|
|
51
|
+
104
|
|
52
|
+
]
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
"kind": "account",
|
|
56
|
+
"path": "launch_config.creator",
|
|
57
|
+
"account": "LaunchConfig"
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
"kind": "account",
|
|
61
|
+
"path": "launch_config.seed",
|
|
62
|
+
"account": "LaunchConfig"
|
|
63
|
+
}
|
|
64
|
+
]
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
"name": "launchpad_signer",
|
|
69
|
+
"docs": [
|
|
70
|
+
"The launchpad signer PDA (signs the transfer)."
|
|
71
|
+
],
|
|
72
|
+
"pda": {
|
|
73
|
+
"seeds": [
|
|
74
|
+
{
|
|
75
|
+
"kind": "const",
|
|
76
|
+
"value": [
|
|
77
|
+
115,
|
|
78
|
+
105,
|
|
79
|
+
103,
|
|
80
|
+
110,
|
|
81
|
+
101,
|
|
82
|
+
114
|
|
83
|
+
]
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
"kind": "account",
|
|
87
|
+
"path": "launch_config"
|
|
88
|
+
}
|
|
89
|
+
]
|
|
90
|
+
}
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
"name": "base_mint",
|
|
94
|
+
"docs": [
|
|
95
|
+
"The base mint of the launched token."
|
|
96
|
+
]
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
"name": "token_vault",
|
|
100
|
+
"docs": [
|
|
101
|
+
"Token vault: ATA of launchpad_signer for base_mint (source of dust)."
|
|
102
|
+
],
|
|
103
|
+
"writable": true
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
"name": "destination",
|
|
107
|
+
"docs": [
|
|
108
|
+
"Destination: DAO treasury token account for base_mint."
|
|
109
|
+
],
|
|
110
|
+
"writable": true
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
"name": "token_program"
|
|
114
|
+
}
|
|
115
|
+
],
|
|
116
|
+
"args": []
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
"name": "cancel_launch",
|
|
120
|
+
"docs": [
|
|
121
|
+
"Cancel a launch from any pre-Launched state.",
|
|
122
|
+
"Burns tokens if minted, enables refunds on the vault.",
|
|
123
|
+
"Transitions to Cancelled."
|
|
124
|
+
],
|
|
125
|
+
"discriminator": [
|
|
126
|
+
120,
|
|
127
|
+
69,
|
|
128
|
+
17,
|
|
129
|
+
7,
|
|
130
|
+
41,
|
|
131
|
+
48,
|
|
132
|
+
40,
|
|
133
|
+
37
|
|
134
|
+
],
|
|
135
|
+
"accounts": [
|
|
136
|
+
{
|
|
137
|
+
"name": "admin",
|
|
138
|
+
"docs": [
|
|
139
|
+
"Platform admin signer."
|
|
140
|
+
],
|
|
141
|
+
"writable": true,
|
|
142
|
+
"signer": true
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
"name": "launch_config",
|
|
146
|
+
"docs": [
|
|
147
|
+
"The launch config to cancel."
|
|
148
|
+
],
|
|
149
|
+
"writable": true,
|
|
150
|
+
"pda": {
|
|
151
|
+
"seeds": [
|
|
152
|
+
{
|
|
153
|
+
"kind": "const",
|
|
154
|
+
"value": [
|
|
155
|
+
108,
|
|
156
|
+
97,
|
|
157
|
+
117,
|
|
158
|
+
110,
|
|
159
|
+
99,
|
|
160
|
+
104
|
|
161
|
+
]
|
|
162
|
+
},
|
|
163
|
+
{
|
|
164
|
+
"kind": "account",
|
|
165
|
+
"path": "launch_config.creator",
|
|
166
|
+
"account": "LaunchConfig"
|
|
167
|
+
},
|
|
168
|
+
{
|
|
169
|
+
"kind": "account",
|
|
170
|
+
"path": "launch_config.seed",
|
|
171
|
+
"account": "LaunchConfig"
|
|
172
|
+
}
|
|
173
|
+
]
|
|
174
|
+
}
|
|
175
|
+
},
|
|
176
|
+
{
|
|
177
|
+
"name": "launchpad_signer",
|
|
178
|
+
"docs": [
|
|
179
|
+
"The launchpad signer PDA (signs burn/authority operations if token exists)."
|
|
180
|
+
],
|
|
181
|
+
"pda": {
|
|
182
|
+
"seeds": [
|
|
183
|
+
{
|
|
184
|
+
"kind": "const",
|
|
185
|
+
"value": [
|
|
186
|
+
115,
|
|
187
|
+
105,
|
|
188
|
+
103,
|
|
189
|
+
110,
|
|
190
|
+
101,
|
|
191
|
+
114
|
|
192
|
+
]
|
|
193
|
+
},
|
|
194
|
+
{
|
|
195
|
+
"kind": "account",
|
|
196
|
+
"path": "launch_config"
|
|
197
|
+
}
|
|
198
|
+
]
|
|
199
|
+
}
|
|
200
|
+
},
|
|
201
|
+
{
|
|
202
|
+
"name": "base_mint",
|
|
203
|
+
"docs": [
|
|
204
|
+
"The base mint (optional — only needed if state == TokenCreated)."
|
|
205
|
+
],
|
|
206
|
+
"writable": true,
|
|
207
|
+
"optional": true
|
|
208
|
+
},
|
|
209
|
+
{
|
|
210
|
+
"name": "token_vault",
|
|
211
|
+
"docs": [
|
|
212
|
+
"Token vault: ATA of launchpad_signer for base_mint (optional)."
|
|
213
|
+
],
|
|
214
|
+
"writable": true,
|
|
215
|
+
"optional": true
|
|
216
|
+
},
|
|
217
|
+
{
|
|
218
|
+
"name": "fundraise_state",
|
|
219
|
+
"docs": [
|
|
220
|
+
"The vault account (fundraise state) — for CPI to initiate_refund."
|
|
221
|
+
],
|
|
222
|
+
"writable": true
|
|
223
|
+
},
|
|
224
|
+
{
|
|
225
|
+
"name": "vault_program",
|
|
226
|
+
"docs": [
|
|
227
|
+
"The vault program for CPI."
|
|
228
|
+
],
|
|
229
|
+
"address": "2izCb6E5VNBa8NMFnKZhDmBptMCv7TyUNjkwFwrvf44B"
|
|
230
|
+
},
|
|
231
|
+
{
|
|
232
|
+
"name": "token_program"
|
|
233
|
+
},
|
|
234
|
+
{
|
|
235
|
+
"name": "system_program",
|
|
236
|
+
"address": "11111111111111111111111111111111"
|
|
237
|
+
}
|
|
238
|
+
],
|
|
239
|
+
"args": []
|
|
240
|
+
},
|
|
241
|
+
{
|
|
242
|
+
"name": "claim_tokens",
|
|
243
|
+
"docs": [
|
|
244
|
+
"Claim vested tokens based on user's vault allocation and tier.",
|
|
245
|
+
"Vesting starts at pool_activation_time, linear over tier duration.",
|
|
246
|
+
"Can be called multiple times as vesting progresses."
|
|
247
|
+
],
|
|
248
|
+
"discriminator": [
|
|
249
|
+
108,
|
|
250
|
+
216,
|
|
251
|
+
210,
|
|
252
|
+
231,
|
|
253
|
+
0,
|
|
254
|
+
212,
|
|
255
|
+
42,
|
|
256
|
+
64
|
|
257
|
+
],
|
|
258
|
+
"accounts": [
|
|
259
|
+
{
|
|
260
|
+
"name": "user",
|
|
261
|
+
"docs": [
|
|
262
|
+
"The user claiming their vested tokens."
|
|
263
|
+
],
|
|
264
|
+
"writable": true,
|
|
265
|
+
"signer": true
|
|
266
|
+
},
|
|
267
|
+
{
|
|
268
|
+
"name": "launch_config",
|
|
269
|
+
"docs": [
|
|
270
|
+
"The launch config (must be in Launched state)."
|
|
271
|
+
],
|
|
272
|
+
"writable": true,
|
|
273
|
+
"pda": {
|
|
274
|
+
"seeds": [
|
|
275
|
+
{
|
|
276
|
+
"kind": "const",
|
|
277
|
+
"value": [
|
|
278
|
+
108,
|
|
279
|
+
97,
|
|
280
|
+
117,
|
|
281
|
+
110,
|
|
282
|
+
99,
|
|
283
|
+
104
|
|
284
|
+
]
|
|
285
|
+
},
|
|
286
|
+
{
|
|
287
|
+
"kind": "account",
|
|
288
|
+
"path": "launch_config.creator",
|
|
289
|
+
"account": "LaunchConfig"
|
|
290
|
+
},
|
|
291
|
+
{
|
|
292
|
+
"kind": "account",
|
|
293
|
+
"path": "launch_config.seed",
|
|
294
|
+
"account": "LaunchConfig"
|
|
295
|
+
}
|
|
296
|
+
]
|
|
297
|
+
}
|
|
298
|
+
},
|
|
299
|
+
{
|
|
300
|
+
"name": "fundraise_state",
|
|
301
|
+
"docs": [
|
|
302
|
+
"The vault account (read-only). Used to read total_allocated and tier info."
|
|
303
|
+
],
|
|
304
|
+
"relations": [
|
|
305
|
+
"launch_config"
|
|
306
|
+
]
|
|
307
|
+
},
|
|
308
|
+
{
|
|
309
|
+
"name": "user_record",
|
|
310
|
+
"docs": [
|
|
311
|
+
"The user's depositor record (read-only). Used to read allocation and tier."
|
|
312
|
+
]
|
|
313
|
+
},
|
|
314
|
+
{
|
|
315
|
+
"name": "claim_record",
|
|
316
|
+
"docs": [
|
|
317
|
+
"Per-user claim record (init_if_needed on first claim)."
|
|
318
|
+
],
|
|
319
|
+
"writable": true,
|
|
320
|
+
"pda": {
|
|
321
|
+
"seeds": [
|
|
322
|
+
{
|
|
323
|
+
"kind": "const",
|
|
324
|
+
"value": [
|
|
325
|
+
99,
|
|
326
|
+
108,
|
|
327
|
+
97,
|
|
328
|
+
105,
|
|
329
|
+
109
|
|
330
|
+
]
|
|
331
|
+
},
|
|
332
|
+
{
|
|
333
|
+
"kind": "account",
|
|
334
|
+
"path": "launch_config"
|
|
335
|
+
},
|
|
336
|
+
{
|
|
337
|
+
"kind": "account",
|
|
338
|
+
"path": "user"
|
|
339
|
+
}
|
|
340
|
+
]
|
|
341
|
+
}
|
|
342
|
+
},
|
|
343
|
+
{
|
|
344
|
+
"name": "base_mint",
|
|
345
|
+
"docs": [
|
|
346
|
+
"The base mint of the launched token."
|
|
347
|
+
]
|
|
348
|
+
},
|
|
349
|
+
{
|
|
350
|
+
"name": "token_vault",
|
|
351
|
+
"docs": [
|
|
352
|
+
"Token vault: holds tokens_to_participants (ATA of launchpad_signer for base_mint)."
|
|
353
|
+
],
|
|
354
|
+
"writable": true
|
|
355
|
+
},
|
|
356
|
+
{
|
|
357
|
+
"name": "user_token_ata",
|
|
358
|
+
"docs": [
|
|
359
|
+
"User's ATA for the base mint (receives claimed tokens)."
|
|
360
|
+
],
|
|
361
|
+
"writable": true,
|
|
362
|
+
"pda": {
|
|
363
|
+
"seeds": [
|
|
364
|
+
{
|
|
365
|
+
"kind": "account",
|
|
366
|
+
"path": "user"
|
|
367
|
+
},
|
|
368
|
+
{
|
|
369
|
+
"kind": "const",
|
|
370
|
+
"value": [
|
|
371
|
+
6,
|
|
372
|
+
221,
|
|
373
|
+
246,
|
|
374
|
+
225,
|
|
375
|
+
215,
|
|
376
|
+
101,
|
|
377
|
+
161,
|
|
378
|
+
147,
|
|
379
|
+
217,
|
|
380
|
+
203,
|
|
381
|
+
225,
|
|
382
|
+
70,
|
|
383
|
+
206,
|
|
384
|
+
235,
|
|
385
|
+
121,
|
|
386
|
+
172,
|
|
387
|
+
28,
|
|
388
|
+
180,
|
|
389
|
+
133,
|
|
390
|
+
237,
|
|
391
|
+
95,
|
|
392
|
+
91,
|
|
393
|
+
55,
|
|
394
|
+
145,
|
|
395
|
+
58,
|
|
396
|
+
140,
|
|
397
|
+
245,
|
|
398
|
+
133,
|
|
399
|
+
126,
|
|
400
|
+
255,
|
|
401
|
+
0,
|
|
402
|
+
169
|
|
403
|
+
]
|
|
404
|
+
},
|
|
405
|
+
{
|
|
406
|
+
"kind": "account",
|
|
407
|
+
"path": "base_mint"
|
|
408
|
+
}
|
|
409
|
+
],
|
|
410
|
+
"program": {
|
|
411
|
+
"kind": "const",
|
|
412
|
+
"value": [
|
|
413
|
+
140,
|
|
414
|
+
151,
|
|
415
|
+
37,
|
|
416
|
+
143,
|
|
417
|
+
78,
|
|
418
|
+
36,
|
|
419
|
+
137,
|
|
420
|
+
241,
|
|
421
|
+
187,
|
|
422
|
+
61,
|
|
423
|
+
16,
|
|
424
|
+
41,
|
|
425
|
+
20,
|
|
426
|
+
142,
|
|
427
|
+
13,
|
|
428
|
+
131,
|
|
429
|
+
11,
|
|
430
|
+
90,
|
|
431
|
+
19,
|
|
432
|
+
153,
|
|
433
|
+
218,
|
|
434
|
+
255,
|
|
435
|
+
16,
|
|
436
|
+
132,
|
|
437
|
+
4,
|
|
438
|
+
142,
|
|
439
|
+
123,
|
|
440
|
+
216,
|
|
441
|
+
219,
|
|
442
|
+
233,
|
|
443
|
+
248,
|
|
444
|
+
89
|
|
445
|
+
]
|
|
446
|
+
}
|
|
447
|
+
}
|
|
448
|
+
},
|
|
449
|
+
{
|
|
450
|
+
"name": "launchpad_signer",
|
|
451
|
+
"docs": [
|
|
452
|
+
"The launchpad signer PDA (signs transfers from token_vault)."
|
|
453
|
+
],
|
|
454
|
+
"pda": {
|
|
455
|
+
"seeds": [
|
|
456
|
+
{
|
|
457
|
+
"kind": "const",
|
|
458
|
+
"value": [
|
|
459
|
+
115,
|
|
460
|
+
105,
|
|
461
|
+
103,
|
|
462
|
+
110,
|
|
463
|
+
101,
|
|
464
|
+
114
|
|
465
|
+
]
|
|
466
|
+
},
|
|
467
|
+
{
|
|
468
|
+
"kind": "account",
|
|
469
|
+
"path": "launch_config"
|
|
470
|
+
}
|
|
471
|
+
]
|
|
472
|
+
}
|
|
473
|
+
},
|
|
474
|
+
{
|
|
475
|
+
"name": "token_program"
|
|
476
|
+
},
|
|
477
|
+
{
|
|
478
|
+
"name": "associated_token_program",
|
|
479
|
+
"address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL"
|
|
480
|
+
},
|
|
481
|
+
{
|
|
482
|
+
"name": "system_program",
|
|
483
|
+
"address": "11111111111111111111111111111111"
|
|
484
|
+
}
|
|
485
|
+
],
|
|
486
|
+
"args": []
|
|
487
|
+
},
|
|
488
|
+
{
|
|
489
|
+
"name": "configure_launch",
|
|
490
|
+
"docs": [
|
|
491
|
+
"Set vanity mint configuration and token metadata.",
|
|
492
|
+
"Transitions from FundraiseActive → ReadyToLaunch.",
|
|
493
|
+
"Requires vault.status == TgeRequested (creator called request_tge)."
|
|
494
|
+
],
|
|
495
|
+
"discriminator": [
|
|
496
|
+
4,
|
|
497
|
+
9,
|
|
498
|
+
63,
|
|
499
|
+
61,
|
|
500
|
+
104,
|
|
501
|
+
54,
|
|
502
|
+
141,
|
|
503
|
+
228
|
|
504
|
+
],
|
|
505
|
+
"accounts": [
|
|
506
|
+
{
|
|
507
|
+
"name": "admin",
|
|
508
|
+
"docs": [
|
|
509
|
+
"Platform admin signer."
|
|
510
|
+
],
|
|
511
|
+
"signer": true
|
|
512
|
+
},
|
|
513
|
+
{
|
|
514
|
+
"name": "launch_config",
|
|
515
|
+
"docs": [
|
|
516
|
+
"The launch config to update (must be in FundraiseActive state)."
|
|
517
|
+
],
|
|
518
|
+
"writable": true
|
|
519
|
+
},
|
|
520
|
+
{
|
|
521
|
+
"name": "fundraise_state",
|
|
522
|
+
"docs": [
|
|
523
|
+
"The vault account (read-only). Must be in TgeRequested status.",
|
|
524
|
+
"Deserialized as StarVault to validate vault.status."
|
|
525
|
+
],
|
|
526
|
+
"relations": [
|
|
527
|
+
"launch_config"
|
|
528
|
+
]
|
|
529
|
+
}
|
|
530
|
+
],
|
|
531
|
+
"args": [
|
|
532
|
+
{
|
|
533
|
+
"name": "args",
|
|
534
|
+
"type": {
|
|
535
|
+
"defined": {
|
|
536
|
+
"name": "ConfigureLaunchArgs"
|
|
537
|
+
}
|
|
538
|
+
}
|
|
539
|
+
}
|
|
540
|
+
]
|
|
541
|
+
},
|
|
542
|
+
{
|
|
543
|
+
"name": "create_launch_token",
|
|
544
|
+
"docs": [
|
|
545
|
+
"Create the vanity mint, Metaplex metadata, and mint total supply.",
|
|
546
|
+
"Transitions from ReadyToLaunch → TokenCreated.",
|
|
547
|
+
"Requires both admin and base_keypair to sign."
|
|
548
|
+
],
|
|
549
|
+
"discriminator": [
|
|
550
|
+
217,
|
|
551
|
+
214,
|
|
552
|
+
222,
|
|
553
|
+
31,
|
|
554
|
+
171,
|
|
555
|
+
74,
|
|
556
|
+
29,
|
|
557
|
+
213
|
|
558
|
+
],
|
|
559
|
+
"accounts": [
|
|
560
|
+
{
|
|
561
|
+
"name": "admin",
|
|
562
|
+
"docs": [
|
|
563
|
+
"Platform admin signer (pays rent for mint + metadata)."
|
|
564
|
+
],
|
|
565
|
+
"writable": true,
|
|
566
|
+
"signer": true
|
|
567
|
+
},
|
|
568
|
+
{
|
|
569
|
+
"name": "base_keypair",
|
|
570
|
+
"docs": [
|
|
571
|
+
"Base keypair that was used to derive the vanity mint address.",
|
|
572
|
+
"Must match launch_config.vanity_config.base_pubkey."
|
|
573
|
+
],
|
|
574
|
+
"signer": true
|
|
575
|
+
},
|
|
576
|
+
{
|
|
577
|
+
"name": "launch_config",
|
|
578
|
+
"docs": [
|
|
579
|
+
"The launch config (must be ReadyToLaunch)."
|
|
580
|
+
],
|
|
581
|
+
"writable": true
|
|
582
|
+
},
|
|
583
|
+
{
|
|
584
|
+
"name": "launchpad_signer",
|
|
585
|
+
"docs": [
|
|
586
|
+
"The launchpad signer PDA — will be the mint authority."
|
|
587
|
+
],
|
|
588
|
+
"pda": {
|
|
589
|
+
"seeds": [
|
|
590
|
+
{
|
|
591
|
+
"kind": "const",
|
|
592
|
+
"value": [
|
|
593
|
+
115,
|
|
594
|
+
105,
|
|
595
|
+
103,
|
|
596
|
+
110,
|
|
597
|
+
101,
|
|
598
|
+
114
|
|
599
|
+
]
|
|
600
|
+
},
|
|
601
|
+
{
|
|
602
|
+
"kind": "account",
|
|
603
|
+
"path": "launch_config"
|
|
604
|
+
}
|
|
605
|
+
]
|
|
606
|
+
}
|
|
607
|
+
},
|
|
608
|
+
{
|
|
609
|
+
"name": "mint",
|
|
610
|
+
"docs": [
|
|
611
|
+
"The vanity mint — will be created by this instruction."
|
|
612
|
+
],
|
|
613
|
+
"writable": true
|
|
614
|
+
},
|
|
615
|
+
{
|
|
616
|
+
"name": "metadata",
|
|
617
|
+
"docs": [
|
|
618
|
+
"Metaplex metadata PDA for the mint."
|
|
619
|
+
],
|
|
620
|
+
"writable": true
|
|
621
|
+
},
|
|
622
|
+
{
|
|
623
|
+
"name": "token_vault",
|
|
624
|
+
"docs": [
|
|
625
|
+
"Token vault: ATA of launchpad_signer for the new mint.",
|
|
626
|
+
"Receives all minted tokens. Created manually after mint is created."
|
|
627
|
+
],
|
|
628
|
+
"writable": true
|
|
629
|
+
},
|
|
630
|
+
{
|
|
631
|
+
"name": "metadata_program",
|
|
632
|
+
"docs": [
|
|
633
|
+
"Metaplex Token Metadata program."
|
|
634
|
+
],
|
|
635
|
+
"address": "metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s"
|
|
636
|
+
},
|
|
637
|
+
{
|
|
638
|
+
"name": "token_program"
|
|
639
|
+
},
|
|
640
|
+
{
|
|
641
|
+
"name": "associated_token_program",
|
|
642
|
+
"address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL"
|
|
643
|
+
},
|
|
644
|
+
{
|
|
645
|
+
"name": "system_program",
|
|
646
|
+
"address": "11111111111111111111111111111111"
|
|
647
|
+
},
|
|
648
|
+
{
|
|
649
|
+
"name": "rent",
|
|
650
|
+
"address": "SysvarRent111111111111111111111111111111111"
|
|
651
|
+
}
|
|
652
|
+
],
|
|
653
|
+
"args": []
|
|
654
|
+
},
|
|
655
|
+
{
|
|
656
|
+
"name": "execute_launch",
|
|
657
|
+
"docs": [
|
|
658
|
+
"Execute the full launch: vault finalization, DAMM pool creation,",
|
|
659
|
+
"DAO creation via futarchy, authority transfers, and fund routing.",
|
|
660
|
+
"Transitions from TokenCreated → Launched.",
|
|
661
|
+
"This is the most complex instruction — all steps are atomic."
|
|
662
|
+
],
|
|
663
|
+
"discriminator": [
|
|
664
|
+
173,
|
|
665
|
+
237,
|
|
666
|
+
210,
|
|
667
|
+
57,
|
|
668
|
+
212,
|
|
669
|
+
147,
|
|
670
|
+
246,
|
|
671
|
+
53
|
|
672
|
+
],
|
|
673
|
+
"accounts": [
|
|
674
|
+
{
|
|
675
|
+
"name": "admin",
|
|
676
|
+
"docs": [
|
|
677
|
+
"Platform admin signer. Pays rent, signs vault CPI, creates DAO."
|
|
678
|
+
],
|
|
679
|
+
"writable": true,
|
|
680
|
+
"signer": true
|
|
681
|
+
},
|
|
682
|
+
{
|
|
683
|
+
"name": "launch_config",
|
|
684
|
+
"docs": [
|
|
685
|
+
"The launch config (must be in TokenCreated state)."
|
|
686
|
+
],
|
|
687
|
+
"writable": true,
|
|
688
|
+
"pda": {
|
|
689
|
+
"seeds": [
|
|
690
|
+
{
|
|
691
|
+
"kind": "const",
|
|
692
|
+
"value": [
|
|
693
|
+
108,
|
|
694
|
+
97,
|
|
695
|
+
117,
|
|
696
|
+
110,
|
|
697
|
+
99,
|
|
698
|
+
104
|
|
699
|
+
]
|
|
700
|
+
},
|
|
701
|
+
{
|
|
702
|
+
"kind": "account",
|
|
703
|
+
"path": "launch_config.creator",
|
|
704
|
+
"account": "LaunchConfig"
|
|
705
|
+
},
|
|
706
|
+
{
|
|
707
|
+
"kind": "account",
|
|
708
|
+
"path": "launch_config.seed",
|
|
709
|
+
"account": "LaunchConfig"
|
|
710
|
+
}
|
|
711
|
+
]
|
|
712
|
+
}
|
|
713
|
+
},
|
|
714
|
+
{
|
|
715
|
+
"name": "launchpad_signer",
|
|
716
|
+
"docs": [
|
|
717
|
+
"The launchpad signer PDA — controls token_vault, funds_vault, mint authority."
|
|
718
|
+
],
|
|
719
|
+
"writable": true,
|
|
720
|
+
"pda": {
|
|
721
|
+
"seeds": [
|
|
722
|
+
{
|
|
723
|
+
"kind": "const",
|
|
724
|
+
"value": [
|
|
725
|
+
115,
|
|
726
|
+
105,
|
|
727
|
+
103,
|
|
728
|
+
110,
|
|
729
|
+
101,
|
|
730
|
+
114
|
|
731
|
+
]
|
|
732
|
+
},
|
|
733
|
+
{
|
|
734
|
+
"kind": "account",
|
|
735
|
+
"path": "launch_config"
|
|
736
|
+
}
|
|
737
|
+
]
|
|
738
|
+
}
|
|
739
|
+
},
|
|
740
|
+
{
|
|
741
|
+
"name": "base_mint",
|
|
742
|
+
"docs": [
|
|
743
|
+
"The launched token's mint (base_mint). Mutable for set_authority."
|
|
744
|
+
],
|
|
745
|
+
"writable": true
|
|
746
|
+
},
|
|
747
|
+
{
|
|
748
|
+
"name": "quote_mint",
|
|
749
|
+
"docs": [
|
|
750
|
+
"Quote mint (wSOL or USDC)."
|
|
751
|
+
]
|
|
752
|
+
},
|
|
753
|
+
{
|
|
754
|
+
"name": "launchpad_token_vault",
|
|
755
|
+
"docs": [
|
|
756
|
+
"Token vault: ATA of launchpad_signer for base_mint.",
|
|
757
|
+
"Holds total_supply after create_launch_token; will hold tokens_to_participants post-execute."
|
|
758
|
+
],
|
|
759
|
+
"writable": true
|
|
760
|
+
},
|
|
761
|
+
{
|
|
762
|
+
"name": "launchpad_funds_vault",
|
|
763
|
+
"docs": [
|
|
764
|
+
"Funds vault: ATA of launchpad_signer for quote_mint.",
|
|
765
|
+
"Receives funds from vault::accept_and_calculate."
|
|
766
|
+
],
|
|
767
|
+
"writable": true,
|
|
768
|
+
"pda": {
|
|
769
|
+
"seeds": [
|
|
770
|
+
{
|
|
771
|
+
"kind": "account",
|
|
772
|
+
"path": "launchpad_signer"
|
|
773
|
+
},
|
|
774
|
+
{
|
|
775
|
+
"kind": "const",
|
|
776
|
+
"value": [
|
|
777
|
+
6,
|
|
778
|
+
221,
|
|
779
|
+
246,
|
|
780
|
+
225,
|
|
781
|
+
215,
|
|
782
|
+
101,
|
|
783
|
+
161,
|
|
784
|
+
147,
|
|
785
|
+
217,
|
|
786
|
+
203,
|
|
787
|
+
225,
|
|
788
|
+
70,
|
|
789
|
+
206,
|
|
790
|
+
235,
|
|
791
|
+
121,
|
|
792
|
+
172,
|
|
793
|
+
28,
|
|
794
|
+
180,
|
|
795
|
+
133,
|
|
796
|
+
237,
|
|
797
|
+
95,
|
|
798
|
+
91,
|
|
799
|
+
55,
|
|
800
|
+
145,
|
|
801
|
+
58,
|
|
802
|
+
140,
|
|
803
|
+
245,
|
|
804
|
+
133,
|
|
805
|
+
126,
|
|
806
|
+
255,
|
|
807
|
+
0,
|
|
808
|
+
169
|
|
809
|
+
]
|
|
810
|
+
},
|
|
811
|
+
{
|
|
812
|
+
"kind": "account",
|
|
813
|
+
"path": "quote_mint"
|
|
814
|
+
}
|
|
815
|
+
],
|
|
816
|
+
"program": {
|
|
817
|
+
"kind": "const",
|
|
818
|
+
"value": [
|
|
819
|
+
140,
|
|
820
|
+
151,
|
|
821
|
+
37,
|
|
822
|
+
143,
|
|
823
|
+
78,
|
|
824
|
+
36,
|
|
825
|
+
137,
|
|
826
|
+
241,
|
|
827
|
+
187,
|
|
828
|
+
61,
|
|
829
|
+
16,
|
|
830
|
+
41,
|
|
831
|
+
20,
|
|
832
|
+
142,
|
|
833
|
+
13,
|
|
834
|
+
131,
|
|
835
|
+
11,
|
|
836
|
+
90,
|
|
837
|
+
19,
|
|
838
|
+
153,
|
|
839
|
+
218,
|
|
840
|
+
255,
|
|
841
|
+
16,
|
|
842
|
+
132,
|
|
843
|
+
4,
|
|
844
|
+
142,
|
|
845
|
+
123,
|
|
846
|
+
216,
|
|
847
|
+
219,
|
|
848
|
+
233,
|
|
849
|
+
248,
|
|
850
|
+
89
|
|
851
|
+
]
|
|
852
|
+
}
|
|
853
|
+
}
|
|
854
|
+
},
|
|
855
|
+
{
|
|
856
|
+
"name": "admin_token_ata",
|
|
857
|
+
"docs": [
|
|
858
|
+
"Admin's ATA for base_mint (receives team tokens)."
|
|
859
|
+
],
|
|
860
|
+
"writable": true,
|
|
861
|
+
"pda": {
|
|
862
|
+
"seeds": [
|
|
863
|
+
{
|
|
864
|
+
"kind": "account",
|
|
865
|
+
"path": "admin"
|
|
866
|
+
},
|
|
867
|
+
{
|
|
868
|
+
"kind": "const",
|
|
869
|
+
"value": [
|
|
870
|
+
6,
|
|
871
|
+
221,
|
|
872
|
+
246,
|
|
873
|
+
225,
|
|
874
|
+
215,
|
|
875
|
+
101,
|
|
876
|
+
161,
|
|
877
|
+
147,
|
|
878
|
+
217,
|
|
879
|
+
203,
|
|
880
|
+
225,
|
|
881
|
+
70,
|
|
882
|
+
206,
|
|
883
|
+
235,
|
|
884
|
+
121,
|
|
885
|
+
172,
|
|
886
|
+
28,
|
|
887
|
+
180,
|
|
888
|
+
133,
|
|
889
|
+
237,
|
|
890
|
+
95,
|
|
891
|
+
91,
|
|
892
|
+
55,
|
|
893
|
+
145,
|
|
894
|
+
58,
|
|
895
|
+
140,
|
|
896
|
+
245,
|
|
897
|
+
133,
|
|
898
|
+
126,
|
|
899
|
+
255,
|
|
900
|
+
0,
|
|
901
|
+
169
|
|
902
|
+
]
|
|
903
|
+
},
|
|
904
|
+
{
|
|
905
|
+
"kind": "account",
|
|
906
|
+
"path": "base_mint"
|
|
907
|
+
}
|
|
908
|
+
],
|
|
909
|
+
"program": {
|
|
910
|
+
"kind": "const",
|
|
911
|
+
"value": [
|
|
912
|
+
140,
|
|
913
|
+
151,
|
|
914
|
+
37,
|
|
915
|
+
143,
|
|
916
|
+
78,
|
|
917
|
+
36,
|
|
918
|
+
137,
|
|
919
|
+
241,
|
|
920
|
+
187,
|
|
921
|
+
61,
|
|
922
|
+
16,
|
|
923
|
+
41,
|
|
924
|
+
20,
|
|
925
|
+
142,
|
|
926
|
+
13,
|
|
927
|
+
131,
|
|
928
|
+
11,
|
|
929
|
+
90,
|
|
930
|
+
19,
|
|
931
|
+
153,
|
|
932
|
+
218,
|
|
933
|
+
255,
|
|
934
|
+
16,
|
|
935
|
+
132,
|
|
936
|
+
4,
|
|
937
|
+
142,
|
|
938
|
+
123,
|
|
939
|
+
216,
|
|
940
|
+
219,
|
|
941
|
+
233,
|
|
942
|
+
248,
|
|
943
|
+
89
|
|
944
|
+
]
|
|
945
|
+
}
|
|
946
|
+
}
|
|
947
|
+
},
|
|
948
|
+
{
|
|
949
|
+
"name": "fundraise_state",
|
|
950
|
+
"docs": [
|
|
951
|
+
"The fundraise vault account (StarVault PDA)."
|
|
952
|
+
],
|
|
953
|
+
"writable": true
|
|
954
|
+
},
|
|
955
|
+
{
|
|
956
|
+
"name": "tge_config",
|
|
957
|
+
"docs": [
|
|
958
|
+
"Vault TGE config PDA."
|
|
959
|
+
],
|
|
960
|
+
"writable": true
|
|
961
|
+
},
|
|
962
|
+
{
|
|
963
|
+
"name": "vault_ata",
|
|
964
|
+
"docs": [
|
|
965
|
+
"Vault's quote token ATA (source of funds)."
|
|
966
|
+
],
|
|
967
|
+
"writable": true
|
|
968
|
+
},
|
|
969
|
+
{
|
|
970
|
+
"name": "vault_program",
|
|
971
|
+
"docs": [
|
|
972
|
+
"The vault program for CPI."
|
|
973
|
+
],
|
|
974
|
+
"address": "2izCb6E5VNBa8NMFnKZhDmBptMCv7TyUNjkwFwrvf44B"
|
|
975
|
+
},
|
|
976
|
+
{
|
|
977
|
+
"name": "position_nft_mint",
|
|
978
|
+
"docs": [
|
|
979
|
+
"Position NFT mint — PDA of launchpad program, acts as signer for DAMM CPI."
|
|
980
|
+
],
|
|
981
|
+
"writable": true,
|
|
982
|
+
"pda": {
|
|
983
|
+
"seeds": [
|
|
984
|
+
{
|
|
985
|
+
"kind": "const",
|
|
986
|
+
"value": [
|
|
987
|
+
112,
|
|
988
|
+
111,
|
|
989
|
+
115,
|
|
990
|
+
105,
|
|
991
|
+
116,
|
|
992
|
+
105,
|
|
993
|
+
111,
|
|
994
|
+
110,
|
|
995
|
+
95,
|
|
996
|
+
110,
|
|
997
|
+
102,
|
|
998
|
+
116,
|
|
999
|
+
95,
|
|
1000
|
+
109,
|
|
1001
|
+
105,
|
|
1002
|
+
110,
|
|
1003
|
+
116
|
|
1004
|
+
]
|
|
1005
|
+
},
|
|
1006
|
+
{
|
|
1007
|
+
"kind": "account",
|
|
1008
|
+
"path": "launch_config"
|
|
1009
|
+
}
|
|
1010
|
+
]
|
|
1011
|
+
}
|
|
1012
|
+
},
|
|
1013
|
+
{
|
|
1014
|
+
"name": "position_nft_account",
|
|
1015
|
+
"docs": [
|
|
1016
|
+
"Position NFT token account — PDA of DAMM program."
|
|
1017
|
+
],
|
|
1018
|
+
"writable": true
|
|
1019
|
+
},
|
|
1020
|
+
{
|
|
1021
|
+
"name": "damm_pool_authority",
|
|
1022
|
+
"docs": [
|
|
1023
|
+
"DAMM pool authority — PDA of DAMM program."
|
|
1024
|
+
]
|
|
1025
|
+
},
|
|
1026
|
+
{
|
|
1027
|
+
"name": "damm_pool",
|
|
1028
|
+
"docs": [
|
|
1029
|
+
"DAMM pool account — created by DAMM program."
|
|
1030
|
+
],
|
|
1031
|
+
"writable": true
|
|
1032
|
+
},
|
|
1033
|
+
{
|
|
1034
|
+
"name": "damm_position",
|
|
1035
|
+
"docs": [
|
|
1036
|
+
"DAMM position account — PDA of DAMM program."
|
|
1037
|
+
],
|
|
1038
|
+
"writable": true
|
|
1039
|
+
},
|
|
1040
|
+
{
|
|
1041
|
+
"name": "damm_token_a_vault",
|
|
1042
|
+
"docs": [
|
|
1043
|
+
"DAMM token A vault (base_mint) — PDA of DAMM program."
|
|
1044
|
+
],
|
|
1045
|
+
"writable": true
|
|
1046
|
+
},
|
|
1047
|
+
{
|
|
1048
|
+
"name": "damm_token_b_vault",
|
|
1049
|
+
"docs": [
|
|
1050
|
+
"DAMM token B vault (quote_mint) — PDA of DAMM program."
|
|
1051
|
+
],
|
|
1052
|
+
"writable": true
|
|
1053
|
+
},
|
|
1054
|
+
{
|
|
1055
|
+
"name": "damm_event_authority",
|
|
1056
|
+
"docs": [
|
|
1057
|
+
"DAMM event authority — PDA of DAMM program."
|
|
1058
|
+
]
|
|
1059
|
+
},
|
|
1060
|
+
{
|
|
1061
|
+
"name": "damm_program",
|
|
1062
|
+
"docs": [
|
|
1063
|
+
"DAMM v2 program."
|
|
1064
|
+
],
|
|
1065
|
+
"address": "cpamdpZCGKUy5JxQXB4dcpGPiikHawvSWAd6mEn1sGG"
|
|
1066
|
+
},
|
|
1067
|
+
{
|
|
1068
|
+
"name": "dao",
|
|
1069
|
+
"docs": [
|
|
1070
|
+
"DAO account — PDA of futarchy program, seeds=[\"dao\", name]."
|
|
1071
|
+
],
|
|
1072
|
+
"writable": true
|
|
1073
|
+
},
|
|
1074
|
+
{
|
|
1075
|
+
"name": "moderator",
|
|
1076
|
+
"docs": [
|
|
1077
|
+
"Moderator account — PDA of futarchy program, seeds=[\"moderator\", name]."
|
|
1078
|
+
],
|
|
1079
|
+
"writable": true
|
|
1080
|
+
},
|
|
1081
|
+
{
|
|
1082
|
+
"name": "futarchy_program_config",
|
|
1083
|
+
"docs": [
|
|
1084
|
+
"Squads program config — read by futarchy."
|
|
1085
|
+
]
|
|
1086
|
+
},
|
|
1087
|
+
{
|
|
1088
|
+
"name": "futarchy_program_config_treasury",
|
|
1089
|
+
"docs": [
|
|
1090
|
+
"Squads program config treasury — receives squads creation fee."
|
|
1091
|
+
],
|
|
1092
|
+
"writable": true
|
|
1093
|
+
},
|
|
1094
|
+
{
|
|
1095
|
+
"name": "treasury_multisig",
|
|
1096
|
+
"docs": [
|
|
1097
|
+
"Treasury multisig — created by futarchy via squads CPI."
|
|
1098
|
+
],
|
|
1099
|
+
"writable": true
|
|
1100
|
+
},
|
|
1101
|
+
{
|
|
1102
|
+
"name": "mint_multisig",
|
|
1103
|
+
"docs": [
|
|
1104
|
+
"Mint authority multisig — created by futarchy via squads CPI."
|
|
1105
|
+
],
|
|
1106
|
+
"writable": true
|
|
1107
|
+
},
|
|
1108
|
+
{
|
|
1109
|
+
"name": "mint_create_key",
|
|
1110
|
+
"docs": [
|
|
1111
|
+
"Mint create key — PDA of futarchy, seeds=[dao, \"mint_key\", name]."
|
|
1112
|
+
]
|
|
1113
|
+
},
|
|
1114
|
+
{
|
|
1115
|
+
"name": "squads_program",
|
|
1116
|
+
"docs": [
|
|
1117
|
+
"Squads v4 program."
|
|
1118
|
+
]
|
|
1119
|
+
},
|
|
1120
|
+
{
|
|
1121
|
+
"name": "futarchy_program",
|
|
1122
|
+
"docs": [
|
|
1123
|
+
"Futarchy program."
|
|
1124
|
+
],
|
|
1125
|
+
"address": "FUTKPrt66uGGCTpk6f9tmRX2325cWgXzGCwvWhyyzjea"
|
|
1126
|
+
},
|
|
1127
|
+
{
|
|
1128
|
+
"name": "new_dao_admin",
|
|
1129
|
+
"docs": [
|
|
1130
|
+
"ZC-managed admin wallet — becomes the DAMM pool `creator` (LP position NFT owner)",
|
|
1131
|
+
"and the futarchy DAO admin after `transfer_admin`."
|
|
1132
|
+
]
|
|
1133
|
+
},
|
|
1134
|
+
{
|
|
1135
|
+
"name": "dao_treasury",
|
|
1136
|
+
"docs": [
|
|
1137
|
+
"DAO treasury vault (Squads vault PDA of treasury_multisig) — receives 80% funds."
|
|
1138
|
+
]
|
|
1139
|
+
},
|
|
1140
|
+
{
|
|
1141
|
+
"name": "dao_treasury_quote_ata",
|
|
1142
|
+
"docs": [
|
|
1143
|
+
"DAO treasury's ATA for quote_mint — receives 80% of raised funds."
|
|
1144
|
+
],
|
|
1145
|
+
"writable": true,
|
|
1146
|
+
"pda": {
|
|
1147
|
+
"seeds": [
|
|
1148
|
+
{
|
|
1149
|
+
"kind": "account",
|
|
1150
|
+
"path": "dao_treasury"
|
|
1151
|
+
},
|
|
1152
|
+
{
|
|
1153
|
+
"kind": "const",
|
|
1154
|
+
"value": [
|
|
1155
|
+
6,
|
|
1156
|
+
221,
|
|
1157
|
+
246,
|
|
1158
|
+
225,
|
|
1159
|
+
215,
|
|
1160
|
+
101,
|
|
1161
|
+
161,
|
|
1162
|
+
147,
|
|
1163
|
+
217,
|
|
1164
|
+
203,
|
|
1165
|
+
225,
|
|
1166
|
+
70,
|
|
1167
|
+
206,
|
|
1168
|
+
235,
|
|
1169
|
+
121,
|
|
1170
|
+
172,
|
|
1171
|
+
28,
|
|
1172
|
+
180,
|
|
1173
|
+
133,
|
|
1174
|
+
237,
|
|
1175
|
+
95,
|
|
1176
|
+
91,
|
|
1177
|
+
55,
|
|
1178
|
+
145,
|
|
1179
|
+
58,
|
|
1180
|
+
140,
|
|
1181
|
+
245,
|
|
1182
|
+
133,
|
|
1183
|
+
126,
|
|
1184
|
+
255,
|
|
1185
|
+
0,
|
|
1186
|
+
169
|
|
1187
|
+
]
|
|
1188
|
+
},
|
|
1189
|
+
{
|
|
1190
|
+
"kind": "account",
|
|
1191
|
+
"path": "quote_mint"
|
|
1192
|
+
}
|
|
1193
|
+
],
|
|
1194
|
+
"program": {
|
|
1195
|
+
"kind": "const",
|
|
1196
|
+
"value": [
|
|
1197
|
+
140,
|
|
1198
|
+
151,
|
|
1199
|
+
37,
|
|
1200
|
+
143,
|
|
1201
|
+
78,
|
|
1202
|
+
36,
|
|
1203
|
+
137,
|
|
1204
|
+
241,
|
|
1205
|
+
187,
|
|
1206
|
+
61,
|
|
1207
|
+
16,
|
|
1208
|
+
41,
|
|
1209
|
+
20,
|
|
1210
|
+
142,
|
|
1211
|
+
13,
|
|
1212
|
+
131,
|
|
1213
|
+
11,
|
|
1214
|
+
90,
|
|
1215
|
+
19,
|
|
1216
|
+
153,
|
|
1217
|
+
218,
|
|
1218
|
+
255,
|
|
1219
|
+
16,
|
|
1220
|
+
132,
|
|
1221
|
+
4,
|
|
1222
|
+
142,
|
|
1223
|
+
123,
|
|
1224
|
+
216,
|
|
1225
|
+
219,
|
|
1226
|
+
233,
|
|
1227
|
+
248,
|
|
1228
|
+
89
|
|
1229
|
+
]
|
|
1230
|
+
}
|
|
1231
|
+
}
|
|
1232
|
+
},
|
|
1233
|
+
{
|
|
1234
|
+
"name": "metadata",
|
|
1235
|
+
"docs": [
|
|
1236
|
+
"Metaplex metadata account for the base mint."
|
|
1237
|
+
],
|
|
1238
|
+
"writable": true
|
|
1239
|
+
},
|
|
1240
|
+
{
|
|
1241
|
+
"name": "metadata_program",
|
|
1242
|
+
"docs": [
|
|
1243
|
+
"Metaplex Token Metadata program."
|
|
1244
|
+
],
|
|
1245
|
+
"address": "metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s"
|
|
1246
|
+
},
|
|
1247
|
+
{
|
|
1248
|
+
"name": "token_program"
|
|
1249
|
+
},
|
|
1250
|
+
{
|
|
1251
|
+
"name": "token_2022_program",
|
|
1252
|
+
"docs": [
|
|
1253
|
+
"Token-2022 program (required by DAMM for NFT mint)."
|
|
1254
|
+
],
|
|
1255
|
+
"address": "TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb"
|
|
1256
|
+
},
|
|
1257
|
+
{
|
|
1258
|
+
"name": "associated_token_program",
|
|
1259
|
+
"address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL"
|
|
1260
|
+
},
|
|
1261
|
+
{
|
|
1262
|
+
"name": "system_program",
|
|
1263
|
+
"address": "11111111111111111111111111111111"
|
|
1264
|
+
}
|
|
1265
|
+
],
|
|
1266
|
+
"args": [
|
|
1267
|
+
{
|
|
1268
|
+
"name": "args",
|
|
1269
|
+
"type": {
|
|
1270
|
+
"defined": {
|
|
1271
|
+
"name": "ExecuteLaunchArgs"
|
|
1272
|
+
}
|
|
1273
|
+
}
|
|
1274
|
+
}
|
|
1275
|
+
]
|
|
1276
|
+
},
|
|
1277
|
+
{
|
|
1278
|
+
"name": "initialize_launch",
|
|
1279
|
+
"docs": [
|
|
1280
|
+
"Create a new launch config and the underlying fundraise vault via CPI.",
|
|
1281
|
+
"Creator signs as both the launch initiator and the vault maker."
|
|
1282
|
+
],
|
|
1283
|
+
"discriminator": [
|
|
1284
|
+
90,
|
|
1285
|
+
201,
|
|
1286
|
+
220,
|
|
1287
|
+
142,
|
|
1288
|
+
112,
|
|
1289
|
+
253,
|
|
1290
|
+
100,
|
|
1291
|
+
13
|
|
1292
|
+
],
|
|
1293
|
+
"accounts": [
|
|
1294
|
+
{
|
|
1295
|
+
"name": "creator",
|
|
1296
|
+
"docs": [
|
|
1297
|
+
"The creator initiating the launch. Also the maker/authority of the vault."
|
|
1298
|
+
],
|
|
1299
|
+
"writable": true,
|
|
1300
|
+
"signer": true
|
|
1301
|
+
},
|
|
1302
|
+
{
|
|
1303
|
+
"name": "launch_config",
|
|
1304
|
+
"docs": [
|
|
1305
|
+
"Launch config PDA — the main account for this launch."
|
|
1306
|
+
],
|
|
1307
|
+
"writable": true,
|
|
1308
|
+
"pda": {
|
|
1309
|
+
"seeds": [
|
|
1310
|
+
{
|
|
1311
|
+
"kind": "const",
|
|
1312
|
+
"value": [
|
|
1313
|
+
108,
|
|
1314
|
+
97,
|
|
1315
|
+
117,
|
|
1316
|
+
110,
|
|
1317
|
+
99,
|
|
1318
|
+
104
|
|
1319
|
+
]
|
|
1320
|
+
},
|
|
1321
|
+
{
|
|
1322
|
+
"kind": "account",
|
|
1323
|
+
"path": "creator"
|
|
1324
|
+
},
|
|
1325
|
+
{
|
|
1326
|
+
"kind": "arg",
|
|
1327
|
+
"path": "args.seed"
|
|
1328
|
+
}
|
|
1329
|
+
]
|
|
1330
|
+
}
|
|
1331
|
+
},
|
|
1332
|
+
{
|
|
1333
|
+
"name": "launchpad_signer",
|
|
1334
|
+
"docs": [
|
|
1335
|
+
"Launchpad signer PDA — derived from launch_config.",
|
|
1336
|
+
"Controls token_vault, funds_vault, and mint authority."
|
|
1337
|
+
],
|
|
1338
|
+
"pda": {
|
|
1339
|
+
"seeds": [
|
|
1340
|
+
{
|
|
1341
|
+
"kind": "const",
|
|
1342
|
+
"value": [
|
|
1343
|
+
115,
|
|
1344
|
+
105,
|
|
1345
|
+
103,
|
|
1346
|
+
110,
|
|
1347
|
+
101,
|
|
1348
|
+
114
|
|
1349
|
+
]
|
|
1350
|
+
},
|
|
1351
|
+
{
|
|
1352
|
+
"kind": "account",
|
|
1353
|
+
"path": "launch_config"
|
|
1354
|
+
}
|
|
1355
|
+
]
|
|
1356
|
+
}
|
|
1357
|
+
},
|
|
1358
|
+
{
|
|
1359
|
+
"name": "quote_mint",
|
|
1360
|
+
"docs": [
|
|
1361
|
+
"The quote mint (wSOL or USDC) for this launch."
|
|
1362
|
+
]
|
|
1363
|
+
},
|
|
1364
|
+
{
|
|
1365
|
+
"name": "vault",
|
|
1366
|
+
"docs": [
|
|
1367
|
+
"The vault account — will be created via CPI to vault::make."
|
|
1368
|
+
],
|
|
1369
|
+
"writable": true
|
|
1370
|
+
},
|
|
1371
|
+
{
|
|
1372
|
+
"name": "vault_ata",
|
|
1373
|
+
"docs": [
|
|
1374
|
+
"The vault's quote token ATA — will be created via CPI."
|
|
1375
|
+
],
|
|
1376
|
+
"writable": true
|
|
1377
|
+
},
|
|
1378
|
+
{
|
|
1379
|
+
"name": "tge_config",
|
|
1380
|
+
"docs": [
|
|
1381
|
+
"TGE config — will be created via CPI."
|
|
1382
|
+
],
|
|
1383
|
+
"writable": true
|
|
1384
|
+
},
|
|
1385
|
+
{
|
|
1386
|
+
"name": "vault_program",
|
|
1387
|
+
"docs": [
|
|
1388
|
+
"The vault program for CPI."
|
|
1389
|
+
],
|
|
1390
|
+
"address": "2izCb6E5VNBa8NMFnKZhDmBptMCv7TyUNjkwFwrvf44B"
|
|
1391
|
+
},
|
|
1392
|
+
{
|
|
1393
|
+
"name": "associated_token_program",
|
|
1394
|
+
"address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL"
|
|
1395
|
+
},
|
|
1396
|
+
{
|
|
1397
|
+
"name": "token_program"
|
|
1398
|
+
},
|
|
1399
|
+
{
|
|
1400
|
+
"name": "system_program",
|
|
1401
|
+
"address": "11111111111111111111111111111111"
|
|
1402
|
+
}
|
|
1403
|
+
],
|
|
1404
|
+
"args": [
|
|
1405
|
+
{
|
|
1406
|
+
"name": "args",
|
|
1407
|
+
"type": {
|
|
1408
|
+
"defined": {
|
|
1409
|
+
"name": "InitializeLaunchArgs"
|
|
1410
|
+
}
|
|
1411
|
+
}
|
|
1412
|
+
}
|
|
1413
|
+
]
|
|
1414
|
+
},
|
|
1415
|
+
{
|
|
1416
|
+
"name": "update_launch_config",
|
|
1417
|
+
"docs": [
|
|
1418
|
+
"Recovery instruction: update vanity mint config if admin loses base_keypair",
|
|
1419
|
+
"before token creation. Only valid from ReadyToLaunch state."
|
|
1420
|
+
],
|
|
1421
|
+
"discriminator": [
|
|
1422
|
+
90,
|
|
1423
|
+
247,
|
|
1424
|
+
161,
|
|
1425
|
+
188,
|
|
1426
|
+
203,
|
|
1427
|
+
181,
|
|
1428
|
+
147,
|
|
1429
|
+
240
|
|
1430
|
+
],
|
|
1431
|
+
"accounts": [
|
|
1432
|
+
{
|
|
1433
|
+
"name": "admin",
|
|
1434
|
+
"docs": [
|
|
1435
|
+
"Platform admin signer."
|
|
1436
|
+
],
|
|
1437
|
+
"signer": true
|
|
1438
|
+
},
|
|
1439
|
+
{
|
|
1440
|
+
"name": "launch_config",
|
|
1441
|
+
"docs": [
|
|
1442
|
+
"The launch config to update (must be in ReadyToLaunch state)."
|
|
1443
|
+
],
|
|
1444
|
+
"writable": true,
|
|
1445
|
+
"pda": {
|
|
1446
|
+
"seeds": [
|
|
1447
|
+
{
|
|
1448
|
+
"kind": "const",
|
|
1449
|
+
"value": [
|
|
1450
|
+
108,
|
|
1451
|
+
97,
|
|
1452
|
+
117,
|
|
1453
|
+
110,
|
|
1454
|
+
99,
|
|
1455
|
+
104
|
|
1456
|
+
]
|
|
1457
|
+
},
|
|
1458
|
+
{
|
|
1459
|
+
"kind": "account",
|
|
1460
|
+
"path": "launch_config.creator",
|
|
1461
|
+
"account": "LaunchConfig"
|
|
1462
|
+
},
|
|
1463
|
+
{
|
|
1464
|
+
"kind": "account",
|
|
1465
|
+
"path": "launch_config.seed",
|
|
1466
|
+
"account": "LaunchConfig"
|
|
1467
|
+
}
|
|
1468
|
+
]
|
|
1469
|
+
}
|
|
1470
|
+
}
|
|
1471
|
+
],
|
|
1472
|
+
"args": [
|
|
1473
|
+
{
|
|
1474
|
+
"name": "args",
|
|
1475
|
+
"type": {
|
|
1476
|
+
"defined": {
|
|
1477
|
+
"name": "UpdateLaunchConfigArgs"
|
|
1478
|
+
}
|
|
1479
|
+
}
|
|
1480
|
+
}
|
|
1481
|
+
]
|
|
1482
|
+
}
|
|
1483
|
+
],
|
|
1484
|
+
"accounts": [
|
|
1485
|
+
{
|
|
1486
|
+
"name": "ClaimRecord",
|
|
1487
|
+
"discriminator": [
|
|
1488
|
+
57,
|
|
1489
|
+
229,
|
|
1490
|
+
0,
|
|
1491
|
+
9,
|
|
1492
|
+
65,
|
|
1493
|
+
62,
|
|
1494
|
+
96,
|
|
1495
|
+
7
|
|
1496
|
+
]
|
|
1497
|
+
},
|
|
1498
|
+
{
|
|
1499
|
+
"name": "DepositorRecord",
|
|
1500
|
+
"discriminator": [
|
|
1501
|
+
2
|
|
1502
|
+
]
|
|
1503
|
+
},
|
|
1504
|
+
{
|
|
1505
|
+
"name": "LaunchConfig",
|
|
1506
|
+
"discriminator": [
|
|
1507
|
+
18,
|
|
1508
|
+
161,
|
|
1509
|
+
9,
|
|
1510
|
+
224,
|
|
1511
|
+
102,
|
|
1512
|
+
145,
|
|
1513
|
+
29,
|
|
1514
|
+
94
|
|
1515
|
+
]
|
|
1516
|
+
},
|
|
1517
|
+
{
|
|
1518
|
+
"name": "StarVault",
|
|
1519
|
+
"discriminator": [
|
|
1520
|
+
1
|
|
1521
|
+
]
|
|
1522
|
+
}
|
|
1523
|
+
],
|
|
1524
|
+
"events": [
|
|
1525
|
+
{
|
|
1526
|
+
"name": "DustSweptEvent",
|
|
1527
|
+
"discriminator": [
|
|
1528
|
+
135,
|
|
1529
|
+
231,
|
|
1530
|
+
54,
|
|
1531
|
+
37,
|
|
1532
|
+
252,
|
|
1533
|
+
173,
|
|
1534
|
+
171,
|
|
1535
|
+
101
|
|
1536
|
+
]
|
|
1537
|
+
},
|
|
1538
|
+
{
|
|
1539
|
+
"name": "LaunchCancelledEvent",
|
|
1540
|
+
"discriminator": [
|
|
1541
|
+
118,
|
|
1542
|
+
248,
|
|
1543
|
+
203,
|
|
1544
|
+
227,
|
|
1545
|
+
193,
|
|
1546
|
+
105,
|
|
1547
|
+
152,
|
|
1548
|
+
59
|
|
1549
|
+
]
|
|
1550
|
+
},
|
|
1551
|
+
{
|
|
1552
|
+
"name": "LaunchConfigUpdatedEvent",
|
|
1553
|
+
"discriminator": [
|
|
1554
|
+
224,
|
|
1555
|
+
19,
|
|
1556
|
+
110,
|
|
1557
|
+
152,
|
|
1558
|
+
144,
|
|
1559
|
+
149,
|
|
1560
|
+
111,
|
|
1561
|
+
95
|
|
1562
|
+
]
|
|
1563
|
+
},
|
|
1564
|
+
{
|
|
1565
|
+
"name": "LaunchConfiguredEvent",
|
|
1566
|
+
"discriminator": [
|
|
1567
|
+
170,
|
|
1568
|
+
93,
|
|
1569
|
+
79,
|
|
1570
|
+
96,
|
|
1571
|
+
80,
|
|
1572
|
+
145,
|
|
1573
|
+
69,
|
|
1574
|
+
89
|
|
1575
|
+
]
|
|
1576
|
+
},
|
|
1577
|
+
{
|
|
1578
|
+
"name": "LaunchExecutedEvent",
|
|
1579
|
+
"discriminator": [
|
|
1580
|
+
252,
|
|
1581
|
+
67,
|
|
1582
|
+
56,
|
|
1583
|
+
205,
|
|
1584
|
+
207,
|
|
1585
|
+
136,
|
|
1586
|
+
144,
|
|
1587
|
+
96
|
|
1588
|
+
]
|
|
1589
|
+
},
|
|
1590
|
+
{
|
|
1591
|
+
"name": "LaunchInitializedEvent",
|
|
1592
|
+
"discriminator": [
|
|
1593
|
+
227,
|
|
1594
|
+
109,
|
|
1595
|
+
144,
|
|
1596
|
+
20,
|
|
1597
|
+
65,
|
|
1598
|
+
239,
|
|
1599
|
+
101,
|
|
1600
|
+
176
|
|
1601
|
+
]
|
|
1602
|
+
},
|
|
1603
|
+
{
|
|
1604
|
+
"name": "TokenCreatedEvent",
|
|
1605
|
+
"discriminator": [
|
|
1606
|
+
96,
|
|
1607
|
+
122,
|
|
1608
|
+
113,
|
|
1609
|
+
138,
|
|
1610
|
+
50,
|
|
1611
|
+
227,
|
|
1612
|
+
149,
|
|
1613
|
+
57
|
|
1614
|
+
]
|
|
1615
|
+
},
|
|
1616
|
+
{
|
|
1617
|
+
"name": "TokensClaimedEvent",
|
|
1618
|
+
"discriminator": [
|
|
1619
|
+
93,
|
|
1620
|
+
215,
|
|
1621
|
+
57,
|
|
1622
|
+
103,
|
|
1623
|
+
166,
|
|
1624
|
+
229,
|
|
1625
|
+
107,
|
|
1626
|
+
50
|
|
1627
|
+
]
|
|
1628
|
+
}
|
|
1629
|
+
],
|
|
1630
|
+
"errors": [
|
|
1631
|
+
{
|
|
1632
|
+
"code": 6000,
|
|
1633
|
+
"name": "InvalidLaunchState",
|
|
1634
|
+
"msg": "Invalid launch state for this operation"
|
|
1635
|
+
},
|
|
1636
|
+
{
|
|
1637
|
+
"code": 6001,
|
|
1638
|
+
"name": "NotFundraiseActive",
|
|
1639
|
+
"msg": "Launch is not in FundraiseActive state"
|
|
1640
|
+
},
|
|
1641
|
+
{
|
|
1642
|
+
"code": 6002,
|
|
1643
|
+
"name": "NotReadyToLaunch",
|
|
1644
|
+
"msg": "Launch is not in ReadyToLaunch state"
|
|
1645
|
+
},
|
|
1646
|
+
{
|
|
1647
|
+
"code": 6003,
|
|
1648
|
+
"name": "NotTokenCreated",
|
|
1649
|
+
"msg": "Launch is not in TokenCreated state"
|
|
1650
|
+
},
|
|
1651
|
+
{
|
|
1652
|
+
"code": 6004,
|
|
1653
|
+
"name": "NotLaunched",
|
|
1654
|
+
"msg": "Launch is not in Launched state"
|
|
1655
|
+
},
|
|
1656
|
+
{
|
|
1657
|
+
"code": 6005,
|
|
1658
|
+
"name": "AlreadyCancelled",
|
|
1659
|
+
"msg": "Launch has already been cancelled"
|
|
1660
|
+
},
|
|
1661
|
+
{
|
|
1662
|
+
"code": 6006,
|
|
1663
|
+
"name": "CannotCancelLaunched",
|
|
1664
|
+
"msg": "Cannot cancel a launched sale"
|
|
1665
|
+
},
|
|
1666
|
+
{
|
|
1667
|
+
"code": 6007,
|
|
1668
|
+
"name": "Unauthorized",
|
|
1669
|
+
"msg": "Unauthorized: signer is not the platform admin"
|
|
1670
|
+
},
|
|
1671
|
+
{
|
|
1672
|
+
"code": 6008,
|
|
1673
|
+
"name": "InvalidCreator",
|
|
1674
|
+
"msg": "Invalid creator: signer does not match launch creator"
|
|
1675
|
+
},
|
|
1676
|
+
{
|
|
1677
|
+
"code": 6009,
|
|
1678
|
+
"name": "InvalidAmount",
|
|
1679
|
+
"msg": "Invalid amount: must be greater than zero"
|
|
1680
|
+
},
|
|
1681
|
+
{
|
|
1682
|
+
"code": 6010,
|
|
1683
|
+
"name": "ParticipantTokensExceedSupply",
|
|
1684
|
+
"msg": "tokens_to_participants must be less than total_supply"
|
|
1685
|
+
},
|
|
1686
|
+
{
|
|
1687
|
+
"code": 6011,
|
|
1688
|
+
"name": "TokenDistributionOverflow",
|
|
1689
|
+
"msg": "Computed token amounts overflow total supply"
|
|
1690
|
+
},
|
|
1691
|
+
{
|
|
1692
|
+
"code": 6012,
|
|
1693
|
+
"name": "InvalidVanityDerivation",
|
|
1694
|
+
"msg": "Invalid vanity derivation: derived address does not match expected mint"
|
|
1695
|
+
},
|
|
1696
|
+
{
|
|
1697
|
+
"code": 6013,
|
|
1698
|
+
"name": "BaseKeypairMismatch",
|
|
1699
|
+
"msg": "Base keypair does not match configured vanity base pubkey"
|
|
1700
|
+
},
|
|
1701
|
+
{
|
|
1702
|
+
"code": 6014,
|
|
1703
|
+
"name": "MintAlreadyExists",
|
|
1704
|
+
"msg": "Mint account already exists"
|
|
1705
|
+
},
|
|
1706
|
+
{
|
|
1707
|
+
"code": 6015,
|
|
1708
|
+
"name": "VanityConfigNotSet",
|
|
1709
|
+
"msg": "Vanity config not set on launch config"
|
|
1710
|
+
},
|
|
1711
|
+
{
|
|
1712
|
+
"code": 6016,
|
|
1713
|
+
"name": "BaseMintNotSet",
|
|
1714
|
+
"msg": "Base mint not set on launch config"
|
|
1715
|
+
},
|
|
1716
|
+
{
|
|
1717
|
+
"code": 6017,
|
|
1718
|
+
"name": "VaultNotTgeRequested",
|
|
1719
|
+
"msg": "Vault status is not TgeRequested"
|
|
1720
|
+
},
|
|
1721
|
+
{
|
|
1722
|
+
"code": 6018,
|
|
1723
|
+
"name": "FundraiseStateMismatch",
|
|
1724
|
+
"msg": "Fundraise state does not match launch config"
|
|
1725
|
+
},
|
|
1726
|
+
{
|
|
1727
|
+
"code": 6019,
|
|
1728
|
+
"name": "AllocationsNotCalculated",
|
|
1729
|
+
"msg": "Vault allocations not yet calculated"
|
|
1730
|
+
},
|
|
1731
|
+
{
|
|
1732
|
+
"code": 6020,
|
|
1733
|
+
"name": "DepositorVaultMismatch",
|
|
1734
|
+
"msg": "Depositor record does not belong to this vault"
|
|
1735
|
+
},
|
|
1736
|
+
{
|
|
1737
|
+
"code": 6021,
|
|
1738
|
+
"name": "DepositorUserMismatch",
|
|
1739
|
+
"msg": "Depositor record does not match the claiming user"
|
|
1740
|
+
},
|
|
1741
|
+
{
|
|
1742
|
+
"code": 6022,
|
|
1743
|
+
"name": "InvalidVaultProgram",
|
|
1744
|
+
"msg": "Invalid vault program for deserialization"
|
|
1745
|
+
},
|
|
1746
|
+
{
|
|
1747
|
+
"code": 6023,
|
|
1748
|
+
"name": "ClaimsNotYetActive",
|
|
1749
|
+
"msg": "Claims are not yet active: pool activation time has not arrived"
|
|
1750
|
+
},
|
|
1751
|
+
{
|
|
1752
|
+
"code": 6024,
|
|
1753
|
+
"name": "ActivationTimeTooSoon",
|
|
1754
|
+
"msg": "Pool activation time is too soon"
|
|
1755
|
+
},
|
|
1756
|
+
{
|
|
1757
|
+
"code": 6025,
|
|
1758
|
+
"name": "ActivationTimeTooFar",
|
|
1759
|
+
"msg": "Pool activation time is too far in the future"
|
|
1760
|
+
},
|
|
1761
|
+
{
|
|
1762
|
+
"code": 6026,
|
|
1763
|
+
"name": "DustSweepGracePeriodNotElapsed",
|
|
1764
|
+
"msg": "Dust sweep grace period has not elapsed"
|
|
1765
|
+
},
|
|
1766
|
+
{
|
|
1767
|
+
"code": 6027,
|
|
1768
|
+
"name": "NothingToClaim",
|
|
1769
|
+
"msg": "No tokens available to claim"
|
|
1770
|
+
},
|
|
1771
|
+
{
|
|
1772
|
+
"code": 6028,
|
|
1773
|
+
"name": "NoAllocation",
|
|
1774
|
+
"msg": "User has no allocation in the fundraise"
|
|
1775
|
+
},
|
|
1776
|
+
{
|
|
1777
|
+
"code": 6029,
|
|
1778
|
+
"name": "MathOverflow",
|
|
1779
|
+
"msg": "Arithmetic overflow"
|
|
1780
|
+
},
|
|
1781
|
+
{
|
|
1782
|
+
"code": 6030,
|
|
1783
|
+
"name": "DivisionByZero",
|
|
1784
|
+
"msg": "Division by zero"
|
|
1785
|
+
},
|
|
1786
|
+
{
|
|
1787
|
+
"code": 6031,
|
|
1788
|
+
"name": "TokenVaultEmpty",
|
|
1789
|
+
"msg": "Token vault has no balance to sweep"
|
|
1790
|
+
},
|
|
1791
|
+
{
|
|
1792
|
+
"code": 6032,
|
|
1793
|
+
"name": "PoolActivationTimeNotSet",
|
|
1794
|
+
"msg": "Pool activation time not set"
|
|
1795
|
+
}
|
|
1796
|
+
],
|
|
1797
|
+
"types": [
|
|
1798
|
+
{
|
|
1799
|
+
"name": "ClaimRecord",
|
|
1800
|
+
"docs": [
|
|
1801
|
+
"Per-user claim record (PDA: [\"claim\", launch_config, user]).",
|
|
1802
|
+
"Tracks vesting progress and claimed amounts."
|
|
1803
|
+
],
|
|
1804
|
+
"type": {
|
|
1805
|
+
"kind": "struct",
|
|
1806
|
+
"fields": [
|
|
1807
|
+
{
|
|
1808
|
+
"name": "launch",
|
|
1809
|
+
"docs": [
|
|
1810
|
+
"The launch this claim belongs to"
|
|
1811
|
+
],
|
|
1812
|
+
"type": "pubkey"
|
|
1813
|
+
},
|
|
1814
|
+
{
|
|
1815
|
+
"name": "user",
|
|
1816
|
+
"docs": [
|
|
1817
|
+
"The user who owns this claim"
|
|
1818
|
+
],
|
|
1819
|
+
"type": "pubkey"
|
|
1820
|
+
},
|
|
1821
|
+
{
|
|
1822
|
+
"name": "user_record",
|
|
1823
|
+
"docs": [
|
|
1824
|
+
"Link to vault's DepositorRecord (for tier lookup)"
|
|
1825
|
+
],
|
|
1826
|
+
"type": "pubkey"
|
|
1827
|
+
},
|
|
1828
|
+
{
|
|
1829
|
+
"name": "total_tokens",
|
|
1830
|
+
"docs": [
|
|
1831
|
+
"User's full token entitlement (cached on first claim)"
|
|
1832
|
+
],
|
|
1833
|
+
"type": "u64"
|
|
1834
|
+
},
|
|
1835
|
+
{
|
|
1836
|
+
"name": "total_claimed",
|
|
1837
|
+
"docs": [
|
|
1838
|
+
"Running total of tokens the user has claimed"
|
|
1839
|
+
],
|
|
1840
|
+
"type": "u64"
|
|
1841
|
+
},
|
|
1842
|
+
{
|
|
1843
|
+
"name": "last_claim_at",
|
|
1844
|
+
"docs": [
|
|
1845
|
+
"Timestamp of the last claim"
|
|
1846
|
+
],
|
|
1847
|
+
"type": "i64"
|
|
1848
|
+
},
|
|
1849
|
+
{
|
|
1850
|
+
"name": "bump",
|
|
1851
|
+
"docs": [
|
|
1852
|
+
"PDA bump"
|
|
1853
|
+
],
|
|
1854
|
+
"type": "u8"
|
|
1855
|
+
}
|
|
1856
|
+
]
|
|
1857
|
+
}
|
|
1858
|
+
},
|
|
1859
|
+
{
|
|
1860
|
+
"name": "ConfigureLaunchArgs",
|
|
1861
|
+
"type": {
|
|
1862
|
+
"kind": "struct",
|
|
1863
|
+
"fields": [
|
|
1864
|
+
{
|
|
1865
|
+
"name": "base_pubkey",
|
|
1866
|
+
"docs": [
|
|
1867
|
+
"Public key of the base keypair for vanity mint derivation"
|
|
1868
|
+
],
|
|
1869
|
+
"type": "pubkey"
|
|
1870
|
+
},
|
|
1871
|
+
{
|
|
1872
|
+
"name": "vanity_seed",
|
|
1873
|
+
"docs": [
|
|
1874
|
+
"Seed string for createAccountWithSeed (up to 32 bytes)"
|
|
1875
|
+
],
|
|
1876
|
+
"type": "string"
|
|
1877
|
+
},
|
|
1878
|
+
{
|
|
1879
|
+
"name": "expected_mint",
|
|
1880
|
+
"docs": [
|
|
1881
|
+
"The expected derived mint address"
|
|
1882
|
+
],
|
|
1883
|
+
"type": "pubkey"
|
|
1884
|
+
},
|
|
1885
|
+
{
|
|
1886
|
+
"name": "name",
|
|
1887
|
+
"docs": [
|
|
1888
|
+
"Token name (max 32 chars)"
|
|
1889
|
+
],
|
|
1890
|
+
"type": "string"
|
|
1891
|
+
},
|
|
1892
|
+
{
|
|
1893
|
+
"name": "symbol",
|
|
1894
|
+
"docs": [
|
|
1895
|
+
"Token symbol (max 10 chars)"
|
|
1896
|
+
],
|
|
1897
|
+
"type": "string"
|
|
1898
|
+
},
|
|
1899
|
+
{
|
|
1900
|
+
"name": "uri",
|
|
1901
|
+
"docs": [
|
|
1902
|
+
"Token metadata URI (max 200 chars)"
|
|
1903
|
+
],
|
|
1904
|
+
"type": "string"
|
|
1905
|
+
}
|
|
1906
|
+
]
|
|
1907
|
+
}
|
|
1908
|
+
},
|
|
1909
|
+
{
|
|
1910
|
+
"name": "DepositorRecord",
|
|
1911
|
+
"type": {
|
|
1912
|
+
"kind": "struct",
|
|
1913
|
+
"fields": [
|
|
1914
|
+
{
|
|
1915
|
+
"name": "depositor",
|
|
1916
|
+
"type": "pubkey"
|
|
1917
|
+
},
|
|
1918
|
+
{
|
|
1919
|
+
"name": "vault",
|
|
1920
|
+
"type": "pubkey"
|
|
1921
|
+
},
|
|
1922
|
+
{
|
|
1923
|
+
"name": "tier",
|
|
1924
|
+
"docs": [
|
|
1925
|
+
"Vesting tier (0-6): 0=immediate, 1=2wk, 2=4wk, 3=6wk, 4=8wk, 5=10wk, 6=12wk",
|
|
1926
|
+
"Set on first deposit, can only be upgraded (not downgraded)"
|
|
1927
|
+
],
|
|
1928
|
+
"type": "u8"
|
|
1929
|
+
},
|
|
1930
|
+
{
|
|
1931
|
+
"name": "amount",
|
|
1932
|
+
"type": "u64"
|
|
1933
|
+
},
|
|
1934
|
+
{
|
|
1935
|
+
"name": "final_amount",
|
|
1936
|
+
"type": "u64"
|
|
1937
|
+
},
|
|
1938
|
+
{
|
|
1939
|
+
"name": "refunded",
|
|
1940
|
+
"type": "bool"
|
|
1941
|
+
},
|
|
1942
|
+
{
|
|
1943
|
+
"name": "excess_refunded",
|
|
1944
|
+
"type": "bool"
|
|
1945
|
+
},
|
|
1946
|
+
{
|
|
1947
|
+
"name": "bump",
|
|
1948
|
+
"type": "u8"
|
|
1949
|
+
}
|
|
1950
|
+
]
|
|
1951
|
+
}
|
|
1952
|
+
},
|
|
1953
|
+
{
|
|
1954
|
+
"name": "DustSweptEvent",
|
|
1955
|
+
"type": {
|
|
1956
|
+
"kind": "struct",
|
|
1957
|
+
"fields": [
|
|
1958
|
+
{
|
|
1959
|
+
"name": "launch_config",
|
|
1960
|
+
"type": "pubkey"
|
|
1961
|
+
},
|
|
1962
|
+
{
|
|
1963
|
+
"name": "admin",
|
|
1964
|
+
"type": "pubkey"
|
|
1965
|
+
},
|
|
1966
|
+
{
|
|
1967
|
+
"name": "amount",
|
|
1968
|
+
"type": "u64"
|
|
1969
|
+
},
|
|
1970
|
+
{
|
|
1971
|
+
"name": "destination",
|
|
1972
|
+
"type": "pubkey"
|
|
1973
|
+
},
|
|
1974
|
+
{
|
|
1975
|
+
"name": "timestamp",
|
|
1976
|
+
"type": "i64"
|
|
1977
|
+
}
|
|
1978
|
+
]
|
|
1979
|
+
}
|
|
1980
|
+
},
|
|
1981
|
+
{
|
|
1982
|
+
"name": "ExecuteLaunchArgs",
|
|
1983
|
+
"type": {
|
|
1984
|
+
"kind": "struct",
|
|
1985
|
+
"fields": [
|
|
1986
|
+
{
|
|
1987
|
+
"name": "pool_activation_time",
|
|
1988
|
+
"docs": [
|
|
1989
|
+
"When pool trading + token claims become active"
|
|
1990
|
+
],
|
|
1991
|
+
"type": "i64"
|
|
1992
|
+
},
|
|
1993
|
+
{
|
|
1994
|
+
"name": "dao_name",
|
|
1995
|
+
"docs": [
|
|
1996
|
+
"DAO name for futarchy (max 32 chars)"
|
|
1997
|
+
],
|
|
1998
|
+
"type": "string"
|
|
1999
|
+
},
|
|
2000
|
+
{
|
|
2001
|
+
"name": "treasury_cosigner",
|
|
2002
|
+
"docs": [
|
|
2003
|
+
"Cosigner pubkey for the DAO treasury multisig"
|
|
2004
|
+
],
|
|
2005
|
+
"type": "pubkey"
|
|
2006
|
+
}
|
|
2007
|
+
]
|
|
2008
|
+
}
|
|
2009
|
+
},
|
|
2010
|
+
{
|
|
2011
|
+
"name": "FundraiseParams",
|
|
2012
|
+
"type": {
|
|
2013
|
+
"kind": "struct",
|
|
2014
|
+
"fields": [
|
|
2015
|
+
{
|
|
2016
|
+
"name": "min_raise",
|
|
2017
|
+
"type": "u64"
|
|
2018
|
+
},
|
|
2019
|
+
{
|
|
2020
|
+
"name": "target_raise",
|
|
2021
|
+
"type": "u64"
|
|
2022
|
+
},
|
|
2023
|
+
{
|
|
2024
|
+
"name": "start_time",
|
|
2025
|
+
"type": "i64"
|
|
2026
|
+
},
|
|
2027
|
+
{
|
|
2028
|
+
"name": "end_time",
|
|
2029
|
+
"type": "i64"
|
|
2030
|
+
}
|
|
2031
|
+
]
|
|
2032
|
+
}
|
|
2033
|
+
},
|
|
2034
|
+
{
|
|
2035
|
+
"name": "InitializeLaunchArgs",
|
|
2036
|
+
"type": {
|
|
2037
|
+
"kind": "struct",
|
|
2038
|
+
"fields": [
|
|
2039
|
+
{
|
|
2040
|
+
"name": "seed",
|
|
2041
|
+
"docs": [
|
|
2042
|
+
"Unique seed for the launch PDA"
|
|
2043
|
+
],
|
|
2044
|
+
"type": "u64"
|
|
2045
|
+
},
|
|
2046
|
+
{
|
|
2047
|
+
"name": "vault_seed",
|
|
2048
|
+
"docs": [
|
|
2049
|
+
"Seed for the vault PDA (passed to vault::make)"
|
|
2050
|
+
],
|
|
2051
|
+
"type": "u64"
|
|
2052
|
+
},
|
|
2053
|
+
{
|
|
2054
|
+
"name": "total_supply",
|
|
2055
|
+
"docs": [
|
|
2056
|
+
"Total token supply to mint"
|
|
2057
|
+
],
|
|
2058
|
+
"type": "u64"
|
|
2059
|
+
},
|
|
2060
|
+
{
|
|
2061
|
+
"name": "tokens_to_participants",
|
|
2062
|
+
"docs": [
|
|
2063
|
+
"Tokens allocated to fundraise participants"
|
|
2064
|
+
],
|
|
2065
|
+
"type": "u64"
|
|
2066
|
+
},
|
|
2067
|
+
{
|
|
2068
|
+
"name": "fundraise_params",
|
|
2069
|
+
"docs": [
|
|
2070
|
+
"Fundraise configuration (passed to vault::make)"
|
|
2071
|
+
],
|
|
2072
|
+
"type": {
|
|
2073
|
+
"defined": {
|
|
2074
|
+
"name": "FundraiseParams"
|
|
2075
|
+
}
|
|
2076
|
+
}
|
|
2077
|
+
}
|
|
2078
|
+
]
|
|
2079
|
+
}
|
|
2080
|
+
},
|
|
2081
|
+
{
|
|
2082
|
+
"name": "LaunchCancelledEvent",
|
|
2083
|
+
"type": {
|
|
2084
|
+
"kind": "struct",
|
|
2085
|
+
"fields": [
|
|
2086
|
+
{
|
|
2087
|
+
"name": "launch_config",
|
|
2088
|
+
"type": "pubkey"
|
|
2089
|
+
},
|
|
2090
|
+
{
|
|
2091
|
+
"name": "admin",
|
|
2092
|
+
"type": "pubkey"
|
|
2093
|
+
},
|
|
2094
|
+
{
|
|
2095
|
+
"name": "previous_state",
|
|
2096
|
+
"type": "u8"
|
|
2097
|
+
},
|
|
2098
|
+
{
|
|
2099
|
+
"name": "tokens_burned",
|
|
2100
|
+
"type": "u64"
|
|
2101
|
+
},
|
|
2102
|
+
{
|
|
2103
|
+
"name": "timestamp",
|
|
2104
|
+
"type": "i64"
|
|
2105
|
+
}
|
|
2106
|
+
]
|
|
2107
|
+
}
|
|
2108
|
+
},
|
|
2109
|
+
{
|
|
2110
|
+
"name": "LaunchConfig",
|
|
2111
|
+
"docs": [
|
|
2112
|
+
"Main launch configuration account (PDA: [\"launch\", creator, seed]).",
|
|
2113
|
+
"Tracks the entire lifecycle of a token launch from fundraise through claims."
|
|
2114
|
+
],
|
|
2115
|
+
"type": {
|
|
2116
|
+
"kind": "struct",
|
|
2117
|
+
"fields": [
|
|
2118
|
+
{
|
|
2119
|
+
"name": "seed",
|
|
2120
|
+
"docs": [
|
|
2121
|
+
"Unique seed for this launch PDA"
|
|
2122
|
+
],
|
|
2123
|
+
"type": "u64"
|
|
2124
|
+
},
|
|
2125
|
+
{
|
|
2126
|
+
"name": "bump",
|
|
2127
|
+
"docs": [
|
|
2128
|
+
"PDA bump for the launch config"
|
|
2129
|
+
],
|
|
2130
|
+
"type": "u8"
|
|
2131
|
+
},
|
|
2132
|
+
{
|
|
2133
|
+
"name": "launchpad_signer_bump",
|
|
2134
|
+
"docs": [
|
|
2135
|
+
"PDA bump for the launchpad_signer (derived from launch_config)"
|
|
2136
|
+
],
|
|
2137
|
+
"type": "u8"
|
|
2138
|
+
},
|
|
2139
|
+
{
|
|
2140
|
+
"name": "creator",
|
|
2141
|
+
"docs": [
|
|
2142
|
+
"The creator who initiated the launch"
|
|
2143
|
+
],
|
|
2144
|
+
"type": "pubkey"
|
|
2145
|
+
},
|
|
2146
|
+
{
|
|
2147
|
+
"name": "launchpad_signer",
|
|
2148
|
+
"docs": [
|
|
2149
|
+
"The launchpad_signer PDA — controls token_vault, funds_vault, mint authority"
|
|
2150
|
+
],
|
|
2151
|
+
"type": "pubkey"
|
|
2152
|
+
},
|
|
2153
|
+
{
|
|
2154
|
+
"name": "fundraise_program",
|
|
2155
|
+
"docs": [
|
|
2156
|
+
"The fundraise program ID (vault program for now)"
|
|
2157
|
+
],
|
|
2158
|
+
"type": "pubkey"
|
|
2159
|
+
},
|
|
2160
|
+
{
|
|
2161
|
+
"name": "fundraise_state",
|
|
2162
|
+
"docs": [
|
|
2163
|
+
"The specific fundraise account (vault PDA)"
|
|
2164
|
+
],
|
|
2165
|
+
"type": "pubkey"
|
|
2166
|
+
},
|
|
2167
|
+
{
|
|
2168
|
+
"name": "vault_seed",
|
|
2169
|
+
"docs": [
|
|
2170
|
+
"Seed used for vault PDA derivation (for CPI verification)"
|
|
2171
|
+
],
|
|
2172
|
+
"type": "u64"
|
|
2173
|
+
},
|
|
2174
|
+
{
|
|
2175
|
+
"name": "base_mint",
|
|
2176
|
+
"docs": [
|
|
2177
|
+
"Derived vanity mint address (set in configure_launch)"
|
|
2178
|
+
],
|
|
2179
|
+
"type": {
|
|
2180
|
+
"option": "pubkey"
|
|
2181
|
+
}
|
|
2182
|
+
},
|
|
2183
|
+
{
|
|
2184
|
+
"name": "quote_mint",
|
|
2185
|
+
"docs": [
|
|
2186
|
+
"Quote mint: SOL (wSOL) or USDC"
|
|
2187
|
+
],
|
|
2188
|
+
"type": "pubkey"
|
|
2189
|
+
},
|
|
2190
|
+
{
|
|
2191
|
+
"name": "vanity_config",
|
|
2192
|
+
"docs": [
|
|
2193
|
+
"Vanity mint derivation params (set in configure_launch)"
|
|
2194
|
+
],
|
|
2195
|
+
"type": {
|
|
2196
|
+
"option": {
|
|
2197
|
+
"defined": {
|
|
2198
|
+
"name": "VanityConfig"
|
|
2199
|
+
}
|
|
2200
|
+
}
|
|
2201
|
+
}
|
|
2202
|
+
},
|
|
2203
|
+
{
|
|
2204
|
+
"name": "token_name",
|
|
2205
|
+
"docs": [
|
|
2206
|
+
"Token name (padded, from Arweave metadata)"
|
|
2207
|
+
],
|
|
2208
|
+
"type": "string"
|
|
2209
|
+
},
|
|
2210
|
+
{
|
|
2211
|
+
"name": "token_symbol",
|
|
2212
|
+
"docs": [
|
|
2213
|
+
"Token symbol (padded, from Arweave metadata)"
|
|
2214
|
+
],
|
|
2215
|
+
"type": "string"
|
|
2216
|
+
},
|
|
2217
|
+
{
|
|
2218
|
+
"name": "token_uri",
|
|
2219
|
+
"docs": [
|
|
2220
|
+
"Token metadata URI (Arweave link)"
|
|
2221
|
+
],
|
|
2222
|
+
"type": "string"
|
|
2223
|
+
},
|
|
2224
|
+
{
|
|
2225
|
+
"name": "total_supply",
|
|
2226
|
+
"docs": [
|
|
2227
|
+
"Total token supply to mint"
|
|
2228
|
+
],
|
|
2229
|
+
"type": "u64"
|
|
2230
|
+
},
|
|
2231
|
+
{
|
|
2232
|
+
"name": "tokens_to_participants",
|
|
2233
|
+
"docs": [
|
|
2234
|
+
"Tokens allocated to fundraise participants (for claims)"
|
|
2235
|
+
],
|
|
2236
|
+
"type": "u64"
|
|
2237
|
+
},
|
|
2238
|
+
{
|
|
2239
|
+
"name": "tokens_to_liquidity",
|
|
2240
|
+
"docs": [
|
|
2241
|
+
"Tokens to pool liquidity: tokens_to_participants * 20%"
|
|
2242
|
+
],
|
|
2243
|
+
"type": "u64"
|
|
2244
|
+
},
|
|
2245
|
+
{
|
|
2246
|
+
"name": "tokens_to_team",
|
|
2247
|
+
"docs": [
|
|
2248
|
+
"Tokens to team: total_supply - participants - liquidity.",
|
|
2249
|
+
"Sent to PLATFORM_ADMIN ATA, NOT to team/creator directly."
|
|
2250
|
+
],
|
|
2251
|
+
"type": "u64"
|
|
2252
|
+
},
|
|
2253
|
+
{
|
|
2254
|
+
"name": "treasury_share_bps",
|
|
2255
|
+
"docs": [
|
|
2256
|
+
"Fund share to DAO treasury (constant: 8000 = 80%)"
|
|
2257
|
+
],
|
|
2258
|
+
"type": "u16"
|
|
2259
|
+
},
|
|
2260
|
+
{
|
|
2261
|
+
"name": "liquidity_share_bps",
|
|
2262
|
+
"docs": [
|
|
2263
|
+
"Fund share to pool liquidity (constant: 2000 = 20%)"
|
|
2264
|
+
],
|
|
2265
|
+
"type": "u16"
|
|
2266
|
+
},
|
|
2267
|
+
{
|
|
2268
|
+
"name": "state",
|
|
2269
|
+
"docs": [
|
|
2270
|
+
"Current launch state"
|
|
2271
|
+
],
|
|
2272
|
+
"type": {
|
|
2273
|
+
"defined": {
|
|
2274
|
+
"name": "LaunchState"
|
|
2275
|
+
}
|
|
2276
|
+
}
|
|
2277
|
+
},
|
|
2278
|
+
{
|
|
2279
|
+
"name": "pool_activation_time",
|
|
2280
|
+
"docs": [
|
|
2281
|
+
"When trading + claims unlock (set in execute_launch)"
|
|
2282
|
+
],
|
|
2283
|
+
"type": {
|
|
2284
|
+
"option": "i64"
|
|
2285
|
+
}
|
|
2286
|
+
},
|
|
2287
|
+
{
|
|
2288
|
+
"name": "executed_at",
|
|
2289
|
+
"docs": [
|
|
2290
|
+
"When execute_launch was called"
|
|
2291
|
+
],
|
|
2292
|
+
"type": {
|
|
2293
|
+
"option": "i64"
|
|
2294
|
+
}
|
|
2295
|
+
},
|
|
2296
|
+
{
|
|
2297
|
+
"name": "pool",
|
|
2298
|
+
"docs": [
|
|
2299
|
+
"DAMM pool address"
|
|
2300
|
+
],
|
|
2301
|
+
"type": {
|
|
2302
|
+
"option": "pubkey"
|
|
2303
|
+
}
|
|
2304
|
+
},
|
|
2305
|
+
{
|
|
2306
|
+
"name": "position_nft_mint",
|
|
2307
|
+
"docs": [
|
|
2308
|
+
"Position NFT mint (LP position)"
|
|
2309
|
+
],
|
|
2310
|
+
"type": {
|
|
2311
|
+
"option": "pubkey"
|
|
2312
|
+
}
|
|
2313
|
+
},
|
|
2314
|
+
{
|
|
2315
|
+
"name": "dao",
|
|
2316
|
+
"docs": [
|
|
2317
|
+
"DAO account (futarchy)"
|
|
2318
|
+
],
|
|
2319
|
+
"type": {
|
|
2320
|
+
"option": "pubkey"
|
|
2321
|
+
}
|
|
2322
|
+
},
|
|
2323
|
+
{
|
|
2324
|
+
"name": "squads_multisig",
|
|
2325
|
+
"docs": [
|
|
2326
|
+
"Squads multisig for treasury"
|
|
2327
|
+
],
|
|
2328
|
+
"type": {
|
|
2329
|
+
"option": "pubkey"
|
|
2330
|
+
}
|
|
2331
|
+
},
|
|
2332
|
+
{
|
|
2333
|
+
"name": "dao_treasury",
|
|
2334
|
+
"docs": [
|
|
2335
|
+
"DAO treasury (Squads vault PDA of treasury_multisig — holds 80% funds)"
|
|
2336
|
+
],
|
|
2337
|
+
"type": {
|
|
2338
|
+
"option": "pubkey"
|
|
2339
|
+
}
|
|
2340
|
+
},
|
|
2341
|
+
{
|
|
2342
|
+
"name": "dao_mint_authority",
|
|
2343
|
+
"docs": [
|
|
2344
|
+
"DAO mint authority (Squads vault PDA of mint_multisig — controls token minting)"
|
|
2345
|
+
],
|
|
2346
|
+
"type": {
|
|
2347
|
+
"option": "pubkey"
|
|
2348
|
+
}
|
|
2349
|
+
},
|
|
2350
|
+
{
|
|
2351
|
+
"name": "new_dao_admin",
|
|
2352
|
+
"docs": [
|
|
2353
|
+
"ZC managed admin wallet — DAMM pool creator (owns LP position NFT) + futarchy DAO admin"
|
|
2354
|
+
],
|
|
2355
|
+
"type": {
|
|
2356
|
+
"option": "pubkey"
|
|
2357
|
+
}
|
|
2358
|
+
},
|
|
2359
|
+
{
|
|
2360
|
+
"name": "token_vault",
|
|
2361
|
+
"docs": [
|
|
2362
|
+
"Token vault: ATA of launchpad_signer for base_mint (holds tokens_to_participants)"
|
|
2363
|
+
],
|
|
2364
|
+
"type": {
|
|
2365
|
+
"option": "pubkey"
|
|
2366
|
+
}
|
|
2367
|
+
},
|
|
2368
|
+
{
|
|
2369
|
+
"name": "funds_vault",
|
|
2370
|
+
"docs": [
|
|
2371
|
+
"Funds vault: ATA of launchpad_signer for quote_mint (intermediate, empty after execute)"
|
|
2372
|
+
],
|
|
2373
|
+
"type": {
|
|
2374
|
+
"option": "pubkey"
|
|
2375
|
+
}
|
|
2376
|
+
},
|
|
2377
|
+
{
|
|
2378
|
+
"name": "total_claimed",
|
|
2379
|
+
"docs": [
|
|
2380
|
+
"Running total of tokens claimed across all users"
|
|
2381
|
+
],
|
|
2382
|
+
"type": "u64"
|
|
2383
|
+
}
|
|
2384
|
+
]
|
|
2385
|
+
}
|
|
2386
|
+
},
|
|
2387
|
+
{
|
|
2388
|
+
"name": "LaunchConfigUpdatedEvent",
|
|
2389
|
+
"type": {
|
|
2390
|
+
"kind": "struct",
|
|
2391
|
+
"fields": [
|
|
2392
|
+
{
|
|
2393
|
+
"name": "launch_config",
|
|
2394
|
+
"type": "pubkey"
|
|
2395
|
+
},
|
|
2396
|
+
{
|
|
2397
|
+
"name": "admin",
|
|
2398
|
+
"type": "pubkey"
|
|
2399
|
+
},
|
|
2400
|
+
{
|
|
2401
|
+
"name": "new_base_mint",
|
|
2402
|
+
"type": "pubkey"
|
|
2403
|
+
},
|
|
2404
|
+
{
|
|
2405
|
+
"name": "timestamp",
|
|
2406
|
+
"type": "i64"
|
|
2407
|
+
}
|
|
2408
|
+
]
|
|
2409
|
+
}
|
|
2410
|
+
},
|
|
2411
|
+
{
|
|
2412
|
+
"name": "LaunchConfiguredEvent",
|
|
2413
|
+
"type": {
|
|
2414
|
+
"kind": "struct",
|
|
2415
|
+
"fields": [
|
|
2416
|
+
{
|
|
2417
|
+
"name": "launch_config",
|
|
2418
|
+
"type": "pubkey"
|
|
2419
|
+
},
|
|
2420
|
+
{
|
|
2421
|
+
"name": "admin",
|
|
2422
|
+
"type": "pubkey"
|
|
2423
|
+
},
|
|
2424
|
+
{
|
|
2425
|
+
"name": "base_mint",
|
|
2426
|
+
"type": "pubkey"
|
|
2427
|
+
},
|
|
2428
|
+
{
|
|
2429
|
+
"name": "token_name",
|
|
2430
|
+
"type": "string"
|
|
2431
|
+
},
|
|
2432
|
+
{
|
|
2433
|
+
"name": "token_symbol",
|
|
2434
|
+
"type": "string"
|
|
2435
|
+
},
|
|
2436
|
+
{
|
|
2437
|
+
"name": "timestamp",
|
|
2438
|
+
"type": "i64"
|
|
2439
|
+
}
|
|
2440
|
+
]
|
|
2441
|
+
}
|
|
2442
|
+
},
|
|
2443
|
+
{
|
|
2444
|
+
"name": "LaunchExecutedEvent",
|
|
2445
|
+
"type": {
|
|
2446
|
+
"kind": "struct",
|
|
2447
|
+
"fields": [
|
|
2448
|
+
{
|
|
2449
|
+
"name": "launch_config",
|
|
2450
|
+
"type": "pubkey"
|
|
2451
|
+
},
|
|
2452
|
+
{
|
|
2453
|
+
"name": "admin",
|
|
2454
|
+
"type": "pubkey"
|
|
2455
|
+
},
|
|
2456
|
+
{
|
|
2457
|
+
"name": "pool",
|
|
2458
|
+
"type": "pubkey"
|
|
2459
|
+
},
|
|
2460
|
+
{
|
|
2461
|
+
"name": "dao",
|
|
2462
|
+
"type": "pubkey"
|
|
2463
|
+
},
|
|
2464
|
+
{
|
|
2465
|
+
"name": "dao_treasury",
|
|
2466
|
+
"type": "pubkey"
|
|
2467
|
+
},
|
|
2468
|
+
{
|
|
2469
|
+
"name": "new_dao_admin",
|
|
2470
|
+
"docs": [
|
|
2471
|
+
"ZC managed admin wallet — DAMM pool creator (LP NFT owner) + futarchy DAO admin"
|
|
2472
|
+
],
|
|
2473
|
+
"type": "pubkey"
|
|
2474
|
+
},
|
|
2475
|
+
{
|
|
2476
|
+
"name": "total_allocated",
|
|
2477
|
+
"type": "u64"
|
|
2478
|
+
},
|
|
2479
|
+
{
|
|
2480
|
+
"name": "funds_to_pool",
|
|
2481
|
+
"type": "u64"
|
|
2482
|
+
},
|
|
2483
|
+
{
|
|
2484
|
+
"name": "funds_to_treasury",
|
|
2485
|
+
"type": "u64"
|
|
2486
|
+
},
|
|
2487
|
+
{
|
|
2488
|
+
"name": "tokens_to_participants",
|
|
2489
|
+
"type": "u64"
|
|
2490
|
+
},
|
|
2491
|
+
{
|
|
2492
|
+
"name": "tokens_to_liquidity",
|
|
2493
|
+
"type": "u64"
|
|
2494
|
+
},
|
|
2495
|
+
{
|
|
2496
|
+
"name": "tokens_to_team",
|
|
2497
|
+
"type": "u64"
|
|
2498
|
+
},
|
|
2499
|
+
{
|
|
2500
|
+
"name": "pool_activation_time",
|
|
2501
|
+
"type": "i64"
|
|
2502
|
+
},
|
|
2503
|
+
{
|
|
2504
|
+
"name": "timestamp",
|
|
2505
|
+
"type": "i64"
|
|
2506
|
+
}
|
|
2507
|
+
]
|
|
2508
|
+
}
|
|
2509
|
+
},
|
|
2510
|
+
{
|
|
2511
|
+
"name": "LaunchInitializedEvent",
|
|
2512
|
+
"type": {
|
|
2513
|
+
"kind": "struct",
|
|
2514
|
+
"fields": [
|
|
2515
|
+
{
|
|
2516
|
+
"name": "launch_config",
|
|
2517
|
+
"type": "pubkey"
|
|
2518
|
+
},
|
|
2519
|
+
{
|
|
2520
|
+
"name": "creator",
|
|
2521
|
+
"type": "pubkey"
|
|
2522
|
+
},
|
|
2523
|
+
{
|
|
2524
|
+
"name": "fundraise_state",
|
|
2525
|
+
"type": "pubkey"
|
|
2526
|
+
},
|
|
2527
|
+
{
|
|
2528
|
+
"name": "quote_mint",
|
|
2529
|
+
"type": "pubkey"
|
|
2530
|
+
},
|
|
2531
|
+
{
|
|
2532
|
+
"name": "total_supply",
|
|
2533
|
+
"type": "u64"
|
|
2534
|
+
},
|
|
2535
|
+
{
|
|
2536
|
+
"name": "tokens_to_participants",
|
|
2537
|
+
"type": "u64"
|
|
2538
|
+
},
|
|
2539
|
+
{
|
|
2540
|
+
"name": "tokens_to_liquidity",
|
|
2541
|
+
"type": "u64"
|
|
2542
|
+
},
|
|
2543
|
+
{
|
|
2544
|
+
"name": "tokens_to_team",
|
|
2545
|
+
"type": "u64"
|
|
2546
|
+
},
|
|
2547
|
+
{
|
|
2548
|
+
"name": "timestamp",
|
|
2549
|
+
"type": "i64"
|
|
2550
|
+
}
|
|
2551
|
+
]
|
|
2552
|
+
}
|
|
2553
|
+
},
|
|
2554
|
+
{
|
|
2555
|
+
"name": "LaunchState",
|
|
2556
|
+
"type": {
|
|
2557
|
+
"kind": "enum",
|
|
2558
|
+
"variants": [
|
|
2559
|
+
{
|
|
2560
|
+
"name": "FundraiseActive"
|
|
2561
|
+
},
|
|
2562
|
+
{
|
|
2563
|
+
"name": "ReadyToLaunch"
|
|
2564
|
+
},
|
|
2565
|
+
{
|
|
2566
|
+
"name": "TokenCreated"
|
|
2567
|
+
},
|
|
2568
|
+
{
|
|
2569
|
+
"name": "Launched"
|
|
2570
|
+
},
|
|
2571
|
+
{
|
|
2572
|
+
"name": "Cancelled"
|
|
2573
|
+
}
|
|
2574
|
+
]
|
|
2575
|
+
}
|
|
2576
|
+
},
|
|
2577
|
+
{
|
|
2578
|
+
"name": "StarVault",
|
|
2579
|
+
"type": {
|
|
2580
|
+
"kind": "struct",
|
|
2581
|
+
"fields": [
|
|
2582
|
+
{
|
|
2583
|
+
"name": "seed",
|
|
2584
|
+
"type": "u64"
|
|
2585
|
+
},
|
|
2586
|
+
{
|
|
2587
|
+
"name": "authority",
|
|
2588
|
+
"type": "pubkey"
|
|
2589
|
+
},
|
|
2590
|
+
{
|
|
2591
|
+
"name": "quote_mint",
|
|
2592
|
+
"type": "pubkey"
|
|
2593
|
+
},
|
|
2594
|
+
{
|
|
2595
|
+
"name": "quote_token_program",
|
|
2596
|
+
"type": "pubkey"
|
|
2597
|
+
},
|
|
2598
|
+
{
|
|
2599
|
+
"name": "minimum_raise_target",
|
|
2600
|
+
"type": "u64"
|
|
2601
|
+
},
|
|
2602
|
+
{
|
|
2603
|
+
"name": "target_raise_amount",
|
|
2604
|
+
"type": "u64"
|
|
2605
|
+
},
|
|
2606
|
+
{
|
|
2607
|
+
"name": "total_deposited",
|
|
2608
|
+
"type": "u64"
|
|
2609
|
+
},
|
|
2610
|
+
{
|
|
2611
|
+
"name": "total_deposited_before_excess",
|
|
2612
|
+
"type": "u64"
|
|
2613
|
+
},
|
|
2614
|
+
{
|
|
2615
|
+
"name": "vault_balance_at_tge",
|
|
2616
|
+
"docs": [
|
|
2617
|
+
"Snapshot of vault_ata.amount at TGE acceptance, BEFORE funds are routed.",
|
|
2618
|
+
"Used by claim_dust to compute max claimable dust after TGE (when vault_ata",
|
|
2619
|
+
"balance is reduced). If 0, TGE has not occurred yet.",
|
|
2620
|
+
"FIX: M01 - Prevents DoS on dust claims after tge_accept."
|
|
2621
|
+
],
|
|
2622
|
+
"type": "u64"
|
|
2623
|
+
},
|
|
2624
|
+
{
|
|
2625
|
+
"name": "start_time",
|
|
2626
|
+
"type": "i64"
|
|
2627
|
+
},
|
|
2628
|
+
{
|
|
2629
|
+
"name": "end_time",
|
|
2630
|
+
"type": "i64"
|
|
2631
|
+
},
|
|
2632
|
+
{
|
|
2633
|
+
"name": "status",
|
|
2634
|
+
"type": {
|
|
2635
|
+
"defined": {
|
|
2636
|
+
"name": "VaultStatus"
|
|
2637
|
+
}
|
|
2638
|
+
}
|
|
2639
|
+
},
|
|
2640
|
+
{
|
|
2641
|
+
"name": "total_depositors",
|
|
2642
|
+
"type": "u32"
|
|
2643
|
+
},
|
|
2644
|
+
{
|
|
2645
|
+
"name": "is_oversubscribed",
|
|
2646
|
+
"docs": [
|
|
2647
|
+
"Set to true on tge_accept when total_deposited > target_raise_amount.",
|
|
2648
|
+
"Enables claim_excess_refund for pro-rata refunds."
|
|
2649
|
+
],
|
|
2650
|
+
"type": "bool"
|
|
2651
|
+
},
|
|
2652
|
+
{
|
|
2653
|
+
"name": "bump",
|
|
2654
|
+
"type": "u8"
|
|
2655
|
+
},
|
|
2656
|
+
{
|
|
2657
|
+
"name": "tier_totals",
|
|
2658
|
+
"docs": [
|
|
2659
|
+
"Total deposits per tier: [tier0..tier6]",
|
|
2660
|
+
"tier0 = immediate (0 weeks), tier1 = 2 weeks, tier2 = 4 weeks,",
|
|
2661
|
+
"tier3 = 6 weeks, tier4 = 8 weeks, tier5 = 10 weeks, tier6 = 12 weeks"
|
|
2662
|
+
],
|
|
2663
|
+
"type": {
|
|
2664
|
+
"array": [
|
|
2665
|
+
"u64",
|
|
2666
|
+
7
|
|
2667
|
+
]
|
|
2668
|
+
}
|
|
2669
|
+
},
|
|
2670
|
+
{
|
|
2671
|
+
"name": "tier_depositor_counts",
|
|
2672
|
+
"docs": [
|
|
2673
|
+
"Number of unique depositors per tier"
|
|
2674
|
+
],
|
|
2675
|
+
"type": {
|
|
2676
|
+
"array": [
|
|
2677
|
+
"u32",
|
|
2678
|
+
7
|
|
2679
|
+
]
|
|
2680
|
+
}
|
|
2681
|
+
},
|
|
2682
|
+
{
|
|
2683
|
+
"name": "tier_allocated",
|
|
2684
|
+
"docs": [
|
|
2685
|
+
"Allocated amount per tier after calculate_allocations (0 until calculated)",
|
|
2686
|
+
"Higher tiers get priority in allocation"
|
|
2687
|
+
],
|
|
2688
|
+
"type": {
|
|
2689
|
+
"array": [
|
|
2690
|
+
"u64",
|
|
2691
|
+
7
|
|
2692
|
+
]
|
|
2693
|
+
}
|
|
2694
|
+
},
|
|
2695
|
+
{
|
|
2696
|
+
"name": "total_allocated",
|
|
2697
|
+
"docs": [
|
|
2698
|
+
"Total amount allocated across all tiers (sum of tier_allocated)",
|
|
2699
|
+
"Used by Launchpad to compute user's share of the token distribution"
|
|
2700
|
+
],
|
|
2701
|
+
"type": "u64"
|
|
2702
|
+
},
|
|
2703
|
+
{
|
|
2704
|
+
"name": "tier_totals_at_allocation",
|
|
2705
|
+
"docs": [
|
|
2706
|
+
"Snapshot of tier_totals at allocation time (for consistent pro-rata refund calculation)",
|
|
2707
|
+
"Using live tier_totals would cause inconsistent refunds as users claim sequentially"
|
|
2708
|
+
],
|
|
2709
|
+
"type": {
|
|
2710
|
+
"array": [
|
|
2711
|
+
"u64",
|
|
2712
|
+
7
|
|
2713
|
+
]
|
|
2714
|
+
}
|
|
2715
|
+
},
|
|
2716
|
+
{
|
|
2717
|
+
"name": "allocations_calculated",
|
|
2718
|
+
"docs": [
|
|
2719
|
+
"True once calculate_allocations has been called (prevents re-calculation)"
|
|
2720
|
+
],
|
|
2721
|
+
"type": "bool"
|
|
2722
|
+
}
|
|
2723
|
+
]
|
|
2724
|
+
}
|
|
2725
|
+
},
|
|
2726
|
+
{
|
|
2727
|
+
"name": "TokenCreatedEvent",
|
|
2728
|
+
"type": {
|
|
2729
|
+
"kind": "struct",
|
|
2730
|
+
"fields": [
|
|
2731
|
+
{
|
|
2732
|
+
"name": "launch_config",
|
|
2733
|
+
"type": "pubkey"
|
|
2734
|
+
},
|
|
2735
|
+
{
|
|
2736
|
+
"name": "base_mint",
|
|
2737
|
+
"type": "pubkey"
|
|
2738
|
+
},
|
|
2739
|
+
{
|
|
2740
|
+
"name": "total_supply",
|
|
2741
|
+
"type": "u64"
|
|
2742
|
+
},
|
|
2743
|
+
{
|
|
2744
|
+
"name": "timestamp",
|
|
2745
|
+
"type": "i64"
|
|
2746
|
+
}
|
|
2747
|
+
]
|
|
2748
|
+
}
|
|
2749
|
+
},
|
|
2750
|
+
{
|
|
2751
|
+
"name": "TokensClaimedEvent",
|
|
2752
|
+
"type": {
|
|
2753
|
+
"kind": "struct",
|
|
2754
|
+
"fields": [
|
|
2755
|
+
{
|
|
2756
|
+
"name": "launch_config",
|
|
2757
|
+
"type": "pubkey"
|
|
2758
|
+
},
|
|
2759
|
+
{
|
|
2760
|
+
"name": "user",
|
|
2761
|
+
"type": "pubkey"
|
|
2762
|
+
},
|
|
2763
|
+
{
|
|
2764
|
+
"name": "amount_claimed",
|
|
2765
|
+
"type": "u64"
|
|
2766
|
+
},
|
|
2767
|
+
{
|
|
2768
|
+
"name": "total_claimed_by_user",
|
|
2769
|
+
"type": "u64"
|
|
2770
|
+
},
|
|
2771
|
+
{
|
|
2772
|
+
"name": "total_vested",
|
|
2773
|
+
"type": "u64"
|
|
2774
|
+
},
|
|
2775
|
+
{
|
|
2776
|
+
"name": "tier",
|
|
2777
|
+
"type": "u8"
|
|
2778
|
+
},
|
|
2779
|
+
{
|
|
2780
|
+
"name": "timestamp",
|
|
2781
|
+
"type": "i64"
|
|
2782
|
+
}
|
|
2783
|
+
]
|
|
2784
|
+
}
|
|
2785
|
+
},
|
|
2786
|
+
{
|
|
2787
|
+
"name": "UpdateLaunchConfigArgs",
|
|
2788
|
+
"type": {
|
|
2789
|
+
"kind": "struct",
|
|
2790
|
+
"fields": [
|
|
2791
|
+
{
|
|
2792
|
+
"name": "base_pubkey",
|
|
2793
|
+
"docs": [
|
|
2794
|
+
"New base pubkey for vanity mint derivation"
|
|
2795
|
+
],
|
|
2796
|
+
"type": "pubkey"
|
|
2797
|
+
},
|
|
2798
|
+
{
|
|
2799
|
+
"name": "vanity_seed",
|
|
2800
|
+
"docs": [
|
|
2801
|
+
"New seed string for createAccountWithSeed (up to 32 bytes)"
|
|
2802
|
+
],
|
|
2803
|
+
"type": "string"
|
|
2804
|
+
},
|
|
2805
|
+
{
|
|
2806
|
+
"name": "expected_mint",
|
|
2807
|
+
"docs": [
|
|
2808
|
+
"New expected derived mint address"
|
|
2809
|
+
],
|
|
2810
|
+
"type": "pubkey"
|
|
2811
|
+
}
|
|
2812
|
+
]
|
|
2813
|
+
}
|
|
2814
|
+
},
|
|
2815
|
+
{
|
|
2816
|
+
"name": "VanityConfig",
|
|
2817
|
+
"docs": [
|
|
2818
|
+
"Vanity mint derivation parameters.",
|
|
2819
|
+
"The base keypair's secret is held off-chain by admin until create_launch_token.",
|
|
2820
|
+
"After create_launch_token, it can be discarded."
|
|
2821
|
+
],
|
|
2822
|
+
"type": {
|
|
2823
|
+
"kind": "struct",
|
|
2824
|
+
"fields": [
|
|
2825
|
+
{
|
|
2826
|
+
"name": "base_pubkey",
|
|
2827
|
+
"docs": [
|
|
2828
|
+
"Public key of the base keypair used to derive the vanity mint"
|
|
2829
|
+
],
|
|
2830
|
+
"type": "pubkey"
|
|
2831
|
+
},
|
|
2832
|
+
{
|
|
2833
|
+
"name": "vanity_seed",
|
|
2834
|
+
"docs": [
|
|
2835
|
+
"Seed string for createAccountWithSeed (padded to 32 bytes)"
|
|
2836
|
+
],
|
|
2837
|
+
"type": {
|
|
2838
|
+
"array": [
|
|
2839
|
+
"u8",
|
|
2840
|
+
32
|
|
2841
|
+
]
|
|
2842
|
+
}
|
|
2843
|
+
},
|
|
2844
|
+
{
|
|
2845
|
+
"name": "vanity_seed_len",
|
|
2846
|
+
"docs": [
|
|
2847
|
+
"Actual length of the seed string"
|
|
2848
|
+
],
|
|
2849
|
+
"type": "u8"
|
|
2850
|
+
},
|
|
2851
|
+
{
|
|
2852
|
+
"name": "expected_mint",
|
|
2853
|
+
"docs": [
|
|
2854
|
+
"The derived mint address: SHA256(base_pubkey || seed || TOKEN_PROGRAM_ID)"
|
|
2855
|
+
],
|
|
2856
|
+
"type": "pubkey"
|
|
2857
|
+
}
|
|
2858
|
+
]
|
|
2859
|
+
}
|
|
2860
|
+
},
|
|
2861
|
+
{
|
|
2862
|
+
"name": "VaultStatus",
|
|
2863
|
+
"type": {
|
|
2864
|
+
"kind": "enum",
|
|
2865
|
+
"variants": [
|
|
2866
|
+
{
|
|
2867
|
+
"name": "Active"
|
|
2868
|
+
},
|
|
2869
|
+
{
|
|
2870
|
+
"name": "AwaitingTgeRequest"
|
|
2871
|
+
},
|
|
2872
|
+
{
|
|
2873
|
+
"name": "TgeRequested"
|
|
2874
|
+
},
|
|
2875
|
+
{
|
|
2876
|
+
"name": "TgeAccepted"
|
|
2877
|
+
},
|
|
2878
|
+
{
|
|
2879
|
+
"name": "Cancelled"
|
|
2880
|
+
}
|
|
2881
|
+
]
|
|
2882
|
+
}
|
|
2883
|
+
}
|
|
2884
|
+
],
|
|
2885
|
+
"constants": [
|
|
2886
|
+
{
|
|
2887
|
+
"name": "LAUNCH_SEED",
|
|
2888
|
+
"type": "bytes",
|
|
2889
|
+
"value": "[108, 97, 117, 110, 99, 104]"
|
|
2890
|
+
}
|
|
2891
|
+
]
|
|
2892
|
+
}
|