This is a full-stack template for building decentralized applications on the GenLayer blockchain, combining smart contract development with a frontend integration pipeline. It provides a pre-configured environment for writing GenLayer smart contracts using Python decorators that specify function visibility, persistence, and typed storage structures, along with built-in linting to catch forbidden imports and nondeterministic calls before deployment.
The boilerplate distinguishes itself by supporting nondeterministic smart contract operations—such as querying language models and fetching external web data—with automatic consensus validation through custom validator functions or equivalence checks. It includes a testing harness with mocked web and AI services for millisecond-level unit tests, plus a simulated network that runs full-consensus tests to verify correctness before production release. Quality enforcement is automated through Git hooks that run linting and tests on every commit.
Additional capabilities cover the full development lifecycle: configuring test networks and contract paths via YAML, deploying contracts to a target network with a single CLI command, generating frontend client code with wallet integrations, and managing user accounts through local key generation and import/export. The template also includes a working on-chain prediction market example that demonstrates AI-based result verification and real-time frontend updates.