op_alloy_protocol::deposits

Function decode_deposit

Source
pub fn decode_deposit(
    block_hash: B256,
    index: usize,
    log: &Log,
) -> Result<Bytes, DepositError>
Expand description

Derives a deposit transaction from an EVM log event emitted by the deposit contract.

The emitted log must be in format:

event TransactionDeposited(
   address indexed from,
   address indexed to,
   uint256 indexed version,
   bytes opaqueData
);