-
Notifications
You must be signed in to change notification settings - Fork 2
/
hardhat.config.ts
101 lines (96 loc) · 2.53 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
import '@nomicfoundation/hardhat-foundry';
import '@nomicfoundation/hardhat-toolbox';
import { HardhatUserConfig } from 'hardhat/config';
import dotenv from 'dotenv';
dotenv.config();
const TEST_ACCOUNTS = {
mnemonic: 'fox sight canyon orphan hotel grow hedgehog build bless august weather swarm',
path: 'm/44\'/60\'/0\'/0',
};
const MY_ACCOUNTS = process.env.KEY ? process.env.KEY.split(',') : [];
const config: HardhatUserConfig = {
solidity: '0.8.18',
networks: {
mandala: {
url: 'http://127.0.0.1:8545',
accounts: MY_ACCOUNTS,
chainId: 595,
},
karuraTestnet: {
url: 'https://eth-rpc-karura-testnet.aca-staging.network',
accounts: MY_ACCOUNTS,
chainId: 596,
},
acalaTestnet: {
url: 'https://eth-rpc-acala-testnet.aca-staging.network',
accounts: MY_ACCOUNTS,
chainId: 597,
},
acalaFork: {
url: 'https://crosschain-dev.polkawallet.io/chopsticksAcalaRpc',
accounts: MY_ACCOUNTS,
chainId: 787,
},
local: {
url: 'http://127.0.0.1:8545',
accounts: MY_ACCOUNTS,
chainId: 787,
},
karura: {
url: 'https://eth-rpc-karura.aca-api.network',
accounts: MY_ACCOUNTS,
chainId: 686,
},
acala: {
url: 'https://eth-rpc-acala.aca-api.network',
accounts: MY_ACCOUNTS,
chainId: 787,
},
},
mocha: {
timeout: 600000, // 10 min
},
etherscan: {
apiKey: {
karuraTestnet: 'no-api-key-needed',
acalaTestnet: 'no-api-key-needed',
karura: 'no-api-key-needed',
acala: 'no-api-key-needed',
},
customChains: [
{
network: 'karuraTestnet',
chainId: 596,
urls: {
apiURL: 'https://blockscout.karura-testnet.aca-staging.network/api',
browserURL: 'https://blockscout.karura-testnet.aca-staging.network',
},
},
{
network: 'acalaTestnet',
chainId: 597,
urls: {
apiURL: 'https://blockscout.acala-testnet.aca-staging.network/api',
browserURL: 'https://blockscout.acala-testnet.aca-staging.network',
},
},
{
network: 'karura',
chainId: 686,
urls: {
apiURL: 'https://blockscout.karura.network/api',
browserURL: 'https://blockscout.karura.network',
},
},
{
network: 'acala',
chainId: 787,
urls: {
apiURL: 'https://blockscout.acala.network/api',
browserURL: 'https://blockscout.acala.network',
},
},
],
},
};
export default config;