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

Precompile Contract Improvements #333

Closed
ceyonur opened this issue Nov 2, 2022 · 1 comment · Fixed by #389, #418, #420 or #434
Closed

Precompile Contract Improvements #333

ceyonur opened this issue Nov 2, 2022 · 1 comment · Fixed by #389, #418, #420 or #434
Assignees

Comments

@ceyonur
Copy link
Collaborator

ceyonur commented Nov 2, 2022

Currently stateful precompile package suffers several issues

  • Circular Import Hell with params package
  • instead of using getByKey we can try to use addresses to fetch precompile configurations
  • each precompile contract should have their own package with specific unit tests. Currently all precompile unit tests are in the same file
  • we should reduce places where we need to put precompile key (indicated by `"ADD YOUR PRECOMPILE HERE") in the codebase.
@0xJohnnyGault
Copy link

Caddy has a nice plugin architecture they use that would be a great model for precompiles to follow, if you need some inspiration.

https://caddyserver.com/docs/extending-caddy

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment