-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathhardhat.config.ts
43 lines (39 loc) · 1.06 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
import { HardhatUserConfig } from "hardhat/config";
import "@nomicfoundation/hardhat-toolbox";
// see https://github.com/motdotla/dotenv#how-do-i-use-dotenv-with-import
import * as dotenv from 'dotenv'
dotenv.config()
const config: HardhatUserConfig = {
solidity: "0.8.17",
networks: {
hardhat: {},
goerli: {
url: `https://eth-goerli.g.alchemy.com/v2/${process.env['ALCHEMY_API']}`,
chainId: 5,
accounts: [process.env['FROM'] || ''],
},
altDevNet: {
url: "https://devnet-rpc.altlayer.io/",
chainId: 9990,
accounts: [process.env['FROM'] || ''],
}
},
// Refer to setting in blockscout:
// https://docs.blockscout.com/for-users/verifying-a-smart-contract/hardhat-verification-plugin
etherscan: {
apiKey: {
altDevNet: "abc"
},
customChains: [
{
network: "altDevNet",
chainId: 9990,
urls: {
apiURL: "https://devnet-explorer.altlayer.io/api",
browserURL: "https://devnet-explorer.altlayer.io"
}
}
]
}
};
export default config;