proof-of-take-sdk 5.0.9 → 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.
@@ -2092,6 +2092,254 @@
2092
2092
  }
2093
2093
  ]
2094
2094
  },
2095
+ {
2096
+ "name": "create_moonpool",
2097
+ "docs": [
2098
+ "Create a new Moonpool and perform the first launchpad join."
2099
+ ],
2100
+ "discriminator": [
2101
+ 53,
2102
+ 201,
2103
+ 51,
2104
+ 181,
2105
+ 195,
2106
+ 31,
2107
+ 144,
2108
+ 187
2109
+ ],
2110
+ "accounts": [
2111
+ {
2112
+ "name": "season_settings",
2113
+ "writable": true,
2114
+ "pda": {
2115
+ "seeds": [
2116
+ {
2117
+ "kind": "const",
2118
+ "value": [
2119
+ 115,
2120
+ 101,
2121
+ 97,
2122
+ 115,
2123
+ 111,
2124
+ 110,
2125
+ 95,
2126
+ 115,
2127
+ 101,
2128
+ 116,
2129
+ 116,
2130
+ 105,
2131
+ 110,
2132
+ 103,
2133
+ 115
2134
+ ]
2135
+ }
2136
+ ]
2137
+ }
2138
+ },
2139
+ {
2140
+ "name": "season",
2141
+ "docs": [
2142
+ "Season PDA - scoped to launchpad_token_mint."
2143
+ ],
2144
+ "writable": true,
2145
+ "pda": {
2146
+ "seeds": [
2147
+ {
2148
+ "kind": "const",
2149
+ "value": [
2150
+ 115,
2151
+ 101,
2152
+ 97,
2153
+ 115,
2154
+ 111,
2155
+ 110
2156
+ ]
2157
+ },
2158
+ {
2159
+ "kind": "account",
2160
+ "path": "launchpad_token_mint"
2161
+ },
2162
+ {
2163
+ "kind": "const",
2164
+ "value": [
2165
+ 1,
2166
+ 0,
2167
+ 0,
2168
+ 0,
2169
+ 0,
2170
+ 0,
2171
+ 0,
2172
+ 0
2173
+ ]
2174
+ },
2175
+ {
2176
+ "kind": "arg",
2177
+ "path": "season_number"
2178
+ }
2179
+ ]
2180
+ }
2181
+ },
2182
+ {
2183
+ "name": "season_membership",
2184
+ "docs": [
2185
+ "SeasonMembership PDA - scoped to launchpad_token_mint."
2186
+ ],
2187
+ "writable": true
2188
+ },
2189
+ {
2190
+ "name": "moonpool",
2191
+ "docs": [
2192
+ "Moonpool PDA - unique per launchpad_token_mint."
2193
+ ],
2194
+ "writable": true,
2195
+ "pda": {
2196
+ "seeds": [
2197
+ {
2198
+ "kind": "const",
2199
+ "value": [
2200
+ 109,
2201
+ 111,
2202
+ 111,
2203
+ 110,
2204
+ 112,
2205
+ 111,
2206
+ 111,
2207
+ 108
2208
+ ]
2209
+ },
2210
+ {
2211
+ "kind": "account",
2212
+ "path": "launchpad_token_mint"
2213
+ },
2214
+ {
2215
+ "kind": "const",
2216
+ "value": [
2217
+ 1,
2218
+ 0,
2219
+ 0,
2220
+ 0,
2221
+ 0,
2222
+ 0,
2223
+ 0,
2224
+ 0
2225
+ ]
2226
+ }
2227
+ ]
2228
+ }
2229
+ },
2230
+ {
2231
+ "name": "moonpool_treasury",
2232
+ "writable": true,
2233
+ "pda": {
2234
+ "seeds": [
2235
+ {
2236
+ "kind": "const",
2237
+ "value": [
2238
+ 109,
2239
+ 111,
2240
+ 111,
2241
+ 110,
2242
+ 112,
2243
+ 111,
2244
+ 111,
2245
+ 108,
2246
+ 95,
2247
+ 116,
2248
+ 114,
2249
+ 101,
2250
+ 97,
2251
+ 115,
2252
+ 117,
2253
+ 114,
2254
+ 121
2255
+ ]
2256
+ },
2257
+ {
2258
+ "kind": "account",
2259
+ "path": "launchpad_token_mint"
2260
+ },
2261
+ {
2262
+ "kind": "const",
2263
+ "value": [
2264
+ 1,
2265
+ 0,
2266
+ 0,
2267
+ 0,
2268
+ 0,
2269
+ 0,
2270
+ 0,
2271
+ 0
2272
+ ]
2273
+ }
2274
+ ]
2275
+ }
2276
+ },
2277
+ {
2278
+ "name": "launchpad_token_mint",
2279
+ "docs": [
2280
+ "SPL Token-2022 mint for the launchpad token (keypair, not PDA)."
2281
+ ],
2282
+ "writable": true,
2283
+ "signer": true
2284
+ },
2285
+ {
2286
+ "name": "root_admin",
2287
+ "writable": true,
2288
+ "signer": true,
2289
+ "address": "Lude4DE3jDXVViJ3s7bUfPXdXy8Zq7G1stMwHNQrc2s"
2290
+ },
2291
+ {
2292
+ "name": "user",
2293
+ "writable": true,
2294
+ "signer": true
2295
+ },
2296
+ {
2297
+ "name": "token_2022_program"
2298
+ },
2299
+ {
2300
+ "name": "system_program",
2301
+ "address": "11111111111111111111111111111111"
2302
+ }
2303
+ ],
2304
+ "args": [
2305
+ {
2306
+ "name": "season_number",
2307
+ "type": "u64"
2308
+ },
2309
+ {
2310
+ "name": "tier",
2311
+ "type": "u8"
2312
+ },
2313
+ {
2314
+ "name": "referrer",
2315
+ "type": "pubkey"
2316
+ },
2317
+ {
2318
+ "name": "star",
2319
+ "type": "bool"
2320
+ },
2321
+ {
2322
+ "name": "max_sol_in_lamports",
2323
+ "type": "u64"
2324
+ },
2325
+ {
2326
+ "name": "expected_sol_in_lamports",
2327
+ "type": "u64"
2328
+ },
2329
+ {
2330
+ "name": "max_slippage_bps",
2331
+ "type": "u16"
2332
+ },
2333
+ {
2334
+ "name": "star_flag_prompt",
2335
+ "type": "string"
2336
+ },
2337
+ {
2338
+ "name": "symbol",
2339
+ "type": "string"
2340
+ }
2341
+ ]
2342
+ },
2095
2343
  {
2096
2344
  "name": "finalize_empty_window",
2097
2345
  "discriminator": [
@@ -2798,67 +3046,1024 @@
2798
3046
  ],
2799
3047
  "accounts": [
2800
3048
  {
2801
- "name": "miztake_statistics",
2802
- "writable": true,
2803
- "pda": {
2804
- "seeds": [
2805
- {
2806
- "kind": "const",
2807
- "value": [
2808
- 109,
2809
- 105,
2810
- 122,
2811
- 116,
2812
- 97,
2813
- 107,
2814
- 101,
2815
- 95,
2816
- 115,
2817
- 116,
2818
- 97,
2819
- 116,
2820
- 105,
2821
- 115,
2822
- 116,
2823
- 105,
2824
- 99,
2825
- 115
2826
- ]
2827
- }
2828
- ]
2829
- }
3049
+ "name": "miztake_statistics",
3050
+ "writable": true,
3051
+ "pda": {
3052
+ "seeds": [
3053
+ {
3054
+ "kind": "const",
3055
+ "value": [
3056
+ 109,
3057
+ 105,
3058
+ 122,
3059
+ 116,
3060
+ 97,
3061
+ 107,
3062
+ 101,
3063
+ 95,
3064
+ 115,
3065
+ 116,
3066
+ 97,
3067
+ 116,
3068
+ 105,
3069
+ 115,
3070
+ 116,
3071
+ 105,
3072
+ 99,
3073
+ 115
3074
+ ]
3075
+ }
3076
+ ]
3077
+ }
3078
+ },
3079
+ {
3080
+ "name": "admin",
3081
+ "docs": [
3082
+ "ROOT ADMIN account (ADMIN_PUBLIC_KEY - immutable)",
3083
+ "Required for one-time statistics initialization"
3084
+ ],
3085
+ "signer": true
3086
+ },
3087
+ {
3088
+ "name": "payer",
3089
+ "writable": true,
3090
+ "signer": true
3091
+ },
3092
+ {
3093
+ "name": "system_program",
3094
+ "address": "11111111111111111111111111111111"
3095
+ }
3096
+ ],
3097
+ "args": []
3098
+ },
3099
+ {
3100
+ "name": "join_moonpool_season",
3101
+ "docs": [
3102
+ "Join an existing Moonpool season (launchpad mode)."
3103
+ ],
3104
+ "discriminator": [
3105
+ 197,
3106
+ 20,
3107
+ 110,
3108
+ 170,
3109
+ 212,
3110
+ 45,
3111
+ 13,
3112
+ 133
3113
+ ],
3114
+ "accounts": [
3115
+ {
3116
+ "name": "season_settings",
3117
+ "writable": true,
3118
+ "pda": {
3119
+ "seeds": [
3120
+ {
3121
+ "kind": "const",
3122
+ "value": [
3123
+ 115,
3124
+ 101,
3125
+ 97,
3126
+ 115,
3127
+ 111,
3128
+ 110,
3129
+ 95,
3130
+ 115,
3131
+ 101,
3132
+ 116,
3133
+ 116,
3134
+ 105,
3135
+ 110,
3136
+ 103,
3137
+ 115
3138
+ ]
3139
+ }
3140
+ ]
3141
+ }
3142
+ },
3143
+ {
3144
+ "name": "season",
3145
+ "docs": [
3146
+ "Season PDA - scoped to launchpad_token_mint."
3147
+ ],
3148
+ "writable": true,
3149
+ "pda": {
3150
+ "seeds": [
3151
+ {
3152
+ "kind": "const",
3153
+ "value": [
3154
+ 115,
3155
+ 101,
3156
+ 97,
3157
+ 115,
3158
+ 111,
3159
+ 110
3160
+ ]
3161
+ },
3162
+ {
3163
+ "kind": "account",
3164
+ "path": "launchpad_token_mint"
3165
+ },
3166
+ {
3167
+ "kind": "const",
3168
+ "value": [
3169
+ 1,
3170
+ 0,
3171
+ 0,
3172
+ 0,
3173
+ 0,
3174
+ 0,
3175
+ 0,
3176
+ 0
3177
+ ]
3178
+ },
3179
+ {
3180
+ "kind": "arg",
3181
+ "path": "season_number"
3182
+ }
3183
+ ]
3184
+ }
3185
+ },
3186
+ {
3187
+ "name": "season_membership",
3188
+ "docs": [
3189
+ "SeasonMembership PDA - scoped to launchpad_token_mint."
3190
+ ],
3191
+ "writable": true
3192
+ },
3193
+ {
3194
+ "name": "moonpool",
3195
+ "docs": [
3196
+ "Moonpool PDA - must already exist."
3197
+ ],
3198
+ "writable": true,
3199
+ "pda": {
3200
+ "seeds": [
3201
+ {
3202
+ "kind": "const",
3203
+ "value": [
3204
+ 109,
3205
+ 111,
3206
+ 111,
3207
+ 110,
3208
+ 112,
3209
+ 111,
3210
+ 111,
3211
+ 108
3212
+ ]
3213
+ },
3214
+ {
3215
+ "kind": "account",
3216
+ "path": "launchpad_token_mint"
3217
+ },
3218
+ {
3219
+ "kind": "const",
3220
+ "value": [
3221
+ 1,
3222
+ 0,
3223
+ 0,
3224
+ 0,
3225
+ 0,
3226
+ 0,
3227
+ 0,
3228
+ 0
3229
+ ]
3230
+ }
3231
+ ]
3232
+ }
3233
+ },
3234
+ {
3235
+ "name": "moonpool_treasury",
3236
+ "writable": true,
3237
+ "pda": {
3238
+ "seeds": [
3239
+ {
3240
+ "kind": "const",
3241
+ "value": [
3242
+ 109,
3243
+ 111,
3244
+ 111,
3245
+ 110,
3246
+ 112,
3247
+ 111,
3248
+ 111,
3249
+ 108,
3250
+ 95,
3251
+ 116,
3252
+ 114,
3253
+ 101,
3254
+ 97,
3255
+ 115,
3256
+ 117,
3257
+ 114,
3258
+ 121
3259
+ ]
3260
+ },
3261
+ {
3262
+ "kind": "account",
3263
+ "path": "launchpad_token_mint"
3264
+ },
3265
+ {
3266
+ "kind": "const",
3267
+ "value": [
3268
+ 1,
3269
+ 0,
3270
+ 0,
3271
+ 0,
3272
+ 0,
3273
+ 0,
3274
+ 0,
3275
+ 0
3276
+ ]
3277
+ }
3278
+ ]
3279
+ }
3280
+ },
3281
+ {
3282
+ "name": "launchpad_token_mint",
3283
+ "docs": [
3284
+ "The launchpad token mint for this Moonpool."
3285
+ ]
3286
+ },
3287
+ {
3288
+ "name": "root_admin",
3289
+ "writable": true,
3290
+ "signer": true,
3291
+ "address": "Lude4DE3jDXVViJ3s7bUfPXdXy8Zq7G1stMwHNQrc2s"
3292
+ },
3293
+ {
3294
+ "name": "user",
3295
+ "writable": true,
3296
+ "signer": true
3297
+ },
3298
+ {
3299
+ "name": "token_2022_program"
3300
+ },
3301
+ {
3302
+ "name": "system_program",
3303
+ "address": "11111111111111111111111111111111"
3304
+ }
3305
+ ],
3306
+ "args": [
3307
+ {
3308
+ "name": "season_number",
3309
+ "type": "u64"
3310
+ },
3311
+ {
3312
+ "name": "tier",
3313
+ "type": "u8"
3314
+ },
3315
+ {
3316
+ "name": "referrer",
3317
+ "type": "pubkey"
3318
+ },
3319
+ {
3320
+ "name": "star",
3321
+ "type": "bool"
3322
+ },
3323
+ {
3324
+ "name": "max_sol_in_lamports",
3325
+ "type": "u64"
3326
+ },
3327
+ {
3328
+ "name": "expected_sol_in_lamports",
3329
+ "type": "u64"
3330
+ },
3331
+ {
3332
+ "name": "max_slippage_bps",
3333
+ "type": "u16"
3334
+ }
3335
+ ]
3336
+ },
3337
+ {
3338
+ "name": "join_season",
3339
+ "discriminator": [
3340
+ 36,
3341
+ 202,
3342
+ 202,
3343
+ 158,
3344
+ 82,
3345
+ 34,
3346
+ 248,
3347
+ 231
3348
+ ],
3349
+ "accounts": [
3350
+ {
3351
+ "name": "season_settings",
3352
+ "writable": true,
3353
+ "pda": {
3354
+ "seeds": [
3355
+ {
3356
+ "kind": "const",
3357
+ "value": [
3358
+ 115,
3359
+ 101,
3360
+ 97,
3361
+ 115,
3362
+ 111,
3363
+ 110,
3364
+ 95,
3365
+ 115,
3366
+ 101,
3367
+ 116,
3368
+ 116,
3369
+ 105,
3370
+ 110,
3371
+ 103,
3372
+ 115
3373
+ ]
3374
+ }
3375
+ ]
3376
+ }
3377
+ },
3378
+ {
3379
+ "name": "season",
3380
+ "docs": [
3381
+ "Season PDA - scoped to launchpad_token_mint for Moonpool mode.",
3382
+ "Each unique launchpad_token_mint creates a unique Season, allowing multiple \"Stars\"",
3383
+ "to have independent memberships."
3384
+ ],
3385
+ "writable": true,
3386
+ "pda": {
3387
+ "seeds": [
3388
+ {
3389
+ "kind": "const",
3390
+ "value": [
3391
+ 115,
3392
+ 101,
3393
+ 97,
3394
+ 115,
3395
+ 111,
3396
+ 110
3397
+ ]
3398
+ },
3399
+ {
3400
+ "kind": "account",
3401
+ "path": "launchpad_token_mint"
3402
+ },
3403
+ {
3404
+ "kind": "const",
3405
+ "value": [
3406
+ 1,
3407
+ 0,
3408
+ 0,
3409
+ 0,
3410
+ 0,
3411
+ 0,
3412
+ 0,
3413
+ 0
3414
+ ]
3415
+ },
3416
+ {
3417
+ "kind": "arg",
3418
+ "path": "season_number"
3419
+ }
3420
+ ]
3421
+ }
3422
+ },
3423
+ {
3424
+ "name": "season_membership",
3425
+ "docs": [
3426
+ "SeasonMembership PDA - scoped to launchpad_token_mint for Moonpool mode.",
3427
+ "Each unique launchpad_token_mint creates unique memberships per user/tier."
3428
+ ],
3429
+ "writable": true
3430
+ },
3431
+ {
3432
+ "name": "moonpool",
3433
+ "docs": [
3434
+ "Moonpool PDA - unique per launchpad_token_mint.",
3435
+ "The Moonpool is the Moon's seesaw for buying and selling stars (real SPL Token-2022 tokens).",
3436
+ "Contains reserve state for the constant-product AMM.",
3437
+ "",
3438
+ "Each unique launchpad_token_mint creates a unique Moonpool, allowing multiple \"Stars\"",
3439
+ "to coexist for the same token_mint.",
3440
+ "",
3441
+ "SECURITY: This account is MANDATORY (not optional) to prevent bypassing the",
3442
+ "launchpad mode check. If a previous season was launchpad mode, subsequent",
3443
+ "seasons MUST also be launchpad mode - we enforce this by always checking",
3444
+ "the pool state during season initialization."
3445
+ ],
3446
+ "writable": true,
3447
+ "pda": {
3448
+ "seeds": [
3449
+ {
3450
+ "kind": "const",
3451
+ "value": [
3452
+ 109,
3453
+ 111,
3454
+ 111,
3455
+ 110,
3456
+ 112,
3457
+ 111,
3458
+ 111,
3459
+ 108
3460
+ ]
3461
+ },
3462
+ {
3463
+ "kind": "account",
3464
+ "path": "launchpad_token_mint"
3465
+ },
3466
+ {
3467
+ "kind": "const",
3468
+ "value": [
3469
+ 1,
3470
+ 0,
3471
+ 0,
3472
+ 0,
3473
+ 0,
3474
+ 0,
3475
+ 0,
3476
+ 0
3477
+ ]
3478
+ }
3479
+ ]
3480
+ }
3481
+ },
3482
+ {
3483
+ "name": "moonpool_treasury",
3484
+ "docs": [
3485
+ "Unique per launchpad_token_mint, paired with its corresponding Moonpool.",
3486
+ "",
3487
+ "SECURITY: This account is MANDATORY alongside the pool to ensure consistent",
3488
+ "mode validation across seasons.",
3489
+ "",
3490
+ "Safety:",
3491
+ "- Address is constrained by PDA seeds.",
3492
+ "- Owner is constrained to `system_program::ID`.",
3493
+ "- Program only transfers lamports via System Program CPI with PDA signer seeds."
3494
+ ],
3495
+ "writable": true,
3496
+ "pda": {
3497
+ "seeds": [
3498
+ {
3499
+ "kind": "const",
3500
+ "value": [
3501
+ 109,
3502
+ 111,
3503
+ 111,
3504
+ 110,
3505
+ 112,
3506
+ 111,
3507
+ 111,
3508
+ 108,
3509
+ 95,
3510
+ 116,
3511
+ 114,
3512
+ 101,
3513
+ 97,
3514
+ 115,
3515
+ 117,
3516
+ 114,
3517
+ 121
3518
+ ]
3519
+ },
3520
+ {
3521
+ "kind": "account",
3522
+ "path": "launchpad_token_mint"
3523
+ },
3524
+ {
3525
+ "kind": "const",
3526
+ "value": [
3527
+ 1,
3528
+ 0,
3529
+ 0,
3530
+ 0,
3531
+ 0,
3532
+ 0,
3533
+ 0,
3534
+ 0
3535
+ ]
3536
+ }
3537
+ ]
3538
+ }
3539
+ },
3540
+ {
3541
+ "name": "launchpad_token_mint",
3542
+ "docs": [
3543
+ "SPL Token-2022 mint for the launchpad token.",
3544
+ "Created when the Moonpool is first initialized.",
3545
+ "Mint authority is the Moonpool PDA itself.",
3546
+ "NOTE: This is a Keypair (not a PDA) to allow creating fresh mints with updated decimals."
3547
+ ],
3548
+ "writable": true,
3549
+ "signer": true
3550
+ },
3551
+ {
3552
+ "name": "sunpool",
3553
+ "docs": [
3554
+ "Global Sunpool PDA (shared across all seasons for this token mint).",
3555
+ "The Sunpool is the Sun's flag shop for classic (non-launchpad) mode.",
3556
+ "Contains token_mint and id (always 1) for classic mode sessions.",
3557
+ "",
3558
+ "SECURITY: This account is MANDATORY (like Moonpool) to prevent bypassing the",
3559
+ "mode validation. If Sunpool is initialized, all future seasons for this token",
3560
+ "must also be classic mode."
3561
+ ],
3562
+ "writable": true,
3563
+ "pda": {
3564
+ "seeds": [
3565
+ {
3566
+ "kind": "const",
3567
+ "value": [
3568
+ 115,
3569
+ 117,
3570
+ 110,
3571
+ 112,
3572
+ 111,
3573
+ 111,
3574
+ 108
3575
+ ]
3576
+ },
3577
+ {
3578
+ "kind": "account",
3579
+ "path": "token_mint"
3580
+ },
3581
+ {
3582
+ "kind": "const",
3583
+ "value": [
3584
+ 1,
3585
+ 0,
3586
+ 0,
3587
+ 0,
3588
+ 0,
3589
+ 0,
3590
+ 0,
3591
+ 0
3592
+ ]
3593
+ }
3594
+ ]
3595
+ }
3596
+ },
3597
+ {
3598
+ "name": "season_deposit_vault",
3599
+ "writable": true,
3600
+ "optional": true,
3601
+ "pda": {
3602
+ "seeds": [
3603
+ {
3604
+ "kind": "const",
3605
+ "value": [
3606
+ 115,
3607
+ 101,
3608
+ 97,
3609
+ 115,
3610
+ 111,
3611
+ 110,
3612
+ 95,
3613
+ 100,
3614
+ 101,
3615
+ 112,
3616
+ 111,
3617
+ 115,
3618
+ 105,
3619
+ 116,
3620
+ 95,
3621
+ 118,
3622
+ 97,
3623
+ 117,
3624
+ 108,
3625
+ 116
3626
+ ]
3627
+ },
3628
+ {
3629
+ "kind": "account",
3630
+ "path": "token_mint"
3631
+ },
3632
+ {
3633
+ "kind": "const",
3634
+ "value": [
3635
+ 1,
3636
+ 0,
3637
+ 0,
3638
+ 0,
3639
+ 0,
3640
+ 0,
3641
+ 0,
3642
+ 0
3643
+ ]
3644
+ },
3645
+ {
3646
+ "kind": "arg",
3647
+ "path": "season_number"
3648
+ }
3649
+ ]
3650
+ }
3651
+ },
3652
+ {
3653
+ "name": "user_join_credit",
3654
+ "writable": true,
3655
+ "optional": true,
3656
+ "pda": {
3657
+ "seeds": [
3658
+ {
3659
+ "kind": "const",
3660
+ "value": [
3661
+ 117,
3662
+ 115,
3663
+ 101,
3664
+ 114,
3665
+ 95,
3666
+ 106,
3667
+ 111,
3668
+ 105,
3669
+ 110,
3670
+ 95,
3671
+ 99,
3672
+ 114,
3673
+ 101,
3674
+ 100,
3675
+ 105,
3676
+ 116
3677
+ ]
3678
+ },
3679
+ {
3680
+ "kind": "account",
3681
+ "path": "user"
3682
+ }
3683
+ ]
3684
+ }
3685
+ },
3686
+ {
3687
+ "name": "user_join_credit_vault",
3688
+ "writable": true,
3689
+ "optional": true,
3690
+ "pda": {
3691
+ "seeds": [
3692
+ {
3693
+ "kind": "account",
3694
+ "path": "user_join_credit"
3695
+ },
3696
+ {
3697
+ "kind": "const",
3698
+ "value": [
3699
+ 6,
3700
+ 221,
3701
+ 246,
3702
+ 225,
3703
+ 215,
3704
+ 101,
3705
+ 161,
3706
+ 147,
3707
+ 217,
3708
+ 203,
3709
+ 225,
3710
+ 70,
3711
+ 206,
3712
+ 235,
3713
+ 121,
3714
+ 172,
3715
+ 28,
3716
+ 180,
3717
+ 133,
3718
+ 237,
3719
+ 95,
3720
+ 91,
3721
+ 55,
3722
+ 145,
3723
+ 58,
3724
+ 140,
3725
+ 245,
3726
+ 133,
3727
+ 126,
3728
+ 255,
3729
+ 0,
3730
+ 169
3731
+ ]
3732
+ },
3733
+ {
3734
+ "kind": "account",
3735
+ "path": "mizd_mint"
3736
+ }
3737
+ ],
3738
+ "program": {
3739
+ "kind": "const",
3740
+ "value": [
3741
+ 140,
3742
+ 151,
3743
+ 37,
3744
+ 143,
3745
+ 78,
3746
+ 36,
3747
+ 137,
3748
+ 241,
3749
+ 187,
3750
+ 61,
3751
+ 16,
3752
+ 41,
3753
+ 20,
3754
+ 142,
3755
+ 13,
3756
+ 131,
3757
+ 11,
3758
+ 90,
3759
+ 19,
3760
+ 153,
3761
+ 218,
3762
+ 255,
3763
+ 16,
3764
+ 132,
3765
+ 4,
3766
+ 142,
3767
+ 123,
3768
+ 216,
3769
+ 219,
3770
+ 233,
3771
+ 248,
3772
+ 89
3773
+ ]
3774
+ }
3775
+ }
3776
+ },
3777
+ {
3778
+ "name": "mizd_mint",
3779
+ "address": "mizdS9fDNUKWZcXBeRhJoJQHJJmsTeF4fFRyPdXWv99"
3780
+ },
3781
+ {
3782
+ "name": "token_mint",
3783
+ "docs": [
3784
+ "Token mint this season is scoped to (used for Season PDA derivation)."
3785
+ ]
3786
+ },
3787
+ {
3788
+ "name": "root_admin",
3789
+ "writable": true,
3790
+ "signer": true,
3791
+ "address": "Lude4DE3jDXVViJ3s7bUfPXdXy8Zq7G1stMwHNQrc2s"
3792
+ },
3793
+ {
3794
+ "name": "root_admin_token_account",
3795
+ "writable": true,
3796
+ "optional": true,
3797
+ "pda": {
3798
+ "seeds": [
3799
+ {
3800
+ "kind": "account",
3801
+ "path": "root_admin"
3802
+ },
3803
+ {
3804
+ "kind": "const",
3805
+ "value": [
3806
+ 6,
3807
+ 221,
3808
+ 246,
3809
+ 225,
3810
+ 215,
3811
+ 101,
3812
+ 161,
3813
+ 147,
3814
+ 217,
3815
+ 203,
3816
+ 225,
3817
+ 70,
3818
+ 206,
3819
+ 235,
3820
+ 121,
3821
+ 172,
3822
+ 28,
3823
+ 180,
3824
+ 133,
3825
+ 237,
3826
+ 95,
3827
+ 91,
3828
+ 55,
3829
+ 145,
3830
+ 58,
3831
+ 140,
3832
+ 245,
3833
+ 133,
3834
+ 126,
3835
+ 255,
3836
+ 0,
3837
+ 169
3838
+ ]
3839
+ },
3840
+ {
3841
+ "kind": "account",
3842
+ "path": "mizd_mint"
3843
+ }
3844
+ ],
3845
+ "program": {
3846
+ "kind": "const",
3847
+ "value": [
3848
+ 140,
3849
+ 151,
3850
+ 37,
3851
+ 143,
3852
+ 78,
3853
+ 36,
3854
+ 137,
3855
+ 241,
3856
+ 187,
3857
+ 61,
3858
+ 16,
3859
+ 41,
3860
+ 20,
3861
+ 142,
3862
+ 13,
3863
+ 131,
3864
+ 11,
3865
+ 90,
3866
+ 19,
3867
+ 153,
3868
+ 218,
3869
+ 255,
3870
+ 16,
3871
+ 132,
3872
+ 4,
3873
+ 142,
3874
+ 123,
3875
+ 216,
3876
+ 219,
3877
+ 233,
3878
+ 248,
3879
+ 89
3880
+ ]
3881
+ }
3882
+ }
3883
+ },
3884
+ {
3885
+ "name": "user_token_account",
3886
+ "docs": [
3887
+ "User MIZD ATA (canonical). Created if missing; root admin pays."
3888
+ ],
3889
+ "writable": true,
3890
+ "optional": true,
3891
+ "pda": {
3892
+ "seeds": [
3893
+ {
3894
+ "kind": "account",
3895
+ "path": "user"
3896
+ },
3897
+ {
3898
+ "kind": "const",
3899
+ "value": [
3900
+ 6,
3901
+ 221,
3902
+ 246,
3903
+ 225,
3904
+ 215,
3905
+ 101,
3906
+ 161,
3907
+ 147,
3908
+ 217,
3909
+ 203,
3910
+ 225,
3911
+ 70,
3912
+ 206,
3913
+ 235,
3914
+ 121,
3915
+ 172,
3916
+ 28,
3917
+ 180,
3918
+ 133,
3919
+ 237,
3920
+ 95,
3921
+ 91,
3922
+ 55,
3923
+ 145,
3924
+ 58,
3925
+ 140,
3926
+ 245,
3927
+ 133,
3928
+ 126,
3929
+ 255,
3930
+ 0,
3931
+ 169
3932
+ ]
3933
+ },
3934
+ {
3935
+ "kind": "account",
3936
+ "path": "mizd_mint"
3937
+ }
3938
+ ],
3939
+ "program": {
3940
+ "kind": "const",
3941
+ "value": [
3942
+ 140,
3943
+ 151,
3944
+ 37,
3945
+ 143,
3946
+ 78,
3947
+ 36,
3948
+ 137,
3949
+ 241,
3950
+ 187,
3951
+ 61,
3952
+ 16,
3953
+ 41,
3954
+ 20,
3955
+ 142,
3956
+ 13,
3957
+ 131,
3958
+ 11,
3959
+ 90,
3960
+ 19,
3961
+ 153,
3962
+ 218,
3963
+ 255,
3964
+ 16,
3965
+ 132,
3966
+ 4,
3967
+ 142,
3968
+ 123,
3969
+ 216,
3970
+ 219,
3971
+ 233,
3972
+ 248,
3973
+ 89
3974
+ ]
3975
+ }
3976
+ }
3977
+ },
3978
+ {
3979
+ "name": "user",
3980
+ "writable": true,
3981
+ "signer": true
3982
+ },
3983
+ {
3984
+ "name": "associated_token_program",
3985
+ "address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL"
3986
+ },
3987
+ {
3988
+ "name": "token_program",
3989
+ "address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"
3990
+ },
3991
+ {
3992
+ "name": "token_2022_program",
3993
+ "docs": [
3994
+ "Token-2022 program for the launchpad token mint."
3995
+ ]
3996
+ },
3997
+ {
3998
+ "name": "system_program",
3999
+ "address": "11111111111111111111111111111111"
4000
+ }
4001
+ ],
4002
+ "args": [
4003
+ {
4004
+ "name": "season_number",
4005
+ "type": "u64"
4006
+ },
4007
+ {
4008
+ "name": "tier",
4009
+ "type": "u8"
4010
+ },
4011
+ {
4012
+ "name": "referrer",
4013
+ "type": "pubkey"
4014
+ },
4015
+ {
4016
+ "name": "referrer_tier",
4017
+ "type": "u8"
4018
+ },
4019
+ {
4020
+ "name": "star",
4021
+ "type": "bool"
4022
+ },
4023
+ {
4024
+ "name": "launchpad",
4025
+ "type": "bool"
4026
+ },
4027
+ {
4028
+ "name": "max_sol_in_lamports",
4029
+ "type": "u64"
4030
+ },
4031
+ {
4032
+ "name": "expected_sol_in_lamports",
4033
+ "type": "u64"
4034
+ },
4035
+ {
4036
+ "name": "max_slippage_bps",
4037
+ "type": "u16"
2830
4038
  },
2831
4039
  {
2832
- "name": "admin",
2833
- "docs": [
2834
- "ROOT ADMIN account (ADMIN_PUBLIC_KEY - immutable)",
2835
- "Required for one-time statistics initialization"
2836
- ],
2837
- "signer": true
4040
+ "name": "star_flag_prompt",
4041
+ "type": "string"
2838
4042
  },
2839
4043
  {
2840
- "name": "payer",
2841
- "writable": true,
2842
- "signer": true
4044
+ "name": "symbol",
4045
+ "type": "string"
2843
4046
  },
2844
4047
  {
2845
- "name": "system_program",
2846
- "address": "11111111111111111111111111111111"
4048
+ "name": "force_new_launchpad_mint",
4049
+ "type": "bool"
2847
4050
  }
2848
- ],
2849
- "args": []
4051
+ ]
2850
4052
  },
