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

Improve EntityStorage behavior on non-primitive types #21

Open
3 tasks
MHHukiewitz opened this issue Jan 25, 2023 · 0 comments
Open
3 tasks

Improve EntityStorage behavior on non-primitive types #21

MHHukiewitz opened this issue Jan 25, 2023 · 0 comments
Labels
enhancement New feature or request performance Impacts the runtime performance usability Impacts the user/dev experience

Comments

@MHHukiewitz
Copy link
Member

  • To extend on the BN issue from Provide standard middlewares for Blockchain primitive types #19, it might be useful to provide default mapFn implementations for parsing BN values from LevelDB (which are stored there as hex strings). This implementation should also scan for nested fields of the stored entities and parse them, if required.
  • The filterFn turned out to be unnecessary, as it is nowhere used, and may be removed.
  • An additional function may be defined to define how certain fields should be serialized into the DB, which may be used in conjunction with mapFn to obtain full control over SerDe when communicating with LevelDB.
@MHHukiewitz MHHukiewitz added enhancement New feature or request performance Impacts the runtime performance usability Impacts the user/dev experience labels Jan 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request performance Impacts the runtime performance usability Impacts the user/dev experience
Projects
None yet
Development

No branches or pull requests

1 participant