Skip to main content

Module arbitrum

Module arbitrum 

Source
Expand description

Minimal Arbitrum system contract compatibility helpers.

Constants§

ARB_BLOCK_NUMBER_GAS_COST
Gas charged by Nitro for returning the 32-byte arbBlockNumber() result.
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.