@wireio/stake 2.4.2 → 2.4.3

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/lib/stake.d.ts CHANGED
@@ -44,7 +44,7 @@ interface IStakingClient {
44
44
  /** Solana only: claim accrued liqSOL distribution rewards. */
45
45
  claimLiqsolRewards?(): Promise<string>;
46
46
  /** Enumerate withdrawal receipt NFTs held by the user (queued/ready/claimed). */
47
- getPendingWithdraws(): Promise<WithdrawReceipt$1[]>;
47
+ getPendingWithdraws(address?: string): Promise<WithdrawReceipt$1[]>;
48
48
  /** Fetch the complete user portfolio */
49
49
  getPortfolio(): Promise<Portfolio | null>;
50
50
  getSystemAPY(): Promise<number>;
@@ -472,7 +472,7 @@ declare class EthereumStakingClient implements IStakingClient {
472
472
  * @param amount Amount in wei (or something convertible to BigNumber).
473
473
  * @returns transaction hash
474
474
  */
475
- getPendingWithdraws(): Promise<WithdrawReceipt[]>;
475
+ getPendingWithdraws(address?: string): Promise<WithdrawReceipt[]>;
476
476
  /**
477
477
  * Withdraw native ETH from the liqETH protocol via the liqeth safeBurn function, which burns the LiqETH and adds the user to the withdrawal queue.
478
478
  * @param tokenId The ID of the withdrawal request NFT
@@ -16835,7 +16835,7 @@ declare class SolanaStakingClient implements IStakingClient {
16835
16835
  * Enumerate withdrawal receipt NFTs held by the user (queued/ready/claimed).
16836
16836
  * Mirrors the ETH getPendingWithdraws helper for UI parity.
16837
16837
  */
16838
- getPendingWithdraws(address?: PublicKey$1): Promise<WithdrawReceipt$1[]>;
16838
+ getPendingWithdraws(address?: string): Promise<WithdrawReceipt$1[]>;
16839
16839
  /**
16840
16840
  * Claim a withdrawal receipt (burn NFT + receive SOL) via claim_withdraw.
16841
16841
  */
package/lib/stake.js CHANGED
@@ -17308,7 +17308,7 @@ const _SolanaStakingClient = class _SolanaStakingClient {
17308
17308
  return __async$9(this, null, function* () {
17309
17309
  var _a;
17310
17310
  this.ensureUser();
17311
- const owner = (_a = address != null ? address : this.squadsVaultPDA) != null ? _a : this.anchor.wallet.publicKey;
17311
+ const owner = address ? new web3_js.PublicKey(address) : (_a = this.squadsVaultPDA) != null ? _a : this.anchor.wallet.publicKey;
17312
17312
  return yield this.convertClient.fetchWithdrawReceipts(owner);
17313
17313
  });
17314
17314
  }
@@ -43312,11 +43312,11 @@ class EthereumStakingClient {
43312
43312
  return result.txHash;
43313
43313
  });
43314
43314
  }
43315
- getPendingWithdraws() {
43315
+ getPendingWithdraws(address) {
43316
43316
  return __async(this, null, function* () {
43317
43317
  this.ensureUser();
43318
- const address = yield this.address;
43319
- return yield this.receiptClient.fetchWithdrawReceipts(address);
43318
+ const owner = address != null ? address : yield this.address;
43319
+ return yield this.receiptClient.fetchWithdrawReceipts(owner);
43320
43320
  });
43321
43321
  }
43322
43322
  claimWithdraw(tokenId) {