-
Notifications
You must be signed in to change notification settings - Fork 0
/
hardhat.config.ts
53 lines (50 loc) · 1.25 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
import { HardhatUserConfig } from "hardhat/config";
import '@oasisprotocol/sapphire-hardhat';
import "@nomicfoundation/hardhat-toolbox";
import '@nomiclabs/hardhat-truffle5';
import "./tasks/monitor";
import "./tasks/mint";
import "./tasks/pubkeys";
import "./tasks/transfer";
import "./tasks/burn";
import "./tasks/deploy";
import "./tasks/fetch-ethplorer";
const config: HardhatUserConfig = {
solidity: {
version: "0.8.18",
settings: {
optimizer: {
enabled: true,
runs: 200,
}
},
},
networks: {
hardhat: {
chainId: 1337 // We set 1337 to make interacting with MetaMask simpler
},
sapphire_local: {
url: "http://localhost:8545",
accounts: process.env.PRIVATE_KEY
? [process.env.PRIVATE_KEY]
: [],
chainId: 0x5afd,
},
// https://docs.oasis.io/dapp/sapphire/
sapphire_mainnet: {
url: "https://sapphire.oasis.io/",
accounts: process.env.PRIVATE_KEY
? [process.env.PRIVATE_KEY]
: [],
chainId: 0x5afe,
},
sapphire_testnet: {
url: "https://testnet.sapphire.oasis.dev",
accounts: process.env.PRIVATE_KEY
? [process.env.PRIVATE_KEY]
: [],
chainId: 0x5aff,
}
}
};
export default config;