GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — delegation-framework/script/DeployVaultMigrationHelper.s.sol at main · 1Shot-API/delegation-framework

Expand file tree

/

DeployVaultMigrationHelper.s.sol

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
43 lines (36 loc) · 1.52 KB
/

DeployVaultMigrationHelper.s.sol

Copy path

File metadata and controls

43 lines (36 loc) · 1.52 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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.