Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement interfaces for BaseType #58

Open
Apolixit opened this issue Aug 30, 2023 · 0 comments
Open

Implement interfaces for BaseType #58

Apolixit opened this issue Aug 30, 2023 · 0 comments

Comments

@Apolixit
Copy link
Member

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.

Apolixit added a commit to Apolixit/Substrate.NET.API that referenced this issue Aug 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant