@pump-fun/pump-sdk 1.26.0-devnet.1 → 1.27.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
@@ -1781,7 +1781,7 @@ var require_buffer = __commonJS({
1781
1781
  function numberIsNaN(obj) {
1782
1782
  return obj !== obj;
1783
1783
  }
1784
- var hexSliceLookupTable = function() {
1784
+ var hexSliceLookupTable = (function() {
1785
1785
  const alphabet = "0123456789abcdef";
1786
1786
  const table = new Array(256);
1787
1787
  for (let i = 0; i < 16; ++i) {
@@ -1791,7 +1791,7 @@ var require_buffer = __commonJS({
1791
1791
  }
1792
1792
  }
1793
1793
  return table;
1794
- }();
1794
+ })();
1795
1795
  function defineBigIntMethod(fn) {
1796
1796
  return typeof BigInt === "undefined" ? BufferBigIntNotDefined : fn;
1797
1797
  }
@@ -9119,7 +9119,7 @@ var OnlinePumpSdk = class {
9119
9119
  )
9120
9120
  };
9121
9121
  }
9122
- async collectCoinCreatorFeeInstructions(coinCreator) {
9122
+ async collectCoinCreatorFeeInstructions(coinCreator, feePayer) {
9123
9123
  let quoteMint = NATIVE_MINT;
9124
9124
  let quoteTokenProgram = TOKEN_PROGRAM_ID;
9125
9125
  let coinCreatorVaultAuthority = coinCreatorVaultAuthorityPda(coinCreator);
@@ -9151,7 +9151,7 @@ var OnlinePumpSdk = class {
9151
9151
  coinCreatorTokenAccount,
9152
9152
  coinCreatorVaultAtaAccountInfo,
9153
9153
  coinCreatorTokenAccountInfo
9154
- })
9154
+ }, feePayer)
9155
9155
  ];
9156
9156
  }
