Skip to content

Commit

Permalink
feat(protocol): emit CalldataTxList when calldata is used for DA (#17657
Browse files Browse the repository at this point in the history
)
  • Loading branch information
dantaik authored Jun 24, 2024
1 parent d461fed commit f49aae8
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/protocol/contracts/L1/TaikoEvents.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
7 changes: 7 additions & 0 deletions packages/protocol/contracts/L1/libs/LibProposing.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down Expand Up @@ -130,6 +135,8 @@ library LibProposing {
) {
revert L1_INVALID_SIG();
}

emit CalldataTxList(meta_.id, _txList);
}

// Following the Merge, the L1 mixHash incorporates the
Expand Down

0 comments on commit f49aae8

Please sign in to comment.