Skip to content

Commit

Permalink
Merge pull request ethereum-optimism#7990 from ethereum-optimism/ctb/…
Browse files Browse the repository at this point in the history
…delete-dead-checkbalancehigh

contracts-bedrock: delete `CheckBalanceHigh` dripcheck
  • Loading branch information
tynes authored Nov 1, 2023
2 parents 2aad178 + 258dc4c commit 518b4af
Show file tree
Hide file tree
Showing 6 changed files with 3 additions and 89 deletions.
2 changes: 1 addition & 1 deletion op-bindings/bindings/mips_more.go

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion op-bindings/bindings/preimageoracle_more.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

21 changes: 0 additions & 21 deletions packages/contracts-bedrock/scripts/DeployPeriphery.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import { Proxy } from "src/universal/Proxy.sol";
import { Faucet } from "src/periphery/faucet/Faucet.sol";
import { Drippie } from "src/periphery/drippie/Drippie.sol";
import { CheckGelatoLow } from "src/periphery/drippie/dripchecks/CheckGelatoLow.sol";
import { CheckBalanceHigh } from "src/periphery/drippie/dripchecks/CheckBalanceHigh.sol";
import { CheckBalanceLow } from "src/periphery/drippie/dripchecks/CheckBalanceLow.sol";
import { CheckTrue } from "src/periphery/drippie/dripchecks/CheckTrue.sol";
import { AdminFaucetAuthModule } from "src/periphery/faucet/authmodules/AdminFaucetAuthModule.sol";
Expand Down Expand Up @@ -62,7 +61,6 @@ contract DeployPeriphery is Deployer {
deployFaucetDrippie();
deployCheckTrue();
deployCheckBalanceLow();
deployCheckBalanceHigh();
deployCheckGelatoLow();
deployOnChainAuthModule();
deployOffChainAuthModule();
Expand Down Expand Up @@ -199,25 +197,6 @@ contract DeployPeriphery is Deployer {
}
}

/// @notice Deploy CheckBalanceHigh contract.
function deployCheckBalanceHigh() public broadcast returns (address addr_) {
bytes32 salt = keccak256(bytes("CheckBalanceHigh"));
bytes32 initCodeHash = keccak256(abi.encodePacked(type(CheckBalanceHigh).creationCode));
address preComputedAddress = computeCreate2Address(salt, initCodeHash);
if (preComputedAddress.code.length > 0) {
console.log("CheckBalanceHigh already deployed at %s", preComputedAddress);
save("CheckBalanceHigh", preComputedAddress);
addr_ = preComputedAddress;
} else {
CheckBalanceHigh checkBalanceHigh = new CheckBalanceHigh{ salt: salt }();

save("CheckBalanceHigh", address(checkBalanceHigh));
console.log("CheckBalanceHigh deployed at %s", address(checkBalanceHigh));

addr_ = address(checkBalanceHigh);
}
}

/// @notice Deploy CheckGelatoLow contract.
function deployCheckGelatoLow() public broadcast returns (address addr_) {
bytes32 salt = keccak256(bytes("CheckGelatoLow"));
Expand Down

This file was deleted.

40 changes: 0 additions & 40 deletions packages/contracts-bedrock/test/CheckBalanceHigh.t.sol

This file was deleted.

2 changes: 1 addition & 1 deletion packages/contracts-bedrock/test/CheckGelatoLow.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ contract MockGelatoTreasury is IGelatoTreasury {
}

/// @title CheckGelatoLowTest
/// @notice Tests the CheckBalanceHigh contract via fuzzing both the success case
/// @notice Tests the CheckGelatoLow contract via fuzzing both the success case
/// and the failure case.
contract CheckGelatoLowTest is Test {
/// @notice An instance of the CheckGelatoLow contract.
Expand Down

0 comments on commit 518b4af

Please sign in to comment.