Skip to content
This repository was archived by the owner on Jan 12, 2026. It is now read-only.

Commit 36fac2f

Browse files
committed
feat(bundler): Add pool client interface and bundler orchestration (BA-3414)
- Add PoolClient trait for fetching UserOperations from mempool - Add Bundler struct that orchestrates pool fetching, gas tracking, and bundle building - Add NoOpPoolClient for when AA bundling is disabled - Update default gas threshold from 80% to 50% for middle-of-block bundles - Support both v0.6 (unpacked) and v0.7 (packed) UserOperation formats - Add entry point address constants TODO: Implement RemotePoolClient that connects to tips mempool service via RPC
1 parent c23522e commit 36fac2f

File tree

7 files changed

+641
-15
lines changed

7 files changed

+641
-15
lines changed

crates/op-rbuilder/src/args/op.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,10 +97,10 @@ pub struct OpRbuilderArgs {
9797
)]
9898
pub aa_gas_reserve_percentage: u8,
9999

100-
/// Threshold percentage of block gas before starting AA bundle reservation
100+
/// Threshold percentage of block gas before starting AA bundle creation (middle of block)
101101
#[arg(
102102
long = "aa.gas-threshold",
103-
default_value = "80",
103+
default_value = "30",
104104
env = "AA_GAS_THRESHOLD"
105105
)]
106106
pub aa_gas_threshold: u8,

crates/op-rbuilder/src/builders/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ impl<S: Default + Clone> Default for BuilderConfig<S> {
202202
enable_aa_bundler: false,
203203
aa_bundler_signer: None,
204204
aa_gas_reserve_percentage: 20,
205-
aa_gas_threshold: 80,
205+
aa_gas_threshold: 30,
206206
aa_pool_url: None,
207207
}
208208
}

0 commit comments

Comments
 (0)