-
Notifications
You must be signed in to change notification settings - Fork 0
/
hardhat.config.js
98 lines (96 loc) · 2.64 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
require("@nomicfoundation/hardhat-toolbox");
const dotenv = require("dotenv");
dotenv.config();
const PRIVATE_KEY = process.env.PRIVATE_KEY;
const INFURA_API_KEY = process.env.INFURA_API_KEY;
/** @type import('hardhat/config').HardhatUserConfig */
module.exports = {
solidity: "0.8.7",
defaultNetwork: "bsctestnet",
networks: {
bsctestnet: {
url: "https://data-seed-prebsc-1-s1.binance.org:8545",
chainId: 97,
accounts: [PRIVATE_KEY],
},
sepolia: {
url: "https://rpc.sepolia.org",
accounts: [PRIVATE_KEY],
gas: 2100000,
gasPrice: 8000000000,
},
scrollAlpha: {
url: "https://alpha-rpc.scroll.io/l2" || "",
accounts: [PRIVATE_KEY],
// process.env.PRIVATE_KEY !== undefined
// ? [process.env.PRIVATE_KEY]
// : [PRIVATE_KEY],
// gas: 2100000,
// gasPrice: 8000000000,
},
gnosis: {
url: "https://rpc.gnosischain.com",
accounts: [PRIVATE_KEY],
},
chiado: {
url: "https://rpc.chiadochain.net",
gasPrice: 1000000000,
accounts: [PRIVATE_KEY],
},
Bedrock: {
// url: "https://goerli.optimism.io",
url: `https://opt-goerli.g.alchemy.com/v2/${INFURA_API_KEY}`,
// gasPrice: 1000000000,
accounts: [PRIVATE_KEY],
},
zkEVM: {
url: `https://rpc.public.zkevm-test.net`,
// url: `https://polygon-zkevm-testnet.rpc.thirdweb.com`,
// gasPrice: 10000000000,
accounts: [PRIVATE_KEY],
},
mantle: {
url: "https://rpc.testnet.mantle.xyz/",
accounts: [PRIVATE_KEY], // Uses the private key from the .env file
},
},
etherscan: {
customChains: [
{
network: "chiado",
chainId: 10200,
urls: {
//Blockscout
apiURL: "https://blockscout.com/gnosis/chiado/api",
browserURL: "https://blockscout.com/gnosis/chiado",
},
},
{
network: "gnosis",
chainId: 100,
urls: {
// 3) Select to what explorer verify the contracts
// Gnosisscan
apiURL: "https://api.gnosisscan.io/api",
browserURL: "https://gnosisscan.io/",
// Blockscout
//apiURL: "https://blockscout.com/xdai/mainnet/api",
//browserURL: "https://blockscout.com/xdai/mainnet",
},
},
{
network: "Bedrock",
urls: {
apiURL: "",
browserURL: "https://goerli-optimism.etherscan.io/",
},
},
],
apiKey: {
//4) Insert your Gnosisscan API key
//blockscout explorer verification does not require keys
chiado: "your key",
gnosis: "your key",
},
},
};