Skip to content

Conversation

ceyonur
Copy link
Collaborator

@ceyonur ceyonur commented Nov 30, 2022

Why this should be merged

Moves inline ABI strings in precompiles to embedded separate string files.

How this works

Changes how we handle abi.Bind function and adds a hook to provide a way for expanding the function without expanding the standard inputs. Creates inputted ABI files in the same directory with output precompile file, and embeds those ABI files in precompile. If the output precompile file is STDOUT then it will inline ABI strings into the precompile (old behaviour).

Changes precompile template to reflect those changes.

How this was tested

Created a RewardManager precompile with precompile gen tool and run stateful_precompile_test.go tests. Also confirmed the ABI is inlined when output is STDOUT.

ceyonur and others added 30 commits August 24, 2022 17:30
Co-authored-by: Darioush Jalali <[email protected]>
Co-authored-by: Darioush Jalali <[email protected]>
@ceyonur
Copy link
Collaborator Author

ceyonur commented Nov 30, 2022

closing in favor of #383

@ceyonur ceyonur closed this Nov 30, 2022
@ceyonur ceyonur deleted the embed-abis branch November 30, 2022 16:01
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

Successfully merging this pull request may close these issues.

1 participant