This guide covers the public deployment surface for Flashix: frontend hosting, backend runtime, contract deployment, and proof artifact handling.
- Frontend: Vercel or equivalent static hosting.
- Backend: Render, Railway, or another Python host that supports FastAPI.
- Contracts: 0G testnet or mainnet through Hardhat.
- Evidence: deployment manifests, explorer links, and ledger exports persisted to the demo storage service.
- Create a Python 3.12+ service.
- Install dependencies with
pip install -r requirements.txt. - Start the app with the backend entry point used by the repo.
- Set environment variables for persistence, RPC access, signer address, and any provider tokens.
- Confirm
/healthreturnsokbefore exposing the service.
Recommended runtime variables:
PERSISTENCE_URLRPC_URLTEE_SIGNER_ADDRESSGEMINI_API_KEYPINATA_JWT
- Deploy the
frontend/workspace to Vercel. - Configure the frontend to point at the deployed backend URL.
- Verify the dashboard loads and the main routes resolve.
- Confirm the deployed app at https://flashix-mu.vercel.app/ matches the expected UX.
Before deploying contracts:
- Run the testnet checklist.
- Compile the contracts.
- Validate the trusted signer address.
- Confirm the router and pool configuration for the target chain.
After deployment:
- Record the transaction hashes.
- Update the deployment manifest.
- Save the explorer links.
- Re-check the UI proof cards against the deployed addresses.
- Testnet should be used for validation and judge demos.
- Mainnet should only be used after the deployment checklist and replay validation pass.
- The deployment flow should always preserve the audit trail: address, hash, gas, block number, and explorer URL.
- Do not commit private keys.
- Store contract deploy keys in a secret manager.
- Keep explorer verification keys separate from runtime service secrets.
- Rotate keys if a deployment credential is reused beyond its intended window.
- Deployment manifests under
contracts/deployments/. - Contract ABIs and generated types.
- Explorer verification links.
- Screenshots of the verified contract pages.
- A summary of any deploy-time warnings or manual overrides.