@pump-fun/pump-sdk 1.24.0 → 1.25.0-devnet.1

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/src/idl/pump.json CHANGED
@@ -2366,6 +2366,202 @@
2366
2366
  }
2367
2367
  ]
2368
2368
  },
2369
+ {
2370
+ "name": "distribute_creator_fees",
2371
+ "docs": [
2372
+ "Distributes creator fees to shareholders based on their share percentages",
2373
+ "The creator vault needs to have at least the minimum distributable amount to distribute fees",
2374
+ "This can be checked with the get_minimum_distributable_fee instruction"
2375
+ ],
2376
+ "discriminator": [
2377
+ 165,
2378
+ 114,
2379
+ 103,
2380
+ 0,
2381
+ 121,
2382
+ 206,
2383
+ 247,
2384
+ 81
2385
+ ],
2386
+ "accounts": [
2387
+ {
2388
+ "name": "mint",
2389
+ "relations": [
2390
+ "sharing_config"
2391
+ ]
2392
+ },
2393
+ {
2394
+ "name": "bonding_curve",
2395
+ "pda": {
2396
+ "seeds": [
2397
+ {
2398
+ "kind": "const",
2399
+ "value": [
2400
+ 98,
2401
+ 111,
2402
+ 110,
2403
+ 100,
2404
+ 105,
2405
+ 110,
2406
+ 103,
2407
+ 45,
2408
+ 99,
2409
+ 117,
2410
+ 114,
2411
+ 118,
2412
+ 101
2413
+ ]
2414
+ },
2415
+ {
2416
+ "kind": "account",
2417
+ "path": "mint"
2418
+ }
2419
+ ]
2420
+ }
2421
+ },
2422
+ {
2423
+ "name": "sharing_config",
2424
+ "pda": {
2425
+ "seeds": [
2426
+ {
2427
+ "kind": "const",
2428
+ "value": [
2429
+ 115,
2430
+ 104,
2431
+ 97,
2432
+ 114,
2433
+ 105,
2434
+ 110,
2435
+ 103,
2436
+ 45,
2437
+ 99,
2438
+ 111,
2439
+ 110,
2440
+ 102,
2441
+ 105,
2442
+ 103
2443
+ ]
2444
+ },
2445
+ {
2446
+ "kind": "account",
2447
+ "path": "mint"
2448
+ }
2449
+ ],
2450
+ "program": {
2451
+ "kind": "const",
2452
+ "value": [
2453
+ 12,
2454
+ 53,
2455
+ 255,
2456
+ 169,
2457
+ 5,
2458
+ 90,
2459
+ 142,
2460
+ 86,
2461
+ 141,
2462
+ 168,
2463
+ 247,
2464
+ 188,
2465
+ 7,
2466
+ 86,
2467
+ 21,
2468
+ 39,
2469
+ 76,
2470
+ 241,
2471
+ 201,
2472
+ 44,
2473
+ 164,
2474
+ 31,
2475
+ 64,
2476
+ 0,
2477
+ 156,
2478
+ 81,
2479
+ 106,
2480
+ 164,
2481
+ 20,
2482
+ 194,
2483
+ 124,
2484
+ 112
2485
+ ]
2486
+ }
2487
+ }
2488
+ },
2489
+ {
2490
+ "name": "creator_vault",
2491
+ "writable": true,
2492
+ "pda": {
2493
+ "seeds": [
2494
+ {
2495
+ "kind": "const",
2496
+ "value": [
2497
+ 99,
2498
+ 114,
2499
+ 101,
2500
+ 97,
2501
+ 116,
2502
+ 111,
2503
+ 114,
2504
+ 45,
2505
+ 118,
2506
+ 97,
2507
+ 117,
2508
+ 108,
2509
+ 116
2510
+ ]
2511
+ },
2512
+ {
2513
+ "kind": "account",
2514
+ "path": "bonding_curve.creator",
2515
+ "account": "BondingCurve"
2516
+ }
2517
+ ]
2518
+ }
2519
+ },
2520
+ {
2521
+ "name": "system_program",
2522
+ "address": "11111111111111111111111111111111"
2523
+ },
2524
+ {
2525
+ "name": "event_authority",
2526
+ "pda": {
2527
+ "seeds": [
2528
+ {
2529
+ "kind": "const",
2530
+ "value": [
2531
+ 95,
2532
+ 95,
2533
+ 101,
2534
+ 118,
2535
+ 101,
2536
+ 110,
2537
+ 116,
2538
+ 95,
2539
+ 97,
2540
+ 117,
2541
+ 116,
2542
+ 104,
2543
+ 111,
2544
+ 114,
2545
+ 105,
2546
+ 116,
2547
+ 121
2548
+ ]
2549
+ }
2550
+ ]
2551
+ }
2552
+ },
2553
+ {
2554
+ "name": "program",
2555
+ "address": "6EF8rrecthR5Dkzon8Nwu78hRvfCKubJ14M5uBEwF6P"
2556
+ }
2557
+ ],
2558
+ "args": [],
2559
+ "returns": {
2560
+ "defined": {
2561
+ "name": "DistributeCreatorFeesEvent"
2562
+ }
2563
+ }
2564
+ },
2369
2565
  {
2370
2566
  "name": "extend_account",
2371
2567
  "docs": [
@@ -2429,6 +2625,163 @@
2429
2625
  ],
2430
2626
  "args": []
2431
2627
  },
