@wireio/stake 2.4.0 → 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 +5 -5
- package/lib/stake.browser.js.map +1 -1
- package/lib/stake.d.ts +2 -2
- 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/solana/program.ts +2 -2
- package/src/networks/solana/solana.ts +2 -2
- package/src/networks/solana/utils.ts +1 -1
package/lib/stake.d.ts
CHANGED
|
@@ -16376,7 +16376,7 @@ declare class SolanaProgramService {
|
|
|
16376
16376
|
deriveMaintenanceLedgerPda(): PublicKey$1;
|
|
16377
16377
|
deriveWithdrawMintAuthorityPda(): PublicKey$1;
|
|
16378
16378
|
deriveWithdrawMintMetadataPda(): PublicKey$1;
|
|
16379
|
-
derivePretokenPurchaseHistoryPda(): PublicKey$1;
|
|
16379
|
+
derivePretokenPurchaseHistoryPda(poolAuthority: PublicKey$1): PublicKey$1;
|
|
16380
16380
|
/**
|
|
16381
16381
|
* NFT mint for withdrawal receipt, derived from nextReceiptId.
|
|
16382
16382
|
*/
|
|
@@ -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
|
@@ -15768,7 +15768,7 @@ function buildOutpostAccounts(connection, user, pgs) {
|
|
|
15768
15768
|
const liqsolPoolUserRecord = pgs.deriveUserRecordPda(liqsolPoolAta);
|
|
15769
15769
|
const userUserRecord = pgs.deriveUserRecordPda(userAta);
|
|
15770
15770
|
const extraAccountMetaList = pgs.deriveExtraAccountMetaListPda(liqsolMint);
|
|
15771
|
-
const pretokenPurchaseHistory = pgs.derivePretokenPurchaseHistoryPda();
|
|
15771
|
+
const pretokenPurchaseHistory = pgs.derivePretokenPurchaseHistoryPda(poolAuthority);
|
|
15772
15772
|
let chainLinkFeed = CHAINLINK_FEED;
|
|
15773
15773
|
let chainLinkProgram = CHAINLINK_PROGRAM;
|
|
15774
15774
|
try {
|
|
@@ -17048,9 +17048,9 @@ class SolanaProgramService {
|
|
|
17048
17048
|
this.ids.LIQSOL_CORE
|
|
17049
17049
|
)[0];
|
|
17050
17050
|
}
|
|
17051
|
-
derivePretokenPurchaseHistoryPda() {
|
|
17051
|
+
derivePretokenPurchaseHistoryPda(poolAuthority) {
|
|
17052
17052
|
return web3_js.PublicKey.findProgramAddressSync(
|
|
17053
|
-
[Buffer.from(PDA_SEEDS.PRETOKEN_PURCHASE_HISTORY)],
|
|
17053
|
+
[Buffer.from(PDA_SEEDS.PRETOKEN_PURCHASE_HISTORY), poolAuthority.toBuffer()],
|
|
17054
17054
|
this.ids.LIQSOL_CORE
|
|
17055
17055
|
)[0];
|
|
17056
17056
|
}
|
|
@@ -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
|
}
|