-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhardhat.config.ts
45 lines (39 loc) · 1.32 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
import { HardhatUserConfig } from "hardhat/config";
import "@openzeppelin/hardhat-upgrades";
import "@nomicfoundation/hardhat-toolbox";
import * as tdly from "@tenderly/hardhat-tenderly";
tdly.setup({ automaticVerifications: true });
require("dotenv").config();
// Go to https://www.alchemyapi.io, sign up, create
// a new App in its dashboard, and replace "KEY" with its key
const ALCHEMY_API_KEY = process.env.ALCHEMY_API_KEY;
// Replace this private key with your Goerli account private key
// To export your private key from Metamask, open Metamask and
// go to Account Details > Export Private Key
// Beware: NEVER put real Ether into testing accounts
const ACCOUNT_PRIVATE_KEY = process.env.ACCOUNT_PRIVATE_KEY!;
const config: HardhatUserConfig = {
solidity: "0.8.10",
networks: {
hardhat: {
chainId: 1337,
accounts: {
accountsBalance: "10000000000000000000000",
mnemonic: process.env.ACCOUNT_NEUMONIC,
},
},
goerli: {
url: `https://eth-goerli.alchemyapi.io/v2/${ALCHEMY_API_KEY}`,
accounts: [ACCOUNT_PRIVATE_KEY],
},
scroll: {
url: process.env.SCROLL_TESTNET_URL,
accounts: [ACCOUNT_PRIVATE_KEY],
},
},
tenderly: {
project: process.env.TENDERLY_PROJECT ?? "",
username: process.env.TENDERLY_USERNAME ?? "",
},
};
export default config;