-
Notifications
You must be signed in to change notification settings - Fork 5
/
hardhat.config.js
69 lines (64 loc) · 1.63 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
require("@nomicfoundation/hardhat-toolbox");
require("@nomiclabs/hardhat-etherscan");
/** @type import('hardhat/config').HardhatUserConfig */
require("dotenv").config();
/**
*
* PRIVATE_KEY
*
* • Enter your Ethereum wallet private key here.
* • Make sure to keep your private key secure to avoid any leaks.
* • Format: PRIVATE_KEY=your-wallet-private-key.
*
* alchemyNetworkUrl
*
* • Enter the node URL provided by Alchemy, which is used to connect to the Arbitrum Goerli testnet.
* • Register with Alchemy to obtain the appropriate URL.
*
* Visit Alchemy’s official website.
* Create an account and log in.
* Create a new app in the Alchemy dashboard and select the network as Arbitrum Goerli.
* Obtain the API Key for the app and construct the full node URL (e.g., https://arb-goerli.alchemyapi.io/v2/your-api-key).
* Fill the URL into the alchemyNetworkUrl variable.
**/
const PRIVATE_KEY = "your-wallet-private-key";
const alchemyNetworkUrl = "https://arb-goerli.alchemyapi.io/v2/your-api-key";
module.exports = {
solidity: "0.8.19",
solidity: {
compilers: [
{
version: "0.7.6",
},
{
version: "0.8.0",
},
{
version: "0.8.21",
},
],
},
settings: {
viaIR: true,
optimizer: {
enabled: true,
details: {
yulDetails: {
optimizerSteps: "u",
},
},
},
},
etherscan: {
apiKey: {
arbitrumGoerli: PRIVATE_KEY,
},
},
networks: {
arb_goerli: {
url: alchemyNetworkUrl,
accounts: [`0x${PRIVATE_KEY}`],
chainId: 421614, // arb arb-goerli chainId
},
},
};