-
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.
- Loading branch information
Showing
2 changed files
with
28 additions
and
2 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 |
---|---|---|
|
@@ -15,6 +15,30 @@ import "./ITaikoInbox.sol"; | |
import "./IForcedInclusionStore.sol"; | ||
|
||
/// @title TaikoInboxWithForcedTxInclusion | ||
/// @dev This contract is part of a delayed inbox implementation to enforce the inclusion of | ||
/// transactions. | ||
/// The current design is a simplified and can be improved with the following ideas: | ||
/// 1. **Fee-Based Request Prioritization**: | ||
/// - Proposers can selectively fulfill pending requests based on transaction fees. | ||
/// - Requests not yet due can be processed earlier if fees are attractive, incentivizing timely | ||
/// execution. | ||
/// | ||
/// 2. **Rate Limit Control**: | ||
/// - A rate-limiting mechanism ensures a minimum interval of 12*N seconds between request | ||
/// fulfillments. | ||
/// - Prevents proposers from being overwhelmed during high request volume, ensuring system | ||
/// stability. | ||
/// | ||
/// 3. **Calldata and Blob Support**: | ||
/// - Supports both calldata and blobs in the transaction list. | ||
/// | ||
/// 4. **Gas-Efficient Request Storage**: | ||
/// - Avoids storing full request data in contract storage. | ||
/// - Saves only the request hash and its timestamp. | ||
/// - Leverages Ethereum events to store request details off-chain. | ||
/// - Proposers can reconstruct requests as needed, minimizing on-chain storage and gas | ||
/// consumption. | ||
/// | ||
/// @custom:security-contact [email protected] | ||
contract TaikoInboxWithForcedTxInclusion is EssentialContract { | ||
using LibAddress for address; | ||
|