Skip to main content

Module arbitrum

Module arbitrum 

Source
Expand description

Minimal Arbitrum system contract compatibility helpers.

Constants§

ARB_BLOCK_NUMBER_GAS_COST
Gas Nitro charges inside ArbSys.arbBlockNumber(): opening the ArbOS state reads its version from storage (800, the EIP-2200 SLOAD cost), and copying the 32-byte result costs 3.
ARB_BLOCK_NUMBER_SELECTOR
ArbSys.arbBlockNumber() selector.
ARB_SYS_ADDRESS
ArbSys system contract address.

Statics§

PRECOMPILE_ID_ARB_SYS
ID for the ArbSys precompile.

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().
arb_sys_precompile
Returns an ArbSys precompile for the provided L2 block number.
arb_sys_precompile_call 🔒
is_arbitrum_chain
Returns whether chain_id is an Arbitrum chain.