agent0.test_fixtures.interface_fixture

Test fixture for deploying local anvil chain and initializing hyperdrive.

Functions

hyperdrive_read_interface_fixture(...)

Fixture representing a hyperdrive read interface to a deployed hyperdrive pool.

hyperdrive_read_write_interface_fixture(...)

Fixture representing a hyperdrive interface to a deployed hyperdrive pool.

Module Contents

agent0.test_fixtures.interface_fixture.hyperdrive_read_interface_fixture(fast_hyperdrive_fixture: agent0.core.hyperdrive.interactive.LocalHyperdrive) agent0.ethpy.hyperdrive.interface.HyperdriveReadInterface

Fixture representing a hyperdrive read interface to a deployed hyperdrive pool.

Parameters:

fast_hyperdrive_fixture (LocalHyperdrive) – Fixture representing the deployed hyperdrive pool.

Returns:

The interface to access the deployed hyperdrive pool.

Return type:

HyperdriveReadInterface

agent0.test_fixtures.interface_fixture.hyperdrive_read_write_interface_fixture(fast_hyperdrive_fixture: agent0.core.hyperdrive.interactive.LocalHyperdrive) agent0.ethpy.hyperdrive.interface.HyperdriveReadWriteInterface

Fixture representing a hyperdrive interface to a deployed hyperdrive pool.

Parameters:

fast_hyperdrive_fixture (LocalHyperdrive) – Fixture representing the deployed hyperdrive pool.

Returns:

The interface to access and write to the deployed hyperdrive pool.

Return type:

HyperdriveReadWriteInterface