9157
9157
  async adminSetCoinCreatorInstructions(newCoinCreator, mint) {
package/dist/index.d.mts CHANGED
@@ -22770,7 +22770,7 @@ declare class OnlinePumpSdk {
22770
22770
  fetchGlobalVolumeAccumulator(): Promise<GlobalVolumeAccumulator>;
22771
22771
  fetchUserVolumeAccumulator(user: PublicKey): Promise<UserVolumeAccumulator | null>;
22772
22772
  fetchUserVolumeAccumulatorTotalStats(user: PublicKey): Promise<UserVolumeAccumulatorTotalStats>;
22773
- collectCoinCreatorFeeInstructions(coinCreator: PublicKey): Promise<TransactionInstruction[]>;
22773
+ collectCoinCreatorFeeInstructions(coinCreator: PublicKey, feePayer?: PublicKey): Promise<TransactionInstruction[]>;
22774
22774
  adminSetCoinCreatorInstructions(newCoinCreator: PublicKey, mint: PublicKey): Promise<TransactionInstruction[]>;
22775
22775
  getCreatorVaultBalance(creator: PublicKey): Promise<BN>;
22776
22776
  getCreatorVaultBalanceBothPrograms(creator: PublicKey): Promise<BN>;
package/dist/index.d.ts CHANGED
@@ -22770,7 +22770,7 @@ declare class OnlinePumpSdk {
22770
22770
  fetchGlobalVolumeAccumulator(): Promise<GlobalVolumeAccumulator>;
22771
22771
  fetchUserVolumeAccumulator(user: PublicKey): Promise<UserVolumeAccumulator | null>;
22772
22772
  fetchUserVolumeAccumulatorTotalStats(user: PublicKey): Promise<UserVolumeAccumulatorTotalStats>;
22773
- collectCoinCreatorFeeInstructions(coinCreator: PublicKey): Promise<TransactionInstruction[]>;
22773
+ collectCoinCreatorFeeInstructions(coinCreator: PublicKey, feePayer?: PublicKey): Promise<TransactionInstruction[]>;
22774
22774
  adminSetCoinCreatorInstructions(newCoinCreator: PublicKey, mint: PublicKey): Promise<TransactionInstruction[]>;
22775
22775
  getCreatorVaultBalance(creator: PublicKey): Promise<BN>;
22776
22776
  getCreatorVaultBalanceBothPrograms(creator: PublicKey): Promise<BN>;
package/dist/index.js CHANGED
@@ -1787,7 +1787,7 @@ var require_buffer = __commonJS({
1787
1787
  function numberIsNaN(obj) {
1788
1788
  return obj !== obj;
1789
1789
  }
1790
- var hexSliceLookupTable = function() {
1790
+ var hexSliceLookupTable = (function() {
1791
1791
  const alphabet = "0123456789abcdef";
1792
1792
  const table = new Array(256);
1793
1793
  for (let i = 0; i < 16; ++i) {
@@ -1797,7 +1797,7 @@ var require_buffer = __commonJS({
1797
1797
  }
1798
1798
  }
1799
1799
  return table;
1800
- }();
1800
+ })();
1801
1801
  function defineBigIntMethod(fn) {
1802
1802
  return typeof BigInt === "undefined" ? BufferBigIntNotDefined : fn;
1803
1803
  }
@@ -9158,7 +9158,7 @@ var OnlinePumpSdk = class {
9158
9158
  )
9159
9159
  };
9160
9160
  }
9161
- async collectCoinCreatorFeeInstructions(coinCreator) {
9161
+ async collectCoinCreatorFeeInstructions(coinCreator, feePayer) {
9162
9162
  let quoteMint = import_spl_token.NATIVE_MINT;
9163
9163
  let quoteTokenProgram = import_spl_token.TOKEN_PROGRAM_ID;
9164
9164
  let coinCreatorVaultAuthority = (0, import_pump_swap_sdk.coinCreatorVaultAuthorityPda)(coinCreator);
@@ -9190,7 +9190,7 @@ var OnlinePumpSdk = class {
9190
9190
  coinCreatorTokenAccount,
9191
9191
  coinCreatorVaultAtaAccountInfo,
9192
9192
  coinCreatorTokenAccountInfo
9193
- })
9193
+ }, feePayer)
9194
9194
  ];
9195
9195
  }
9196
9196
  async adminSetCoinCreatorInstructions(newCoinCreator, mint) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pump-fun/pump-sdk",
3
- "version": "1.26.0-devnet.1",
3
+ "version": "1.27.0-devnet.1",
4
4
  "description": "Pump Bonding Curve SDK",
5
5
  "keywords": [],
6
6
  "homepage": "https://github.com/pump-fun/pump-sdk#readme",
@@ -39,7 +39,7 @@
39
39
  },
40
40
  "dependencies": {
41
41
  "@coral-xyz/anchor": "^0.31.1",
42
- "@pump-fun/pump-swap-sdk": "^1.7.9",
42
+ "@pump-fun/pump-swap-sdk": "^1.13.0",
43
43
  "@solana/spl-token": "^0.4.13",
44
44
  "@solana/web3.js": "^1.98.2",
45
45
  "bn.js": "^5.2.2",
package/src/onlineSdk.ts CHANGED
@@ -160,6 +160,7 @@ export class OnlinePumpSdk {
160
160
 
161
161
  async collectCoinCreatorFeeInstructions(
162
162
  coinCreator: PublicKey,
163
+ feePayer?: PublicKey,
163
164
  ): Promise<TransactionInstruction[]> {
164
165
  let quoteMint = NATIVE_MINT;
165
166
  let quoteTokenProgram = TOKEN_PROGRAM_ID;
@@ -199,7 +200,7 @@ export class OnlinePumpSdk {
199
200
  coinCreatorTokenAccount,
200
201
  coinCreatorVaultAtaAccountInfo,
201
202
  coinCreatorTokenAccountInfo,
202
- })),
203
+ }, feePayer)),
203
204
  ];
204
205
  }
205
206