Skip to content

autonomy.chain.base

Chain interaction base classes.

UnitType Objects

class UnitType(Enum)

Unit type

Same as https://github.com/valory-xyz/autonolas-registries/blob/v1.0.1/contracts/interfaces/IRegistry.sol#L6-L9

ServiceState Objects

class ServiceState(Enum)

Service state

Same as https://github.com/valory-xyz/autonolas-registries/blob/v1.0.1/contracts/ServiceRegistry.sol#L41-L48

RegistryContracts Objects

class RegistryContracts()

On chain registry contracts helper

get_contract

@staticmethod
def get_contract(public_id: PublicId, cache: bool = True) -> Contract

Load contract for given public id.

registries_manager

@property
def registries_manager() -> Contract

Returns an instance of the registries manager contract.

service_manager

@property
def service_manager() -> Contract

Returns an instance of the service manager contract.

component_registry

@property
def component_registry() -> Contract

Returns an instance of the component registry contract.

agent_registry

@property
def agent_registry() -> Contract

Returns an instance of the agent registry contract.

service_registry

@property
def service_registry() -> Contract

Returns an instance of the service registry contract.

service_registry_token_utility

@property
def service_registry_token_utility() -> Contract

Returns an instance of the service registry token utility contract.

erc20

@property
def erc20() -> Contract

Returns an instance of the erc20 contract.

gnosis_safe

@property
def gnosis_safe() -> Contract

Returns an instance of the gnosis safe contract.

gnosis_safe_proxy_factory

@property
def gnosis_safe_proxy_factory() -> Contract

Returns an instance of the gnosis safe proxy factory contract.

recovery_module

@property
def recovery_module() -> Contract

Returns an instance of the recovery module contract.

poly_safe_creator_with_recovery_module

@property
def poly_safe_creator_with_recovery_module() -> Contract

Returns an instance of the recovery module contract.

multisend

@property
def multisend() -> Contract

Returns an instance of the multisend contract.

sign_message_lib

@property
def sign_message_lib() -> Contract

Returns an instance of the sign message lib contract.

erc8004_identity_registry

@property
def erc8004_identity_registry() -> Contract

Returns an instance of the ERC8004 identity registry contract.

erc8004_identity_registry_bridger

@property
def erc8004_identity_registry_bridger() -> Contract

Returns an instance of the ERC8004 identity registry bridger contract.