-
Notifications
You must be signed in to change notification settings - Fork 2
/
hardhat.config.ts
67 lines (61 loc) · 1.36 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
import {config as dconfig} from 'dotenv'
import '@nomiclabs/hardhat-waffle'
import 'hardhat-deploy-ethers'
import 'hardhat-abi-exporter'
import 'hardhat-deploy'
import { getEnvValSafe } from './tasks/utils'
import './tasks/oracle-updates'
import './tasks/build-blocks'
import './tasks/adblock-init'
import './tasks/mevshare'
import './tasks/adblock'
dconfig()
const SUAVE_PK = getEnvValSafe('SUAVE_PK')
const HOLESKY_PK = getEnvValSafe('HOLESKY_PK')
const RIGIL_PK = getEnvValSafe('RIGIL_PK')
const SUAVE_RPC = getEnvValSafe('SUAVE_RPC')
const HOLESKY_RPC = getEnvValSafe('HOLESKY_RPC')
const RIGIL_RPC = getEnvValSafe('RIGIL_RPC')
const TOLIMAN_RPC = getEnvValSafe('TOLIMAN_RPC')
const TOLIMAN_PK = getEnvValSafe('TOLIMAN_PK')
export default {
solidity: '0.8.13',
defaultNetwork: 'suave',
namedAccounts: {
deployer: {
default: 0,
}
},
networks: {
holesky: {
chainId: 17000,
url: HOLESKY_RPC,
accounts: [ HOLESKY_PK ],
},
suave: {
chainId: 424242,
gasPrice: 0,
url: SUAVE_RPC,
accounts: [ SUAVE_PK ],
companionNetworks: {
holesky: 'holesky',
},
},
rigil: {
chainId: 16813125,
url: RIGIL_RPC,
accounts: [ RIGIL_PK ],
companionNetworks: {
holesky: 'holesky',
},
},
toliman: {
chainId: 33626250,
url: TOLIMAN_RPC,
accounts: [ TOLIMAN_PK ],
companionNetworks: {
holesky: 'holesky',
},
}
}
}