- nu-block: TxPayload enum with all variants (user + auto/scheduler) - nu-mempool: PendingTx wraps RawTransaction; priority derived from TxPayload - nu-rpc: nu_sendRawTx decodes JSON tx, deduplicates, inserts into mempool - AppState: holds Arc<Mutex<Mempool>> alongside StateDb - main.rs: initializes mempool and passes to RpcServer Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
16 lines
422 B
TOML
16 lines
422 B
TOML
[package]
|
|
name = "nu-rpc"
|
|
version = "0.1.0"
|
|
edition = "2021"
|
|
|
|
[dependencies]
|
|
tokio.workspace = true
|
|
serde.workspace = true
|
|
serde_json.workspace = true
|
|
anyhow.workspace = true
|
|
tracing.workspace = true
|
|
axum.workspace = true
|
|
chrono.workspace = true
|
|
nu-state = { path = "../nu-state" }
|
|
nu-mempool = { path = "../nu-mempool" }
|
|
nu-block = { path = "../nu-block" }
|