Skip to content

plugins.aea-test-autonomy.aea_test_autonomy.docker.amm_net

Tendermint Docker image.

AMMNetDockerImage Objects

class AMMNetDockerImage(DockerImage)

Spawn a local Ethereum network with deployed Gnosis Safe and Uniswap contracts, using HardHat.

__init__

def __init__(client: docker.DockerClient,
             addr: str = DEFAULT_HARDHAT_ADDR,
             port: int = DEFAULT_HARDHAT_PORT)

Initialize.

image

@property
def image() -> str

Get the image name.

create

def create() -> Container

Create the container.

create_many

def create_many(nb_containers: int) -> List[Container]

Instantiate the image in many containers, parametrized.

wait

def wait(max_attempts: int = 15, sleep_rate: float = 1.0) -> bool

Wait until the image is running.

Arguments:

  • max_attempts: max number of attempts.
  • sleep_rate: the amount of time to sleep between different requests.

Returns:

True if the wait was successful, False otherwise.