-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhardhat.config.ts
89 lines (81 loc) · 2.59 KB
/
hardhat.config.ts
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
import 'dotenv/config';
import { HardhatUserConfig } from 'hardhat/types';
import 'hardhat-deploy';
import 'hardhat-deploy-ethers';
import '@typechain/hardhat';
import 'solidity-coverage';
import "@nomiclabs/hardhat-etherscan";
import "@nomiclabs/hardhat-waffle";
const config: HardhatUserConfig = {
solidity: {
compilers: [
{
version: "0.8.10",
},
]
},
networks: {
hardhat: {
},
bsc_testnet: {
url: "https://data-seed-prebsc-1-s1.binance.org:8545/",
accounts: [process.env.DEPLOYER_PRIVATE_KEY!],
saveDeployments: true,
tags: ["staging"],
},
bsc_mainnet: {
url: "https://bsc-dataseed.binance.org/",
accounts: [process.env.DEPLOYER_PRIVATE_KEY!],
saveDeployments: true,
tags: ["staging"],
},
mumbai_testnet: {
url: "https://polygon-mumbai.g.alchemy.com/v2/UcJQZqq6LT_gfzyMrFZh0PD0GWni4R6a",
accounts: process.env.DEPLOYER_PRIVATE_KEY
? [process.env.DEPLOYER_PRIVATE_KEY as string]
: undefined,
},
polygon_mainnet: {
url: "https://polygon-mumbai.g.alchemy.com/v2/UcJQZqq6LT_gfzyMrFZh0PD0GWni4R6a",
accounts: process.env.DEPLOYER_PRIVATE_KEY
? [process.env.DEPLOYER_PRIVATE_KEY as string]
: undefined,
},
goerli_testnet: {
url: "https://eth-goerli.g.alchemy.com/v2/9uBn6tP-dnV1Q--N63iq6RHmF6wNMEWH",
accounts: process.env.DEPLOYER_PRIVATE_KEY
? [process.env.DEPLOYER_PRIVATE_KEY as string]
: undefined,
},
},
namedAccounts: {
deployer: {
default: 0,
goerli_testnet: '0xe699c7548B1E4ecFb124c4b09ebB33cEC6766975'
},
admin: {
goerli_testnet: '0xe699c7548B1E4ecFb124c4b09ebB33cEC6766975',
},
tokenBeneficiary: {
default: 0,
goerli_testnet: '0xe699c7548B1E4ecFb124c4b09ebB33cEC6766975'
},
},
paths: {
sources: 'contracts',
},
typechain: {
outDir: 'types',
target: 'ethers-v5',
},
etherscan: {
apiKey: {
goerli: process.env.EXPLORER_API_KEY_MAINNET || '',
// add other network's API key here
polygonMumbai: process.env.EXPLORER_API_KEY_POLYGON || '',
bscTestnet: process.env.EXPLORER_API_KEY_BSC || '',
bsc: process.env.EXPLORER_API_KEY_BSC || ''
},
},
};
export default config;