@pump-fun/pump-sdk 1.19.0 → 1.20.0-devnet.2

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/index.d.mts CHANGED
@@ -509,41 +509,8 @@ type Pump = {
509
509
  "path": "bondingCurve";
510
510
  },
511
511
  {
512
- "kind": "const";
513
- "value": [
514
- 6,
515
- 221,
516
- 246,
517
- 225,
518
- 215,
519
- 101,
520
- 161,
521
- 147,
522
- 217,
523
- 203,
524
- 225,
525
- 70,
526
- 206,
527
- 235,
528
- 121,
529
- 172,
530
- 28,
531
- 180,
532
- 133,
533
- 237,
534
- 95,
535
- 91,
536
- 55,
537
- 145,
538
- 58,
539
- 140,
540
- 245,
541
- 133,
542
- 126,
543
- 255,
544
- 0,
545
- 169
546
- ];
512
+ "kind": "account";
513
+ "path": "tokenProgram";
547
514
  },
548
515
  {
549
516
  "kind": "account";
@@ -604,7 +571,6 @@ type Pump = {
604
571
  },
605
572
  {
606
573
  "name": "tokenProgram";
607
- "address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA";
608
574
  },
609
575
  {
610
576
  "name": "creatorVault";
@@ -925,41 +891,8 @@ type Pump = {
925
891
  "path": "bondingCurve";
926
892
  },
927
893
  {
928
- "kind": "const";
929
- "value": [
930
- 6,
931
- 221,
932
- 246,
933
- 225,
934
- 215,
935
- 101,
936
- 161,
937
- 147,
938
- 217,
939
- 203,
940
- 225,
941
- 70,
942
- 206,
943
- 235,
944
- 121,
945
- 172,
946
- 28,
947
- 180,
948
- 133,
949
- 237,
950
- 95,
951
- 91,
952
- 55,
953
- 145,
954
- 58,
955
- 140,
956
- 245,
957
- 133,
958
- 126,
959
- 255,
960
- 0,
961
- 169
962
- ];
894
+ "kind": "account";
895
+ "path": "tokenProgram";
963
896
  },
964
897
  {
965
898
  "kind": "account";
@@ -1020,7 +953,6 @@ type Pump = {
1020
953
  },
1021
954
  {
1022
955
  "name": "tokenProgram";
1023
- "address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA";
1024
956
  },
1025
957
  {
1026
958
  "name": "creatorVault";
@@ -2027,48 +1959,38 @@ type Pump = {
2027
1959
  ];
2028
1960
  },
2029
1961
  {
2030
- "name": "extendAccount";
1962
+ "name": "createV2";
2031
1963
  "docs": [
2032
- "Extends the size of program-owned accounts"
1964
+ "Creates a new spl-22 coin and bonding curve."
2033
1965
  ];
2034
1966
  "discriminator": [
2035
- 234,
2036
- 102,
2037
- 194,
2038
- 203,
2039
- 150,
2040
- 72,
2041
- 62,
2042
- 229
1967
+ 214,
1968
+ 144,
1969
+ 76,
1970
+ 236,
1971
+ 95,
1972
+ 139,
1973
+ 49,
1974
+ 180
2043
1975
  ];
2044
1976
  "accounts": [
2045
1977
  {
2046
- "name": "account";
1978
+ "name": "mint";
2047
1979
  "writable": true;
2048
- },
2049
- {
2050
- "name": "user";
2051
1980
  "signer": true;
2052
1981
  },
2053
1982
  {
2054
- "name": "systemProgram";
2055
- "address": "11111111111111111111111111111111";
2056
- },
2057
- {
2058
- "name": "eventAuthority";
1983
+ "name": "mintAuthority";
2059
1984
  "pda": {
2060
1985
  "seeds": [
2061
1986
  {
2062
1987
  "kind": "const";
2063
1988
  "value": [
2064
- 95,
2065
- 95,
2066
- 101,
2067
- 118,
2068
- 101,
1989
+ 109,
1990
+ 105,
2069
1991
  110,
2070
1992
  116,
2071
- 95,
1993
+ 45,
2072
1994
  97,
2073
1995
  117,
2074
1996
  116,
@@ -2084,110 +2006,365 @@ type Pump = {
2084
2006
  };
2085
2007
  },
2086
2008
  {
2087
- "name": "program";
2088
- }
2089
- ];
2090
- "args": [];
2091
- },
2092
- {
2093
- "name": "initUserVolumeAccumulator";
2094
- "discriminator": [
2095
- 94,
2096
- 6,
2097
- 202,
2098
- 115,
2099
- 255,
2100
- 96,
2101
- 232,
2102
- 183
2103
- ];
2104
- "accounts": [
2105
- {
2106
- "name": "payer";
2107
- "writable": true;
2108
- "signer": true;
2109
- },
2110
- {
2111
- "name": "user";
2112
- },
2113
- {
2114
- "name": "userVolumeAccumulator";
2009
+ "name": "bondingCurve";
2115
2010
  "writable": true;
2116
2011
  "pda": {
2117
2012
  "seeds": [
2118
2013
  {
2119
2014
  "kind": "const";
2120
2015
  "value": [
2121
- 117,
2122
- 115,
2123
- 101,
2124
- 114,
2125
- 95,
2126
- 118,
2016
+ 98,
2127
2017
  111,
2128
- 108,
2129
- 117,
2130
- 109,
2131
- 101,
2132
- 95,
2133
- 97,
2134
- 99,
2018
+ 110,
2019
+ 100,
2020
+ 105,
2021
+ 110,
2022
+ 103,
2023
+ 45,
2135
2024
  99,
2136
2025
  117,
2137
- 109,
2138
- 117,
2139
- 108,
2140
- 97,
2141
- 116,
2142
- 111,
2143
- 114
2026
+ 114,
2027
+ 118,
2028
+ 101
2144
2029
  ];
2145
2030
  },
2146
2031
  {
2147
2032
  "kind": "account";
2148
- "path": "user";
2033
+ "path": "mint";
2149
2034
  }
2150
2035
  ];
2151
2036
  };
2152
2037
  },
2153
2038
  {
2154
- "name": "systemProgram";
2155
- "address": "11111111111111111111111111111111";
2039
+ "name": "associatedBondingCurve";
2040
+ "writable": true;
2041
+ "pda": {
2042
+ "seeds": [
2043
+ {
2044
+ "kind": "account";
2045
+ "path": "bondingCurve";
2046
+ },
2047
+ {
2048
+ "kind": "account";
2049
+ "path": "tokenProgram";
2050
+ },
2051
+ {
2052
+ "kind": "account";
2053
+ "path": "mint";
2054
+ }
2055
+ ];
2056
+ "program": {
2057
+ "kind": "const";
2058
+ "value": [
2059
+ 140,
2060
+ 151,
2061
+ 37,
2062
+ 143,
2063
+ 78,
2064
+ 36,
2065
+ 137,
2066
+ 241,
2067
+ 187,
2068
+ 61,
2069
+ 16,
2070
+ 41,
2071
+ 20,
2072
+ 142,
2073
+ 13,
2074
+ 131,
2075
+ 11,
2076
+ 90,
2077
+ 19,
2078
+ 153,
2079
+ 218,
2080
+ 255,
2081
+ 16,
2082
+ 132,
2083
+ 4,
2084
+ 142,
2085
+ 123,
2086
+ 216,
2087
+ 219,
2088
+ 233,
2089
+ 248,
2090
+ 89
2091
+ ];
2092
+ };
2093
+ };
2156
2094
  },
2157
2095
  {
2158
- "name": "eventAuthority";
2096
+ "name": "global";
2159
2097
  "pda": {
2160
2098
  "seeds": [
2161
2099
  {
2162
2100
  "kind": "const";
2163
2101
  "value": [
2164
- 95,
2165
- 95,
2166
- 101,
2167
- 118,
2168
- 101,
2169
- 110,
2170
- 116,
2171
- 95,
2172
- 97,
2173
- 117,
2174
- 116,
2175
- 104,
2102
+ 103,
2103
+ 108,
2176
2104
  111,
2177
- 114,
2178
- 105,
2179
- 116,
2180
- 121
2105
+ 98,
2106
+ 97,
2107
+ 108
2181
2108
  ];
2182
2109
  }
2183
2110
  ];
2184
2111
  };
2185
2112
  },
2186
2113
  {
2187
- "name": "program";
2188
- }
2189
- ];
2190
- "args": [];
2114
+ "name": "user";
2115
+ "writable": true;
2116
+ "signer": true;
2117
+ },
2118
+ {
2119
+ "name": "systemProgram";
2120
+ "address": "11111111111111111111111111111111";
2121
+ },
2122
+ {
2123
+ "name": "tokenProgram";
2124
+ "address": "TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb";
2125
+ },
2126
+ {
2127
+ "name": "associatedTokenProgram";
2128
+ "address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL";
2129
+ },
2130
+ {
2131
+ "name": "mayhemProgramId";
2132
+ "writable": true;
2133
+ },
2134
+ {
2135
+ "name": "globalParams";
2136
+ "writable": true;
2137
+ },
2138
+ {
2139
+ "name": "solVault";
2140
+ "writable": true;
2141
+ },
2142
+ {
2143
+ "name": "mayhemState";
2144
+ "writable": true;
2145
+ },
2146
+ {
2147
+ "name": "mayhemTokenVault";
2148
+ "writable": true;
2149
+ },
2150
+ {
2151
+ "name": "eventAuthority";
2152
+ "pda": {
2153
+ "seeds": [
2154
+ {
2155
+ "kind": "const";
2156
+ "value": [
2157
+ 95,
2158
+ 95,
2159
+ 101,
2160
+ 118,
2161
+ 101,
2162
+ 110,
2163
+ 116,
2164
+ 95,
2165
+ 97,
2166
+ 117,
2167
+ 116,
2168
+ 104,
2169
+ 111,
2170
+ 114,
2171
+ 105,
2172
+ 116,
2173
+ 121
2174
+ ];
2175
+ }
2176
+ ];
2177
+ };
2178
+ },
2179
+ {
2180
+ "name": "program";
2181
+ }
2182
+ ];
2183
+ "args": [
2184
+ {
2185
+ "name": "name";
2186
+ "type": "string";
2187
+ },
2188
+ {
2189
+ "name": "symbol";
2190
+ "type": "string";
2191
+ },
2192
+ {
2193
+ "name": "uri";
2194
+ "type": "string";
2195
+ },
2196
+ {
2197
+ "name": "creator";
2198
+ "type": "pubkey";
2199
+ },
2200
+ {
2201
+ "name": "isMayhemMode";
2202
+ "type": "bool";
2203
+ }
2204
+ ];
2205
+ },
2206
+ {
2207
+ "name": "extendAccount";
2208
+ "docs": [
2209
+ "Extends the size of program-owned accounts"
2210
+ ];
2211
+ "discriminator": [
2212
+ 234,
2213
+ 102,
2214
+ 194,
2215
+ 203,
2216
+ 150,
2217
+ 72,
2218
+ 62,
2219
+ 229
2220
+ ];
2221
+ "accounts": [
2222
+ {
2223
+ "name": "account";
2224
+ "writable": true;
2225
+ },
2226
+ {
2227
+ "name": "user";
2228
+ "signer": true;
2229
+ },
2230
+ {
2231
+ "name": "systemProgram";
2232
+ "address": "11111111111111111111111111111111";
2233
+ },
2234
+ {
2235
+ "name": "eventAuthority";
2236
+ "pda": {
2237
+ "seeds": [
2238
+ {
2239
+ "kind": "const";
2240
+ "value": [
2241
+ 95,
2242
+ 95,
2243
+ 101,
2244
+ 118,
2245
+ 101,
2246
+ 110,
2247
+ 116,
2248
+ 95,
2249
+ 97,
2250
+ 117,
2251
+ 116,
2252
+ 104,
2253
+ 111,
2254
+ 114,
2255
+ 105,
2256
+ 116,
2257
+ 121
2258
+ ];
2259
+ }
2260
+ ];
2261
+ };
2262
+ },
2263
+ {
2264
+ "name": "program";
2265
+ }
2266
+ ];
2267
+ "args": [];
2268
+ },
2269
+ {
2270
+ "name": "initUserVolumeAccumulator";
2271
+ "discriminator": [
2272
+ 94,
2273
+ 6,
2274
+ 202,
2275
+ 115,
2276
+ 255,
2277
+ 96,
2278
+ 232,
2279
+ 183
2280
+ ];
2281
+ "accounts": [
2282
+ {
2283
+ "name": "payer";
2284
+ "writable": true;
2285
+ "signer": true;
2286
+ },
2287
+ {
2288
+ "name": "user";
2289
+ },
2290
+ {
2291
+ "name": "userVolumeAccumulator";
2292
+ "writable": true;
2293
+ "pda": {
2294
+ "seeds": [
2295
+ {
2296
+ "kind": "const";
2297
+ "value": [
2298
+ 117,
2299
+ 115,
2300
+ 101,
2301
+ 114,
2302
+ 95,
2303
+ 118,
2304
+ 111,
2305
+ 108,
2306
+ 117,
2307
+ 109,
2308
+ 101,
2309
+ 95,
2310
+ 97,
2311
+ 99,
2312
+ 99,
2313
+ 117,
2314
+ 109,
2315
+ 117,
2316
+ 108,
2317
+ 97,
2318
+ 116,
2319
+ 111,
2320
+ 114
2321
+ ];
2322
+ },
2323
+ {
2324
+ "kind": "account";
2325
+ "path": "user";
2326
+ }
2327
+ ];
2328
+ };
2329
+ },
2330
+ {
2331
+ "name": "systemProgram";
2332
+ "address": "11111111111111111111111111111111";
2333
+ },
2334
+ {
2335
+ "name": "eventAuthority";
2336
+ "pda": {
2337
+ "seeds": [
2338
+ {
2339
+ "kind": "const";
2340
+ "value": [
2341
+ 95,
2342
+ 95,
2343
+ 101,
2344
+ 118,
2345
+ 101,
2346
+ 110,
2347
+ 116,
2348
+ 95,
2349
+ 97,
2350
+ 117,
2351
+ 116,
2352
+ 104,
2353
+ 111,
2354
+ 114,
2355
+ 105,
2356
+ 116,
2357
+ 121
2358
+ ];
2359
+ }
2360
+ ];
2361
+ };
2362
+ },
2363
+ {
2364
+ "name": "program";
2365
+ }
2366
+ ];
2367
+ "args": [];
2191
2368
  },
2192
2369
  {
2193
2370
  "name": "initialize";
@@ -2320,41 +2497,8 @@ type Pump = {
2320
2497
  "path": "bondingCurve";
2321
2498
  },
2322
2499
  {
2323
- "kind": "const";
2324
- "value": [
2325
- 6,
2326
- 221,
2327
- 246,
2328
- 225,
2329
- 215,
2330
- 101,
2331
- 161,
2332
- 147,
2333
- 217,
2334
- 203,
2335
- 225,
2336
- 70,
2337
- 206,
2338
- 235,
2339
- 121,
2340
- 172,
2341
- 28,
2342
- 180,
2343
- 133,
2344
- 237,
2345
- 95,
2346
- 91,
2347
- 55,
2348
- 145,
2349
- 58,
2350
- 140,
2351
- 245,
2352
- 133,
2353
- 126,
2354
- 255,
2355
- 0,
2356
- 169
2357
- ];
2500
+ "kind": "account";
2501
+ "path": "mint";
2358
2502
  },
2359
2503
  {
2360
2504
  "kind": "account";
@@ -2498,7 +2642,7 @@ type Pump = {
2498
2642
  },
2499
2643
  {
2500
2644
  "kind": "account";
2501
- "path": "tokenProgram";
2645
+ "path": "mint";
2502
2646
  },
2503
2647
  {
2504
2648
  "kind": "account";
@@ -2636,7 +2780,7 @@ type Pump = {
2636
2780
  },
2637
2781
  {
2638
2782
  "kind": "account";
2639
- "path": "tokenProgram";
2783
+ "path": "mint";
2640
2784
  },
2641
2785
  {
2642
2786
  "kind": "account";
@@ -2830,41 +2974,8 @@ type Pump = {
2830
2974
  "path": "bondingCurve";
2831
2975
  },
2832
2976
  {
2833
- "kind": "const";
2834
- "value": [
2835
- 6,
2836
- 221,
2837
- 246,
2838
- 225,
2839
- 215,
2840
- 101,
2841
- 161,
2842
- 147,
2843
- 217,
2844
- 203,
2845
- 225,
2846
- 70,
2847
- 206,
2848
- 235,
2849
- 121,
2850
- 172,
2851
- 28,
2852
- 180,
2853
- 133,
2854
- 237,
2855
- 95,
2856
- 91,
2857
- 55,
2858
- 145,
2859
- 58,
2860
- 140,
2861
- 245,
2862
- 133,
2863
- 126,
2864
- 255,
2865
- 0,
2866
- 169
2867
- ];
2977
+ "kind": "account";
2978
+ "path": "tokenProgram";
2868
2979
  },
2869
2980
  {
2870
2981
  "kind": "account";
@@ -2956,7 +3067,6 @@ type Pump = {
2956
3067
  },
2957
3068
  {
2958
3069
  "name": "tokenProgram";
2959
- "address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA";
2960
3070
  },
2961
3071
  {
2962
3072
  "name": "eventAuthority";
@@ -3542,69 +3652,359 @@ type Pump = {
3542
3652
  ];
3543
3653
  "args": [
3544
3654
  {
3545
- "name": "initialVirtualTokenReserves";
3546
- "type": "u64";
3547
- },
3548
- {
3549
- "name": "initialVirtualSolReserves";
3550
- "type": "u64";
3551
- },
3552
- {
3553
- "name": "initialRealTokenReserves";
3554
- "type": "u64";
3555
- },
3556
- {
3557
- "name": "tokenTotalSupply";
3558
- "type": "u64";
3559
- },
3560
- {
3561
- "name": "feeBasisPoints";
3562
- "type": "u64";
3563
- },
3564
- {
3565
- "name": "withdrawAuthority";
3566
- "type": "pubkey";
3567
- },
3568
- {
3569
- "name": "enableMigrate";
3655
+ "name": "initialVirtualTokenReserves";
3656
+ "type": "u64";
3657
+ },
3658
+ {
3659
+ "name": "initialVirtualSolReserves";
3660
+ "type": "u64";
3661
+ },
3662
+ {
3663
+ "name": "initialRealTokenReserves";
3664
+ "type": "u64";
3665
+ },
3666
+ {
3667
+ "name": "tokenTotalSupply";
3668
+ "type": "u64";
3669
+ },
3670
+ {
3671
+ "name": "feeBasisPoints";
3672
+ "type": "u64";
3673
+ },
3674
+ {
3675
+ "name": "withdrawAuthority";
3676
+ "type": "pubkey";
3677
+ },
3678
+ {
3679
+ "name": "enableMigrate";
3680
+ "type": "bool";
3681
+ },
3682
+ {
3683
+ "name": "poolMigrationFee";
3684
+ "type": "u64";
3685
+ },
3686
+ {
3687
+ "name": "creatorFeeBasisPoints";
3688
+ "type": "u64";
3689
+ },
3690
+ {
3691
+ "name": "setCreatorAuthority";
3692
+ "type": "pubkey";
3693
+ },
3694
+ {
3695
+ "name": "adminSetCreatorAuthority";
3696
+ "type": "pubkey";
3697
+ }
3698
+ ];
3699
+ },
3700
+ {
3701
+ "name": "setReservedFeeRecipient";
3702
+ "discriminator": [
3703
+ 207,
3704
+ 189,
3705
+ 178,
3706
+ 71,
3707
+ 167,
3708
+ 122,
3709
+ 68,
3710
+ 180
3711
+ ];
3712
+ "accounts": [
3713
+ {
3714
+ "name": "global";
3715
+ "writable": true;
3716
+ "pda": {
3717
+ "seeds": [
3718
+ {
3719
+ "kind": "const";
3720
+ "value": [
3721
+ 103,
3722
+ 108,
3723
+ 111,
3724
+ 98,
3725
+ 97,
3726
+ 108
3727
+ ];
3728
+ }
3729
+ ];
3730
+ };
3731
+ },
3732
+ {
3733
+ "name": "authority";
3734
+ "writable": true;
3735
+ "signer": true;
3736
+ "relations": [
3737
+ "global"
3738
+ ];
3739
+ },
3740
+ {
3741
+ "name": "eventAuthority";
3742
+ "pda": {
3743
+ "seeds": [
3744
+ {
3745
+ "kind": "const";
3746
+ "value": [
3747
+ 95,
3748
+ 95,
3749
+ 101,
3750
+ 118,
3751
+ 101,
3752
+ 110,
3753
+ 116,
3754
+ 95,
3755
+ 97,
3756
+ 117,
3757
+ 116,
3758
+ 104,
3759
+ 111,
3760
+ 114,
3761
+ 105,
3762
+ 116,
3763
+ 121
3764
+ ];
3765
+ }
3766
+ ];
3767
+ };
3768
+ },
3769
+ {
3770
+ "name": "program";
3771
+ }
3772
+ ];
3773
+ "args": [
3774
+ {
3775
+ "name": "reservedFeeRecipient";
3776
+ "type": "pubkey";
3777
+ },
3778
+ {
3779
+ "name": "whitelistPda";
3780
+ "type": "pubkey";
3781
+ }
3782
+ ];
3783
+ },
3784
+ {
3785
+ "name": "syncUserVolumeAccumulator";
3786
+ "discriminator": [
3787
+ 86,
3788
+ 31,
3789
+ 192,
3790
+ 87,
3791
+ 163,
3792
+ 87,
3793
+ 79,
3794
+ 238
3795
+ ];
3796
+ "accounts": [
3797
+ {
3798
+ "name": "user";
3799
+ },
3800
+ {
3801
+ "name": "globalVolumeAccumulator";
3802
+ "pda": {
3803
+ "seeds": [
3804
+ {
3805
+ "kind": "const";
3806
+ "value": [
3807
+ 103,
3808
+ 108,
3809
+ 111,
3810
+ 98,
3811
+ 97,
3812
+ 108,
3813
+ 95,
3814
+ 118,
3815
+ 111,
3816
+ 108,
3817
+ 117,
3818
+ 109,
3819
+ 101,
3820
+ 95,
3821
+ 97,
3822
+ 99,
3823
+ 99,
3824
+ 117,
3825
+ 109,
3826
+ 117,
3827
+ 108,
3828
+ 97,
3829
+ 116,
3830
+ 111,
3831
+ 114
3832
+ ];
3833
+ }
3834
+ ];
3835
+ };
3836
+ },
3837
+ {
3838
+ "name": "userVolumeAccumulator";
3839
+ "writable": true;
3840
+ "pda": {
3841
+ "seeds": [
3842
+ {
3843
+ "kind": "const";
3844
+ "value": [
3845
+ 117,
3846
+ 115,
3847
+ 101,
3848
+ 114,
3849
+ 95,
3850
+ 118,
3851
+ 111,
3852
+ 108,
3853
+ 117,
3854
+ 109,
3855
+ 101,
3856
+ 95,
3857
+ 97,
3858
+ 99,
3859
+ 99,
3860
+ 117,
3861
+ 109,
3862
+ 117,
3863
+ 108,
3864
+ 97,
3865
+ 116,
3866
+ 111,
3867
+ 114
3868
+ ];
3869
+ },
3870
+ {
3871
+ "kind": "account";
3872
+ "path": "user";
3873
+ }
3874
+ ];
3875
+ };
3876
+ },
3877
+ {
3878
+ "name": "eventAuthority";
3879
+ "pda": {
3880
+ "seeds": [
3881
+ {
3882
+ "kind": "const";
3883
+ "value": [
3884
+ 95,
3885
+ 95,
3886
+ 101,
3887
+ 118,
3888
+ 101,
3889
+ 110,
3890
+ 116,
3891
+ 95,
3892
+ 97,
3893
+ 117,
3894
+ 116,
3895
+ 104,
3896
+ 111,
3897
+ 114,
3898
+ 105,
3899
+ 116,
3900
+ 121
3901
+ ];
3902
+ }
3903
+ ];
3904
+ };
3905
+ },
3906
+ {
3907
+ "name": "program";
3908
+ }
3909
+ ];
3910
+ "args": [];
3911
+ },
3912
+ {
3913
+ "name": "toggleCreateV2";
3914
+ "discriminator": [
3915
+ 28,
3916
+ 255,
3917
+ 230,
3918
+ 240,
3919
+ 172,
3920
+ 107,
3921
+ 203,
3922
+ 171
3923
+ ];
3924
+ "accounts": [
3925
+ {
3926
+ "name": "global";
3927
+ "writable": true;
3928
+ "pda": {
3929
+ "seeds": [
3930
+ {
3931
+ "kind": "const";
3932
+ "value": [
3933
+ 103,
3934
+ 108,
3935
+ 111,
3936
+ 98,
3937
+ 97,
3938
+ 108
3939
+ ];
3940
+ }
3941
+ ];
3942
+ };
3943
+ },
3944
+ {
3945
+ "name": "authority";
3946
+ "writable": true;
3947
+ "signer": true;
3948
+ "relations": [
3949
+ "global"
3950
+ ];
3951
+ },
3952
+ {
3953
+ "name": "eventAuthority";
3954
+ "pda": {
3955
+ "seeds": [
3956
+ {
3957
+ "kind": "const";
3958
+ "value": [
3959
+ 95,
3960
+ 95,
3961
+ 101,
3962
+ 118,
3963
+ 101,
3964
+ 110,
3965
+ 116,
3966
+ 95,
3967
+ 97,
3968
+ 117,
3969
+ 116,
3970
+ 104,
3971
+ 111,
3972
+ 114,
3973
+ 105,
3974
+ 116,
3975
+ 121
3976
+ ];
3977
+ }
3978
+ ];
3979
+ };
3980
+ },
3981
+ {
3982
+ "name": "program";
3983
+ }
3984
+ ];
3985
+ "args": [
3986
+ {
3987
+ "name": "enabled";
3570
3988
  "type": "bool";
3571
- },
3572
- {
3573
- "name": "poolMigrationFee";
3574
- "type": "u64";
3575
- },
3576
- {
3577
- "name": "creatorFeeBasisPoints";
3578
- "type": "u64";
3579
- },
3580
- {
3581
- "name": "setCreatorAuthority";
3582
- "type": "pubkey";
3583
- },
3584
- {
3585
- "name": "adminSetCreatorAuthority";
3586
- "type": "pubkey";
3587
3989
  }
3588
3990
  ];
3589
3991
  },
3590
3992
  {
3591
- "name": "syncUserVolumeAccumulator";
3993
+ "name": "toggleMayhemMode";
3592
3994
  "discriminator": [
3593
- 86,
3995
+ 1,
3996
+ 9,
3997
+ 111,
3998
+ 208,
3999
+ 100,
3594
4000
  31,
3595
- 192,
3596
- 87,
3597
- 163,
3598
- 87,
3599
- 79,
3600
- 238
4001
+ 255,
4002
+ 163
3601
4003
  ];
3602
4004
  "accounts": [
3603
4005
  {
3604
- "name": "user";
3605
- },
3606
- {
3607
- "name": "globalVolumeAccumulator";
4006
+ "name": "global";
4007
+ "writable": true;
3608
4008
  "pda": {
3609
4009
  "seeds": [
3610
4010
  {
@@ -3615,70 +4015,19 @@ type Pump = {
3615
4015
  111,
3616
4016
  98,
3617
4017
  97,
3618
- 108,
3619
- 95,
3620
- 118,
3621
- 111,
3622
- 108,
3623
- 117,
3624
- 109,
3625
- 101,
3626
- 95,
3627
- 97,
3628
- 99,
3629
- 99,
3630
- 117,
3631
- 109,
3632
- 117,
3633
- 108,
3634
- 97,
3635
- 116,
3636
- 111,
3637
- 114
4018
+ 108
3638
4019
  ];
3639
4020
  }
3640
4021
  ];
3641
4022
  };
3642
4023
  },
3643
4024
  {
3644
- "name": "userVolumeAccumulator";
4025
+ "name": "authority";
3645
4026
  "writable": true;
3646
- "pda": {
3647
- "seeds": [
3648
- {
3649
- "kind": "const";
3650
- "value": [
3651
- 117,
3652
- 115,
3653
- 101,
3654
- 114,
3655
- 95,
3656
- 118,
3657
- 111,
3658
- 108,
3659
- 117,
3660
- 109,
3661
- 101,
3662
- 95,
3663
- 97,
3664
- 99,
3665
- 99,
3666
- 117,
3667
- 109,
3668
- 117,
3669
- 108,
3670
- 97,
3671
- 116,
3672
- 111,
3673
- 114
3674
- ];
3675
- },
3676
- {
3677
- "kind": "account";
3678
- "path": "user";
3679
- }
3680
- ];
3681
- };
4027
+ "signer": true;
4028
+ "relations": [
4029
+ "global"
4030
+ ];
3682
4031
  },
3683
4032
  {
3684
4033
  "name": "eventAuthority";
@@ -3713,7 +4062,12 @@ type Pump = {
3713
4062
  "name": "program";
3714
4063
  }
3715
4064
  ];
3716
- "args": [];
4065
+ "args": [
4066
+ {
4067
+ "name": "enabled";
4068
+ "type": "bool";
4069
+ }
4070
+ ];
3717
4071
  },
3718
4072
  {
3719
4073
  "name": "updateGlobalAuthority";
@@ -4289,6 +4643,30 @@ type Pump = {
4289
4643
  "code": 6042;
4290
4644
  "name": "buySlippageBelowMinTokensOut";
4291
4645
  "msg": "Slippage: Would buy less tokens than expected min_tokens_out";
4646
+ },
4647
+ {
4648
+ "code": 6043;
4649
+ "name": "nameTooLong";
4650
+ },
4651
+ {
4652
+ "code": 6044;
4653
+ "name": "symbolTooLong";
4654
+ },
4655
+ {
4656
+ "code": 6045;
4657
+ "name": "uriTooLong";
4658
+ },
4659
+ {
4660
+ "code": 6046;
4661
+ "name": "createV2Disabled";
4662
+ },
4663
+ {
4664
+ "code": 6047;
4665
+ "name": "cpitializeMayhemFailed";
4666
+ },
4667
+ {
4668
+ "code": 6048;
4669
+ "name": "mayhemModeDisabled";
4292
4670
  }
4293
4671
  ];
4294
4672
  "types": [
@@ -4404,6 +4782,10 @@ type Pump = {
4404
4782
  {
4405
4783
  "name": "creator";
4406
4784
  "type": "pubkey";
4785
+ },
4786
+ {
4787
+ "name": "isMayhemMode";
4788
+ "type": "bool";
4407
4789
  }
4408
4790
  ];
4409
4791
  };
@@ -4608,6 +4990,14 @@ type Pump = {
4608
4990
  {
4609
4991
  "name": "tokenTotalSupply";
4610
4992
  "type": "u64";
4993
+ },
4994
+ {
4995
+ "name": "tokenProgram";
4996
+ "type": "pubkey";
4997
+ },
4998
+ {
4999
+ "name": "isMayhemMode";
5000
+ "type": "bool";
4611
5001
  }
4612
5002
  ];
4613
5003
  };
@@ -4789,6 +5179,22 @@ type Pump = {
4789
5179
  {
4790
5180
  "name": "adminSetCreatorAuthority";
4791
5181
  "type": "pubkey";
5182
+ },
5183
+ {
5184
+ "name": "createV2Enabled";
5185
+ "type": "bool";
5186
+ },
5187
+ {
5188
+ "name": "whitelistPda";
5189
+ "type": "pubkey";
5190
+ },
5191
+ {
5192
+ "name": "reservedFeeRecipient";
5193
+ "type": "pubkey";
5194
+ },
5195
+ {
5196
+ "name": "mayhemModeEnabled";
5197
+ "type": "bool";
4792
5198
  }
4793
5199
  ];
4794
5200
  };
@@ -5671,41 +6077,8 @@ var instructions = [
5671
6077
  path: "bonding_curve"
5672
6078
  },
5673
6079
  {
5674
- kind: "const",
5675
- value: [
5676
- 6,
5677
- 221,
5678
- 246,
5679
- 225,
5680
- 215,
5681
- 101,
5682
- 161,
5683
- 147,
5684
- 217,
5685
- 203,
5686
- 225,
5687
- 70,
5688
- 206,
5689
- 235,
5690
- 121,
5691
- 172,
5692
- 28,
5693
- 180,
5694
- 133,
5695
- 237,
5696
- 95,
5697
- 91,
5698
- 55,
5699
- 145,
5700
- 58,
5701
- 140,
5702
- 245,
5703
- 133,
5704
- 126,
5705
- 255,
5706
- 0,
5707
- 169
5708
- ]
6080
+ kind: "account",
6081
+ path: "token_program"
5709
6082
  },
5710
6083
  {
5711
6084
  kind: "account",
@@ -5765,8 +6138,7 @@ var instructions = [
5765
6138
  address: "11111111111111111111111111111111"
5766
6139
  },
5767
6140
  {
5768
- name: "token_program",
5769
- address: "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"
6141
+ name: "token_program"
5770
6142
  },
5771
6143
  {
5772
6144
  name: "creator_vault",
@@ -6074,59 +6446,26 @@ var instructions = [
6074
6446
  kind: "account",
6075
6447
  path: "mint"
6076
6448
  }
6077
- ]
6078
- }
6079
- },
6080
- {
6081
- name: "associated_bonding_curve",
6082
- writable: true,
6083
- pda: {
6084
- seeds: [
6085
- {
6086
- kind: "account",
6087
- path: "bonding_curve"
6088
- },
6089
- {
6090
- kind: "const",
6091
- value: [
6092
- 6,
6093
- 221,
6094
- 246,
6095
- 225,
6096
- 215,
6097
- 101,
6098
- 161,
6099
- 147,
6100
- 217,
6101
- 203,
6102
- 225,
6103
- 70,
6104
- 206,
6105
- 235,
6106
- 121,
6107
- 172,
6108
- 28,
6109
- 180,
6110
- 133,
6111
- 237,
6112
- 95,
6113
- 91,
6114
- 55,
6115
- 145,
6116
- 58,
6117
- 140,
6118
- 245,
6119
- 133,
6120
- 126,
6121
- 255,
6122
- 0,
6123
- 169
6124
- ]
6125
- },
6126
- {
6127
- kind: "account",
6128
- path: "mint"
6129
- }
6449
+ ]
6450
+ }
6451
+ },
6452
+ {
6453
+ name: "associated_bonding_curve",
6454
+ writable: true,
6455
+ pda: {
6456
+ seeds: [
6457
+ {
6458
+ kind: "account",
6459
+ path: "bonding_curve"
6460
+ },
6461
+ {
6462
+ kind: "account",
6463
+ path: "token_program"
6464
+ },
6465
+ {
6466
+ kind: "account",
6467
+ path: "mint"
6468
+ }
6130
6469
  ],
6131
6470
  program: {
6132
6471
  kind: "const",
@@ -6181,8 +6520,7 @@ var instructions = [
6181
6520
  address: "11111111111111111111111111111111"
6182
6521
  },
6183
6522
  {
6184
- name: "token_program",
6185
- address: "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"
6523
+ name: "token_program"
6186
6524
  },
6187
6525
  {
6188
6526
  name: "creator_vault",
@@ -7092,30 +7430,255 @@ var instructions = [
7092
7430
  88,
7093
7431
  184,
7094
7432
  108,
7095
- 115,
7096
- 26,
7097
- 160,
7098
- 253,
7099
- 181,
7100
- 73,
7101
- 182,
7102
- 209,
7103
- 188,
7104
- 3,
7105
- 248,
7106
- 41,
7107
- 70
7433
+ 115,
7434
+ 26,
7435
+ 160,
7436
+ 253,
7437
+ 181,
7438
+ 73,
7439
+ 182,
7440
+ 209,
7441
+ 188,
7442
+ 3,
7443
+ 248,
7444
+ 41,
7445
+ 70
7446
+ ]
7447
+ },
7448
+ {
7449
+ kind: "account",
7450
+ path: "mint"
7451
+ }
7452
+ ],
7453
+ program: {
7454
+ kind: "account",
7455
+ path: "mpl_token_metadata"
7456
+ }
7457
+ }
7458
+ },
7459
+ {
7460
+ name: "user",
7461
+ writable: true,
7462
+ signer: true
7463
+ },
7464
+ {
7465
+ name: "system_program",
7466
+ address: "11111111111111111111111111111111"
7467
+ },
7468
+ {
7469
+ name: "token_program",
7470
+ address: "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"
7471
+ },
7472
+ {
7473
+ name: "associated_token_program",
7474
+ address: "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL"
7475
+ },
7476
+ {
7477
+ name: "rent",
7478
+ address: "SysvarRent111111111111111111111111111111111"
7479
+ },
7480
+ {
7481
+ name: "event_authority",
7482
+ pda: {
7483
+ seeds: [
7484
+ {
7485
+ kind: "const",
7486
+ value: [
7487
+ 95,
7488
+ 95,
7489
+ 101,
7490
+ 118,
7491
+ 101,
7492
+ 110,
7493
+ 116,
7494
+ 95,
7495
+ 97,
7496
+ 117,
7497
+ 116,
7498
+ 104,
7499
+ 111,
7500
+ 114,
7501
+ 105,
7502
+ 116,
7503
+ 121
7504
+ ]
7505
+ }
7506
+ ]
7507
+ }
7508
+ },
7509
+ {
7510
+ name: "program"
7511
+ }
7512
+ ],
7513
+ args: [
7514
+ {
7515
+ name: "name",
7516
+ type: "string"
7517
+ },
7518
+ {
7519
+ name: "symbol",
7520
+ type: "string"
7521
+ },
7522
+ {
7523
+ name: "uri",
7524
+ type: "string"
7525
+ },
7526
+ {
7527
+ name: "creator",
7528
+ type: "pubkey"
7529
+ }
7530
+ ]
7531
+ },
7532
+ {
7533
+ name: "create_v2",
7534
+ docs: [
7535
+ "Creates a new spl-22 coin and bonding curve."
7536
+ ],
7537
+ discriminator: [
7538
+ 214,
7539
+ 144,
7540
+ 76,
7541
+ 236,
7542
+ 95,
7543
+ 139,
7544
+ 49,
7545
+ 180
7546
+ ],
7547
+ accounts: [
7548
+ {
7549
+ name: "mint",
7550
+ writable: true,
7551
+ signer: true
7552
+ },
7553
+ {
7554
+ name: "mint_authority",
7555
+ pda: {
7556
+ seeds: [
7557
+ {
7558
+ kind: "const",
7559
+ value: [
7560
+ 109,
7561
+ 105,
7562
+ 110,
7563
+ 116,
7564
+ 45,
7565
+ 97,
7566
+ 117,
7567
+ 116,
7568
+ 104,
7569
+ 111,
7570
+ 114,
7571
+ 105,
7572
+ 116,
7573
+ 121
7574
+ ]
7575
+ }
7576
+ ]
7577
+ }
7578
+ },
7579
+ {
7580
+ name: "bonding_curve",
7581
+ writable: true,
7582
+ pda: {
7583
+ seeds: [
7584
+ {
7585
+ kind: "const",
7586
+ value: [
7587
+ 98,
7588
+ 111,
7589
+ 110,
7590
+ 100,
7591
+ 105,
7592
+ 110,
7593
+ 103,
7594
+ 45,
7595
+ 99,
7596
+ 117,
7597
+ 114,
7598
+ 118,
7599
+ 101
7600
+ ]
7601
+ },
7602
+ {
7603
+ kind: "account",
7604
+ path: "mint"
7605
+ }
7606
+ ]
7607
+ }
7608
+ },
7609
+ {
7610
+ name: "associated_bonding_curve",
7611
+ writable: true,
7612
+ pda: {
7613
+ seeds: [
7614
+ {
7615
+ kind: "account",
7616
+ path: "bonding_curve"
7617
+ },
7618
+ {
7619
+ kind: "account",
7620
+ path: "token_program"
7621
+ },
7622
+ {
7623
+ kind: "account",
7624
+ path: "mint"
7625
+ }
7626
+ ],
7627
+ program: {
7628
+ kind: "const",
7629
+ value: [
7630
+ 140,
7631
+ 151,
7632
+ 37,
7633
+ 143,
7634
+ 78,
7635
+ 36,
7636
+ 137,
7637
+ 241,
7638
+ 187,
7639
+ 61,
7640
+ 16,
7641
+ 41,
7642
+ 20,
7643
+ 142,
7644
+ 13,
7645
+ 131,
7646
+ 11,
7647
+ 90,
7648
+ 19,
7649
+ 153,
7650
+ 218,
7651
+ 255,
7652
+ 16,
7653
+ 132,
7654
+ 4,
7655
+ 142,
7656
+ 123,
7657
+ 216,
7658
+ 219,
7659
+ 233,
7660
+ 248,
7661
+ 89
7662
+ ]
7663
+ }
7664
+ }
7665
+ },
7666
+ {
7667
+ name: "global",
7668
+ pda: {
7669
+ seeds: [
7670
+ {
7671
+ kind: "const",
7672
+ value: [
7673
+ 103,
7674
+ 108,
7675
+ 111,
7676
+ 98,
7677
+ 97,
7678
+ 108
7108
7679
  ]
7109
- },
7110
- {
7111
- kind: "account",
7112
- path: "mint"
7113
7680
  }
7114
- ],
7115
- program: {
7116
- kind: "account",
7117
- path: "mpl_token_metadata"
7118
- }
7681
+ ]
7119
7682
  }
7120
7683
  },
7121
7684
  {
@@ -7129,15 +7692,31 @@ var instructions = [
7129
7692
  },
7130
7693
  {
7131
7694
  name: "token_program",
7132
- address: "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"
7695
+ address: "TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb"
7133
7696
  },
7134
7697
  {
7135
7698
  name: "associated_token_program",
7136
7699
  address: "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL"
7137
7700
  },
7138
7701
  {
7139
- name: "rent",
7140
- address: "SysvarRent111111111111111111111111111111111"
7702
+ name: "mayhem_program_id",
7703
+ writable: true
7704
+ },
7705
+ {
7706
+ name: "global_params",
7707
+ writable: true
7708
+ },
7709
+ {
7710
+ name: "sol_vault",
7711
+ writable: true
7712
+ },
7713
+ {
7714
+ name: "mayhem_state",
7715
+ writable: true
7716
+ },
7717
+ {
7718
+ name: "mayhem_token_vault",
7719
+ writable: true
7141
7720
  },
7142
7721
  {
7143
7722
  name: "event_authority",
@@ -7188,6 +7767,10 @@ var instructions = [
7188
7767
  {
7189
7768
  name: "creator",
7190
7769
  type: "pubkey"
7770
+ },
7771
+ {
7772
+ name: "is_mayhem_mode",
7773
+ type: "bool"
7191
7774
  }
7192
7775
  ]
7193
7776
  },
@@ -7488,41 +8071,8 @@ var instructions = [
7488
8071
  path: "bonding_curve"
7489
8072
  },
7490
8073
  {
7491
- kind: "const",
7492
- value: [
7493
- 6,
7494
- 221,
7495
- 246,
7496
- 225,
7497
- 215,
7498
- 101,
7499
- 161,
7500
- 147,
7501
- 217,
7502
- 203,
7503
- 225,
7504
- 70,
7505
- 206,
7506
- 235,
7507
- 121,
7508
- 172,
7509
- 28,
7510
- 180,
7511
- 133,
7512
- 237,
7513
- 95,
7514
- 91,
7515
- 55,
7516
- 145,
7517
- 58,
7518
- 140,
7519
- 245,
7520
- 133,
7521
- 126,
7522
- 255,
7523
- 0,
7524
- 169
7525
- ]
8074
+ kind: "account",
8075
+ path: "mint"
7526
8076
  },
7527
8077
  {
7528
8078
  kind: "account",
@@ -7666,7 +8216,7 @@ var instructions = [
7666
8216
  },
7667
8217
  {
7668
8218
  kind: "account",
7669
- path: "token_program"
8219
+ path: "mint"
7670
8220
  },
7671
8221
  {
7672
8222
  kind: "account",
@@ -7804,7 +8354,7 @@ var instructions = [
7804
8354
  },
7805
8355
  {
7806
8356
  kind: "account",
7807
- path: "token_program"
8357
+ path: "mint"
7808
8358
  },
7809
8359
  {
7810
8360
  kind: "account",
@@ -7999,41 +8549,8 @@ var instructions = [
7999
8549
  path: "bonding_curve"
8000
8550
  },
8001
8551
  {
8002
- kind: "const",
8003
- value: [
8004
- 6,
8005
- 221,
8006
- 246,
8007
- 225,
8008
- 215,
8009
- 101,
8010
- 161,
8011
- 147,
8012
- 217,
8013
- 203,
8014
- 225,
8015
- 70,
8016
- 206,
8017
- 235,
8018
- 121,
8019
- 172,
8020
- 28,
8021
- 180,
8022
- 133,
8023
- 237,
8024
- 95,
8025
- 91,
8026
- 55,
8027
- 145,
8028
- 58,
8029
- 140,
8030
- 245,
8031
- 133,
8032
- 126,
8033
- 255,
8034
- 0,
8035
- 169
8036
- ]
8552
+ kind: "account",
8553
+ path: "token_program"
8037
8554
  },
8038
8555
  {
8039
8556
  kind: "account",
@@ -8124,8 +8641,7 @@ var instructions = [
8124
8641
  }
8125
8642
  },
8126
8643
  {
8127
- name: "token_program",
8128
- address: "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"
8644
+ name: "token_program"
8129
8645
  },
8130
8646
  {
8131
8647
  name: "event_authority",
@@ -8630,24 +9146,144 @@ var instructions = [
8630
9146
  {
8631
9147
  name: "program"
8632
9148
  }
8633
- ],
8634
- args: [
9149
+ ],
9150
+ args: [
9151
+ ]
9152
+ },
9153
+ {
9154
+ name: "set_params",
9155
+ docs: [
9156
+ "Sets the global state parameters."
9157
+ ],
9158
+ discriminator: [
9159
+ 27,
9160
+ 234,
9161
+ 178,
9162
+ 52,
9163
+ 147,
9164
+ 2,
9165
+ 187,
9166
+ 141
9167
+ ],
9168
+ accounts: [
9169
+ {
9170
+ name: "global",
9171
+ writable: true,
9172
+ pda: {
9173
+ seeds: [
9174
+ {
9175
+ kind: "const",
9176
+ value: [
9177
+ 103,
9178
+ 108,
9179
+ 111,
9180
+ 98,
9181
+ 97,
9182
+ 108
9183
+ ]
9184
+ }
9185
+ ]
9186
+ }
9187
+ },
9188
+ {
9189
+ name: "authority",
9190
+ writable: true,
9191
+ signer: true,
9192
+ relations: [
9193
+ "global"
9194
+ ]
9195
+ },
9196
+ {
9197
+ name: "event_authority",
9198
+ pda: {
9199
+ seeds: [
9200
+ {
9201
+ kind: "const",
9202
+ value: [
9203
+ 95,
9204
+ 95,
9205
+ 101,
9206
+ 118,
9207
+ 101,
9208
+ 110,
9209
+ 116,
9210
+ 95,
9211
+ 97,
9212
+ 117,
9213
+ 116,
9214
+ 104,
9215
+ 111,
9216
+ 114,
9217
+ 105,
9218
+ 116,
9219
+ 121
9220
+ ]
9221
+ }
9222
+ ]
9223
+ }
9224
+ },
9225
+ {
9226
+ name: "program"
9227
+ }
9228
+ ],
9229
+ args: [
9230
+ {
9231
+ name: "initial_virtual_token_reserves",
9232
+ type: "u64"
9233
+ },
9234
+ {
9235
+ name: "initial_virtual_sol_reserves",
9236
+ type: "u64"
9237
+ },
9238
+ {
9239
+ name: "initial_real_token_reserves",
9240
+ type: "u64"
9241
+ },
9242
+ {
9243
+ name: "token_total_supply",
9244
+ type: "u64"
9245
+ },
9246
+ {
9247
+ name: "fee_basis_points",
9248
+ type: "u64"
9249
+ },
9250
+ {
9251
+ name: "withdraw_authority",
9252
+ type: "pubkey"
9253
+ },
9254
+ {
9255
+ name: "enable_migrate",
9256
+ type: "bool"
9257
+ },
9258
+ {
9259
+ name: "pool_migration_fee",
9260
+ type: "u64"
9261
+ },
9262
+ {
9263
+ name: "creator_fee_basis_points",
9264
+ type: "u64"
9265
+ },
9266
+ {
9267
+ name: "set_creator_authority",
9268
+ type: "pubkey"
9269
+ },
9270
+ {
9271
+ name: "admin_set_creator_authority",
9272
+ type: "pubkey"
9273
+ }
8635
9274
  ]
8636
9275
  },
8637
9276
  {
8638
- name: "set_params",
8639
- docs: [
8640
- "Sets the global state parameters."
8641
- ],
9277
+ name: "set_reserved_fee_recipient",
8642
9278
  discriminator: [
8643
- 27,
8644
- 234,
9279
+ 207,
9280
+ 189,
8645
9281
  178,
8646
- 52,
8647
- 147,
8648
- 2,
8649
- 187,
8650
- 141
9282
+ 71,
9283
+ 167,
9284
+ 122,
9285
+ 68,
9286
+ 180
8651
9287
  ],
8652
9288
  accounts: [
8653
9289
  {
@@ -8712,47 +9348,11 @@ var instructions = [
8712
9348
  ],
8713
9349
  args: [
8714
9350
  {
8715
- name: "initial_virtual_token_reserves",
8716
- type: "u64"
8717
- },
8718
- {
8719
- name: "initial_virtual_sol_reserves",
8720
- type: "u64"
8721
- },
8722
- {
8723
- name: "initial_real_token_reserves",
8724
- type: "u64"
8725
- },
8726
- {
8727
- name: "token_total_supply",
8728
- type: "u64"
8729
- },
8730
- {
8731
- name: "fee_basis_points",
8732
- type: "u64"
8733
- },
8734
- {
8735
- name: "withdraw_authority",
8736
- type: "pubkey"
8737
- },
8738
- {
8739
- name: "enable_migrate",
8740
- type: "bool"
8741
- },
8742
- {
8743
- name: "pool_migration_fee",
8744
- type: "u64"
8745
- },
8746
- {
8747
- name: "creator_fee_basis_points",
8748
- type: "u64"
8749
- },
8750
- {
8751
- name: "set_creator_authority",
9351
+ name: "reserved_fee_recipient",
8752
9352
  type: "pubkey"
8753
9353
  },
8754
9354
  {
8755
- name: "admin_set_creator_authority",
9355
+ name: "whitelist_pda",
8756
9356
  type: "pubkey"
8757
9357
  }
8758
9358
  ]
@@ -8886,6 +9486,166 @@ var instructions = [
8886
9486
  args: [
8887
9487
  ]
8888
9488
  },
9489
+ {
9490
+ name: "toggle_create_v2",
9491
+ discriminator: [
9492
+ 28,
9493
+ 255,
9494
+ 230,
9495
+ 240,
9496
+ 172,
9497
+ 107,
9498
+ 203,
9499
+ 171
9500
+ ],
9501
+ accounts: [
9502
+ {
9503
+ name: "global",
9504
+ writable: true,
9505
+ pda: {
9506
+ seeds: [
9507
+ {
9508
+ kind: "const",
9509
+ value: [
9510
+ 103,
9511
+ 108,
9512
+ 111,
9513
+ 98,
9514
+ 97,
9515
+ 108
9516
+ ]
9517
+ }
9518
+ ]
9519
+ }
9520
+ },
9521
+ {
9522
+ name: "authority",
9523
+ writable: true,
9524
+ signer: true,
9525
+ relations: [
9526
+ "global"
9527
+ ]
9528
+ },
9529
+ {
9530
+ name: "event_authority",
9531
+ pda: {
9532
+ seeds: [
9533
+ {
9534
+ kind: "const",
9535
+ value: [
9536
+ 95,
9537
+ 95,
9538
+ 101,
9539
+ 118,
9540
+ 101,
9541
+ 110,
9542
+ 116,
9543
+ 95,
9544
+ 97,
9545
+ 117,
9546
+ 116,
9547
+ 104,
9548
+ 111,
9549
+ 114,
9550
+ 105,
9551
+ 116,
9552
+ 121
9553
+ ]
9554
+ }
9555
+ ]
9556
+ }
9557
+ },
9558
+ {
9559
+ name: "program"
9560
+ }
9561
+ ],
9562
+ args: [
9563
+ {
9564
+ name: "enabled",
9565
+ type: "bool"
9566
+ }
9567
+ ]
9568
+ },
9569
+ {
9570
+ name: "toggle_mayhem_mode",
9571
+ discriminator: [
9572
+ 1,
9573
+ 9,
9574
+ 111,
9575
+ 208,
9576
+ 100,
9577
+ 31,
9578
+ 255,
9579
+ 163
9580
+ ],
9581
+ accounts: [
9582
+ {
9583
+ name: "global",
9584
+ writable: true,
9585
+ pda: {
9586
+ seeds: [
9587
+ {
9588
+ kind: "const",
9589
+ value: [
9590
+ 103,
9591
+ 108,
9592
+ 111,
9593
+ 98,
9594
+ 97,
9595
+ 108
9596
+ ]
9597
+ }
9598
+ ]
9599
+ }
9600
+ },
9601
+ {
9602
+ name: "authority",
9603
+ writable: true,
9604
+ signer: true,
9605
+ relations: [
9606
+ "global"
9607
+ ]
9608
+ },
9609
+ {
9610
+ name: "event_authority",
9611
+ pda: {
9612
+ seeds: [
9613
+ {
9614
+ kind: "const",
9615
+ value: [
9616
+ 95,
9617
+ 95,
9618
+ 101,
9619
+ 118,
9620
+ 101,
9621
+ 110,
9622
+ 116,
9623
+ 95,
9624
+ 97,
9625
+ 117,
9626
+ 116,
9627
+ 104,
9628
+ 111,
9629
+ 114,
9630
+ 105,
9631
+ 116,
9632
+ 121
9633
+ ]
9634
+ }
9635
+ ]
9636
+ }
9637
+ },
9638
+ {
9639
+ name: "program"
9640
+ }
9641
+ ],
9642
+ args: [
9643
+ {
9644
+ name: "enabled",
9645
+ type: "bool"
9646
+ }
9647
+ ]
9648
+ },
8889
9649
  {
8890
9650
  name: "update_global_authority",
8891
9651
  discriminator: [
@@ -9461,6 +10221,30 @@ var errors = [
9461
10221
  code: 6042,
9462
10222
  name: "BuySlippageBelowMinTokensOut",
9463
10223
  msg: "Slippage: Would buy less tokens than expected min_tokens_out"
10224
+ },
10225
+ {
10226
+ code: 6043,
10227
+ name: "NameTooLong"
10228
+ },
10229
+ {
10230
+ code: 6044,
10231
+ name: "SymbolTooLong"
10232
+ },
10233
+ {
10234
+ code: 6045,
10235
+ name: "UriTooLong"
10236
+ },
10237
+ {
10238
+ code: 6046,
10239
+ name: "CreateV2Disabled"
10240
+ },
10241
+ {
10242
+ code: 6047,
10243
+ name: "CpitializeMayhemFailed"
10244
+ },
10245
+ {
10246
+ code: 6048,
10247
+ name: "MayhemModeDisabled"
9464
10248
  }
9465
10249
  ];
9466
10250
  var types = [
@@ -9576,6 +10360,10 @@ var types = [
9576
10360
  {
9577
10361
  name: "creator",
9578
10362
  type: "pubkey"
10363
+ },
10364
+ {
10365
+ name: "is_mayhem_mode",
10366
+ type: "bool"
9579
10367
  }
9580
10368
  ]
9581
10369
  }
@@ -9780,6 +10568,14 @@ var types = [
9780
10568
  {
9781
10569
  name: "token_total_supply",
9782
10570
  type: "u64"
10571
+ },
10572
+ {
10573
+ name: "token_program",
10574
+ type: "pubkey"
10575
+ },
10576
+ {
10577
+ name: "is_mayhem_mode",
10578
+ type: "bool"
9783
10579
  }
9784
10580
  ]
9785
10581
  }
@@ -9961,6 +10757,22 @@ var types = [
9961
10757
  {
9962
10758
  name: "admin_set_creator_authority",
9963
10759
  type: "pubkey"
10760
+ },
10761
+ {
10762
+ name: "create_v2_enabled",
10763
+ type: "bool"
10764
+ },
10765
+ {
10766
+ name: "whitelist_pda",
10767
+ type: "pubkey"
10768
+ },
10769
+ {
10770
+ name: "reserved_fee_recipient",
10771
+ type: "pubkey"
10772
+ },
10773
+ {
10774
+ name: "mayhem_mode_enabled",
10775
+ type: "bool"
9964
10776
  }
9965
10777
  ]
9966
10778
  }
@@ -10367,6 +11179,10 @@ interface Global {
10367
11179
  feeRecipients: PublicKey[];
10368
11180
  setCreatorAuthority: PublicKey;
10369
11181
  adminSetCreatorAuthority: PublicKey;
11182
+ createV2Enabled: boolean;
11183
+ whitelistPda: PublicKey;
11184
+ reservedFeeRecipient: PublicKey;
11185
+ mayhemModeEnabled: boolean;
10370
11186
  }
10371
11187
  interface BondingCurve {
10372
11188
  virtualTokenReserves: BN;
@@ -10376,6 +11192,7 @@ interface BondingCurve {
10376
11192
  tokenTotalSupply: BN;
10377
11193
  complete: boolean;
10378
11194
  creator: PublicKey;
11195
+ isMayhemMode: boolean;
10379
11196
  }
10380
11197
  interface GlobalVolumeAccumulator {
10381
11198
  startTime: BN;
@@ -10450,6 +11267,10 @@ declare function pumpPoolAuthorityPda(mint: PublicKey): PublicKey;
10450
11267
  declare const CANONICAL_POOL_INDEX = 0;
10451
11268
  declare function canonicalPumpPoolPda(mint: PublicKey): PublicKey;
10452
11269
  declare function userVolumeAccumulatorPda(user: PublicKey): PublicKey;
11270
+ declare const getGlobalParamsPda: () => PublicKey;
11271
+ declare const getMayhemStatePda: (mint: PublicKey) => PublicKey;
11272
+ declare const getSolVaultPda: () => PublicKey;
11273
+ declare const getTokenVaultPda: (mintPubkey: PublicKey) => PublicKey;
10453
11274
 
10454
11275
  declare function getPumpProgram(connection: Connection): Program<Pump>;
10455
11276
  declare const PUMP_PROGRAM_ID: PublicKey;
@@ -10465,6 +11286,9 @@ declare class PumpSdk {
10465
11286
  decodeGlobalVolumeAccumulator(accountInfo: AccountInfo<Buffer>): GlobalVolumeAccumulator;
10466
11287
  decodeUserVolumeAccumulator(accountInfo: AccountInfo<Buffer>): UserVolumeAccumulator;
10467
11288
  decodeUserVolumeAccumulatorNullable(accountInfo: AccountInfo<Buffer>): UserVolumeAccumulator | null;
11289
+ /**
11290
+ * @deprecated Use `createInstructionV2` instead.
11291
+ */
10468
11292
  createInstruction({ mint, name, symbol, uri, creator, user, }: {
10469
11293
  mint: PublicKey;
10470
11294
  name: string;
@@ -10473,7 +11297,16 @@ declare class PumpSdk {
10473
11297
  creator: PublicKey;
10474
11298
  user: PublicKey;
10475
11299
  }): Promise<TransactionInstruction>;
10476
- buyInstructions({ global, bondingCurveAccountInfo, bondingCurve, associatedUserAccountInfo, mint, user, amount, solAmount, slippage, }: {
11300
+ createV2Instruction({ mint, name, symbol, uri, creator, user, mayhemMode }: {
11301
+ mint: PublicKey;
11302
+ name: string;
11303
+ symbol: string;
11304
+ uri: string;
11305
+ creator: PublicKey;
11306
+ user: PublicKey;
11307
+ mayhemMode: boolean;
11308
+ }): Promise<TransactionInstruction>;
11309
+ buyInstructions({ global, bondingCurveAccountInfo, bondingCurve, associatedUserAccountInfo, mint, user, amount, solAmount, slippage, tokenProgram, }: {
10477
11310
  global: Global;
10478
11311
  bondingCurveAccountInfo: AccountInfo<Buffer>;
10479
11312
  bondingCurve: BondingCurve;
@@ -10483,7 +11316,23 @@ declare class PumpSdk {
10483
11316
  amount: BN;
10484
11317
  solAmount: BN;
10485
11318
  slippage: number;
11319
+ tokenProgram: PublicKey;
11320
+ }): Promise<TransactionInstruction[]>;
11321
+ createV2AndBuyInstructions({ global, mint, name, symbol, uri, creator, user, amount, solAmount, mayhemMode, }: {
11322
+ global: Global;
11323
+ mint: PublicKey;
11324
+ name: string;
11325
+ symbol: string;
11326
+ uri: string;
11327
+ creator: PublicKey;
11328
+ user: PublicKey;
11329
+ amount: BN;
11330
+ solAmount: BN;
11331
+ mayhemMode: boolean;
10486
11332
  }): Promise<TransactionInstruction[]>;
11333
+ /**
11334
+ * @deprecated Use `createV2AndBuyInstructions` instead.
11335
+ */
10487
11336
  createAndBuyInstructions({ global, mint, name, symbol, uri, creator, user, amount, solAmount, }: {
10488
11337
  global: Global;
10489
11338
  mint: PublicKey;
@@ -10496,7 +11345,7 @@ declare class PumpSdk {
10496
11345
  solAmount: BN;
10497
11346
  }): Promise<TransactionInstruction[]>;
10498
11347
  private buyInstruction;
10499
- sellInstructions({ global, bondingCurveAccountInfo, bondingCurve, mint, user, amount, solAmount, slippage, }: {
11348
+ sellInstructions({ global, bondingCurveAccountInfo, bondingCurve, mint, user, amount, solAmount, slippage, tokenProgram, mayhemMode }: {
10500
11349
  global: Global;
10501
11350
  bondingCurveAccountInfo: AccountInfo<Buffer>;
10502
11351
  bondingCurve: BondingCurve;
@@ -10505,15 +11354,18 @@ declare class PumpSdk {
10505
11354
  amount: BN;
10506
11355
  solAmount: BN;
10507
11356
  slippage: number;
11357
+ tokenProgram: PublicKey;
11358
+ mayhemMode: boolean;
10508
11359
  }): Promise<TransactionInstruction[]>;
10509
11360
  extendAccountInstruction({ account, user, }: {
10510
11361
  account: PublicKey;
10511
11362
  user: PublicKey;
10512
11363
  }): Promise<TransactionInstruction>;
10513
- migrateInstruction({ withdrawAuthority, mint, user, }: {
11364
+ migrateInstruction({ withdrawAuthority, mint, user, tokenProgram }: {
10514
11365
  withdrawAuthority: PublicKey;
10515
11366
  mint: PublicKey;
10516
11367
  user: PublicKey;
11368
+ tokenProgram: PublicKey;
10517
11369
  }): Promise<TransactionInstruction>;
10518
11370
  syncUserVolumeAccumulator(user: PublicKey): Promise<TransactionInstruction>;
10519
11371
  syncUserVolumeAccumulatorBothPrograms(user: PublicKey): Promise<TransactionInstruction[]>;
@@ -10527,22 +11379,24 @@ declare class PumpSdk {
10527
11379
  user: PublicKey;
10528
11380
  }): Promise<TransactionInstruction>;
10529
11381
  closeUserVolumeAccumulator(user: PublicKey): Promise<TransactionInstruction>;
10530
- getBuyInstructionRaw({ user, mint, creator, amount, solAmount, feeRecipient, }: {
11382
+ getBuyInstructionRaw({ user, mint, creator, amount, solAmount, feeRecipient, tokenProgram, }: {
10531
11383
  user: PublicKey;
10532
11384
  mint: PublicKey;
10533
11385
  creator: PublicKey;
10534
11386
  amount: BN;
10535
11387
  solAmount: BN;
10536
11388
  feeRecipient: PublicKey;
11389
+ tokenProgram?: PublicKey;
10537
11390
  }): Promise<TransactionInstruction>;
10538
11391
  private getBuyInstructionInternal;
10539
- getSellInstructionRaw({ user, mint, creator, amount, solAmount, feeRecipient, }: {
11392
+ getSellInstructionRaw({ user, mint, creator, amount, solAmount, feeRecipient, tokenProgram, }: {
10540
11393
  user: PublicKey;
10541
11394
  mint: PublicKey;
10542
11395
  creator: PublicKey;
10543
11396
  amount: BN;
10544
11397
  solAmount: BN;
10545
11398
  feeRecipient: PublicKey;
11399
+ tokenProgram: PublicKey;
10546
11400
  }): Promise<TransactionInstruction>;
10547
11401
  private getSellInstructionInternal;
10548
11402
  }
@@ -10558,12 +11412,12 @@ declare class OnlinePumpSdk {
10558
11412
  fetchGlobal(): Promise<Global>;
10559
11413
  fetchFeeConfig(): Promise<FeeConfig>;
10560
11414
  fetchBondingCurve(mint: PublicKeyInitData): Promise<BondingCurve>;
10561
- fetchBuyState(mint: PublicKey, user: PublicKey): Promise<{
11415
+ fetchBuyState(mint: PublicKey, user: PublicKey, tokenProgram?: PublicKey): Promise<{
10562
11416
  bondingCurveAccountInfo: _solana_web3_js.AccountInfo<Buffer<ArrayBufferLike>>;
10563
11417
  bondingCurve: BondingCurve;
10564
11418
  associatedUserAccountInfo: _solana_web3_js.AccountInfo<Buffer<ArrayBufferLike>> | null;
10565
11419
  }>;
10566
- fetchSellState(mint: PublicKey, user: PublicKey): Promise<{
11420
+ fetchSellState(mint: PublicKey, user: PublicKey, tokenProgram?: PublicKey): Promise<{
10567
11421
  bondingCurveAccountInfo: _solana_web3_js.AccountInfo<Buffer<ArrayBufferLike>>;
10568
11422
  bondingCurve: BondingCurve;
10569
11423
  }>;
@@ -10588,4 +11442,4 @@ declare class OnlinePumpSdk {
10588
11442
  declare function totalUnclaimedTokens(globalVolumeAccumulator: GlobalVolumeAccumulator, userVolumeAccumulator: UserVolumeAccumulator, currentTimestamp?: number): BN;
10589
11443
  declare function currentDayTokens(globalVolumeAccumulator: GlobalVolumeAccumulator, userVolumeAccumulator: UserVolumeAccumulator, currentTimestamp?: number): BN;
10590
11444
 
10591
- export { BONDING_CURVE_NEW_SIZE, type BondingCurve, CANONICAL_POOL_INDEX, type FeeConfig, GLOBAL_PDA, GLOBAL_VOLUME_ACCUMULATOR_PDA, type Global, type GlobalVolumeAccumulator, OnlinePumpSdk, PUMP_AMM_PROGRAM_ID, PUMP_FEE_CONFIG_PDA, PUMP_PROGRAM_ID, PUMP_SDK, type Pump, PumpSdk, type UserVolumeAccumulator, type UserVolumeAccumulatorTotalStats, bondingCurveMarketCap, bondingCurvePda, canonicalPumpPoolPda, creatorVaultPda, currentDayTokens, getBuySolAmountFromTokenAmount, getBuyTokenAmountFromSolAmount, getPumpProgram, getSellSolAmountFromTokenAmount, newBondingCurve, pump as pumpIdl, pumpPoolAuthorityPda, totalUnclaimedTokens, userVolumeAccumulatorPda };
11445
+ export { BONDING_CURVE_NEW_SIZE, type BondingCurve, CANONICAL_POOL_INDEX, type FeeConfig, GLOBAL_PDA, GLOBAL_VOLUME_ACCUMULATOR_PDA, type Global, type GlobalVolumeAccumulator, OnlinePumpSdk, PUMP_AMM_PROGRAM_ID, PUMP_FEE_CONFIG_PDA, PUMP_PROGRAM_ID, PUMP_SDK, type Pump, PumpSdk, type UserVolumeAccumulator, type UserVolumeAccumulatorTotalStats, bondingCurveMarketCap, bondingCurvePda, canonicalPumpPoolPda, creatorVaultPda, currentDayTokens, getBuySolAmountFromTokenAmount, getBuyTokenAmountFromSolAmount, getGlobalParamsPda, getMayhemStatePda, getPumpProgram, getSellSolAmountFromTokenAmount, getSolVaultPda, getTokenVaultPda, newBondingCurve, pump as pumpIdl, pumpPoolAuthorityPda, totalUnclaimedTokens, userVolumeAccumulatorPda };