2851
4053
  {
2852
- "name": "join_season",
4054
+ "name": "join_sunpool",
4055
+ "docs": [
4056
+ "Join a Sunpool season (classic mode with MIZD)."
4057
+ ],
2853
4058
  "discriminator": [
2854
- 36,
2855
- 202,
2856
- 202,
2857
- 158,
2858
- 82,
2859
- 34,
2860
- 248,
2861
- 231
4059
+ 223,
4060
+ 205,
4061
+ 130,
4062
+ 22,
4063
+ 203,
4064
+ 77,
4065
+ 45,
4066
+ 110
2862
4067
  ],
2863
4068
  "accounts": [
2864
4069
  {
@@ -2891,6 +4096,9 @@
2891
4096
  },
2892
4097
  {
2893
4098
  "name": "season",
4099
+ "docs": [
4100
+ "Season PDA - scoped to token_mint (MIZD) for Sunpool mode."
4101
+ ],
2894
4102
  "writable": true,
2895
4103
  "pda": {
2896
4104
  "seeds": [
@@ -2931,138 +4139,15 @@
2931
4139
  },
2932
4140
  {
2933
4141
  "name": "season_membership",
2934
- "writable": true
2935
- },
2936
- {
2937
- "name": "moonpool",
2938
- "docs": [
2939
- "Moonpool PDA - unique per launchpad_token_mint.",
2940
- "The Moonpool is the Moon's seesaw for buying and selling stars (real SPL Token-2022 tokens).",
2941
- "Contains reserve state for the constant-product AMM.",
2942
- "",
2943
- "Each unique launchpad_token_mint creates a unique Moonpool, allowing multiple \"Stars\"",
2944
- "to coexist for the same token_mint.",
2945
- "",
2946
- "SECURITY: This account is MANDATORY (not optional) to prevent bypassing the",
2947
- "launchpad mode check. If a previous season was launchpad mode, subsequent",
2948
- "seasons MUST also be launchpad mode - we enforce this by always checking",
2949
- "the pool state during season initialization."
2950
- ],
2951
- "writable": true,
2952
- "pda": {
2953
- "seeds": [
2954
- {
2955
- "kind": "const",
2956
- "value": [
2957
- 109,
2958
- 111,
2959
- 111,
2960
- 110,
2961
- 112,
2962
- 111,
2963
- 111,
2964
- 108
2965
- ]
2966
- },
2967
- {
2968
- "kind": "account",
2969
- "path": "launchpad_token_mint"
2970
- },
2971
- {
2972
- "kind": "const",
2973
- "value": [
2974
- 1,
2975
- 0,
2976
- 0,
2977
- 0,
2978
- 0,
2979
- 0,
2980
- 0,
2981
- 0
2982
- ]
2983
- }
2984
- ]
2985
- }
2986
- },
2987
- {
2988
- "name": "moonpool_treasury",
2989
- "docs": [
2990
- "Unique per launchpad_token_mint, paired with its corresponding Moonpool.",
2991
- "",
2992
- "SECURITY: This account is MANDATORY alongside the pool to ensure consistent",
2993
- "mode validation across seasons.",
2994
- "",
2995
- "Safety:",
2996
- "- Address is constrained by PDA seeds.",
2997
- "- Owner is constrained to `system_program::ID`.",
2998
- "- Program only transfers lamports via System Program CPI with PDA signer seeds."
2999
- ],
3000
- "writable": true,
3001
- "pda": {
3002
- "seeds": [
3003
- {
3004
- "kind": "const",
3005
- "value": [
3006
- 109,
3007
- 111,
3008
- 111,
3009
- 110,
3010
- 112,
3011
- 111,
3012
- 111,
3013
- 108,
3014
- 95,
3015
- 116,
3016
- 114,
3017
- 101,
3018
- 97,
3019
- 115,
3020
- 117,
3021
- 114,
3022
- 121
3023
- ]
3024
- },
3025
- {
3026
- "kind": "account",
3027
- "path": "launchpad_token_mint"
3028
- },
3029
- {
3030
- "kind": "const",
3031
- "value": [
3032
- 1,
3033
- 0,
3034
- 0,
3035
- 0,
3036
- 0,
3037
- 0,
3038
- 0,
3039
- 0
3040
- ]
3041
- }
3042
- ]
3043
- }
3044
- },
3045
- {
3046
- "name": "launchpad_token_mint",
3047
4142
  "docs": [
3048
- "SPL Token-2022 mint for the launchpad token.",
3049
- "Created when the Moonpool is first initialized.",
3050
- "Mint authority is the Moonpool PDA itself.",
3051
- "NOTE: This is a Keypair (not a PDA) to allow creating fresh mints with updated decimals."
4143
+ "SeasonMembership PDA - scoped to token_mint (MIZD) for Sunpool mode."
3052
4144
  ],
3053
- "writable": true,
3054
- "signer": true
4145
+ "writable": true
3055
4146
  },
3056
4147
  {
3057
4148
  "name": "sunpool",
3058
4149
  "docs": [
3059
- "Global Sunpool PDA (shared across all seasons for this token mint).",
3060
- "The Sunpool is the Sun's flag shop for classic (non-launchpad) mode.",
3061
- "Contains token_mint and id (always 1) for classic mode sessions.",
3062
- "",
3063
- "SECURITY: This account is MANDATORY (like Moonpool) to prevent bypassing the",
3064
- "mode validation. If Sunpool is initialized, all future seasons for this token",
3065
- "must also be classic mode."
4150
+ "Global Sunpool PDA (shared across all seasons for this token mint)."
3066
4151
  ],
3067
4152
  "writable": true,
3068
4153
  "pda": {
@@ -3101,8 +4186,10 @@
3101
4186
  },
3102
4187
  {
3103
4188
  "name": "season_deposit_vault",
4189
+ "docs": [
4190
+ "Season deposit vault for MIZD."
4191
+ ],
3104
4192
  "writable": true,
3105
- "optional": true,
3106
4193
  "pda": {
3107
4194
  "seeds": [
3108
4195
  {
@@ -3156,8 +4243,10 @@
3156
4243
  },
3157
4244
  {
3158
4245
  "name": "user_join_credit",
4246
+ "docs": [
4247
+ "User join credit PDA."
4248
+ ],
3159
4249
  "writable": true,
3160
- "optional": true,
3161
4250
  "pda": {
3162
4251
  "seeds": [
3163
4252
  {
@@ -3190,8 +4279,10 @@
3190
4279
  },
3191
4280
  {
3192
4281
  "name": "user_join_credit_vault",
4282
+ "docs": [
4283
+ "User join credit vault (ATA for MIZD)."
4284
+ ],
3193
4285
  "writable": true,
3194
- "optional": true,
3195
4286
  "pda": {
3196
4287
  "seeds": [
3197
4288
  {
@@ -3281,12 +4372,15 @@
3281
4372
  },
3282
4373
  {
3283
4374
  "name": "mizd_mint",
4375
+ "docs": [
4376
+ "MIZD mint."
4377
+ ],
3284
4378
  "address": "mizdS9fDNUKWZcXBeRhJoJQHJJmsTeF4fFRyPdXWv99"
3285
4379
  },
3286
4380
  {
3287
4381
  "name": "token_mint",
3288
4382
  "docs": [
3289
- "Token mint this season is scoped to (used for Season PDA derivation)."
4383
+ "Token mint this season is scoped to (MIZD for Sunpool)."
3290
4384
  ]
3291
4385
  },
3292
4386
  {
@@ -3297,8 +4391,10 @@
3297
4391
  },
3298
4392
  {
3299
4393
  "name": "root_admin_token_account",
4394
+ "docs": [
4395
+ "Root admin MIZD token account."
4396
+ ],
3300
4397
  "writable": true,
3301
- "optional": true,
3302
4398
  "pda": {
3303
4399
  "seeds": [
3304
4400
  {
@@ -3389,10 +4485,9 @@
3389
4485
  {
3390
4486
  "name": "user_token_account",
3391
4487
  "docs": [
3392
- "User MIZD ATA (canonical). Created if missing; root admin pays."
4488
+ "User MIZD token account."
3393
4489
  ],
3394
4490
  "writable": true,
3395
- "optional": true,
3396
4491
  "pda": {
3397
4492
  "seeds": [
3398
4493
  {
@@ -3493,12 +4588,6 @@
3493
4588
  "name": "token_program",
3494
4589
  "address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"
3495
4590
  },
3496
- {
3497
- "name": "token_2022_program",
3498
- "docs": [
3499
- "Token-2022 program for the launchpad token mint."
3500
- ]
3501
- },
3502
4591
  {
3503
4592
  "name": "system_program",
3504
4593
  "address": "11111111111111111111111111111111"
@@ -3525,22 +4614,6 @@
3525
4614
  "name": "star",
3526
4615
  "type": "bool"
3527
4616
  },
3528
- {
3529
- "name": "launchpad",
3530
- "type": "bool"
3531
- },
3532
- {
3533
- "name": "max_sol_in_lamports",
3534
- "type": "u64"
3535
- },
3536
- {
3537
- "name": "expected_sol_in_lamports",
3538
- "type": "u64"
3539
- },
3540
- {
3541
- "name": "max_slippage_bps",
3542
- "type": "u16"
3543
- },
3544
4617
  {
3545
4618
  "name": "star_flag_prompt",
3546
4619
  "type": "string"
@@ -3548,10 +4621,6 @@
3548
4621
  {
3549
4622
  "name": "symbol",
3550
4623
  "type": "string"
3551
- },
3552
- {
3553
- "name": "force_new_launchpad_mint",
3554
- "type": "bool"
3555
4624
  }
3556
4625
  ]
3557
4626
  },
@@ -5759,6 +6828,21 @@
5759
6828
  "code": 6077,
5760
6829
  "name": "InvalidSunpoolTokenMint",
5761
6830
  "msg": "Invalid sunpool token mint: does not match the stored mint in Sunpool"
6831
+ },
6832
+ {
6833
+ "code": 6078,
6834
+ "name": "SeasonAlreadyInitialized",
6835
+ "msg": "Season is already initialized"
6836
+ },
6837
+ {
6838
+ "code": 6079,
6839
+ "name": "MoonpoolAlreadyInitialized",
6840
+ "msg": "Moonpool is already initialized"
6841
+ },
6842
+ {
6843
+ "code": 6080,
6844
+ "name": "MoonpoolNotInitialized",
6845
+ "msg": "Moonpool is not initialized (use create_moonpool first)"
5762
6846
  }
5763
6847
  ],
5764
6848
  "types": [
@@ -6419,7 +7503,7 @@
6419
7503
  "- x: real SOL reserve (lamports in treasury minus rent minimum)",
6420
7504
  "- y: token reserve (`token_reserve_units`)",
6421
7505
  "",
6422
- "The Moonpool is global and shared across all seasons for a given token mint."
7506
+ "Each Moonpool is uniquely identified by its `launchpad_token_mint`."
6423
7507
  ],
6424
7508
  "type": {
6425
7509
  "kind": "struct",
@@ -6427,22 +7511,16 @@
6427
7511
  {
6428
7512
  "name": "id",
6429
7513
  "docs": [
6430
- "Moonpool ID. Currently always 1 (singleton per token mint)."
7514
+ "Moonpool ID. Currently always 1 (singleton per launchpad token mint)."
6431
7515
  ],
6432
7516
  "type": "u8"
6433
7517
  },
6434
- {
6435
- "name": "token_mint",
6436
- "docs": [
6437
- "The token mint this Moonpool is scoped to (e.g., MIZD)."
6438
- ],
6439
- "type": "pubkey"
6440
- },
6441
7518
  {
6442
7519
  "name": "launchpad_token_mint",
6443
7520
  "docs": [
6444
7521
  "The SPL Token-2022 mint created for launchpad tokens.",
6445
- "This mint's authority is the Moonpool PDA itself."
7522
+ "This mint's authority is the Moonpool PDA itself.",
7523
+ "This is also the unique identifier for this Moonpool."
6446
7524
  ],
6447
7525
  "type": "pubkey"
6448
7526
  },