-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathhardhat.config.ts
116 lines (112 loc) · 2.88 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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
import { HardhatUserConfig, task } from "hardhat/config";
import '@nomiclabs/hardhat-ethers';
import '@nomiclabs/hardhat-waffle';
import "@nomiclabs/hardhat-etherscan";
import '@primitivefi/hardhat-dodoc';
import '@typechain/hardhat';
import * as dotenv from "dotenv";
dotenv.config();
// You need to export an object to set up your config
// Go to https://hardhat.org/config/ to learn more
const config: HardhatUserConfig = {
solidity: {
version: "0.8.18",
settings: {
optimizer: {
enabled: true,
runs: 20000
}
}
},
networks: {
mandala: {
url: 'http://127.0.0.1:8545', // https://eth-rpc-tc9.aca-staging.network
accounts: {
mnemonic: process.env.MNEMONIC || 'fox sight canyon orphan hotel grow hedgehog build bless august weather swarm',
path: "m/44'/60'/0'/0",
},
chainId: 595
},
karuraTestnet: {
url: 'https://eth-rpc-karura-testnet.aca-staging.network',
accounts: {
mnemonic: process.env.MNEMONIC || '',
},
chainId: 596,
timeout: 120000,
},
acalaTestnet: {
url: 'https://eth-rpc-acala-testnet.aca-staging.network',
accounts: {
mnemonic: process.env.MNEMONIC || '',
},
chainId: 597,
timeout: 120000,
},
karura: {
url: 'https://eth-rpc-karura.aca-api.network',
accounts: {
mnemonic: process.env.MNEMONIC || '',
},
chainId: 686,
timeout: 120000,
},
acala: {
url: 'https://eth-rpc-acala.aca-api.network',
accounts: {
mnemonic: process.env.MNEMONIC || '',
},
chainId: 787,
timeout: 120000,
}
},
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-dev.aca-dev.network/api",
browserURL: "https://blockscout.acala-dev.aca-dev.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",
},
}
],
},
typechain: {
outDir: './contracts/typechain'
},
dodoc: {
outputDir: './contracts/docs'
}
};
export default config;