@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/package.json
CHANGED
|
@@ -263,9 +263,9 @@ export class SolanaProgramService {
|
|
|
263
263
|
)[0];
|
|
264
264
|
}
|
|
265
265
|
|
|
266
|
-
derivePretokenPurchaseHistoryPda(): PublicKey {
|
|
266
|
+
derivePretokenPurchaseHistoryPda(poolAuthority: PublicKey): PublicKey {
|
|
267
267
|
return PublicKey.findProgramAddressSync(
|
|
268
|
-
[Buffer.from(PDA_SEEDS.PRETOKEN_PURCHASE_HISTORY)],
|
|
268
|
+
[Buffer.from(PDA_SEEDS.PRETOKEN_PURCHASE_HISTORY), poolAuthority.toBuffer()],
|
|
269
269
|
this.ids.LIQSOL_CORE,
|
|
270
270
|
)[0];
|
|
271
271
|
}
|
|
@@ -274,9 +274,9 @@ export class SolanaStakingClient implements IStakingClient {
|
|
|
274
274
|
* Enumerate withdrawal receipt NFTs held by the user (queued/ready/claimed).
|
|
275
275
|
* Mirrors the ETH getPendingWithdraws helper for UI parity.
|
|
276
276
|
*/
|
|
277
|
-
async getPendingWithdraws(): Promise<WithdrawReceipt[]> {
|
|
277
|
+
async getPendingWithdraws(address?: SolPubKey): Promise<WithdrawReceipt[]> {
|
|
278
278
|
this.ensureUser();
|
|
279
|
-
const owner = this.squadsVaultPDA ?? this.anchor.wallet.publicKey;
|
|
279
|
+
const owner = address ?? this.squadsVaultPDA ?? this.anchor.wallet.publicKey;
|
|
280
280
|
return await this.convertClient.fetchWithdrawReceipts(owner);
|
|
281
281
|
}
|
|
282
282
|
|
|
@@ -328,7 +328,7 @@ export async function buildOutpostAccounts(
|
|
|
328
328
|
|
|
329
329
|
const extraAccountMetaList = pgs.deriveExtraAccountMetaListPda(liqsolMint);
|
|
330
330
|
|
|
331
|
-
const pretokenPurchaseHistory = pgs.derivePretokenPurchaseHistoryPda();
|
|
331
|
+
const pretokenPurchaseHistory = pgs.derivePretokenPurchaseHistoryPda(poolAuthority);
|
|
332
332
|
|
|
333
333
|
// Chainlink program feeds
|
|
334
334
|
let chainLinkFeed = CHAINLINK_FEED;
|