Skip to content

packages.valory.skills.abstract_round_abci.behaviours

This module contains the behaviours for the 'abstract_round_abci' skill.

_MetaRoundBehaviour Objects

class _MetaRoundBehaviour(ABCMeta)

A metaclass that validates AbstractRoundBehaviour's attributes.

__new__

def __new__(mcs, name: str, bases: Tuple, namespace: Dict,
            **kwargs: Any) -> Type

Initialize the class.

AbstractRoundBehaviour Objects

class AbstractRoundBehaviour(Behaviour,
                             ABC,
                             Generic[EventType],
                             metaclass=_MetaRoundBehaviour)

This behaviour implements an abstract round behaviour.

__init__

def __init__(**kwargs: Any) -> None

Initialize the behaviour.

instantiate_behaviour_cls

def instantiate_behaviour_cls(behaviour_cls: BehaviourType) -> BaseBehaviour

Instantiate the behaviours class.

is_background_behaviour_set

@property
def is_background_behaviour_set() -> bool

Returns whether the background behaviour is set.

setup

def setup() -> None

Set up the behaviours.

teardown

def teardown() -> None

Tear down the behaviour

act

def act() -> None

Implement the behaviour.