This Simulator is an interactive sandbox designed for developers to explore the potential of the GenLayer Protocol. It replicates the GenLayer network's execution environment and consensus algorithm, but offers a controlled and local environment to test different ideas and behaviors.
Before installing the GenLayer CLI, ensure you have the following prerequisites installed:
- Docker: Required to run the GenLayer environment. Required version: Docker 26+
- Node.js and npm: Needed for the GenLayer CLI tool. Required version: Node.js 18+
$ npm install -g genlayer
$ genlayer init
To run genlayer again just run:
$ genlayer up
After executing those commands a new tab will open in your browser with the GenLayer Simulator. Additional installation instructions can be found here
-
🖥️ Test Locally: Developers can test Intelligent Contracts in a local environment, replicating the GenLayer network without the need for deployment. This speeds up the development cycle and reduces the risk of errors in the live environment.
-
🧪 Versatile Scenario Testing: The simulator allows developers to create and test contracts under various simulated network conditions. This includes stress testing under high transaction loads, simulating network delays, and testing different consensus outcomes.
-
🔄 Changeable LLM Validators: Developers can modify the large language models (LLMs) used by validators within the simulator. This allows for testing of security, efficiency, and accuracy by running different LLMs to validate transactions.
Detailed information of how to use the simulator can be found at GenLayer Docs.
As an open-source project in a rapidly developing field, we are extremely open to contributions, whether it be in the form of a new feature, improved infrastructure, or better documentation. Please read our CONTRIBUTING for guidelines on how to submit your contributions.