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

feat!: use full EVM execution stack and simplify interception of bytecode, config, StateDB, etc. #35

Merged
merged 9 commits into from
Aug 17, 2024

Conversation

ARR4N
Copy link
Owner

@ARR4N ARR4N commented Aug 16, 2024

core.ApplyMessage() is used instead of vm.EVMInterpreter.Run() and an in-memory StateDB is injected. This allows for configuring message-level parameters like value and caller and general state like storage and other contracts to be *CALLed. A series of runopts.Options are therefore also included for such configuration.

The revert package is introduced for the revert.Error type and revert.Data() function for convenience when detecting and handling reverting calls.

@ARR4N ARR4N changed the title feat!: use core.ApplyMessage() and full state.StateDB for Run() feat!: use core.ApplyMessage() and full state.StateDB for Run() Aug 16, 2024
@ARR4N ARR4N changed the title feat!: use core.ApplyMessage() and full state.StateDB for Run() feat!: use full EVM execution stack and simplify interception thereof Aug 17, 2024
@ARR4N ARR4N marked this pull request as ready for review August 17, 2024 20:45
@ARR4N ARR4N changed the title feat!: use full EVM execution stack and simplify interception thereof feat!: use full EVM execution stack and simplify interception of bytecode, config, StateDB, etc. Aug 17, 2024
@ARR4N ARR4N merged commit a211290 into main Aug 17, 2024
2 checks passed
@ARR4N ARR4N deleted the arr4n/full-run-stack branch August 17, 2024 21:15
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