forked from taikoxyz/taiko-mono
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs(protocol,repo): add missing docstrings (taikoxyz#16184)
Co-authored-by: Daniel Wang <[email protected]> Co-authored-by: Daniel Wang <[email protected]>
- Loading branch information
1 parent
1d15f2b
commit 803b8b2
Showing
43 changed files
with
630 additions
and
84 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
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 |
---|---|---|
|
@@ -20,7 +20,9 @@ import "./TaikoEvents.sol"; | |
/// @dev Labeled in AddressResolver as "taiko" | ||
/// @custom:security-contact [email protected] | ||
contract TaikoL1 is EssentialContract, ITaikoL1, TaikoEvents, TaikoErrors { | ||
/// @notice The TaikoL1 state. | ||
TaikoData.State public state; | ||
|
||
uint256[50] private __gap; | ||
|
||
modifier whenProvingNotPaused() { | ||
|
@@ -121,6 +123,7 @@ contract TaikoL1 is EssentialContract, ITaikoL1, TaikoEvents, TaikoErrors { | |
LibDepositing.depositEtherToL2(state, getConfig(), this, recipient); | ||
} | ||
|
||
/// @inheritdoc EssentialContract | ||
function unpause() public override { | ||
super.unpause(); // permission checked inside | ||
state.slotB.lastUnpausedAt = uint64(block.timestamp); | ||
|
@@ -133,6 +136,7 @@ contract TaikoL1 is EssentialContract, ITaikoL1, TaikoEvents, TaikoErrors { | |
return LibDepositing.canDepositEthToL2(state, getConfig(), amount); | ||
} | ||
|
||
/// @notice See {LibProposing-isBlobReusable}. | ||
function isBlobReusable(bytes32 blobHash) public view returns (bool) { | ||
return LibProposing.isBlobReusable(state, getConfig(), blobHash); | ||
} | ||
|
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
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 |
---|---|---|
|
@@ -6,6 +6,10 @@ import "../TaikoData.sol"; | |
/// @title IHook | ||
/// @custom:security-contact [email protected] | ||
interface IHook { | ||
/// @notice Called when a block is proposed. | ||
/// @param blk The proposed block. | ||
/// @param meta The metadata of the proposed block. | ||
/// @param data The data of the proposed block. | ||
function onBlockProposed( | ||
TaikoData.Block memory blk, | ||
TaikoData.BlockMetadata memory meta, | ||
|
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
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
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.