Skip to content

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

Ganache Docker Image.

GanacheDockerImage Objects

class GanacheDockerImage(DockerImage)

Wrapper to Ganache Docker image.

__init__

def __init__(client: DockerClient,
             addr: str,
             port: int,
             config: Optional[Dict] = None,
             gas_limit: str = "0x9184e72a000")

Initialize the Ganache Docker image.

Arguments:

  • client: the Docker client.
  • addr: the address.
  • port: the port.
  • config: optional configuration to command line.
  • gas_limit: the gas limit for blocks.

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 up.

GanacheForkDockerImage Objects

class GanacheForkDockerImage(GanacheDockerImage)

Extends GanacheDockerImage to enable forking