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.
feat(protocol): allow a 4 hour grace period to defer proof submission (…
- Loading branch information
Showing
3 changed files
with
54 additions
and
9 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
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,6 +7,13 @@ import "./ITierProvider.sol"; | |
/// @title TierProviderBase | ||
/// @custom:security-contact [email protected] | ||
abstract contract TierProviderBase is ITierProvider { | ||
/// @dev Grace period for block proving service. | ||
/// @notice This constant defines the time window (in minutes) during which the block proving | ||
/// service may be paused if gas prices are excessively high. Since block proving is | ||
/// asynchronous, this grace period allows provers to defer submissions until gas | ||
/// prices become more favorable, potentially reducing transaction costs. | ||
uint16 public constant GRACE_PERIOD = 240; // 4 hours | ||
|
||
/// @inheritdoc ITierProvider | ||
function getTier(uint16 _tierId) | ||
public | ||
|
@@ -21,7 +28,7 @@ abstract contract TierProviderBase is ITierProvider { | |
validityBond: 125 ether, // TKO | ||
contestBond: 250 ether, // TKO | ||
cooldownWindow: 1440, //24 hours | ||
provingWindow: 15, // 15 minutes | ||
provingWindow: GRACE_PERIOD + 15, // 15 minutes | ||
maxBlocksToVerifyPerProof: 0 | ||
}); | ||
} | ||
|
@@ -32,7 +39,7 @@ abstract contract TierProviderBase is ITierProvider { | |
validityBond: 125 ether, // TKO | ||
contestBond: 820 ether, // =250TKO * 6.5625 | ||
cooldownWindow: 1440, //24 hours | ||
provingWindow: 60, // 1 hours | ||
provingWindow: GRACE_PERIOD + 60, // 1 hours | ||
maxBlocksToVerifyPerProof: 0 | ||
}); | ||
} | ||
|
@@ -43,7 +50,7 @@ abstract contract TierProviderBase is ITierProvider { | |
validityBond: 125 ether, // TKO | ||
contestBond: 820 ether, // =250TKO * 6.5625 | ||
cooldownWindow: 1440, //24 hours | ||
provingWindow: 60, // 1 hours | ||
provingWindow: GRACE_PERIOD + 60, // 1 hours | ||
maxBlocksToVerifyPerProof: 0 | ||
}); | ||
} | ||
|
@@ -54,7 +61,7 @@ abstract contract TierProviderBase is ITierProvider { | |
validityBond: 250 ether, // TKO | ||
contestBond: 1640 ether, // =500TKO * 6.5625 | ||
cooldownWindow: 1440, //24 hours | ||
provingWindow: 240, // 4 hours | ||
provingWindow: GRACE_PERIOD + 240, // 4 hours | ||
maxBlocksToVerifyPerProof: 0 | ||
}); | ||
} | ||
|
@@ -64,7 +71,7 @@ abstract contract TierProviderBase is ITierProvider { | |
verifierName: LibStrings.B_TIER_GUARDIAN_MINORITY, | ||
validityBond: 250 ether, // TKO | ||
contestBond: 1640 ether, // =500TKO * 6.5625 | ||
cooldownWindow: 240, // 4 hours | ||
cooldownWindow: GRACE_PERIOD + 240, // 4 hours | ||
provingWindow: 2880, // 48 hours | ||
maxBlocksToVerifyPerProof: 0 | ||
}); | ||
|
@@ -76,7 +83,7 @@ abstract contract TierProviderBase is ITierProvider { | |
validityBond: 0, // must be 0 for top tier | ||
contestBond: 0, // must be 0 for top tier | ||
cooldownWindow: 1440, // 24 hours | ||
provingWindow: 2880, // 48 hours | ||
provingWindow: GRACE_PERIOD + 2880, // 48 hours | ||
maxBlocksToVerifyPerProof: 0 | ||
}); | ||
} | ||
|