forked from 0xSpaceShard/starknet-hardhat-example
-
Notifications
You must be signed in to change notification settings - Fork 0
/
hardhat.config.ts
74 lines (69 loc) · 2.43 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
import { HardhatUserConfig } from "hardhat/types";
import "@shardlabs/starknet-hardhat-plugin";
import "@nomiclabs/hardhat-ethers";
import * as dotenv from "dotenv";
dotenv.config();
/**
* @type import('hardhat/config').HardhatUserConfig
*/
const config: HardhatUserConfig = {
solidity: "0.6.12",
starknet: {
dockerizedVersion: "0.11.2", // alternatively choose one of the two venv options below
// uses (my-venv) defined by `python -m venv path/to/my-venv`
// venv: "path/to/my-venv",
// Instead of using the dockerized Scarb, uses the command you provide here
// Can be a path or a resolvable command
// scarbCommand: "scarb",
// uses the currently active Python environment (hopefully with available Starknet commands!)
// venv: "active",
recompile: false,
// the directory containing Cairo 1 compiler binaries
// cairo1BinDir: "path/to/to/compiler/target/release",
network: "integrated-devnet",
wallets: {
OpenZeppelin: {
accountName: "OpenZeppelin",
modulePath: "starkware.starknet.wallets.open_zeppelin.OpenZeppelinAccount",
accountPath: "~/.starknet_accounts"
}
}
},
networks: {
devnet: {
url: "http://127.0.0.1:5050"
},
integration: {
url: "https://external.integration.starknet.io"
},
integratedDevnet: {
url: "http://127.0.0.1:5050",
// venv: "active",
// dockerizedVersion: "<DEVNET_VERSION>",
args: [
// Uncomment the lines below to activate Devnet features in your integrated-devnet instance
// Read about Devnet options here: https://0xSpaceShard.github.io/starknet-devnet/docs/guide/run
//
// *Account predeployment*
"--seed",
"42"
// "--accounts",
// "1",
// "--initial-balance", <VALUE>
//
// *Forking*
// "--fork-network",
// "alpha-goerli2"
// "--fork-block", <VALUE>
//
// *Chain ID*
// "--chain-id", <VALUE>
//
// *Gas price*
// "--gas-price", <VALUE>
]
},
hardhat: {}
}
};
export default config;