proof-of-take-sdk 5.0.11 → 5.0.13

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.
@@ -3340,722 +3340,6 @@ export type ProofOfTake = {
3340
3340
  }
3341
3341
  ];
3342
3342
  },
3343
- {
3344
- "name": "joinSeason";
3345
- "discriminator": [
3346
- 36,
3347
- 202,
3348
- 202,
3349
- 158,
3350
- 82,
3351
- 34,
3352
- 248,
3353
- 231
3354
- ];
3355
- "accounts": [
3356
- {
3357
- "name": "seasonSettings";
3358
- "writable": true;
3359
- "pda": {
3360
- "seeds": [
3361
- {
3362
- "kind": "const";
3363
- "value": [
3364
- 115,
3365
- 101,
3366
- 97,
3367
- 115,
3368
- 111,
3369
- 110,
3370
- 95,
3371
- 115,
3372
- 101,
3373
- 116,
3374
- 116,
3375
- 105,
3376
- 110,
3377
- 103,
3378
- 115
3379
- ];
3380
- }
3381
- ];
3382
- };
3383
- },
3384
- {
3385
- "name": "season";
3386
- "docs": [
3387
- "Season PDA - scoped to launchpad_token_mint for Moonpool mode.",
3388
- "Each unique launchpad_token_mint creates a unique Season, allowing multiple \"Stars\"",
3389
- "to have independent memberships."
3390
- ];
3391
- "writable": true;
3392
- "pda": {
3393
- "seeds": [
3394
- {
3395
- "kind": "const";
3396
- "value": [
3397
- 115,
3398
- 101,
3399
- 97,
3400
- 115,
3401
- 111,
3402
- 110
3403
- ];
3404
- },
3405
- {
3406
- "kind": "account";
3407
- "path": "launchpadTokenMint";
3408
- },
3409
- {
3410
- "kind": "const";
3411
- "value": [
3412
- 1,
3413
- 0,
3414
- 0,
3415
- 0,
3416
- 0,
3417
- 0,
3418
- 0,
3419
- 0
3420
- ];
3421
- },
3422
- {
3423
- "kind": "arg";
3424
- "path": "seasonNumber";
3425
- }
3426
- ];
3427
- };
3428
- },
3429
- {
3430
- "name": "seasonMembership";
3431
- "docs": [
3432
- "SeasonMembership PDA - scoped to launchpad_token_mint for Moonpool mode.",
3433
- "Each unique launchpad_token_mint creates unique memberships per user/tier."
3434
- ];
3435
- "writable": true;
3436
- },
3437
- {
3438
- "name": "moonpool";
3439
- "docs": [
3440
- "Moonpool PDA - unique per launchpad_token_mint.",
3441
- "The Moonpool is the Moon's seesaw for buying and selling stars (real SPL Token-2022 tokens).",
3442
- "Contains reserve state for the constant-product AMM.",
3443
- "",
3444
- "Each unique launchpad_token_mint creates a unique Moonpool, allowing multiple \"Stars\"",
3445
- "to coexist for the same token_mint.",
3446
- "",
3447
- "SECURITY: This account is MANDATORY (not optional) to prevent bypassing the",
3448
- "launchpad mode check. If a previous season was launchpad mode, subsequent",
3449
- "seasons MUST also be launchpad mode - we enforce this by always checking",
3450
- "the pool state during season initialization."
3451
- ];
3452
- "writable": true;
3453
- "pda": {
3454
- "seeds": [
3455
- {
3456
- "kind": "const";
3457
- "value": [
3458
- 109,
3459
- 111,
3460
- 111,
3461
- 110,
3462
- 112,
3463
- 111,
3464
- 111,
3465
- 108
3466
- ];
3467
- },
3468
- {
3469
- "kind": "account";
3470
- "path": "launchpadTokenMint";
3471
- },
3472
- {
3473
- "kind": "const";
3474
- "value": [
3475
- 1,
3476
- 0,
3477
- 0,
3478
- 0,
3479
- 0,
3480
- 0,
3481
- 0,
3482
- 0
3483
- ];
3484
- }
3485
- ];
3486
- };
3487
- },
3488
- {
3489
- "name": "moonpoolTreasury";
3490
- "docs": [
3491
- "Unique per launchpad_token_mint, paired with its corresponding Moonpool.",
3492
- "",
3493
- "SECURITY: This account is MANDATORY alongside the pool to ensure consistent",
3494
- "mode validation across seasons.",
3495
- "",
3496
- "Safety:",
3497
- "- Address is constrained by PDA seeds.",
3498
- "- Owner is constrained to `system_program::ID`.",
3499
- "- Program only transfers lamports via System Program CPI with PDA signer seeds."
3500
- ];
3501
- "writable": true;
3502
- "pda": {
3503
- "seeds": [
3504
- {
3505
- "kind": "const";
3506
- "value": [
3507
- 109,
3508
- 111,
3509
- 111,
3510
- 110,
3511
- 112,
3512
- 111,
3513
- 111,
3514
- 108,
3515
- 95,
3516
- 116,
3517
- 114,
3518
- 101,
3519
- 97,
3520
- 115,
3521
- 117,
3522
- 114,
3523
- 121
3524
- ];
3525
- },
3526
- {
3527
- "kind": "account";
3528
- "path": "launchpadTokenMint";
3529
- },
3530
- {
3531
- "kind": "const";
3532
- "value": [
3533
- 1,
3534
- 0,
3535
- 0,
3536
- 0,
3537
- 0,
3538
- 0,
3539
- 0,
3540
- 0
3541
- ];
3542
- }
3543
- ];
3544
- };
3545
- },
3546
- {
3547
- "name": "launchpadTokenMint";
3548
- "docs": [
3549
- "SPL Token-2022 mint for the launchpad token.",
3550
- "Created when the Moonpool is first initialized.",
3551
- "Mint authority is the Moonpool PDA itself.",
3552
- "NOTE: This is a Keypair (not a PDA) to allow creating fresh mints with updated decimals."
3553
- ];
3554
- "writable": true;
3555
- "signer": true;
3556
- },
3557
- {
3558
- "name": "sunpool";
3559
- "docs": [
3560
- "Global Sunpool PDA (shared across all seasons for this token mint).",
3561
- "The Sunpool is the Sun's flag shop for classic (non-launchpad) mode.",
3562
- "Contains token_mint and id (always 1) for classic mode sessions.",
3563
- "",
3564
- "SECURITY: This account is MANDATORY (like Moonpool) to prevent bypassing the",
3565
- "mode validation. If Sunpool is initialized, all future seasons for this token",
3566
- "must also be classic mode."
3567
- ];
3568
- "writable": true;
3569
- "pda": {
3570
- "seeds": [
3571
- {
3572
- "kind": "const";
3573
- "value": [
3574
- 115,
3575
- 117,
3576
- 110,
3577
- 112,
3578
- 111,
3579
- 111,
3580
- 108
3581
- ];
3582
- },
3583
- {
3584
- "kind": "account";
3585
- "path": "tokenMint";
3586
- },
3587
- {
3588
- "kind": "const";
3589
- "value": [
3590
- 1,
3591
- 0,
3592
- 0,
3593
- 0,
3594
- 0,
3595
- 0,
3596
- 0,
3597
- 0
3598
- ];
3599
- }
3600
- ];
3601
- };
3602
- },
3603
- {
3604
- "name": "seasonDepositVault";
3605
- "writable": true;
3606
- "optional": true;
3607
- "pda": {
3608
- "seeds": [
3609
- {
3610
- "kind": "const";
3611
- "value": [
3612
- 115,
3613
- 101,
3614
- 97,
3615
- 115,
3616
- 111,
3617
- 110,
3618
- 95,
3619
- 100,
3620
- 101,
3621
- 112,
3622
- 111,
3623
- 115,
3624
- 105,
3625
- 116,
3626
- 95,
3627
- 118,
3628
- 97,
3629
- 117,
3630
- 108,
3631
- 116
3632
- ];
3633
- },
3634
- {
3635
- "kind": "account";
3636
- "path": "tokenMint";
3637
- },
3638
- {
3639
- "kind": "const";
3640
- "value": [
3641
- 1,
3642
- 0,
3643
- 0,
3644
- 0,
3645
- 0,
3646
- 0,
3647
- 0,
3648
- 0
3649
- ];
3650
- },
3651
- {
3652
- "kind": "arg";
3653
- "path": "seasonNumber";
3654
- }
3655
- ];
3656
- };
3657
- },
3658
- {
3659
- "name": "userJoinCredit";
3660
- "writable": true;
3661
- "optional": true;
3662
- "pda": {
3663
- "seeds": [
3664
- {
3665
- "kind": "const";
3666
- "value": [
3667
- 117,
3668
- 115,
3669
- 101,
3670
- 114,
3671
- 95,
3672
- 106,
3673
- 111,
3674
- 105,
3675
- 110,
3676
- 95,
3677
- 99,
3678
- 114,
3679
- 101,
3680
- 100,
3681
- 105,
3682
- 116
3683
- ];
3684
- },
3685
- {
3686
- "kind": "account";
3687
- "path": "user";
3688
- }
3689
- ];
3690
- };
3691
- },
3692
- {
3693
- "name": "userJoinCreditVault";
3694
- "writable": true;
3695
- "optional": true;
3696
- "pda": {
3697
- "seeds": [
3698
- {
3699
- "kind": "account";
3700
- "path": "userJoinCredit";
3701
- },
3702
- {
3703
- "kind": "const";
3704
- "value": [
3705
- 6,
3706
- 221,
3707
- 246,
3708
- 225,
3709
- 215,
3710
- 101,
3711
- 161,
3712
- 147,
3713
- 217,
3714
- 203,
3715
- 225,
3716
- 70,
3717
- 206,
3718
- 235,
3719
- 121,
3720
- 172,
3721
- 28,
3722
- 180,
3723
- 133,
3724
- 237,
3725
- 95,
3726
- 91,
3727
- 55,
3728
- 145,
3729
- 58,
3730
- 140,
3731
- 245,
3732
- 133,
3733
- 126,
3734
- 255,
3735
- 0,
3736
- 169
3737
- ];
3738
- },
3739
- {
3740
- "kind": "account";
3741
- "path": "mizdMint";
3742
- }
3743
- ];
3744
- "program": {
3745
- "kind": "const";
3746
- "value": [
3747
- 140,
3748
- 151,
3749
- 37,
3750
- 143,
3751
- 78,
3752
- 36,
3753
- 137,
3754
- 241,
3755
- 187,
3756
- 61,
3757
- 16,
3758
- 41,
3759
- 20,
3760
- 142,
3761
- 13,
3762
- 131,
3763
- 11,
3764
- 90,
3765
- 19,
3766
- 153,
3767
- 218,
3768
- 255,
3769
- 16,
3770
- 132,
3771
- 4,
3772
- 142,
3773
- 123,
3774
- 216,
3775
- 219,
3776
- 233,
3777
- 248,
3778
- 89
3779
- ];
3780
- };
3781
- };
3782
- },
3783
- {
3784
- "name": "mizdMint";
3785
- "address": "mizdS9fDNUKWZcXBeRhJoJQHJJmsTeF4fFRyPdXWv99";
3786
- },
3787
- {
3788
- "name": "tokenMint";
3789
- "docs": [
3790
- "Token mint this season is scoped to (used for Season PDA derivation)."
3791
- ];
3792
- },
3793
- {
3794
- "name": "rootAdmin";
3795
- "writable": true;
3796
- "signer": true;
3797
- "address": "Lude4DE3jDXVViJ3s7bUfPXdXy8Zq7G1stMwHNQrc2s";
3798
- },
3799
- {
3800
- "name": "rootAdminTokenAccount";
3801
- "writable": true;
3802
- "optional": true;
3803
- "pda": {
3804
- "seeds": [
3805
- {
3806
- "kind": "account";
3807
- "path": "rootAdmin";
3808
- },
3809
- {
3810
- "kind": "const";
3811
- "value": [
3812
- 6,
3813
- 221,
3814
- 246,
3815
- 225,
3816
- 215,
3817
- 101,
3818
- 161,
3819
- 147,
3820
- 217,
3821
- 203,
3822
- 225,
3823
- 70,
3824
- 206,
3825
- 235,
3826
- 121,
3827
- 172,
3828
- 28,
3829
- 180,
3830
- 133,
3831
- 237,
3832
- 95,
3833
- 91,
3834
- 55,
3835
- 145,
3836
- 58,
3837
- 140,
3838
- 245,
3839
- 133,
3840
- 126,
3841
- 255,
3842
- 0,
3843
- 169
3844
- ];
3845
- },
3846
- {
3847
- "kind": "account";
3848
- "path": "mizdMint";
3849
- }
3850
- ];
3851
- "program": {
3852
- "kind": "const";
3853
- "value": [
3854
- 140,
3855
- 151,
3856
- 37,
3857
- 143,
3858
- 78,
3859
- 36,
3860
- 137,
3861
- 241,
3862
- 187,
3863
- 61,
3864
- 16,
3865
- 41,
3866
- 20,
3867
- 142,
3868
- 13,
3869
- 131,
3870
- 11,
3871
- 90,
3872
- 19,
3873
- 153,
3874
- 218,
3875
- 255,
3876
- 16,
3877
- 132,
3878
- 4,
3879
- 142,
3880
- 123,
3881
- 216,
3882
- 219,
3883
- 233,
3884
- 248,
3885
- 89
3886
- ];
3887
- };
3888
- };
3889
- },
3890
- {
3891
- "name": "userTokenAccount";
3892
- "docs": [
3893
- "User MIZD ATA (canonical). Created if missing; root admin pays."
3894
- ];
3895
- "writable": true;
3896
- "optional": true;
3897
- "pda": {
3898
- "seeds": [
3899
- {
3900
- "kind": "account";
3901
- "path": "user";
3902
- },
3903
- {
3904
- "kind": "const";
3905
- "value": [
3906
- 6,
3907
- 221,
3908
- 246,
3909
- 225,
3910
- 215,
3911
- 101,
3912
- 161,
3913
- 147,
3914
- 217,
3915
- 203,
3916
- 225,
3917
- 70,
3918
- 206,
3919
- 235,
3920
- 121,
3921
- 172,
3922
- 28,
3923
- 180,
3924
- 133,
3925
- 237,
3926
- 95,
3927
- 91,
3928
- 55,
3929
- 145,
3930
- 58,
3931
- 140,
3932
- 245,
3933
- 133,
3934
- 126,
3935
- 255,
3936
- 0,
3937
- 169
3938
- ];
3939
- },
3940
- {
3941
- "kind": "account";
3942
- "path": "mizdMint";
3943
- }
3944
- ];
3945
- "program": {
3946
- "kind": "const";
3947
- "value": [
3948
- 140,
3949
- 151,
3950
- 37,
3951
- 143,
3952
- 78,
3953
- 36,
3954
- 137,
3955
- 241,
3956
- 187,
3957
- 61,
3958
- 16,
3959
- 41,
3960
- 20,
3961
- 142,
3962
- 13,
3963
- 131,
3964
- 11,
3965
- 90,
3966
- 19,
3967
- 153,
3968
- 218,
3969
- 255,
3970
- 16,
3971
- 132,
3972
- 4,
3973
- 142,
3974
- 123,
3975
- 216,
3976
- 219,
3977
- 233,
3978
- 248,
3979
- 89
3980
- ];
3981
- };
3982
- };
3983
- },
3984
- {
3985
- "name": "user";
3986
- "writable": true;
3987
- "signer": true;
3988
- },
3989
- {
3990
- "name": "associatedTokenProgram";
3991
- "address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL";
3992
- },
3993
- {
3994
- "name": "tokenProgram";
3995
- "address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA";
3996
- },
3997
- {
3998
- "name": "token2022Program";
3999
- "docs": [
4000
- "Token-2022 program for the launchpad token mint."
4001
- ];
4002
- },
4003
- {
4004
- "name": "systemProgram";
4005
- "address": "11111111111111111111111111111111";
4006
- }
4007
- ];
4008
- "args": [
4009
- {
4010
- "name": "seasonNumber";
4011
- "type": "u64";
4012
- },
4013
- {
4014
- "name": "tier";
4015
- "type": "u8";
4016
- },
4017
- {
4018
- "name": "referrer";
4019
- "type": "pubkey";
4020
- },
4021
- {
4022
- "name": "referrerTier";
4023
- "type": "u8";
4024
- },
4025
- {
4026
- "name": "star";
4027
- "type": "bool";
4028
- },
4029
- {
4030
- "name": "launchpad";
4031
- "type": "bool";
4032
- },
4033
- {
4034
- "name": "maxSolInLamports";
4035
- "type": "u64";
4036
- },
4037
- {
4038
- "name": "expectedSolInLamports";
4039
- "type": "u64";
4040
- },
4041
- {
4042
- "name": "maxSlippageBps";
4043
- "type": "u16";
4044
- },
4045
- {
4046
- "name": "starFlagPrompt";
4047
- "type": "string";
4048
- },
4049
- {
4050
- "name": "symbol";
4051
- "type": "string";
4052
- },
4053
- {
4054
- "name": "forceNewLaunchpadMint";
4055
- "type": "bool";
4056
- }
4057
- ];
4058
- },
4059
3343
  {
4060
3344
  "name": "joinSunpool";
4061
3345
  "docs": [