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

Update documentation #1275

Merged
merged 14 commits into from
Apr 8, 2024
2 changes: 1 addition & 1 deletion crates/primitives/src/specification.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ pub enum SpecId {
GRAY_GLACIER = 14, // Gray Glacier 15050000
MERGE = 15, // Paris/Merge 15537394 (TTD: 58750000000000000000000)
SHANGHAI = 16, // Shanghai 17034870 (TS: 1681338455)
CANCUN = 17, // Cancun TBD
CANCUN = 17, // Cancun 19426587 (Epoch: 269568)
rakita marked this conversation as resolved.
Show resolved Hide resolved
#[default]
LATEST = u8::MAX,
}
Expand Down
Empty file.
Empty file removed crates/revm/src/frame/result.rs
Empty file.
2 changes: 0 additions & 2 deletions documentation/src/SUMMARY.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,8 @@
- [result](./crates/primitives/result.md)
- [environment](./crates/primitives/environment.md)
- [specifications](./crates/primitives/specifications.md)
- [bits](./crates/primitives/bits.md)
- [bytecode](./crates/primitives/bytecode.md)
- [constants](./crates/primitives/constants.md)
- [log](./crates/primitives/log.md)
- [precompile](./crates/primitives/precompile.md)
- [state](./crates/primitives/state.md)
- [utils](./crates/primitives/utils.md)
Expand Down
8 changes: 1 addition & 7 deletions documentation/src/crates/primitives.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,10 @@ It is set up to be compatible with environments that do not include Rust's stand

### Modules:

- [bits](./primitives/bits.md): This module provides types for handling specific sizes of byte arrays (Address and B256).
- [bytecode](./primitives/bytecode.md): This module provides functionality related to EVM bytecode.
- [constants](./primitives/constants.md): This module contains constant values used throughout the EVM implementation.
- [db](./primitives/database.md): This module contains data structures and functions related to the EVM's database implementation.
- [env](./primitives/environment.md): This module contains types and functions related to the EVM's environment, including block headers, and environment values.
- [log](./primitives/log.md): This module provides types and functionality for Ethereum logs.
- [precompile](./primitives/precompile.md): This module contains types related to Ethereum's precompiled contracts.
- [result](./primitives/result.md): This module provides types for representing execution results and errors in the EVM.
- [specification](./primitives/specifications.md): This module defines types related to Ethereum specifications (also known as hard forks).
Expand All @@ -30,10 +28,6 @@ It is set up to be compatible with environments that do not include Rust's stand
- `ruint`: The ruint crate provides types and functions for big unsigned integer arithmetic.
- `c-kzg`: A minimal implementation of the Polynomial Commitments API for EIP-4844, written in C. (With rust bindings)

### Type Aliases:

- `Hash`: An alias for B256, typically used to represent 256-bit hashes or integer values in Ethereum.

### Re-exported Types:

- `Address`: A type representing a 160-bit (or 20-byte) array, typically used for Ethereum addresses.
Expand All @@ -43,4 +37,4 @@ It is set up to be compatible with environments that do not include Rust's stand
- `HashMap` and `HashSet`: High-performance hash map and hash set data structures from the hashbrown crate.

Re-exported Modules:
All types, constants, and functions from the `bytecode`, `constants`, `env`, `log`, `precompile`, `result`, `specification`, `state`, `utilities`, `KzgSettings`, `EnvKzgSettings`, `trusted_setup_points` types and methods were all re-exported, allowing users to import these items directly from the `primitives` crate.
All types, constants, and functions from the `bytecode`, `constants`, `env`, `precompile`, `result`, `specification`, `state`, `utilities`, `KzgSettings`, `EnvKzgSettings`, `trusted_setup_points` types and methods were all re-exported, allowing users to import these items directly from the `primitives` crate.
2 changes: 2 additions & 0 deletions documentation/src/crates/primitives/log.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Log

> NOTE: This module's types have been replaced by [`alloy_primitives`](https://github.com/alloy-rs/core)'s `Log` and `LogData`.

This piece of Rust code defines a structure called Log which represents an Ethereum log entry. These logs are integral parts of the Ethereum network and are typically produced by smart contracts during execution. Each Log has three components:

- `address`: This field represents the address of the log originator, typically the smart contract that generated the log. The `Address` data type signifies a 160-bit Ethereum address.
Expand Down
Loading