Network and Deployment
Network
Beforehand is designed to run on an EVM-compatible blockchain. Currently EVM compatible, network undecided.
Network Considerations
When selecting a network, factors include:
- Low gas costs: Makes small trades economically viable
- Fast transactions: Better user experience
- Scalability: Can handle high transaction volume
- EVM compatibility: Works with existing tooling
Contract Deployment
Markets are deployed via the MarketFactory:
- User creates market in UI
- Frontend calls MarketFactory
- Factory deploys new PredictionMarket contract
- Contract address returned and stored in database
Deployment Architecture
- Factory Pattern: Single factory deploys all markets
- Template Contracts: All markets use same contract code
- Isolated Instances: Each market is independent
Network Abstraction
The user experience abstracts away network details:
- Users don't need to know which network
- Gas costs are minimal and covered by fees
- Wallet connection handles network switching
- UI presents a consistent experience
Security Considerations
- Contracts are audited before deployment
- Factory has admin controls for emergency situations
- Community registry prevents unauthorized actions
- All critical operations require proper permissions