@streamflow/launchpad 7.5.3-alpha.p284.d53d644 → 7.5.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,1468 @@
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"
14
+ ],
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
+ }
203
+ ],
204
+ "args": []
205
+ },
206
+ {
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": []
458
+ },
459
+ {
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": []
527
+ },
528
+ {
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
+ ]
657
+ },
658
+ {
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
672
+ ],
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
+ }
771
+ ],
772
+ "args": [
773
+ {
774
+ "name": "ix",
775
+ "type": {
776
+ "defined": {
777
+ "name": "DepositIx"
778
+ }
779
+ }
780
+ }
781
+ ]
782
+ }
783
+ ],
784
+ "accounts": [
785
+ {
786
+ "name": "DepositAccount",
787
+ "discriminator": [
788
+ 148,
789
+ 37,
790
+ 207,
791
+ 116,
792
+ 61,
793
+ 33,
794
+ 53,
795
+ 179
796
+ ]
797
+ },
798
+ {
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": [
813
+ {
814
+ "code": 6000,
815
+ "name": "Unauthorized",
816
+ "msg": "Authority does not have permission for this action"
817
+ },
818
+ {
819
+ "code": 6001,
820
+ "name": "ArithmeticError",
821
+ "msg": "Arithmetic error"
822
+ },
823
+ {
824
+ "code": 6002,
825
+ "name": "InvalidMemo",
826
+ "msg": "Provided memo is invalid or not provided"
827
+ },
828
+ {
829
+ "code": 6003,
830
+ "name": "InvalidParams",
831
+ "msg": "Invalid Parameters provided"
832
+ },
833
+ {
834
+ "code": 6004,
835
+ "name": "InvalidBaseMint",
836
+ "msg": "Invalid Base Mint"
837
+ },
838
+ {
839
+ "code": 6005,
840
+ "name": "InvalidQuoteMint",
841
+ "msg": "Invalid Quote Mint"
842
+ },
843
+ {
844
+ "code": 6006,
845
+ "name": "InvalidVault",
846
+ "msg": "Invalid Vault"
847
+ },
848
+ {
849
+ "code": 6007,
850
+ "name": "InvalidLaunchpad",
851
+ "msg": "Invalid Launchpad"
852
+ },
853
+ {
854
+ "code": 6008,
855
+ "name": "InvalidReceiver",
856
+ "msg": "Invalid Receiver provided"
857
+ },
858
+ {
859
+ "code": 6009,
860
+ "name": "DepositingNotStarted",
861
+ "msg": "Depositing has not started yet"
862
+ },
863
+ {
864
+ "code": 6010,
865
+ "name": "DepositingEnded",
866
+ "msg": "Depositing period has ended"
867
+ },
868
+ {
869
+ "code": 6011,
870
+ "name": "LaunchpadCancelled",
871
+ "msg": "Launchpad has been cancelled"
872
+ },
873
+ {
874
+ "code": 6012,
875
+ "name": "AmountMoreThanIndividualCap",
876
+ "msg": "Deposit amount is more than Individual Cap"
877
+ },
878
+ {
879
+ "code": 6013,
880
+ "name": "AmountMoreThanMaxCap",
881
+ "msg": "Deposit amount is more than Max Cap"
882
+ },
883
+ {
884
+ "code": 6014,
885
+ "name": "DepositingNotEnded",
886
+ "msg": "Depositing period has not ended yet"
887
+ },
888
+ {
889
+ "code": 6015,
890
+ "name": "DepositsAlreadyClaimed",
891
+ "msg": "Deposits has been already claimed"
892
+ },
893
+ {
894
+ "code": 6016,
895
+ "name": "VestingNotStarted",
896
+ "msg": "Vesting period has not started yet"
897
+ },
898
+ {
899
+ "code": 6017,
900
+ "name": "VestingAlreadyClaimed",
901
+ "msg": "Allocated amount has been claimed already"
902
+ },
903
+ {
904
+ "code": 6018,
905
+ "name": "InstantClaimNotAllowed",
906
+ "msg": "Instant claiming not allowed"
907
+ },
908
+ {
909
+ "code": 6019,
910
+ "name": "VestedClaimNotAllowed",
911
+ "msg": "Vested claiming not allowed"
912
+ },
913
+ {
914
+ "code": 6020,
915
+ "name": "VestingCantBeClaimed",
916
+ "msg": "Vested can't be claimed after it started"
917
+ }
918
+ ],
919
+ "types": [
920
+ {
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
+ ]
1046
+ }
1047
+ },
1048
+ {
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
+ }
1109
+ },
1110
+ {
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
+ }
1131
+ },
1132
+ {
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
+ }
1252
+ },
1253
+ {
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
+ }
1302
+ },
1303
+ {
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
+ }
1364
+ },
1365
+ {
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
+ }
1384
+ },
1385
+ {
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
+ ]
1465
+ }
1466
+ }
1467
+ ]
1468
+ }