-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
28cbe2b
commit e506b1c
Showing
7 changed files
with
61 additions
and
647 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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
//SPDX-License-Identifier: MIT | ||
pragma solidity >=0.8.0 <0.9.0; | ||
|
||
contract Challenge { | ||
// Add the challenges contract here | ||
} |
This file was deleted.
Oops, something went wrong.
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,34 @@ | ||
//SPDX-License-Identifier: MIT | ||
pragma solidity ^0.8.19; | ||
|
||
import "../contracts/Challenge.sol"; | ||
import "./DeployHelpers.s.sol"; | ||
|
||
contract DeployScript is ScaffoldETHDeploy { | ||
error InvalidPrivateKey(string); | ||
|
||
function run() external { | ||
uint256 deployerPrivateKey = setupLocalhostEnv(); | ||
if (deployerPrivateKey == 0) { | ||
revert InvalidPrivateKey( | ||
"You don't have a deployer account. Make sure you have set DEPLOYER_PRIVATE_KEY in .env or use `yarn generate` to generate a new random account" | ||
); | ||
} | ||
vm.startBroadcast(deployerPrivateKey); | ||
Challenge challenge = new Challenge(); | ||
console.logString( | ||
string.concat( | ||
"Challenge deployed at: ", | ||
vm.toString(address(challenge)) | ||
) | ||
); | ||
vm.stopBroadcast(); | ||
/** | ||
* This function generates the file containing the contracts Abi definitions. | ||
* These definitions are used to derive the types needed in the custom scaffold-eth hooks, for example. | ||
* This function should be called last. | ||
*/ | ||
exportDeployments(); | ||
} | ||
function test() public {} | ||
} |
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 @@ | ||
// SPDX-License-Identifier: UNLICENSED | ||
pragma solidity ^0.8.13; | ||
|
||
import "forge-std/Test.sol"; | ||
import "../contracts/Challenge.sol"; | ||
|
||
contract ChallengeTest is Test { | ||
// Put tests here | ||
} |
This file was deleted.
Oops, something went wrong.