Skip to content

Commit

Permalink
Remove unused config (#1462)
Browse files Browse the repository at this point in the history
This PR cleans up various unnecessary configs, enabled by making the old
workflow obsolete.

- Removes obsolete environment config, agent config, and accounts
config.
- Removes the `EthConfig` object in favor of passing in an `rpc_uri` and
`hyperdrive_address` for the interface.
- A future refactor of deploying a registry can set a default of
`hyperdrive_address` to a specific pool.
- Removes several obsolete scripts specific for infra.
- We'll need to reimplement a checkpoint bot and fuzz bots for the infra
workflow, but we likely can use the existing checkpoint bot script for
testnet. We just need to deploy a registry in infra for this.
- Consolidating logging setup in interactive objects, and exposing
logging parameters in config.
- Exposing `preview_before_trade` up the call chain to avoid setting it
in `EthConfig`.
- Wrapping `redeem_withdraw_shares` preview call in
`preview_before_trade`.
  • Loading branch information
Sheng Lundquist authored May 10, 2024
1 parent fc53b4f commit 14475b2
Show file tree
Hide file tree
Showing 38 changed files with 285 additions and 1,474 deletions.
4 changes: 0 additions & 4 deletions account.env.sample

This file was deleted.

6 changes: 0 additions & 6 deletions eth.env.sample

This file was deleted.

325 changes: 0 additions & 325 deletions scripts/checkpoint_bot.py

This file was deleted.

4 changes: 0 additions & 4 deletions scripts/local_fuzz_bots.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@

from agent0 import LocalChain, LocalHyperdrive
from agent0.hyperfuzz.system_fuzz import generate_fuzz_hyperdrive_config, run_fuzz_bots
from agent0.hyperlogs import setup_logging
from agent0.hyperlogs.rollbar_utilities import initialize_rollbar


Expand All @@ -17,9 +16,6 @@ def main() -> None:
# TODO consolidate setup into single function

log_to_rollbar = initialize_rollbar("localfuzzbots")
setup_logging(
log_stdout=True,
)

rng_seed = random.randint(0, 10000000)
rng = np.random.default_rng(rng_seed)
Expand Down
Loading

0 comments on commit 14475b2

Please sign in to comment.