forked from w3hc/w3hc-hardhat-template
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathhardhat.config.ts
60 lines (57 loc) · 1.44 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
import { HardhatUserConfig } from "hardhat/config"
import "@nomicfoundation/hardhat-toolbox"
// import "@nomicfoundation/hardhat-verify"
import "hardhat-deploy"
import * as dotenv from "dotenv"
import "./tasks/mint"
import "./tasks/send"
dotenv.config()
const {
GOERLI_RPC_ENDPOINT_URL,
GOERLI_PRIVATE_KEY,
ETHERSCAN_API_KEY,
ARTHERA_TESTNET_RPC_ENDPOINT_URL,
ARTHERA_TESTNET_PRIVATE_KEY
} = process.env
const config: HardhatUserConfig = {
defaultNetwork: "hardhat",
namedAccounts: {
deployer: 0
},
networks: {
hardhat: {
chainId: 1337,
allowUnlimitedContractSize: true
},
goerli: {
url:
GOERLI_RPC_ENDPOINT_URL || "https://goerli.gateway.tenderly.co",
accounts:
GOERLI_PRIVATE_KEY !== undefined ? [GOERLI_PRIVATE_KEY] : []
},
"arthera-testnet": {
url:
ARTHERA_TESTNET_RPC_ENDPOINT_URL ||
"https://rpc-test.arthera.net",
accounts:
ARTHERA_TESTNET_PRIVATE_KEY !== undefined
? [ARTHERA_TESTNET_PRIVATE_KEY]
: []
}
},
solidity: {
version: "0.8.19",
settings: {
optimizer: {
enabled: true,
runs: 200
}
}
},
// etherscan: {
// apiKey: {
// goerli: ETHERSCAN_API_KEY || ""
// }
// }
}
export default config