GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — delegation-framework/script/DeployVaultMigrationHelper.s.sol at main · 1Shot-API/delegation-framework Expand file tree/ Copy pathDeployVaultMigrationHelper.s.solMore file actions 43 lines (36 loc) · 1.52 KB / Copy pathDeployVaultMigrationHelper.s.solFile metadata and controls43 lines (36 loc) · 1.52 KB 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 // SPDX-License-Identifier: MIT AND Apache-2.0 pragma solidity 0.8.23; import "forge-std/Script.sol"; import { console2 } from "forge-std/console2.sol"; import { VaultMigrationHelper } from "../src/helpers/VaultMigrationHelper.sol"; /** * @title DeployVaultMigrationHelper * @notice Deploys VaultMigrationHelper deterministically with CREATE2. * @dev Fill the required variables in the .env file * @dev run the script with: * forge script script/DeployVaultMigrationHelper.s.sol --rpc-url <your_rpc_url> --private-key $PRIVATE_KEY --broadcast */ contract DeployVaultMigrationHelper is Script { bytes32 internal salt; address internal owner; address internal baseAdapter; address internal premiumAdapter; function setUp() public { salt = bytes32(abi.encodePacked(vm.envString("SALT"))); owner = vm.envAddress("VAULT_MIGRATION_HELPER_OWNER_ADDRESS"); baseAdapter = vm.envAddress("BASE_VEDA_ADAPTER_ADDRESS"); premiumAdapter = vm.envAddress("PREMIUM_VEDA_ADAPTER_ADDRESS"); console2.log("~~~"); console2.log("Owner: %s", owner); console2.log("BaseAdapter: %s", baseAdapter); console2.log("PremiumAdapter: %s", premiumAdapter); console2.log("Salt:"); console2.logBytes32(salt); } function run() public { vm.startBroadcast(); address deployed = address(new VaultMigrationHelper{ salt: salt }(owner, baseAdapter, premiumAdapter)); vm.stopBroadcast(); console2.log("VaultMigrationHelper: %s", deployed); } } |
| You are visitor 01402792 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |