Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update for hyperdrive v1.0.1 #115

Merged
merged 10 commits into from
Apr 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions docker-compose.anvil.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,18 @@ services:
volumes:
- artifacts:/var/www/artifacts/

checkpoint-bot:
# TODO make single container for all pools
checkpoint-bot-erc4626:
image: ${AGENT0_IMAGE}
command: |
/bin/sh -c "sleep 1; python scripts/checkpoint_bot.py"
/bin/sh -c "sleep 1; python scripts/checkpoint_bot.py --pool erc4626_hyperdrive --fund"
env_file:
- .env

checkpoint-bot-steth:
image: ${AGENT0_IMAGE}
command: |
/bin/sh -c "sleep 1; python scripts/checkpoint_bot.py --pool steth_hyperdrive --fund"
env_file:
- .env

Expand Down
3 changes: 2 additions & 1 deletion docker-compose.frontend.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ services:
- VITE_CUSTOM_CHAIN_NODE_RPC_URL=${UI_RPC_URL}
- VITE_CUSTOM_CHAIN_ADDRESSES_URL=${UI_ADDRESSES_URL}
- VITE_CUSTOM_CHAIN_CHAIN_ID=${UI_CHAIN_ID}
- VITE_ALCHEMY_GOERLI_RPC_KEY=${UI_ALCHEMY_GOERLI_RPC_KEY}
- VITE_WALLET_CONNECT_PROJECT_ID=${UI_WALLET_CONNECT_PROJECT_ID}
- VITE_CAPSULE_API_KEY=${UI_CAPSULE_API_KEY}
- VITE_CAPSULE_ENV=${UI_CAPSULE_ENV}
command: "yarn workspace hyperdrive-trading dev --host 0.0.0.0"
32 changes: 28 additions & 4 deletions docker-compose.fuzz-bot.yaml
Original file line number Diff line number Diff line change
@@ -1,22 +1,46 @@
version: "3.9"
services:
fuzz:
# TODO make single container for all pools
fuzz-erc4626:
image: ${AGENT0_IMAGE}
profiles:
- "fuzz"
working_dir: /app/
command: /bin/sh -c "DEVELOP=true python scripts/fuzz_bots.py"
command: /bin/sh -c "DEVELOP=true python scripts/fuzz_bots.py --pool erc4626_hyperdrive"
env_file:
- .env
volumes:
- .crash_report:/app/.crash_report

fuzz-invariant-check:
fuzz-steth:
image: ${AGENT0_IMAGE}
profiles:
- "fuzz"
working_dir: /app/
command: /bin/sh -c "python scripts/fuzz_bot_invariant_checks.py"
command: /bin/sh -c "DEVELOP=true python scripts/fuzz_bots.py --pool steth_hyperdrive"
env_file:
- .env
volumes:
- .crash_report:/app/.crash_report

fuzz-invariant-check-erc4626:
image: ${AGENT0_IMAGE}
profiles:
- "fuzz"
working_dir: /app/
command: /bin/sh -c "sleep 1; python scripts/fuzz_bot_invariant_checks.py --pool erc4626_hyperdrive"
env_file:
- .env
volumes:
- .crash_report:/app/.crash_report


fuzz-invariant-check-steth:
image: ${AGENT0_IMAGE}
profiles:
- "fuzz"
working_dir: /app/
command: /bin/sh -c "sleep 1; python scripts/fuzz_bot_invariant_checks.py --pool steth_hyperdrive"
env_file:
- .env
volumes:
Expand Down
10 changes: 6 additions & 4 deletions env/env.frontend
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@ UI_RPC_URL=http://localhost:8545
UI_ADDRESSES_URL=http://localhost:8080
UI_CHAIN_ID=42069

# Optional API key from Alchemy if using Goerli
UI_ALCHEMY_GOERLI_RPC_KEY=
# Optional WalletConnect integration
UI_WALLET_CONNECT_PROJECT_ID=0

# Optional Capsule wallet integration
VITE_CAPSULE_API_KEY=
VITE_CAPSULE_ENV=PROD

# Optional wallet connect project ID to make Wallet Connect work
UI_WALLET_CONNECT_PROJECT_ID=
9 changes: 5 additions & 4 deletions env/env.images
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,17 @@
# - edge = The newest image regardless of stability

# Anvil
DEVNET_IMAGE=ghcr.io/delvtech/hyperdrive/devnet:0.10.1
TESTNET_IMAGE=ghcr.io/delvtech/hyperdrive/testnet:0.10.1
DEVNET_IMAGE=ghcr.io/delvtech/hyperdrive/devnet:1.0.1
TESTNET_IMAGE=ghcr.io/delvtech/hyperdrive/testnet:1.0.1

# Infra
ARTIFACTS_IMAGE=ghcr.io/delvtech/infra/artifacts:0.0.8
FUND_ACCOUNTS_IMAGE=ghcr.io/delvtech/infra/fund-accounts:0.0.8
RATE_BOT_IMAGE=ghcr.io/delvtech/infra/rate-bot:0.0.8

# Agent0 (bots)
AGENT0_IMAGE=ghcr.io/delvtech/agent0/agent0:0.17.1
# TODO cut release and set here
AGENT0_IMAGE=ghcr.io/delvtech/agent0/agent0:0.18.1

# Frontend
FRONTEND_IMAGE=ghcr.io/delvtech/hyperdrive-frontend/hyperdrive-frontend:0.18.1
FRONTEND_IMAGE=ghcr.io/delvtech/hyperdrive-frontend/hyperdrive-frontend:1.0.7
10 changes: 8 additions & 2 deletions test/test_compose.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,15 @@ if [ -z "$(docker compose ps -q artifacts)" ]; then
fi

# The checkpoint-bot service should be running.
if [ -z "$(docker compose ps -q checkpoint-bot)" ]; then
if [ -z "$(docker compose ps -q checkpoint-bot-erc4626)" ]; then
echo "Checkpoint bot service exited unexpectedly:"
docker logs $dirname-checkpoint-bot-1
docker logs $dirname-checkpoint-bot-erc4626-1
exit 1
fi

if [ -z "$(docker compose ps -q checkpoint-bot-steth)" ]; then
echo "Checkpoint bot service exited unexpectedly:"
docker logs $dirname-checkpoint-bot-steth-1
exit 1
fi

Expand Down
Loading