@0dotxyz/p0-ts-sdk 2.5.5-alpha.7 → 2.5.5-alpha.8

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
@@ -66421,7 +66421,12 @@ async function makeRepayWithCollatTx(params) {
66421
66421
  );
66422
66422
  }
66423
66423
  const transactions = [...additionalTxs, flashloanTx];
66424
- return { transactions, swapQuote, amountToRepay };
66424
+ return {
66425
+ transactions,
66426
+ swapQuote,
66427
+ amountToRepay,
66428
+ mustBeAtomicBundle: refreshIntegrationIxs.instructions.length > 0
66429
+ };
66425
66430
  }
66426
66431
  async function buildRepayWithCollatFlashloanTx({
66427
66432
  program,
@@ -68606,7 +68611,8 @@ async function makeSwapDebtTx(params) {
68606
68611
  return {
68607
68612
  transactions,
68608
68613
  actionTxIndex: transactions.length - 1,
68609
- quoteResponse: swapQuote
68614
+ quoteResponse: swapQuote,
68615
+ mustBeAtomicBundle: refreshIntegrationIxs.instructions.length > 0
68610
68616
  };
68611
68617
  }
68612
68618
  async function buildSwapDebtFlashloanTx({
@@ -68873,7 +68879,8 @@ async function tryBridgedDebtSwap(params, bridgeOpts) {
68873
68879
  transactions: result.transactions,
68874
68880
  actionTxIndex: result.transactions.length - 1,
68875
68881
  quoteResponse: mergeBridgeQuotesDebt(result.firstLegQuote, result.secondLegQuote),
68876
- bridgeMint: bridgeBank.mint
68882
+ bridgeMint: bridgeBank.mint,
68883
+ mustBeAtomicBundle: true
68877
68884
  };
68878
68885
  }
68879
68886
  });
@@ -68982,7 +68989,8 @@ async function makeLoopTx(params) {
68982
68989
  return {
68983
68990
  transactions,
68984
68991
  actionTxIndex: transactions.length - 1,
68985
- quoteResponse: swapQuote
68992
+ quoteResponse: swapQuote,
68993
+ mustBeAtomicBundle: refreshIntegrationIxs.instructions.length > 0
68986
68994
  };
68987
68995
  }
68988
68996
  async function buildLoopFlashloanTx(params) {
@@ -69375,7 +69383,8 @@ async function tryBridgedLoop(params, bridgeOpts) {
69375
69383
  transactions: result.transactions,
69376
69384
  actionTxIndex: result.transactions.length - 1,
69377
69385
  quoteResponse: mergeBridgeQuotesLoop(result.firstLegQuote, result.secondLegQuote),
69378
- bridgeMint: bridgeBank.mint
69386
+ bridgeMint: bridgeBank.mint,
69387
+ mustBeAtomicBundle: true
69379
69388
  };
69380
69389
  }
69381
69390
  });
@@ -69471,7 +69480,8 @@ async function makeSwapCollateralTx(params) {
69471
69480
  return {
69472
69481
  transactions,
69473
69482
  actionTxIndex: transactions.length - 1,
69474
- quoteResponse: swapQuote
69483
+ quoteResponse: swapQuote,
69484
+ mustBeAtomicBundle: refreshIntegrationIxs.instructions.length > 0
69475
69485
  };
69476
69486
  }
69477
69487
  async function buildSwapCollateralFlashloanTx({
@@ -69885,7 +69895,8 @@ async function tryBridgedCollateralSwap(params, bridgeOpts) {
69885
69895
  transactions: result.transactions,
69886
69896
  actionTxIndex: result.transactions.length - 1,
69887
69897
  quoteResponse: mergeBridgeQuotes(result.firstLegQuote, result.secondLegQuote),
69888
- bridgeMint: bridgeBank.mint
69898
+ bridgeMint: bridgeBank.mint,
69899
+ mustBeAtomicBundle: true
69889
69900
  };
69890
69901
  }
69891
69902
  });