-
Notifications
You must be signed in to change notification settings - Fork 0
/
hardhat.config.ts
50 lines (47 loc) · 1.19 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
import "@nomicfoundation/hardhat-toolbox";
import "dotenv/config";
import { HardhatUserConfig } from "hardhat/config";
import "./tasks/deploySC";
import "./tasks/verifySC";
const DEFAULT_MNEMONIC = "test test test test test test test test test test test junk";
const privateKey = process.env.PRIVATE_KEY;
if (!privateKey) {
throw new Error("private key not found");
}
const config: HardhatUserConfig = {
solidity: "0.8.24",
networks: {
hardhat: {
initialDate: "0",
allowUnlimitedContractSize: true,
initialBaseFeePerGas: 0,
accounts: {
mnemonic: process.env.MNEMONIC || DEFAULT_MNEMONIC,
path: "m/44'/60'/0'/0",
initialIndex: 0,
count: 20,
},
},
biteigenTestnet: {
url: "https://rpc-testnet.biteigen.xyz",
chainId: 1022,
accounts: [`0x${privateKey}`]
},
},
etherscan: {
apiKey: {
biteigenTestnet: "apikey",
},
customChains: [
{
network: "biteigenTestnet",
chainId: 1022,
urls: {
apiURL: "https://explorer-testnet.biteigen.xyz/api",
browserURL: "https://explorer-testnet.biteigen.xyz/",
}
}
],
},
};
export default config;