-
Notifications
You must be signed in to change notification settings - Fork 107
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update forge deployment scripts in prep for launch (#1183)
* Improve forge deployment scripts in prep for launch * Update smoketests
- Loading branch information
Showing
14 changed files
with
139 additions
and
97 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
// SPDX-License-Identifier: Apache-2.0 | ||
// SPDX-FileCopyrightText: 2023 Snowfork <[email protected]> | ||
pragma solidity 0.8.23; | ||
|
||
import {Script} from "forge-std/Script.sol"; | ||
import {GatewayProxy} from "../src/GatewayProxy.sol"; | ||
import {Shell} from "../src/Shell.sol"; | ||
|
||
contract Stage1 is Script { | ||
function setUp() public {} | ||
|
||
function run() public { | ||
vm.startBroadcast(); | ||
|
||
address operator = vm.envAddress("OPERATOR_ADDRESS"); | ||
Shell shell = new Shell(operator); | ||
new GatewayProxy(address(shell), bytes("")); | ||
|
||
vm.stopBroadcast(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -eux | ||
|
||
forge script "scripts/Deploy.sol:${1}" \ | ||
--chain-id 1 \ | ||
--rpc-url "${MAINNET_RPC_URL}" \ | ||
--ledger \ | ||
--mnemonic-derivation-path "${MNEMONIC_DERIVATION_PATH}" \ | ||
--broadcast \ | ||
--verify \ | ||
--verifier etherscan \ | ||
--verifier-url "${ETHERSCAN_API_KEY}" | ||
--optimize \ | ||
--via-ir \ | ||
--optimizer-runs 100000 \ | ||
-vvv |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.