mirror of https://github.com/logos-co/staking.git
add keys to config file
This commit is contained in:
parent
50241a1494
commit
c487f24371
|
@ -1,9 +1,25 @@
|
|||
require("@nomicfoundation/hardhat-toolbox");
|
||||
require("dotenv").config();
|
||||
|
||||
const INFURA_API_KEY = process.env.INFURA_API_KEY;
|
||||
const ETHERSCAN_API_KEY = process.env.ETHERSCAN_API_KEY;
|
||||
const GOERLI_PRIVATE_KEY = process.env.GOERLI_PRIVATE_KEY;
|
||||
|
||||
console.log(INFURA_API_KEY)
|
||||
/** @type import('hardhat/config').HardhatUserConfig */
|
||||
module.exports = {
|
||||
solidity: "0.8.18",
|
||||
networks: {
|
||||
goerli: {
|
||||
url: `https://goerli.infura.io/v3/${INFURA_API_KEY}`,
|
||||
accounts: [GOERLI_PRIVATE_KEY]
|
||||
}
|
||||
},
|
||||
etherscan: {
|
||||
apiKey: ETHERSCAN_API_KEY,
|
||||
},
|
||||
mocha: {
|
||||
timeout: 100000000,
|
||||
}
|
||||
|
||||
};
|
||||
|
|
|
@ -11,6 +11,7 @@
|
|||
"devDependencies": {
|
||||
"@nomicfoundation/hardhat-toolbox": "^3.0.0",
|
||||
"@openzeppelin/contracts": "^4.9.2",
|
||||
"dotenv": "^16.3.1",
|
||||
"hardhat": "^2.16.1"
|
||||
}
|
||||
},
|
||||
|
@ -3186,6 +3187,18 @@
|
|||
"node": ">=8"
|
||||
}
|
||||
},
|
||||
"node_modules/dotenv": {
|
||||
"version": "16.3.1",
|
||||
"resolved": "https://registry.npmjs.org/dotenv/-/dotenv-16.3.1.tgz",
|
||||
"integrity": "sha512-IPzF4w4/Rd94bA9imS68tZBaYyBWSCE47V1RGuMrB94iyTOIEwRmVL2x/4An+6mETpLrKJ5hQkB8W4kFAadeIQ==",
|
||||
"dev": true,
|
||||
"engines": {
|
||||
"node": ">=12"
|
||||
},
|
||||
"funding": {
|
||||
"url": "https://github.com/motdotla/dotenv?sponsor=1"
|
||||
}
|
||||
},
|
||||
"node_modules/ecc-jsbn": {
|
||||
"version": "0.1.2",
|
||||
"resolved": "https://registry.npmjs.org/ecc-jsbn/-/ecc-jsbn-0.1.2.tgz",
|
||||
|
|
|
@ -13,7 +13,8 @@
|
|||
"license": "ISC",
|
||||
"devDependencies": {
|
||||
"@nomicfoundation/hardhat-toolbox": "^3.0.0",
|
||||
"hardhat": "^2.16.1",
|
||||
"@openzeppelin/contracts": "^4.9.2"
|
||||
"@openzeppelin/contracts": "^4.9.2",
|
||||
"dotenv": "^16.3.1",
|
||||
"hardhat": "^2.16.1"
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue