@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/index.js CHANGED
@@ -2664,6 +2664,422 @@ var pump_default = {
2664
2664
  }
2665
2665
  ]
2666
2666
  },
2667
+ {
2668
+ name: "buy_exact_sol_in",
2669
+ docs: [
2670
+ "Given a budget of spendable SOL, buy at least min_tokens_out",
2671
+ "Account creation and fees will be deducted from the spendable SOL",
2672
+ "",
2673
+ "f(sol) = tokens, where tokens >= min_tokens_out and sol > rent + fees",
2674
+ "",
2675
+ "max_slippage = min_tokens_out = 1",
2676
+ "",
2677
+ "Make sure the sol budget is enough to cover creation of the following accounts (unless already created):",
2678
+ "- creator_vault: rent.minimum_balance(SystemAccount::LEN)",
2679
+ "- user_volume_accumulator: rent.minimum_balance(UserVolumeAccumulator::LEN)"
2680
+ ],
2681
+ discriminator: [
2682
+ 56,
2683
+ 252,
2684
+ 116,
2685
+ 8,
2686
+ 158,
2687
+ 223,
2688
+ 205,
2689
+ 95
2690
+ ],
2691
+ accounts: [
2692
+ {
2693
+ name: "global",
2694
+ pda: {
2695
+ seeds: [
2696
+ {
2697
+ kind: "const",
2698
+ value: [
2699
+ 103,
2700
+ 108,
2701
+ 111,
2702
+ 98,
2703
+ 97,
2704
+ 108
2705
+ ]
2706
+ }
2707
+ ]
2708
+ }
2709
+ },
2710
+ {
2711
+ name: "fee_recipient",
2712
+ writable: true
2713
+ },
2714
+ {
2715
+ name: "mint"
2716
+ },
2717
+ {
2718
+ name: "bonding_curve",
2719
+ writable: true,
2720
+ pda: {
2721
+ seeds: [
2722
+ {
2723
+ kind: "const",
2724
+ value: [
2725
+ 98,
2726
+ 111,
2727
+ 110,
2728
+ 100,
2729
+ 105,
2730
+ 110,
2731
+ 103,
2732
+ 45,
2733
+ 99,
2734
+ 117,
2735
+ 114,
2736
+ 118,
2737
+ 101
2738
+ ]
2739
+ },
2740
+ {
2741
+ kind: "account",
2742
+ path: "mint"
2743
+ }
2744
+ ]
2745
+ }
2746
+ },
2747
+ {
2748
+ name: "associated_bonding_curve",
2749
+ writable: true,
2750
+ pda: {
2751
+ seeds: [
2752
+ {
2753
+ kind: "account",
2754
+ path: "bonding_curve"
2755
+ },
2756
+ {
2757
+ kind: "const",
2758
+ value: [
2759
+ 6,
2760
+ 221,
2761
+ 246,
2762
+ 225,
2763
+ 215,
2764
+ 101,
2765
+ 161,
2766
+ 147,
2767
+ 217,
2768
+ 203,
2769
+ 225,
2770
+ 70,
2771
+ 206,
2772
+ 235,
2773
+ 121,
2774
+ 172,
2775
+ 28,
2776
+ 180,
2777
+ 133,
2778
+ 237,
2779
+ 95,
2780
+ 91,
2781
+ 55,
2782
+ 145,
2783
+ 58,
2784
+ 140,
2785
+ 245,
2786
+ 133,
2787
+ 126,
2788
+ 255,
2789
+ 0,
2790
+ 169
2791
+ ]
2792
+ },
2793
+ {
2794
+ kind: "account",
2795
+ path: "mint"
2796
+ }
2797
+ ],
2798
+ program: {
2799
+ kind: "const",
2800
+ value: [
2801
+ 140,
2802
+ 151,
2803
+ 37,
2804
+ 143,
2805
+ 78,
2806
+ 36,
2807
+ 137,
2808
+ 241,
2809
+ 187,
2810
+ 61,
2811
+ 16,
2812
+ 41,
2813
+ 20,
2814
+ 142,
2815
+ 13,
2816
+ 131,
2817
+ 11,
2818
+ 90,
2819
+ 19,
2820
+ 153,
2821
+ 218,
2822
+ 255,
2823
+ 16,
2824
+ 132,
2825
+ 4,
2826
+ 142,
2827
+ 123,
2828
+ 216,
2829
+ 219,
2830
+ 233,
2831
+ 248,
2832
+ 89
2833
+ ]
2834
+ }
2835
+ }
2836
+ },
2837
+ {
2838
+ name: "associated_user",
2839
+ writable: true
2840
+ },
2841
+ {
2842
+ name: "user",
2843
+ writable: true,
2844
+ signer: true
2845
+ },
2846
+ {
2847
+ name: "system_program",
2848
+ address: "11111111111111111111111111111111"
2849
+ },
2850
+ {
2851
+ name: "token_program",
2852
+ address: "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"
2853
+ },
2854
+ {
2855
+ name: "creator_vault",
2856
+ writable: true,
2857
+ pda: {
2858
+ seeds: [
2859
+ {
2860
+ kind: "const",
2861
+ value: [
2862
+ 99,
2863
+ 114,
2864
+ 101,
2865
+ 97,
2866
+ 116,
2867
+ 111,
2868
+ 114,
2869
+ 45,
2870
+ 118,
2871
+ 97,
2872
+ 117,
2873
+ 108,
2874
+ 116
2875
+ ]
2876
+ },
2877
+ {
2878
+ kind: "account",
2879
+ path: "bonding_curve.creator",
2880
+ account: "BondingCurve"
2881
+ }
2882
+ ]
2883
+ }
2884
+ },
2885
+ {
2886
+ name: "event_authority",
2887
+ pda: {
2888
+ seeds: [
2889
+ {
2890
+ kind: "const",
2891
+ value: [
2892
+ 95,
2893
+ 95,
2894
+ 101,
2895
+ 118,
2896
+ 101,
2897
+ 110,
2898
+ 116,
2899
+ 95,
2900
+ 97,
2901
+ 117,
2902
+ 116,
2903
+ 104,
2904
+ 111,
2905
+ 114,
2906
+ 105,
2907
+ 116,
2908
+ 121
2909
+ ]
2910
+ }
2911
+ ]
2912
+ }
2913
+ },
2914
+ {
2915
+ name: "program",
2916
+ address: "6EF8rrecthR5Dkzon8Nwu78hRvfCKubJ14M5uBEwF6P"
2917
+ },
2918
+ {
2919
+ name: "global_volume_accumulator",
2920
+ writable: true,
2921
+ pda: {
2922
+ seeds: [
2923
+ {
2924
+ kind: "const",
2925
+ value: [
2926
+ 103,
2927
+ 108,
2928
+ 111,
2929
+ 98,
2930
+ 97,
2931
+ 108,
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
+ }
2955
+ },
2956
+ {
2957
+ name: "user_volume_accumulator",
2958
+ writable: true,
2959
+ pda: {
2960
+ seeds: [
2961
+ {
2962
+ kind: "const",
2963
+ value: [
2964
+ 117,
2965
+ 115,
2966
+ 101,
2967
+ 114,
2968
+ 95,
2969
+ 118,
2970
+ 111,
2971
+ 108,
2972
+ 117,
2973
+ 109,
2974
+ 101,
2975
+ 95,
2976
+ 97,
2977
+ 99,
2978
+ 99,
2979
+ 117,
2980
+ 109,
2981
+ 117,
2982
+ 108,
2983
+ 97,
2984
+ 116,
2985
+ 111,
2986
+ 114
2987
+ ]
2988
+ },
2989
+ {
2990
+ kind: "account",
2991
+ path: "user"
2992
+ }
2993
+ ]
2994
+ }
2995
+ },
2996
+ {
2997
+ name: "fee_config",
2998
+ pda: {
2999
+ seeds: [
3000
+ {
3001
+ kind: "const",
3002
+ value: [
3003
+ 102,
3004
+ 101,
3005
+ 101,
3006
+ 95,
3007
+ 99,
3008
+ 111,
3009
+ 110,
3010
+ 102,
3011
+ 105,
3012
+ 103
3013
+ ]
3014
+ },
3015
+ {
3016
+ kind: "const",
3017
+ value: [
3018
+ 1,
3019
+ 86,
3020
+ 224,
3021
+ 246,
3022
+ 147,
3023
+ 102,
3024
+ 90,
3025
+ 207,
3026
+ 68,
3027
+ 219,
3028
+ 21,
3029
+ 104,
3030
+ 191,
3031
+ 23,
3032
+ 91,
3033
+ 170,
3034
+ 81,
3035
+ 137,
3036
+ 203,
3037
+ 151,
3038
+ 245,
3039
+ 210,
3040
+ 255,
3041
+ 59,
3042
+ 101,
3043
+ 93,
3044
+ 43,
3045
+ 182,
3046
+ 253,
3047
+ 109,
3048
+ 24,
3049
+ 176
3050
+ ]
3051
+ }
3052
+ ],
3053
+ program: {
3054
+ kind: "account",
3055
+ path: "fee_program"
3056
+ }
3057
+ }
3058
+ },
3059
+ {
3060
+ name: "fee_program",
3061
+ address: "pfeeUxB6jkeY1Hxd7CsFCAjcbHA9rWtchMGdZ6VojVZ"
3062
+ }
3063
+ ],
3064
+ args: [
3065
+ {
3066
+ name: "spendable_sol_in",
3067
+ type: "u64"
3068
+ },
3069
+ {
3070
+ name: "min_tokens_out",
3071
+ type: "u64"
3072
+ },
3073
+ {
3074
+ name: "track_volume",
3075
+ type: {
3076
+ defined: {
3077
+ name: "OptionBool"
3078
+ }
3079
+ }
3080
+ }
3081
+ ]
3082
+ },
2667
3083
  {
2668
3084
  name: "claim_token_incentives",
2669
3085
  discriminator: [
@@ -5687,6 +6103,21 @@ var pump_default = {
5687
6103
  {
5688
6104
  code: 6039,
5689
6105
  name: "InvalidIncentiveMint"
6106
+ },
6107
+ {
6108
+ code: 6040,
6109
+ name: "BuyNotEnoughSolToCoverRent",
6110
+ msg: "Buy: Not enough SOL to cover for rent exemption."
6111
+ },
6112
+ {
6113
+ code: 6041,
6114
+ name: "BuyNotEnoughSolToCoverFees",
6115
+ msg: "Buy: Not enough SOL to cover for fees."
6116
+ },
6117
+ {
6118
+ code: 6042,
6119
+ name: "BuySlippageBelowMinTokensOut",
6120
+ msg: "Slippage: Would buy less tokens than expected min_tokens_out"
5690
6121
  }
5691
6122
  ],
5692
6123
  types: [
@@ -6409,6 +6840,9 @@ var pump_default = {
6409
6840
  },
6410
6841
  {
6411
6842
  name: "TradeEvent",
6843
+ docs: [
6844
+ 'ix_name: "buy" | "sell" | "buy_exact_sol_in"'
6845
+ ],
6412
6846
  type: {
6413
6847
  kind: "struct",
6414
6848
  fields: [
@@ -6495,6 +6929,10 @@ var pump_default = {
6495
6929
  {
6496
6930
  name: "last_update_timestamp",
6497
6931
  type: "i64"
6932
+ },
6933
+ {
6934
+ name: "ix_name",
6935
+ type: "string"
6498
6936
  }
6499
6937
  ]
6500
6938
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pump-fun/pump-sdk",
3
- "version": "1.18.11",
3
+ "version": "1.19.0-devnet.1",
4
4
  "description": "Pump Bonding Curve SDK",
5
5
  "keywords": [],
6
6
  "homepage": "https://github.com/pump-fun/pump-sdk#readme",
@@ -76,6 +76,10 @@
76
76
  "branches": [
77
77
  {
78
78
  "name": "main"
79
+ },
80
+ {
81
+ "name": "devnet",
82
+ "prerelease": true
79
83
  }
80
84
  ]
81
85
  }