@pump-fun/pump-sdk 1.22.1 → 1.23.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/esm/index.js +10320 -372
- package/dist/index.d.mts +12700 -1788
- package/dist/index.d.ts +12700 -1788
- package/dist/index.js +10316 -369
- package/package.json +1 -1
- package/src/errors.ts +52 -0
- package/src/fees.ts +10 -0
- package/src/idl/pump.json +1061 -23
- package/src/idl/pump.ts +1061 -23
- package/src/idl/pump_amm.json +5878 -0
- package/src/idl/pump_amm.ts +5884 -0
- package/src/idl/pump_fees.json +2761 -0
- package/src/idl/pump_fees.ts +2767 -0
- package/src/index.ts +11 -0
- package/src/pda.ts +35 -3
- package/src/sdk.ts +301 -21
- package/src/state.ts +28 -0
package/src/idl/pump.ts
CHANGED
|
@@ -2372,6 +2372,202 @@ export type Pump = {
|
|
|
2372
2372
|
}
|
|
2373
2373
|
]
|
|
2374
2374
|
},
|
|
2375
|
+
{
|
|
2376
|
+
"name": "distributeCreatorFees",
|
|
2377
|
+
"docs": [
|
|
2378
|
+
"Distributes creator fees to shareholders based on their share percentages",
|
|
2379
|
+
"The creator vault needs to have at least the minimum distributable amount to distribute fees",
|
|
2380
|
+
"This can be checked with the get_minimum_distributable_fee instruction"
|
|
2381
|
+
],
|
|
2382
|
+
"discriminator": [
|
|
2383
|
+
165,
|
|
2384
|
+
114,
|
|
2385
|
+
103,
|
|
2386
|
+
0,
|
|
2387
|
+
121,
|
|
2388
|
+
206,
|
|
2389
|
+
247,
|
|
2390
|
+
81
|
|
2391
|
+
],
|
|
2392
|
+
"accounts": [
|
|
2393
|
+
{
|
|
2394
|
+
"name": "mint",
|
|
2395
|
+
"relations": [
|
|
2396
|
+
"sharingConfig"
|
|
2397
|
+
]
|
|
2398
|
+
},
|
|
2399
|
+
{
|
|
2400
|
+
"name": "bondingCurve",
|
|
2401
|
+
"pda": {
|
|
2402
|
+
"seeds": [
|
|
2403
|
+
{
|
|
2404
|
+
"kind": "const",
|
|
2405
|
+
"value": [
|
|
2406
|
+
98,
|
|
2407
|
+
111,
|
|
2408
|
+
110,
|
|
2409
|
+
100,
|
|
2410
|
+
105,
|
|
2411
|
+
110,
|
|
2412
|
+
103,
|
|
2413
|
+
45,
|
|
2414
|
+
99,
|
|
2415
|
+
117,
|
|
2416
|
+
114,
|
|
2417
|
+
118,
|
|
2418
|
+
101
|
|
2419
|
+
]
|
|
2420
|
+
},
|
|
2421
|
+
{
|
|
2422
|
+
"kind": "account",
|
|
2423
|
+
"path": "mint"
|
|
2424
|
+
}
|
|
2425
|
+
]
|
|
2426
|
+
}
|
|
2427
|
+
},
|
|
2428
|
+
{
|
|
2429
|
+
"name": "sharingConfig",
|
|
2430
|
+
"pda": {
|
|
2431
|
+
"seeds": [
|
|
2432
|
+
{
|
|
2433
|
+
"kind": "const",
|
|
2434
|
+
"value": [
|
|
2435
|
+
115,
|
|
2436
|
+
104,
|
|
2437
|
+
97,
|
|
2438
|
+
114,
|
|
2439
|
+
105,
|
|
2440
|
+
110,
|
|
2441
|
+
103,
|
|
2442
|
+
45,
|
|
2443
|
+
99,
|
|
2444
|
+
111,
|
|
2445
|
+
110,
|
|
2446
|
+
102,
|
|
2447
|
+
105,
|
|
2448
|
+
103
|
|
2449
|
+
]
|
|
2450
|
+
},
|
|
2451
|
+
{
|
|
2452
|
+
"kind": "account",
|
|
2453
|
+
"path": "mint"
|
|
2454
|
+
}
|
|
2455
|
+
],
|
|
2456
|
+
"program": {
|
|
2457
|
+
"kind": "const",
|
|
2458
|
+
"value": [
|
|
2459
|
+
12,
|
|
2460
|
+
53,
|
|
2461
|
+
255,
|
|
2462
|
+
169,
|
|
2463
|
+
5,
|
|
2464
|
+
90,
|
|
2465
|
+
142,
|
|
2466
|
+
86,
|
|
2467
|
+
141,
|
|
2468
|
+
168,
|
|
2469
|
+
247,
|
|
2470
|
+
188,
|
|
2471
|
+
7,
|
|
2472
|
+
86,
|
|
2473
|
+
21,
|
|
2474
|
+
39,
|
|
2475
|
+
76,
|
|
2476
|
+
241,
|
|
2477
|
+
201,
|
|
2478
|
+
44,
|
|
2479
|
+
164,
|
|
2480
|
+
31,
|
|
2481
|
+
64,
|
|
2482
|
+
0,
|
|
2483
|
+
156,
|
|
2484
|
+
81,
|
|
2485
|
+
106,
|
|
2486
|
+
164,
|
|
2487
|
+
20,
|
|
2488
|
+
194,
|
|
2489
|
+
124,
|
|
2490
|
+
112
|
|
2491
|
+
]
|
|
2492
|
+
}
|
|
2493
|
+
}
|
|
2494
|
+
},
|
|
2495
|
+
{
|
|
2496
|
+
"name": "creatorVault",
|
|
2497
|
+
"writable": true,
|
|
2498
|
+
"pda": {
|
|
2499
|
+
"seeds": [
|
|
2500
|
+
{
|
|
2501
|
+
"kind": "const",
|
|
2502
|
+
"value": [
|
|
2503
|
+
99,
|
|
2504
|
+
114,
|
|
2505
|
+
101,
|
|
2506
|
+
97,
|
|
2507
|
+
116,
|
|
2508
|
+
111,
|
|
2509
|
+
114,
|
|
2510
|
+
45,
|
|
2511
|
+
118,
|
|
2512
|
+
97,
|
|
2513
|
+
117,
|
|
2514
|
+
108,
|
|
2515
|
+
116
|
|
2516
|
+
]
|
|
2517
|
+
},
|
|
2518
|
+
{
|
|
2519
|
+
"kind": "account",
|
|
2520
|
+
"path": "bonding_curve.creator",
|
|
2521
|
+
"account": "bondingCurve"
|
|
2522
|
+
}
|
|
2523
|
+
]
|
|
2524
|
+
}
|
|
2525
|
+
},
|
|
2526
|
+
{
|
|
2527
|
+
"name": "systemProgram",
|
|
2528
|
+
"address": "11111111111111111111111111111111"
|
|
2529
|
+
},
|
|
2530
|
+
{
|
|
2531
|
+
"name": "eventAuthority",
|
|
2532
|
+
"pda": {
|
|
2533
|
+
"seeds": [
|
|
2534
|
+
{
|
|
2535
|
+
"kind": "const",
|
|
2536
|
+
"value": [
|
|
2537
|
+
95,
|
|
2538
|
+
95,
|
|
2539
|
+
101,
|
|
2540
|
+
118,
|
|
2541
|
+
101,
|
|
2542
|
+
110,
|
|
2543
|
+
116,
|
|
2544
|
+
95,
|
|
2545
|
+
97,
|
|
2546
|
+
117,
|
|
2547
|
+
116,
|
|
2548
|
+
104,
|
|
2549
|
+
111,
|
|
2550
|
+
114,
|
|
2551
|
+
105,
|
|
2552
|
+
116,
|
|
2553
|
+
121
|
|
2554
|
+
]
|
|
2555
|
+
}
|
|
2556
|
+
]
|
|
2557
|
+
}
|
|
2558
|
+
},
|
|
2559
|
+
{
|
|
2560
|
+
"name": "program",
|
|
2561
|
+
"address": "6EF8rrecthR5Dkzon8Nwu78hRvfCKubJ14M5uBEwF6P"
|
|
2562
|
+
}
|
|
2563
|
+
],
|
|
2564
|
+
"args": [],
|
|
2565
|
+
"returns": {
|
|
2566
|
+
"defined": {
|
|
2567
|
+
"name": "distributeCreatorFeesEvent"
|
|
2568
|
+
}
|
|
2569
|
+
}
|
|
2570
|
+
},
|
|
2375
2571
|
{
|
|
2376
2572
|
"name": "extendAccount",
|
|
2377
2573
|
"docs": [
|
|
@@ -2435,6 +2631,163 @@ export type Pump = {
|
|
|
2435
2631
|
],
|
|
2436
2632
|
"args": []
|
|
2437
2633
|
},
|
|
2634
|
+
{
|
|
2635
|
+
"name": "getMinimumDistributableFee",
|
|
2636
|
+
"docs": [
|
|
2637
|
+
"Permissionless instruction to check the minimum required fees for distribution",
|
|
2638
|
+
"Returns the minimum required balance from the creator_vault and whether distribution can proceed"
|
|
2639
|
+
],
|
|
2640
|
+
"discriminator": [
|
|
2641
|
+
117,
|
|
2642
|
+
225,
|
|
2643
|
+
127,
|
|
2644
|
+
202,
|
|
2645
|
+
134,
|
|
2646
|
+
95,
|
|
2647
|
+
68,
|
|
2648
|
+
35
|
|
2649
|
+
],
|
|
2650
|
+
"accounts": [
|
|
2651
|
+
{
|
|
2652
|
+
"name": "mint",
|
|
2653
|
+
"relations": [
|
|
2654
|
+
"sharingConfig"
|
|
2655
|
+
]
|
|
2656
|
+
},
|
|
2657
|
+
{
|
|
2658
|
+
"name": "bondingCurve",
|
|
2659
|
+
"pda": {
|
|
2660
|
+
"seeds": [
|
|
2661
|
+
{
|
|
2662
|
+
"kind": "const",
|
|
2663
|
+
"value": [
|
|
2664
|
+
98,
|
|
2665
|
+
111,
|
|
2666
|
+
110,
|
|
2667
|
+
100,
|
|
2668
|
+
105,
|
|
2669
|
+
110,
|
|
2670
|
+
103,
|
|
2671
|
+
45,
|
|
2672
|
+
99,
|
|
2673
|
+
117,
|
|
2674
|
+
114,
|
|
2675
|
+
118,
|
|
2676
|
+
101
|
|
2677
|
+
]
|
|
2678
|
+
},
|
|
2679
|
+
{
|
|
2680
|
+
"kind": "account",
|
|
2681
|
+
"path": "mint"
|
|
2682
|
+
}
|
|
2683
|
+
]
|
|
2684
|
+
}
|
|
2685
|
+
},
|
|
2686
|
+
{
|
|
2687
|
+
"name": "sharingConfig",
|
|
2688
|
+
"pda": {
|
|
2689
|
+
"seeds": [
|
|
2690
|
+
{
|
|
2691
|
+
"kind": "const",
|
|
2692
|
+
"value": [
|
|
2693
|
+
115,
|
|
2694
|
+
104,
|
|
2695
|
+
97,
|
|
2696
|
+
114,
|
|
2697
|
+
105,
|
|
2698
|
+
110,
|
|
2699
|
+
103,
|
|
2700
|
+
45,
|
|
2701
|
+
99,
|
|
2702
|
+
111,
|
|
2703
|
+
110,
|
|
2704
|
+
102,
|
|
2705
|
+
105,
|
|
2706
|
+
103
|
|
2707
|
+
]
|
|
2708
|
+
},
|
|
2709
|
+
{
|
|
2710
|
+
"kind": "account",
|
|
2711
|
+
"path": "mint"
|
|
2712
|
+
}
|
|
2713
|
+
],
|
|
2714
|
+
"program": {
|
|
2715
|
+
"kind": "const",
|
|
2716
|
+
"value": [
|
|
2717
|
+
12,
|
|
2718
|
+
53,
|
|
2719
|
+
255,
|
|
2720
|
+
169,
|
|
2721
|
+
5,
|
|
2722
|
+
90,
|
|
2723
|
+
142,
|
|
2724
|
+
86,
|
|
2725
|
+
141,
|
|
2726
|
+
168,
|
|
2727
|
+
247,
|
|
2728
|
+
188,
|
|
2729
|
+
7,
|
|
2730
|
+
86,
|
|
2731
|
+
21,
|
|
2732
|
+
39,
|
|
2733
|
+
76,
|
|
2734
|
+
241,
|
|
2735
|
+
201,
|
|
2736
|
+
44,
|
|
2737
|
+
164,
|
|
2738
|
+
31,
|
|
2739
|
+
64,
|
|
2740
|
+
0,
|
|
2741
|
+
156,
|
|
2742
|
+
81,
|
|
2743
|
+
106,
|
|
2744
|
+
164,
|
|
2745
|
+
20,
|
|
2746
|
+
194,
|
|
2747
|
+
124,
|
|
2748
|
+
112
|
|
2749
|
+
]
|
|
2750
|
+
}
|
|
2751
|
+
}
|
|
2752
|
+
},
|
|
2753
|
+
{
|
|
2754
|
+
"name": "creatorVault",
|
|
2755
|
+
"pda": {
|
|
2756
|
+
"seeds": [
|
|
2757
|
+
{
|
|
2758
|
+
"kind": "const",
|
|
2759
|
+
"value": [
|
|
2760
|
+
99,
|
|
2761
|
+
114,
|
|
2762
|
+
101,
|
|
2763
|
+
97,
|
|
2764
|
+
116,
|
|
2765
|
+
111,
|
|
2766
|
+
114,
|
|
2767
|
+
45,
|
|
2768
|
+
118,
|
|
2769
|
+
97,
|
|
2770
|
+
117,
|
|
2771
|
+
108,
|
|
2772
|
+
116
|
|
2773
|
+
]
|
|
2774
|
+
},
|
|
2775
|
+
{
|
|
2776
|
+
"kind": "account",
|
|
2777
|
+
"path": "bonding_curve.creator",
|
|
2778
|
+
"account": "bondingCurve"
|
|
2779
|
+
}
|
|
2780
|
+
]
|
|
2781
|
+
}
|
|
2782
|
+
}
|
|
2783
|
+
],
|
|
2784
|
+
"args": [],
|
|
2785
|
+
"returns": {
|
|
2786
|
+
"defined": {
|
|
2787
|
+
"name": "minimumDistributableFeeEvent"
|
|
2788
|
+
}
|
|
2789
|
+
}
|
|
2790
|
+
},
|
|
2438
2791
|
{
|
|
2439
2792
|
"name": "initUserVolumeAccumulator",
|
|
2440
2793
|
"discriminator": [
|
|
@@ -2995,35 +3348,186 @@ export type Pump = {
|
|
|
2995
3348
|
"address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL"
|
|
2996
3349
|
},
|
|
2997
3350
|
{
|
|
2998
|
-
"name": "pumpAmmEventAuthority",
|
|
3351
|
+
"name": "pumpAmmEventAuthority",
|
|
3352
|
+
"pda": {
|
|
3353
|
+
"seeds": [
|
|
3354
|
+
{
|
|
3355
|
+
"kind": "const",
|
|
3356
|
+
"value": [
|
|
3357
|
+
95,
|
|
3358
|
+
95,
|
|
3359
|
+
101,
|
|
3360
|
+
118,
|
|
3361
|
+
101,
|
|
3362
|
+
110,
|
|
3363
|
+
116,
|
|
3364
|
+
95,
|
|
3365
|
+
97,
|
|
3366
|
+
117,
|
|
3367
|
+
116,
|
|
3368
|
+
104,
|
|
3369
|
+
111,
|
|
3370
|
+
114,
|
|
3371
|
+
105,
|
|
3372
|
+
116,
|
|
3373
|
+
121
|
|
3374
|
+
]
|
|
3375
|
+
}
|
|
3376
|
+
],
|
|
3377
|
+
"program": {
|
|
3378
|
+
"kind": "account",
|
|
3379
|
+
"path": "pumpAmm"
|
|
3380
|
+
}
|
|
3381
|
+
}
|
|
3382
|
+
},
|
|
3383
|
+
{
|
|
3384
|
+
"name": "eventAuthority",
|
|
3385
|
+
"pda": {
|
|
3386
|
+
"seeds": [
|
|
3387
|
+
{
|
|
3388
|
+
"kind": "const",
|
|
3389
|
+
"value": [
|
|
3390
|
+
95,
|
|
3391
|
+
95,
|
|
3392
|
+
101,
|
|
3393
|
+
118,
|
|
3394
|
+
101,
|
|
3395
|
+
110,
|
|
3396
|
+
116,
|
|
3397
|
+
95,
|
|
3398
|
+
97,
|
|
3399
|
+
117,
|
|
3400
|
+
116,
|
|
3401
|
+
104,
|
|
3402
|
+
111,
|
|
3403
|
+
114,
|
|
3404
|
+
105,
|
|
3405
|
+
116,
|
|
3406
|
+
121
|
|
3407
|
+
]
|
|
3408
|
+
}
|
|
3409
|
+
]
|
|
3410
|
+
}
|
|
3411
|
+
},
|
|
3412
|
+
{
|
|
3413
|
+
"name": "program"
|
|
3414
|
+
}
|
|
3415
|
+
],
|
|
3416
|
+
"args": []
|
|
3417
|
+
},
|
|
3418
|
+
{
|
|
3419
|
+
"name": "migrateBondingCurveCreator",
|
|
3420
|
+
"discriminator": [
|
|
3421
|
+
87,
|
|
3422
|
+
124,
|
|
3423
|
+
52,
|
|
3424
|
+
191,
|
|
3425
|
+
52,
|
|
3426
|
+
38,
|
|
3427
|
+
214,
|
|
3428
|
+
232
|
|
3429
|
+
],
|
|
3430
|
+
"accounts": [
|
|
3431
|
+
{
|
|
3432
|
+
"name": "mint",
|
|
3433
|
+
"relations": [
|
|
3434
|
+
"sharingConfig"
|
|
3435
|
+
]
|
|
3436
|
+
},
|
|
3437
|
+
{
|
|
3438
|
+
"name": "bondingCurve",
|
|
3439
|
+
"writable": true,
|
|
3440
|
+
"pda": {
|
|
3441
|
+
"seeds": [
|
|
3442
|
+
{
|
|
3443
|
+
"kind": "const",
|
|
3444
|
+
"value": [
|
|
3445
|
+
98,
|
|
3446
|
+
111,
|
|
3447
|
+
110,
|
|
3448
|
+
100,
|
|
3449
|
+
105,
|
|
3450
|
+
110,
|
|
3451
|
+
103,
|
|
3452
|
+
45,
|
|
3453
|
+
99,
|
|
3454
|
+
117,
|
|
3455
|
+
114,
|
|
3456
|
+
118,
|
|
3457
|
+
101
|
|
3458
|
+
]
|
|
3459
|
+
},
|
|
3460
|
+
{
|
|
3461
|
+
"kind": "account",
|
|
3462
|
+
"path": "mint"
|
|
3463
|
+
}
|
|
3464
|
+
]
|
|
3465
|
+
}
|
|
3466
|
+
},
|
|
3467
|
+
{
|
|
3468
|
+
"name": "sharingConfig",
|
|
2999
3469
|
"pda": {
|
|
3000
3470
|
"seeds": [
|
|
3001
3471
|
{
|
|
3002
3472
|
"kind": "const",
|
|
3003
3473
|
"value": [
|
|
3004
|
-
|
|
3005
|
-
95,
|
|
3006
|
-
101,
|
|
3007
|
-
118,
|
|
3008
|
-
101,
|
|
3009
|
-
110,
|
|
3010
|
-
116,
|
|
3011
|
-
95,
|
|
3012
|
-
97,
|
|
3013
|
-
117,
|
|
3014
|
-
116,
|
|
3474
|
+
115,
|
|
3015
3475
|
104,
|
|
3016
|
-
|
|
3476
|
+
97,
|
|
3017
3477
|
114,
|
|
3018
3478
|
105,
|
|
3019
|
-
|
|
3020
|
-
|
|
3479
|
+
110,
|
|
3480
|
+
103,
|
|
3481
|
+
45,
|
|
3482
|
+
99,
|
|
3483
|
+
111,
|
|
3484
|
+
110,
|
|
3485
|
+
102,
|
|
3486
|
+
105,
|
|
3487
|
+
103
|
|
3021
3488
|
]
|
|
3489
|
+
},
|
|
3490
|
+
{
|
|
3491
|
+
"kind": "account",
|
|
3492
|
+
"path": "mint"
|
|
3022
3493
|
}
|
|
3023
3494
|
],
|
|
3024
3495
|
"program": {
|
|
3025
|
-
"kind": "
|
|
3026
|
-
"
|
|
3496
|
+
"kind": "const",
|
|
3497
|
+
"value": [
|
|
3498
|
+
12,
|
|
3499
|
+
53,
|
|
3500
|
+
255,
|
|
3501
|
+
169,
|
|
3502
|
+
5,
|
|
3503
|
+
90,
|
|
3504
|
+
142,
|
|
3505
|
+
86,
|
|
3506
|
+
141,
|
|
3507
|
+
168,
|
|
3508
|
+
247,
|
|
3509
|
+
188,
|
|
3510
|
+
7,
|
|
3511
|
+
86,
|
|
3512
|
+
21,
|
|
3513
|
+
39,
|
|
3514
|
+
76,
|
|
3515
|
+
241,
|
|
3516
|
+
201,
|
|
3517
|
+
44,
|
|
3518
|
+
164,
|
|
3519
|
+
31,
|
|
3520
|
+
64,
|
|
3521
|
+
0,
|
|
3522
|
+
156,
|
|
3523
|
+
81,
|
|
3524
|
+
106,
|
|
3525
|
+
164,
|
|
3526
|
+
20,
|
|
3527
|
+
194,
|
|
3528
|
+
124,
|
|
3529
|
+
112
|
|
3530
|
+
]
|
|
3027
3531
|
}
|
|
3028
3532
|
}
|
|
3029
3533
|
},
|
|
@@ -3554,12 +4058,232 @@ export type Pump = {
|
|
|
3554
4058
|
"name": "program"
|
|
3555
4059
|
}
|
|
3556
4060
|
],
|
|
3557
|
-
"args": [
|
|
3558
|
-
{
|
|
3559
|
-
"name": "creator",
|
|
3560
|
-
"type": "pubkey"
|
|
3561
|
-
}
|
|
3562
|
-
]
|
|
4061
|
+
"args": [
|
|
4062
|
+
{
|
|
4063
|
+
"name": "creator",
|
|
4064
|
+
"type": "pubkey"
|
|
4065
|
+
}
|
|
4066
|
+
]
|
|
4067
|
+
},
|
|
4068
|
+
{
|
|
4069
|
+
"name": "setMayhemVirtualParams",
|
|
4070
|
+
"discriminator": [
|
|
4071
|
+
61,
|
|
4072
|
+
169,
|
|
4073
|
+
188,
|
|
4074
|
+
191,
|
|
4075
|
+
153,
|
|
4076
|
+
149,
|
|
4077
|
+
42,
|
|
4078
|
+
97
|
|
4079
|
+
],
|
|
4080
|
+
"accounts": [
|
|
4081
|
+
{
|
|
4082
|
+
"name": "solVaultAuthority",
|
|
4083
|
+
"writable": true,
|
|
4084
|
+
"signer": true,
|
|
4085
|
+
"pda": {
|
|
4086
|
+
"seeds": [
|
|
4087
|
+
{
|
|
4088
|
+
"kind": "const",
|
|
4089
|
+
"value": [
|
|
4090
|
+
115,
|
|
4091
|
+
111,
|
|
4092
|
+
108,
|
|
4093
|
+
45,
|
|
4094
|
+
118,
|
|
4095
|
+
97,
|
|
4096
|
+
117,
|
|
4097
|
+
108,
|
|
4098
|
+
116
|
|
4099
|
+
]
|
|
4100
|
+
}
|
|
4101
|
+
],
|
|
4102
|
+
"program": {
|
|
4103
|
+
"kind": "const",
|
|
4104
|
+
"value": [
|
|
4105
|
+
5,
|
|
4106
|
+
42,
|
|
4107
|
+
229,
|
|
4108
|
+
215,
|
|
4109
|
+
167,
|
|
4110
|
+
218,
|
|
4111
|
+
167,
|
|
4112
|
+
36,
|
|
4113
|
+
166,
|
|
4114
|
+
234,
|
|
4115
|
+
176,
|
|
4116
|
+
167,
|
|
4117
|
+
41,
|
|
4118
|
+
84,
|
|
4119
|
+
145,
|
|
4120
|
+
133,
|
|
4121
|
+
90,
|
|
4122
|
+
212,
|
|
4123
|
+
160,
|
|
4124
|
+
103,
|
|
4125
|
+
22,
|
|
4126
|
+
96,
|
|
4127
|
+
103,
|
|
4128
|
+
76,
|
|
4129
|
+
78,
|
|
4130
|
+
3,
|
|
4131
|
+
69,
|
|
4132
|
+
89,
|
|
4133
|
+
128,
|
|
4134
|
+
61,
|
|
4135
|
+
101,
|
|
4136
|
+
163
|
|
4137
|
+
]
|
|
4138
|
+
}
|
|
4139
|
+
}
|
|
4140
|
+
},
|
|
4141
|
+
{
|
|
4142
|
+
"name": "mayhemTokenVault",
|
|
4143
|
+
"writable": true,
|
|
4144
|
+
"pda": {
|
|
4145
|
+
"seeds": [
|
|
4146
|
+
{
|
|
4147
|
+
"kind": "account",
|
|
4148
|
+
"path": "solVaultAuthority"
|
|
4149
|
+
},
|
|
4150
|
+
{
|
|
4151
|
+
"kind": "account",
|
|
4152
|
+
"path": "tokenProgram"
|
|
4153
|
+
},
|
|
4154
|
+
{
|
|
4155
|
+
"kind": "account",
|
|
4156
|
+
"path": "mint"
|
|
4157
|
+
}
|
|
4158
|
+
],
|
|
4159
|
+
"program": {
|
|
4160
|
+
"kind": "const",
|
|
4161
|
+
"value": [
|
|
4162
|
+
140,
|
|
4163
|
+
151,
|
|
4164
|
+
37,
|
|
4165
|
+
143,
|
|
4166
|
+
78,
|
|
4167
|
+
36,
|
|
4168
|
+
137,
|
|
4169
|
+
241,
|
|
4170
|
+
187,
|
|
4171
|
+
61,
|
|
4172
|
+
16,
|
|
4173
|
+
41,
|
|
4174
|
+
20,
|
|
4175
|
+
142,
|
|
4176
|
+
13,
|
|
4177
|
+
131,
|
|
4178
|
+
11,
|
|
4179
|
+
90,
|
|
4180
|
+
19,
|
|
4181
|
+
153,
|
|
4182
|
+
218,
|
|
4183
|
+
255,
|
|
4184
|
+
16,
|
|
4185
|
+
132,
|
|
4186
|
+
4,
|
|
4187
|
+
142,
|
|
4188
|
+
123,
|
|
4189
|
+
216,
|
|
4190
|
+
219,
|
|
4191
|
+
233,
|
|
4192
|
+
248,
|
|
4193
|
+
89
|
|
4194
|
+
]
|
|
4195
|
+
}
|
|
4196
|
+
}
|
|
4197
|
+
},
|
|
4198
|
+
{
|
|
4199
|
+
"name": "mint"
|
|
4200
|
+
},
|
|
4201
|
+
{
|
|
4202
|
+
"name": "global",
|
|
4203
|
+
"pda": {
|
|
4204
|
+
"seeds": [
|
|
4205
|
+
{
|
|
4206
|
+
"kind": "const",
|
|
4207
|
+
"value": [
|
|
4208
|
+
103,
|
|
4209
|
+
108,
|
|
4210
|
+
111,
|
|
4211
|
+
98,
|
|
4212
|
+
97,
|
|
4213
|
+
108
|
|
4214
|
+
]
|
|
4215
|
+
}
|
|
4216
|
+
]
|
|
4217
|
+
}
|
|
4218
|
+
},
|
|
4219
|
+
{
|
|
4220
|
+
"name": "bondingCurve",
|
|
4221
|
+
"writable": true,
|
|
4222
|
+
"pda": {
|
|
4223
|
+
"seeds": [
|
|
4224
|
+
{
|
|
4225
|
+
"kind": "const",
|
|
4226
|
+
"value": [
|
|
4227
|
+
98,
|
|
4228
|
+
111,
|
|
4229
|
+
110,
|
|
4230
|
+
100,
|
|
4231
|
+
105,
|
|
4232
|
+
110,
|
|
4233
|
+
103,
|
|
4234
|
+
45,
|
|
4235
|
+
99,
|
|
4236
|
+
117,
|
|
4237
|
+
114,
|
|
4238
|
+
118,
|
|
4239
|
+
101
|
|
4240
|
+
]
|
|
4241
|
+
},
|
|
4242
|
+
{
|
|
4243
|
+
"kind": "account",
|
|
4244
|
+
"path": "mint"
|
|
4245
|
+
}
|
|
4246
|
+
]
|
|
4247
|
+
}
|
|
4248
|
+
},
|
|
4249
|
+
{
|
|
4250
|
+
"name": "tokenProgram",
|
|
4251
|
+
"address": "TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb"
|
|
4252
|
+
},
|
|
4253
|
+
{
|
|
4254
|
+
"name": "eventAuthority",
|
|
4255
|
+
"pda": {
|
|
4256
|
+
"seeds": [
|
|
4257
|
+
{
|
|
4258
|
+
"kind": "const",
|
|
4259
|
+
"value": [
|
|
4260
|
+
95,
|
|
4261
|
+
95,
|
|
4262
|
+
101,
|
|
4263
|
+
118,
|
|
4264
|
+
101,
|
|
4265
|
+
110,
|
|
4266
|
+
116,
|
|
4267
|
+
95,
|
|
4268
|
+
97,
|
|
4269
|
+
117,
|
|
4270
|
+
116,
|
|
4271
|
+
104,
|
|
4272
|
+
111,
|
|
4273
|
+
114,
|
|
4274
|
+
105,
|
|
4275
|
+
116,
|
|
4276
|
+
121
|
|
4277
|
+
]
|
|
4278
|
+
}
|
|
4279
|
+
]
|
|
4280
|
+
}
|
|
4281
|
+
},
|
|
4282
|
+
{
|
|
4283
|
+
"name": "program"
|
|
4284
|
+
}
|
|
4285
|
+
],
|
|
4286
|
+
"args": []
|
|
3563
4287
|
},
|
|
3564
4288
|
{
|
|
3565
4289
|
"name": "setMetaplexCreator",
|
|
@@ -4364,6 +5088,19 @@ export type Pump = {
|
|
|
4364
5088
|
255
|
|
4365
5089
|
]
|
|
4366
5090
|
},
|
|
5091
|
+
{
|
|
5092
|
+
"name": "sharingConfig",
|
|
5093
|
+
"discriminator": [
|
|
5094
|
+
216,
|
|
5095
|
+
74,
|
|
5096
|
+
9,
|
|
5097
|
+
0,
|
|
5098
|
+
56,
|
|
5099
|
+
140,
|
|
5100
|
+
93,
|
|
5101
|
+
75
|
|
5102
|
+
]
|
|
5103
|
+
},
|
|
4367
5104
|
{
|
|
4368
5105
|
"name": "userVolumeAccumulator",
|
|
4369
5106
|
"discriminator": [
|
|
@@ -4496,6 +5233,19 @@ export type Pump = {
|
|
|
4496
5233
|
118
|
|
4497
5234
|
]
|
|
4498
5235
|
},
|
|
5236
|
+
{
|
|
5237
|
+
"name": "distributeCreatorFeesEvent",
|
|
5238
|
+
"discriminator": [
|
|
5239
|
+
165,
|
|
5240
|
+
55,
|
|
5241
|
+
129,
|
|
5242
|
+
112,
|
|
5243
|
+
4,
|
|
5244
|
+
179,
|
|
5245
|
+
202,
|
|
5246
|
+
40
|
|
5247
|
+
]
|
|
5248
|
+
},
|
|
4499
5249
|
{
|
|
4500
5250
|
"name": "extendAccountEvent",
|
|
4501
5251
|
"discriminator": [
|
|
@@ -4522,6 +5272,32 @@ export type Pump = {
|
|
|
4522
5272
|
216
|
|
4523
5273
|
]
|
|
4524
5274
|
},
|
|
5275
|
+
{
|
|
5276
|
+
"name": "migrateBondingCurveCreatorEvent",
|
|
5277
|
+
"discriminator": [
|
|
5278
|
+
155,
|
|
5279
|
+
167,
|
|
5280
|
+
104,
|
|
5281
|
+
220,
|
|
5282
|
+
213,
|
|
5283
|
+
108,
|
|
5284
|
+
243,
|
|
5285
|
+
3
|
|
5286
|
+
]
|
|
5287
|
+
},
|
|
5288
|
+
{
|
|
5289
|
+
"name": "minimumDistributableFeeEvent",
|
|
5290
|
+
"discriminator": [
|
|
5291
|
+
168,
|
|
5292
|
+
216,
|
|
5293
|
+
132,
|
|
5294
|
+
239,
|
|
5295
|
+
235,
|
|
5296
|
+
182,
|
|
5297
|
+
49,
|
|
5298
|
+
52
|
|
5299
|
+
]
|
|
5300
|
+
},
|
|
4525
5301
|
{
|
|
4526
5302
|
"name": "reservedFeeRecipientsEvent",
|
|
4527
5303
|
"discriminator": [
|
|
@@ -4612,6 +5388,19 @@ export type Pump = {
|
|
|
4612
5388
|
207,
|
|
4613
5389
|
247
|
|
4614
5390
|
]
|
|
5391
|
+
},
|
|
5392
|
+
{
|
|
5393
|
+
"name": "updateMayhemVirtualParamsEvent",
|
|
5394
|
+
"discriminator": [
|
|
5395
|
+
117,
|
|
5396
|
+
123,
|
|
5397
|
+
228,
|
|
5398
|
+
182,
|
|
5399
|
+
161,
|
|
5400
|
+
168,
|
|
5401
|
+
220,
|
|
5402
|
+
214
|
|
5403
|
+
]
|
|
4615
5404
|
}
|
|
4616
5405
|
],
|
|
4617
5406
|
"errors": [
|
|
@@ -4844,6 +5633,41 @@ export type Pump = {
|
|
|
4844
5633
|
{
|
|
4845
5634
|
"code": 6048,
|
|
4846
5635
|
"name": "mayhemModeDisabled"
|
|
5636
|
+
},
|
|
5637
|
+
{
|
|
5638
|
+
"code": 6049,
|
|
5639
|
+
"name": "creatorMigratedToSharingConfig",
|
|
5640
|
+
"msg": "creator has been migrated to sharing config, use pump_fees::reset_fee_sharing_config instead"
|
|
5641
|
+
},
|
|
5642
|
+
{
|
|
5643
|
+
"code": 6050,
|
|
5644
|
+
"name": "unableToDistributeCreatorVaultMigratedToSharingConfig",
|
|
5645
|
+
"msg": "creator_vault has been migrated to sharing config, use pump:distribute_creator_fees instead"
|
|
5646
|
+
},
|
|
5647
|
+
{
|
|
5648
|
+
"code": 6051,
|
|
5649
|
+
"name": "sharingConfigNotActive",
|
|
5650
|
+
"msg": "Sharing config is not active"
|
|
5651
|
+
},
|
|
5652
|
+
{
|
|
5653
|
+
"code": 6052,
|
|
5654
|
+
"name": "unableToDistributeCreatorFeesToExecutableRecipient",
|
|
5655
|
+
"msg": "The recipient account is executable, so it cannot receive lamports, remove it from the team first"
|
|
5656
|
+
},
|
|
5657
|
+
{
|
|
5658
|
+
"code": 6053,
|
|
5659
|
+
"name": "BondingCurveAndSharingConfigCreatorMismatch",
|
|
5660
|
+
"msg": "Bonding curve creator does not match sharing config"
|
|
5661
|
+
},
|
|
5662
|
+
{
|
|
5663
|
+
"code": 6054,
|
|
5664
|
+
"name": "shareholdersAndRemainingAccountsMismatch",
|
|
5665
|
+
"msg": "Remaining accounts do not match shareholders, make sure to pass exactly the same pubkeys in the same order"
|
|
5666
|
+
},
|
|
5667
|
+
{
|
|
5668
|
+
"code": 6055,
|
|
5669
|
+
"name": "invalidShareBps",
|
|
5670
|
+
"msg": "Share bps must be greater than 0"
|
|
4847
5671
|
}
|
|
4848
5672
|
],
|
|
4849
5673
|
"types": [
|
|
@@ -5115,6 +5939,20 @@ export type Pump = {
|
|
|
5115
5939
|
]
|
|
5116
5940
|
}
|
|
5117
5941
|
},
|
|
5942
|
+
{
|
|
5943
|
+
"name": "configStatus",
|
|
5944
|
+
"type": {
|
|
5945
|
+
"kind": "enum",
|
|
5946
|
+
"variants": [
|
|
5947
|
+
{
|
|
5948
|
+
"name": "paused"
|
|
5949
|
+
},
|
|
5950
|
+
{
|
|
5951
|
+
"name": "active"
|
|
5952
|
+
}
|
|
5953
|
+
]
|
|
5954
|
+
}
|
|
5955
|
+
},
|
|
5118
5956
|
{
|
|
5119
5957
|
"name": "createEvent",
|
|
5120
5958
|
"type": {
|
|
@@ -5179,6 +6017,48 @@ export type Pump = {
|
|
|
5179
6017
|
]
|
|
5180
6018
|
}
|
|
5181
6019
|
},
|
|
6020
|
+
{
|
|
6021
|
+
"name": "distributeCreatorFeesEvent",
|
|
6022
|
+
"type": {
|
|
6023
|
+
"kind": "struct",
|
|
6024
|
+
"fields": [
|
|
6025
|
+
{
|
|
6026
|
+
"name": "timestamp",
|
|
6027
|
+
"type": "i64"
|
|
6028
|
+
},
|
|
6029
|
+
{
|
|
6030
|
+
"name": "mint",
|
|
6031
|
+
"type": "pubkey"
|
|
6032
|
+
},
|
|
6033
|
+
{
|
|
6034
|
+
"name": "bondingCurve",
|
|
6035
|
+
"type": "pubkey"
|
|
6036
|
+
},
|
|
6037
|
+
{
|
|
6038
|
+
"name": "sharingConfig",
|
|
6039
|
+
"type": "pubkey"
|
|
6040
|
+
},
|
|
6041
|
+
{
|
|
6042
|
+
"name": "admin",
|
|
6043
|
+
"type": "pubkey"
|
|
6044
|
+
},
|
|
6045
|
+
{
|
|
6046
|
+
"name": "shareholders",
|
|
6047
|
+
"type": {
|
|
6048
|
+
"vec": {
|
|
6049
|
+
"defined": {
|
|
6050
|
+
"name": "shareholder"
|
|
6051
|
+
}
|
|
6052
|
+
}
|
|
6053
|
+
}
|
|
6054
|
+
},
|
|
6055
|
+
{
|
|
6056
|
+
"name": "distributed",
|
|
6057
|
+
"type": "u64"
|
|
6058
|
+
}
|
|
6059
|
+
]
|
|
6060
|
+
}
|
|
6061
|
+
},
|
|
5182
6062
|
{
|
|
5183
6063
|
"name": "extendAccountEvent",
|
|
5184
6064
|
"type": {
|
|
@@ -5447,6 +6327,58 @@ export type Pump = {
|
|
|
5447
6327
|
]
|
|
5448
6328
|
}
|
|
5449
6329
|
},
|
|
6330
|
+
{
|
|
6331
|
+
"name": "migrateBondingCurveCreatorEvent",
|
|
6332
|
+
"type": {
|
|
6333
|
+
"kind": "struct",
|
|
6334
|
+
"fields": [
|
|
6335
|
+
{
|
|
6336
|
+
"name": "timestamp",
|
|
6337
|
+
"type": "i64"
|
|
6338
|
+
},
|
|
6339
|
+
{
|
|
6340
|
+
"name": "mint",
|
|
6341
|
+
"type": "pubkey"
|
|
6342
|
+
},
|
|
6343
|
+
{
|
|
6344
|
+
"name": "bondingCurve",
|
|
6345
|
+
"type": "pubkey"
|
|
6346
|
+
},
|
|
6347
|
+
{
|
|
6348
|
+
"name": "sharingConfig",
|
|
6349
|
+
"type": "pubkey"
|
|
6350
|
+
},
|
|
6351
|
+
{
|
|
6352
|
+
"name": "oldCreator",
|
|
6353
|
+
"type": "pubkey"
|
|
6354
|
+
},
|
|
6355
|
+
{
|
|
6356
|
+
"name": "newCreator",
|
|
6357
|
+
"type": "pubkey"
|
|
6358
|
+
}
|
|
6359
|
+
]
|
|
6360
|
+
}
|
|
6361
|
+
},
|
|
6362
|
+
{
|
|
6363
|
+
"name": "minimumDistributableFeeEvent",
|
|
6364
|
+
"type": {
|
|
6365
|
+
"kind": "struct",
|
|
6366
|
+
"fields": [
|
|
6367
|
+
{
|
|
6368
|
+
"name": "minimumRequired",
|
|
6369
|
+
"type": "u64"
|
|
6370
|
+
},
|
|
6371
|
+
{
|
|
6372
|
+
"name": "distributableFees",
|
|
6373
|
+
"type": "u64"
|
|
6374
|
+
},
|
|
6375
|
+
{
|
|
6376
|
+
"name": "canDistribute",
|
|
6377
|
+
"type": "bool"
|
|
6378
|
+
}
|
|
6379
|
+
]
|
|
6380
|
+
}
|
|
6381
|
+
},
|
|
5450
6382
|
{
|
|
5451
6383
|
"name": "optionBool",
|
|
5452
6384
|
"type": {
|
|
@@ -5602,6 +6534,68 @@ export type Pump = {
|
|
|
5602
6534
|
]
|
|
5603
6535
|
}
|
|
5604
6536
|
},
|
|
6537
|
+
{
|
|
6538
|
+
"name": "shareholder",
|
|
6539
|
+
"type": {
|
|
6540
|
+
"kind": "struct",
|
|
6541
|
+
"fields": [
|
|
6542
|
+
{
|
|
6543
|
+
"name": "address",
|
|
6544
|
+
"type": "pubkey"
|
|
6545
|
+
},
|
|
6546
|
+
{
|
|
6547
|
+
"name": "shareBps",
|
|
6548
|
+
"type": "u16"
|
|
6549
|
+
}
|
|
6550
|
+
]
|
|
6551
|
+
}
|
|
6552
|
+
},
|
|
6553
|
+
{
|
|
6554
|
+
"name": "sharingConfig",
|
|
6555
|
+
"type": {
|
|
6556
|
+
"kind": "struct",
|
|
6557
|
+
"fields": [
|
|
6558
|
+
{
|
|
6559
|
+
"name": "bump",
|
|
6560
|
+
"type": "u8"
|
|
6561
|
+
},
|
|
6562
|
+
{
|
|
6563
|
+
"name": "version",
|
|
6564
|
+
"type": "u8"
|
|
6565
|
+
},
|
|
6566
|
+
{
|
|
6567
|
+
"name": "status",
|
|
6568
|
+
"type": {
|
|
6569
|
+
"defined": {
|
|
6570
|
+
"name": "configStatus"
|
|
6571
|
+
}
|
|
6572
|
+
}
|
|
6573
|
+
},
|
|
6574
|
+
{
|
|
6575
|
+
"name": "mint",
|
|
6576
|
+
"type": "pubkey"
|
|
6577
|
+
},
|
|
6578
|
+
{
|
|
6579
|
+
"name": "admin",
|
|
6580
|
+
"type": "pubkey"
|
|
6581
|
+
},
|
|
6582
|
+
{
|
|
6583
|
+
"name": "adminRevoked",
|
|
6584
|
+
"type": "bool"
|
|
6585
|
+
},
|
|
6586
|
+
{
|
|
6587
|
+
"name": "shareholders",
|
|
6588
|
+
"type": {
|
|
6589
|
+
"vec": {
|
|
6590
|
+
"defined": {
|
|
6591
|
+
"name": "shareholder"
|
|
6592
|
+
}
|
|
6593
|
+
}
|
|
6594
|
+
}
|
|
6595
|
+
}
|
|
6596
|
+
]
|
|
6597
|
+
}
|
|
6598
|
+
},
|
|
5605
6599
|
{
|
|
5606
6600
|
"name": "syncUserVolumeAccumulatorEvent",
|
|
5607
6601
|
"type": {
|
|
@@ -5721,6 +6715,10 @@ export type Pump = {
|
|
|
5721
6715
|
{
|
|
5722
6716
|
"name": "ixName",
|
|
5723
6717
|
"type": "string"
|
|
6718
|
+
},
|
|
6719
|
+
{
|
|
6720
|
+
"name": "mayhemMode",
|
|
6721
|
+
"type": "bool"
|
|
5724
6722
|
}
|
|
5725
6723
|
]
|
|
5726
6724
|
}
|
|
@@ -5749,6 +6747,46 @@ export type Pump = {
|
|
|
5749
6747
|
]
|
|
5750
6748
|
}
|
|
5751
6749
|
},
|
|
6750
|
+
{
|
|
6751
|
+
"name": "updateMayhemVirtualParamsEvent",
|
|
6752
|
+
"type": {
|
|
6753
|
+
"kind": "struct",
|
|
6754
|
+
"fields": [
|
|
6755
|
+
{
|
|
6756
|
+
"name": "timestamp",
|
|
6757
|
+
"type": "i64"
|
|
6758
|
+
},
|
|
6759
|
+
{
|
|
6760
|
+
"name": "mint",
|
|
6761
|
+
"type": "pubkey"
|
|
6762
|
+
},
|
|
6763
|
+
{
|
|
6764
|
+
"name": "virtualTokenReserves",
|
|
6765
|
+
"type": "u64"
|
|
6766
|
+
},
|
|
6767
|
+
{
|
|
6768
|
+
"name": "virtualSolReserves",
|
|
6769
|
+
"type": "u64"
|
|
6770
|
+
},
|
|
6771
|
+
{
|
|
6772
|
+
"name": "newVirtualTokenReserves",
|
|
6773
|
+
"type": "u64"
|
|
6774
|
+
},
|
|
6775
|
+
{
|
|
6776
|
+
"name": "newVirtualSolReserves",
|
|
6777
|
+
"type": "u64"
|
|
6778
|
+
},
|
|
6779
|
+
{
|
|
6780
|
+
"name": "realTokenReserves",
|
|
6781
|
+
"type": "u64"
|
|
6782
|
+
},
|
|
6783
|
+
{
|
|
6784
|
+
"name": "realSolReserves",
|
|
6785
|
+
"type": "u64"
|
|
6786
|
+
}
|
|
6787
|
+
]
|
|
6788
|
+
}
|
|
6789
|
+
},
|
|
5752
6790
|
{
|
|
5753
6791
|
"name": "userVolumeAccumulator",
|
|
5754
6792
|
"type": {
|