2628
+ {
2629
+ "name": "get_minimum_distributable_fee",
2630
+ "docs": [
2631
+ "Permissionless instruction to check the minimum required fees for distribution",
2632
+ "Returns the minimum required balance from the creator_vault and whether distribution can proceed"
2633
+ ],
2634
+ "discriminator": [
2635
+ 117,
2636
+ 225,
2637
+ 127,
2638
+ 202,
2639
+ 134,
2640
+ 95,
2641
+ 68,
2642
+ 35
2643
+ ],
2644
+ "accounts": [
2645
+ {
2646
+ "name": "mint",
2647
+ "relations": [
2648
+ "sharing_config"
2649
+ ]
2650
+ },
2651
+ {
2652
+ "name": "bonding_curve",
2653
+ "pda": {
2654
+ "seeds": [
2655
+ {
2656
+ "kind": "const",
2657
+ "value": [
2658
+ 98,
2659
+ 111,
2660
+ 110,
2661
+ 100,
2662
+ 105,
2663
+ 110,
2664
+ 103,
2665
+ 45,
2666
+ 99,
2667
+ 117,
2668
+ 114,
2669
+ 118,
2670
+ 101
2671
+ ]
2672
+ },
2673
+ {
2674
+ "kind": "account",
2675
+ "path": "mint"
2676
+ }
2677
+ ]
2678
+ }
2679
+ },
2680
+ {
2681
+ "name": "sharing_config",
2682
+ "pda": {
2683
+ "seeds": [
2684
+ {
2685
+ "kind": "const",
2686
+ "value": [
2687
+ 115,
2688
+ 104,
2689
+ 97,
2690
+ 114,
2691
+ 105,
2692
+ 110,
2693
+ 103,
2694
+ 45,
2695
+ 99,
2696
+ 111,
2697
+ 110,
2698
+ 102,
2699
+ 105,
2700
+ 103
2701
+ ]
2702
+ },
2703
+ {
2704
+ "kind": "account",
2705
+ "path": "mint"
2706
+ }
2707
+ ],
2708
+ "program": {
2709
+ "kind": "const",
2710
+ "value": [
2711
+ 12,
2712
+ 53,
2713
+ 255,
2714
+ 169,
2715
+ 5,
2716
+ 90,
2717
+ 142,
2718
+ 86,
2719
+ 141,
2720
+ 168,
2721
+ 247,
2722
+ 188,
2723
+ 7,
2724
+ 86,
2725
+ 21,
2726
+ 39,
2727
+ 76,
2728
+ 241,
2729
+ 201,
2730
+ 44,
2731
+ 164,
2732
+ 31,
2733
+ 64,
2734
+ 0,
2735
+ 156,
2736
+ 81,
2737
+ 106,
2738
+ 164,
2739
+ 20,
2740
+ 194,
2741
+ 124,
2742
+ 112
2743
+ ]
2744
+ }
2745
+ }
2746
+ },
2747
+ {
2748
+ "name": "creator_vault",
2749
+ "pda": {
2750
+ "seeds": [
2751
+ {
2752
+ "kind": "const",
2753
+ "value": [
2754
+ 99,
2755
+ 114,
2756
+ 101,
2757
+ 97,
2758
+ 116,
2759
+ 111,
2760
+ 114,
2761
+ 45,
2762
+ 118,
2763
+ 97,
2764
+ 117,
2765
+ 108,
2766
+ 116
2767
+ ]
2768
+ },
2769
+ {
2770
+ "kind": "account",
2771
+ "path": "bonding_curve.creator",
2772
+ "account": "BondingCurve"
2773
+ }
2774
+ ]
2775
+ }
2776
+ }
2777
+ ],
2778
+ "args": [],
2779
+ "returns": {
2780
+ "defined": {
2781
+ "name": "MinimumDistributableFeeEvent"
2782
+ }
2783
+ }
2784
+ },
2432
2785
  {
2433
2786
  "name": "init_user_volume_accumulator",
2434
2787
  "discriminator": [
@@ -2971,53 +3324,204 @@
2971
3324
  },
2972
3325
  {
2973
3326
  "kind": "account",
2974
- "path": "wsol_mint"
3327
+ "path": "wsol_mint"
3328
+ }
3329
+ ],
3330
+ "program": {
3331
+ "kind": "account",
3332
+ "path": "associated_token_program"
3333
+ }
3334
+ }
3335
+ },
3336
+ {
3337
+ "name": "token_2022_program",
3338
+ "address": "TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb"
3339
+ },
3340
+ {
3341
+ "name": "associated_token_program",
3342
+ "address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL"
3343
+ },
3344
+ {
3345
+ "name": "pump_amm_event_authority",
3346
+ "pda": {
3347
+ "seeds": [
3348
+ {
3349
+ "kind": "const",
3350
+ "value": [
3351
+ 95,
3352
+ 95,
3353
+ 101,
3354
+ 118,
3355
+ 101,
3356
+ 110,
3357
+ 116,
3358
+ 95,
3359
+ 97,
3360
+ 117,
3361
+ 116,
3362
+ 104,
3363
+ 111,
3364
+ 114,
3365
+ 105,
3366
+ 116,
3367
+ 121
3368
+ ]
3369
+ }
3370
+ ],
3371
+ "program": {
3372
+ "kind": "account",
3373
+ "path": "pump_amm"
3374
+ }
3375
+ }
3376
+ },
3377
+ {
3378
+ "name": "event_authority",
3379
+ "pda": {
3380
+ "seeds": [
3381
+ {
3382
+ "kind": "const",
3383
+ "value": [
3384
+ 95,
3385
+ 95,
3386
+ 101,
3387
+ 118,
3388
+ 101,
3389
+ 110,
3390
+ 116,
3391
+ 95,
3392
+ 97,
3393
+ 117,
3394
+ 116,
3395
+ 104,
3396
+ 111,
3397
+ 114,
3398
+ 105,
3399
+ 116,
3400
+ 121
3401
+ ]
3402
+ }
3403
+ ]
3404
+ }
3405
+ },
3406
+ {
3407
+ "name": "program"
3408
+ }
3409
+ ],
3410
+ "args": []
3411
+ },
3412
+ {
3413
+ "name": "migrate_bonding_curve_creator",
3414
+ "discriminator": [
3415
+ 87,
3416
+ 124,
3417
+ 52,
3418
+ 191,
3419
+ 52,
3420
+ 38,
3421
+ 214,
3422
+ 232
3423
+ ],
3424
+ "accounts": [
3425
+ {
3426
+ "name": "mint",
3427
+ "relations": [
3428
+ "sharing_config"
3429
+ ]
3430
+ },
3431
+ {
3432
+ "name": "bonding_curve",
3433
+ "writable": true,
3434
+ "pda": {
3435
+ "seeds": [
3436
+ {
3437
+ "kind": "const",
3438
+ "value": [
3439
+ 98,
3440
+ 111,
3441
+ 110,
3442
+ 100,
3443
+ 105,
3444
+ 110,
3445
+ 103,
3446
+ 45,
3447
+ 99,
3448
+ 117,
3449
+ 114,
3450
+ 118,
3451
+ 101
3452
+ ]
3453
+ },
3454
+ {
3455
+ "kind": "account",
3456
+ "path": "mint"
2975
3457
  }
2976
- ],
2977
- "program": {
2978
- "kind": "account",
2979
- "path": "associated_token_program"
2980
- }
3458
+ ]
2981
3459
  }
2982
3460
  },
2983
3461
  {
2984
- "name": "token_2022_program",
2985
- "address": "TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb"
2986
- },
2987
- {
2988
- "name": "associated_token_program",
2989
- "address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL"
2990
- },
2991
- {
2992
- "name": "pump_amm_event_authority",
3462
+ "name": "sharing_config",
2993
3463
  "pda": {
2994
3464
  "seeds": [
2995
3465
  {
2996
3466
  "kind": "const",
2997
3467
  "value": [
2998
- 95,
2999
- 95,
3000
- 101,
3001
- 118,
3002
- 101,
3003
- 110,
3004
- 116,
3005
- 95,
3006
- 97,
3007
- 117,
3008
- 116,
3468
+ 115,
3009
3469
  104,
3010
- 111,
3470
+ 97,
3011
3471
  114,
3012
3472
  105,
3013
- 116,
3014
- 121
3473
+ 110,
3474
+ 103,
3475
+ 45,
3476
+ 99,
3477
+ 111,
3478
+ 110,
3479
+ 102,
3480
+ 105,
3481
+ 103
3015
3482
  ]
3483
+ },
3484
+ {
3485
+ "kind": "account",
3486
+ "path": "mint"
3016
3487
  }
3017
3488
  ],
3018
3489
  "program": {
3019
- "kind": "account",
3020
- "path": "pump_amm"
3490
+ "kind": "const",
3491
+ "value": [
3492
+ 12,
3493
+ 53,
3494
+ 255,
3495
+ 169,
3496
+ 5,
3497
+ 90,
3498
+ 142,
3499
+ 86,
3500
+ 141,
3501
+ 168,
3502
+ 247,
3503
+ 188,
3504
+ 7,
3505
+ 86,
3506
+ 21,
3507
+ 39,
3508
+ 76,
3509
+ 241,
3510
+ 201,
3511
+ 44,
3512
+ 164,
3513
+ 31,
3514
+ 64,
3515
+ 0,
3516
+ 156,
3517
+ 81,
3518
+ 106,
3519
+ 164,
3520
+ 20,
3521
+ 194,
3522
+ 124,
3523
+ 112
3524
+ ]
3021
3525
  }
3022
3526
  }
3023
3527
  },
@@ -4578,6 +5082,19 @@
4578
5082
  255
4579
5083
  ]
