-
Notifications
You must be signed in to change notification settings - Fork 0
/
hardhat.config.ts
63 lines (59 loc) · 1.32 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
import { HardhatUserConfig } from "hardhat/config";
import '@oasisprotocol/sapphire-hardhat';
import "@nomicfoundation/hardhat-toolbox";
const env_private_key = process.env.PRIVATE_KEY ? [process.env.PRIVATE_KEY] : [];
const TEST_HDWALLET = {
mnemonic: "test test test test test test test test test test test junk",
path: "m/44'/60'/0'/0",
initialIndex: 0,
count: 20,
passphrase: "",
};
const config: HardhatUserConfig = {
mocha: {
timeout: 400000
},
paths: {
tests: "./tests"
},
solidity: {
version: "0.8.18",
settings: {
viaIR: false,
/*
debug: {
revertStrings: "debug"
},
*/
optimizer: {
enabled: true,
runs: 200,
}
},
},
typechain: {
target: "ethers-v6"
},
networks: {
hardhat: {
chainId: 1337 // We set 1337 to make interacting with MetaMask simpler
},
sapphire_local: {
url: "http://localhost:8545",
accounts: TEST_HDWALLET,
chainId: 0x5afd,
},
// https://docs.oasis.io/dapp/sapphire/
sapphire_mainnet: {
url: "https://sapphire.oasis.io/",
accounts: env_private_key,
chainId: 0x5afe,
},
sapphire_testnet: {
url: "https://testnet.sapphire.oasis.dev",
accounts: TEST_HDWALLET,
chainId: 0x5aff,
}
}
};
export default config;