MCPcopy Create free account
hub / github.com/base/base / ready

Method ready

etc/systems/src/devnet_cli.rs:186–199  ·  view source on GitHub ↗

Captures the ready endpoints and immutable boundary from a running stack.

(stack: &SnapshotL2Stack)

Source from the content-addressed store, hash-verified

184impl SnapshotRuntime {
185 /// Captures the ready endpoints and immutable boundary from a running stack.
186 pub fn ready(stack: &SnapshotL2Stack) -> Result<Self> {
187 let boundary = stack.boundary();
188 Ok(Self {
189 status: "ready",
190 chain_id: stack.chain_id(),
191 boundary_number: boundary.head.number,
192 boundary_hash: boundary.head.hash,
193 block_interval_ms: stack.block_interval().duration().as_millis() as u64,
194 block_gas_limit: stack.block_gas_limit(),
195 builder_rpc_url: stack.builder_rpc_url()?.to_string(),
196 builder_flashblocks_url: stack.builder_flashblocks_url()?.to_string(),
197 client_rpc_url: stack.client_rpc_url()?.to_string(),
198 })
199 }
200}
201
202#[cfg(test)]

Callers

nothing calls this directly

Calls 8

boundaryMethod · 0.80
block_intervalMethod · 0.80
builder_rpc_urlMethod · 0.80
chain_idMethod · 0.45
durationMethod · 0.45
block_gas_limitMethod · 0.45
client_rpc_urlMethod · 0.45

Tested by

no test coverage detected