Skip to content

Commit

Permalink
Revert "feat(protocol): temporary change the conf in devnet"
Browse files Browse the repository at this point in the history
This reverts commit 1b68a41.
  • Loading branch information
YoGhurt111 committed Jul 22, 2024
1 parent 2ec881c commit dc0dec5
Showing 1 changed file with 2 additions and 39 deletions.
41 changes: 2 additions & 39 deletions packages/protocol/contracts/L1/tiers/DevnetTierProvider.sol
Original file line number Diff line number Diff line change
Expand Up @@ -12,53 +12,16 @@ contract DevnetTierProvider is TierProviderBase, ITierRouter {
return address(this);
}

function getTier(uint16 _tierId) public pure override returns (ITierProvider.Tier memory) {
if (_tierId == LibTiers.TIER_SGX_ZKVM) {
return ITierProvider.Tier({
verifierName: LibStrings.B_TIER_SGX_ZKVM,
validityBond: 250 ether, // TKO
contestBond: 1640 ether, // =500TKO * 6.5625
cooldownWindow: 1440, //24 hours
provingWindow: 240, // 4 hours
maxBlocksToVerifyPerProof: 0
});
}

if (_tierId == LibTiers.TIER_GUARDIAN_MINORITY) {
return ITierProvider.Tier({
verifierName: LibStrings.B_TIER_GUARDIAN_MINORITY,
validityBond: 250 ether, // TKO
contestBond: 1640 ether, // =500TKO * 6.5625
cooldownWindow: 240, // 4 hours
provingWindow: 2880, // 48 hours
maxBlocksToVerifyPerProof: 0
});
}

if (_tierId == LibTiers.TIER_GUARDIAN) {
return ITierProvider.Tier({
verifierName: LibStrings.B_TIER_GUARDIAN,
validityBond: 0, // must be 0 for top tier
contestBond: 0, // must be 0 for top tier
cooldownWindow: 60, //1 hours
provingWindow: 2880, // 48 hours
maxBlocksToVerifyPerProof: 0
});
}

revert TIER_NOT_FOUND();
}

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

/// @inheritdoc ITierProvider
function getMinTier(uint256) public pure override returns (uint16) {
return LibTiers.TIER_SGX_ZKVM;
return LibTiers.TIER_OPTIMISTIC;
}
}

0 comments on commit dc0dec5

Please sign in to comment.