Skip to content

Backport the ChainType enum from the middleware to open-autonomy #2279

@OjusWiZard

Description

@OjusWiZard

Is your feature request related to a problem? Please describe.
We can not seamlessly use the ChainType enum from open-autonomy in Pearl because of the following reasons:

  • In Pearl, we partially support a different LedgerType and ChainType, i.e. SOLANA
  • In Pearl, we have some more utility methods that are not present in the ChainType enum of open-autonomy

Describe the solution you'd like
It would be best to have a complete version of this ChainType enum in open-autonomy and use it in the middleware with a simple import.

  • Either add the partial implementation of SOLANA in open-autonomy, or not (if not then it'll need to be cleaned from Pearl)
  • Add the utility property/methods like ledger_type, from_string, and from_id in the ChainType of open-autonomy

Describe alternatives you've considered
For now, a dynamically mutated version of ChainType is used in the middleware. We want to avoid such workarounds.

Additional context
Once done, use the updated version of autonomy in the Pearl and remove this TODO and maybe the partial implementation of SOLANA (if we choose to do that)

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