Skip to content

Commit

Permalink
Merge pull request #54 from hardingjam/main
Browse files Browse the repository at this point in the history
Removing deprecated testnets, and adding Polygon Amoy and Sepolia
  • Loading branch information
ninokeldishvili authored May 3, 2024
2 parents 2b5bbff + 2487dd0 commit c5f6de5
Show file tree
Hide file tree
Showing 2 changed files with 15,667 additions and 15,664 deletions.
119 changes: 61 additions & 58 deletions hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,70 +7,73 @@ import "@nomiclabs/hardhat-etherscan";
require("dotenv").config();

const {
RINKEBY_URL,
PRIVATE_KEY,
POLYGON_URL,
ETHEREUM_URL,
MUMBAI_URL,
POLYGONSCAN_API_KEY,
GOERLI_URL,
ETHERSCAN_API_KEY,
PRIVATE_KEY,
POLYGON_URL,
ETHEREUM_URL,
POLYGONSCAN_API_KEY,
ETHERSCAN_API_KEY,
SEPOLIA_URL,
POLYGON_AMOY_URL,
} = process.env;

export const config = {
networks: {
hardhat: {
blockGasLimit: 100000000,
allowUnlimitedContractSize: true,
hardfork: "london",
},
rinkeby: {
url: RINKEBY_URL || "",
accounts: PRIVATE_KEY ? [`0x${PRIVATE_KEY}`] : [],
gasPrice: 11000000000,
},
matic: {
url: POLYGON_URL || "",
accounts: PRIVATE_KEY ? [`0x${PRIVATE_KEY}`] : [],
gasPrice: 141900000000,
networks: {
// Running 'hardhat test' will use this network, which forks mainnet using the "london" hardfork
hardhat: {
blockGasLimit: 100000000,
allowUnlimitedContractSize: true,
hardfork: "london",
},
matic: {
url: POLYGON_URL || "",
accounts: PRIVATE_KEY ? [`0x${PRIVATE_KEY}`] : [],
gasPrice: 141900000000,
},
ethereum: {
url: ETHEREUM_URL || "",
accounts: PRIVATE_KEY ? [`0x${PRIVATE_KEY}`] : [],
gasPrice: 22000000000,
},
sepolia: {
chainId: 11155111,
url: SEPOLIA_URL || "",
accounts: PRIVATE_KEY ? [`0x${PRIVATE_KEY}`] : [],
gasPrice: 22000000000,
},
amoy: {
chainId: 80002,
url: POLYGON_AMOY_URL || "",
accounts: PRIVATE_KEY ? [`0x${PRIVATE_KEY}`] : [],
gasPrice: 22000000000,
},

// arbitrumSepolia: {
// url: ARBITRUM_SEPOLIA_URL || "",
// accounts: PRIVATE_KEY ? [`0x${PRIVATE_KEY}`] : [],
// gasPrice: 22000000000,
// },
},
mumbai: {
url: MUMBAI_URL || "https://rpc-mumbai.maticvigil.com",
accounts: PRIVATE_KEY ? [`0x${PRIVATE_KEY}`] : [],
gasPrice: 53000000000,
solidity: {
compilers: [
{
version: "0.8.17",
settings: {
optimizer: {
enabled: true,
runs: 100000,
},
},
},
],
},
goerli: {
url: GOERLI_URL || "",
accounts: PRIVATE_KEY ? [`0x${PRIVATE_KEY}`] : [],
gasPrice: 16000000000,
etherscan: {
// Your API key for Etherscan
// Obtain one at https://etherscan.io/
apiKey: ETHERSCAN_API_KEY,
},
ethereum: {
url: ETHEREUM_URL || "",
accounts: PRIVATE_KEY ? [`0x${PRIVATE_KEY}`] : [],
gasPrice: 22000000000,
gasReporter: {
currency: "USD",
gasPrice: 10,
},
},
solidity: {
compilers: [
{
version: "0.8.17",
settings: {
optimizer: {
enabled: true,
runs: 100000,
},
},
},
],
},
etherscan: {
// Your API key for Etherscan
// Obtain one at https://etherscan.io/
apiKey: ETHERSCAN_API_KEY,
},
gasReporter: {
currency: "USD",
gasPrice: 10,
},
};
export default config;
Loading

0 comments on commit c5f6de5

Please sign in to comment.