-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathhardhat.config.ts
58 lines (55 loc) · 1.62 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
import '@typechain/hardhat'
import '@nomiclabs/hardhat-ethers'
import '@nomicfoundation/hardhat-chai-matchers'
import * as tdly from '@tenderly/hardhat-tenderly'
import * as dotenv from 'dotenv'
dotenv.config()
tdly.setup({ automaticVerifications: true })
const { TENDERLY_ACCESS_KEY, TENDERLY_PROJECT_SLUG } = process.env
const DEVNET_RPC_URL = process.env.DEVNET_RPC_URL ?? ''
const DEFAULT_PRIVATE_KEY =
'0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80'
export default {
defaultNetwork: 'local',
networks: {
hardhat: {
blockGasLimit: 12000000,
},
local: {
url: 'http://127.0.0.1:8545',
blockGasLimit: 12000000,
accounts: [DEFAULT_PRIVATE_KEY],
},
dev: {
url: process.env.ETH_PROVIDER_URL ?? '',
accounts: [process.env.PRIVATE_KEY ?? DEFAULT_PRIVATE_KEY],
},
prod: {
url: process.env.ETH_PROVIDER_URL ?? '',
accounts: [process.env.PRIVATE_KEY ?? DEFAULT_PRIVATE_KEY],
},
tenderly: {
url: DEVNET_RPC_URL,
chainId: 137,
accounts: [process.env.PRIVATE_KEY ?? DEFAULT_PRIVATE_KEY],
},
},
tenderly: {
project: TENDERLY_PROJECT_SLUG || 'devnet-example',
username: 'Tenderly',
accessKey: TENDERLY_ACCESS_KEY,
},
solidity: {
compilers: [
{
version: '0.8.17',
settings: {
optimizer: { enabled: true, runs: 999999 },
},
},
],
},
mocha: {
timeout: 0,
},
}