proof-of-take-sdk 5.0.10 → 5.0.12
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.
- package/dist/idl/proof_of_take.json +449 -87
- package/dist/index.d.ts +2 -2
- package/dist/index.js +4 -2
- package/dist/instructions/joinSeason.d.ts +191 -105
- package/dist/instructions/joinSeason.js +268 -209
- package/dist/types/proof_of_take.d.ts +448 -86
- package/dist/utils/pdaManager.d.ts +5 -0
- package/dist/utils/pdaManager.js +10 -5
- package/package.json +1 -1
|
@@ -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": [
|
|
@@ -2855,16 +3103,19 @@ export type ProofOfTake = {
|
|
|
2855
3103
|
"args": [];
|
|
2856
3104
|
},
|
|
2857
3105
|
{
|
|
2858
|
-
"name": "
|
|
3106
|
+
"name": "joinMoonpoolSeason";
|
|
3107
|
+
"docs": [
|
|
3108
|
+
"Join an existing Moonpool season (launchpad mode)."
|
|
3109
|
+
];
|
|
2859
3110
|
"discriminator": [
|
|
2860
|
-
|
|
2861
|
-
|
|
2862
|
-
|
|
2863
|
-
|
|
2864
|
-
|
|
2865
|
-
|
|
2866
|
-
|
|
2867
|
-
|
|
3111
|
+
197,
|
|
3112
|
+
20,
|
|
3113
|
+
110,
|
|
3114
|
+
170,
|
|
3115
|
+
212,
|
|
3116
|
+
45,
|
|
3117
|
+
13,
|
|
3118
|
+
133
|
|
2868
3119
|
];
|
|
2869
3120
|
"accounts": [
|
|
2870
3121
|
{
|
|
@@ -2897,6 +3148,9 @@ export type ProofOfTake = {
|
|
|
2897
3148
|
},
|
|
2898
3149
|
{
|
|
2899
3150
|
"name": "season";
|
|
3151
|
+
"docs": [
|
|
3152
|
+
"Season PDA - scoped to launchpad_token_mint."
|
|
3153
|
+
];
|
|
2900
3154
|
"writable": true;
|
|
2901
3155
|
"pda": {
|
|
2902
3156
|
"seeds": [
|
|
@@ -2913,7 +3167,7 @@ export type ProofOfTake = {
|
|
|
2913
3167
|
},
|
|
2914
3168
|
{
|
|
2915
3169
|
"kind": "account";
|
|
2916
|
-
"path": "
|
|
3170
|
+
"path": "launchpadTokenMint";
|
|
2917
3171
|
},
|
|
2918
3172
|
{
|
|
2919
3173
|
"kind": "const";
|
|
@@ -2937,22 +3191,15 @@ export type ProofOfTake = {
|
|
|
2937
3191
|
},
|
|
2938
3192
|
{
|
|
2939
3193
|
"name": "seasonMembership";
|
|
3194
|
+
"docs": [
|
|
3195
|
+
"SeasonMembership PDA - scoped to launchpad_token_mint."
|
|
3196
|
+
];
|
|
2940
3197
|
"writable": true;
|
|
2941
3198
|
},
|
|
2942
3199
|
{
|
|
2943
3200
|
"name": "moonpool";
|
|
2944
3201
|
"docs": [
|
|
2945
|
-
"Moonpool PDA -
|
|
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."
|
|
3202
|
+
"Moonpool PDA - must already exist."
|
|
2956
3203
|
];
|
|
2957
3204
|
"writable": true;
|
|
2958
3205
|
"pda": {
|
|
@@ -2992,17 +3239,6 @@ export type ProofOfTake = {
|
|
|
2992
3239
|
},
|
|
2993
3240
|
{
|
|
2994
3241
|
"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
3242
|
"writable": true;
|
|
3007
3243
|
"pda": {
|
|
3008
3244
|
"seeds": [
|
|
@@ -3051,24 +3287,157 @@ export type ProofOfTake = {
|
|
|
3051
3287
|
{
|
|
3052
3288
|
"name": "launchpadTokenMint";
|
|
3053
3289
|
"docs": [
|
|
3054
|
-
"
|
|
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."
|
|
3290
|
+
"The launchpad token mint for this Moonpool."
|
|
3058
3291
|
];
|
|
3292
|
+
},
|
|
3293
|
+
{
|
|
3294
|
+
"name": "rootAdmin";
|
|
3295
|
+
"writable": true;
|
|
3296
|
+
"signer": true;
|
|
3297
|
+
"address": "Lude4DE3jDXVViJ3s7bUfPXdXy8Zq7G1stMwHNQrc2s";
|
|
3298
|
+
},
|
|
3299
|
+
{
|
|
3300
|
+
"name": "user";
|
|
3059
3301
|
"writable": true;
|
|
3060
3302
|
"signer": true;
|
|
3061
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": "joinSunpool";
|
|
3345
|
+
"docs": [
|
|
3346
|
+
"Join a Sunpool season (classic mode with MIZD)."
|
|
3347
|
+
];
|
|
3348
|
+
"discriminator": [
|
|
3349
|
+
223,
|
|
3350
|
+
205,
|
|
3351
|
+
130,
|
|
3352
|
+
22,
|
|
3353
|
+
203,
|
|
3354
|
+
77,
|
|
3355
|
+
45,
|
|
3356
|
+
110
|
|
3357
|
+
];
|
|
3358
|
+
"accounts": [
|
|
3359
|
+
{
|
|
3360
|
+
"name": "seasonSettings";
|
|
3361
|
+
"writable": true;
|
|
3362
|
+
"pda": {
|
|
3363
|
+
"seeds": [
|
|
3364
|
+
{
|
|
3365
|
+
"kind": "const";
|
|
3366
|
+
"value": [
|
|
3367
|
+
115,
|
|
3368
|
+
101,
|
|
3369
|
+
97,
|
|
3370
|
+
115,
|
|
3371
|
+
111,
|
|
3372
|
+
110,
|
|
3373
|
+
95,
|
|
3374
|
+
115,
|
|
3375
|
+
101,
|
|
3376
|
+
116,
|
|
3377
|
+
116,
|
|
3378
|
+
105,
|
|
3379
|
+
110,
|
|
3380
|
+
103,
|
|
3381
|
+
115
|
|
3382
|
+
];
|
|
3383
|
+
}
|
|
3384
|
+
];
|
|
3385
|
+
};
|
|
3386
|
+
},
|
|
3387
|
+
{
|
|
3388
|
+
"name": "season";
|
|
3389
|
+
"docs": [
|
|
3390
|
+
"Season PDA - scoped to token_mint (MIZD) for Sunpool mode."
|
|
3391
|
+
];
|
|
3392
|
+
"writable": true;
|
|
3393
|
+
"pda": {
|
|
3394
|
+
"seeds": [
|
|
3395
|
+
{
|
|
3396
|
+
"kind": "const";
|
|
3397
|
+
"value": [
|
|
3398
|
+
115,
|
|
3399
|
+
101,
|
|
3400
|
+
97,
|
|
3401
|
+
115,
|
|
3402
|
+
111,
|
|
3403
|
+
110
|
|
3404
|
+
];
|
|
3405
|
+
},
|
|
3406
|
+
{
|
|
3407
|
+
"kind": "account";
|
|
3408
|
+
"path": "tokenMint";
|
|
3409
|
+
},
|
|
3410
|
+
{
|
|
3411
|
+
"kind": "const";
|
|
3412
|
+
"value": [
|
|
3413
|
+
1,
|
|
3414
|
+
0,
|
|
3415
|
+
0,
|
|
3416
|
+
0,
|
|
3417
|
+
0,
|
|
3418
|
+
0,
|
|
3419
|
+
0,
|
|
3420
|
+
0
|
|
3421
|
+
];
|
|
3422
|
+
},
|
|
3423
|
+
{
|
|
3424
|
+
"kind": "arg";
|
|
3425
|
+
"path": "seasonNumber";
|
|
3426
|
+
}
|
|
3427
|
+
];
|
|
3428
|
+
};
|
|
3429
|
+
},
|
|
3430
|
+
{
|
|
3431
|
+
"name": "seasonMembership";
|
|
3432
|
+
"docs": [
|
|
3433
|
+
"SeasonMembership PDA - scoped to token_mint (MIZD) for Sunpool mode."
|
|
3434
|
+
];
|
|
3435
|
+
"writable": true;
|
|
3436
|
+
},
|
|
3062
3437
|
{
|
|
3063
3438
|
"name": "sunpool";
|
|
3064
3439
|
"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."
|
|
3440
|
+
"Global Sunpool PDA (shared across all seasons for this token mint)."
|
|
3072
3441
|
];
|
|
3073
3442
|
"writable": true;
|
|
3074
3443
|
"pda": {
|
|
@@ -3107,8 +3476,10 @@ export type ProofOfTake = {
|
|
|
3107
3476
|
},
|
|
3108
3477
|
{
|
|
3109
3478
|
"name": "seasonDepositVault";
|
|
3479
|
+
"docs": [
|
|
3480
|
+
"Season deposit vault for MIZD."
|
|
3481
|
+
];
|
|
3110
3482
|
"writable": true;
|
|
3111
|
-
"optional": true;
|
|
3112
3483
|
"pda": {
|
|
3113
3484
|
"seeds": [
|
|
3114
3485
|
{
|
|
@@ -3162,8 +3533,10 @@ export type ProofOfTake = {
|
|
|
3162
3533
|
},
|
|
3163
3534
|
{
|
|
3164
3535
|
"name": "userJoinCredit";
|
|
3536
|
+
"docs": [
|
|
3537
|
+
"User join credit PDA."
|
|
3538
|
+
];
|
|
3165
3539
|
"writable": true;
|
|
3166
|
-
"optional": true;
|
|
3167
3540
|
"pda": {
|
|
3168
3541
|
"seeds": [
|
|
3169
3542
|
{
|
|
@@ -3196,8 +3569,10 @@ export type ProofOfTake = {
|
|
|
3196
3569
|
},
|
|
3197
3570
|
{
|
|
3198
3571
|
"name": "userJoinCreditVault";
|
|
3572
|
+
"docs": [
|
|
3573
|
+
"User join credit vault (ATA for MIZD)."
|
|
3574
|
+
];
|
|
3199
3575
|
"writable": true;
|
|
3200
|
-
"optional": true;
|
|
3201
3576
|
"pda": {
|
|
3202
3577
|
"seeds": [
|
|
3203
3578
|
{
|
|
@@ -3287,12 +3662,15 @@ export type ProofOfTake = {
|
|
|
3287
3662
|
},
|
|
3288
3663
|
{
|
|
3289
3664
|
"name": "mizdMint";
|
|
3665
|
+
"docs": [
|
|
3666
|
+
"MIZD mint."
|
|
3667
|
+
];
|
|
3290
3668
|
"address": "mizdS9fDNUKWZcXBeRhJoJQHJJmsTeF4fFRyPdXWv99";
|
|
3291
3669
|
},
|
|
3292
3670
|
{
|
|
3293
3671
|
"name": "tokenMint";
|
|
3294
3672
|
"docs": [
|
|
3295
|
-
"Token mint this season is scoped to (
|
|
3673
|
+
"Token mint this season is scoped to (MIZD for Sunpool)."
|
|
3296
3674
|
];
|
|
3297
3675
|
},
|
|
3298
3676
|
{
|
|
@@ -3303,8 +3681,10 @@ export type ProofOfTake = {
|
|
|
3303
3681
|
},
|
|
3304
3682
|
{
|
|
3305
3683
|
"name": "rootAdminTokenAccount";
|
|
3684
|
+
"docs": [
|
|
3685
|
+
"Root admin MIZD token account."
|
|
3686
|
+
];
|
|
3306
3687
|
"writable": true;
|
|
3307
|
-
"optional": true;
|
|
3308
3688
|
"pda": {
|
|
3309
3689
|
"seeds": [
|
|
3310
3690
|
{
|
|
@@ -3395,10 +3775,9 @@ export type ProofOfTake = {
|
|
|
3395
3775
|
{
|
|
3396
3776
|
"name": "userTokenAccount";
|
|
3397
3777
|
"docs": [
|
|
3398
|
-
"User MIZD
|
|
3778
|
+
"User MIZD token account."
|
|
3399
3779
|
];
|
|
3400
3780
|
"writable": true;
|
|
3401
|
-
"optional": true;
|
|
3402
3781
|
"pda": {
|
|
3403
3782
|
"seeds": [
|
|
3404
3783
|
{
|
|
@@ -3499,12 +3878,6 @@ export type ProofOfTake = {
|
|
|
3499
3878
|
"name": "tokenProgram";
|
|
3500
3879
|
"address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA";
|
|
3501
3880
|
},
|
|
3502
|
-
{
|
|
3503
|
-
"name": "token2022Program";
|
|
3504
|
-
"docs": [
|
|
3505
|
-
"Token-2022 program for the launchpad token mint."
|
|
3506
|
-
];
|
|
3507
|
-
},
|
|
3508
3881
|
{
|
|
3509
3882
|
"name": "systemProgram";
|
|
3510
3883
|
"address": "11111111111111111111111111111111";
|
|
@@ -3531,22 +3904,6 @@ export type ProofOfTake = {
|
|
|
3531
3904
|
"name": "star";
|
|
3532
3905
|
"type": "bool";
|
|
3533
3906
|
},
|
|
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
3907
|
{
|
|
3551
3908
|
"name": "starFlagPrompt";
|
|
3552
3909
|
"type": "string";
|
|
@@ -3554,10 +3911,6 @@ export type ProofOfTake = {
|
|
|
3554
3911
|
{
|
|
3555
3912
|
"name": "symbol";
|
|
3556
3913
|
"type": "string";
|
|
3557
|
-
},
|
|
3558
|
-
{
|
|
3559
|
-
"name": "forceNewLaunchpadMint";
|
|
3560
|
-
"type": "bool";
|
|
3561
3914
|
}
|
|
3562
3915
|
];
|
|
3563
3916
|
},
|
|
@@ -5765,6 +6118,21 @@ export type ProofOfTake = {
|
|
|
5765
6118
|
"code": 6077;
|
|
5766
6119
|
"name": "invalidSunpoolTokenMint";
|
|
5767
6120
|
"msg": "Invalid sunpool token mint: does not match the stored mint in Sunpool";
|
|
6121
|
+
},
|
|
6122
|
+
{
|
|
6123
|
+
"code": 6078;
|
|
6124
|
+
"name": "seasonAlreadyInitialized";
|
|
6125
|
+
"msg": "Season is already initialized";
|
|
6126
|
+
},
|
|
6127
|
+
{
|
|
6128
|
+
"code": 6079;
|
|
6129
|
+
"name": "moonpoolAlreadyInitialized";
|
|
6130
|
+
"msg": "Moonpool is already initialized";
|
|
6131
|
+
},
|
|
6132
|
+
{
|
|
6133
|
+
"code": 6080;
|
|
6134
|
+
"name": "moonpoolNotInitialized";
|
|
6135
|
+
"msg": "Moonpool is not initialized (use create_moonpool first)";
|
|
5768
6136
|
}
|
|
5769
6137
|
];
|
|
5770
6138
|
"types": [
|
|
@@ -6425,7 +6793,7 @@ export type ProofOfTake = {
|
|
|
6425
6793
|
"- x: real SOL reserve (lamports in treasury minus rent minimum)",
|
|
6426
6794
|
"- y: token reserve (`token_reserve_units`)",
|
|
6427
6795
|
"",
|
|
6428
|
-
"
|
|
6796
|
+
"Each Moonpool is uniquely identified by its `launchpad_token_mint`."
|
|
6429
6797
|
];
|
|
6430
6798
|
"type": {
|
|
6431
6799
|
"kind": "struct";
|
|
@@ -6433,22 +6801,16 @@ export type ProofOfTake = {
|
|
|
6433
6801
|
{
|
|
6434
6802
|
"name": "id";
|
|
6435
6803
|
"docs": [
|
|
6436
|
-
"Moonpool ID. Currently always 1 (singleton per token mint)."
|
|
6804
|
+
"Moonpool ID. Currently always 1 (singleton per launchpad token mint)."
|
|
6437
6805
|
];
|
|
6438
6806
|
"type": "u8";
|
|
6439
6807
|
},
|
|
6440
|
-
{
|
|
6441
|
-
"name": "tokenMint";
|
|
6442
|
-
"docs": [
|
|
6443
|
-
"The token mint this Moonpool is scoped to (e.g., MIZD)."
|
|
6444
|
-
];
|
|
6445
|
-
"type": "pubkey";
|
|
6446
|
-
},
|
|
6447
6808
|
{
|
|
6448
6809
|
"name": "launchpadTokenMint";
|
|
6449
6810
|
"docs": [
|
|
6450
6811
|
"The SPL Token-2022 mint created for launchpad tokens.",
|
|
6451
|
-
"This mint's authority is the Moonpool PDA itself."
|
|
6812
|
+
"This mint's authority is the Moonpool PDA itself.",
|
|
6813
|
+
"This is also the unique identifier for this Moonpool."
|
|
6452
6814
|
];
|
|
6453
6815
|
"type": "pubkey";
|
|
6454
6816
|
},
|