Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deploy to arbitrum and sepolia and refactor #53

Open
wants to merge 12 commits into
base: main
Choose a base branch
from
122 changes: 61 additions & 61 deletions hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,73 +7,73 @@ import "@nomiclabs/hardhat-etherscan";
require("dotenv").config();

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

export const config = {
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,
// },
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,
},
solidity: {
compilers: [
{
version: "0.8.17",
settings: {
optimizer: {
enabled: true,
runs: 100000,
},
},
},
],
ethereum: {
url: ETHEREUM_URL || "",
accounts: PRIVATE_KEY ? [`0x${PRIVATE_KEY}`] : [],
gasPrice: 22000000000,
},
etherscan: {
// Your API key for Etherscan
// Obtain one at https://etherscan.io/
apiKey: ETHERSCAN_API_KEY,
sepolia: {
chainId: 11155111,
url: SEPOLIA_URL || "",
accounts: PRIVATE_KEY ? [`0x${PRIVATE_KEY}`] : [],
gasPrice: 22000000000,
},
gasReporter: {
currency: "USD",
gasPrice: 10,
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,
// },
},
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
Loading