@wireio/stake 2.4.1 → 2.4.2
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.browser.js +2 -2
- package/lib/stake.browser.js.map +1 -1
- package/lib/stake.d.ts +1 -1
- package/lib/stake.js +2 -2
- package/lib/stake.js.map +1 -1
- package/lib/stake.m.js +2 -2
- package/lib/stake.m.js.map +1 -1
- package/package.json +1 -1
- package/src/networks/solana/solana.ts +2 -2
package/lib/stake.d.ts
CHANGED
|
@@ -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(): Promise<WithdrawReceipt$1[]>;
|
|
16838
|
+
getPendingWithdraws(address?: PublicKey$1): 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
|
@@ -17304,11 +17304,11 @@ const _SolanaStakingClient = class _SolanaStakingClient {
|
|
|
17304
17304
|
}
|
|
17305
17305
|
});
|
|
17306
17306
|
}
|
|
17307
|
-
getPendingWithdraws() {
|
|
17307
|
+
getPendingWithdraws(address) {
|
|
17308
17308
|
return __async$9(this, null, function* () {
|
|
17309
17309
|
var _a;
|
|
17310
17310
|
this.ensureUser();
|
|
17311
|
-
const owner = (_a = this.squadsVaultPDA) != null ? _a : this.anchor.wallet.publicKey;
|
|
17311
|
+
const owner = (_a = address != null ? address : this.squadsVaultPDA) != null ? _a : this.anchor.wallet.publicKey;
|
|
17312
17312
|
return yield this.convertClient.fetchWithdrawReceipts(owner);
|
|
17313
17313
|
});
|
|
17314
17314
|
}
|