This is a starting repository for a new project using the Elric Optimus framework.
- Docker
- Docker Composer
- Make
The only must-have environment variable is SUBSTREAMS_API_KEY
, which is the API key for the Substreams API.
Register on https://app.streamingfast.io/ and create a new project to get your API key and generate your access token.
Copy the .env.example file into .env and update the values accordingly.
Add your abi to the abi/
folder and update the configuration file at config/substream_config.json
.
Execute the following command to build your substream and schema:
make build
The output is used by elric-rs
to index the data.
Execute the following command to start the project:
make start
Access your clickhouse database at http://default:default@localhost:8123
.
Execute the following command to stop the project:
make stop