Skip to content

Implement interfaces for BaseType #58

Open
@Apolixit

Description

@Apolixit

We should consider adding interface abstraction to BaseType.
This would apply to classes like BaseTuple, BaseVec, and BaseEnumExt etc., which handle values with genericity.

Genericity force on manipulate concrete type, offering the benefit of strongly typed classes.
However, this approach comes with a drawback: we're unable to handle a list of events or a tuple of 'IType'.

The advantages of implementing this are as follows:

  • In applications with multiple layers, there are instances where a particular layer doesn't require knowledge of the concrete type (due to the absence of operations or modifications).
  • Reduce complexicity
  • Support for multiple pallet versions.

Let's engage in further discussion about this! 👍
I will link my PR very soon.

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