pub fn compute_l1_gas_for_estimate(
chain_id: ChainId,
to: Address,
contract_creation: bool,
value: U256,
data: Bytes,
l1_price: U256,
basefee: U256,
min_basefee: U256,
brotli_level: u64,
) -> u64Expand description
L1 gas estimate: brotli-compress a fake EIP-1559 tx, pad units by
(units + 256) * 1.01, multiply by pricePerUnit, pad posterCost by
1.10, then divide by max(basefee * 7/8, minBaseFee).