subnet-evm icon indicating copy to clipboard operation
subnet-evm copied to clipboard

add precompile gen cmd & template

Open ceyonur opened this issue 3 years ago • 1 comments

Adds precompile gen cmd tool which can take a json ABI file and generates a go-lang precompiled contract. It also can directly detect if the ABI uses AllowList precompile and then configures the generated precompile accordingly.

The PR also contains a guideline and highlights for developers to guide them for a complete precompile integration.

closes #159

ceyonur avatar Aug 01 '22 19:08 ceyonur

LGTM. Would like to propagate the error from configure (can go in as separate PR before this or with this PR)

darioush avatar Aug 09 '22 16:08 darioush

Couple of future improvements from working on using this:

  • add a unit test for precompile generation similar to the bind test
  • re-organize the code so the input/output types and helpers are next to the corresponding execution functions

aaronbuchwald avatar Aug 15 '22 19:08 aaronbuchwald