Docs / Running it
Run it locally
The front end against mainnet, or a whole pad on anvil.
Commands
npm install
npm run dev # http://localhost:3000With no environment at all the site reads the mainnet launchpad, so a fresh clone shows the live board, live curves and live trades. Only sending a transaction needs a wallet.
Environment
| Variable | Purpose |
|---|---|
NEXT_PUBLIC_LAUNCHPAD | Point the site at another deployment of the launchpad. |
NEXT_PUBLIC_LAUNCHPAD_DEPLOY_BLOCK | Where log scans start. Wrong and low is slow; wrong and high hides history. |
RPC_URL | Server-side RPC override, when the public endpoint rate-limits you. |
A local chain
To run a pad of your own end to end, deploy the launchpad on anvil with a mock PoolManager standing in for Uniswap, set NEXT_PUBLIC_LAUNCHPAD to it and NEXT_PUBLIC_LAUNCHPAD_DEPLOY_BLOCK to 0. The front end needs nothing else: it discovers tokens, curves and history from the contract itself.