proof-of-take-sdk 5.0.10 → 5.0.11

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.
@@ -2098,6 +2098,254 @@ export type ProofOfTake = {
2098
2098
  }
2099
2099
  ];
2100
2100
  },
2101
+ {
2102
+ "name": "createMoonpool";
2103
+ "docs": [
2104
+ "Create a new Moonpool and perform the first launchpad join."
2105
+ ];
2106
+ "discriminator": [
2107
+ 53,
2108
+ 201,
2109
+ 51,
2110
+ 181,
2111
+ 195,
2112
+ 31,
2113
+ 144,
2114
+ 187
2115
+ ];
2116
+ "accounts": [
2117
+ {
2118
+ "name": "seasonSettings";
2119
+ "writable": true;
2120
+ "pda": {
2121
+ "seeds": [
2122
+ {
2123
+ "kind": "const";
2124
+ "value": [
2125
+ 115,
2126
+ 101,
2127
+ 97,
2128
+ 115,
2129
+ 111,
2130
+ 110,
2131
+ 95,
2132
+ 115,
2133
+ 101,
2134
+ 116,
2135
+ 116,
2136
+ 105,
2137
+ 110,
2138
+ 103,
2139
+ 115
2140
+ ];
2141
+ }
2142
+ ];
2143
+ };
2144
+ },
2145
+ {
2146
+ "name": "season";
2147
+ "docs": [
2148
+ "Season PDA - scoped to launchpad_token_mint."
2149
+ ];
2150
+ "writable": true;
2151
+ "pda": {
2152
+ "seeds": [
2153
+ {
2154
+ "kind": "const";
2155
+ "value": [
2156
+ 115,
2157
+ 101,
2158
+ 97,
2159
+ 115,
2160
+ 111,
2161
+ 110
2162
+ ];
2163
+ },
2164
+ {
2165
+ "kind": "account";
2166
+ "path": "launchpadTokenMint";
2167
+ },
2168
+ {
2169
+ "kind": "const";
2170
+ "value": [
2171
+ 1,
2172
+ 0,
2173
+ 0,
2174
+ 0,
2175
+ 0,
2176
+ 0,
2177
+ 0,
2178
+ 0
2179
+ ];
2180
+ },
2181
+ {
2182
+ "kind": "arg";
2183
+ "path": "seasonNumber";
2184
+ }
2185
+ ];
2186
+ };
2187
+ },
2188
+ {
2189
+ "name": "seasonMembership";
2190
+ "docs": [
2191
+ "SeasonMembership PDA - scoped to launchpad_token_mint."
2192
+ ];
2193
+ "writable": true;
2194
+ },
2195
+ {
2196
+ "name": "moonpool";
2197
+ "docs": [
2198
+ "Moonpool PDA - unique per launchpad_token_mint."
2199
+ ];
2200
+ "writable": true;
2201
+ "pda": {
2202
+ "seeds": [
2203
+ {
2204
+ "kind": "const";
2205
+ "value": [
2206
+ 109,
2207
+ 111,
2208
+ 111,
2209
+ 110,
2210
+ 112,
2211
+ 111,
2212
+ 111,
2213
+ 108
2214
+ ];
2215
+ },
2216
+ {
2217
+ "kind": "account";
2218
+ "path": "launchpadTokenMint";
2219
+ },
2220
+ {
2221
+ "kind": "const";
2222
+ "value": [
2223
+ 1,
2224
+ 0,
2225
+ 0,
2226
+ 0,
2227
+ 0,
2228
+ 0,
2229
+ 0,
2230
+ 0
2231
+ ];
2232
+ }
2233
+ ];
2234
+ };
2235
+ },
2236
+ {
2237
+ "name": "moonpoolTreasury";
2238
+ "writable": true;
2239
+ "pda": {
2240
+ "seeds": [
2241
+ {
2242
+ "kind": "const";
2243
+ "value": [
2244
+ 109,
2245
+ 111,
2246
+ 111,
2247
+ 110,
2248
+ 112,
2249
+ 111,
2250
+ 111,
2251
+ 108,
2252
+ 95,
2253
+ 116,
2254
+ 114,
2255
+ 101,
2256
+ 97,
2257
+ 115,
2258
+ 117,
2259
+ 114,
2260
+ 121
2261
+ ];
2262
+ },
2263
+ {
2264
+ "kind": "account";
2265
+ "path": "launchpadTokenMint";
2266
+ },
2267
+ {
2268
+ "kind": "const";
2269
+ "value": [
2270
+ 1,
2271
+ 0,
2272
+ 0,
2273
+ 0,
2274
+ 0,
2275
+ 0,
2276
+ 0,
2277
+ 0
2278
+ ];
2279
+ }
2280
+ ];
2281
+ };
2282
+ },
2283
+ {
2284
+ "name": "launchpadTokenMint";
2285
+ "docs": [
2286
+ "SPL Token-2022 mint for the launchpad token (keypair, not PDA)."
2287
+ ];
2288
+ "writable": true;
2289
+ "signer": true;
2290
+ },
2291
+ {
2292
+ "name": "rootAdmin";
2293
+ "writable": true;
2294
+ "signer": true;
2295
+ "address": "Lude4DE3jDXVViJ3s7bUfPXdXy8Zq7G1stMwHNQrc2s";
2296
+ },
2297
+ {
2298
+ "name": "user";
2299
+ "writable": true;
2300
+ "signer": true;
2301
+ },
2302
+ {
2303
+ "name": "token2022Program";
2304
+ },
2305
+ {
2306
+ "name": "systemProgram";
2307
+ "address": "11111111111111111111111111111111";
2308
+ }
2309
+ ];
2310
+ "args": [
2311
+ {
2312
+ "name": "seasonNumber";
2313
+ "type": "u64";
2314
+ },
2315
+ {
2316
+ "name": "tier";
2317
+ "type": "u8";
2318
+ },
2319
+ {
2320
+ "name": "referrer";
2321
+ "type": "pubkey";
2322
+ },
2323
+ {
2324
+ "name": "star";
2325
+ "type": "bool";
2326
+ },
2327
+ {
2328
+ "name": "maxSolInLamports";
2329
+ "type": "u64";
2330
+ },
2331
+ {
2332
+ "name": "expectedSolInLamports";
2333
+ "type": "u64";
2334
+ },
2335
+ {
2336
+ "name": "maxSlippageBps";
2337
+ "type": "u16";
2338
+ },
2339
+ {
2340
+ "name": "starFlagPrompt";
2341
+ "type": "string";
2342
+ },
2343
+ {
2344
+ "name": "symbol";
2345
+ "type": "string";
2346
+ }
2347
+ ];
2348
+ },
2101
2349
  {
2102
2350
  "name": "finalizeEmptyWindow";
2103
2351
  "discriminator": [
@@ -2804,67 +3052,1024 @@ export type ProofOfTake = {
2804
3052
  ];
2805
3053
  "accounts": [
2806
3054
  {
2807
- "name": "miztakeStatistics";
2808
- "writable": true;
2809
- "pda": {
2810
- "seeds": [
2811
- {
2812
- "kind": "const";
2813
- "value": [
2814
- 109,
2815
- 105,
2816
- 122,
2817
- 116,
2818
- 97,
2819
- 107,
2820
- 101,
2821
- 95,
2822
- 115,
2823
- 116,
2824
- 97,
2825
- 116,
2826
- 105,
2827
- 115,
2828
- 116,
2829
- 105,
2830
- 99,
2831
- 115
2832
- ];
2833
- }
2834
- ];
2835
- };
3055
+ "name": "miztakeStatistics";
3056
+ "writable": true;
3057
+ "pda": {
3058
+ "seeds": [
3059
+ {
3060
+ "kind": "const";
3061
+ "value": [
3062
+ 109,
3063
+ 105,
3064
+ 122,
3065
+ 116,
3066
+ 97,
3067
+ 107,
3068
+ 101,
3069
+ 95,
3070
+ 115,
3071
+ 116,
3072
+ 97,
3073
+ 116,
3074
+ 105,
3075
+ 115,
3076
+ 116,
3077
+ 105,
3078
+ 99,
3079
+ 115
3080
+ ];
3081
+ }
3082
+ ];
3083
+ };
3084
+ },
3085
+ {
3086
+ "name": "admin";
3087
+ "docs": [
3088
+ "ROOT ADMIN account (ADMIN_PUBLIC_KEY - immutable)",
3089
+ "Required for one-time statistics initialization"
3090
+ ];
3091
+ "signer": true;
3092
+ },
3093
+ {
3094
+ "name": "payer";
3095
+ "writable": true;
3096
+ "signer": true;
3097
+ },
3098
+ {
3099
+ "name": "systemProgram";
3100
+ "address": "11111111111111111111111111111111";
3101
+ }
3102
+ ];
3103
+ "args": [];
3104
+ },
3105
+ {
3106
+ "name": "joinMoonpoolSeason";
3107
+ "docs": [
3108
+ "Join an existing Moonpool season (launchpad mode)."
3109
+ ];
3110
+ "discriminator": [
3111
+ 197,
3112
+ 20,
3113
+ 110,
3114
+ 170,
3115
+ 212,
3116
+ 45,
3117
+ 13,
3118
+ 133
3119
+ ];
3120
+ "accounts": [
3121
+ {
3122
+ "name": "seasonSettings";
3123
+ "writable": true;
3124
+ "pda": {
3125
+ "seeds": [
3126
+ {
3127
+ "kind": "const";
3128
+ "value": [
3129
+ 115,
3130
+ 101,
3131
+ 97,
3132
+ 115,
3133
+ 111,
3134
+ 110,
3135
+ 95,
3136
+ 115,
3137
+ 101,
3138
+ 116,
3139
+ 116,
3140
+ 105,
3141
+ 110,
3142
+ 103,
3143
+ 115
3144
+ ];
3145
+ }
3146
+ ];
3147
+ };
3148
+ },
3149
+ {
3150
+ "name": "season";
3151
+ "docs": [
3152
+ "Season PDA - scoped to launchpad_token_mint."
3153
+ ];
3154
+ "writable": true;
3155
+ "pda": {
3156
+ "seeds": [
3157
+ {
3158
+ "kind": "const";
3159
+ "value": [
3160
+ 115,
3161
+ 101,
3162
+ 97,
3163
+ 115,
3164
+ 111,
3165
+ 110
3166
+ ];
3167
+ },
3168
+ {
3169
+ "kind": "account";
3170
+ "path": "launchpadTokenMint";
3171
+ },
3172
+ {
3173
+ "kind": "const";
3174
+ "value": [
3175
+ 1,
3176
+ 0,
3177
+ 0,
3178
+ 0,
3179
+ 0,
3180
+ 0,
3181
+ 0,
3182
+ 0
3183
+ ];
3184
+ },
3185
+ {
3186
+ "kind": "arg";
3187
+ "path": "seasonNumber";
3188
+ }
3189
+ ];
3190
+ };
3191
+ },
3192
+ {
3193
+ "name": "seasonMembership";
3194
+ "docs": [
3195
+ "SeasonMembership PDA - scoped to launchpad_token_mint."
3196
+ ];
3197
+ "writable": true;
3198
+ },
3199
+ {
3200
+ "name": "moonpool";
3201
+ "docs": [
3202
+ "Moonpool PDA - must already exist."
3203
+ ];
3204
+ "writable": true;
3205
+ "pda": {
3206
+ "seeds": [
3207
+ {
3208
+ "kind": "const";
3209
+ "value": [
3210
+ 109,
3211
+ 111,
3212
+ 111,
3213
+ 110,
3214
+ 112,
3215
+ 111,
3216
+ 111,
3217
+ 108
3218
+ ];
3219
+ },
3220
+ {
3221
+ "kind": "account";
3222
+ "path": "launchpadTokenMint";
3223
+ },
3224
+ {
3225
+ "kind": "const";
3226
+ "value": [
3227
+ 1,
3228
+ 0,
3229
+ 0,
3230
+ 0,
3231
+ 0,
3232
+ 0,
3233
+ 0,
3234
+ 0
3235
+ ];
3236
+ }
3237
+ ];
3238
+ };
3239
+ },
3240
+ {
3241
+ "name": "moonpoolTreasury";
3242
+ "writable": true;
3243
+ "pda": {
3244
+ "seeds": [
3245
+ {
3246
+ "kind": "const";
3247
+ "value": [
3248
+ 109,
3249
+ 111,
3250
+ 111,
3251
+ 110,
3252
+ 112,
3253
+ 111,
3254
+ 111,
3255
+ 108,
3256
+ 95,
3257
+ 116,
3258
+ 114,
3259
+ 101,
3260
+ 97,
3261
+ 115,
3262
+ 117,
3263
+ 114,
3264
+ 121
3265
+ ];
3266
+ },
3267
+ {
3268
+ "kind": "account";
3269
+ "path": "launchpadTokenMint";
3270
+ },
3271
+ {
3272
+ "kind": "const";
3273
+ "value": [
3274
+ 1,
3275
+ 0,
3276
+ 0,
3277
+ 0,
3278
+ 0,
3279
+ 0,
3280
+ 0,
3281
+ 0
3282
+ ];
3283
+ }
3284
+ ];
3285
+ };
3286
+ },
3287
+ {
3288
+ "name": "launchpadTokenMint";
3289
+ "docs": [
3290
+ "The launchpad token mint for this Moonpool."
3291
+ ];
3292
+ },
3293
+ {
3294
+ "name": "rootAdmin";
3295
+ "writable": true;
3296
+ "signer": true;
3297
+ "address": "Lude4DE3jDXVViJ3s7bUfPXdXy8Zq7G1stMwHNQrc2s";
3298
+ },
3299
+ {
3300
+ "name": "user";
3301
+ "writable": true;
3302
+ "signer": true;
3303
+ },
3304
+ {
3305
+ "name": "token2022Program";
3306
+ },
3307
+ {
3308
+ "name": "systemProgram";
3309
+ "address": "11111111111111111111111111111111";
3310
+ }
3311
+ ];
3312
+ "args": [
3313
+ {
3314
+ "name": "seasonNumber";
3315
+ "type": "u64";
3316
+ },
3317
+ {
3318
+ "name": "tier";
3319
+ "type": "u8";
3320
+ },
3321
+ {
3322
+ "name": "referrer";
3323
+ "type": "pubkey";
3324
+ },
3325
+ {
3326
+ "name": "star";
3327
+ "type": "bool";
3328
+ },
3329
+ {
3330
+ "name": "maxSolInLamports";
3331
+ "type": "u64";
3332
+ },
3333
+ {
3334
+ "name": "expectedSolInLamports";
3335
+ "type": "u64";
3336
+ },
3337
+ {
3338
+ "name": "maxSlippageBps";
3339
+ "type": "u16";
3340
+ }
3341
+ ];
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";
2836
4040
  },
2837
4041
  {
2838
- "name": "admin";
2839
- "docs": [
2840
- "ROOT ADMIN account (ADMIN_PUBLIC_KEY - immutable)",
2841
- "Required for one-time statistics initialization"
2842
- ];
2843
- "signer": true;
4042
+ "name": "maxSlippageBps";
4043
+ "type": "u16";
2844
4044
  },
2845
4045
  {
2846
- "name": "payer";
2847
- "writable": true;
2848
- "signer": true;
4046
+ "name": "starFlagPrompt";
4047
+ "type": "string";
2849
4048
  },
2850
4049
  {
2851
- "name": "systemProgram";
2852
- "address": "11111111111111111111111111111111";
4050
+ "name": "symbol";
4051
+ "type": "string";
4052
+ },
4053
+ {
4054
+ "name": "forceNewLaunchpadMint";
4055
+ "type": "bool";
2853
4056
  }
2854
4057
  ];
