pub struct BlockchainPreflightReport {Show 13 fields
pub expected_chain_id: u64,
pub actual_chain_id: u64,
pub chain_id_matches: bool,
pub pool: PoolPreflightCheck,
pub routers: Vec<ContractCodeCheck>,
pub tokens: Vec<TokenPreflightCheck>,
pub native_balance_wei: U256,
pub base_fee_per_gas_wei: u128,
pub max_priority_fee_per_gas_wei: u128,
pub derived_max_fee_per_gas_wei: u128,
pub fee_within_ceiling: bool,
pub ready: bool,
pub issues: Vec<String>,
}Expand description
Structured, sanitized result of an execution preflight.
Contains no RPC URLs, keys, or raw signed transactions.
Fields§
§expected_chain_id: u64The configured expected chain ID.
actual_chain_id: u64The chain ID reported by the RPC node.
chain_id_matches: boolWhether the reported chain ID matches the configuration.
pool: PoolPreflightCheckThe pool check.
routers: Vec<ContractCodeCheck>Deployed-bytecode checks for each allowlisted router.
tokens: Vec<TokenPreflightCheck>Checks for the pool’s base and quote tokens.
native_balance_wei: U256The wallet’s raw native currency balance in wei.
base_fee_per_gas_wei: u128The latest base fee per gas in wei.
max_priority_fee_per_gas_wei: u128The node’s suggested max priority fee per gas in wei.
derived_max_fee_per_gas_wei: u128The derived max fee per gas in wei after the configured base fee buffer.
fee_within_ceiling: boolWhether the derived max fee is within the configured ceiling.
ready: boolWhether every check passed and the wallet is ready for execution operations.
issues: Vec<String>Human-readable descriptions of every failed check.
Implementations§
Source§impl BlockchainPreflightReport
impl BlockchainPreflightReport
Sourcepub fn new(
expected_chain_id: u64,
actual_chain_id: u64,
pool: PoolPreflightCheck,
routers: Vec<ContractCodeCheck>,
tokens: Vec<TokenPreflightCheck>,
native_balance_wei: U256,
base_fee_per_gas_wei: u128,
max_priority_fee_per_gas_wei: u128,
derived_max_fee_per_gas_wei: u128,
max_fee_per_gas_wei: u128,
) -> Self
pub fn new( expected_chain_id: u64, actual_chain_id: u64, pool: PoolPreflightCheck, routers: Vec<ContractCodeCheck>, tokens: Vec<TokenPreflightCheck>, native_balance_wei: U256, base_fee_per_gas_wei: u128, max_priority_fee_per_gas_wei: u128, derived_max_fee_per_gas_wei: u128, max_fee_per_gas_wei: u128, ) -> Self
Builds a report from preflight check inputs, deriving ready and issues.
Trait Implementations§
Source§impl Clone for BlockchainPreflightReport
impl Clone for BlockchainPreflightReport
Source§fn clone(&self) -> BlockchainPreflightReport
fn clone(&self) -> BlockchainPreflightReport
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl Freeze for BlockchainPreflightReport
impl RefUnwindSafe for BlockchainPreflightReport
impl Send for BlockchainPreflightReport
impl Sync for BlockchainPreflightReport
impl Unpin for BlockchainPreflightReport
impl UnsafeUnpin for BlockchainPreflightReport
impl UnwindSafe for BlockchainPreflightReport
Blanket Implementations§
impl<T> Allocation for T
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more