@pump-fun/pump-sdk 1.18.11 → 1.19.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/dist/esm/index.js CHANGED
@@ -2628,6 +2628,422 @@ var pump_default = {
2628
2628
  }
2629
2629
  ]
2630
2630
  },
2631
+ {
2632
+ name: "buy_exact_sol_in",
2633
+ docs: [
2634
+ "Given a budget of spendable SOL, buy at least min_tokens_out",
2635
+ "Account creation and fees will be deducted from the spendable SOL",
2636
+ "",
2637
+ "f(sol) = tokens, where tokens >= min_tokens_out and sol > rent + fees",
2638
+ "",
2639
+ "max_slippage = min_tokens_out = 1",
2640
+ "",
2641
+ "Make sure the sol budget is enough to cover creation of the following accounts (unless already created):",
2642
+ "- creator_vault: rent.minimum_balance(SystemAccount::LEN)",
2643
+ "- user_volume_accumulator: rent.minimum_balance(UserVolumeAccumulator::LEN)"
2644
+ ],
2645
+ discriminator: [
2646
+ 56,
2647
+ 252,
2648
+ 116,
2649
+ 8,
2650
+ 158,
2651
+ 223,
2652
+ 205,
2653
+ 95
2654
+ ],
2655
+ accounts: [
2656
+ {
2657
+ name: "global",
2658
+ pda: {
2659
+ seeds: [
2660
+ {
2661
+ kind: "const",
2662
+ value: [
2663
+ 103,
2664
+ 108,
2665
+ 111,
2666
+ 98,
2667
+ 97,
2668
+ 108
2669
+ ]
2670
+ }
2671
+ ]
2672
+ }
2673
+ },
2674
+ {
2675
+ name: "fee_recipient",
2676
+ writable: true
2677
+ },
2678
+ {
2679
+ name: "mint"
2680
+ },
2681
+ {
2682
+ name: "bonding_curve",
2683
+ writable: true,
2684
+ pda: {
2685
+ seeds: [
2686
+ {
2687
+ kind: "const",
2688
+ value: [
2689
+ 98,
2690
+ 111,
2691
+ 110,
2692
+ 100,
2693
+ 105,
2694
+ 110,
2695
+ 103,
2696
+ 45,
2697
+ 99,
2698
+ 117,
2699
+ 114,
2700
+ 118,
2701
+ 101
2702
+ ]
2703
+ },
2704
+ {
2705
+ kind: "account",
2706
+ path: "mint"
2707
+ }
2708
+ ]
2709
+ }
2710
+ },
2711
+ {
2712
+ name: "associated_bonding_curve",
2713
+ writable: true,
2714
+ pda: {
2715
+ seeds: [
2716
+ {
2717
+ kind: "account",
2718
+ path: "bonding_curve"
2719
+ },
2720
+ {
2721
+ kind: "const",
2722
+ value: [
2723
+ 6,
2724
+ 221,
2725
+ 246,
2726
+ 225,
2727
+ 215,
2728
+ 101,
2729
+ 161,
2730
+ 147,
2731
+ 217,
2732
+ 203,
2733
+ 225,
2734
+ 70,
2735
+ 206,
2736
+ 235,
2737
+ 121,
2738
+ 172,
2739
+ 28,
2740
+ 180,
2741
+ 133,
2742
+ 237,
2743
+ 95,
2744
+ 91,
2745
+ 55,
2746
+ 145,
2747
+ 58,
2748
+ 140,
2749
+ 245,
2750
+ 133,
2751
+ 126,
2752
+ 255,
2753
+ 0,
2754
+ 169
2755
+ ]
2756
+ },
2757
+ {
2758
+ kind: "account",
2759
+ path: "mint"
2760
+ }
2761
+ ],
2762
+ program: {
2763
+ kind: "const",
2764
+ value: [
2765
+ 140,
2766
+ 151,
2767
+ 37,
2768
+ 143,
2769
+ 78,
2770
+ 36,
2771
+ 137,
2772
+ 241,
2773
+ 187,
2774
+ 61,
2775
+ 16,
2776
+ 41,
2777
+ 20,
2778
+ 142,
2779
+ 13,
2780
+ 131,
2781
+ 11,
2782
+ 90,
2783
+ 19,
2784
+ 153,
2785
+ 218,
2786
+ 255,
2787
+ 16,
2788
+ 132,
2789
+ 4,
2790
+ 142,
2791
+ 123,
2792
+ 216,
2793
+ 219,
2794
+ 233,
2795
+ 248,
2796
+ 89
2797
+ ]
2798
+ }
2799
+ }
2800
+ },
2801
+ {
2802
+ name: "associated_user",
2803
+ writable: true
2804
+ },
2805
+ {
2806
+ name: "user",
2807
+ writable: true,
2808
+ signer: true
2809
+ },
2810
+ {
2811
+ name: "system_program",
2812
+ address: "11111111111111111111111111111111"
2813
+ },
2814
+ {
2815
+ name: "token_program",
2816
+ address: "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"
2817
+ },
2818
+ {
2819
+ name: "creator_vault",
2820
+ writable: true,
2821
+ pda: {
2822
+ seeds: [
2823
+ {
2824
+ kind: "const",
2825
+ value: [
2826
+ 99,
2827
+ 114,
2828
+ 101,
2829
+ 97,
2830
+ 116,
2831
+ 111,
2832
+ 114,
2833
+ 45,
2834
+ 118,
2835
+ 97,
2836
+ 117,
2837
+ 108,
2838
+ 116
2839
+ ]
2840
+ },
2841
+ {
2842
+ kind: "account",
2843
+ path: "bonding_curve.creator",
2844
+ account: "BondingCurve"
2845
+ }
2846
+ ]
2847
+ }
2848
+ },
2849
+ {
2850
+ name: "event_authority",
2851
+ pda: {
2852
+ seeds: [
2853
+ {
2854
+ kind: "const",
2855
+ value: [
2856
+ 95,
2857
+ 95,
2858
+ 101,
2859
+ 118,
2860
+ 101,
2861
+ 110,
2862
+ 116,
2863
+ 95,
2864
+ 97,
2865
+ 117,
2866
+ 116,
2867
+ 104,
2868
+ 111,
2869
+ 114,
2870
+ 105,
2871
+ 116,
2872
+ 121
2873
+ ]
2874
+ }
2875
+ ]
2876
+ }
2877
+ },
2878
+ {
2879
+ name: "program",
2880
+ address: "6EF8rrecthR5Dkzon8Nwu78hRvfCKubJ14M5uBEwF6P"
2881
+ },
2882
+ {
2883
+ name: "global_volume_accumulator",
2884
+ writable: true,
2885
+ pda: {
2886
+ seeds: [
2887
+ {
2888
+ kind: "const",
2889
+ value: [
2890
+ 103,
2891
+ 108,
2892
+ 111,
2893
+ 98,
2894
+ 97,
2895
+ 108,
2896
+ 95,
2897
+ 118,
2898
+ 111,
2899
+ 108,
2900
+ 117,
2901
+ 109,
2902
+ 101,
2903
+ 95,
2904
+ 97,
2905
+ 99,
2906
+ 99,
2907
+ 117,
2908
+ 109,
2909
+ 117,
2910
+ 108,
2911
+ 97,
2912
+ 116,
2913
+ 111,
2914
+ 114
2915
+ ]
2916
+ }
2917
+ ]
2918
+ }
2919
+ },
2920
+ {
2921
+ name: "user_volume_accumulator",
2922
+ writable: true,
2923
+ pda: {
2924
+ seeds: [
2925
+ {
2926
+ kind: "const",
2927
+ value: [
2928
+ 117,
2929
+ 115,
2930
+ 101,
2931
+ 114,
2932
+ 95,
2933
+ 118,
2934
+ 111,
2935
+ 108,
2936
+ 117,
2937
+ 109,
2938
+ 101,
2939
+ 95,
2940
+ 97,
2941
+ 99,
2942
+ 99,
2943
+ 117,
2944
+ 109,
2945
+ 117,
2946
+ 108,
2947
+ 97,
2948
+ 116,
2949
+ 111,
2950
+ 114
2951
+ ]
2952
+ },
2953
+ {
2954
+ kind: "account",
2955
+ path: "user"
2956
+ }
2957
+ ]
2958
+ }
2959
+ },
2960
+ {
2961
+ name: "fee_config",
2962
+ pda: {
2963
+ seeds: [
2964
+ {
2965
+ kind: "const",
2966
+ value: [
2967
+ 102,
2968
+ 101,
2969
+ 101,
2970
+ 95,
2971
+ 99,
2972
+ 111,
2973
+ 110,
2974
+ 102,
2975
+ 105,
2976
+ 103
2977
+ ]
2978
+ },
2979
+ {
2980
+ kind: "const",
2981
+ value: [
2982
+ 1,
2983
+ 86,
2984
+ 224,
2985
+ 246,
2986
+ 147,
2987
+ 102,
2988
+ 90,
2989
+ 207,
2990
+ 68,
2991
+ 219,
2992
+ 21,
2993
+ 104,
2994
+ 191,
2995
+ 23,
2996
+ 91,
2997
+ 170,
2998
+ 81,
2999
+ 137,
3000
+ 203,
3001
+ 151,
3002
+ 245,
3003
+ 210,
3004
+ 255,
3005
+ 59,
3006
+ 101,
3007
+ 93,
3008
+ 43,
3009
+ 182,
3010
+ 253,
3011
+ 109,
3012
+ 24,
3013
+ 176
3014
+ ]
3015
+ }
3016
+ ],
3017
+ program: {
3018
+ kind: "account",
3019
+ path: "fee_program"
3020
+ }
3021
+ }
3022
+ },
3023
+ {
3024
+ name: "fee_program",
3025
+ address: "pfeeUxB6jkeY1Hxd7CsFCAjcbHA9rWtchMGdZ6VojVZ"
3026
+ }
3027
+ ],
3028
+ args: [
3029
+ {
3030
+ name: "spendable_sol_in",
3031
+ type: "u64"
3032
+ },
3033
+ {
3034
+ name: "min_tokens_out",
3035
+ type: "u64"
3036
+ },
3037
+ {
3038
+ name: "track_volume",
3039
+ type: {
3040
+ defined: {
3041
+ name: "OptionBool"
3042
+ }
3043
+ }
3044
+ }
3045
+ ]
3046
+ },
2631
3047
  {
2632
3048
  name: "claim_token_incentives",
2633
3049
  discriminator: [
@@ -5651,6 +6067,21 @@ var pump_default = {
5651
6067
  {
5652
6068
  code: 6039,
5653
6069
  name: "InvalidIncentiveMint"
6070
+ },
6071
+ {
6072
+ code: 6040,
6073
+ name: "BuyNotEnoughSolToCoverRent",
6074
+ msg: "Buy: Not enough SOL to cover for rent exemption."
6075
+ },
6076
+ {
6077
+ code: 6041,
6078
+ name: "BuyNotEnoughSolToCoverFees",
6079
+ msg: "Buy: Not enough SOL to cover for fees."
6080
+ },
6081
+ {
6082
+ code: 6042,
6083
+ name: "BuySlippageBelowMinTokensOut",
6084
+ msg: "Slippage: Would buy less tokens than expected min_tokens_out"
5654
6085
  }
5655
6086
  ],
5656
6087
  types: [
@@ -6373,6 +6804,9 @@ var pump_default = {
6373
6804
  },
6374
6805
  {
6375
6806
  name: "TradeEvent",
6807
+ docs: [
6808
+ 'ix_name: "buy" | "sell" | "buy_exact_sol_in"'
6809
+ ],
6376
6810
  type: {
6377
6811
  kind: "struct",
6378
6812
  fields: [
@@ -6459,6 +6893,10 @@ var pump_default = {
6459
6893
  {
6460
6894
  name: "last_update_timestamp",
6461
6895
  type: "i64"
6896
+ },
6897
+ {
6898
+ name: "ix_name",
6899
+ type: "string"
6462
6900
  }
6463
6901
  ]
6464
6902
  }