Skip to content
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
5 changes: 0 additions & 5 deletions elfpy/bots/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +0,0 @@
"""Utilities and classes for Agent.0 bots"""

from .agent_config import AgentConfig
from .budget import Budget
from .environment_config import DEFAULT_USERNAME, EnvironmentConfig
73 changes: 0 additions & 73 deletions elfpy/bots/bot_server.py

This file was deleted.

2 changes: 1 addition & 1 deletion elfpy/bots/checkpoint_bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@
from web3.contract.contract import Contract

from elfpy import eth
from elfpy.bots.environment_config import EnvironmentConfig
from elfpy.eth.accounts.eth_account import EthAgent
from elfpy.eth.rpc_interface import set_anvil_account_balance
from elfpy.eth.transactions import smart_contract_read, smart_contract_transact
from elfpy.utils import logs
from eth_bots import hyperdrive_interface
from eth_bots.core import EnvironmentConfig

# The portion of the checkpoint that the bot will wait before attempting to
# mint a new checkpoint.
Expand Down
12 changes: 0 additions & 12 deletions elfpy/bots/create_default_profile.py

This file was deleted.

82 changes: 0 additions & 82 deletions elfpy/bots/sim_server.py

This file was deleted.

3 changes: 3 additions & 0 deletions elfpy/eth/errors/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
"""Custom error reporting and contract error parsing."""
from .errors import decode_error_selector_for_contract
from .types import ABIError, UnknownBlockError
2 changes: 1 addition & 1 deletion elfpy/eth/errors/test_errors.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"""Tests for errors.py"""
import pytest

from elfpy.eth.errors.errors import decode_error_selector_for_contract
from elfpy.eth.errors import decode_error_selector_for_contract


class TestDecodeErrorSelector:
Expand Down
4 changes: 4 additions & 0 deletions eth_bots/core/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
"""Core functions & utilities for running eth_bots"""
from .agent_config import AgentConfig
from .budget import Budget
from .environment_config import DEFAULT_USERNAME, EnvironmentConfig
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion eth_bots/core/execute_agent_trades.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

from elfpy import eth, types
from elfpy.eth.accounts import EthAgent
from elfpy.eth.errors.types import UnknownBlockError
from elfpy.eth.errors import UnknownBlockError
from elfpy.eth.transactions import smart_contract_preview_transaction
from elfpy.markets.hyperdrive import HyperdriveMarket, MarketActionType
from elfpy.markets.hyperdrive.hyperdrive_actions import HyperdriveMarketAction
Expand Down
2 changes: 1 addition & 1 deletion eth_bots/core/get_agent_accounts.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
from web3.contract.contract import Contract

from elfpy import eth
from elfpy.bots import AgentConfig
from elfpy.eth.accounts import EthAgent
from eth_bots.core import AgentConfig

# pylint: disable=too-many-locals

Expand Down
3 changes: 1 addition & 2 deletions eth_bots/core/setup_experiment.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,10 @@
from web3.contract.contract import Contract

from elfpy import eth
from elfpy.bots import DEFAULT_USERNAME, EnvironmentConfig
from elfpy.eth.accounts import EthAgent
from elfpy.utils import logs
from eth_bots import hyperdrive_interface
from eth_bots.core import crash_report
from eth_bots.core import DEFAULT_USERNAME, EnvironmentConfig, crash_report
from eth_bots.core.get_agent_accounts import get_agent_accounts
from eth_bots.eth_bots_config import get_eth_bots_config

Expand Down
2 changes: 1 addition & 1 deletion eth_bots/eth_bots_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from fixedpointmath import FixedPoint

from elfpy.agents.policies import Policies
from elfpy.bots import AgentConfig, Budget, EnvironmentConfig
from eth_bots.core import AgentConfig, Budget, EnvironmentConfig

# You can import custom policies here. For example:
from eth_bots.custom_policies.example_custom_policy import ExampleCustomPolicy
Expand Down