-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhardhat.config.js
36 lines (34 loc) · 900 Bytes
/
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
require("@nomicfoundation/hardhat-toolbox");
require("@nomicfoundation/hardhat-ignition-ethers");
require("@nomicfoundation/hardhat-verify");
require('dotenv').config()
/** @type import('hardhat/config').HardhatUserConfig */
module.exports = {
solidity: "0.8.20",
networks:{
polygonAmoy:{
url:`https://polygon-amoy.infura.io/v3/${process.env.INFURA_API_KEY}`,
accounts:[`${process.env.PRIVATE_KEY}`]
}
},
etherscan: {
apiKey: {
polygonAmoy: process.env.OKLINK_API_KEY,
},
customChains: [
{
network: "polygonAmoy",
chainId: 80002,
urls: {
apiURL: "https://www.oklink.com/api/explorer/v1/contract/verify/async/api/polygonAmoy",
browserURL: "https://www.oklink.com/polygonAmoy"
},
}
]
},
sourcify: {
// Disabled by default
// Doesn't need an API key
enabled: true
}
};