@pump-fun/pump-sdk 1.23.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.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": [
@@ -2977,53 +3330,204 @@ export type Pump = {
2977
3330
  },
2978
3331
  {
2979
3332
  "kind": "account",
2980
- "path": "wsolMint"
3333
+ "path": "wsolMint"
3334
+ }
3335
+ ],
3336
+ "program": {
3337
+ "kind": "account",
3338
+ "path": "associatedTokenProgram"
3339
+ }
3340
+ }
3341
+ },
3342
+ {
3343
+ "name": "token2022Program",
3344
+ "address": "TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb"
3345
+ },
3346
+ {
3347
+ "name": "associatedTokenProgram",
3348
+ "address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL"
3349
+ },
3350
+ {
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"
2981
3463
  }
2982
- ],
2983
- "program": {
2984
- "kind": "account",
2985
- "path": "associatedTokenProgram"
2986
- }
3464
+ ]
2987
3465
  }
2988
3466
  },
2989
3467
  {
2990
- "name": "token2022Program",
2991
- "address": "TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb"
2992
- },
2993
- {
2994
- "name": "associatedTokenProgram",
2995
- "address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL"
2996
- },
2997
- {
2998
- "name": "pumpAmmEventAuthority",
3468
+ "name": "sharingConfig",
2999
3469
  "pda": {
3000
3470
  "seeds": [
3001
3471
  {
3002
3472
  "kind": "const",
3003
3473
  "value": [
3004
- 95,
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
- 111,
3476
+ 97,
3017
3477
  114,
3018
3478
  105,
3019
- 116,
3020
- 121
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": "account",
3026
- "path": "pumpAmm"
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
  },
@@ -4584,6 +5088,19 @@ export type Pump = {
4584
5088
  255
4585
5089
  ]
4586
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
+ },
4587
5104
  {
4588
5105
  "name": "userVolumeAccumulator",
4589
5106
  "discriminator": [
@@ -4716,6 +5233,19 @@ export type Pump = {
4716
5233
  118
4717
5234
  ]
4718
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
+ },
4719
5249
  {
4720
5250
  "name": "extendAccountEvent",
4721
5251
  "discriminator": [
@@ -4742,6 +5272,32 @@ export type Pump = {
4742
5272
  216
4743
5273
  ]
4744
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
+ },
4745
5301
  {
4746
5302
  "name": "reservedFeeRecipientsEvent",
4747
5303
  "discriminator": [
@@ -5077,6 +5633,41 @@ export type Pump = {
5077
5633
  {
5078
5634
  "code": 6048,
5079
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"
5080
5671
  }
5081
5672
  ],
5082
5673
  "types": [
@@ -5348,6 +5939,20 @@ export type Pump = {
5348
5939
  ]
5349
5940
  }
5350
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
+ },
5351
5956
  {
5352
5957
  "name": "createEvent",
5353
5958
  "type": {
@@ -5412,6 +6017,48 @@ export type Pump = {
5412
6017
  ]
5413
6018
  }
5414
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
+ },
5415
6062
  {
5416
6063
  "name": "extendAccountEvent",
5417
6064
  "type": {
@@ -5680,6 +6327,58 @@ export type Pump = {
5680
6327
  ]
5681
6328
  }
5682
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
+ },
5683
6382
  {
5684
6383
  "name": "optionBool",
5685
6384
  "type": {
@@ -5835,6 +6534,68 @@ export type Pump = {
5835
6534
  ]
5836
6535
  }
5837
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
+ },
5838
6599
  {
5839
6600
  "name": "syncUserVolumeAccumulatorEvent",
5840
6601
  "type": {