4580
5084
  },
5085
+ {
5086
+ "name": "SharingConfig",
5087
+ "discriminator": [
5088
+ 216,
5089
+ 74,
5090
+ 9,
5091
+ 0,
5092
+ 56,
5093
+ 140,
5094
+ 93,
5095
+ 75
5096
+ ]
5097
+ },
4581
5098
  {
4582
5099
  "name": "UserVolumeAccumulator",
4583
5100
  "discriminator": [
@@ -4710,6 +5227,19 @@
4710
5227
  118
4711
5228
  ]
4712
5229
  },
5230
+ {
5231
+ "name": "DistributeCreatorFeesEvent",
5232
+ "discriminator": [
5233
+ 165,
5234
+ 55,
5235
+ 129,
5236
+ 112,
5237
+ 4,
5238
+ 179,
5239
+ 202,
5240
+ 40
5241
+ ]
5242
+ },
4713
5243
  {
4714
5244
  "name": "ExtendAccountEvent",
4715
5245
  "discriminator": [
@@ -4736,6 +5266,32 @@
4736
5266
  216
4737
5267
  ]
4738
5268
  },
5269
+ {
5270
+ "name": "MigrateBondingCurveCreatorEvent",
5271
+ "discriminator": [
5272
+ 155,
5273
+ 167,
5274
+ 104,
5275
+ 220,
5276
+ 213,
5277
+ 108,
5278
+ 243,
5279
+ 3
5280
+ ]
5281
+ },
5282
+ {
5283
+ "name": "MinimumDistributableFeeEvent",
5284
+ "discriminator": [
5285
+ 168,
5286
+ 216,
5287
+ 132,
5288
+ 239,
5289
+ 235,
5290
+ 182,
5291
+ 49,
5292
+ 52
5293
+ ]
5294
+ },
4739
5295
  {
4740
5296
  "name": "ReservedFeeRecipientsEvent",
4741
5297
  "discriminator": [
@@ -5071,6 +5627,41 @@
5071
5627
  {
5072
5628
  "code": 6048,
5073
5629
  "name": "MayhemModeDisabled"
5630
+ },
5631
+ {
5632
+ "code": 6049,
5633
+ "name": "CreatorMigratedToSharingConfig",
5634
+ "msg": "creator has been migrated to sharing config, use pump_fees::reset_fee_sharing_config instead"
5635
+ },
5636
+ {
5637
+ "code": 6050,
5638
+ "name": "UnableToDistributeCreatorVaultMigratedToSharingConfig",
5639
+ "msg": "creator_vault has been migrated to sharing config, use pump:distribute_creator_fees instead"
5640
+ },
5641
+ {
5642
+ "code": 6051,
5643
+ "name": "SharingConfigNotActive",
5644
+ "msg": "Sharing config is not active"
5645
+ },
5646
+ {
5647
+ "code": 6052,
5648
+ "name": "UnableToDistributeCreatorFeesToExecutableRecipient",
5649
+ "msg": "The recipient account is executable, so it cannot receive lamports, remove it from the team first"
5650
+ },
5651
+ {
5652
+ "code": 6053,
5653
+ "name": "BondingCurveAndSharingConfigCreatorMismatch",
5654
+ "msg": "Bonding curve creator does not match sharing config"
5655
+ },
5656
+ {
5657
+ "code": 6054,
5658
+ "name": "ShareholdersAndRemainingAccountsMismatch",
5659
+ "msg": "Remaining accounts do not match shareholders, make sure to pass exactly the same pubkeys in the same order"
5660
+ },
5661
+ {
5662
+ "code": 6055,
5663
+ "name": "InvalidShareBps",
5664
+ "msg": "Share bps must be greater than 0"
5074
5665
  }
5075
5666
  ],
5076
5667
  "types": [
@@ -5342,6 +5933,20 @@
5342
5933
  ]
5343
5934
  }
