Closed k-yang closed 2 weeks ago
The recent updates to the Chaosnet setup involve specifying configurations for validators, relayers, and other components depending on the selected profiles (IBC or heartmonitor). The changes primarily enhance the flexibility and clarity of running Chaosnet with these profiles. The modifications also include slight reorganization for better usability and enabling specific features in configuration files to support these setups.
Files | Change Summaries |
---|---|
CHAOSNET.md |
Updated setup instructions for validators, relayers, and other components based on profiles. |
contrib/docker-compose/README.md |
Restructured sections, updated headings, and refined descriptions for better clarity. |
contrib/docker-compose/docker-compose-chaosnet.yml |
Added profiles to services: ibc and heartmonitor configurations to appropriate services. |
contrib/make/chaosnet.mk |
Added targets for running chaosnet with IBC or heartmonitor profiles, modified chaosnet-down . |
contrib/scripts/chaosnet.sh |
Enabled gRPC in configuration file using sed commands. |
In code we weave a wonderland, Where Chaosnet will swiftly stand. Validators rise, relayers dance, Heartmonitor takes its chance. Profiles ready, scripts align, In Dockerβs heart, the stars now shine. π Chaosnet, with grace, refine! π
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Purpose / Abstract
I investigated why ts-sdk tests were failing and discovered that the chaosnet dependency wasn't working anymore. The hermes task complained about not being able to establish a gRPC connection to the nodes.
When I took a closer look, I found that #1871 had a config change that disabled the gRPC server by default. I added a line in
chaosnet.sh
to manually enable the gRPC server.Furthermore, this PR adds docker compose profiles to enable dynamic chaosnet environments. Three profiles were added so far. 1)
default
: a single validator + pricefeeder 2)ibc
: two validators + hermes 3)heartmonitor
: single validator + heartmonitor and graphqlThey can be activated respectively: 1)
make chaosnet
2)make chaosnet-ibc
3)make chaosnet-heartmonitor
I removed the liquidator and faucet services as well.
Tickets
Summary by CodeRabbit
Documentation
CHAOSNET.md
with detailed profiles and component setup instructions.contrib/docker-compose/README.md
for better clarity and usability.Configuration
docker-compose-chaosnet.yml
with new service profiles for IBC and heartmonitor.chaosnet.mk
for running specific testnet configurations.New Features
chaosnet.sh
script.