Skip to content

Commit

Permalink
fixed pnpm-lock.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
bearni95 committed May 14, 2024
1 parent 9b0a70d commit ef610b4
Show file tree
Hide file tree
Showing 12 changed files with 198 additions and 337 deletions.
4 changes: 0 additions & 4 deletions packages/protocol/contracts/L1/provers/GuardianProver.sol
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,6 @@ contract GuardianProver is IVerifier, Guardians {
nonReentrant
returns (bool approved_)
{
if (_proof.tier != LibTiers.TIER_GUARDIAN) {
revert INVALID_PROOF();
}

bytes32 hash = keccak256(abi.encode(_meta, _tran, _proof.data));
approved_ = approve(_meta.id, hash);

Expand Down
1 change: 0 additions & 1 deletion packages/protocol/contracts/L1/provers/Guardians.sol
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ abstract contract Guardians is EssentialContract {
error INVALID_GUARDIAN();
error INVALID_GUARDIAN_SET();
error INVALID_MIN_GUARDIANS();
error INVALID_PROOF();

/// @notice Set the set of guardians
/// @param _newGuardians The new set of guardians
Expand Down
6 changes: 2 additions & 4 deletions packages/protocol/contracts/L1/tiers/HeklaTierProvider.sol
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,7 @@ contract HeklaTierProvider is EssentialContract, ITierProvider {

/// @inheritdoc ITierProvider
function getMinTier(uint256 _rand) public pure override returns (uint16) {
// 50% will be selected to require SGX proofs.
if (_rand % 2 == 0) return LibTiers.TIER_SGX;
// Other blocks are optimistic, without validity proofs.
return LibTiers.TIER_OPTIMISTIC;
// All blocks require SGX proofs.
return LibTiers.TIER_SGX;
}
}
7 changes: 7 additions & 0 deletions packages/protocol/contracts/bridge/IQuotaManager.sol
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,13 @@ pragma solidity 0.8.24;
interface IQuotaManager {
/// @notice Consumes a specific amount of quota for a given address.
/// This function must revert if available quota is smaller than the given amount of quota.
///
/// @dev Note that IQuotaManager is used by vaults and bridge, and should be registered in a
/// shared address manager on the L1, therefore, a registered IQuotaManager and its per-token
/// quota settings will be shared by all Taiko L2s. To enable a per-L2 quota, we need to modify
/// this function to:
/// `function consumeQuota(uint256 _srcChainId, address _token, uint256 _amount) `
///
/// @param _token The token address. Ether is represented with address(0).
/// @param _amount The amount of quota to consume.
function consumeQuota(address _token, uint256 _amount) external;
Expand Down
4 changes: 2 additions & 2 deletions packages/protocol/deployments/hekla-contract-logs.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,9 @@

### tierProvider

- impl: `0x02932D1c8C9EBf283aA809E7591A070c82b1696D`
- impl: `0x750D885DCAB712bA808D66D934CF315D0D98d04c.`
- logs:
- upgraded on May 10, 2024 at commit `4903bec`
- upgraded on May 14, 2024 at commit `0ef7b8caa`

### guardian_prover_minority

Expand Down
Loading

0 comments on commit ef610b4

Please sign in to comment.