-
Notifications
You must be signed in to change notification settings - Fork 24
/
Copy pathhardhat.config.ts
48 lines (45 loc) · 1.4 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
import { HardhatUserConfig } from "hardhat/types";
import "@shardlabs/starknet-hardhat-plugin";
import "@nomiclabs/hardhat-ethers";
require("dotenv").config();
/**
* @type import('hardhat/config').HardhatUserConfig
*/
const config: HardhatUserConfig = {
solidity: "0.6.12",
starknet: {
// dockerizedVersion: "0.9.1", // alternatively choose one of the two venv options below
// uses (my-venv) defined by `python -m venv path/to/my-venv`
venv: "./cairo_venv",
// uses the currently active Python environment (hopefully with available Starknet commands!)
// venv: "active",
network: "devnet", // hardhat, localhost, goerli-alpha, devnet, integratedDevnet, alpha, alphaMainnet
wallets: {
OpenZeppelin: {
accountName: "OpenZeppelin",
modulePath:
"starkware.starknet.wallets.open_zeppelin.OpenZeppelinAccount",
accountPath: "~/.starknet_accounts",
},
},
recompile: false
},
mocha: {
timeout: 6000000,
},
networks: {
"goerli-alpha": { url: "https://alpha4.starknet.io" },
devnet: {
url: "http://127.0.0.1:5050",
args: ["--lite-mode", "--gas-price", "2000000000"],
},
integratedDevnet: {
url: "http://127.0.0.1:5050",
// venv: "active",
// dockerizedVersion: "<DEVNET_VERSION>",
args: ["--lite-mode", "--gas-price", "2000000000"],
},
hardhat: {},
},
};
export default config;