@wireio/stake 2.4.0 → 2.4.1
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 +3 -3
- package/lib/stake.browser.js.map +1 -1
- package/lib/stake.d.ts +1 -1
- package/lib/stake.js +3 -3
- package/lib/stake.js.map +1 -1
- package/lib/stake.m.js +3 -3
- 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/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
|
*/
|
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
|
}
|