@pump-fun/pump-sdk 1.3.6 → 1.3.7-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.
Files changed (2) hide show
  1. package/package.json +2 -2
  2. package/src/pda.ts +8 -8
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pump-fun/pump-sdk",
3
- "version": "1.3.6",
3
+ "version": "1.3.7-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": "^0.0.1-beta.29",
42
+ "@pump-fun/pump-swap-sdk": "^0.0.1-beta.35",
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/pda.ts CHANGED
@@ -5,18 +5,18 @@ import { poolPda } from "@pump-fun/pump-swap-sdk";
5
5
  export function globalPda(programId: PublicKey): PublicKey {
6
6
  const [globalPda] = PublicKey.findProgramAddressSync(
7
7
  [Buffer.from("global")],
8
- programId,
8
+ programId
9
9
  );
10
10
  return globalPda;
11
11
  }
12
12
 
13
13
  export function bondingCurvePda(
14
14
  programId: PublicKey,
15
- mint: PublicKeyInitData,
15
+ mint: PublicKeyInitData
16
16
  ): PublicKey {
17
17
  const [bondingCurvePda] = PublicKey.findProgramAddressSync(
18
18
  [Buffer.from("bonding-curve"), new PublicKey(mint).toBuffer()],
19
- programId,
19
+ programId
20
20
  );
21
21
  return bondingCurvePda;
22
22
  }
@@ -24,18 +24,18 @@ export function bondingCurvePda(
24
24
  export function creatorVaultPda(programId: PublicKey, creator: PublicKey) {
25
25
  const [creatorVault] = PublicKey.findProgramAddressSync(
26
26
  [Buffer.from("creator-vault"), creator.toBuffer()],
27
- programId,
27
+ programId
28
28
  );
29
29
  return creatorVault;
30
30
  }
31
31
 
32
32
  export function pumpPoolAuthorityPda(
33
33
  mint: PublicKey,
34
- pumpProgramId: PublicKey,
34
+ pumpProgramId: PublicKey
35
35
  ): [PublicKey, number] {
36
36
  return PublicKey.findProgramAddressSync(
37
37
  [Buffer.from("pool-authority"), mint.toBuffer()],
38
- pumpProgramId,
38
+ pumpProgramId
39
39
  );
40
40
  }
41
41
 
@@ -44,7 +44,7 @@ export const CANONICAL_POOL_INDEX = 0;
44
44
  export function canonicalPumpPoolPda(
45
45
  pumpProgramId: PublicKey,
46
46
  pumpAmmProgramId: PublicKey,
47
- mint: PublicKey,
47
+ mint: PublicKey
48
48
  ): [PublicKey, number] {
49
49
  const [pumpPoolAuthority] = pumpPoolAuthorityPda(mint, pumpProgramId);
50
50
 
@@ -53,6 +53,6 @@ export function canonicalPumpPoolPda(
53
53
  pumpPoolAuthority,
54
54
  mint,
55
55
  NATIVE_MINT,
56
- pumpAmmProgramId,
56
+ pumpAmmProgramId
57
57
  );
58
58
  }