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(primitives): implement env #11

Open
8 tasks
tcoratger opened this issue Sep 14, 2023 · 0 comments
Open
8 tasks

feat(primitives): implement env #11

tcoratger opened this issue Sep 14, 2023 · 0 comments
Assignees

Comments

@tcoratger
Copy link
Owner

tcoratger commented Sep 14, 2023

Description

The goal of this issue is to implement the functions and data structures from the provided Rust code file in Ziglang, corresponding to various env. This Rust code file is a part of the Ethereum Virtual Machine (EVM) implementation, and we need to replicate its functionality accurately in Ziglang.

https://github.com/bluealloy/revm/blob/main/crates/primitives/src/env.rs

Tasks

  1. Port Rust Code to Ziglang: Translate the following functions and data structures from Rust to Ziglang:
  • - Env and its associated functions
  • - BlockEnv and its associated functions
  • - TxEnv and its associated functions
  • - TransactTo and its associated functions
  • - CreateScheme and its associated functions
  • - CfgEnv and its associated functions
  • - AnalysisKind enum
  • - All functions within the Env struct, including effective_gas_price, validate_block_env, validate_tx, and validate_tx_agains_state.
  1. Ensure Functional Parity: Ensure that the Ziglang implementation maintains the same functionality and behavior as the original Rust code. This includes correctly executing transactions, managing gas, validating transactions, and handling various Ethereum Improvement Proposals (EIPs).
@coratgerl coratgerl self-assigned this Sep 17, 2023
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

No branches or pull requests

2 participants