Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(protocol): refactor tier providers and added minority-guardian provers to all providers #17169

Merged
merged 15 commits into from
May 15, 2024
Merged
16 changes: 14 additions & 2 deletions packages/protocol/contracts/L1/tiers/DevnetTierProvider.sol
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,17 @@ contract DevnetTierProvider is EssentialContract, ITierProvider {
});
}

if (_tierId == LibTiers.TIER_GUARDIAN_MINORITY) {
dantaik marked this conversation as resolved.
Show resolved Hide resolved
return ITierProvider.Tier({
verifierName: LibStrings.B_TIER_GUARDIAN_MINORITY,
validityBond: 500 ether, // TKO
contestBond: 3280 ether, // =500TKO * 6.5625
cooldownWindow: 60, //1 hours
davidtaikocha marked this conversation as resolved.
Show resolved Hide resolved
provingWindow: 2880, // 48 hours
maxBlocksToVerifyPerProof: 16
});
}

if (_tierId == LibTiers.TIER_GUARDIAN) {
return ITierProvider.Tier({
verifierName: LibStrings.B_TIER_GUARDIAN,
Expand All @@ -46,9 +57,10 @@ contract DevnetTierProvider is EssentialContract, ITierProvider {

/// @inheritdoc ITierProvider
function getTierIds() public pure override returns (uint16[] memory tiers_) {
tiers_ = new uint16[](2);
tiers_ = new uint16[](3);
tiers_[0] = LibTiers.TIER_OPTIMISTIC;
tiers_[1] = LibTiers.TIER_GUARDIAN;
tiers_[1] = LibTiers.TIER_GUARDIAN_MINORITY;
tiers_[2] = LibTiers.TIER_GUARDIAN;
}

/// @inheritdoc ITierProvider
Expand Down