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

Dispatcher delete #342

Merged
merged 3 commits into from
Apr 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
174 changes: 0 additions & 174 deletions core/contracts/Dispatcher.sol

This file was deleted.

37 changes: 0 additions & 37 deletions core/contracts/Router.sol

This file was deleted.

1 change: 0 additions & 1 deletion core/contracts/stBTC.sol
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";

import "@thesis-co/solidity-contracts/contracts/token/IReceiveApproval.sol";

import "./Dispatcher.sol";
import "./PausableOwnable.sol";
import "./lib/ERC4626Fees.sol";
import "./interfaces/IDispatcher.sol";
Expand Down
12 changes: 0 additions & 12 deletions core/contracts/test/TestERC4626.sol

This file was deleted.

6 changes: 3 additions & 3 deletions core/contracts/test/upgrades/stBTCV2.sol
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";

import "@thesis-co/solidity-contracts/contracts/token/IReceiveApproval.sol";

import "../../Dispatcher.sol";
import "../../PausableOwnable.sol";
import "../../lib/ERC4626Fees.sol";
import "../../interfaces/IDispatcher.sol";
import {ZeroAddress} from "../../utils/Errors.sol";

/// @title stBTCV2
Expand All @@ -17,7 +17,7 @@ contract stBTCV2 is ERC4626Fees, PausableOwnable {
using SafeERC20 for IERC20;

/// Dispatcher contract that routes tBTC from stBTC to a given vault and back.
Dispatcher public dispatcher;
IDispatcher public dispatcher;

/// Address of the treasury wallet, where fees should be transferred to.
address public treasury;
Expand Down Expand Up @@ -119,7 +119,7 @@ contract stBTCV2 is ERC4626Fees, PausableOwnable {
/// @notice Updates the dispatcher contract and gives it an unlimited
/// allowance to transfer staked tBTC.
/// @param newDispatcher Address of the new dispatcher contract.
function updateDispatcher(Dispatcher newDispatcher) external onlyOwner {
function updateDispatcher(IDispatcher newDispatcher) external onlyOwner {
if (address(newDispatcher) == address(0)) {
revert ZeroAddress();
}
Expand Down
30 changes: 0 additions & 30 deletions core/deploy/00_resolve_testing_erc4626.ts

This file was deleted.

29 changes: 0 additions & 29 deletions core/deploy/02_deploy_dispatcher.ts

This file was deleted.

2 changes: 1 addition & 1 deletion core/deploy/12_mezo_allocator_update_maintainer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@ const func: DeployFunction = async (hre: HardhatRuntimeEnvironment) => {

export default func

func.dependencies = ["MezoAllocator"]
func.tags = ["MezoAllocatorAddMaintainer"]
func.dependencies = ["Dispatcher"]
31 changes: 0 additions & 31 deletions core/deploy/22_transfer_ownership_dispatcher.ts

This file was deleted.

Loading
Loading