-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathhardhat.config.js
47 lines (37 loc) · 1.21 KB
/
hardhat.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
require("@nomicfoundation/hardhat-toolbox");
require("@nomiclabs/hardhat-etherscan");
require("@openzeppelin/hardhat-upgrades");
const keys = require("./keys");
const { getImplementationAddress } = require("@openzeppelin/upgrades-core");
task("getimpl", "Print implementation contract address")
.addParam("proxy", "Proxy address")
.setAction(async (args, hre) => {
const provider = new ethers.providers.JsonRpcProvider(keys.RPC_ENDPOINT_SEPOLIA);
const proxy = args.proxy;
console.log(`${await getImplementationAddress(provider, proxy)}`);
});
/** @type import('hardhat/config').HardhatUserConfig */
module.exports = {
networks: {
hardhat: {
allowUnlimitedContractSize: true
},
goerli: {
url: keys.RPC_ENDPOINT_GOERLI,
accounts: keys.pk
},
sepolia: {
url: keys.RPC_ENDPOINT_SEPOLIA,
accounts: keys.pk
}
},
solidity: {
compilers: [
{version: "0.8.17", settings: {optimizer: {enabled: true}}},
{version: "0.8.18", settings: {optimizer: {enabled: true}}}
]
},
etherscan: {
apiKey: keys.ETHERSCAN_API_KEY
},
};