Skip to content

Commit

Permalink
Merge main
Browse files Browse the repository at this point in the history
  • Loading branch information
ninokeldishvili committed May 3, 2024
2 parents 8a7c3fc + c5f6de5 commit 29ad950
Showing 1 changed file with 61 additions and 88 deletions.
149 changes: 61 additions & 88 deletions hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,100 +7,73 @@ import "@nomiclabs/hardhat-etherscan";
require("dotenv").config();

const {
RINKEBY_URL,
PRIVATE_KEY,
PRIVATE_KEY3,
POLYGON_URL,
ETHEREUM_URL,
MUMBAI_URL,
POLYGONSCAN_API_KEY,
GOERLI_URL,
SEPOLIA_ARBITRUM_URL,
ETHERSCAN_API_KEY,
ARBITRUM_API_KEY,
ARBITRUM_URL,
ETHEREUM_SEPOLIA_URL
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: 262000000000,
},
mumbai: {
url: MUMBAI_URL || "https://rpc-mumbai.maticvigil.com",
accounts: PRIVATE_KEY ? [`0x${PRIVATE_KEY}`] : [],
gasPrice: 53000000000,
},
goerli: {
url: GOERLI_URL || "",
accounts: PRIVATE_KEY3 ? [`0x${PRIVATE_KEY3}`] : [],
gasPrice: 22000000000,
},
ethereum: {
url: ETHEREUM_URL || "",
accounts: PRIVATE_KEY ? [`0x${PRIVATE_KEY}`] : [],
gasPrice: 22000000000,
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,
// },
},
sepolia_arbitrum: {
url: SEPOLIA_ARBITRUM_URL || "",
accounts: PRIVATE_KEY ? [`0x${PRIVATE_KEY}`] : [],
gasPrice: 22000000000,
solidity: {
compilers: [
{
version: "0.8.17",
settings: {
optimizer: {
enabled: true,
runs: 100000,
},
},
},
],
},
arbitrum: {
url: ARBITRUM_URL || "",
accounts: PRIVATE_KEY3 ? [`0x${PRIVATE_KEY3}`] : [],
gasPrice: 300000000,
etherscan: {
// Your API key for Etherscan
// Obtain one at https://etherscan.io/
apiKey: ETHERSCAN_API_KEY,
},
sepolia: {
url: ETHEREUM_SEPOLIA_URL || "",
accounts: PRIVATE_KEY ? [`0x${PRIVATE_KEY}`] : [],
gasPrice: 10000000000,
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,
customChains: [
{
network: "arbitrum sepolia",
chainId: 421614,
urls: {
apiURL: "https://api-sepolia.arbiscan.io/api",
browserURL: "https://sepolia.arbiscan.io/"
}
}
]
},
gasReporter: {
currency: "USD",
gasPrice: 10,
},
};
export default config;

0 comments on commit 29ad950

Please sign in to comment.