@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.
package/README.md CHANGED
@@ -14,6 +14,15 @@ Use it when you want Aegis direct-pool swaps, KyberSwap aggregated routes, or
14
14
  Aegis Engine lend/borrow/position flows inside your own UI instead of using a
15
15
  prebuilt widget.
16
16
 
17
+ ## Trusted direct-swap discovery
18
+
19
+ Backend market records describe available pools; they do not authorize signing.
20
+ Core matches each direct pool against the catalogue it ships, comparing the full
21
+ `poolKey` and `poolId`, token addresses and decimals, chain, router, Permit2 and
22
+ quoter. A pool that is unknown or differs in any of these fields is rejected,
23
+ and discovery still hides catalogued pools that the backend marks disabled.
24
+ Catalogue membership is not a liquidity or price guarantee.
25
+
17
26
  ## Install
18
27
 
19
28
  ```sh
@@ -516,8 +525,16 @@ const quote = await fetchDirectPoolSwapQuote({
516
525
  ```
517
526
 
518
527
  Amounts are raw token base units. `slippageBps: 100` means 1%.
519
- The Aegis 0.5% output fee is applied by the high-level quote and execution
520
- helpers.
528
+ Exact-output execution enforces the input ceiling and required net receipt after
529
+ fees, or reverts atomically. The low-level builder takes gross `amountOut`;
530
+ optional `amountOutNet` must equal gross output minus the fee. Percentage fees
531
+ become a fixed amount against requested gross output. Remaining output credit
532
+ is then collected; a standard single-hop exact-output fill has no surplus.
533
+ Native input change is swept to `recipient`, which may differ from the payer.
534
+ Use the payer as recipient when that account should receive both output and
535
+ native change. General multihop exact output requires separate per-hop router
536
+ fulfillment checks. The high-level helpers apply the configured Aegis output fee.
537
+ All low-level builders reject negative fixed output fees before encoding calldata.
521
538
 
522
539
  ## Direct Pool Execution
523
540
 
package/dist/account.js CHANGED
@@ -1,5 +1,5 @@
1
- import { w as u, o as b, n as A, s as I, l as P, E as g, A as h, r as f, a as x, i as c, b as E, c as S, d as C, e as _, P as T, f as D } from "./transactionHistory-BhNsDpNJ.js";
2
- import { g as M, h as j, j as J, k as O, m as U, p as G, q as Z, t as Q, u as V, v as W, x as X, y as Y, z as ee, B as ae, C as oe, D as se, F as ne, G as te, H as re } from "./transactionHistory-BhNsDpNJ.js";
1
+ import { w as u, o as b, n as A, s as I, l as P, E as g, A as h, r as f, a as x, i as c, b as E, c as S, d as C, e as _, P as T, f as D } from "./transactionHistory-D3PDVGkr.js";
2
+ import { g as M, h as j, j as J, k as O, m as U, p as G, q as Z, t as Q, u as V, v as W, x as X, y as Y, z as ee, B as ae, C as oe, D as se, F as ne, G as te, H as re } from "./transactionHistory-D3PDVGkr.js";
3
3
  import { keccak256 as k, encodeAbiParameters as y } from "viem";
4
4
  const H = b({ version: P(1), snapshotId: I().uuid(), page: A().int().min(1).max(95) }).strict();
5
5
  function v(e) {