Expand description
Minimal Arbitrum system contract compatibility helpers.
Re-exportsยง
use alloy_chains::Chain;๐use alloy_primitives::Address;๐use alloy_primitives::Bytes;๐use alloy_primitives::U256;๐use alloy_primitives::hex;๐use alloy_primitives::hex;๐
Constantsยง
- ARBITRUM_
INTERNAL_ TX_ TYPE - Transaction type of ArbOS internal transactions, such as the
StartBlocktransaction that opens every block. - ARB_
BLOCK_ NUMBER_ GAS_ COST - Gas Nitro charges inside
ArbSys.arbBlockNumber(): opening the ArbOS state reads its version from storage (800, the EIP-2200SLOADcost), and copying the 32-byte result costs 3. - ARB_
BLOCK_ NUMBER_ SELECTOR ArbSys.arbBlockNumber()selector.- ARB_
SYS_ ADDRESS - ArbSys system contract address.
Functionsยง
- arb_
block_ number_ call - Returns the gas cost and ABI-encoded result for
ArbSys.arbBlockNumber(). - arb_
block_ number_ output - Returns the ABI-encoded result for
ArbSys.arbBlockNumber(). - is_
arbitrum_ chain - Returns whether
chain_idis an Arbitrum chain.