Skip to content

Extract Worker actor from current Staker #1054

@cygnusv

Description

@cygnusv

With the introduction of a Worker role in our smart contracts as part of the Alhambra Verde EPIC, we need to separate our Staker actor class in two parts: The real Staker, and the Worker.

For starters, most (all?) methods in Staker marked with the @only_me decorator seems like suitable candidates to remain in Staker. However, it seems reasonable to keep some of the "read-only" methods in Staker for Worker (i.e., get_locked_tokens).

Perhaps a "stranger" Staker (i.e., is_me=False) can be part of a Worker?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions