@pump-fun/pump-sdk 1.18.10 → 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 +438 -0
- package/dist/index.d.mts +2553 -1677
- package/dist/index.d.ts +2553 -1677
- package/dist/index.js +438 -0
- package/package.json +6 -2
- package/src/idl/pump.json +438 -0
- package/src/idl/pump.ts +438 -0
package/src/idl/pump.json
CHANGED
|
@@ -824,6 +824,422 @@
|
|
|
824
824
|
}
|
|
825
825
|
]
|
|
826
826
|
},
|
|
827
|
+
{
|
|
828
|
+
"name": "buy_exact_sol_in",
|
|
829
|
+
"docs": [
|
|
830
|
+
"Given a budget of spendable SOL, buy at least min_tokens_out",
|
|
831
|
+
"Account creation and fees will be deducted from the spendable SOL",
|
|
832
|
+
"",
|
|
833
|
+
"f(sol) = tokens, where tokens >= min_tokens_out and sol > rent + fees",
|
|
834
|
+
"",
|
|
835
|
+
"max_slippage = min_tokens_out = 1",
|
|
836
|
+
"",
|
|
837
|
+
"Make sure the sol budget is enough to cover creation of the following accounts (unless already created):",
|
|
838
|
+
"- creator_vault: rent.minimum_balance(SystemAccount::LEN)",
|
|
839
|
+
"- user_volume_accumulator: rent.minimum_balance(UserVolumeAccumulator::LEN)"
|
|
840
|
+
],
|
|
841
|
+
"discriminator": [
|
|
842
|
+
56,
|
|
843
|
+
252,
|
|
844
|
+
116,
|
|
845
|
+
8,
|
|
846
|
+
158,
|
|
847
|
+
223,
|
|
848
|
+
205,
|
|
849
|
+
95
|
|
850
|
+
],
|
|
851
|
+
"accounts": [
|
|
852
|
+
{
|
|
853
|
+
"name": "global",
|
|
854
|
+
"pda": {
|
|
855
|
+
"seeds": [
|
|
856
|
+
{
|
|
857
|
+
"kind": "const",
|
|
858
|
+
"value": [
|
|
859
|
+
103,
|
|
860
|
+
108,
|
|
861
|
+
111,
|
|
862
|
+
98,
|
|
863
|
+
97,
|
|
864
|
+
108
|
|
865
|
+
]
|
|
866
|
+
}
|
|
867
|
+
]
|
|
868
|
+
}
|
|
869
|
+
},
|
|
870
|
+
{
|
|
871
|
+
"name": "fee_recipient",
|
|
872
|
+
"writable": true
|
|
873
|
+
},
|
|
874
|
+
{
|
|
875
|
+
"name": "mint"
|
|
876
|
+
},
|
|
877
|
+
{
|
|
878
|
+
"name": "bonding_curve",
|
|
879
|
+
"writable": true,
|
|
880
|
+
"pda": {
|
|
881
|
+
"seeds": [
|
|
882
|
+
{
|
|
883
|
+
"kind": "const",
|
|
884
|
+
"value": [
|
|
885
|
+
98,
|
|
886
|
+
111,
|
|
887
|
+
110,
|
|
888
|
+
100,
|
|
889
|
+
105,
|
|
890
|
+
110,
|
|
891
|
+
103,
|
|
892
|
+
45,
|
|
893
|
+
99,
|
|
894
|
+
117,
|
|
895
|
+
114,
|
|
896
|
+
118,
|
|
897
|
+
101
|
|
898
|
+
]
|
|
899
|
+
},
|
|
900
|
+
{
|
|
901
|
+
"kind": "account",
|
|
902
|
+
"path": "mint"
|
|
903
|
+
}
|
|
904
|
+
]
|
|
905
|
+
}
|
|
906
|
+
},
|
|
907
|
+
{
|
|
908
|
+
"name": "associated_bonding_curve",
|
|
909
|
+
"writable": true,
|
|
910
|
+
"pda": {
|
|
911
|
+
"seeds": [
|
|
912
|
+
{
|
|
913
|
+
"kind": "account",
|
|
914
|
+
"path": "bonding_curve"
|
|
915
|
+
},
|
|
916
|
+
{
|
|
917
|
+
"kind": "const",
|
|
918
|
+
"value": [
|
|
919
|
+
6,
|
|
920
|
+
221,
|
|
921
|
+
246,
|
|
922
|
+
225,
|
|
923
|
+
215,
|
|
924
|
+
101,
|
|
925
|
+
161,
|
|
926
|
+
147,
|
|
927
|
+
217,
|
|
928
|
+
203,
|
|
929
|
+
225,
|
|
930
|
+
70,
|
|
931
|
+
206,
|
|
932
|
+
235,
|
|
933
|
+
121,
|
|
934
|
+
172,
|
|
935
|
+
28,
|
|
936
|
+
180,
|
|
937
|
+
133,
|
|
938
|
+
237,
|
|
939
|
+
95,
|
|
940
|
+
91,
|
|
941
|
+
55,
|
|
942
|
+
145,
|
|
943
|
+
58,
|
|
944
|
+
140,
|
|
945
|
+
245,
|
|
946
|
+
133,
|
|
947
|
+
126,
|
|
948
|
+
255,
|
|
949
|
+
0,
|
|
950
|
+
169
|
|
951
|
+
]
|
|
952
|
+
},
|
|
953
|
+
{
|
|
954
|
+
"kind": "account",
|
|
955
|
+
"path": "mint"
|
|
956
|
+
}
|
|
957
|
+
],
|
|
958
|
+
"program": {
|
|
959
|
+
"kind": "const",
|
|
960
|
+
"value": [
|
|
961
|
+
140,
|
|
962
|
+
151,
|
|
963
|
+
37,
|
|
964
|
+
143,
|
|
965
|
+
78,
|
|
966
|
+
36,
|
|
967
|
+
137,
|
|
968
|
+
241,
|
|
969
|
+
187,
|
|
970
|
+
61,
|
|
971
|
+
16,
|
|
972
|
+
41,
|
|
973
|
+
20,
|
|
974
|
+
142,
|
|
975
|
+
13,
|
|
976
|
+
131,
|
|
977
|
+
11,
|
|
978
|
+
90,
|
|
979
|
+
19,
|
|
980
|
+
153,
|
|
981
|
+
218,
|
|
982
|
+
255,
|
|
983
|
+
16,
|
|
984
|
+
132,
|
|
985
|
+
4,
|
|
986
|
+
142,
|
|
987
|
+
123,
|
|
988
|
+
216,
|
|
989
|
+
219,
|
|
990
|
+
233,
|
|
991
|
+
248,
|
|
992
|
+
89
|
|
993
|
+
]
|
|
994
|
+
}
|
|
995
|
+
}
|
|
996
|
+
},
|
|
997
|
+
{
|
|
998
|
+
"name": "associated_user",
|
|
999
|
+
"writable": true
|
|
1000
|
+
},
|
|
1001
|
+
{
|
|
1002
|
+
"name": "user",
|
|
1003
|
+
"writable": true,
|
|
1004
|
+
"signer": true
|
|
1005
|
+
},
|
|
1006
|
+
{
|
|
1007
|
+
"name": "system_program",
|
|
1008
|
+
"address": "11111111111111111111111111111111"
|
|
1009
|
+
},
|
|
1010
|
+
{
|
|
1011
|
+
"name": "token_program",
|
|
1012
|
+
"address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"
|
|
1013
|
+
},
|
|
1014
|
+
{
|
|
1015
|
+
"name": "creator_vault",
|
|
1016
|
+
"writable": true,
|
|
1017
|
+
"pda": {
|
|
1018
|
+
"seeds": [
|
|
1019
|
+
{
|
|
1020
|
+
"kind": "const",
|
|
1021
|
+
"value": [
|
|
1022
|
+
99,
|
|
1023
|
+
114,
|
|
1024
|
+
101,
|
|
1025
|
+
97,
|
|
1026
|
+
116,
|
|
1027
|
+
111,
|
|
1028
|
+
114,
|
|
1029
|
+
45,
|
|
1030
|
+
118,
|
|
1031
|
+
97,
|
|
1032
|
+
117,
|
|
1033
|
+
108,
|
|
1034
|
+
116
|
|
1035
|
+
]
|
|
1036
|
+
},
|
|
1037
|
+
{
|
|
1038
|
+
"kind": "account",
|
|
1039
|
+
"path": "bonding_curve.creator",
|
|
1040
|
+
"account": "BondingCurve"
|
|
1041
|
+
}
|
|
1042
|
+
]
|
|
1043
|
+
}
|
|
1044
|
+
},
|
|
1045
|
+
{
|
|
1046
|
+
"name": "event_authority",
|
|
1047
|
+
"pda": {
|
|
1048
|
+
"seeds": [
|
|
1049
|
+
{
|
|
1050
|
+
"kind": "const",
|
|
1051
|
+
"value": [
|
|
1052
|
+
95,
|
|
1053
|
+
95,
|
|
1054
|
+
101,
|
|
1055
|
+
118,
|
|
1056
|
+
101,
|
|
1057
|
+
110,
|
|
1058
|
+
116,
|
|
1059
|
+
95,
|
|
1060
|
+
97,
|
|
1061
|
+
117,
|
|
1062
|
+
116,
|
|
1063
|
+
104,
|
|
1064
|
+
111,
|
|
1065
|
+
114,
|
|
1066
|
+
105,
|
|
1067
|
+
116,
|
|
1068
|
+
121
|
|
1069
|
+
]
|
|
1070
|
+
}
|
|
1071
|
+
]
|
|
1072
|
+
}
|
|
1073
|
+
},
|
|
1074
|
+
{
|
|
1075
|
+
"name": "program",
|
|
1076
|
+
"address": "6EF8rrecthR5Dkzon8Nwu78hRvfCKubJ14M5uBEwF6P"
|
|
1077
|
+
},
|
|
1078
|
+
{
|
|
1079
|
+
"name": "global_volume_accumulator",
|
|
1080
|
+
"writable": true,
|
|
1081
|
+
"pda": {
|
|
1082
|
+
"seeds": [
|
|
1083
|
+
{
|
|
1084
|
+
"kind": "const",
|
|
1085
|
+
"value": [
|
|
1086
|
+
103,
|
|
1087
|
+
108,
|
|
1088
|
+
111,
|
|
1089
|
+
98,
|
|
1090
|
+
97,
|
|
1091
|
+
108,
|
|
1092
|
+
95,
|
|
1093
|
+
118,
|
|
1094
|
+
111,
|
|
1095
|
+
108,
|
|
1096
|
+
117,
|
|
1097
|
+
109,
|
|
1098
|
+
101,
|
|
1099
|
+
95,
|
|
1100
|
+
97,
|
|
1101
|
+
99,
|
|
1102
|
+
99,
|
|
1103
|
+
117,
|
|
1104
|
+
109,
|
|
1105
|
+
117,
|
|
1106
|
+
108,
|
|
1107
|
+
97,
|
|
1108
|
+
116,
|
|
1109
|
+
111,
|
|
1110
|
+
114
|
|
1111
|
+
]
|
|
1112
|
+
}
|
|
1113
|
+
]
|
|
1114
|
+
}
|
|
1115
|
+
},
|
|
1116
|
+
{
|
|
1117
|
+
"name": "user_volume_accumulator",
|
|
1118
|
+
"writable": true,
|
|
1119
|
+
"pda": {
|
|
1120
|
+
"seeds": [
|
|
1121
|
+
{
|
|
1122
|
+
"kind": "const",
|
|
1123
|
+
"value": [
|
|
1124
|
+
117,
|
|
1125
|
+
115,
|
|
1126
|
+
101,
|
|
1127
|
+
114,
|
|
1128
|
+
95,
|
|
1129
|
+
118,
|
|
1130
|
+
111,
|
|
1131
|
+
108,
|
|
1132
|
+
117,
|
|
1133
|
+
109,
|
|
1134
|
+
101,
|
|
1135
|
+
95,
|
|
1136
|
+
97,
|
|
1137
|
+
99,
|
|
1138
|
+
99,
|
|
1139
|
+
117,
|
|
1140
|
+
109,
|
|
1141
|
+
117,
|
|
1142
|
+
108,
|
|
1143
|
+
97,
|
|
1144
|
+
116,
|
|
1145
|
+
111,
|
|
1146
|
+
114
|
|
1147
|
+
]
|
|
1148
|
+
},
|
|
1149
|
+
{
|
|
1150
|
+
"kind": "account",
|
|
1151
|
+
"path": "user"
|
|
1152
|
+
}
|
|
1153
|
+
]
|
|
1154
|
+
}
|
|
1155
|
+
},
|
|
1156
|
+
{
|
|
1157
|
+
"name": "fee_config",
|
|
1158
|
+
"pda": {
|
|
1159
|
+
"seeds": [
|
|
1160
|
+
{
|
|
1161
|
+
"kind": "const",
|
|
1162
|
+
"value": [
|
|
1163
|
+
102,
|
|
1164
|
+
101,
|
|
1165
|
+
101,
|
|
1166
|
+
95,
|
|
1167
|
+
99,
|
|
1168
|
+
111,
|
|
1169
|
+
110,
|
|
1170
|
+
102,
|
|
1171
|
+
105,
|
|
1172
|
+
103
|
|
1173
|
+
]
|
|
1174
|
+
},
|
|
1175
|
+
{
|
|
1176
|
+
"kind": "const",
|
|
1177
|
+
"value": [
|
|
1178
|
+
1,
|
|
1179
|
+
86,
|
|
1180
|
+
224,
|
|
1181
|
+
246,
|
|
1182
|
+
147,
|
|
1183
|
+
102,
|
|
1184
|
+
90,
|
|
1185
|
+
207,
|
|
1186
|
+
68,
|
|
1187
|
+
219,
|
|
1188
|
+
21,
|
|
1189
|
+
104,
|
|
1190
|
+
191,
|
|
1191
|
+
23,
|
|
1192
|
+
91,
|
|
1193
|
+
170,
|
|
1194
|
+
81,
|
|
1195
|
+
137,
|
|
1196
|
+
203,
|
|
1197
|
+
151,
|
|
1198
|
+
245,
|
|
1199
|
+
210,
|
|
1200
|
+
255,
|
|
1201
|
+
59,
|
|
1202
|
+
101,
|
|
1203
|
+
93,
|
|
1204
|
+
43,
|
|
1205
|
+
182,
|
|
1206
|
+
253,
|
|
1207
|
+
109,
|
|
1208
|
+
24,
|
|
1209
|
+
176
|
|
1210
|
+
]
|
|
1211
|
+
}
|
|
1212
|
+
],
|
|
1213
|
+
"program": {
|
|
1214
|
+
"kind": "account",
|
|
1215
|
+
"path": "fee_program"
|
|
1216
|
+
}
|
|
1217
|
+
}
|
|
1218
|
+
},
|
|
1219
|
+
{
|
|
1220
|
+
"name": "fee_program",
|
|
1221
|
+
"address": "pfeeUxB6jkeY1Hxd7CsFCAjcbHA9rWtchMGdZ6VojVZ"
|
|
1222
|
+
}
|
|
1223
|
+
],
|
|
1224
|
+
"args": [
|
|
1225
|
+
{
|
|
1226
|
+
"name": "spendable_sol_in",
|
|
1227
|
+
"type": "u64"
|
|
1228
|
+
},
|
|
1229
|
+
{
|
|
1230
|
+
"name": "min_tokens_out",
|
|
1231
|
+
"type": "u64"
|
|
1232
|
+
},
|
|
1233
|
+
{
|
|
1234
|
+
"name": "track_volume",
|
|
1235
|
+
"type": {
|
|
1236
|
+
"defined": {
|
|
1237
|
+
"name": "OptionBool"
|
|
1238
|
+
}
|
|
1239
|
+
}
|
|
1240
|
+
}
|
|
1241
|
+
]
|
|
1242
|
+
},
|
|
827
1243
|
{
|
|
828
1244
|
"name": "claim_token_incentives",
|
|
829
1245
|
"discriminator": [
|
|
@@ -3847,6 +4263,21 @@
|
|
|
3847
4263
|
{
|
|
3848
4264
|
"code": 6039,
|
|
3849
4265
|
"name": "InvalidIncentiveMint"
|
|
4266
|
+
},
|
|
4267
|
+
{
|
|
4268
|
+
"code": 6040,
|
|
4269
|
+
"name": "BuyNotEnoughSolToCoverRent",
|
|
4270
|
+
"msg": "Buy: Not enough SOL to cover for rent exemption."
|
|
4271
|
+
},
|
|
4272
|
+
{
|
|
4273
|
+
"code": 6041,
|
|
4274
|
+
"name": "BuyNotEnoughSolToCoverFees",
|
|
4275
|
+
"msg": "Buy: Not enough SOL to cover for fees."
|
|
4276
|
+
},
|
|
4277
|
+
{
|
|
4278
|
+
"code": 6042,
|
|
4279
|
+
"name": "BuySlippageBelowMinTokensOut",
|
|
4280
|
+
"msg": "Slippage: Would buy less tokens than expected min_tokens_out"
|
|
3850
4281
|
}
|
|
3851
4282
|
],
|
|
3852
4283
|
"types": [
|
|
@@ -4569,6 +5000,9 @@
|
|
|
4569
5000
|
},
|
|
4570
5001
|
{
|
|
4571
5002
|
"name": "TradeEvent",
|
|
5003
|
+
"docs": [
|
|
5004
|
+
"ix_name: \"buy\" | \"sell\" | \"buy_exact_sol_in\""
|
|
5005
|
+
],
|
|
4572
5006
|
"type": {
|
|
4573
5007
|
"kind": "struct",
|
|
4574
5008
|
"fields": [
|
|
@@ -4655,6 +5089,10 @@
|
|
|
4655
5089
|
{
|
|
4656
5090
|
"name": "last_update_timestamp",
|
|
4657
5091
|
"type": "i64"
|
|
5092
|
+
},
|
|
5093
|
+
{
|
|
5094
|
+
"name": "ix_name",
|
|
5095
|
+
"type": "string"
|
|
4658
5096
|
}
|
|
4659
5097
|
]
|
|
4660
5098
|
}
|