@aegis-engine/core 0.9.0 → 0.9.2

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.
@@ -49,6 +49,8 @@ export declare function buildExactOutSwapTransaction(args: {
49
49
  poolKey: AegisPoolKey;
50
50
  zeroForOne: boolean;
51
51
  amountOut: bigint;
52
+ /** Required net payout. Defaults to gross amountOut minus the configured fee. */
53
+ amountOutNet?: bigint;
52
54
  amountInMaximum: bigint;
53
55
  recipient: Address;
54
56
  deadline: bigint;
package/dist/quote.d.ts CHANGED
@@ -15,13 +15,13 @@ export type DirectSwapQuote = {
15
15
  * Swap-action output floor, enforced on-chain. Semantics differ by mode:
16
16
  * - exactIn: gross floor sized so the user still nets `userAmountOutMinimum`
17
17
  * after the fee portion is taken.
18
- * - exactOut: equals `grossAmountOut` (output is fixed; the on-chain
19
- * protection is `amountInMaximum`). Informational only.
18
+ * - exactOut: equals `grossAmountOut`; the encoder separately requires the
19
+ * net payout after fees as well as enforcing `amountInMaximum`.
20
20
  */
21
21
  amountOutMinimum: bigint;
22
22
  /** exactOut: input ceiling enforced on-chain. exactIn: equals `amountIn`. */
23
23
  amountInMaximum: bigint;
24
- /** Minimum the user nets after slippage and fee. Display/reconciliation value. */
24
+ /** Minimum net receipt after slippage and fee; enforced by the swap recipe. */
25
25
  userAmountOutMinimum: bigint;
26
26
  /** Estimated widget fee in output currency (exact for exactOut, quote-time estimate for exactIn). */
27
27
  feeAmount: bigint;
@@ -3,7 +3,7 @@ var _s = (e, t, n) => t in e ? Ps(e, t, { enumerable: !0, configurable: !0, writ
3
3
  var ie = (e, t, n) => _s(e, typeof t != "symbol" ? t + "" : t, n);
4
4
  import { keccak256 as Et, zeroAddress as Ee, erc721Abi as Wt, hashTypedData as Cs, isAddress as on, erc20Abi as Or, encodeFunctionData as Dn, BaseError as ra, ContractFunctionRevertedError as Qi, numberToHex as Ms, encodeAbiParameters as Xi, parseAbiParameters as Rs, RpcRequestError as Zi, isHex as Ji, decodeErrorResult as Ss, ExecutionRevertedError as Ga, getEventSelector as Ze, getAbiItem as Je, parseAbi as aa, toEventSelector as Os } from "viem";
5
5
  import "viem/actions";
6
- import { X as ja, J as Ka } from "./transactionHistory-BhNsDpNJ.js";
6
+ import { X as ja, J as Ka } from "./transactionHistory-D3PDVGkr.js";
7
7
  class f extends Array {
8
8
  constructor(t, n) {
9
9
  if (super(t), this.sign = n, t > f.__kMaxLength) throw new RangeError("Maximum BigInt size exceeded");