@aegis-engine/core 0.8.2 → 0.9.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/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
@@ -371,11 +380,17 @@ manager, you can build this object yourself and skip `resolveWalletSession`.
371
380
  `resolveWalletSession` is a convenience for simple browser integrations. It:
372
381
 
373
382
  - uses a supplied `provider` and `account` when provided,
374
- - otherwise calls `getProvider`,
375
- - otherwise falls back to `window.ethereum`,
383
+ - otherwise calls an explicit `getProvider` resolver,
384
+ - uses `window.ethereum` only when both provider sources are omitted,
376
385
  - optionally calls your `connectWallet` callback,
377
386
  - requests an account by default when one is missing.
378
387
 
388
+ A supplied `provider: null` or host resolver returning `null` remains
389
+ unresolved; it never selects an unrelated injected wallet. A `connectWallet`
390
+ callback may still explicitly return the selected provider/account. Without a
391
+ completed host connection, session resolution fails without requesting
392
+ permissions from another extension.
393
+
379
394
  Call it from a user action, not during render, because it may open the wallet
380
395
  connection prompt.
381
396
 
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-1Zl2KCcV.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-1Zl2KCcV.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-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";
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) {