@aegis-engine/core 0.8.0 → 0.8.1
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/aegis-core.js
CHANGED
|
@@ -4517,7 +4517,7 @@ function xn(e) {
|
|
|
4517
4517
|
}
|
|
4518
4518
|
let ba = null;
|
|
4519
4519
|
function K() {
|
|
4520
|
-
return ba ?? (ba = import("./sdkRuntime-
|
|
4520
|
+
return ba ?? (ba = import("./sdkRuntime-BLOOWtPv.js").then(({ engineSdkRuntime: e }) => e)), ba;
|
|
4521
4521
|
}
|
|
4522
4522
|
const Tn = 2500;
|
|
4523
4523
|
let Xn = /* @__PURE__ */ new WeakMap();
|
|
@@ -6599,7 +6599,8 @@ function Sm(e, t, n, o) {
|
|
|
6599
6599
|
const { quoteExactInputSingle: r } = await K(), i = at("V4 quoter", t.v4Quoter, o), s = await r(e, i, {
|
|
6600
6600
|
poolKey: t.poolKey,
|
|
6601
6601
|
zeroForOne: a.inputIsToken0,
|
|
6602
|
-
exactAmount: a.amountIn
|
|
6602
|
+
exactAmount: a.amountIn,
|
|
6603
|
+
...a.blockNumber !== void 0 ? { blockNumber: a.blockNumber } : {}
|
|
6603
6604
|
});
|
|
6604
6605
|
return {
|
|
6605
6606
|
minAmountOut: bt(s.amountOut, n),
|
|
@@ -6637,6 +6638,7 @@ async function Df(e) {
|
|
|
6637
6638
|
repayRl: e.repayRl ?? "full",
|
|
6638
6639
|
deadline: e.deadline ?? At(),
|
|
6639
6640
|
...e.quoteTtlSeconds !== void 0 ? { quoteTtlSeconds: e.quoteTtlSeconds } : {},
|
|
6641
|
+
...e.executionFrameMaxAgeSeconds !== void 0 ? { executionFrameMaxAgeSeconds: e.executionFrameMaxAgeSeconds } : {},
|
|
6640
6642
|
slippageBps: e.slippageBps,
|
|
6641
6643
|
fetchQuote: Sm(
|
|
6642
6644
|
e.publicClient,
|
|
@@ -6692,6 +6694,7 @@ async function _f(e) {
|
|
|
6692
6694
|
recipient: e.owner,
|
|
6693
6695
|
deadline: e.deadline ?? At(),
|
|
6694
6696
|
...e.quoteTtlSeconds !== void 0 ? { quoteTtlSeconds: e.quoteTtlSeconds } : {},
|
|
6697
|
+
...e.executionFrameMaxAgeSeconds !== void 0 ? { executionFrameMaxAgeSeconds: e.executionFrameMaxAgeSeconds } : {},
|
|
6695
6698
|
...e.signal ? { signal: e.signal } : {}
|
|
6696
6699
|
})
|
|
6697
6700
|
);
|
package/dist/engine/types.d.ts
CHANGED
|
@@ -1113,6 +1113,8 @@ type AegisEnginePositionActionQuoteBase = {
|
|
|
1113
1113
|
signal?: AbortSignal;
|
|
1114
1114
|
};
|
|
1115
1115
|
export type AegisEngineRepayQuoteInput = AegisEnginePositionActionQuoteBase & {
|
|
1116
|
+
/** Opt into a recent canonical frame (0–60 seconds); omitted keeps strict current-head verification. */
|
|
1117
|
+
executionFrameMaxAgeSeconds?: bigint;
|
|
1116
1118
|
target: AegisEngineBorrowPositionTarget;
|
|
1117
1119
|
repayRl?: bigint | 'full';
|
|
1118
1120
|
slippageBps: number;
|
|
@@ -1126,6 +1128,8 @@ export type AegisEngineAddCollateralQuoteInput = AegisEngineQuoteBase & {
|
|
|
1126
1128
|
forceExecutionEvidenceRefresh?: boolean;
|
|
1127
1129
|
};
|
|
1128
1130
|
export type AegisEngineCloseQuoteInput = AegisEnginePositionActionQuoteBase & {
|
|
1131
|
+
/** Opt into a recent canonical frame (0–60 seconds); omitted keeps strict current-head verification. */
|
|
1132
|
+
executionFrameMaxAgeSeconds?: bigint;
|
|
1129
1133
|
target: AegisEngineBorrowPositionTarget;
|
|
1130
1134
|
};
|
|
1131
1135
|
export type AegisEngineIdleWithdrawQuoteInput = AegisEnginePositionActionQuoteBase & {
|