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
6 changes: 3 additions & 3 deletions elfpy/bots/checkpoint_bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@
from eth_account.account import Account
from web3.contract.contract import Contract

from elfpy import eth, hyperdrive_interface
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.hyperdrive_interface.hyperdrive_interface import get_hyperdrive_config
from elfpy.utils import logs
from eth_bots import hyperdrive_interface

# The portion of the checkpoint that the bot will wait before attempting to
# mint a new checkpoint.
Expand Down Expand Up @@ -90,7 +90,7 @@ def main() -> None:
# Run the checkpoint bot. This bot will attempt to mint a new checkpoint
# every checkpoint after a waiting period. It will poll very infrequently
# to reduce the probability of needing to mint a checkpoint.
config = get_hyperdrive_config(hyperdrive)
config = hyperdrive_interface.get_hyperdrive_config(hyperdrive)
checkpoint_duration = config["checkpointDuration"]
while True:
# Get the latest block time and check to see if a new checkpoint should
Expand Down
3 changes: 2 additions & 1 deletion eth_bots/core/execute_agent_trades.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
from web3 import Web3
from web3.contract.contract import Contract

from elfpy import eth, hyperdrive_interface, types
from elfpy import eth, types
from elfpy.eth.accounts import EthAgent
from elfpy.eth.errors.types import UnknownBlockError
from elfpy.eth.transactions import smart_contract_preview_transaction
Expand All @@ -20,6 +20,7 @@
from elfpy.types import Quantity, TokenType
from elfpy.wallet.wallet import Long, Short
from elfpy.wallet.wallet_deltas import WalletDeltas
from eth_bots import hyperdrive_interface

# TODO: Fix these up when we refactor this file
# pylint: disable=too-many-locals
Expand Down
3 changes: 2 additions & 1 deletion eth_bots/core/setup_experiment.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,11 @@
from web3 import Web3
from web3.contract.contract import Contract

from elfpy import eth, hyperdrive_interface
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.get_agent_accounts import get_agent_accounts
from eth_bots.eth_bots_config import get_eth_bots_config
Expand Down
3 changes: 2 additions & 1 deletion eth_bots/data/acquire_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,9 @@
from web3 import Web3
from web3.contract.contract import Contract

from elfpy import eth, hyperdrive_interface
from elfpy import eth
from elfpy.utils import logs as log_utils
from eth_bots import hyperdrive_interface
from eth_bots.data import convert_data, postgres

# pylint: disable=too-many-arguments
Expand Down
3 changes: 2 additions & 1 deletion eth_bots/data/convert_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
from web3.contract.contract import Contract
from web3.types import BlockData

from elfpy import eth, hyperdrive_interface
from elfpy import eth
from eth_bots import hyperdrive_interface
from eth_bots.data import db_schema

# pylint: disable=too-many-arguments
Expand Down
3 changes: 2 additions & 1 deletion eth_bots/fund_bots.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
from dotenv import load_dotenv
from eth_account.account import Account

from elfpy import eth, hyperdrive_interface
from elfpy import eth
from eth_bots import hyperdrive_interface
from eth_bots.eth_bots_config import get_eth_bots_config

if __name__ == "__main__":
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"""Interfaces for elfpy bots and hyperdrive smart contracts"""
"""Interfaces for bots and hyperdrive smart contracts."""

from .hyperdrive_addresses import HyperdriveAddresses
from .hyperdrive_assets import AssetIdPrefix, decode_asset_id, encode_asset_id
Expand Down
2 changes: 1 addition & 1 deletion eth_bots/streamlit/extract_data_logs.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import numpy as np
import pandas as pd

from elfpy.hyperdrive_interface import AssetIdPrefix
from eth_bots.hyperdrive_interface import AssetIdPrefix


def read_json_to_pd(json_file):
Expand Down