diff --git a/script/iBTC_Burner.s.sol b/script/iBTC_Burner.s.sol deleted file mode 100644 index ce2c190..0000000 --- a/script/iBTC_Burner.s.sol +++ /dev/null @@ -1,30 +0,0 @@ -// SPDX-License-Identifier: MIT -pragma solidity ^0.8.25; - -import {Script} from "forge-std/Script.sol"; -import {iBTC_Treasury} from "../src/iBTC_Treasury.sol"; -import {iBTC_Burner} from "../src/iBTC_Burner.sol"; - -contract DeployiBTC_Burner is Script { - // Define deployment parameters - address constant COLLATERAL_ADDRESS = 0xeb762Ed11a09E4A394C9c8101f8aeeaf5382ED74; // eth sepolia - uint256 constant MAX_WITHDRAW_AMOUNT = 1e9; // 10 iBTC - uint256 constant MIN_WITHDRAW_AMOUNT = 1e4; - - function run() external { - // Fetch the private key to deploy contracts - uint256 deployerPrivateKey = uint256(0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80); - - // Start broadcasting transactions from the deployer account - vm.startBroadcast(deployerPrivateKey); - - // Deploy the iBTC_Treasury contract - iBTC_Treasury treasury = new iBTC_Treasury(COLLATERAL_ADDRESS, MAX_WITHDRAW_AMOUNT, MIN_WITHDRAW_AMOUNT); - - // Deploy the iBTC_Burner contract - iBTC_Burner burner = new iBTC_Burner(COLLATERAL_ADDRESS, address(treasury)); - - // Stop broadcasting transactions - vm.stopBroadcast(); - } -} diff --git a/src/interfaces/IiBTC_Burner.sol b/src/interfaces/IiBTC_Burner.sol deleted file mode 100644 index 30f930e..0000000 --- a/src/interfaces/IiBTC_Burner.sol +++ /dev/null @@ -1,36 +0,0 @@ -// SPDX-License-Identifier: MIT -pragma solidity ^0.8.0; - -import {IUintRequests} from "@symbiotic-burners/contracts/common/UintRequests.sol"; - -interface IiBTC_Burner is IUintRequests { - error InsufficientWithdrawal(); - - /** - * @notice Emitted when a withdrawal is triggered. - * @param caller caller of the function - * @param firstRequestId first request ID that was created - * @param lastRequestId last request ID that was created - */ - event TriggerWithdrawal(address indexed caller, uint256 firstRequestId, uint256 lastRequestId); - - /** - * @notice Get an address of the collateral. - */ - function COLLATERAL() external view returns (address); - - /** - * @notice Get an address of the dlcBTC Exit contract. - */ - function iBTCTreasury() external view returns (address); - - /** - * @notice Trigger a withdrawal of BTC from the collateral's underlying asset. - * @param maxRequests maximum number of withdrawal requests to create - * @return firstRequestId first request ID that was created - * @return lastRequestId last request ID that was created - */ - function triggerWithdrawal( - uint256 maxRequests - ) external returns (uint256 firstRequestId, uint256 lastRequestId); -} diff --git a/src/interfaces/IiBTC_Treasury.sol b/src/interfaces/IiBTC_Treasury.sol deleted file mode 100644 index b17740e..0000000 --- a/src/interfaces/IiBTC_Treasury.sol +++ /dev/null @@ -1,22 +0,0 @@ -// SPDX-License-Identifier: MIT -pragma solidity ^0.8.0; - -interface IiBTC_Treasury { - function getLastrequestIdCreated() external view returns (uint256); - - function withdrawRequestMaximum() external view returns (uint256); - - function withdrawRequestMinimum() external view returns (uint256); - - function processWithdrawals( - uint256 _lastTokenIdToProcess - ) external; - - function createWithdrawRequest( - uint256 amount - ) external; - - function finalizeWithdrawal( - uint256 tokenId - ) external; -}