@streamflow/launchpad 7.5.3 → 8.0.0-alpha.p287.25d0c28

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.
@@ -1,1468 +1,1007 @@
1
1
  {
2
- "address": "BUYfFzeTWeRW5JrPjCutbsvzjA5ERS8EnGujJjfmnJu6",
3
- "metadata": {
4
- "name": "streamflow_launchpad",
5
- "version": "1.0.0",
6
- "spec": "0.1.0",
7
- "description": "A Launchpad for a pre-sale"
8
- },
9
- "instructions": [
10
- {
11
- "name": "claim_allocated_instant",
12
- "docs": [
13
- "Claim allocated funds instantly in case vesting schedule is not set"
2
+ "address": "BUYfFzeTWeRW5JrPjCutbsvzjA5ERS8EnGujJjfmnJu6",
3
+ "metadata": {
4
+ "name": "streamflow_launchpad",
5
+ "version": "1.0.0",
6
+ "spec": "0.1.0",
7
+ "description": "A Launchpad for a pre-sale"
8
+ },
9
+ "instructions": [
10
+ {
11
+ "name": "claim_allocated_instant",
12
+ "docs": ["Claim allocated funds instantly in case vesting schedule is not set"],
13
+ "discriminator": [49, 89, 180, 221, 1, 139, 121, 192],
14
+ "accounts": [
15
+ {
16
+ "name": "launchpad",
17
+ "docs": ["[Launchpad]."],
18
+ "writable": true,
19
+ "relations": ["deposit_account"]
20
+ },
21
+ {
22
+ "name": "deposit_account",
23
+ "docs": ["Reward Entry that stores metadata about claimed rewards"],
24
+ "writable": true
25
+ },
26
+ {
27
+ "name": "from",
28
+ "docs": ["Vault that stores Base tokens"],
29
+ "writable": true,
30
+ "pda": {
31
+ "seeds": [
32
+ {
33
+ "kind": "account",
34
+ "path": "launchpad"
35
+ },
36
+ {
37
+ "kind": "account",
38
+ "path": "token_program"
39
+ },
40
+ {
41
+ "kind": "account",
42
+ "path": "base_mint"
43
+ }
14
44
  ],
15
- "discriminator": [
16
- 49,
17
- 89,
18
- 180,
19
- 221,
20
- 1,
21
- 139,
22
- 121,
23
- 192
24
- ],
25
- "accounts": [
26
- {
27
- "name": "launchpad",
28
- "docs": [
29
- "[Launchpad]."
30
- ],
31
- "writable": true,
32
- "relations": [
33
- "deposit_account"
34
- ]
35
- },
36
- {
37
- "name": "deposit_account",
38
- "docs": [
39
- "Reward Entry that stores metadata about claimed rewards"
40
- ],
41
- "writable": true
42
- },
43
- {
44
- "name": "from",
45
- "docs": [
46
- "Vault that stores Base tokens"
47
- ],
48
- "writable": true,
49
- "pda": {
50
- "seeds": [
51
- {
52
- "kind": "account",
53
- "path": "launchpad"
54
- },
55
- {
56
- "kind": "account",
57
- "path": "token_program"
58
- },
59
- {
60
- "kind": "account",
61
- "path": "base_mint"
62
- }
63
- ],
64
- "program": {
65
- "kind": "const",
66
- "value": [
67
- 140,
68
- 151,
69
- 37,
70
- 143,
71
- 78,
72
- 36,
73
- 137,
74
- 241,
75
- 187,
76
- 61,
77
- 16,
78
- 41,
79
- 20,
80
- 142,
81
- 13,
82
- 131,
83
- 11,
84
- 90,
85
- 19,
86
- 153,
87
- 218,
88
- 255,
89
- 16,
90
- 132,
91
- 4,
92
- 142,
93
- 123,
94
- 216,
95
- 219,
96
- 233,
97
- 248,
98
- 89
99
- ]
100
- }
101
- }
102
- },
103
- {
104
- "name": "to",
105
- "docs": [
106
- "Token Account to which tokens will be transferred"
107
- ],
108
- "writable": true,
109
- "pda": {
110
- "seeds": [
111
- {
112
- "kind": "account",
113
- "path": "owner"
114
- },
115
- {
116
- "kind": "account",
117
- "path": "token_program"
118
- },
119
- {
120
- "kind": "account",
121
- "path": "base_mint"
122
- }
123
- ],
124
- "program": {
125
- "kind": "const",
126
- "value": [
127
- 140,
128
- 151,
129
- 37,
130
- 143,
131
- 78,
132
- 36,
133
- 137,
134
- 241,
135
- 187,
136
- 61,
137
- 16,
138
- 41,
139
- 20,
140
- 142,
141
- 13,
142
- 131,
143
- 11,
144
- 90,
145
- 19,
146
- 153,
147
- 218,
148
- 255,
149
- 16,
150
- 132,
151
- 4,
152
- 142,
153
- 123,
154
- 216,
155
- 219,
156
- 233,
157
- 248,
158
- 89
159
- ]
160
- }
161
- }
162
- },
163
- {
164
- "name": "payer",
165
- "docs": [
166
- "Rent payer"
167
- ],
168
- "writable": true,
169
- "signer": true
170
- },
171
- {
172
- "name": "owner"
173
- },
174
- {
175
- "name": "base_mint",
176
- "docs": [
177
- "Base Mint of the Launchpad"
178
- ],
179
- "relations": [
180
- "launchpad"
181
- ]
182
- },
183
- {
184
- "name": "system_program",
185
- "docs": [
186
- "The [System] program."
187
- ],
188
- "address": "11111111111111111111111111111111"
189
- },
190
- {
191
- "name": "associated_token_program",
192
- "docs": [
193
- "The [Associated Token] program."
194
- ],
195
- "address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL"
196
- },
197
- {
198
- "name": "token_program",
199
- "docs": [
200
- "The [Token] program."
201
- ]
202
- }
45
+ "program": {
46
+ "kind": "const",
47
+ "value": [
48
+ 140, 151, 37, 143, 78, 36, 137, 241, 187, 61, 16, 41, 20, 142, 13, 131, 11, 90, 19, 153, 218, 255, 16,
49
+ 132, 4, 142, 123, 216, 219, 233, 248, 89
50
+ ]
51
+ }
52
+ }
53
+ },
54
+ {
55
+ "name": "to",
56
+ "docs": ["Token Account to which tokens will be transferred"],
57
+ "writable": true,
58
+ "pda": {
59
+ "seeds": [
60
+ {
61
+ "kind": "account",
62
+ "path": "owner"
63
+ },
64
+ {
65
+ "kind": "account",
66
+ "path": "token_program"
67
+ },
68
+ {
69
+ "kind": "account",
70
+ "path": "base_mint"
71
+ }
203
72
  ],
204
- "args": []
73
+ "program": {
74
+ "kind": "const",
75
+ "value": [
76
+ 140, 151, 37, 143, 78, 36, 137, 241, 187, 61, 16, 41, 20, 142, 13, 131, 11, 90, 19, 153, 218, 255, 16,
77
+ 132, 4, 142, 123, 216, 219, 233, 248, 89
78
+ ]
79
+ }
80
+ }
205
81
  },
206
82
  {
207
- "name": "claim_allocated_vested",
208
- "docs": [
209
- "Claim allocated funds in a vested manner in case vesting schedule has been set"
210
- ],
211
- "discriminator": [
212
- 14,
213
- 116,
214
- 137,
215
- 52,
216
- 178,
217
- 218,
218
- 187,
219
- 229
220
- ],
221
- "accounts": [
222
- {
223
- "name": "launchpad",
224
- "docs": [
225
- "[Launchpad]."
226
- ],
227
- "writable": true,
228
- "relations": [
229
- "deposit_account"
230
- ]
231
- },
232
- {
233
- "name": "deposit_account",
234
- "docs": [
235
- "Reward Entry that stores metadata about claimed rewards"
236
- ],
237
- "writable": true
238
- },
239
- {
240
- "name": "from",
241
- "docs": [
242
- "Vault that stores Base tokens"
243
- ],
244
- "writable": true,
245
- "pda": {
246
- "seeds": [
247
- {
248
- "kind": "account",
249
- "path": "launchpad"
250
- },
251
- {
252
- "kind": "account",
253
- "path": "token_program"
254
- },
255
- {
256
- "kind": "account",
257
- "path": "base_mint"
258
- }
259
- ],
260
- "program": {
261
- "kind": "const",
262
- "value": [
263
- 140,
264
- 151,
265
- 37,
266
- 143,
267
- 78,
268
- 36,
269
- 137,
270
- 241,
271
- 187,
272
- 61,
273
- 16,
274
- 41,
275
- 20,
276
- 142,
277
- 13,
278
- 131,
279
- 11,
280
- 90,
281
- 19,
282
- 153,
283
- 218,
284
- 255,
285
- 16,
286
- 132,
287
- 4,
288
- 142,
289
- 123,
290
- 216,
291
- 219,
292
- 233,
293
- 248,
294
- 89
295
- ]
296
- }
297
- }
298
- },
299
- {
300
- "name": "to",
301
- "docs": [
302
- "Token Account to which tokens will be vested"
303
- ],
304
- "writable": true,
305
- "pda": {
306
- "seeds": [
307
- {
308
- "kind": "account",
309
- "path": "owner"
310
- },
311
- {
312
- "kind": "account",
313
- "path": "token_program"
314
- },
315
- {
316
- "kind": "account",
317
- "path": "base_mint"
318
- }
319
- ],
320
- "program": {
321
- "kind": "const",
322
- "value": [
323
- 140,
324
- 151,
325
- 37,
326
- 143,
327
- 78,
328
- 36,
329
- 137,
330
- 241,
331
- 187,
332
- 61,
333
- 16,
334
- 41,
335
- 20,
336
- 142,
337
- 13,
338
- 131,
339
- 11,
340
- 90,
341
- 19,
342
- 153,
343
- 218,
344
- 255,
345
- 16,
346
- 132,
347
- 4,
348
- 142,
349
- 123,
350
- 216,
351
- 219,
352
- 233,
353
- 248,
354
- 89
355
- ]
356
- }
357
- }
358
- },
359
- {
360
- "name": "payer",
361
- "docs": [
362
- "Rent payer"
363
- ],
364
- "writable": true,
365
- "signer": true
366
- },
367
- {
368
- "name": "owner",
369
- "relations": [
370
- "deposit_account"
371
- ]
372
- },
373
- {
374
- "name": "base_mint",
375
- "docs": [
376
- "Base Mint of the Launchpad"
377
- ],
378
- "relations": [
379
- "launchpad"
380
- ]
381
- },
382
- {
383
- "name": "price_oracle",
384
- "relations": [
385
- "launchpad"
386
- ]
387
- },
388
- {
389
- "name": "authority",
390
- "relations": [
391
- "launchpad"
392
- ]
393
- },
394
- {
395
- "name": "proxy_metadata",
396
- "writable": true
397
- },
398
- {
399
- "name": "proxy_tokens",
400
- "docs": [
401
- "Vault that stores Base tokens"
402
- ],
403
- "writable": true
404
- },
405
- {
406
- "name": "stream_metadata",
407
- "writable": true,
408
- "signer": true
409
- },
410
- {
411
- "name": "escrow_tokens",
412
- "writable": true
413
- },
414
- {
415
- "name": "withdrawor",
416
- "writable": true
417
- },
418
- {
419
- "name": "proxy_program",
420
- "address": "aSTRM2NKoKxNnkmLWk9sz3k74gKBk9t7bpPrTGxMszH"
421
- },
422
- {
423
- "name": "streamflow_program",
424
- "address": "strmRqUCoQUgGUan5YhzUZa6KqdzwX5L6FpUxfmKg5m"
425
- },
426
- {
427
- "name": "fee_oracle"
428
- },
429
- {
430
- "name": "rent",
431
- "docs": [
432
- "Rent account required by streamflow protocol"
433
- ],
434
- "address": "SysvarRent111111111111111111111111111111111"
435
- },
436
- {
437
- "name": "associated_token_program",
438
- "docs": [
439
- "The [Associated Token] program."
440
- ],
441
- "address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL"
442
- },
443
- {
444
- "name": "token_program",
445
- "docs": [
446
- "The [Token] program."
447
- ]
448
- },
449
- {
450
- "name": "system_program",
451
- "docs": [
452
- "The [System] program."
453
- ],
454
- "address": "11111111111111111111111111111111"
455
- }
456
- ],
457
- "args": []
83
+ "name": "payer",
84
+ "docs": ["Rent payer"],
85
+ "writable": true,
86
+ "signer": true
458
87
  },
459
88
  {
460
- "name": "claim_deposits",
461
- "docs": [
462
- "Claim deposited funds to pre-configured `receiver` account"
463
- ],
464
- "discriminator": [
465
- 69,
466
- 159,
467
- 225,
468
- 170,
469
- 28,
470
- 44,
471
- 76,
472
- 102
473
- ],
474
- "accounts": [
475
- {
476
- "name": "launchpad",
477
- "docs": [
478
- "[Launchpad]."
479
- ],
480
- "writable": true
481
- },
482
- {
483
- "name": "receiver",
484
- "docs": [
485
- "Deposits receiver token account"
486
- ],
487
- "writable": true,
488
- "relations": [
489
- "launchpad"
490
- ]
491
- },
492
- {
493
- "name": "vault",
494
- "docs": [
495
- "Launchpad Vault that stores deposited tokens"
496
- ],
497
- "writable": true,
498
- "relations": [
499
- "launchpad"
500
- ]
501
- },
502
- {
503
- "name": "authority",
504
- "docs": [
505
- "Launchpad authority"
506
- ],
507
- "writable": true,
508
- "signer": true
509
- },
510
- {
511
- "name": "quote_mint",
512
- "docs": [
513
- "Quote Mint of the Launchpad"
514
- ],
515
- "relations": [
516
- "launchpad"
517
- ]
518
- },
519
- {
520
- "name": "token_program",
521
- "docs": [
522
- "The [Token] program."
523
- ]
524
- }
525
- ],
526
- "args": []
89
+ "name": "owner"
527
90
  },
528
91
  {
529
- "name": "create_launchpad",
530
- "docs": [
531
- "Create new Launchpad for `base_mint` <-> `quote_mint` pair"
532
- ],
533
- "discriminator": [
534
- 193,
535
- 189,
536
- 26,
537
- 187,
538
- 44,
539
- 137,
540
- 43,
541
- 190
542
- ],
543
- "accounts": [
544
- {
545
- "name": "launchpad",
546
- "docs": [
547
- "[Launchpad]."
548
- ],
549
- "writable": true,
550
- "pda": {
551
- "seeds": [
552
- {
553
- "kind": "const",
554
- "value": [
555
- 108,
556
- 97,
557
- 117,
558
- 110,
559
- 99,
560
- 104,
561
- 112,
562
- 97,
563
- 100
564
- ]
565
- },
566
- {
567
- "kind": "account",
568
- "path": "base_mint"
569
- },
570
- {
571
- "kind": "arg",
572
- "path": "ix.nonce"
573
- }
574
- ]
575
- }
576
- },
577
- {
578
- "name": "vault",
579
- "docs": [
580
- "Escrow Account that will store deposits"
581
- ],
582
- "writable": true,
583
- "pda": {
584
- "seeds": [
585
- {
586
- "kind": "const",
587
- "value": [
588
- 118,
589
- 97,
590
- 117,
591
- 108,
592
- 116
593
- ]
594
- },
595
- {
596
- "kind": "account",
597
- "path": "launchpad"
598
- }
599
- ]
600
- }
601
- },
602
- {
603
- "name": "base_mint",
604
- "docs": [
605
- "Base Mint of the Launchpad"
606
- ]
607
- },
608
- {
609
- "name": "quote_mint",
610
- "docs": [
611
- "Quote Mint for deposits"
612
- ]
613
- },
614
- {
615
- "name": "price_oracle"
616
- },
617
- {
618
- "name": "authority",
619
- "docs": [
620
- "Admin wallet, responsible for creating the launchpad and paying for the transaction.",
621
- "Also is the authority"
622
- ],
623
- "writable": true,
624
- "signer": true
625
- },
626
- {
627
- "name": "receiver",
628
- "docs": [
629
- "Deposits receiver token account"
630
- ],
631
- "writable": true
632
- },
633
- {
634
- "name": "system_program",
635
- "docs": [
636
- "The [System] program."
637
- ],
638
- "address": "11111111111111111111111111111111"
639
- },
640
- {
641
- "name": "token_program",
642
- "docs": [
643
- "The [Token] program."
644
- ]
645
- }
646
- ],
647
- "args": [
648
- {
649
- "name": "ix",
650
- "type": {
651
- "defined": {
652
- "name": "CreateLaunchpadIx"
653
- }
654
- }
655
- }
656
- ]
92
+ "name": "base_mint",
93
+ "docs": ["Base Mint of the Launchpad"],
94
+ "relations": ["launchpad"]
657
95
  },
658
96
  {
659
- "name": "deposit",
660
- "docs": [
661
- "Deposit funds to receive allocation"
662
- ],
663
- "discriminator": [
664
- 242,
665
- 35,
666
- 198,
667
- 137,
668
- 82,
669
- 225,
670
- 242,
671
- 182
97
+ "name": "system_program",
98
+ "docs": ["The [System] program."],
99
+ "address": "11111111111111111111111111111111"
100
+ },
101
+ {
102
+ "name": "associated_token_program",
103
+ "docs": ["The [Associated Token] program."],
104
+ "address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL"
105
+ },
106
+ {
107
+ "name": "token_program",
108
+ "docs": ["The [Token] program."]
109
+ }
110
+ ],
111
+ "args": []
112
+ },
113
+ {
114
+ "name": "claim_allocated_vested",
115
+ "docs": ["Claim allocated funds in a vested manner in case vesting schedule has been set"],
116
+ "discriminator": [14, 116, 137, 52, 178, 218, 187, 229],
117
+ "accounts": [
118
+ {
119
+ "name": "launchpad",
120
+ "docs": ["[Launchpad]."],
121
+ "writable": true,
122
+ "relations": ["deposit_account"]
123
+ },
124
+ {
125
+ "name": "deposit_account",
126
+ "docs": ["Reward Entry that stores metadata about claimed rewards"],
127
+ "writable": true
128
+ },
129
+ {
130
+ "name": "from",
131
+ "docs": ["Vault that stores Base tokens"],
132
+ "writable": true,
133
+ "pda": {
134
+ "seeds": [
135
+ {
136
+ "kind": "account",
137
+ "path": "launchpad"
138
+ },
139
+ {
140
+ "kind": "account",
141
+ "path": "token_program"
142
+ },
143
+ {
144
+ "kind": "account",
145
+ "path": "base_mint"
146
+ }
672
147
  ],
673
- "accounts": [
674
- {
675
- "name": "launchpad",
676
- "docs": [
677
- "[Launchpad]."
678
- ],
679
- "writable": true
680
- },
681
- {
682
- "name": "deposit_account",
683
- "docs": [
684
- "Reward Entry that stores metadata about claimed rewards"
685
- ],
686
- "writable": true,
687
- "pda": {
688
- "seeds": [
689
- {
690
- "kind": "const",
691
- "value": [
692
- 100,
693
- 101,
694
- 112,
695
- 111,
696
- 115,
697
- 105,
698
- 116
699
- ]
700
- },
701
- {
702
- "kind": "account",
703
- "path": "launchpad"
704
- },
705
- {
706
- "kind": "account",
707
- "path": "owner"
708
- }
709
- ]
710
- }
711
- },
712
- {
713
- "name": "from",
714
- "docs": [
715
- "Token Account from which stake tokens will be transferred"
716
- ],
717
- "writable": true
718
- },
719
- {
720
- "name": "vault",
721
- "docs": [
722
- "Stake Pool Vault that stores staked tokens"
723
- ],
724
- "writable": true,
725
- "relations": [
726
- "launchpad"
727
- ]
728
- },
729
- {
730
- "name": "payer",
731
- "docs": [
732
- "Rent payer"
733
- ],
734
- "writable": true,
735
- "signer": true
736
- },
737
- {
738
- "name": "owner"
739
- },
740
- {
741
- "name": "base_mint",
742
- "docs": [
743
- "Base Mint of the Launchpad"
744
- ],
745
- "relations": [
746
- "launchpad"
747
- ]
748
- },
749
- {
750
- "name": "quote_mint",
751
- "docs": [
752
- "Quote Mint of the Launchpad"
753
- ],
754
- "relations": [
755
- "launchpad"
756
- ]
757
- },
758
- {
759
- "name": "system_program",
760
- "docs": [
761
- "The [System] program."
762
- ],
763
- "address": "11111111111111111111111111111111"
764
- },
765
- {
766
- "name": "token_program",
767
- "docs": [
768
- "The [Token] program."
769
- ]
770
- }
148
+ "program": {
149
+ "kind": "const",
150
+ "value": [
151
+ 140, 151, 37, 143, 78, 36, 137, 241, 187, 61, 16, 41, 20, 142, 13, 131, 11, 90, 19, 153, 218, 255, 16,
152
+ 132, 4, 142, 123, 216, 219, 233, 248, 89
153
+ ]
154
+ }
155
+ }
156
+ },
157
+ {
158
+ "name": "to",
159
+ "docs": ["Token Account to which tokens will be vested"],
160
+ "writable": true,
161
+ "pda": {
162
+ "seeds": [
163
+ {
164
+ "kind": "account",
165
+ "path": "owner"
166
+ },
167
+ {
168
+ "kind": "account",
169
+ "path": "token_program"
170
+ },
171
+ {
172
+ "kind": "account",
173
+ "path": "base_mint"
174
+ }
771
175
  ],
772
- "args": [
773
- {
774
- "name": "ix",
775
- "type": {
776
- "defined": {
777
- "name": "DepositIx"
778
- }
779
- }
780
- }
781
- ]
782
- }
783
- ],
784
- "accounts": [
176
+ "program": {
177
+ "kind": "const",
178
+ "value": [
179
+ 140, 151, 37, 143, 78, 36, 137, 241, 187, 61, 16, 41, 20, 142, 13, 131, 11, 90, 19, 153, 218, 255, 16,
180
+ 132, 4, 142, 123, 216, 219, 233, 248, 89
181
+ ]
182
+ }
183
+ }
184
+ },
785
185
  {
786
- "name": "DepositAccount",
787
- "discriminator": [
788
- 148,
789
- 37,
790
- 207,
791
- 116,
792
- 61,
793
- 33,
794
- 53,
795
- 179
796
- ]
186
+ "name": "payer",
187
+ "docs": ["Rent payer"],
188
+ "writable": true,
189
+ "signer": true
797
190
  },
798
191
  {
799
- "name": "Launchpad",
800
- "discriminator": [
801
- 247,
802
- 20,
803
- 16,
804
- 242,
805
- 203,
806
- 38,
807
- 169,
808
- 160
809
- ]
810
- }
811
- ],
812
- "errors": [
192
+ "name": "owner",
193
+ "relations": ["deposit_account"]
194
+ },
813
195
  {
814
- "code": 6000,
815
- "name": "Unauthorized",
816
- "msg": "Authority does not have permission for this action"
196
+ "name": "base_mint",
197
+ "docs": ["Base Mint of the Launchpad"],
198
+ "relations": ["launchpad"]
817
199
  },
818
200
  {
819
- "code": 6001,
820
- "name": "ArithmeticError",
821
- "msg": "Arithmetic error"
201
+ "name": "price_oracle",
202
+ "relations": ["launchpad"]
822
203
  },
823
204
  {
824
- "code": 6002,
825
- "name": "InvalidMemo",
826
- "msg": "Provided memo is invalid or not provided"
205
+ "name": "authority",
206
+ "relations": ["launchpad"]
827
207
  },
828
208
  {
829
- "code": 6003,
830
- "name": "InvalidParams",
831
- "msg": "Invalid Parameters provided"
209
+ "name": "proxy_metadata",
210
+ "writable": true
832
211
  },
833
212
  {
834
- "code": 6004,
835
- "name": "InvalidBaseMint",
836
- "msg": "Invalid Base Mint"
213
+ "name": "proxy_tokens",
214
+ "docs": ["Vault that stores Base tokens"],
215
+ "writable": true
837
216
  },
838
217
  {
839
- "code": 6005,
840
- "name": "InvalidQuoteMint",
841
- "msg": "Invalid Quote Mint"
218
+ "name": "stream_metadata",
219
+ "writable": true,
220
+ "signer": true
842
221
  },
843
222
  {
844
- "code": 6006,
845
- "name": "InvalidVault",
846
- "msg": "Invalid Vault"
223
+ "name": "escrow_tokens",
224
+ "writable": true
847
225
  },
848
226
  {
849
- "code": 6007,
850
- "name": "InvalidLaunchpad",
851
- "msg": "Invalid Launchpad"
227
+ "name": "withdrawor",
228
+ "writable": true
852
229
  },
853
230
  {
854
- "code": 6008,
855
- "name": "InvalidReceiver",
856
- "msg": "Invalid Receiver provided"
231
+ "name": "proxy_program",
232
+ "address": "aSTRM2NKoKxNnkmLWk9sz3k74gKBk9t7bpPrTGxMszH"
857
233
  },
858
234
  {
859
- "code": 6009,
860
- "name": "DepositingNotStarted",
861
- "msg": "Depositing has not started yet"
235
+ "name": "streamflow_program",
236
+ "address": "strmRqUCoQUgGUan5YhzUZa6KqdzwX5L6FpUxfmKg5m"
862
237
  },
863
238
  {
864
- "code": 6010,
865
- "name": "DepositingEnded",
866
- "msg": "Depositing period has ended"
239
+ "name": "fee_oracle"
867
240
  },
868
241
  {
869
- "code": 6011,
870
- "name": "LaunchpadCancelled",
871
- "msg": "Launchpad has been cancelled"
242
+ "name": "rent",
243
+ "docs": ["Rent account required by streamflow protocol"],
244
+ "address": "SysvarRent111111111111111111111111111111111"
872
245
  },
873
246
  {
874
- "code": 6012,
875
- "name": "AmountMoreThanIndividualCap",
876
- "msg": "Deposit amount is more than Individual Cap"
247
+ "name": "associated_token_program",
248
+ "docs": ["The [Associated Token] program."],
249
+ "address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL"
877
250
  },
878
251
  {
879
- "code": 6013,
880
- "name": "AmountMoreThanMaxCap",
881
- "msg": "Deposit amount is more than Max Cap"
252
+ "name": "token_program",
253
+ "docs": ["The [Token] program."]
882
254
  },
883
255
  {
884
- "code": 6014,
885
- "name": "DepositingNotEnded",
886
- "msg": "Depositing period has not ended yet"
256
+ "name": "system_program",
257
+ "docs": ["The [System] program."],
258
+ "address": "11111111111111111111111111111111"
259
+ }
260
+ ],
261
+ "args": []
262
+ },
263
+ {
264
+ "name": "claim_deposits",
265
+ "docs": ["Claim deposited funds to pre-configured `receiver` account"],
266
+ "discriminator": [69, 159, 225, 170, 28, 44, 76, 102],
267
+ "accounts": [
268
+ {
269
+ "name": "launchpad",
270
+ "docs": ["[Launchpad]."],
271
+ "writable": true
887
272
  },
888
273
  {
889
- "code": 6015,
890
- "name": "DepositsAlreadyClaimed",
891
- "msg": "Deposits has been already claimed"
274
+ "name": "receiver",
275
+ "docs": ["Deposits receiver token account"],
276
+ "writable": true,
277
+ "relations": ["launchpad"]
892
278
  },
893
279
  {
894
- "code": 6016,
895
- "name": "VestingNotStarted",
896
- "msg": "Vesting period has not started yet"
280
+ "name": "vault",
281
+ "docs": ["Launchpad Vault that stores deposited tokens"],
282
+ "writable": true,
283
+ "relations": ["launchpad"]
897
284
  },
898
285
  {
899
- "code": 6017,
900
- "name": "VestingAlreadyClaimed",
901
- "msg": "Allocated amount has been claimed already"
286
+ "name": "authority",
287
+ "docs": ["Launchpad authority"],
288
+ "writable": true,
289
+ "signer": true
902
290
  },
903
291
  {
904
- "code": 6018,
905
- "name": "InstantClaimNotAllowed",
906
- "msg": "Instant claiming not allowed"
292
+ "name": "quote_mint",
293
+ "docs": ["Quote Mint of the Launchpad"],
294
+ "relations": ["launchpad"]
907
295
  },
908
296
  {
909
- "code": 6019,
910
- "name": "VestedClaimNotAllowed",
911
- "msg": "Vested claiming not allowed"
297
+ "name": "token_program",
298
+ "docs": ["The [Token] program."]
299
+ }
300
+ ],
301
+ "args": []
302
+ },
303
+ {
304
+ "name": "create_launchpad",
305
+ "docs": ["Create new Launchpad for `base_mint` <-> `quote_mint` pair"],
306
+ "discriminator": [193, 189, 26, 187, 44, 137, 43, 190],
307
+ "accounts": [
308
+ {
309
+ "name": "launchpad",
310
+ "docs": ["[Launchpad]."],
311
+ "writable": true,
312
+ "pda": {
313
+ "seeds": [
314
+ {
315
+ "kind": "const",
316
+ "value": [108, 97, 117, 110, 99, 104, 112, 97, 100]
317
+ },
318
+ {
319
+ "kind": "account",
320
+ "path": "base_mint"
321
+ },
322
+ {
323
+ "kind": "arg",
324
+ "path": "ix.nonce"
325
+ }
326
+ ]
327
+ }
328
+ },
329
+ {
330
+ "name": "vault",
331
+ "docs": ["Escrow Account that will store deposits"],
332
+ "writable": true,
333
+ "pda": {
334
+ "seeds": [
335
+ {
336
+ "kind": "const",
337
+ "value": [118, 97, 117, 108, 116]
338
+ },
339
+ {
340
+ "kind": "account",
341
+ "path": "launchpad"
342
+ }
343
+ ]
344
+ }
912
345
  },
913
346
  {
914
- "code": 6020,
915
- "name": "VestingCantBeClaimed",
916
- "msg": "Vested can't be claimed after it started"
347
+ "name": "base_mint",
348
+ "docs": ["Base Mint of the Launchpad"]
349
+ },
350
+ {
351
+ "name": "quote_mint",
352
+ "docs": ["Quote Mint for deposits"]
353
+ },
354
+ {
355
+ "name": "price_oracle"
356
+ },
357
+ {
358
+ "name": "authority",
359
+ "docs": [
360
+ "Admin wallet, responsible for creating the launchpad and paying for the transaction.",
361
+ "Also is the authority"
362
+ ],
363
+ "writable": true,
364
+ "signer": true
365
+ },
366
+ {
367
+ "name": "receiver",
368
+ "docs": ["Deposits receiver token account"],
369
+ "writable": true
370
+ },
371
+ {
372
+ "name": "system_program",
373
+ "docs": ["The [System] program."],
374
+ "address": "11111111111111111111111111111111"
375
+ },
376
+ {
377
+ "name": "token_program",
378
+ "docs": ["The [Token] program."]
917
379
  }
918
- ],
919
- "types": [
380
+ ],
381
+ "args": [
920
382
  {
921
- "name": "CreateLaunchpadIx",
922
- "type": {
923
- "kind": "struct",
924
- "fields": [
925
- {
926
- "name": "nonce",
927
- "type": "u8"
928
- },
929
- {
930
- "name": "price",
931
- "docs": [
932
- "Price in `quote_mint` decimal value for every whole `base_mint` token"
933
- ],
934
- "type": "u64"
935
- },
936
- {
937
- "name": "individual_depositing_cap",
938
- "docs": [
939
- "Individual Depositing Cap in `quote_mint` Tokens"
940
- ],
941
- "type": "u64"
942
- },
943
- {
944
- "name": "max_depositing_cap",
945
- "docs": [
946
- "Max Depositing Cap in `quote_mint` Tokens"
947
- ],
948
- "type": "u64"
949
- },
950
- {
951
- "name": "depositing_start_ts",
952
- "docs": [
953
- "When depositing should start"
954
- ],
955
- "type": "u64"
956
- },
957
- {
958
- "name": "depositing_end_ts",
959
- "docs": [
960
- "When depositing should end"
961
- ],
962
- "type": "u64"
963
- },
964
- {
965
- "name": "vesting_start_ts",
966
- "docs": [
967
- "When vesting contract start time should be"
968
- ],
969
- "type": "u64"
970
- },
971
- {
972
- "name": "vesting_period",
973
- "docs": [
974
- "Vesting release period in seconds"
975
- ],
976
- "type": "u64"
977
- },
978
- {
979
- "name": "vesting_end_ts",
980
- "docs": [
981
- "When vesting contract end time should be"
982
- ],
983
- "type": "u64"
984
- },
985
- {
986
- "name": "min_price",
987
- "docs": [
988
- "Min price for dynamic vesting"
989
- ],
990
- "type": "u64"
991
- },
992
- {
993
- "name": "max_price",
994
- "docs": [
995
- "Max price for dynamic vesting"
996
- ],
997
- "type": "u64"
998
- },
999
- {
1000
- "name": "min_percentage",
1001
- "docs": [
1002
- "Min percentage for dynamic vesting"
1003
- ],
1004
- "type": "u64"
1005
- },
1006
- {
1007
- "name": "max_percentage",
1008
- "docs": [
1009
- "Max percentage for dynamic vesting"
1010
- ],
1011
- "type": "u64"
1012
- },
1013
- {
1014
- "name": "tick_size",
1015
- "docs": [
1016
- "Size of the tick in dynamic vesting"
1017
- ],
1018
- "type": "u64"
1019
- },
1020
- {
1021
- "name": "skip_initial",
1022
- "docs": [
1023
- "Whether to skip initial calculation of amount per period in dynamic vesting"
1024
- ],
1025
- "type": "bool"
1026
- },
1027
- {
1028
- "name": "oracle_type",
1029
- "docs": [
1030
- "Type of Oracle to use to derive Token Price"
1031
- ],
1032
- "type": {
1033
- "defined": {
1034
- "name": "OracleType"
1035
- }
1036
- }
1037
- },
1038
- {
1039
- "name": "is_memo_required",
1040
- "docs": [
1041
- "Whether to require memo on deposit"
1042
- ],
1043
- "type": "bool"
1044
- }
1045
- ]
383
+ "name": "ix",
384
+ "type": {
385
+ "defined": {
386
+ "name": "CreateLaunchpadIx"
1046
387
  }
388
+ }
389
+ }
390
+ ]
391
+ },
392
+ {
393
+ "name": "deposit",
394
+ "docs": ["Deposit funds to receive allocation"],
395
+ "discriminator": [242, 35, 198, 137, 82, 225, 242, 182],
396
+ "accounts": [
397
+ {
398
+ "name": "launchpad",
399
+ "docs": ["[Launchpad]."],
400
+ "writable": true
401
+ },
402
+ {
403
+ "name": "deposit_account",
404
+ "docs": ["Reward Entry that stores metadata about claimed rewards"],
405
+ "writable": true,
406
+ "pda": {
407
+ "seeds": [
408
+ {
409
+ "kind": "const",
410
+ "value": [100, 101, 112, 111, 115, 105, 116]
411
+ },
412
+ {
413
+ "kind": "account",
414
+ "path": "launchpad"
415
+ },
416
+ {
417
+ "kind": "account",
418
+ "path": "owner"
419
+ }
420
+ ]
421
+ }
1047
422
  },
1048
423
  {
1049
- "name": "DepositAccount",
1050
- "type": {
1051
- "kind": "struct",
1052
- "fields": [
1053
- {
1054
- "name": "launchpad",
1055
- "docs": [
1056
- "Launchpad to which deposit belongs"
1057
- ],
1058
- "type": "pubkey"
1059
- },
1060
- {
1061
- "name": "owner",
1062
- "docs": [
1063
- "Deposit owner"
1064
- ],
1065
- "type": "pubkey"
1066
- },
1067
- {
1068
- "name": "amount",
1069
- "docs": [
1070
- "Amount of funds deposited in `quote_mint`"
1071
- ],
1072
- "type": "u64"
1073
- },
1074
- {
1075
- "name": "allocated_amount",
1076
- "docs": [
1077
- "Amount allocated according to amount deposited"
1078
- ],
1079
- "type": "u64"
1080
- },
1081
- {
1082
- "name": "created_ts",
1083
- "docs": [
1084
- "Time when deposit was done initially"
1085
- ],
1086
- "type": "u64"
1087
- },
1088
- {
1089
- "name": "claimed_ts",
1090
- "docs": [
1091
- "Time when `allocated_amount` was claimed"
1092
- ],
1093
- "type": "u64"
1094
- },
1095
- {
1096
- "name": "_buffer",
1097
- "docs": [
1098
- "Buffer for additional fields"
1099
- ],
1100
- "type": {
1101
- "array": [
1102
- "u8",
1103
- 64
1104
- ]
1105
- }
1106
- }
1107
- ]
1108
- }
424
+ "name": "from",
425
+ "docs": ["Token Account from which stake tokens will be transferred"],
426
+ "writable": true
1109
427
  },
1110
428
  {
1111
- "name": "DepositIx",
1112
- "type": {
1113
- "kind": "struct",
1114
- "fields": [
1115
- {
1116
- "name": "amount",
1117
- "docs": [
1118
- "Amount to deposit into the launchpad"
1119
- ],
1120
- "type": "u64"
1121
- },
1122
- {
1123
- "name": "auto_cap",
1124
- "docs": [
1125
- "Whether to allow automatically cap the amount in case amount exceeds `max_depositing_cap`"
1126
- ],
1127
- "type": "bool"
1128
- }
1129
- ]
1130
- }
429
+ "name": "vault",
430
+ "docs": ["Stake Pool Vault that stores staked tokens"],
431
+ "writable": true,
432
+ "relations": ["launchpad"]
1131
433
  },
1132
434
  {
1133
- "name": "Launchpad",
1134
- "type": {
1135
- "kind": "struct",
1136
- "fields": [
1137
- {
1138
- "name": "bump",
1139
- "docs": [
1140
- "Bump Seed used to sign transactions"
1141
- ],
1142
- "type": "u8"
1143
- },
1144
- {
1145
- "name": "nonce",
1146
- "docs": [
1147
- "Nonce to differentiate pools for the same mint"
1148
- ],
1149
- "type": "u8"
1150
- },
1151
- {
1152
- "name": "_filler",
1153
- "docs": [
1154
- "Filler to account for alignment"
1155
- ],
1156
- "type": {
1157
- "array": [
1158
- "u8",
1159
- 6
1160
- ]
1161
- }
1162
- },
1163
- {
1164
- "name": "base_mint",
1165
- "docs": [
1166
- "Mint of the Launchpad Token"
1167
- ],
1168
- "type": "pubkey"
1169
- },
1170
- {
1171
- "name": "quote_mint",
1172
- "docs": [
1173
- "Mint of the Token to exchange base mint to"
1174
- ],
1175
- "type": "pubkey"
1176
- },
1177
- {
1178
- "name": "authority",
1179
- "docs": [
1180
- "Current authority"
1181
- ],
1182
- "type": "pubkey"
1183
- },
1184
- {
1185
- "name": "receiver",
1186
- "docs": [
1187
- "Token account that should receive deposits after launchpad deposits end"
1188
- ],
1189
- "type": "pubkey"
1190
- },
1191
- {
1192
- "name": "price_oracle",
1193
- "docs": [
1194
- "Oracle account for price deriviation in vesting"
1195
- ],
1196
- "type": "pubkey"
1197
- },
1198
- {
1199
- "name": "vault",
1200
- "docs": [
1201
- "Escrow Account that stores deposited tokens"
1202
- ],
1203
- "type": "pubkey"
1204
- },
1205
- {
1206
- "name": "config",
1207
- "docs": [
1208
- "Configuration"
1209
- ],
1210
- "type": {
1211
- "defined": {
1212
- "name": "LaunchpadConfig"
1213
- }
1214
- }
1215
- },
1216
- {
1217
- "name": "vesting_config",
1218
- "docs": [
1219
- "Vesting Configuration"
1220
- ],
1221
- "type": {
1222
- "defined": {
1223
- "name": "VestingConfig"
1224
- }
1225
- }
1226
- },
1227
- {
1228
- "name": "state",
1229
- "docs": [
1230
- "Current state of the Launchpad"
1231
- ],
1232
- "type": {
1233
- "defined": {
1234
- "name": "LaunchpadState"
1235
- }
1236
- }
1237
- },
1238
- {
1239
- "name": "_buffer",
1240
- "docs": [
1241
- "Buffer for additional fields"
1242
- ],
1243
- "type": {
1244
- "array": [
1245
- "u8",
1246
- 64
1247
- ]
1248
- }
1249
- }
1250
- ]
1251
- }
435
+ "name": "payer",
436
+ "docs": ["Rent payer"],
437
+ "writable": true,
438
+ "signer": true
1252
439
  },
1253
440
  {
1254
- "name": "LaunchpadConfig",
1255
- "type": {
1256
- "kind": "struct",
1257
- "fields": [
1258
- {
1259
- "name": "price",
1260
- "docs": [
1261
- "Price in `quote_mint` decimal value for every whole `base_mint` token"
1262
- ],
1263
- "type": "u64"
1264
- },
1265
- {
1266
- "name": "individual_depositing_cap",
1267
- "docs": [
1268
- "Individual Depositing Cap in `quote_mint` Tokens"
1269
- ],
1270
- "type": "u64"
1271
- },
1272
- {
1273
- "name": "max_depositing_cap",
1274
- "docs": [
1275
- "Max Depositing Cap in `quote_mint` Tokens"
1276
- ],
1277
- "type": "u64"
1278
- },
1279
- {
1280
- "name": "depositing_start_ts",
1281
- "docs": [
1282
- "When depositing should start"
1283
- ],
1284
- "type": "u64"
1285
- },
1286
- {
1287
- "name": "depositing_end_ts",
1288
- "docs": [
1289
- "When depositing should end"
1290
- ],
1291
- "type": "u64"
1292
- },
1293
- {
1294
- "name": "is_memo_required",
1295
- "docs": [
1296
- "Whether to require memo on deposit"
1297
- ],
1298
- "type": "bool"
1299
- }
1300
- ]
1301
- }
441
+ "name": "owner"
1302
442
  },
1303
443
  {
1304
- "name": "LaunchpadState",
1305
- "type": {
1306
- "kind": "struct",
1307
- "fields": [
1308
- {
1309
- "name": "total_deposited_amount",
1310
- "docs": [
1311
- "Total amount of `quote_mint` tokens deposited"
1312
- ],
1313
- "type": "u64"
1314
- },
1315
- {
1316
- "name": "total_deposited_users",
1317
- "docs": [
1318
- "Total amount of users who deposited tokens"
1319
- ],
1320
- "type": "u64"
1321
- },
1322
- {
1323
- "name": "total_claimed_users",
1324
- "docs": [
1325
- "Number of users who have claimed `base_mint` tokens already"
1326
- ],
1327
- "type": "u64"
1328
- },
1329
- {
1330
- "name": "created_ts",
1331
- "docs": [
1332
- "Time when Launchpad was created"
1333
- ],
1334
- "type": "u64"
1335
- },
1336
- {
1337
- "name": "claimed_ts",
1338
- "docs": [
1339
- "Time when deposits where claimed to authority token account"
1340
- ],
1341
- "type": "u64"
1342
- },
1343
- {
1344
- "name": "cancelled_ts",
1345
- "docs": [
1346
- "Time when Launchpad was cancelled, makes withdrawals possible"
1347
- ],
1348
- "type": "u64"
1349
- },
1350
- {
1351
- "name": "_buffer",
1352
- "docs": [
1353
- "Buffer for additional fields"
1354
- ],
1355
- "type": {
1356
- "array": [
1357
- "u8",
1358
- 32
1359
- ]
1360
- }
1361
- }
1362
- ]
1363
- }
444
+ "name": "base_mint",
445
+ "docs": ["Base Mint of the Launchpad"],
446
+ "relations": ["launchpad"]
1364
447
  },
1365
448
  {
1366
- "name": "OracleType",
1367
- "type": {
1368
- "kind": "enum",
1369
- "variants": [
1370
- {
1371
- "name": "None"
1372
- },
1373
- {
1374
- "name": "Test"
1375
- },
1376
- {
1377
- "name": "Pyth"
1378
- },
1379
- {
1380
- "name": "Switchboard"
1381
- }
1382
- ]
1383
- }
449
+ "name": "quote_mint",
450
+ "docs": ["Quote Mint of the Launchpad"],
451
+ "relations": ["launchpad"]
1384
452
  },
1385
453
  {
1386
- "name": "VestingConfig",
1387
- "type": {
1388
- "kind": "struct",
1389
- "fields": [
1390
- {
1391
- "name": "start_ts",
1392
- "docs": [
1393
- "When vesting contract start time should be"
1394
- ],
1395
- "type": "u64"
1396
- },
1397
- {
1398
- "name": "period",
1399
- "docs": [
1400
- "Vesting unlock/update period in seconds"
1401
- ],
1402
- "type": "u64"
1403
- },
1404
- {
1405
- "name": "end_ts",
1406
- "docs": [
1407
- "When vesting contract end time should be"
1408
- ],
1409
- "type": "u64"
1410
- },
1411
- {
1412
- "name": "min_price",
1413
- "docs": [
1414
- "Min price boundary"
1415
- ],
1416
- "type": "u64"
1417
- },
1418
- {
1419
- "name": "max_price",
1420
- "docs": [
1421
- "Max price boundary"
1422
- ],
1423
- "type": "u64"
1424
- },
1425
- {
1426
- "name": "min_percentage",
1427
- "docs": [
1428
- "Min percentage boundary, can be 0 that equals 1 Raw Token"
1429
- ],
1430
- "type": "u64"
1431
- },
1432
- {
1433
- "name": "max_percentage",
1434
- "docs": [
1435
- "Max percentage boundary"
1436
- ],
1437
- "type": "u64"
1438
- },
1439
- {
1440
- "name": "tick_size",
1441
- "docs": [
1442
- "Ticket size for percentage boundaries"
1443
- ],
1444
- "type": "u64"
1445
- },
1446
- {
1447
- "name": "skip_initial",
1448
- "docs": [
1449
- "Whether to skip initial calculation of amount per period"
1450
- ],
1451
- "type": "bool"
1452
- },
1453
- {
1454
- "name": "oracle_type",
1455
- "docs": [
1456
- "Type of Oracle to use to derive Token Price"
1457
- ],
1458
- "type": {
1459
- "defined": {
1460
- "name": "OracleType"
1461
- }
1462
- }
1463
- }
1464
- ]
454
+ "name": "system_program",
455
+ "docs": ["The [System] program."],
456
+ "address": "11111111111111111111111111111111"
457
+ },
458
+ {
459
+ "name": "token_program",
460
+ "docs": ["The [Token] program."]
461
+ }
462
+ ],
463
+ "args": [
464
+ {
465
+ "name": "ix",
466
+ "type": {
467
+ "defined": {
468
+ "name": "DepositIx"
1465
469
  }
470
+ }
1466
471
  }
1467
- ]
472
+ ]
473
+ }
474
+ ],
475
+ "accounts": [
476
+ {
477
+ "name": "DepositAccount",
478
+ "discriminator": [148, 37, 207, 116, 61, 33, 53, 179]
479
+ },
480
+ {
481
+ "name": "Launchpad",
482
+ "discriminator": [247, 20, 16, 242, 203, 38, 169, 160]
483
+ }
484
+ ],
485
+ "errors": [
486
+ {
487
+ "code": 6000,
488
+ "name": "Unauthorized",
489
+ "msg": "Authority does not have permission for this action"
490
+ },
491
+ {
492
+ "code": 6001,
493
+ "name": "ArithmeticError",
494
+ "msg": "Arithmetic error"
495
+ },
496
+ {
497
+ "code": 6002,
498
+ "name": "InvalidMemo",
499
+ "msg": "Provided memo is invalid or not provided"
500
+ },
501
+ {
502
+ "code": 6003,
503
+ "name": "InvalidParams",
504
+ "msg": "Invalid Parameters provided"
505
+ },
506
+ {
507
+ "code": 6004,
508
+ "name": "InvalidBaseMint",
509
+ "msg": "Invalid Base Mint"
510
+ },
511
+ {
512
+ "code": 6005,
513
+ "name": "InvalidQuoteMint",
514
+ "msg": "Invalid Quote Mint"
515
+ },
516
+ {
517
+ "code": 6006,
518
+ "name": "InvalidVault",
519
+ "msg": "Invalid Vault"
520
+ },
521
+ {
522
+ "code": 6007,
523
+ "name": "InvalidLaunchpad",
524
+ "msg": "Invalid Launchpad"
525
+ },
526
+ {
527
+ "code": 6008,
528
+ "name": "InvalidReceiver",
529
+ "msg": "Invalid Receiver provided"
530
+ },
531
+ {
532
+ "code": 6009,
533
+ "name": "DepositingNotStarted",
534
+ "msg": "Depositing has not started yet"
535
+ },
536
+ {
537
+ "code": 6010,
538
+ "name": "DepositingEnded",
539
+ "msg": "Depositing period has ended"
540
+ },
541
+ {
542
+ "code": 6011,
543
+ "name": "LaunchpadCancelled",
544
+ "msg": "Launchpad has been cancelled"
545
+ },
546
+ {
547
+ "code": 6012,
548
+ "name": "AmountMoreThanIndividualCap",
549
+ "msg": "Deposit amount is more than Individual Cap"
550
+ },
551
+ {
552
+ "code": 6013,
553
+ "name": "AmountMoreThanMaxCap",
554
+ "msg": "Deposit amount is more than Max Cap"
555
+ },
556
+ {
557
+ "code": 6014,
558
+ "name": "DepositingNotEnded",
559
+ "msg": "Depositing period has not ended yet"
560
+ },
561
+ {
562
+ "code": 6015,
563
+ "name": "DepositsAlreadyClaimed",
564
+ "msg": "Deposits has been already claimed"
565
+ },
566
+ {
567
+ "code": 6016,
568
+ "name": "VestingNotStarted",
569
+ "msg": "Vesting period has not started yet"
570
+ },
571
+ {
572
+ "code": 6017,
573
+ "name": "VestingAlreadyClaimed",
574
+ "msg": "Allocated amount has been claimed already"
575
+ },
576
+ {
577
+ "code": 6018,
578
+ "name": "InstantClaimNotAllowed",
579
+ "msg": "Instant claiming not allowed"
580
+ },
581
+ {
582
+ "code": 6019,
583
+ "name": "VestedClaimNotAllowed",
584
+ "msg": "Vested claiming not allowed"
585
+ },
586
+ {
587
+ "code": 6020,
588
+ "name": "VestingCantBeClaimed",
589
+ "msg": "Vested can't be claimed after it started"
590
+ }
591
+ ],
592
+ "types": [
593
+ {
594
+ "name": "CreateLaunchpadIx",
595
+ "type": {
596
+ "kind": "struct",
597
+ "fields": [
598
+ {
599
+ "name": "nonce",
600
+ "type": "u8"
601
+ },
602
+ {
603
+ "name": "price",
604
+ "docs": ["Price in `quote_mint` decimal value for every whole `base_mint` token"],
605
+ "type": "u64"
606
+ },
607
+ {
608
+ "name": "individual_depositing_cap",
609
+ "docs": ["Individual Depositing Cap in `quote_mint` Tokens"],
610
+ "type": "u64"
611
+ },
612
+ {
613
+ "name": "max_depositing_cap",
614
+ "docs": ["Max Depositing Cap in `quote_mint` Tokens"],
615
+ "type": "u64"
616
+ },
617
+ {
618
+ "name": "depositing_start_ts",
619
+ "docs": ["When depositing should start"],
620
+ "type": "u64"
621
+ },
622
+ {
623
+ "name": "depositing_end_ts",
624
+ "docs": ["When depositing should end"],
625
+ "type": "u64"
626
+ },
627
+ {
628
+ "name": "vesting_start_ts",
629
+ "docs": ["When vesting contract start time should be"],
630
+ "type": "u64"
631
+ },
632
+ {
633
+ "name": "vesting_period",
634
+ "docs": ["Vesting release period in seconds"],
635
+ "type": "u64"
636
+ },
637
+ {
638
+ "name": "vesting_end_ts",
639
+ "docs": ["When vesting contract end time should be"],
640
+ "type": "u64"
641
+ },
642
+ {
643
+ "name": "min_price",
644
+ "docs": ["Min price for dynamic vesting"],
645
+ "type": "u64"
646
+ },
647
+ {
648
+ "name": "max_price",
649
+ "docs": ["Max price for dynamic vesting"],
650
+ "type": "u64"
651
+ },
652
+ {
653
+ "name": "min_percentage",
654
+ "docs": ["Min percentage for dynamic vesting"],
655
+ "type": "u64"
656
+ },
657
+ {
658
+ "name": "max_percentage",
659
+ "docs": ["Max percentage for dynamic vesting"],
660
+ "type": "u64"
661
+ },
662
+ {
663
+ "name": "tick_size",
664
+ "docs": ["Size of the tick in dynamic vesting"],
665
+ "type": "u64"
666
+ },
667
+ {
668
+ "name": "skip_initial",
669
+ "docs": ["Whether to skip initial calculation of amount per period in dynamic vesting"],
670
+ "type": "bool"
671
+ },
672
+ {
673
+ "name": "oracle_type",
674
+ "docs": ["Type of Oracle to use to derive Token Price"],
675
+ "type": {
676
+ "defined": {
677
+ "name": "OracleType"
678
+ }
679
+ }
680
+ },
681
+ {
682
+ "name": "is_memo_required",
683
+ "docs": ["Whether to require memo on deposit"],
684
+ "type": "bool"
685
+ }
686
+ ]
687
+ }
688
+ },
689
+ {
690
+ "name": "DepositAccount",
691
+ "type": {
692
+ "kind": "struct",
693
+ "fields": [
694
+ {
695
+ "name": "launchpad",
696
+ "docs": ["Launchpad to which deposit belongs"],
697
+ "type": "pubkey"
698
+ },
699
+ {
700
+ "name": "owner",
701
+ "docs": ["Deposit owner"],
702
+ "type": "pubkey"
703
+ },
704
+ {
705
+ "name": "amount",
706
+ "docs": ["Amount of funds deposited in `quote_mint`"],
707
+ "type": "u64"
708
+ },
709
+ {
710
+ "name": "allocated_amount",
711
+ "docs": ["Amount allocated according to amount deposited"],
712
+ "type": "u64"
713
+ },
714
+ {
715
+ "name": "created_ts",
716
+ "docs": ["Time when deposit was done initially"],
717
+ "type": "u64"
718
+ },
719
+ {
720
+ "name": "claimed_ts",
721
+ "docs": ["Time when `allocated_amount` was claimed"],
722
+ "type": "u64"
723
+ },
724
+ {
725
+ "name": "_buffer",
726
+ "docs": ["Buffer for additional fields"],
727
+ "type": {
728
+ "array": ["u8", 64]
729
+ }
730
+ }
731
+ ]
732
+ }
733
+ },
734
+ {
735
+ "name": "DepositIx",
736
+ "type": {
737
+ "kind": "struct",
738
+ "fields": [
739
+ {
740
+ "name": "amount",
741
+ "docs": ["Amount to deposit into the launchpad"],
742
+ "type": "u64"
743
+ },
744
+ {
745
+ "name": "auto_cap",
746
+ "docs": ["Whether to allow automatically cap the amount in case amount exceeds `max_depositing_cap`"],
747
+ "type": "bool"
748
+ }
749
+ ]
750
+ }
751
+ },
752
+ {
753
+ "name": "Launchpad",
754
+ "type": {
755
+ "kind": "struct",
756
+ "fields": [
757
+ {
758
+ "name": "bump",
759
+ "docs": ["Bump Seed used to sign transactions"],
760
+ "type": "u8"
761
+ },
762
+ {
763
+ "name": "nonce",
764
+ "docs": ["Nonce to differentiate pools for the same mint"],
765
+ "type": "u8"
766
+ },
767
+ {
768
+ "name": "_filler",
769
+ "docs": ["Filler to account for alignment"],
770
+ "type": {
771
+ "array": ["u8", 6]
772
+ }
773
+ },
774
+ {
775
+ "name": "base_mint",
776
+ "docs": ["Mint of the Launchpad Token"],
777
+ "type": "pubkey"
778
+ },
779
+ {
780
+ "name": "quote_mint",
781
+ "docs": ["Mint of the Token to exchange base mint to"],
782
+ "type": "pubkey"
783
+ },
784
+ {
785
+ "name": "authority",
786
+ "docs": ["Current authority"],
787
+ "type": "pubkey"
788
+ },
789
+ {
790
+ "name": "receiver",
791
+ "docs": ["Token account that should receive deposits after launchpad deposits end"],
792
+ "type": "pubkey"
793
+ },
794
+ {
795
+ "name": "price_oracle",
796
+ "docs": ["Oracle account for price deriviation in vesting"],
797
+ "type": "pubkey"
798
+ },
799
+ {
800
+ "name": "vault",
801
+ "docs": ["Escrow Account that stores deposited tokens"],
802
+ "type": "pubkey"
803
+ },
804
+ {
805
+ "name": "config",
806
+ "docs": ["Configuration"],
807
+ "type": {
808
+ "defined": {
809
+ "name": "LaunchpadConfig"
810
+ }
811
+ }
812
+ },
813
+ {
814
+ "name": "vesting_config",
815
+ "docs": ["Vesting Configuration"],
816
+ "type": {
817
+ "defined": {
818
+ "name": "VestingConfig"
819
+ }
820
+ }
821
+ },
822
+ {
823
+ "name": "state",
824
+ "docs": ["Current state of the Launchpad"],
825
+ "type": {
826
+ "defined": {
827
+ "name": "LaunchpadState"
828
+ }
829
+ }
830
+ },
831
+ {
832
+ "name": "_buffer",
833
+ "docs": ["Buffer for additional fields"],
834
+ "type": {
835
+ "array": ["u8", 64]
836
+ }
837
+ }
838
+ ]
839
+ }
840
+ },
841
+ {
842
+ "name": "LaunchpadConfig",
843
+ "type": {
844
+ "kind": "struct",
845
+ "fields": [
846
+ {
847
+ "name": "price",
848
+ "docs": ["Price in `quote_mint` decimal value for every whole `base_mint` token"],
849
+ "type": "u64"
850
+ },
851
+ {
852
+ "name": "individual_depositing_cap",
853
+ "docs": ["Individual Depositing Cap in `quote_mint` Tokens"],
854
+ "type": "u64"
855
+ },
856
+ {
857
+ "name": "max_depositing_cap",
858
+ "docs": ["Max Depositing Cap in `quote_mint` Tokens"],
859
+ "type": "u64"
860
+ },
861
+ {
862
+ "name": "depositing_start_ts",
863
+ "docs": ["When depositing should start"],
864
+ "type": "u64"
865
+ },
866
+ {
867
+ "name": "depositing_end_ts",
868
+ "docs": ["When depositing should end"],
869
+ "type": "u64"
870
+ },
871
+ {
872
+ "name": "is_memo_required",
873
+ "docs": ["Whether to require memo on deposit"],
874
+ "type": "bool"
875
+ }
876
+ ]
877
+ }
878
+ },
879
+ {
880
+ "name": "LaunchpadState",
881
+ "type": {
882
+ "kind": "struct",
883
+ "fields": [
884
+ {
885
+ "name": "total_deposited_amount",
886
+ "docs": ["Total amount of `quote_mint` tokens deposited"],
887
+ "type": "u64"
888
+ },
889
+ {
890
+ "name": "total_deposited_users",
891
+ "docs": ["Total amount of users who deposited tokens"],
892
+ "type": "u64"
893
+ },
894
+ {
895
+ "name": "total_claimed_users",
896
+ "docs": ["Number of users who have claimed `base_mint` tokens already"],
897
+ "type": "u64"
898
+ },
899
+ {
900
+ "name": "created_ts",
901
+ "docs": ["Time when Launchpad was created"],
902
+ "type": "u64"
903
+ },
904
+ {
905
+ "name": "claimed_ts",
906
+ "docs": ["Time when deposits where claimed to authority token account"],
907
+ "type": "u64"
908
+ },
909
+ {
910
+ "name": "cancelled_ts",
911
+ "docs": ["Time when Launchpad was cancelled, makes withdrawals possible"],
912
+ "type": "u64"
913
+ },
914
+ {
915
+ "name": "_buffer",
916
+ "docs": ["Buffer for additional fields"],
917
+ "type": {
918
+ "array": ["u8", 32]
919
+ }
920
+ }
921
+ ]
922
+ }
923
+ },
924
+ {
925
+ "name": "OracleType",
926
+ "type": {
927
+ "kind": "enum",
928
+ "variants": [
929
+ {
930
+ "name": "None"
931
+ },
932
+ {
933
+ "name": "Test"
934
+ },
935
+ {
936
+ "name": "Pyth"
937
+ },
938
+ {
939
+ "name": "Switchboard"
940
+ }
941
+ ]
942
+ }
943
+ },
944
+ {
945
+ "name": "VestingConfig",
946
+ "type": {
947
+ "kind": "struct",
948
+ "fields": [
949
+ {
950
+ "name": "start_ts",
951
+ "docs": ["When vesting contract start time should be"],
952
+ "type": "u64"
953
+ },
954
+ {
955
+ "name": "period",
956
+ "docs": ["Vesting unlock/update period in seconds"],
957
+ "type": "u64"
958
+ },
959
+ {
960
+ "name": "end_ts",
961
+ "docs": ["When vesting contract end time should be"],
962
+ "type": "u64"
963
+ },
964
+ {
965
+ "name": "min_price",
966
+ "docs": ["Min price boundary"],
967
+ "type": "u64"
968
+ },
969
+ {
970
+ "name": "max_price",
971
+ "docs": ["Max price boundary"],
972
+ "type": "u64"
973
+ },
974
+ {
975
+ "name": "min_percentage",
976
+ "docs": ["Min percentage boundary, can be 0 that equals 1 Raw Token"],
977
+ "type": "u64"
978
+ },
979
+ {
980
+ "name": "max_percentage",
981
+ "docs": ["Max percentage boundary"],
982
+ "type": "u64"
983
+ },
984
+ {
985
+ "name": "tick_size",
986
+ "docs": ["Ticket size for percentage boundaries"],
987
+ "type": "u64"
988
+ },
989
+ {
990
+ "name": "skip_initial",
991
+ "docs": ["Whether to skip initial calculation of amount per period"],
992
+ "type": "bool"
993
+ },
994
+ {
995
+ "name": "oracle_type",
996
+ "docs": ["Type of Oracle to use to derive Token Price"],
997
+ "type": {
998
+ "defined": {
999
+ "name": "OracleType"
1000
+ }
1001
+ }
1002
+ }
1003
+ ]
1004
+ }
1005
+ }
1006
+ ]
1468
1007
  }