-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allows for running service bots on remote chain (#119)
* Adding empty registry address field in env.common * Adding support for running service bots on remote chain * Bumping version of agent0 image * Updating readme * Bumping agent0 version * Bumping protocol and agent0 image versions * Bumping agent0 version * Always restart service bots if they crash * Version bumps in infra * Bumping image versions
- Loading branch information
Showing
9 changed files
with
86 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,10 @@ | ||
# The artifacts uri for the artifacts container | ||
ARTIFACTS_URI=http://artifacts:8080 | ||
|
||
# Choose a chain id for the eth node | ||
# Common choices are: 42069 for CloudChain or 31337 for local development | ||
CHAIN_ID=42069 | ||
|
||
# Migration configuration | ||
ADMIN=0x6043bF4ec8834F918242BaCA0F1F3805F2a2988D | ||
ADMIN_PRIVATE_KEY=0x0f1616bb59774b929ba5256c2204123d9dedc4c142d013179b90f929997d119b |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# The private key of the account that's paying gas for checkpoints | ||
CHECKPOINT_BOT_KEY= | ||
|
||
# The rollbar api key | ||
ROLLBAR_API_KEY= |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,5 @@ | ||
# Networking configuration | ||
ARTIFACTS_URI=http://artifacts:8080 | ||
RPC_URI=http://ethereum:8545 | ||
|
||
# Migration configuration | ||
ADMIN=0x6043bF4ec8834F918242BaCA0F1F3805F2a2988D | ||
ADMIN_PRIVATE_KEY=0x0f1616bb59774b929ba5256c2204123d9dedc4c142d013179b90f929997d119b | ||
# Registry address defaults to looking in artifacts | ||
# This can be overwritten by specifying here. | ||
REGISTRY_ADDRESS= |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# Service Bots | ||
Infra can be used to run service bots on a remote chain (e.g., Sepolia testnet). | ||
|
||
- Setup infra as documented in the [README](README.md#setup). | ||
- Run `./setup_env.sh --remote-service-bots` | ||
- Edit the generated `.env` file and replace the following fields: | ||
- `RPC_URI`: The URI to the RPC for connecting to the chain. | ||
- `REGISTRY_ADDRESS`: The contract address of the hyperdrive registry. | ||
- `CHECKPOINT_BOT_KEY`: The private key of the account that's making checkpoints. | ||
- `ROLLBAR_API_KEY`: The API key for Rollbar for logging. | ||
- Run `docker compose up -d` to bring up bots. | ||
|
||
The above will run (1) checkpoint bots and (2) invariance check bots on all registered pools. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters