-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathhardhat.config.ts
68 lines (64 loc) · 1.44 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
import { HardhatUserConfig } from "hardhat/config";
import "@gelatonetwork/web3-functions-sdk/hardhat-plugin";
import "@nomicfoundation/hardhat-chai-matchers";
import "@nomiclabs/hardhat-ethers";
import "@typechain/hardhat";
import "hardhat-deploy";
import "dotenv";
const RPC_PROVIDER = process.env.RPC_PROVIDER;
const PRIVATE_KEY = process.env.PRIVATE_KEY;
const ETHERSCAN_KEY = process.env.ETHERSCAN_KEY;
import assert from "assert";
assert.ok(RPC_PROVIDER, "Missing RPC_PROVIDER in .env");
const config: HardhatUserConfig = {
w3f: {
rootDir: "./web3-functions",
debug: false,
networks: ["ethereum"],
},
solidity: {
compilers: [
{
version: "0.8.21",
settings: {
optimizer: { enabled: true, runs: 999999 },
evmVersion: "paris",
},
},
],
},
typechain: {
outDir: "typechain",
target: "ethers-v5",
},
namedAccounts: {
deployer: {
default: 0,
},
gelato: {
default: "0x3CACa7b48D0573D793d3b0279b5F0029180E83b6",
},
gearMultisig: {
default: "0x7b065Fcb0760dF0CEA8CFd144e08554F3CeA73D1",
},
},
networks: {
hardhat: {
forking: {
url: RPC_PROVIDER,
blockNumber: 17649538,
},
},
ethereum: {
chainId: 1,
url: RPC_PROVIDER,
accounts: PRIVATE_KEY ? [PRIVATE_KEY] : [],
},
},
verify: {
etherscan: {
apiKey: ETHERSCAN_KEY,
},
},
};
export default config;