Layout

packages/foundry/
  contracts/OrderVault.sol                orders, sweeps, fills, settlement, the order-type registry
  contracts/OrderVaultLens.sol            read-only cost, schedule and status previews for the frontend
  contracts/interfaces/IOrderType.sol     the order-type plug-in interface
  contracts/ordertypes/                   LimitOrderType, StopOrderType, TrailingStopType
  contracts/libraries/SweepMath.sol       the cost and scheduling arithmetic (shared by vault and lens)
  contracts/libraries/Settlement.sol      SaucerSwap swap, HTS token and order-NFT operations, ERC-20 moves
  contracts/libraries/MarketRegistry.sol  listing and tuning markets, and their bounds
  contracts/libraries/MarketGuard.sol     Chainlink vs TWAP guard and its parameter bounds
  contracts/libraries/OrderCollection.sol creates the order NFT collection
  contracts/libraries/PriceMath.sol       tick maths, cross prices, bps
  script/MarketConfig.sol                 testnet addresses, markets, measured costs
  script/Deploy.s.sol, script/PoolGap.s.sol
  test/                                   unit, fuzz, edge, audit, lens, invariant, differential, gas, fork
packages/nextjs/
  app/                                    Trade (/), My orders (/orders), order detail (/orders/[id]),
                                          Debug Contracts (/debug), and api/ from the scaffold
  components/orders/                      ticket, market panel, guard and checks-stopped banners
  hooks/orders/                           vault reads, mirror-node queries, wallet setup, tx state
  utils/orders/                           units, budgets, statuses, order trail, error messages
  e2e/                                    Playwright specs and network mocks
docs/ARCHITECTURE.md                      design, cost model, threat model, invariants

From README.md at v1.1 (cee2d4e) · View source