Skip to content

Commit

Permalink
Merge pull request #4 from DLC-link/test/vaults_testing
Browse files Browse the repository at this point in the history
little revise on Dploy_ALL.s.sol
  • Loading branch information
Rayerleier authored Dec 3, 2024
2 parents 467eb79 + f3f51b1 commit 4bffd76
Show file tree
Hide file tree
Showing 11 changed files with 898 additions and 545 deletions.
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

0 comments on commit 4bffd76

Please sign in to comment.