Skip to content

plugins.aea-ledger-ethereum.aea_ledger_ethereum.test_tools.docker_images

Constants.

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.

tag

@property
def tag() -> str

Get the image tag.

create

def create() -> Container

Create the container.

wait

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

Wait until the image is up.