Skip to content

Commit

Permalink
set up main branch as template
Browse files Browse the repository at this point in the history
  • Loading branch information
escottalexander committed May 13, 2024
1 parent 28cbe2b commit e506b1c
Show file tree
Hide file tree
Showing 7 changed files with 61 additions and 647 deletions.
382 changes: 12 additions & 370 deletions README.md

Large diffs are not rendered by default.

6 changes: 6 additions & 0 deletions packages/foundry/contracts/Challenge.sol
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
}
143 changes: 0 additions & 143 deletions packages/foundry/contracts/WrappedETH.sol

This file was deleted.

18 changes: 0 additions & 18 deletions packages/foundry/foundry.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,22 +8,4 @@ fs_permissions = [{ access = "read-write", path = "./"}]
default_network = "http://127.0.0.1:8545"
localhost = "http://127.0.0.1:8545"

mainnet = "https://eth-mainnet.alchemyapi.io/v2/${ALCHEMY_API_KEY}"
sepolia = "https://eth-sepolia.g.alchemy.com/v2/${ALCHEMY_API_KEY}"
goerli = "https://eth-goerli.alchemyapi.io/v2/${ALCHEMY_API_KEY}"
arbitrum = "https://arb-mainnet.g.alchemy.com/v2/${ALCHEMY_API_KEY}"
arbitrumGoerli = "https://arb-goerli.g.alchemy.com/v2/${ALCHEMY_API_KEY}"
optimism = "https://opt-mainnet.g.alchemy.com/v2/${ALCHEMY_API_KEY}"
optimismGoerli = "https://opt-goerli.g.alchemy.com/v2/${ALCHEMY_API_KEY}"
polygon = "https://polygon-mainnet.g.alchemy.com/v2/${ALCHEMY_API_KEY}"
polygonMumbai = "https://polygon-mumbai.g.alchemy.com/v2/${ALCHEMY_API_KEY}"
gnosis = "https://rpc.gnosischain.com"
chiado = "https://rpc.chiadochain.net"
base = "https://mainnet.base.org"
baseGoerli = "https://goerli.base.org"

[etherscan]
polygonMumbai = { key = "${ETHERSCAN_API_KEY}" }
goerli = { key = "${ETHERSCAN_API_KEY}" }

# See more config options https://github.com/foundry-rs/foundry/tree/master/config
34 changes: 34 additions & 0 deletions packages/foundry/script/Deploy.s.sol
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 {}
}
9 changes: 9 additions & 0 deletions packages/foundry/test/Challenge.t.sol
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
}
116 changes: 0 additions & 116 deletions packages/foundry/test/WrappedETH.t.sol

This file was deleted.

0 comments on commit e506b1c

Please sign in to comment.