Skip to content

Repository files navigation

Royco Dawn Simulator Template

This repository contains the standardized Dawn simulator factory and its shared accountant, locked copy, design contract, market-data importer, verification checks, and certification commands.

To create a market simulator, follow docs/NEW_SIMULATOR.md. The factory commands are:

npm run sim:new -- <market-id> <csv-or-public-url>
npm run sim:verify -- <market-id>
npm run sim:preview -- <market-id>
npm run sim:certify -- <market-id>

The separate Royco Day template is documented in docs/NEW_DAY_SIMULATOR.md. Its commands are:

npm run day-sim:verify
npm run day-sim:preview
npm run day-sim:certify

Dawn and Day accounting remain isolated.

Local development

First, run the development server:

npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun dev

Open http://localhost:3000 with your browser to see the result.

Day V3 service configuration

Day V3 delegates E-CLP policy and fee resolution to the canonical RWA deploy service. Production deployments must configure both values below; there is no production fallback fee or local pool solver.

DAY_V3_POOL_DESIGN_SERVICE_URL=https://rwa.example/api/deploy-market/pool-design/v1
DAWN_RWA_PROXY_SHARED_SECRET=<same high-entropy secret configured by RWA>

The shared secret authenticates proxy-to-proxy traffic and preserves a stable, privacy-safe client key for rate limiting. Rotate it in both applications at the same time.

You can start editing the page by modifying app/page.tsx. The page auto-updates as you edit the file.

This project uses next/font to automatically optimize and load Geist, a new font family for Vercel.

Learn More

To learn more about Next.js, take a look at the following resources:

You can check out the Next.js GitHub repository - your feedback and contributions are welcome!

Deploy on Vercel

The easiest way to deploy your Next.js app is to use the Vercel Platform from the creators of Next.js.

Check out our Next.js deployment documentation for more details.

Releases

Packages

Contributors

Languages