5344
5935
  },
5936
+ {
5937
+ "name": "ConfigStatus",
5938
+ "type": {
5939
+ "kind": "enum",
5940
+ "variants": [
5941
+ {
5942
+ "name": "Paused"
5943
+ },
5944
+ {
5945
+ "name": "Active"
5946
+ }
5947
+ ]
5948
+ }
5949
+ },
5345
5950
  {
5346
5951
  "name": "CreateEvent",
5347
5952
  "type": {
@@ -5406,6 +6011,48 @@
5406
6011
  ]
5407
6012
  }
5408
6013
  },
6014
+ {
6015
+ "name": "DistributeCreatorFeesEvent",
6016
+ "type": {
6017
+ "kind": "struct",
6018
+ "fields": [
6019
+ {
6020
+ "name": "timestamp",
6021
+ "type": "i64"
6022
+ },
6023
+ {
6024
+ "name": "mint",
6025
+ "type": "pubkey"
6026
+ },
6027
+ {
6028
+ "name": "bonding_curve",
6029
+ "type": "pubkey"
6030
+ },
6031
+ {
6032
+ "name": "sharing_config",
6033
+ "type": "pubkey"
6034
+ },
6035
+ {
6036
+ "name": "admin",
6037
+ "type": "pubkey"
6038
+ },
6039
+ {
6040
+ "name": "shareholders",
6041
+ "type": {
6042
+ "vec": {
6043
+ "defined": {
6044
+ "name": "Shareholder"
6045
+ }
6046
+ }
6047
+ }
6048
+ },
6049
+ {
6050
+ "name": "distributed",
6051
+ "type": "u64"
6052
+ }
6053
+ ]
6054
+ }
6055
+ },
5409
6056
  {
5410
6057
  "name": "ExtendAccountEvent",
5411
6058
  "type": {
@@ -5674,6 +6321,58 @@
5674
6321
  ]
5675
6322
  }
