@ape.swap/bonds-sdk 4.0.0-test.53 → 4.0.0-test.54

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/dist/main.js +3 -3
  2. package/package.json +2 -2
package/dist/main.js CHANGED
@@ -67173,7 +67173,7 @@ function fetchUserOwnedSolanaBonds(user, bondData, tokenPrices) {
67173
67173
  const [bondTermPda] = PublicKey.findProgramAddressSync([new TextEncoder().encode('bond_term'), bondIssuancePda.toBuffer()], PROGRAM_ID);
67174
67174
  const [bondAccounts, pendingRewards] = yield Promise.all([
67175
67175
  getBondAccountSolana([bondPda.toBase58()]),
67176
- calculatePendingRewards(connection, user, bondPda, bondTermPda, bondIssuancePda, nftMint),
67176
+ calculatePendingRewards(connection, bondPda, bondTermPda, bondIssuancePda, nftMint),
67177
67177
  ]);
67178
67178
  if (!(bondAccounts === null || bondAccounts === void 0 ? void 0 : bondAccounts.length)) {
67179
67179
  console.error(`Could not fetch bond account for mint ${nftMint.toBase58()}`);
@@ -67216,7 +67216,7 @@ function fetchUserOwnedSolanaBonds(user, bondData, tokenPrices) {
67216
67216
  }
67217
67217
  });
67218
67218
  }
67219
- function calculatePendingRewards(connection, user, bondPda, bondTermPda, bondIssuancePda, nftMint) {
67219
+ function calculatePendingRewards(connection, bondPda, bondTermPda, bondIssuancePda, nftMint) {
67220
67220
  return __awaiter$9(this, void 0, void 0, function* () {
67221
67221
  try {
67222
67222
  const u64Codec = getU64Codec();
@@ -67240,7 +67240,7 @@ function calculatePendingRewards(connection, user, bondPda, bondTermPda, bondIss
67240
67240
  });
67241
67241
  // Transaction
67242
67242
  const transaction = new Transaction();
67243
- const userPublicKey = new PublicKey(user);
67243
+ const userPublicKey = new PublicKey('11111111111111111111111111111112'); // Dummy public key for fee payer
67244
67244
  transaction.feePayer = userPublicKey;
67245
67245
  transaction.add(instruction);
67246
67246
  // Simulate
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "Ape Bond SDK",
4
4
  "author": "Ape Bond",
5
5
  "license": "MIT",
6
- "version": "4.0.0-test.53",
6
+ "version": "4.0.0-test.54",
7
7
  "module": "dist/main.js",
8
8
  "type": "module",
9
9
  "types": "dist/main.d.ts",
@@ -36,7 +36,7 @@
36
36
  "@solana/spl-token": "0.4.13",
37
37
  "@solana/wallet-adapter-react": "0.15.36",
38
38
  "@solana/wallet-adapter-react-ui": "0.9.36",
39
- "@solana/web3.js": "1.98.0",
39
+ "@solana/web3.js": "^1.98.4",
40
40
  "axios": "1.8.2",
41
41
  "react": "^18.2.0",
42
42
  "react-dom": "^17.0.0 || ^18.0.0",