forked from ensdomains/offchain-resolver
-
Notifications
You must be signed in to change notification settings - Fork 2
/
hardhat.config.js
45 lines (41 loc) · 1.13 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
require("@nomiclabs/hardhat-ethers");
require("@nomiclabs/hardhat-waffle");
require("hardhat-deploy");
require("hardhat-deploy-ethers");
require("dotenv").config();
require("@nomicfoundation/hardhat-verify");
const gatewayurl = `${process.env.GATEWAY_URL}/{sender}/{data}.json`;
let devgatewayurl = "http://localhost:8080/{sender}/{data}.json";
/**
* @type import('hardhat/config').HardhatUserConfig
*/
module.exports = {
solidity: "0.8.10",
networks: {
hardhat: {
throwOnCallFailures: false,
gatewayurl: devgatewayurl,
},
sepolia: {
url: `https://eth-sepolia.g.alchemy.com/v2/${process.env.SEPOLIA_ALCHEMY_KEY}`,
accounts: [`0x${process.env.DEPLOYER_PRIVATE_KEY}`],
gatewayurl,
},
mainnet: {
url: `https://eth-mainnet.g.alchemy.com/v2/${process.env.ETH_ALCHEMY_KEY}`,
accounts: [`0x${process.env.DEPLOYER_PRIVATE_KEY}`],
gatewayurl,
},
},
etherscan: {
apiKey: process.env.ETHERSCAN_API_KEY,
},
namedAccounts: {
signer: {
default: process.env.SIGNER_ADDRESS || 1,
},
deployer: {
default: process.env.DEPLOYER_ADDRESS || 0,
},
},
};