5676
6323
  },
6324
+ {
6325
+ "name": "MigrateBondingCurveCreatorEvent",
6326
+ "type": {
6327
+ "kind": "struct",
6328
+ "fields": [
6329
+ {
6330
+ "name": "timestamp",
6331
+ "type": "i64"
6332
+ },
6333
+ {
6334
+ "name": "mint",
6335
+ "type": "pubkey"
6336
+ },
6337
+ {
6338
+ "name": "bonding_curve",
6339
+ "type": "pubkey"
6340
+ },
6341
+ {
6342
+ "name": "sharing_config",
6343
+ "type": "pubkey"
6344
+ },
6345
+ {
6346
+ "name": "old_creator",
6347
+ "type": "pubkey"
6348
+ },
6349
+ {
6350
+ "name": "new_creator",
6351
+ "type": "pubkey"
6352
+ }
6353
+ ]
6354
+ }
6355
+ },
6356
+ {
6357
+ "name": "MinimumDistributableFeeEvent",
6358
+ "type": {
6359
+ "kind": "struct",
6360
+ "fields": [
6361
+ {
6362
+ "name": "minimum_required",
6363
+ "type": "u64"
6364
+ },
6365
+ {
6366
+ "name": "distributable_fees",
6367
+ "type": "u64"
6368
+ },
6369
+ {
6370
+ "name": "can_distribute",
6371
+ "type": "bool"
6372
+ }
6373
+ ]
6374
+ }
6375
+ },
5677
6376
  {
5678
6377
  "name": "OptionBool",
5679
6378
  "type": {
@@ -5829,6 +6528,68 @@
5829
6528
  ]
5830
6529
  }