2855
- "args": [];
2856
4058
  },
2857
4059
  {
2858
- "name": "joinSeason";
4060
+ "name": "joinSunpool";
4061
+ "docs": [
4062
+ "Join a Sunpool season (classic mode with MIZD)."
4063
+ ];
2859
4064
  "discriminator": [
2860
- 36,
2861
- 202,
2862
- 202,
2863
- 158,
2864
- 82,
2865
- 34,
2866
- 248,
2867
- 231
4065
+ 223,
4066
+ 205,
4067
+ 130,
4068
+ 22,
4069
+ 203,
4070
+ 77,
4071
+ 45,
4072
+ 110
2868
4073
  ];
2869
4074
  "accounts": [
2870
4075
  {
@@ -2897,6 +4102,9 @@ export type ProofOfTake = {
2897
4102
  },
2898
4103
  {
2899
4104
  "name": "season";
4105
+ "docs": [
4106
+ "Season PDA - scoped to token_mint (MIZD) for Sunpool mode."
4107
+ ];
2900
4108
  "writable": true;
2901
4109
  "pda": {
2902
4110
  "seeds": [
@@ -2937,138 +4145,15 @@ export type ProofOfTake = {
2937
4145
  },
2938
4146
  {
2939
4147
  "name": "seasonMembership";
2940
- "writable": true;
2941
- },
2942
- {
2943
- "name": "moonpool";
2944
- "docs": [
2945
- "Moonpool PDA - unique per launchpad_token_mint.",
2946
- "The Moonpool is the Moon's seesaw for buying and selling stars (real SPL Token-2022 tokens).",
2947
- "Contains reserve state for the constant-product AMM.",
2948
- "",
2949
- "Each unique launchpad_token_mint creates a unique Moonpool, allowing multiple \"Stars\"",
2950
- "to coexist for the same token_mint.",
2951
- "",
2952
- "SECURITY: This account is MANDATORY (not optional) to prevent bypassing the",
2953
- "launchpad mode check. If a previous season was launchpad mode, subsequent",
2954
- "seasons MUST also be launchpad mode - we enforce this by always checking",
2955
- "the pool state during season initialization."
2956
- ];
2957
- "writable": true;
2958
- "pda": {
2959
- "seeds": [
2960
- {
2961
- "kind": "const";
2962
- "value": [
2963
- 109,
2964
- 111,
2965
- 111,
2966
- 110,
2967
- 112,
2968
- 111,
2969
- 111,
2970
- 108
2971
- ];
2972
- },
2973
- {
2974
- "kind": "account";
2975
- "path": "launchpadTokenMint";
2976
- },
2977
- {
2978
- "kind": "const";
2979
- "value": [
2980
- 1,
2981
- 0,
2982
- 0,
2983
- 0,
2984
- 0,
2985
- 0,
2986
- 0,
2987
- 0
2988
- ];
2989
- }
2990
- ];
2991
- };
2992
- },
2993
- {
2994
- "name": "moonpoolTreasury";
2995
- "docs": [
2996
- "Unique per launchpad_token_mint, paired with its corresponding Moonpool.",
2997
- "",
2998
- "SECURITY: This account is MANDATORY alongside the pool to ensure consistent",
2999
- "mode validation across seasons.",
3000
- "",
3001
- "Safety:",
3002
- "- Address is constrained by PDA seeds.",
3003
- "- Owner is constrained to `system_program::ID`.",
3004
- "- Program only transfers lamports via System Program CPI with PDA signer seeds."
3005
- ];
3006
- "writable": true;
3007
- "pda": {
3008
- "seeds": [
3009
- {
3010
- "kind": "const";
3011
- "value": [
3012
- 109,
3013
- 111,
3014
- 111,
3015
- 110,
3016
- 112,
3017
- 111,
3018
- 111,
3019
- 108,
3020
- 95,
3021
- 116,
3022
- 114,
3023
- 101,
3024
- 97,
3025
- 115,
3026
- 117,
3027
- 114,
3028
- 121
3029
- ];
3030
- },
3031
- {
3032
- "kind": "account";
3033
- "path": "launchpadTokenMint";
3034
- },
3035
- {
3036
- "kind": "const";
3037
- "value": [
3038
- 1,
3039
- 0,
3040
- 0,
3041
- 0,
3042
- 0,
3043
- 0,
3044
- 0,
3045
- 0
3046
- ];
3047
- }
3048
- ];
3049
- };
3050
- },
3051
- {
3052
- "name": "launchpadTokenMint";
3053
4148
  "docs": [
3054
- "SPL Token-2022 mint for the launchpad token.",
3055
- "Created when the Moonpool is first initialized.",
3056
- "Mint authority is the Moonpool PDA itself.",
3057
- "NOTE: This is a Keypair (not a PDA) to allow creating fresh mints with updated decimals."
4149
+ "SeasonMembership PDA - scoped to token_mint (MIZD) for Sunpool mode."
3058
4150
  ];
3059
4151
  "writable": true;
3060
- "signer": true;
3061
4152
  },
3062
4153
  {
3063
4154
  "name": "sunpool";
3064
4155
  "docs": [
3065
- "Global Sunpool PDA (shared across all seasons for this token mint).",
3066
- "The Sunpool is the Sun's flag shop for classic (non-launchpad) mode.",
3067
- "Contains token_mint and id (always 1) for classic mode sessions.",
3068
- "",
3069
- "SECURITY: This account is MANDATORY (like Moonpool) to prevent bypassing the",
3070
- "mode validation. If Sunpool is initialized, all future seasons for this token",
3071
- "must also be classic mode."
4156
+ "Global Sunpool PDA (shared across all seasons for this token mint)."
3072
4157
  ];
3073
4158
  "writable": true;
3074
4159
  "pda": {
@@ -3107,8 +4192,10 @@ export type ProofOfTake = {
3107
4192
  },
3108
4193
  {
3109
4194
  "name": "seasonDepositVault";
4195
+ "docs": [
4196
+ "Season deposit vault for MIZD."
4197
+ ];
3110
4198
  "writable": true;
3111
- "optional": true;
3112
4199
  "pda": {
3113
4200
  "seeds": [
3114
4201
  {
@@ -3162,8 +4249,10 @@ export type ProofOfTake = {
3162
4249
  },
3163
4250
  {
3164
4251
  "name": "userJoinCredit";
4252
+ "docs": [
4253
+ "User join credit PDA."
4254
+ ];
3165
4255
  "writable": true;
3166
- "optional": true;
3167
4256
  "pda": {
3168
4257
  "seeds": [
3169
4258
  {
@@ -3196,8 +4285,10 @@ export type ProofOfTake = {
3196
4285
  },
3197
4286
  {
3198
4287
  "name": "userJoinCreditVault";
4288
+ "docs": [
4289
+ "User join credit vault (ATA for MIZD)."
4290
+ ];
3199
4291
  "writable": true;
3200
- "optional": true;
3201
4292
  "pda": {
3202
4293
  "seeds": [
3203
4294
  {
@@ -3287,12 +4378,15 @@ export type ProofOfTake = {
3287
4378
  },
3288
4379
  {
3289
4380
  "name": "mizdMint";
4381
+ "docs": [
4382
+ "MIZD mint."
4383
+ ];
3290
4384
  "address": "mizdS9fDNUKWZcXBeRhJoJQHJJmsTeF4fFRyPdXWv99";
3291
4385
  },
3292
4386
  {
3293
4387
  "name": "tokenMint";
3294
4388
  "docs": [
3295
- "Token mint this season is scoped to (used for Season PDA derivation)."
4389
+ "Token mint this season is scoped to (MIZD for Sunpool)."
3296
4390
  ];
3297
4391
  },
3298
4392
  {
@@ -3303,8 +4397,10 @@ export type ProofOfTake = {
3303
4397
  },
3304
4398
  {
3305
4399
  "name": "rootAdminTokenAccount";
4400
+ "docs": [
4401
+ "Root admin MIZD token account."
4402
+ ];
3306
4403
  "writable": true;
3307
- "optional": true;
3308
4404
  "pda": {
3309
4405
  "seeds": [
3310
4406
  {
@@ -3395,10 +4491,9 @@ export type ProofOfTake = {
3395
4491
  {
3396
4492
  "name": "userTokenAccount";
3397
4493
  "docs": [
3398
- "User MIZD ATA (canonical). Created if missing; root admin pays."
4494
+ "User MIZD token account."
3399
4495
  ];
3400
4496
  "writable": true;
3401
- "optional": true;
3402
4497
  "pda": {
3403
4498
  "seeds": [
3404
4499
  {
@@ -3499,12 +4594,6 @@ export type ProofOfTake = {
3499
4594
  "name": "tokenProgram";
3500
4595
  "address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA";
3501
4596
  },
3502
- {
3503
- "name": "token2022Program";
3504
- "docs": [
3505
- "Token-2022 program for the launchpad token mint."
3506
- ];
3507
- },
3508
4597
  {
3509
4598
  "name": "systemProgram";
3510
4599
  "address": "11111111111111111111111111111111";
@@ -3531,22 +4620,6 @@ export type ProofOfTake = {
3531
4620
  "name": "star";
3532
4621
  "type": "bool";
3533
4622
  },
3534
- {
3535
- "name": "launchpad";
3536
- "type": "bool";
3537
- },
3538
- {
3539
- "name": "maxSolInLamports";
3540
- "type": "u64";
3541
- },
3542
- {
3543
- "name": "expectedSolInLamports";
3544
- "type": "u64";
3545
- },
3546
- {
3547
- "name": "maxSlippageBps";
3548
- "type": "u16";
3549
- },
3550
4623
  {
3551
4624
  "name": "starFlagPrompt";
3552
4625
  "type": "string";
@@ -3554,10 +4627,6 @@ export type ProofOfTake = {
3554
4627
  {
3555
4628
  "name": "symbol";
3556
4629
  "type": "string";
3557
- },
3558
- {
3559
- "name": "forceNewLaunchpadMint";
3560
- "type": "bool";
3561
4630
  }
3562
4631
  ];
3563
4632
  },
@@ -5765,6 +6834,21 @@ export type ProofOfTake = {
5765
6834
  "code": 6077;
5766
6835
  "name": "invalidSunpoolTokenMint";
5767
6836
  "msg": "Invalid sunpool token mint: does not match the stored mint in Sunpool";
6837
+ },
6838
+ {
6839
+ "code": 6078;
6840
+ "name": "seasonAlreadyInitialized";
6841
+ "msg": "Season is already initialized";
6842
+ },
6843
+ {
6844
+ "code": 6079;
6845
+ "name": "moonpoolAlreadyInitialized";
6846
+ "msg": "Moonpool is already initialized";
6847
+ },
6848
+ {
6849
+ "code": 6080;
6850
+ "name": "moonpoolNotInitialized";
6851
+ "msg": "Moonpool is not initialized (use create_moonpool first)";
5768
6852
  }
5769
6853
  ];
5770
6854
  "types": [
@@ -6425,7 +7509,7 @@ export type ProofOfTake = {
6425
7509
  "- x: real SOL reserve (lamports in treasury minus rent minimum)",
6426
7510
  "- y: token reserve (`token_reserve_units`)",
6427
7511
  "",
6428
- "The Moonpool is global and shared across all seasons for a given token mint."
7512
+ "Each Moonpool is uniquely identified by its `launchpad_token_mint`."
6429
7513
  ];
6430
7514
  "type": {
6431
7515
  "kind": "struct";
@@ -6433,22 +7517,16 @@ export type ProofOfTake = {
6433
7517
  {
6434
7518
  "name": "id";
6435
7519
  "docs": [
6436
- "Moonpool ID. Currently always 1 (singleton per token mint)."
7520
+ "Moonpool ID. Currently always 1 (singleton per launchpad token mint)."
6437
7521
  ];
6438
7522
  "type": "u8";
6439
7523
  },
6440
- {
6441
- "name": "tokenMint";
6442
- "docs": [
6443
- "The token mint this Moonpool is scoped to (e.g., MIZD)."
6444
- ];
6445
- "type": "pubkey";
6446
- },
6447
7524
  {
6448
7525
  "name": "launchpadTokenMint";
6449
7526
  "docs": [
6450
7527
  "The SPL Token-2022 mint created for launchpad tokens.",
6451
- "This mint's authority is the Moonpool PDA itself."
7528
+ "This mint's authority is the Moonpool PDA itself.",
7529
+ "This is also the unique identifier for this Moonpool."
6452
7530
  ];
6453
7531
  "type": "pubkey";
6454
7532
  },