generated from 0xPARC/circom-starter
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathhardhat.config.cjs
153 lines (146 loc) · 3.97 KB
/
hardhat.config.cjs
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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
require('@nomiclabs/hardhat-waffle')
require('hardhat-gas-reporter')
require('hardhat-contract-sizer')
require('dotenv').config()
require('@nomicfoundation/hardhat-verify')
require('solidity-coverage')
// const { subtask } = require('hardhat/config')
// const {
// TASK_COMPILE_SOLIDITY_GET_SOURCE_PATHS
// } = require('hardhat/builtin-tasks/task-names')
// Add a subtask that sets the action for the TASK_COMPILE_SOLIDITY_GET_SOURCE_PATHS task
//eslint-disable-next-line
// subtask(TASK_COMPILE_SOLIDITY_GET_SOURCE_PATHS).setAction(
// async (_, __, runSuper) => {
// // Get the list of source paths that would normally be passed to the Solidity compiler
// const paths = await runSuper()
// // Apply a filter function to exclude paths that contain the string "ignore"
// let val = paths.filter((p) => !p.includes('Assets') && !p.includes('Game'))
// // console.log(val)
// return val
// }
// )
/**
* @type import('hardhat/config').HardhatUserConfig
*/
const config = {
mocha: {
timeout: 100_000_000
},
solidity: {
compilers: [
{
version: '0.5.1'
},
{
version: '0.6.11'
},
{
version: '0.8.28',
settings: {
viaIR: true,
optimizer: { enabled: true, runs: 200 }
}
}
]
},
networks: {
hardhat: {
accounts: { mnemonic: process.env.deploymentKey },
gasPrice: 1_000_000_000,
blockGasLimit: 20_000_000,
chainId: 12345
// loggingEnabled: false
},
formatest: {
// url: 'https://sepolia.infura.io/v3/' + process.env.INFURA_API_KEY,
url: 'https://rpc.sketchpad-1.forma.art/',
accounts: { mnemonic: process.env.deploymentKey },
gasPrice: 1_000_000_000 // 1 GWEI
},
baseSepolia: {
// network ID: 84532
// url: 'https://sepolia.base.org',
url: process.env.baseSepoliaRPC,
accounts: { mnemonic: process.env.deploymentKey },
gas: 5_000_000,
gasPrice: 100_000_000 // 0.1 GWEI
},
base: {
// network ID: 84532
// url: 'https://sepolia.base.org',
url: process.env.baseRPC,
accounts: { mnemonic: process.env.deploymentKey, initialIndex: 0 },
// gas: 5_000_000,
gasPrice: 50_000_000 // 0.05 GWEI
},
sepolia: {
// url: 'https://sepolia.infura.io/v3/' + process.env.INFURA_API_KEY,
// url: 'https://sepolia.rpc.grove.city/v1/' + process.env.grove,
url: 'https://ethereum-sepolia.blockpi.network/v1/rpc/public',
accounts: { mnemonic: process.env.deploymentKey },
gasPrice: 15_000_000_000, // 10 GWEI
gas: 10_000_000
},
garnet: {
url: 'https://rpc.garnetchain.com',
accounts: { mnemonic: process.env.localKey },
gasPrice: 10_000_000 // 0.01 GWEI
}
},
gasReporter: {
currency: 'USD',
gasPrice: 0.1,
url: 'http://localhost:8545',
coinmarketcap: '38b60711-0559-45f4-8bda-e72f446c8278',
enabled: true,
showMethodSig: true
},
sourcify: {
enabled: false
},
etherscan: {
apiKey: {
mainnet: process.env.etherscanApiNew,
sepolia: process.env.etherscanApiNew,
base: process.env.etherscanApiBase,
baseSepolia: process.env.etherscanApiBase
},
customChains: [
{
network: 'garnet',
chainId: 17069,
urls: {
apiURL: 'https://explorer.garnetchain.com/api/',
browserURL: 'https://explorer.garnetchain.com'
}
}
// {
// network: 'baseSepolia',
// chainId: 84532,
// urls: {
// apiURL: 'https://api-sepolia.basescan.org/api',
// browserURL: 'https://sepolia.basescan.org'
// }
// }
]
},
contractSizer: {
alphaSort: true,
disambiguatePaths: false,
runOnCompile: true,
strict: false,
only: [
'AnybodyProblem',
'Tournament',
'Speedruns',
'ExternalMetadata',
'Assets1',
'Assets2',
'Assets3',
'Assets4',
'Assets5'
]
}
}
module.exports = config