arb_precompiles/
arbbls.rs

1use alloy_evm::precompiles::{DynPrecompile, PrecompileInput};
2use alloy_primitives::Address;
3use revm::precompile::{PrecompileError, PrecompileId, PrecompileResult};
4
5/// ArbBLS precompile address (0x67).
6pub const ARBBLS_ADDRESS: Address = Address::new([
7    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
8    0x00, 0x00, 0x00, 0x67,
9]);
10
11pub fn create_arbbls_precompile() -> DynPrecompile {
12    DynPrecompile::new_stateful(PrecompileId::custom("arbbls"), handler)
13}
14
15fn handler(_input: PrecompileInput<'_>) -> PrecompileResult {
16    // ArbBLS is a deprecated precompile with no methods.
17    Err(PrecompileError::other("unknown ArbBLS selector"))
18}