Skip to content

Commit

Permalink
Merge branch 'master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
codenamejason authored Aug 31, 2022
2 parents 0e283e8 + b7b21ac commit 7165ee4
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions packages/hardhat/hardhat.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,6 @@ const { isAddress, getAddress, formatUnits, parseUnits } = utils;
//
const defaultNetwork = "localhost";

const mainnetGwei = 21;

function mnemonic() {
try {
return fs.readFileSync("./mnemonic.txt").toString().trim();
Expand Down Expand Up @@ -67,10 +65,10 @@ module.exports = {
networks: {
localhost: {
url: "http://localhost:8545",
/*
/*
notice no mnemonic here? it will just use account 0 of the hardhat node to deploy
(you can put in a mnemonic here to set the deployer locally)
*/
},
rinkeby: {
Expand All @@ -90,7 +88,6 @@ module.exports = {
mainnet: {
url: "https://mainnet.infura.io/v3/460f40a260564ac4a4f4b3fffb032dad", // <---- YOUR INFURA ID! (or it won't work)
// url: "https://speedy-nodes-nyc.moralis.io/XXXXXXXXXXXXXXXXXXXXXXXXX/eth/mainnet", // <---- YOUR MORALIS ID! (not limited to infura)
gasPrice: mainnetGwei * 1000000000,
accounts: {
mnemonic: mnemonic(),
},
Expand All @@ -111,7 +108,6 @@ module.exports = {
},
xdai: {
url: "https://rpc.xdaichain.com/",
gasPrice: 1000000000,
accounts: {
mnemonic: mnemonic(),
},
Expand All @@ -133,22 +129,19 @@ module.exports = {
polygon: {
url: "https://polygon-rpc.com",
// url: "https://speedy-nodes-nyc.moralis.io/XXXXXXXXXXXXXXXXXXXx/polygon/mainnet", // <---- YOUR MORALIS ID! (not limited to infura)
gasPrice: 3200000000,
accounts: {
mnemonic: mnemonic(),
},
},
mumbai: {
url: "https://rpc-mumbai.maticvigil.com",
// url: "https://speedy-nodes-nyc.moralis.io/XXXXXXXXXXXXXXXXXXXXXXX/polygon/mumbai", // <---- YOUR MORALIS ID! (not limited to infura)
gasPrice: 3200000000,
accounts: {
mnemonic: mnemonic(),
},
},
matic: {
url: "https://rpc-mainnet.maticvigil.com/",
gasPrice: 1000000000,
accounts: {
mnemonic: mnemonic(),
},
Expand Down Expand Up @@ -320,6 +313,10 @@ module.exports = {
etherscan: {
apiKey: {
mainnet: "DNXJA8RX2Q3VZ4URQIWP7Z68CJXQZSC6AW",
goerli: "DNXJA8RX2Q3VZ4URQIWP7Z68CJXQZSC6AW",
kovan: "DNXJA8RX2Q3VZ4URQIWP7Z68CJXQZSC6AW",
rinkeby: "DNXJA8RX2Q3VZ4URQIWP7Z68CJXQZSC6AW",
ropsten: "DNXJA8RX2Q3VZ4URQIWP7Z68CJXQZSC6AW",
// add other network's API key here
},
},
Expand Down

0 comments on commit 7165ee4

Please sign in to comment.