-
Notifications
You must be signed in to change notification settings - Fork 0
/
hardhat.config.js
94 lines (88 loc) · 2.44 KB
/
hardhat.config.js
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
require('@babel/register')({
ignore: [
function (filepath) {
// don't let babel translate mjs
return /@rougenetwork\/v2-core\/rouge/.test(filepath)
}
]
})
const dotenv = require('dotenv')
require('@nomiclabs/hardhat-ethers')
require('hardhat-deploy')
require('@nomiclabs/hardhat-waffle')
//require('hardhat-gas-reporter')
dotenv.config()
dotenv.config({ path: '.server.env' })
const fs = require('fs')
const mnemonic = fs.readFileSync('env/.mnemonic').toString().trim()
const deployer = fs.readFileSync('env/.deployer').toString().trim()
module.exports = {
solidity: {
version: '0.8.18',
settings: {
optimizer: {
enabled: true,
runs: 3000
}
}
},
namedAccounts: {
deployer: {
default: 0, // here this will by default take the first account as deployer
oeth: `privatekey://${deployer}`,
gno: `privatekey://${deployer}`
},
RougeSingleton: {
default: '0x376438641eB95A31b3AA9BD5bAe4b635577BBE74',
oeth: '0x0a7f68446D0360ff1132d967C371a6DF08169bd5',
'scr-alpha': '0x90713Dd7F05361317b2aBb5E5998b819099dDFaf',
'taiko-a2': '0x90713Dd7F05361317b2aBb5E5998b819099dDFaf',
gno: '0x0a7f68446D0360ff1132d967C371a6DF08169bd5',
'testnet-zkEVM-mango': '0x90713Dd7F05361317b2aBb5E5998b819099dDFaf'
},
RougeProxyFactory: {
default: '0x9dA37D0256c0d0fEBD7C7bc677af301E4e960daB',
oeth: '0xA0D17b2b99bB9BE256c6091526a627B7bB1b6f25',
'scr-alpha': '0xA6e904D88370D25e8Af3c6Eec7ecdD23a8d8BC83',
'taiko-a2': '0xA6e904D88370D25e8Af3c6Eec7ecdD23a8d8BC83',
gno: '0xA0D17b2b99bB9BE256c6091526a627B7bB1b6f25',
'testnet-zkEVM-mango': '0xA6e904D88370D25e8Af3c6Eec7ecdD23a8d8BC83'
}
},
networks: {
hardhat: {},
geth: {
url: 'http://127.0.0.1:8545/',
accounts: { mnemonic }
},
'testnet-zkEVM-mango': {
// 1442
url: `https://rpc.public.zkevm-test.net`,
accounts: { mnemonic }
},
'mantle-testnet': {
// 5001
url: 'https://rpc.testnet.mantle.xyz/',
accounts: { mnemonic }
},
'taiko-a2': {
// 167004
url: 'https://rpc.a2.taiko.xyz',
accounts: { mnemonic }
},
'scr-alpha': {
// 534353
url: `https://alpha-rpc.scroll.io/l2`,
accounts: { mnemonic }
},
// main nets
oeth: {
// 10
url: `${process.env.OPTIMISM_RPC}`
},
gno: {
// 100
url: 'https://rpc.ankr.com/gnosis'
}
}
}