Module tx_processor

Module tx_processor 

Source

Structs§

EndTxFeeDistribution
Fee distribution result from end-tx hook (normal transactions).
EndTxNormalParams
Parameters for end-tx fee distribution (normal transactions).
EndTxRetryableParams
Parameters for end-tx hook (retryable transactions).
EndTxRetryableResult
Result from end-tx retryable hook.
GasChargingParams
Parameters for the gas charging hook.
SubmitRetryableFees
Computed fee distribution for a submit retryable transaction.
SubmitRetryableParams
Parameters for computing submit retryable fees.
TxProcessor
Per-transaction state for processing Arbitrum transactions.

Enums§

GasChargingError
Error from gas charging.
RevertedTxAction
Action to take for a reverted/filtered transaction.

Constants§

ARBOS_ADDRESS
ArbOS system address (0x00000000000000000000000000000000000a4b05).
GAS_ESTIMATION_L1_PRICE_PADDING_BIPS
Padding applied to L1 gas price estimates for safety margin (110% = 11000 bips).
TX_GAS
Standard Ethereum base transaction gas.

Functions§

compute_poster_gas
Compute poster gas given a poster cost and base fee, with optional gas estimation padding.
compute_retryable_gas_split
Compute the gas payment split between infra and network fee accounts.
compute_submit_retryable_fees
Compute fees for a submit retryable transaction.
get_poster_gas
Calculates the poster gas cost for a transaction’s calldata.
take_funds
Attempts to subtract up to take from pool without going negative. Returns the amount actually subtracted.