Skip to content

Commit

Permalink
Merge pull request #12 from Azuro-protocol/feature-added_mainnet_sett…
Browse files Browse the repository at this point in the history
…ings

Added mainnet settings
  • Loading branch information
KiselevMaxim authored Jun 4, 2024
2 parents 9d234d1 + 25b62b0 commit 6c63f77
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
5 changes: 4 additions & 1 deletion .env.mock
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,8 @@ UNSTAKEPERIOD=2592000
REWARD_POOL_ADDRESS=

POLYGONSCAN_API_KEY=1N..XX
ETHERSCAN_API_KEY=1N..XX
MUMBAI_PRIVATE_KEY=db0e..82c2
POLYGON_PRIVATE_KEY=db0e..82c2
POLYGON_PRIVATE_KEY=db0e..82c2
MAINNET_PRIVATE_KEY=db0e..82c2
INFURA_API_KEY=
13 changes: 12 additions & 1 deletion hardhat.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,12 @@ require("hardhat-contract-sizer");
require("hardhat-gas-reporter");
require("dotenv").config();

const MAINNET_PRIVATE_KEY = process.env.MAINNET_PRIVATE_KEY || "";
const MUMBAI_PRIVATE_KEY = process.env.MUMBAI_PRIVATE_KEY || "";
const POLYGON_PRIVATE_KEY = process.env.POLYGON_PRIVATE_KEY || "";
const POLYGONSCAN_API_KEY = process.env.POLYGONSCAN_API_KEY || "";
const ETHERSCAN_API_KEY = process.env.ETHERSCAN_API_KEY || "";
const INFURA_API_KEY = process.env.INFURA_API_KEY || "";

const exportNetworks = {
hardhat: {
Expand All @@ -25,11 +28,18 @@ if (MUMBAI_PRIVATE_KEY != "") {

if (POLYGON_PRIVATE_KEY != "") {
exportNetworks["polygon"] = {
url: "https://polygon-bor-rpc.publicnode.com",
url: "https://polygon-rpc.com",
accounts: [`${POLYGON_PRIVATE_KEY}`],
};
}

if (MAINNET_PRIVATE_KEY != "") {
exportNetworks["mainnet"] = {
url: `https://mainnet.infura.io/v3/${INFURA_API_KEY}`,
accounts: [`${MAINNET_PRIVATE_KEY}`]
}
}

module.exports = {
solidity: {
compilers: [
Expand All @@ -51,6 +61,7 @@ module.exports = {
apiKey: {
mumbai: POLYGONSCAN_API_KEY,
polygon: POLYGONSCAN_API_KEY,
mainnet: ETHERSCAN_API_KEY,
},
},
contractSizer: {
Expand Down

0 comments on commit 6c63f77

Please sign in to comment.