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

little revise on Dploy_ALL.s.sol #4

Merged
merged 5 commits into from
Dec 3, 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
447 changes: 447 additions & 0 deletions broadcast/Deploy_All.s.sol/11155111/first_deployment.json

Large diffs are not rendered by default.

447 changes: 447 additions & 0 deletions broadcast/Deploy_All.s.sol/11155111/run-1733153162.json

Large diffs are not rendered by default.

27 changes: 0 additions & 27 deletions script/Delegator&Slasher&VaultFactory.s.sol

This file was deleted.

15 changes: 4 additions & 11 deletions script/Deploy_All.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,8 @@ import {IOperatorSpecificDelegator} from "@symbiotic/interfaces/delegator/IOpera
import {IBaseSlasher} from "@symbiotic/interfaces/slasher/IBaseSlasher.sol";
import {ISlasher} from "@symbiotic/interfaces/slasher/ISlasher.sol";
import {IVetoSlasher} from "@symbiotic/interfaces/slasher/IVetoSlasher.sol";
import {BurnerRouter} from "burners/src/contracts/router/BurnerRouter.sol";

import {iBTC_Treasury} from "../src/iBTC_Treasury.sol";
import {iBTC_Burner} from "../src/iBTC_Burner.sol";
import {VaultConfigurator} from "../src/iBTC_VaultConfigurator.sol";
import {iBTC_Vault} from "../src/iBTC_Vault.sol";

Expand All @@ -25,7 +24,6 @@ contract DeployAll is Script {
address constant COLLATERAL_ADDRESS = 0xeb762Ed11a09E4A394C9c8101f8aeeaf5382ED74; // eth sepolia
uint256 constant MAX_WITHDRAW_AMOUNT = 1e9; // 10 iBTC
uint256 constant MIN_WITHDRAW_AMOUNT = 1e4;
uint256 deployerPrivateKey = uint256(0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80); //NOTE

// Replace with the correct checksummed addresses
address constant VAULT_FACTORY = 0x407A039D94948484D356eFB765b3c74382A050B4; // Replace with deployed VaultFactory address
Expand All @@ -41,16 +39,11 @@ contract DeployAll is Script {
uint64 delegatorIndex = 0; // NetworkRestakeDelegator
address hook = 0x0000000000000000000000000000000000000000;
bool withSlasher = true;
uint64 slasherIndex = 1; // vetoSlasher
uint64 slasherIndex = 1; // vetoSlasher = 1, Basic Slasher = 0
uint48 vetoDuration = 86_400; // 1 day
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));
vm.startBroadcast();

BurnerRouter burner = new BurnerRouter();
VaultConfigurator vaultConfigurator = new VaultConfigurator(VAULT_FACTORY, DELEGATOR_FACTORY, SLASHER_FACTORY);

// Log the deployed address
Expand Down
30 changes: 0 additions & 30 deletions script/iBTC_Burner.s.sol

This file was deleted.

115 changes: 0 additions & 115 deletions src/iBTC_Burner.sol

This file was deleted.

147 changes: 0 additions & 147 deletions src/iBTC_Treasury.sol

This file was deleted.

36 changes: 0 additions & 36 deletions src/interfaces/IiBTC_Burner.sol

This file was deleted.

Loading
Loading