-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
style: adapt imports so that etherscan can verify the contracts (#65)
- Loading branch information
1 parent
ceedf82
commit 5ee7a89
Showing
5 changed files
with
44 additions
and
7 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
/out | ||
/cache | ||
.env | ||
.env | ||
/broadcast |
Submodule forge-std
updated
16 files
+1 −1 | src/Script.sol | |
+7 −0 | src/StdChains.sol | |
+14 −2 | src/StdCheats.sol | |
+15 −0 | src/StdInvariant.sol | |
+18 −14 | src/StdJson.sol | |
+50 −3 | src/StdStorage.sol | |
+1 −2 | src/Test.sol | |
+78 −14 | src/Vm.sol | |
+93 −77 | test/StdAssertions.t.sol | |
+20 −15 | test/StdChains.t.sol | |
+52 −44 | test/StdCheats.t.sol | |
+10 −10 | test/StdError.t.sol | |
+10 −10 | test/StdMath.t.sol | |
+58 −36 | test/StdStorage.t.sol | |
+4 −4 | test/StdStyle.t.sol | |
+28 −28 | test/StdUtils.t.sol |
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: AGPL-3.0-or-later | ||
pragma solidity ^0.8.15; | ||
|
||
import {Script, console2} from "forge-std/Script.sol"; | ||
|
||
// Cooler Loans | ||
import {CoolerFactory, Cooler} from "src/CoolerFactory.sol"; | ||
|
||
/// @notice Script to deploy and initialize the Olympus system | ||
/// @dev The address that this script is broadcast from must have write access to the contracts being configured | ||
contract Deploy is Script { | ||
// Cooler Loan contracts | ||
CoolerFactory public coolerFactory; | ||
|
||
function deploy() external { | ||
// Deploy a new Cooler Factory implementation | ||
vm.broadcast(); | ||
coolerFactory = new CoolerFactory(); | ||
console2.log("Cooler Factory deployed at:", address(coolerFactory)); | ||
} | ||
} |
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,9 @@ | ||
#!/bin/bash | ||
|
||
# Load environment variables | ||
source .env | ||
|
||
# Deploy using script | ||
forge script ./src/scripts/Deploy.sol:Deploy --sig "deploy()()" $CHAIN \ | ||
--rpc-url $RPC_URL --private-key $PRIVATE_KEY --froms $DEPLOYER --slow -vvv \ | ||
--broadcast --verify --etherscan-api-key $ETHERSCAN_KEY # uncomment to broadcast to the network |