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 anvil state and binding generation workflow #220

Open
Hyodar opened this issue Jun 5, 2024 · 0 comments
Open

Improve anvil state and binding generation workflow #220

Hyodar opened this issue Jun 5, 2024 · 0 comments

Comments

@Hyodar
Copy link
Contributor

Hyodar commented Jun 5, 2024

Currently, whenever the smart contracts are changed, some steps are required in a testing level. First, you should execute ./contracts/generate-go-bindings.sh to generate the new bindings using abigen, then execute tests/anvil/deploy-avs-save-anvil-state.sh or deploy-rollup-avs-save-anvil-state.sh depending on the contracts, which generates the new initial anvil state and the new deployment output addresses. Spawning an anvil instance in the background also sometimes fails.
We need some thought into how to improve this workflow, in general getting it neater. IMO especially since we are using Go and it's pretty neat for CLI tools, we should get a small project CLI tool going that does everything - generates bindings and updates the anvil states for both rollup and mainnet devnets (even if one wasn't changed, doesn't matter) and drop the extra steps. We can also integrate other actions as specific commands.

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

No branches or pull requests

1 participant