@0dotxyz/p0-ts-sdk 2.5.5-alpha.7 → 2.5.5-alpha.9
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 +20 -7
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +38 -0
- package/dist/index.d.ts +38 -0
- package/dist/index.js +20 -7
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -65943,6 +65943,7 @@ var getJupiterSwapIxsForFlashloan = async ({
|
|
|
65943
65943
|
// src/services/account/services/swap-engine/adapters/jupiter.adapter.ts
|
|
65944
65944
|
var JUPITER_MAX_ACCOUNTS_MARGIN = 4;
|
|
65945
65945
|
var JUPITER_MIN_MAX_ACCOUNTS = 16;
|
|
65946
|
+
var BUNDLE_INCOMPATIBLE_DEXES = ["GoonFi V2"];
|
|
65946
65947
|
function deserializeJupiterInstruction2(ix) {
|
|
65947
65948
|
return new web3_js.TransactionInstruction({
|
|
65948
65949
|
programId: new web3_js.PublicKey(ix.programId),
|
|
@@ -66008,6 +66009,7 @@ async function buildCandidates(req, apiConfig) {
|
|
|
66008
66009
|
// the Router may route through DEXes whose swaps lock vote accounts,
|
|
66009
66010
|
// which Jito rejects ("bundles cannot lock any vote accounts").
|
|
66010
66011
|
forJitoBundle: true,
|
|
66012
|
+
excludeDexes: BUNDLE_INCOMPATIBLE_DEXES,
|
|
66011
66013
|
destinationTokenAccount: req.destinationTokenAccount.toBase58(),
|
|
66012
66014
|
platformFeeBps: useFee ? req.platformFeeBps : void 0,
|
|
66013
66015
|
feeAccount: useFee ? feeAccount : void 0
|
|
@@ -66421,7 +66423,12 @@ async function makeRepayWithCollatTx(params) {
|
|
|
66421
66423
|
);
|
|
66422
66424
|
}
|
|
66423
66425
|
const transactions = [...additionalTxs, flashloanTx];
|
|
66424
|
-
return {
|
|
66426
|
+
return {
|
|
66427
|
+
transactions,
|
|
66428
|
+
swapQuote,
|
|
66429
|
+
amountToRepay,
|
|
66430
|
+
mustBeAtomicBundle: refreshIntegrationIxs.instructions.length > 0
|
|
66431
|
+
};
|
|
66425
66432
|
}
|
|
66426
66433
|
async function buildRepayWithCollatFlashloanTx({
|
|
66427
66434
|
program,
|
|
@@ -68606,7 +68613,8 @@ async function makeSwapDebtTx(params) {
|
|
|
68606
68613
|
return {
|
|
68607
68614
|
transactions,
|
|
68608
68615
|
actionTxIndex: transactions.length - 1,
|
|
68609
|
-
quoteResponse: swapQuote
|
|
68616
|
+
quoteResponse: swapQuote,
|
|
68617
|
+
mustBeAtomicBundle: refreshIntegrationIxs.instructions.length > 0
|
|
68610
68618
|
};
|
|
68611
68619
|
}
|
|
68612
68620
|
async function buildSwapDebtFlashloanTx({
|
|
@@ -68873,7 +68881,8 @@ async function tryBridgedDebtSwap(params, bridgeOpts) {
|
|
|
68873
68881
|
transactions: result.transactions,
|
|
68874
68882
|
actionTxIndex: result.transactions.length - 1,
|
|
68875
68883
|
quoteResponse: mergeBridgeQuotesDebt(result.firstLegQuote, result.secondLegQuote),
|
|
68876
|
-
bridgeMint: bridgeBank.mint
|
|
68884
|
+
bridgeMint: bridgeBank.mint,
|
|
68885
|
+
mustBeAtomicBundle: true
|
|
68877
68886
|
};
|
|
68878
68887
|
}
|
|
68879
68888
|
});
|
|
@@ -68982,7 +68991,8 @@ async function makeLoopTx(params) {
|
|
|
68982
68991
|
return {
|
|
68983
68992
|
transactions,
|
|
68984
68993
|
actionTxIndex: transactions.length - 1,
|
|
68985
|
-
quoteResponse: swapQuote
|
|
68994
|
+
quoteResponse: swapQuote,
|
|
68995
|
+
mustBeAtomicBundle: refreshIntegrationIxs.instructions.length > 0
|
|
68986
68996
|
};
|
|
68987
68997
|
}
|
|
68988
68998
|
async function buildLoopFlashloanTx(params) {
|
|
@@ -69375,7 +69385,8 @@ async function tryBridgedLoop(params, bridgeOpts) {
|
|
|
69375
69385
|
transactions: result.transactions,
|
|
69376
69386
|
actionTxIndex: result.transactions.length - 1,
|
|
69377
69387
|
quoteResponse: mergeBridgeQuotesLoop(result.firstLegQuote, result.secondLegQuote),
|
|
69378
|
-
bridgeMint: bridgeBank.mint
|
|
69388
|
+
bridgeMint: bridgeBank.mint,
|
|
69389
|
+
mustBeAtomicBundle: true
|
|
69379
69390
|
};
|
|
69380
69391
|
}
|
|
69381
69392
|
});
|
|
@@ -69471,7 +69482,8 @@ async function makeSwapCollateralTx(params) {
|
|
|
69471
69482
|
return {
|
|
69472
69483
|
transactions,
|
|
69473
69484
|
actionTxIndex: transactions.length - 1,
|
|
69474
|
-
quoteResponse: swapQuote
|
|
69485
|
+
quoteResponse: swapQuote,
|
|
69486
|
+
mustBeAtomicBundle: refreshIntegrationIxs.instructions.length > 0
|
|
69475
69487
|
};
|
|
69476
69488
|
}
|
|
69477
69489
|
async function buildSwapCollateralFlashloanTx({
|
|
@@ -69885,7 +69897,8 @@ async function tryBridgedCollateralSwap(params, bridgeOpts) {
|
|
|
69885
69897
|
transactions: result.transactions,
|
|
69886
69898
|
actionTxIndex: result.transactions.length - 1,
|
|
69887
69899
|
quoteResponse: mergeBridgeQuotes(result.firstLegQuote, result.secondLegQuote),
|
|
69888
|
-
bridgeMint: bridgeBank.mint
|
|
69900
|
+
bridgeMint: bridgeBank.mint,
|
|
69901
|
+
mustBeAtomicBundle: true
|
|
69889
69902
|
};
|
|
69890
69903
|
}
|
|
69891
69904
|
});
|