Docs
Reference
Contract documentation
L1
TaikoEvents

TaikoEvents

This abstract contract provides event declarations for the Taiko protocol, which are emitted during block proposal, proof, verification, and Ethereum deposit processes.

The events defined here must match the definitions in the corresponding L1 libraries.

BlockProposed

event BlockProposed(uint256 blockId, address prover, uint256 reward, struct TaikoData.BlockMetadata meta)

Emitted when a block is proposed.

Parameters

NameTypeDescription
blockIduint256The ID of the proposed block.
proveraddressThe address of the assigned prover for the block.
rewarduint256The proposer's block reward in Taiko token.
metastruct TaikoData.BlockMetadataThe block metadata containing information about the proposed block.

BlockProven

event BlockProven(uint256 blockId, bytes32 parentHash, bytes32 blockHash, bytes32 signalRoot, address prover)

Emitted when a block is proven.

Parameters

NameTypeDescription
blockIduint256The ID of the proven block.
parentHashbytes32The hash of the parent block.
blockHashbytes32The hash of the proven block.
signalRootbytes32The signal root of the proven block.
proveraddressThe address of the prover who submitted the proof.

BlockVerified

event BlockVerified(uint256 blockId, address prover, bytes32 blockHash)

Emitted when a block is verified.

Parameters

NameTypeDescription
blockIduint256The ID of the verified block.
proveraddressThe address of the prover that proved the block which is verified.
blockHashbytes32The hash of the verified block.

EthDeposited

event EthDeposited(struct TaikoData.EthDeposit deposit)

Emitted when an Ethereum deposit is made.

Parameters

NameTypeDescription
depositstruct TaikoData.EthDepositThe Ethereum deposit information including recipient, amount, and ID.

BondReceived

event BondReceived(address from, uint64 blockId, uint256 bond)

The following events are emitted when bonds are received, returned, or rewarded. Note that no event is emitted when a bond is kept/burnt as for a single block, multiple bonds may get burned or retained by the protocol, emitting events will consume more gas.

BondReturned

event BondReturned(address to, uint64 blockId, uint256 bond)

BondRewarded

event BondRewarded(address to, uint64 blockId, uint256 bond)