@pump-fun/pump-sdk 1.16.0 → 1.17.0

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
@@ -5201,14 +5201,15 @@ var PumpSdk = class {
5201
5201
  mint,
5202
5202
  creator,
5203
5203
  amount,
5204
- solAmount
5204
+ solAmount,
5205
+ feeRecipient = getStaticRandomFeeRecipient()
5205
5206
  }) {
5206
5207
  return await this.getBuyInstructionInternal({
5207
5208
  user,
5208
5209
  associatedUser: getAssociatedTokenAddressSync(mint, user, true),
5209
5210
  mint,
5210
5211
  creator,
5211
- feeRecipient: getStaticRandomFeeRecipient(),
5212
+ feeRecipient,
5212
5213
  amount,
5213
5214
  solAmount
5214
5215
  });
@@ -5235,13 +5236,14 @@ var PumpSdk = class {
5235
5236
  mint,
5236
5237
  creator,
5237
5238
  amount,
5238
- solAmount
5239
+ solAmount,
5240
+ feeRecipient = getStaticRandomFeeRecipient()
5239
5241
  }) {
5240
5242
  return await this.getSellInstructionInternal({
5241
5243
  user,
5242
5244
  mint,
5243
5245
  creator,
5244
- feeRecipient: getStaticRandomFeeRecipient(),
5246
+ feeRecipient,
5245
5247
  amount,
5246
5248
  solAmount
5247
5249
  });
package/dist/index.d.mts CHANGED
@@ -9206,20 +9206,22 @@ declare class PumpSdk {
9206
9206
  user: PublicKey;
9207
9207
  }): Promise<TransactionInstruction>;
9208
9208
  closeUserVolumeAccumulator(user: PublicKey): Promise<TransactionInstruction>;
