Skip to content

Commit

Permalink
Merge pull request PatrickAlphaC#14 from alymurtazamemon/main
Browse files Browse the repository at this point in the history
Sepolia Update
  • Loading branch information
PatrickAlphaC authored Mar 14, 2023
2 parents ae82c98 + e64a2da commit 34c152b
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 22 deletions.
2 changes: 1 addition & 1 deletion .env.example
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
GOERLI_RPC_URL='https://alchemy.infura.io/v3/1234567890'
SEPOLIA_RPC_URL='https://eth-sepolia.g.alchemy.com/v2/YOUR-API-KEY'
POLYGON_MAINNET_RPC_URL='https://rpc-mainnet.maticvigil.com'
MAINNET_RPC_URL="https://eth-mainnet.alchemyapi.io/v2/your-api-key"
ETHERSCAN_API_KEY='YOUR_KEY'
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ This is a section of the Javascript Blockchain/Smart Contract FreeCodeCamp Cours

This repo has a few contracts with big flaws, see if you can see them, and see if the tools help you find them!

*This repo has been updated for Goerli over Rinkeby.*
*This repo has been updated for Sepolia over Goerli.*

*[⌨️ (31:28:32) Lesson 18: Security & Auditing ](https://www.youtube.com/watch?v=gyMwXuJrbJQ&t=113312s)*

Expand Down
12 changes: 6 additions & 6 deletions hardhat.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ const MAINNET_RPC_URL =
process.env.MAINNET_RPC_URL ||
process.env.ALCHEMY_MAINNET_RPC_URL ||
"https://eth-mainnet.alchemyapi.io/v2/your-api-key"
const GOERLI_RPC_URL =
process.env.GOERLI_RPC_URL || "https://eth-goerli.alchemyapi.io/v2/your-api-key"
const SEPOLIA_RPC_URL =
process.env.SEPOLIA_RPC_URL || "https://eth-sepolia.g.alchemy.com/v2/YOUR-API-KEY"
const POLYGON_MAINNET_RPC_URL =
process.env.POLYGON_MAINNET_RPC_URL || "https://polygon-mainnet.alchemyapi.io/v2/your-api-key"
const PRIVATE_KEY = process.env.PRIVATE_KEY
Expand All @@ -41,14 +41,14 @@ module.exports = {
localhost: {
chainId: 31337,
},
goerli: {
url: GOERLI_RPC_URL,
sepolia: {
url: SEPOLIA_RPC_URL,
accounts: PRIVATE_KEY !== undefined ? [PRIVATE_KEY] : [],
// accounts: {
// mnemonic: MNEMONIC,
// },
saveDeployments: true,
chainId: 5,
chainId: 11155111,
},
mainnet: {
url: MAINNET_RPC_URL,
Expand All @@ -69,7 +69,7 @@ module.exports = {
etherscan: {
// npx hardhat verify --network <NETWORK> <CONTRACT_ADDRESS> <CONSTRUCTOR_PARAMETERS>
apiKey: {
goerli: ETHERSCAN_API_KEY,
sepolia: ETHERSCAN_API_KEY,
polygon: POLYGONSCAN_API_KEY,
},
},
Expand Down
16 changes: 2 additions & 14 deletions helper-hardhat-config.js
Original file line number Diff line number Diff line change
@@ -1,27 +1,15 @@
const networkConfig = {
default: {
name: "hardhat",
keepersUpdateInterval: "30",
},
31337: {
name: "localhost",
subscriptionId: "588",
gasLane: "0xd89b2bf150e3b9e13446986e571fb9cab24b13cea0a43ea20a6049a85cc807cc", // 30 gwei
keepersUpdateInterval: "30",
raffleEntranceFee: "100000000000000000", // 0.1 ETH
callbackGasLimit: "500000", // 500,000 gas
},
5: {
name: "goerli",
subscriptionId: "588",
gasLane: "0x79d3d8832d904592c0bf9818b621522c988bb8b0c05cdc3b15aea1b6e8db0c15", // 30 gwei
keepersUpdateInterval: "30",
raffleEntranceFee: "100000000000000000", // 0.1 ETH
callbackGasLimit: "500000", // 500,000 gas
11155111: {
name: "sepolia",
},
1: {
name: "mainnet",
keepersUpdateInterval: "30",
},
}

Expand Down

0 comments on commit 34c152b

Please sign in to comment.