Skip to content

Conversation

@JonathanOppenheimer
Copy link
Member

@JonathanOppenheimer JonathanOppenheimer commented Dec 19, 2025

Why this should be merged

This PR adds //go:generate directives and CI checks for Solidity-generated files that were previously manually maintained and not verified in CI. It also reorganizes coreth's directory structure to match subnet-evm for consistency --

Previously, these Solidity-generated .abi and .bin files were committed to the repository but had no generation scripts or CI verification.

closes #4778

How this works

compile.go and the same CI check that exists in subnet-evm in coreth.

How this was tested

CI

Need to be documented in RELEASES.md?

No

@JonathanOppenheimer JonathanOppenheimer self-assigned this Dec 19, 2025
@JonathanOppenheimer JonathanOppenheimer added ci This focuses on changes to the CI process cleanup Code quality improvement labels Dec 19, 2025
@JonathanOppenheimer JonathanOppenheimer requested a review from a team as a code owner December 19, 2025 22:21
@JonathanOppenheimer JonathanOppenheimer added evm Related to EVM functionality coreth Related to the former coreth standalone repository subnet-evm Related to the former subnet-evm standalone repository labels Dec 19, 2025
"type": "bytes32"
}
],
"stateMutability": "nonpayable",
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This just because of the automatic generation now.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(the space that is)

@JonathanOppenheimer JonathanOppenheimer marked this pull request as draft December 19, 2025 23:45
package evm

// Step 1: Compile ExampleWarp contract to generate ABI and bin files
//go:generate sh -c "solc-v0.8.30 -o . --overwrite --abi --bin --pretty-json --base-path ../.. --evm-version shanghai ExampleWarp.sol && rm -f IWarpMessenger.abi IWarpMessenger.bin"
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

some test will fail if this if this is on cancun, it's related to the extra PUSH0s. I believe @ARR4N had a fix for this in mind at some point.

@JonathanOppenheimer JonathanOppenheimer marked this pull request as ready for review December 22, 2025 19:10
@JonathanOppenheimer JonathanOppenheimer requested a review from a team as a code owner December 22, 2025 19:10
Copy link
Contributor

@alarso16 alarso16 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks ok to me, but I think you should get another EVM approval on this

@maru-ava
Copy link
Contributor

maru-ava commented Jan 5, 2026

Needs a rebase for the sol conflict and also to pick up the e2e changes.

@JonathanOppenheimer
Copy link
Member Author

Needs a rebase for the sol conflict and also to pick up the e2e changes.

Merged instead, but should be good now!

@maru-ava maru-ava added this pull request to the merge queue Jan 6, 2026
Merged via the queue into master with commit baef5bc Jan 6, 2026
53 checks passed
@maru-ava maru-ava deleted the JonathanOppenheimer/cleanup-generated-files branch January 6, 2026 15:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci This focuses on changes to the CI process cleanup Code quality improvement coreth Related to the former coreth standalone repository evm Related to EVM functionality subnet-evm Related to the former subnet-evm standalone repository

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remove or add source of truth for all generated files.

5 participants