@shift-defi/swap-adapters
v0.1.1
Published
Swap adapters for Shift DeFi Platform
Keywords
Readme
Shift DeFi Swap Adapters
Swap adapters that route Shift core's SwapRouter (@shift-defi/core)
through external venues: Uniswap V3 SwapRouter02, 1inch v6, a generic
router call (UniversalAdapter) and a fixed-price pool (CustomPool).
Setup
Requires Foundry v1.8.3 (foundryup -i v1.8.3),
just, Node.js and npm.
just setup # npm install + point git at the hooks in .githooksFork tests run against live networks at pinned blocks, so the RPCs must
serve archive state. Put the RPC URLs in .env (gitignored), which forge
loads on its own: MONAD_RPC_URL (and ETH_RPC_URL for scripts).
Usage
just # list recipes
just build # compile contracts/ and check sizes
just fmt # forge fmt
just test # every test (fork tests pin their blocks)
just test-unit # unit tests only, no RPC
just check # fmt check + build + every test
just analyze # slither + aderynGit hooks: commit-msg enforces <type>(<scope>): <summary> (see
AGENTS.md); pre-commit runs forge fmt --check, just build and every
test when Solidity or build config is staged.
Agent harness
Agent instructions live in AGENTS.md, read natively by Codex and Cursor.
CLAUDE.md is a symlink to it, so Claude Code reads the same file. Edit
AGENTS.md only.
AGENTS.md: repo-wide context, conventions and rulestest/AGENTS.md(withtest/CLAUDE.mdsymlinked to it): test conventions, loaded when working undertest/.claude/settings.json,.codex/,.cursorignore: keep.envfiles out of agent reach, sandbox shell commands, and run.agents/hooks/sol-change-check.sh(format, compilecontracts/, run the unit tests) when an agent stops; fork tests run in the pre-commit hook
Symlinks do not survive every Windows checkout; on Windows, enable
core.symlinks or replace each CLAUDE.md with a one-line pointer to
AGENTS.md.
