forked from UXLINK/uxlink
-
Notifications
You must be signed in to change notification settings - Fork 0
/
hardhat.config.js
73 lines (70 loc) · 1.72 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
require("@nomicfoundation/hardhat-toolbox");
require("@nomiclabs/hardhat-etherscan");
/** @type import('hardhat/config').HardhatUserConfig */
require('dotenv').config();
const AURORA_PRIVATE_KEY = process.env.AURORA_PRIVATE_KEY;
const alchemy_APIKEY = process.env.alchemy_APIKEY;
const ETHERSCAN_API_KEY = process.env.ETHERSCAN_API_KEY; // arb
const ETHERSCAN_API_KEY_MAIN = process.env.ETHERSCAN_API_KEY_MAIN
module.exports = {
solidity: "0.8.19",
solidity: {
compilers: [
{
version: "0.7.6",
},
{
version: "0.8.0",
},
{
version: "0.8.19",
},
],
},
settings: {
viaIR: true,
optimizer: {
enabled: true,
details: {
yulDetails: {
optimizerSteps: "u",
},
},
},
},
etherscan: {
apiKey: {
arbitrumGoerli: ETHERSCAN_API_KEY,
goerli: ETHERSCAN_API_KEY_MAIN,
arbitrumOne:ETHERSCAN_API_KEY,
}
},
networks: {
arb_goerli: {
url: 'https://arb-goerli.g.alchemy.com/v2/'+`${alchemy_APIKEY}`,
accounts: [`0x${AURORA_PRIVATE_KEY}`],
chainId: 421613,
},
arb: {
url: 'https://arb-mainnet.g.alchemy.com/v2/'+`${alchemy_APIKEY}`,
accounts: [`0x${AURORA_PRIVATE_KEY}`],
chainId: 42161,
},
goerli: {
url: `https://eth-goerli.alchemyapi.io/v2/${alchemy_APIKEY}`,
accounts: [`0x${AURORA_PRIVATE_KEY}`],
chainId: 5,
},
testnet_aurora: {
url: 'https://testnet.aurora.dev',
accounts: [`0x${AURORA_PRIVATE_KEY}`],
chainId: 1313161555,
},
local_aurora: {
url: 'http://localhost:8545',
accounts: [`0x${AURORA_PRIVATE_KEY}`],
chainId: 1313161555,
gasPrice: 120 * 1000000000
},
}
};