-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathhardhat.config.ts
52 lines (48 loc) · 1.15 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
import { HardhatUserConfig } from "hardhat/config";
import "@nomicfoundation/hardhat-toolbox";
import dotenv from "dotenv";
dotenv.config({ path: ".env" });
if (!process.env.WALLET_KEY_TESTNET) {
throw new Error("Provide Testnet Wallet API Key");
}
const WALLET_KEY_TESTNET = process.env.WALLET_KEY_TESTNET as string;
const config: HardhatUserConfig = {
solidity: {
compilers: [
{
version: "0.8.20",
settings: {
optimizer: {
enabled: false,
runs: 200,
},
},
},
],
},
etherscan: {
apiKey: {
bartio_testnet: "bartio_testnet", // apiKey is not required, just set a placeholder
},
customChains: [
{
network: "bartio_testnet",
chainId: 80084,
urls: {
apiURL:
"https://api.routescan.io/v2/network/testnet/evm/80084/etherscan",
browserURL: "https://bartio.beratrail.io",
},
},
],
},
networks: {
// for devnet
bartio_testnet: {
url: `https://bartio.rpc.berachain.com/`,
accounts: [WALLET_KEY_TESTNET],
gasPrice: 1000000000,
},
},
};
export default config;