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/DeployMultiSigDeleGator.s.sol at main · 1Shot-API/delegation-framework Expand file tree/ Copy pathDeployMultiSigDeleGator.s.solMore file actions 52 lines (44 loc) · 2.01 KB / Copy pathDeployMultiSigDeleGator.s.solFile metadata and controls52 lines (44 loc) · 2.01 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 44 45 46 47 48 49 50 51 52 // 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 { ERC1967Proxy } from "@openzeppelin/contracts/proxy/ERC1967/ERC1967Proxy.sol"; import { MultiSigDeleGator } from "../src/MultiSigDeleGator.sol"; /** * @title DeployMultiSigDeleGator * @notice Deploying a DeleGator account requires the deployment of the set up contracts. Ensure you've run `DeploySetUp` or are * interacting with a chain where the required contracts have already been deployed. * @notice This script will deploy a MultiSigDeleGator with a threshold of 1 and the owner as the wallet from the PRIVATE_KEY * environment variable. * @dev run the script with `forge script script/DeployMultiSigDeleGator.s.sol --ffi --rpc-url <your_rpc_url>` */ contract DeployMultiSigDeleGator is Script { bytes32 salt; MultiSigDeleGator multiSigDeleGatorImplementation; address deployer; function setUp() public { salt = bytes32(abi.encodePacked(vm.envString("SALT"))); multiSigDeleGatorImplementation = MultiSigDeleGator(payable(vm.envAddress("MULTISIG_DELEGATOR_IMPLEMENTATION_ADDRESS"))); deployer = msg.sender; console2.log("~~~"); console2.log("Deployer: %s", address(deployer)); console2.log("DeleGator Implementation: %s", address(multiSigDeleGatorImplementation)); console2.log("Salt:"); console2.logBytes32(salt); } function run() public { console2.log("~~~"); vm.startBroadcast(); address[] memory signers_ = new address[](1); signers_[0] = msg.sender; uint256 threshold = 1; address multiSigDeleGator_ = address( new ERC1967Proxy( address(multiSigDeleGatorImplementation), abi.encodeWithSelector(MultiSigDeleGator.initialize.selector, signers_, threshold) ) ); console2.log("MultiSigDeleGator: %s", address(multiSigDeleGator_)); vm.stopBroadcast(); } } |
| 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. |