aea.contracts.ethereum

The base ethereum contract.

Contract

class Contract(BaseContract)

Definition of an ethereum contract.

__init__

 | __init__(config: ContractConfig, contract_interface: Dict[str, Any])

Initialize the contract.

Arguments:

  • config: the contract configurations.
  • contract_interface: the contract interface.

set_instance

 | set_instance(ledger_api: LedgerApi) -> None

Set the instance.

Arguments:

  • ledger_api: the ledger api we are using.

Returns:

None

set_address

 | set_address(ledger_api: LedgerApi, contract_address: str) -> None

Set the contract address.

Arguments:

  • ledger_api: the ledger_api we are using.
  • contract_address: the contract address

Returns:

None

set_deployed_instance

 | set_deployed_instance(ledger_api: LedgerApi, contract_address: str) -> None

Set the contract address.

Arguments:

  • ledger_api: the ledger_api we are using.
  • contract_address: the contract address

Returns:

None