-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(protocol)!: enforce naming convention (#16168)
Co-authored-by: d1onys1us <[email protected]>
- Loading branch information
Showing
64 changed files
with
1,902 additions
and
1,837 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,31 +7,28 @@ import "./TaikoData.sol"; | |
/// @custom:security-contact [email protected] | ||
interface ITaikoL1 { | ||
/// @notice Proposes a Taiko L2 block. | ||
/// @param params Block parameters, currently an encoded BlockParams object. | ||
/// @param txList txList data if calldata is used for DA. | ||
/// @return meta The metadata of the proposed L2 block. | ||
/// @return depositsProcessed The Ether deposits processed. | ||
/// @param _params Block parameters, currently an encoded BlockParams object. | ||
/// @param _txList txList data if calldata is used for DA. | ||
/// @return meta_ The metadata of the proposed L2 block. | ||
/// @return deposits_ The Ether deposits processed. | ||
function proposeBlock( | ||
bytes calldata params, | ||
bytes calldata txList | ||
bytes calldata _params, | ||
bytes calldata _txList | ||
) | ||
external | ||
payable | ||
returns ( | ||
TaikoData.BlockMetadata memory meta, | ||
TaikoData.EthDeposit[] memory depositsProcessed | ||
); | ||
returns (TaikoData.BlockMetadata memory meta_, TaikoData.EthDeposit[] memory deposits_); | ||
|
||
/// @notice Proves or contests a block transition. | ||
/// @param blockId The index of the block to prove. This is also used to | ||
/// @param _blockId The index of the block to prove. This is also used to | ||
/// select the right implementation version. | ||
/// @param input An abi-encoded (BlockMetadata, Transition, TierProof) | ||
/// tuple. | ||
function proveBlock(uint64 blockId, bytes calldata input) external; | ||
/// @param _input An abi-encoded (TaikoData.BlockMetadata, TaikoData.Transition, | ||
/// TaikoData.TierProof) tuple. | ||
function proveBlock(uint64 _blockId, bytes calldata _input) external; | ||
|
||
/// @notice Verifies up to a certain number of blocks. | ||
/// @param maxBlocksToVerify Max number of blocks to verify. | ||
function verifyBlocks(uint64 maxBlocksToVerify) external; | ||
/// @param _maxBlocksToVerify Max number of blocks to verify. | ||
function verifyBlocks(uint64 _maxBlocksToVerify) external; | ||
|
||
/// @notice Gets the configuration of the TaikoL1 contract. | ||
/// @return Config struct containing configuration parameters. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.