Add New Platform
Use this workflow when adding support for a new perp venue to the current backend.
Practical steps
- Add or extend platform config under
../alpha/be/src/web3/platform. - Add chain support for the venue's deployment targets.
- Add contract metadata with platform, chain ID, address, version, status,
fromBlock, and optionaltoBlock. - Implement parser logic for the platform's trading events.
- Normalize event output into the shapes expected by leaderboard and task workflows.
- Add tests for parser behavior and transformation logic where possible.
- Verify leaderboard output for the platform.
- Verify simulation compatibility against indexed history from that platform.
What to update
- Prisma seed or contract-management path
- platform adapter code
- parser or ABI files
- any frontend platform enum or selector handling
- docs and operational runbooks
Definition of done
- historical indexing succeeds
- contract adaption status is visible
- leaderboard queries return useful data
getPerpTradePositionsworks for the new platform- simulation creation and detail views can use the new platform