@0dotxyz/p0-ts-sdk 1.1.0-alpha.9 → 1.1.0

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.cjs CHANGED
@@ -18427,6 +18427,8 @@ function computeProjectedActiveBanksNoCpi(balances, instructions2, program) {
18427
18427
  switch (decoded.name) {
18428
18428
  case "lendingAccountBorrow":
18429
18429
  case "kaminoDeposit":
18430
+ case "driftDeposit":
18431
+ case "solendDeposit":
18430
18432
  case "lendingAccountDeposit": {
18431
18433
  const targetBank = new web3_js.PublicKey(ix?.keys[3].pubkey);
18432
18434
  const targetBalance = projectedBalances.find((b) => b.bankPk.equals(targetBank));
@@ -18442,6 +18444,8 @@ function computeProjectedActiveBanksNoCpi(balances, instructions2, program) {
18442
18444
  }
18443
18445
  case "lendingAccountRepay":
18444
18446
  case "kaminoWithdraw":
18447
+ case "driftWithdraw":
18448
+ case "solendWithdraw":
18445
18449
  case "lendingAccountWithdraw": {
18446
18450
  const targetBank = new web3_js.PublicKey(ix.keys[3].pubkey);
18447
18451
  const targetBalance = projectedBalances.find((b) => b.bankPk.equals(targetBank));
@@ -18484,6 +18488,8 @@ function computeProjectedActiveBalancesNoCpi(balances, instructions2, program, b
18484
18488
  switch (decoded.name) {
18485
18489
  // Instructions that open or add to a position
18486
18490
  case "lendingAccountDeposit":
18491
+ case "driftDeposit":
18492
+ case "solendDeposit":
18487
18493
  case "kaminoDeposit": {
18488
18494
  const targetBank = new web3_js.PublicKey(ix.keys[3].pubkey);
18489
18495
  impactedAssetsBanks.add(targetBank.toBase58());
@@ -18567,6 +18573,8 @@ function computeProjectedActiveBalancesNoCpi(balances, instructions2, program, b
18567
18573
  break;
18568
18574
  }
18569
18575
  case "lendingAccountWithdraw":
18576
+ case "driftWithdraw":
18577
+ case "solendWithdraw":
18570
18578
  case "kaminoWithdraw": {
18571
18579
  const targetBank = new web3_js.PublicKey(ix.keys[3].pubkey);
18572
18580
  impactedAssetsBanks.add(targetBank.toBase58());
@@ -41224,7 +41232,7 @@ function makeDriftWithdrawIx2(programId, accounts, args, remainingAccounts = [])
41224
41232
  const DRIFT_PROGRAM_ID2 = new web3_js.PublicKey("dRiftyHA39MWEi3m9aunc5MzRF1JYuBsbn6VPcn33UH");
41225
41233
  const SYSTEM_PROGRAM_ID2 = new web3_js.PublicKey("11111111111111111111111111111111");
41226
41234
  const keys = [
41227
- { pubkey: accounts.group, isSigner: false, isWritable: false },
41235
+ { pubkey: accounts.group, isSigner: false, isWritable: true },
41228
41236
  { pubkey: accounts.marginfiAccount, isSigner: false, isWritable: true },
41229
41237
  { pubkey: accounts.authority, isSigner: true, isWritable: false },
41230
41238
  { pubkey: accounts.bank, isSigner: false, isWritable: true }
@@ -42662,7 +42670,7 @@ async function buildLoopFlashloanTx({
42662
42670
  amount: borrowOpts.borrowAmount,
42663
42671
  marginfiAccount,
42664
42672
  authority: marginfiAccount.authority,
42665
- isSync: true,
42673
+ isSync: false,
42666
42674
  opts: {
42667
42675
  createAtas: false,
42668
42676
  wrapAndUnwrapSol: false,
@@ -43050,7 +43058,7 @@ async function buildRepayWithCollatFlashloanTx({
43050
43058
  withdrawOpts.withdrawAmount,
43051
43059
  withdrawOpts.withdrawBank.mintDecimals
43052
43060
  ),
43053
- isSync: true,
43061
+ isSync: false,
43054
43062
  opts: {
43055
43063
  createAtas: false,
43056
43064
  wrapAndUnwrapSol: false,
@@ -43086,7 +43094,7 @@ async function buildRepayWithCollatFlashloanTx({
43086
43094
  withdrawOpts.withdrawAmount,
43087
43095
  withdrawOpts.withdrawBank.mintDecimals
43088
43096
  ),
43089
- isSync: true,
43097
+ isSync: false,
43090
43098
  opts: {
43091
43099
  createAtas: false,
43092
43100
  wrapAndUnwrapSol: false,
@@ -43112,7 +43120,7 @@ async function buildRepayWithCollatFlashloanTx({
43112
43120
  withdrawOpts.withdrawAmount,
43113
43121
  withdrawOpts.withdrawBank.mintDecimals
43114
43122
  ),
43115
- isSync: true,
43123
+ isSync: false,
43116
43124
  opts: {
43117
43125
  createAtas: false,
43118
43126
  wrapAndUnwrapSol: false,
@@ -43139,7 +43147,7 @@ async function buildRepayWithCollatFlashloanTx({
43139
43147
  amountToRepay,
43140
43148
  repayOpts.repayBank.mintDecimals
43141
43149
  ),
43142
- isSync: true,
43150
+ isSync: false,
43143
43151
  opts: {
43144
43152
  wrapAndUnwrapSol: false,
43145
43153
  overrideInferAccounts