-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathhardhat.config.ts
46 lines (43 loc) · 1.24 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
import { HardhatUserConfig, task } from "hardhat/config";
import "@typechain/hardhat";
import "@nomiclabs/hardhat-ethers";
import "@nomiclabs/hardhat-waffle";
import "@shardlabs/starknet-hardhat-plugin";
import { generateContract } from "./scripts/generateContract";
task("generateContract", "represent a JSON as a Starknet smart contract")
.addPositionalParam("json", "path to the JSON file")
.addPositionalParam("name", "name of the generated file")
.setAction(async ({ json, name }, hre) => {
return await generateContract(json, name, hre);
});
const config: HardhatUserConfig = {
solidity: "0.8.9",
paths: {
starknetSources: "contracts",
},
starknet: {
//dockerizedVersion: "0.10.0",
venv: "active",
//network: "devnet",
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",
},
integratedDevnet: {
url: "http://127.0.0.1:5050",
//venv: "active",
// dockerizedVersion: "<DEVNET_VERSION>",
},
},
};
export default config;