refactor: rename some examples (#7881)

This commit is contained in:
Andrzej Sulkowski
2024-04-25 17:12:30 +02:00
committed by GitHub
parent 29e5df81a4
commit 1c81fae4d1
11 changed files with 67 additions and 67 deletions

102
Cargo.lock generated
View File

@ -2,19 +2,6 @@
# It is not intended for manual editing.
version = 3
[[package]]
name = "additional-rpc-namespace-in-cli"
version = "0.0.0"
dependencies = [
"clap",
"eyre",
"jsonrpsee",
"reth",
"reth-node-ethereum",
"reth-transaction-pool",
"tokio",
]
[[package]]
name = "addr2line"
version = "0.21.0"
@ -1564,14 +1551,6 @@ version = "0.7.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "98cc8fbded0c607b7ba9dd60cd98df59af97e84d24e49c8557331cfc26d301ce"
[[package]]
name = "cli-extension-event-hooks"
version = "0.0.0"
dependencies = [
"reth",
"reth-node-ethereum",
]
[[package]]
name = "coins-bip32"
version = "0.8.7"
@ -2009,6 +1988,26 @@ dependencies = [
"tokio",
]
[[package]]
name = "custom-engine-types"
version = "0.0.0"
dependencies = [
"eyre",
"reth",
"reth-basic-payload-builder",
"reth-ethereum-payload-builder",
"reth-node-api",
"reth-node-core",
"reth-node-ethereum",
"reth-payload-builder",
"reth-primitives",
"reth-rpc-types",
"reth-tracing",
"serde",
"thiserror",
"tokio",
]
[[package]]
name = "custom-evm"
version = "0.0.0"
@ -2033,26 +2032,6 @@ dependencies = [
"reth-node-ethereum",
]
[[package]]
name = "custom-node"
version = "0.0.0"
dependencies = [
"eyre",
"reth",
"reth-basic-payload-builder",
"reth-ethereum-payload-builder",
"reth-node-api",
"reth-node-core",
"reth-node-ethereum",
"reth-payload-builder",
"reth-primitives",
"reth-rpc-types",
"reth-tracing",
"serde",
"thiserror",
"tokio",
]
[[package]]
name = "custom-node-components"
version = "0.0.0"
@ -4904,6 +4883,27 @@ dependencies = [
"libc",
]
[[package]]
name = "node-custom-rpc"
version = "0.0.0"
dependencies = [
"clap",
"eyre",
"jsonrpsee",
"reth",
"reth-node-ethereum",
"reth-transaction-pool",
"tokio",
]
[[package]]
name = "node-event-hooks"
version = "0.0.0"
dependencies = [
"reth",
"reth-node-ethereum",
]
[[package]]
name = "nom"
version = "7.1.3"
@ -9277,16 +9277,6 @@ version = "0.3.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b6bc1c9ce2b5135ac7f93c72918fc37feb872bdc6a5533a8b85eb4b86bfdae52"
[[package]]
name = "trace-transaction-cli"
version = "0.0.0"
dependencies = [
"clap",
"futures-util",
"reth",
"reth-node-ethereum",
]
[[package]]
name = "tracing"
version = "0.1.40"
@ -9531,6 +9521,16 @@ dependencies = [
"toml",
]
[[package]]
name = "txpool-tracing"
version = "0.0.0"
dependencies = [
"clap",
"futures-util",
"reth",
"reth-node-ethereum",
]
[[package]]
name = "typenum"
version = "1.17.0"

View File

@ -71,17 +71,17 @@ members = [
"crates/trie/",
"crates/trie-parallel/",
"examples/",
"examples/additional-rpc-namespace-in-cli/",
"examples/node-custom-rpc/",
"examples/beacon-api-sse/",
"examples/cli-extension-event-hooks/",
"examples/node-event-hooks/",
"examples/custom-evm/",
"examples/custom-node/",
"examples/custom-engine-types/",
"examples/custom-node-components/",
"examples/custom-dev-node/",
"examples/custom-payload-builder/",
"examples/manual-p2p/",
"examples/rpc-db/",
"examples/trace-transaction-cli/",
"examples/txpool-tracing/",
"examples/polygon-p2p/",
"examples/custom-inspector/",
"examples/exex/minimal/",

View File

@ -11,13 +11,13 @@ to make a PR!
## Node Builder
| Example | Description |
| ------------------------------------------------------------- | ------------------------------------------------------------------------------------------------ |
| [Additional RPC namespace](./additional-rpc-namespace-in-cli) | Illustrates how to add custom CLI parameters and set up a custom RPC namespace |
| [Custom event hooks](./cli-extension-event-hooks) | Illustrates how to hook to various node lifecycle events |
|---------------------------------------------------------------| ------------------------------------------------------------------------------------------------ |
| [Additional RPC namespace](./node-custom-rpc) | Illustrates how to add custom CLI parameters and set up a custom RPC namespace |
| [Custom event hooks](./node-event-hooks) | Illustrates how to hook to various node lifecycle events |
| [Custom dev node](./custom-dev-node) | Illustrates how to run a custom dev node programmatically and submit a transaction to it via RPC |
| [Custom EVM](./custom-evm) | Illustrates how to implement a node with a custom EVM |
| [Custom inspector](./custom-inspector) | Illustrates how to use a custom EVM inspector to trace new transactions |
| [Custom node](./custom-node) | Illustrates how to create a node with custom engine types |
| [Custom engine types](./custom-engine-types) | Illustrates how to create a node with custom engine types |
| [Custom node components](./custom-node-components) | Illustrates how to configure custom node components |
| [Custom payload builder](./custom-payload-builder) | Illustrates how to use a custom payload builder |
@ -50,7 +50,7 @@ to make a PR!
| Example | Description |
| ----------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------- |
| [Trace pending transactions](./trace-transaction-cli) | Illustrates how to trace pending transactions as they arrive in the mempool |
| [Trace pending transactions](./txpool-tracing) | Illustrates how to trace pending transactions as they arrive in the mempool |
| [Standalone txpool](./network-txpool.rs) | Illustrates how to use the network as a standalone component together with a transaction pool with a custom pool validator |
## P2P

View File

@ -1,5 +1,5 @@
[package]
name = "custom-node"
name = "custom-engine-types"
version = "0.0.0"
publish = false
edition.workspace = true

View File

@ -1,5 +1,5 @@
[package]
name = "additional-rpc-namespace-in-cli"
name = "node-custom-rpc"
version = "0.0.0"
publish = false
edition.workspace = true

View File

@ -3,7 +3,7 @@
//! Run with
//!
//! ```not_rust
//! cargo run -p additional-rpc-namespace-in-cli -- node --http --ws --enable-ext
//! cargo run -p node-custom-rpc -- node --http --ws --enable-ext
//! ```
//!
//! This installs an additional RPC method `txpoolExt_transactionCount` that can be queried via [cast](https://github.com/foundry-rs/foundry)

View File

@ -1,5 +1,5 @@
[package]
name = "cli-extension-event-hooks"
name = "node-event-hooks"
version = "0.0.0"
publish = false
edition.workspace = true

View File

@ -4,7 +4,7 @@
//! Run with
//!
//! ```not_rust
//! cargo run -p cli-extension-event-hooks -- node
//! cargo run -p node-event-hooks -- node
//! ```
//!
//! This launch the regular reth node and also print:

View File

@ -1,5 +1,5 @@
[package]
name = "trace-transaction-cli"
name = "txpool-tracing"
version = "0.0.0"
publish = false
edition.workspace = true

View File

@ -3,7 +3,7 @@
//! Run with
//!
//! ```not_rust
//! cargo run --release -p trace-transaction-cli -- node --http --ws --recipients 0x....,0x....
//! cargo run --release -p txpool-tracing -- node --http --ws --recipients 0x....,0x....
//! ```
//!
//! If no recipients are specified, all transactions will be traced.