5831
6530
  },
6531
+ {
6532
+ "name": "Shareholder",
6533
+ "type": {
6534
+ "kind": "struct",
6535
+ "fields": [
6536
+ {
6537
+ "name": "address",
6538
+ "type": "pubkey"
6539
+ },
6540
+ {
6541
+ "name": "share_bps",
6542
+ "type": "u16"
6543
+ }
6544
+ ]
6545
+ }
6546
+ },
6547
+ {
6548
+ "name": "SharingConfig",
6549
+ "type": {
6550
+ "kind": "struct",
6551
+ "fields": [
6552
+ {
6553
+ "name": "bump",
6554
+ "type": "u8"
6555
+ },
6556
+ {
6557
+ "name": "version",
6558
+ "type": "u8"
6559
+ },
6560
+ {
6561
+ "name": "status",
6562
+ "type": {
6563
+ "defined": {
6564
+ "name": "ConfigStatus"
6565
+ }
6566
+ }
6567
+ },
6568
+ {
6569
+ "name": "mint",
6570
+ "type": "pubkey"
6571
+ },
6572
+ {
6573
+ "name": "admin",
6574
+ "type": "pubkey"
6575
+ },
6576
+ {
6577
+ "name": "admin_revoked",
6578
+ "type": "bool"
6579
+ },
6580
+ {
6581
+ "name": "shareholders",
6582
+ "type": {
6583
+ "vec": {
6584
+ "defined": {
6585
+ "name": "Shareholder"
6586
+ }
6587
+ }
6588
+ }
6589
+ }
6590
+ ]
6591
+ }
6592
+ },
5832
6593
  {
5833
6594
  "name": "SyncUserVolumeAccumulatorEvent",
5834
6595
  "type": {