@haven-fi/solauto-sdk 1.0.558 → 1.0.559
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.
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"transactionUtils.d.ts","sourceRoot":"","sources":["../../src/transactions/transactionUtils.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,kBAAkB,EAClB,GAAG,EAGJ,MAAM,0BAA0B,CAAC;AAElC,OAAO,EAAE,SAAS,EAA8B,MAAM,iBAAiB,CAAC;AAoBxE,OAAO,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAsCzD,OAAO,EAAE,oBAAoB,EAAE,MAAM,YAAY,CAAC;AAOlD,OAAO,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAC;AA4LjD,wBAAsB,qBAAqB,CACzC,MAAM,EAAE,aAAa,EACrB,EAAE,EAAE,kBAAkB,EACtB,sBAAsB,EAAE,MAAM,EAAE,GAC/B,OAAO,CAAC,kBAAkB,CAAC,CAoH7B;AA2LD,wBAAsB,oBAAoB,CACxC,MAAM,EAAE,aAAa,EACrB,EAAE,EAAE,kBAAkB,GACrB,OAAO,CAAC,CAAC,kBAAkB,EAAE,kBAAkB,CAAC,CAAC,CA0BnD;AAED,wBAAsB,8BAA8B,CAClD,MAAM,EAAE,aAAa,oBAsDtB;AAED,wBAAsB,gCAAgC,CACpD,MAAM,EAAE,aAAa,EACrB,2BAA2B,CAAC,EAAE,MAAM,EACpC,UAAU,CAAC,EAAE,MAAM,GAClB,OAAO,CAAC,qBAAqB,GAAG,SAAS,CAAC,CAsI5C;AAED,wBAAsB,gCAAgC,CACpD,eAAe,EAAE,oBAAoB,EACrC,YAAY,EAAE,SAAS,EACvB,eAAe,EAAE,SAAS,GACzB,OAAO,CAAC,qBAAqB,GAAG,SAAS,CAAC,CAsC5C;AAED,wBAAgB,YAAY,CAC1B,GAAG,EAAE,GAAG,EACR,GAAG,EAAE,kBAAkB,EAAE,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@@ -468,6 +468,7 @@ function getErrorInfo(umi, txs, error, simulationSuccessful) {
|
|
468
468
|
errName = errCode === undefined ? err[1] : undefined;
|
469
469
|
}
|
470
470
|
else if (error instanceof transactions_1.BundleSimulationError) {
|
471
|
+
console.log(error.details);
|
471
472
|
errTxIdx = error.details.transactionIdx;
|
472
473
|
errIxIdx = error.details.instructionIdx - computeIxs;
|
473
474
|
errCode = error.details.errorCode;
|
package/dist/utils/jitoUtils.js
CHANGED
@@ -205,13 +205,7 @@ async function sendJitoBundledTransactions(umi, connection, userSigner, otherSig
|
|
205
205
|
builtTxs = await umiToVersionedTransactions(umi, latestBlockhash, userSigner, otherSigners, txs, true, feeEstimates, simulationResults
|
206
206
|
? simulationResults.map((x) => x.unitsConsumed * 1.15)
|
207
207
|
: undefined);
|
208
|
-
|
209
|
-
// builtTxs.map((x) =>
|
210
|
-
// x.message.compiledInstructions.map((y) =>
|
211
|
-
// x.message.staticAccountKeys[y.programIdIndex].toString()
|
212
|
-
// )
|
213
|
-
// )
|
214
|
-
// );
|
208
|
+
(0, generalUtils_1.consoleLog)(builtTxs.map((x) => x.message.compiledInstructions.map((y) => x.message.staticAccountKeys[y.programIdIndex].toString())));
|
215
209
|
const serializedTxs = builtTxs.map((x) => x.serialize());
|
216
210
|
if (serializedTxs.find((x) => x.length > 1232)) {
|
217
211
|
throw new Error("A transaction is too large");
|
package/package.json
CHANGED
@@ -868,6 +868,7 @@ export function getErrorInfo(
|
|
868
868
|
: undefined;
|
869
869
|
errName = errCode === undefined ? (err[1] as string) : undefined;
|
870
870
|
} else if (error instanceof BundleSimulationError) {
|
871
|
+
console.log(error.details);
|
871
872
|
errTxIdx = error.details.transactionIdx;
|
872
873
|
errIxIdx = error.details.instructionIdx - computeIxs;
|
873
874
|
errCode = error.details.errorCode;
|
package/src/utils/jitoUtils.ts
CHANGED
@@ -349,13 +349,13 @@ export async function sendJitoBundledTransactions(
|
|
349
349
|
? simulationResults.map((x) => x.unitsConsumed! * 1.15)
|
350
350
|
: undefined
|
351
351
|
);
|
352
|
-
|
353
|
-
|
354
|
-
|
355
|
-
|
356
|
-
|
357
|
-
|
358
|
-
|
352
|
+
consoleLog(
|
353
|
+
builtTxs.map((x) =>
|
354
|
+
x.message.compiledInstructions.map((y) =>
|
355
|
+
x.message.staticAccountKeys[y.programIdIndex].toString()
|
356
|
+
)
|
357
|
+
)
|
358
|
+
);
|
359
359
|
|
360
360
|
const serializedTxs = builtTxs.map((x) => x.serialize());
|
361
361
|
if (serializedTxs.find((x) => x.length > 1232)) {
|