alloy_node_bindings/
lib.rs1#![doc = include_str!("../README.md")]
2#![doc(
3 html_logo_url = "https://raw.githubusercontent.com/alloy-rs/core/main/assets/alloy.jpg",
4 html_favicon_url = "https://raw.githubusercontent.com/alloy-rs/core/main/assets/favicon.ico"
5)]
6#![cfg_attr(not(test), warn(unused_crate_dependencies))]
7#![cfg_attr(docsrs, feature(doc_cfg, doc_auto_cfg))]
8
9#[macro_use]
10extern crate tracing;
11
12use alloy_primitives::U256;
13
14pub mod nodes;
15pub use nodes::{
16 anvil::{self, Anvil, AnvilInstance},
17 geth::{self, Geth, GethInstance},
18 reth::{self, Reth, RethInstance},
19};
20
21mod node;
22pub use node::*;
23
24pub mod utils;
25
26pub const WEI_IN_ETHER: U256 = U256::from_limbs([0x0de0b6b3a7640000, 0x0, 0x0, 0x0]);
28
29pub const EIP1559_FEE_ESTIMATION_PAST_BLOCKS: u64 = 10;
31
32pub const EIP1559_FEE_ESTIMATION_REWARD_PERCENTILE: f64 = 5.0;
34
35pub const EIP1559_FEE_ESTIMATION_DEFAULT_PRIORITY_FEE: u64 = 3_000_000_000;
37
38pub const EIP1559_FEE_ESTIMATION_PRIORITY_FEE_TRIGGER: u64 = 100_000_000_000;
41
42pub const EIP1559_FEE_ESTIMATION_THRESHOLD_MAX_CHANGE: i64 = 200;