diff --git a/packages/protocol/contracts/L1/TaikoEvents.sol b/packages/protocol/contracts/L1/TaikoEvents.sol index 618b0f9f22..4259ae8361 100644 --- a/packages/protocol/contracts/L1/TaikoEvents.sol +++ b/packages/protocol/contracts/L1/TaikoEvents.sol @@ -26,6 +26,11 @@ abstract contract TaikoEvents { TaikoData.EthDeposit[] depositsProcessed ); + /// @notice Emitted when a block's txList is in the calldata. + /// @param blockId The ID of the proposed block. + /// @param txList The txList. + event CalldataTxList(uint256 indexed blockId, bytes txList); + /// @dev Emitted when a block is verified. /// @param blockId The ID of the verified block. /// @param prover The prover whose transition is used for verifying the diff --git a/packages/protocol/contracts/L1/libs/LibProposing.sol b/packages/protocol/contracts/L1/libs/LibProposing.sol index 10c36e0bd5..db07f7c34d 100644 --- a/packages/protocol/contracts/L1/libs/LibProposing.sol +++ b/packages/protocol/contracts/L1/libs/LibProposing.sol @@ -32,6 +32,11 @@ library LibProposing { TaikoData.EthDeposit[] depositsProcessed ); + /// @notice Emitted when a block's txList is in the calldata. + /// @param blockId The ID of the proposed block. + /// @param txList The txList. + event CalldataTxList(uint256 indexed blockId, bytes txList); + // Warning: Any errors defined here must also be defined in TaikoErrors.sol. error L1_BLOB_NOT_AVAILABLE(); error L1_BLOB_NOT_FOUND(); @@ -130,6 +135,8 @@ library LibProposing { ) { revert L1_INVALID_SIG(); } + + emit CalldataTxList(meta_.id, _txList); } // Following the Merge, the L1 mixHash incorporates the