Forta detection agent for Lilith smart contracts
TypeScript package. Built with tsc/tsup; consumed by other workspaces.
Scripts#
| Command | Definition |
|---|---|
pnpm build |
tsc |
pnpm start |
npm run start:dev |
pnpm start:dev |
nodemon --watch src --exec 'npx forta-agent run' |
pnpm test |
jest |
Layout#
No top-level source directories beyond the package metadata.
Working on this package#
The fastest local loop is via Nx:
bash
pnpm nx test lilith-forta-agent
pnpm nx lint lilith-forta-agent
pnpm nx build lilith-forta-agent
When Nx is unhappy (usually because another worktree has duplicate project names), bypass it with the underlying tools from this directory:
bash
npx tsc --noEmit
npx vitest run
See the root README for monorepo-wide conventions (catalog deps, commit format, git workflow). See the Contributor Guide for the full PR workflow.