-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathhardhat.config.js
More file actions
51 lines (48 loc) · 1.01 KB
/
hardhat.config.js
File metadata and controls
51 lines (48 loc) · 1.01 KB
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
import '@nomicfoundation/hardhat-toolbox';
import dotenv from 'dotenv';
dotenv.config({
quiet: true,
});
let accounts;
if (process.env.PRIVATE_KEY) {
accounts = [process.env.PRIVATE_KEY];
}
else if (process.env.SEED_PHRASE) {
accounts = {
mnemonic: process.env.SEED_PHRASE,
path: "m/44'/60'/0'/0",
initialIndex: 0,
count: 5,
};
} else {
accounts = [];
}
/** @type import('hardhat/config').HardhatUserConfig */
export default {
solidity: '0.8.28',
networks: {
inj_testnet: {
url: process.env.INJ_TESTNET_RPC_URL || 'https://k8s.testnet.json-rpc.injective.network/',
accounts,
chainId: 1439,
},
},
etherscan: {
apiKey: {
inj_testnet: 'nil',
},
customChains: [
{
network: 'inj_testnet',
chainId: 1439,
urls: {
apiURL: 'https://testnet.blockscout-api.injective.network/api',
browserURL: 'https://testnet.blockscout.injective.network/',
},
},
],
},
sourcify: {
enabled: false,
},
};