@lavarage/sdk 7.0.1 → 7.0.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/dist/index.js CHANGED
@@ -1251,10 +1251,12 @@ function withdrawFundsV1(lavarageProgram, params) {
1251
1251
  return __async(this, null, function* () {
1252
1252
  var _a;
1253
1253
  const { blockhash } = yield lavarageProgram.provider.connection.getLatestBlockhash("finalized");
1254
- const instruction = yield lavarageProgram.methods.lpOperatorWithdrawFromNodeWallet(new import_anchor.BN(params.amount)).accounts({
1254
+ const withdrawalAccessList = getWithdrawalAccessListPDA(lavarageProgram.programId);
1255
+ const instruction = yield lavarageProgram.methods.lpOperatorWithdrawFromNodeWallet(new import_anchor.BN(params.amount)).accountsStrict({
1255
1256
  nodeWallet: params.nodeWallet,
1256
1257
  funder: params.funder,
1257
- systemProgram: import_web3.SystemProgram.programId
1258
+ systemProgram: import_web3.SystemProgram.programId,
1259
+ withdrawalAccessList
1258
1260
  }).instruction();
1259
1261
  const computeFeeIx = import_web3.ComputeBudgetProgram.setComputeUnitPrice({
1260
1262
  microLamports: (_a = params.computeBudgetMicroLamports) != null ? _a : 15e4
@@ -1274,14 +1276,16 @@ function withdrawFundsV2(lavarageProgram, params) {
1274
1276
  const mintPubkey = new import_web3.PublicKey(params.mint);
1275
1277
  const fromTokenAccount = params.fromTokenAccount || (0, import_spl_token.getAssociatedTokenAddressSync)(mintPubkey, params.nodeWallet, true);
1276
1278
  const toTokenAccount = params.toTokenAccount || (0, import_spl_token.getAssociatedTokenAddressSync)(mintPubkey, params.funder);
1277
- const instruction = yield lavarageProgram.methods.lpOperatorWithdrawFromNodeWallet(new import_anchor.BN(params.amount)).accounts({
1279
+ const withdrawalAccessList = getWithdrawalAccessListPDA(lavarageProgram.programId);
1280
+ const instruction = yield lavarageProgram.methods.lpOperatorWithdrawFromNodeWallet(new import_anchor.BN(params.amount)).accountsStrict({
1278
1281
  nodeWallet: params.nodeWallet,
1279
1282
  funder: params.funder,
1280
1283
  systemProgram: import_web3.SystemProgram.programId,
1281
1284
  mint: mintPubkey,
1282
1285
  fromTokenAccount,
1283
1286
  toTokenAccount,
1284
- tokenProgram: import_spl_token.TOKEN_PROGRAM_ID
1287
+ tokenProgram: import_spl_token.TOKEN_PROGRAM_ID,
1288
+ withdrawalAccessList
1285
1289
  }).instruction();
1286
1290
  const computeFeeIx = import_web3.ComputeBudgetProgram.setComputeUnitPrice({
1287
1291
  microLamports: (_a = params.computeBudgetMicroLamports) != null ? _a : 15e4