-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathhardhat.config.ts
123 lines (121 loc) · 3 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
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
import '@1hive/hardhat-aragon';
import '@nomiclabs/hardhat-ethers';
import '@nomiclabs/hardhat-waffle';
import '@nomicfoundation/hardhat-verify';
import '@tenderly/hardhat-tenderly';
import '@typechain/hardhat';
import 'dotenv/config';
import 'hardhat-deploy';
import { HardhatUserConfig } from 'hardhat/types';
const config: HardhatUserConfig = {
solidity: {
compilers: [
{
version: '0.4.24',
settings: {
optimizer: {
enabled: true,
runs: 10000,
},
},
},
{
version: '0.7.6',
settings: {
optimizer: {
enabled: true,
runs: 10000,
},
},
},
],
},
aragon: {
appSrcPath: 'app/',
appEnsName: 'superfluid.open.aragonpm.eth',
appContractName: 'Superfluid',
appRoles: [
{
id: 'MANAGE_STREAMS_ROLE',
name: 'Manage payment streams',
params: [],
},
{
id: 'SET_AGENT_ROLE',
name: 'Set an agent',
params: [],
},
{
id: 'MANAGE_SUPERTOKENS_ROLE',
name: 'Manage SuperTokens amount',
params: [],
},
],
appBuildOutputPath: 'dist',
},
networks: {
hardhat: {
initialBaseFeePerGas: 0,
forking: process.env.HARDHAT_FORK
? {
url: process.env.HARDHAT_FORK,
blockNumber: process.env.HARDHAT_FORK_BLOCK_NUMBER
? parseInt(process.env.HARDHAT_FORK_BLOCK_NUMBER)
: undefined,
enabled: true,
}
: undefined,
},
goerli: {
url: 'https://rpc.ankr.com/eth_goerli',
ensRegistry: '0x8cF5A255ED61F403837F040B8D9f052857469273',
appEnsName: 'superfluid.open.aragonpm.eth',
},
gnosis: {
url: 'https://gnosis.publicnode.com',
ensRegistry: '0xaafca6b0c89521752e559650206d7c925fd0e530',
appEnsName: 'superfluid.open.aragonpm.eth',
},
polygon: {
url: 'https://polygon-rpc.com',
appEnsName: 'superfluid.open.aragonpm.eth',
// Aragon ENS registry
// ensRegistry: '0x3c70a0190d09f34519e6e218364451add21b7d4b',
// 1Hive ENS registry
// ensRegistry: '0x7EdE100965B1E870d726cD480dD41F2af1Ca0130',
// 1Hive ENS registry being used on the client:
ensRegistry: '0x4E065c622d584Fbe5D9078C3081840155FA69581',
},
frame: {
url: 'http://localhost:1248',
httpHeaders: { origin: 'hardhat' },
timeout: 0,
gas: 0,
},
},
ipfs: {
url: 'http://127.0.0.1:5001/',
gateway: 'https://ipfs.blossom.software/',
pinata: {
key: process.env.PINATA_KEY || '',
secret: process.env.PINATA_SECRET_KEY || '',
},
},
mocha: {
timeout: 0,
},
tenderly: {
username: process.env.HARDHAT_TENDERLY_USERNAME,
project: process.env.HARDHAT_TENDERLY_PROJECT,
},
etherscan: {
apiKey: {
xdai: process.env.ETHERSCAN_API_KEY_XDAI || '',
},
},
typechain: {
outDir: 'typechain',
target: 'ethers-v5',
},
};
export default config;