forked from pooltogether/v4-testnet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
hardhat.config.ts
97 lines (94 loc) · 3.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
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
import { HardhatUserConfig } from 'hardhat/config';
import 'hardhat-dependency-compiler';
import 'hardhat-deploy';
import '@nomiclabs/hardhat-ethers';
import '@nomiclabs/hardhat-etherscan';
import '@pooltogether/hardhat-deploy-markdown-export';
import networks from './hardhat.network';
import { dependencyCompiler, external } from './hardhat.config.dependencies';
import {
ARBITRUM_GOERLI_CHAIN_ID,
FUJI_CHAIN_ID,
GOERLI_CHAIN_ID,
MUMBAI_CHAIN_ID,
OPTIMISM_GOERLI_CHAIN_ID,
} from './src/constants';
const optimizerEnabled = true;
const config: HardhatUserConfig = {
networks,
external,
dependencyCompiler,
etherscan: {
apiKey: process.env.ETHERSCAN_API_KEY,
},
namedAccounts: {
deployer: {
default: 0,
},
defenderRelayer: {
default: 0,
[GOERLI_CHAIN_ID]: '0x22f928063d7FA5a90f4fd7949bB0848aF7C79b0A', // Ethereum (Goerli) Defender Relayer
[MUMBAI_CHAIN_ID]: '0xbCE45a1C2c1eFF18E77f217A62a44f885b26099f', // Polygon (Mumbai) Defender Relayer
[FUJI_CHAIN_ID]: '0x2d38318C873b7965Ff3cB660461b04561CC487d1', // Avalanche (Fuji) Defender Relayer
[OPTIMISM_GOERLI_CHAIN_ID]: '0x7edb3772c952C0Eb22E156f443A6B91829237592', // Optimism (Goerli) Defender Relayer
[ARBITRUM_GOERLI_CHAIN_ID]: '0xaf57Ac7d4616829645CA1b19e471C1204C185FcC', // Arbitrum (Goerli) Defender Relayer
},
aUSDC: {
default: 0,
[GOERLI_CHAIN_ID]: '0x1Ee669290939f8a8864497Af3BC83728715265FF',
[OPTIMISM_GOERLI_CHAIN_ID]: '0xa0c014681515cB33176A885a0fCE0c458aC5de2d',
[ARBITRUM_GOERLI_CHAIN_ID]: '0x4de6918B9D2c953bb003168D64A49A6A189510D5',
[FUJI_CHAIN_ID]: '0xA79570641bC9cbc6522aA80E2de03bF9F7fd123a',
},
executiveTeam: {
default: 0,
[GOERLI_CHAIN_ID]: '0x27fcf06DcFFdDB6Ec5F62D466987e863ec6aE6A0',
[MUMBAI_CHAIN_ID]: '0x27fcf06DcFFdDB6Ec5F62D466987e863ec6aE6A0',
[FUJI_CHAIN_ID]: '0x27fcf06DcFFdDB6Ec5F62D466987e863ec6aE6A0',
[OPTIMISM_GOERLI_CHAIN_ID]: '0x27fcf06DcFFdDB6Ec5F62D466987e863ec6aE6A0',
[ARBITRUM_GOERLI_CHAIN_ID]: '0x27fcf06DcFFdDB6Ec5F62D466987e863ec6aE6A0',
},
aaveIncentivesController: {
default: 0,
[GOERLI_CHAIN_ID]: '0x0C501fB73808e1BD73cBDdd0c99237bbc481Bb58',
[OPTIMISM_GOERLI_CHAIN_ID]: '0x0C501fB73808e1BD73cBDdd0c99237bbc481Bb58',
[ARBITRUM_GOERLI_CHAIN_ID]: '0xCf9C57744E10495490cB873612Db709417cFe4f4',
[FUJI_CHAIN_ID]: '0x58Cd851c28dF05Edc7F018B533C0257DE57673f7',
},
aaveLendingPoolAddressesProviderRegistry: {
default: 0,
[GOERLI_CHAIN_ID]: '0xC87385b5E62099f92d490750Fcd6C901a524BBcA',
[OPTIMISM_GOERLI_CHAIN_ID]: '0xA33cB62d453891A1DC80F4A092F4990539e5FA07',
[ARBITRUM_GOERLI_CHAIN_ID]: '0x596b5804E1f541baC5f265aF7C4bcc5077522876',
[FUJI_CHAIN_ID]: '0x85E44420b6137bbc75a85CAB5c9A3371af976FdE',
},
messageExecutor: {
[OPTIMISM_GOERLI_CHAIN_ID]: '0xc5165406dB791549f0D2423D1483c1EA10A3A206',
},
},
solidity: {
compilers: [
{
version: '0.8.6',
settings: {
optimizer: {
enabled: optimizerEnabled,
runs: 2000,
},
evmVersion: 'berlin',
},
},
{
version: '0.8.10',
settings: {
optimizer: {
enabled: optimizerEnabled,
runs: 2000,
},
evmVersion: 'london',
},
},
],
},
};
export default config;