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

Add support for EVM.heartbeat resource on system chunk transaction #717

Merged
merged 8 commits into from
Jul 24, 2024

Conversation

m-Peter
Copy link
Contributor

@m-Peter m-Peter commented Jul 23, 2024

Depends on #719

Description

The emission of EVM.BlockExecuted events is now part of the system chunk transaction.
In order for tools using the Flow Emulator, to function properly, we need to handle this in Emulator's system chunk transaction as well.
Furthermore, since this system chunk transaction is rather special, we need to make its event/s available to APIs such as the event streaming.


For contributor use:

  • Targeted PR against master branch
  • Linked to GitHub issue with discussion and accepted design OR link to spec that describes this work
  • Code follows the standards mentioned here
  • Updated relevant documentation
  • Re-reviewed Files changed in the GitHub PR explorer
  • Added appropriate labels

@sideninja
Copy link
Contributor

@turbolent can you check why the migration test breaks, Ardit disabled it for the sake of referencing this update flow-emulator in EVM GW but we should resolve the issue. I tried recreating a new snapshot for the migration test which has the EVM heartbeat updated contract, but still no luck, I'm not sure which version I should use when generating the snapshot so I used v0.62.1 which I'm not sure if correct. Can you help with this

sideninja added a commit that referenced this pull request Jul 23, 2024
the pre-1.0 Emulator state does not contain the EVM contract, so deploy it.
This must be done by deploying the minimal contract and updating to the full contract,
as deploying the full contract is only possible during bootstrapping
@turbolent
Copy link
Member

I improved the EVM migration in flow-go:

Once those PRs are merged, we should bump the flow-go version and then this PR should pass. Testing it locally using a temporary replace worked.

@turbolent turbolent self-assigned this Jul 23, 2024
@turbolent turbolent added the Improvement Technical work without new features, refactoring, improving tests label Jul 23, 2024
@turbolent turbolent enabled auto-merge July 24, 2024 22:37
@turbolent turbolent merged commit 07550d3 into onflow:master Jul 24, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Improvement Technical work without new features, refactoring, improving tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants