@wireio/stake 2.4.1 → 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.browser.js +5 -5
- package/lib/stake.browser.js.map +1 -1
- package/lib/stake.d.ts +3 -3
- package/lib/stake.js +5 -5
- package/lib/stake.js.map +1 -1
- package/lib/stake.m.js +5 -5
- package/lib/stake.m.js.map +1 -1
- package/package.json +1 -1
- package/src/networks/ethereum/ethereum.ts +3 -4
- package/src/networks/solana/solana.ts +3 -2
- package/src/types.ts +1 -1
package/lib/stake.browser.js
CHANGED
|
@@ -16988,9 +16988,9 @@ const _SolanaStakingClient = class _SolanaStakingClient {
|
|
|
16988
16988
|
throw err;
|
|
16989
16989
|
}
|
|
16990
16990
|
}
|
|
16991
|
-
async getPendingWithdraws() {
|
|
16991
|
+
async getPendingWithdraws(address) {
|
|
16992
16992
|
this.ensureUser();
|
|
16993
|
-
const owner = this.squadsVaultPDA ?? this.anchor.wallet.publicKey;
|
|
16993
|
+
const owner = address ? new PublicKey(address) : this.squadsVaultPDA ?? this.anchor.wallet.publicKey;
|
|
16994
16994
|
return await this.convertClient.fetchWithdrawReceipts(owner);
|
|
16995
16995
|
}
|
|
16996
16996
|
async claimWithdraw(tokenId) {
|
|
@@ -42700,10 +42700,10 @@ class EthereumStakingClient {
|
|
|
42700
42700
|
const result = await this.convertClient.performWithdraw(address, amountWei);
|
|
42701
42701
|
return result.txHash;
|
|
42702
42702
|
}
|
|
42703
|
-
async getPendingWithdraws() {
|
|
42703
|
+
async getPendingWithdraws(address) {
|
|
42704
42704
|
this.ensureUser();
|
|
42705
|
-
const
|
|
42706
|
-
return await this.receiptClient.fetchWithdrawReceipts(
|
|
42705
|
+
const owner = address ?? await this.address;
|
|
42706
|
+
return await this.receiptClient.fetchWithdrawReceipts(owner);
|
|
42707
42707
|
}
|
|
42708
42708
|
async claimWithdraw(tokenId) {
|
|
42709
42709
|
this.ensureUser();
|