9209
- getBuyInstructionRaw({ user, mint, creator, amount, solAmount, }: {
9209
+ getBuyInstructionRaw({ user, mint, creator, amount, solAmount, feeRecipient, }: {
9210
9210
  user: PublicKey;
9211
9211
  mint: PublicKey;
9212
9212
  creator: PublicKey;
9213
9213
  amount: BN;
9214
9214
  solAmount: BN;
9215
+ feeRecipient: PublicKey;
9215
9216
  }): Promise<TransactionInstruction>;
9216
9217
  private getBuyInstructionInternal;
9217
- getSellInstructionRaw({ user, mint, creator, amount, solAmount, }: {
9218
+ getSellInstructionRaw({ user, mint, creator, amount, solAmount, feeRecipient, }: {
9218
9219
  user: PublicKey;
9219
9220
  mint: PublicKey;
9220
9221
  creator: PublicKey;
9221
9222
  amount: BN;
9222
9223
  solAmount: BN;
9224
+ feeRecipient: PublicKey;
9223
9225
  }): Promise<TransactionInstruction>;
9224
9226
  private getSellInstructionInternal;
9225
9227
  }
package/dist/index.d.ts CHANGED
@@ -9206,20 +9206,22 @@ declare class PumpSdk {
9206
9206
  user: PublicKey;
9207
9207
  }): Promise<TransactionInstruction>;
9208
9208
  closeUserVolumeAccumulator(user: PublicKey): Promise<TransactionInstruction>;
9209
- getBuyInstructionRaw({ user, mint, creator, amount, solAmount, }: {
9209
+ getBuyInstructionRaw({ user, mint, creator, amount, solAmount, feeRecipient, }: {
9210
9210
  user: PublicKey;
9211
9211
  mint: PublicKey;
9212
9212
  creator: PublicKey;
9213
9213
  amount: BN;
9214
9214
  solAmount: BN;
9215
+ feeRecipient: PublicKey;
9215
9216
  }): Promise<TransactionInstruction>;
9216
9217
  private getBuyInstructionInternal;
9217
- getSellInstructionRaw({ user, mint, creator, amount, solAmount, }: {
9218
+ getSellInstructionRaw({ user, mint, creator, amount, solAmount, feeRecipient, }: {
9218
9219
  user: PublicKey;
9219
9220
  mint: PublicKey;
9220
9221
  creator: PublicKey;
9221
9222
  amount: BN;
9222
9223
  solAmount: BN;
9224
+ feeRecipient: PublicKey;
9223
9225
  }): Promise<TransactionInstruction>;
9224
9226
  private getSellInstructionInternal;
9225
9227
  }
package/dist/index.js CHANGED
@@ -5251,14 +5251,15 @@ var PumpSdk = class {
5251
5251
  mint,
5252
5252
  creator,
5253
5253
  amount,
5254
- solAmount
5254
+ solAmount,
5255
+ feeRecipient = getStaticRandomFeeRecipient()
5255
5256
  }) {
5256
5257
  return await this.getBuyInstructionInternal({
5257
5258
  user,
5258
5259
  associatedUser: (0, import_spl_token.getAssociatedTokenAddressSync)(mint, user, true),
5259
5260
  mint,
5260
5261
  creator,
5261
- feeRecipient: getStaticRandomFeeRecipient(),
5262
+ feeRecipient,
5262
5263
  amount,
5263
5264
  solAmount
5264
5265
  });
@@ -5285,13 +5286,14 @@ var PumpSdk = class {
5285
5286
  mint,
5286
5287
  creator,
5287
5288
  amount,
5288
- solAmount
5289
+ solAmount,
5290
+ feeRecipient = getStaticRandomFeeRecipient()
5289
5291
  }) {
5290
5292
  return await this.getSellInstructionInternal({
5291
5293
  user,
5292
5294
  mint,
5293
5295
  creator,
5294
- feeRecipient: getStaticRandomFeeRecipient(),
5296
+ feeRecipient,
5295
5297
  amount,
5296
5298
  solAmount
5297
5299
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pump-fun/pump-sdk",
3
- "version": "1.16.0",
3
+ "version": "1.17.0",
4
4
  "description": "Pump Bonding Curve SDK",
5
5
  "keywords": [],
6
6
  "homepage": "https://github.com/pump-fun/pump-sdk#readme",
package/src/sdk.ts CHANGED
@@ -765,19 +765,21 @@ export class PumpSdk {
765
765
  creator,
766
766
  amount,
767
767
  solAmount,
768
+ feeRecipient = getStaticRandomFeeRecipient(),
768
769
  }: {
769
770
  user: PublicKey;
770
771
  mint: PublicKey;
771
772
  creator: PublicKey;
772
773
  amount: BN;
773
774
  solAmount: BN;
775
+ feeRecipient: PublicKey;
774
776
  }): Promise<TransactionInstruction> {
775
777
  return await this.getBuyInstructionInternal({
776
778
  user,
777
779
  associatedUser: getAssociatedTokenAddressSync(mint, user, true),
778
780
  mint,
779
781
  creator,
780
- feeRecipient: getStaticRandomFeeRecipient(),
782
+ feeRecipient,
781
783
  amount,
782
784
  solAmount,
783
785
  });
@@ -791,6 +793,7 @@ export class PumpSdk {
791
793
  feeRecipient,
792
794
  amount,
793
795
  solAmount,
796
+
794
797
  }: {
795
798
  user: PublicKey;
796
799
  associatedUser: PublicKey;
@@ -818,18 +821,20 @@ export class PumpSdk {
818
821
  creator,
819
822
  amount,
820
823
  solAmount,
824
+ feeRecipient = getStaticRandomFeeRecipient(),
821
825
  }: {
822
826
  user: PublicKey;
823
827
  mint: PublicKey;
824
828
  creator: PublicKey;
825
829
  amount: BN;
826
830
  solAmount: BN;
831
+ feeRecipient: PublicKey;
827
832
  }): Promise<TransactionInstruction> {
828
833
  return await this.getSellInstructionInternal({
829
834
  user,
830
835
  mint,
831
836
  creator,
832
- feeRecipient: getStaticRandomFeeRecipient(),
837
+ feeRecipient,
833
838
  amount,
834
839
  solAmount,
835
840
  });
@@ -867,3 +872,4 @@ function getFeeRecipient(global: Global): PublicKey {
867
872
  const feeRecipients = [global.feeRecipient, ...global.feeRecipients];
868
873
  return feeRecipients[Math.floor(Math.random() * feeRecipients.length)];
869
874
  }
875
+