mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 19:09:54 +00:00
refactor: rename some examples (#7881)
This commit is contained in:
committed by
GitHub
parent
29e5df81a4
commit
1c81fae4d1
102
Cargo.lock
generated
102
Cargo.lock
generated
@ -2,19 +2,6 @@
|
|||||||
# It is not intended for manual editing.
|
# It is not intended for manual editing.
|
||||||
version = 3
|
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]]
|
[[package]]
|
||||||
name = "addr2line"
|
name = "addr2line"
|
||||||
version = "0.21.0"
|
version = "0.21.0"
|
||||||
@ -1564,14 +1551,6 @@ version = "0.7.0"
|
|||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "98cc8fbded0c607b7ba9dd60cd98df59af97e84d24e49c8557331cfc26d301ce"
|
checksum = "98cc8fbded0c607b7ba9dd60cd98df59af97e84d24e49c8557331cfc26d301ce"
|
||||||
|
|
||||||
[[package]]
|
|
||||||
name = "cli-extension-event-hooks"
|
|
||||||
version = "0.0.0"
|
|
||||||
dependencies = [
|
|
||||||
"reth",
|
|
||||||
"reth-node-ethereum",
|
|
||||||
]
|
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "coins-bip32"
|
name = "coins-bip32"
|
||||||
version = "0.8.7"
|
version = "0.8.7"
|
||||||
@ -2009,6 +1988,26 @@ dependencies = [
|
|||||||
"tokio",
|
"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]]
|
[[package]]
|
||||||
name = "custom-evm"
|
name = "custom-evm"
|
||||||
version = "0.0.0"
|
version = "0.0.0"
|
||||||
@ -2033,26 +2032,6 @@ dependencies = [
|
|||||||
"reth-node-ethereum",
|
"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]]
|
[[package]]
|
||||||
name = "custom-node-components"
|
name = "custom-node-components"
|
||||||
version = "0.0.0"
|
version = "0.0.0"
|
||||||
@ -4904,6 +4883,27 @@ dependencies = [
|
|||||||
"libc",
|
"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]]
|
[[package]]
|
||||||
name = "nom"
|
name = "nom"
|
||||||
version = "7.1.3"
|
version = "7.1.3"
|
||||||
@ -9277,16 +9277,6 @@ version = "0.3.2"
|
|||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "b6bc1c9ce2b5135ac7f93c72918fc37feb872bdc6a5533a8b85eb4b86bfdae52"
|
checksum = "b6bc1c9ce2b5135ac7f93c72918fc37feb872bdc6a5533a8b85eb4b86bfdae52"
|
||||||
|
|
||||||
[[package]]
|
|
||||||
name = "trace-transaction-cli"
|
|
||||||
version = "0.0.0"
|
|
||||||
dependencies = [
|
|
||||||
"clap",
|
|
||||||
"futures-util",
|
|
||||||
"reth",
|
|
||||||
"reth-node-ethereum",
|
|
||||||
]
|
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "tracing"
|
name = "tracing"
|
||||||
version = "0.1.40"
|
version = "0.1.40"
|
||||||
@ -9531,6 +9521,16 @@ dependencies = [
|
|||||||
"toml",
|
"toml",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "txpool-tracing"
|
||||||
|
version = "0.0.0"
|
||||||
|
dependencies = [
|
||||||
|
"clap",
|
||||||
|
"futures-util",
|
||||||
|
"reth",
|
||||||
|
"reth-node-ethereum",
|
||||||
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "typenum"
|
name = "typenum"
|
||||||
version = "1.17.0"
|
version = "1.17.0"
|
||||||
|
|||||||
@ -71,17 +71,17 @@ members = [
|
|||||||
"crates/trie/",
|
"crates/trie/",
|
||||||
"crates/trie-parallel/",
|
"crates/trie-parallel/",
|
||||||
"examples/",
|
"examples/",
|
||||||
"examples/additional-rpc-namespace-in-cli/",
|
"examples/node-custom-rpc/",
|
||||||
"examples/beacon-api-sse/",
|
"examples/beacon-api-sse/",
|
||||||
"examples/cli-extension-event-hooks/",
|
"examples/node-event-hooks/",
|
||||||
"examples/custom-evm/",
|
"examples/custom-evm/",
|
||||||
"examples/custom-node/",
|
"examples/custom-engine-types/",
|
||||||
"examples/custom-node-components/",
|
"examples/custom-node-components/",
|
||||||
"examples/custom-dev-node/",
|
"examples/custom-dev-node/",
|
||||||
"examples/custom-payload-builder/",
|
"examples/custom-payload-builder/",
|
||||||
"examples/manual-p2p/",
|
"examples/manual-p2p/",
|
||||||
"examples/rpc-db/",
|
"examples/rpc-db/",
|
||||||
"examples/trace-transaction-cli/",
|
"examples/txpool-tracing/",
|
||||||
"examples/polygon-p2p/",
|
"examples/polygon-p2p/",
|
||||||
"examples/custom-inspector/",
|
"examples/custom-inspector/",
|
||||||
"examples/exex/minimal/",
|
"examples/exex/minimal/",
|
||||||
|
|||||||
@ -11,13 +11,13 @@ to make a PR!
|
|||||||
## Node Builder
|
## Node Builder
|
||||||
|
|
||||||
| Example | Description |
|
| Example | Description |
|
||||||
| ------------------------------------------------------------- | ------------------------------------------------------------------------------------------------ |
|
|---------------------------------------------------------------| ------------------------------------------------------------------------------------------------ |
|
||||||
| [Additional RPC namespace](./additional-rpc-namespace-in-cli) | Illustrates how to add custom CLI parameters and set up a custom RPC namespace |
|
| [Additional RPC namespace](./node-custom-rpc) | 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 |
|
| [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 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 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 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 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 |
|
| [Custom payload builder](./custom-payload-builder) | Illustrates how to use a custom payload builder |
|
||||||
|
|
||||||
@ -50,7 +50,7 @@ to make a PR!
|
|||||||
|
|
||||||
| Example | Description |
|
| 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 |
|
| [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
|
## P2P
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "custom-node"
|
name = "custom-engine-types"
|
||||||
version = "0.0.0"
|
version = "0.0.0"
|
||||||
publish = false
|
publish = false
|
||||||
edition.workspace = true
|
edition.workspace = true
|
||||||
@ -1,5 +1,5 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "additional-rpc-namespace-in-cli"
|
name = "node-custom-rpc"
|
||||||
version = "0.0.0"
|
version = "0.0.0"
|
||||||
publish = false
|
publish = false
|
||||||
edition.workspace = true
|
edition.workspace = true
|
||||||
@ -3,7 +3,7 @@
|
|||||||
//! Run with
|
//! Run with
|
||||||
//!
|
//!
|
||||||
//! ```not_rust
|
//! ```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)
|
//! This installs an additional RPC method `txpoolExt_transactionCount` that can be queried via [cast](https://github.com/foundry-rs/foundry)
|
||||||
@ -1,5 +1,5 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "cli-extension-event-hooks"
|
name = "node-event-hooks"
|
||||||
version = "0.0.0"
|
version = "0.0.0"
|
||||||
publish = false
|
publish = false
|
||||||
edition.workspace = true
|
edition.workspace = true
|
||||||
@ -4,7 +4,7 @@
|
|||||||
//! Run with
|
//! Run with
|
||||||
//!
|
//!
|
||||||
//! ```not_rust
|
//! ```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:
|
//! This launch the regular reth node and also print:
|
||||||
@ -1,5 +1,5 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "trace-transaction-cli"
|
name = "txpool-tracing"
|
||||||
version = "0.0.0"
|
version = "0.0.0"
|
||||||
publish = false
|
publish = false
|
||||||
edition.workspace = true
|
edition.workspace = true
|
||||||
@ -3,7 +3,7 @@
|
|||||||
//! Run with
|
//! Run with
|
||||||
//!
|
//!
|
||||||
//! ```not_rust
|
//! ```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.
|
//! If no recipients are specified, all transactions will be traced.
|
||||||
Reference in New Issue
Block a user