-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhardhat.config.ts
More file actions
48 lines (46 loc) · 1.26 KB
/
hardhat.config.ts
File metadata and controls
48 lines (46 loc) · 1.26 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
import { HardhatUserConfig } from "hardhat/config"
import "@shardlabs/starknet-hardhat-plugin"
import "@nomiclabs/hardhat-etherscan"
import "@nomiclabs/hardhat-ethers"
require("dotenv").config()
import "@nomiclabs/hardhat-waffle"
const config: HardhatUserConfig = {
solidity: {
version: "0.8.9",
settings: {
optimizer: {
enabled: true,
runs: 200,
},
},
},
starknet: {
venv: "cairo_venv",
network: "alpha-goerli", // testnet
// network: "localhost", // testing
wallets: {
OpenZeppelin: {
accountName: "OpenZeppelin",
modulePath: "starkware.starknet.wallets.open_zeppelin.OpenZeppelinAccount",
accountPath: "~/.starknet_accounts",
},
},
},
networks: {
goerli: {
url: `https://eth-goerli.g.alchemy.com/v2/${process.env.ALCHEMY_API_KEY}`,
chainId: 5,
accounts: [process.env.DEPLOYER_PRIVATE_KEY || ""],
},
localhost: {
url: "http://127.0.0.1:5050",
},
},
etherscan: {
apiKey: process.env.ETHERSCAN_API_KEY,
},
mocha: {
timeout: "100000",
},
}
export default config