forked from eth-infinitism/trampoline-fork
-
Notifications
You must be signed in to change notification settings - Fork 0
/
hardhat.config.ts
34 lines (31 loc) · 978 Bytes
/
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
// import '@nomiclabs/hardhat-waffle';
import '@nomiclabs/hardhat-ethers';
import 'hardhat-deploy';
import '@typechain/hardhat';
import { HardhatUserConfig } from 'hardhat/types';
import * as fs from 'fs';
import '@nomiclabs/hardhat-etherscan';
import * as dotenv from "dotenv";
dotenv.config();
const config: HardhatUserConfig = {
defaultNetwork: 'hardhat',
solidity: {
compilers: [{ version: '0.8.12', settings: {} }, { version: '0.5.0' }],
},
typechain: {
outDir: 'src/pages/Account/account-api/typechain-types',
},
networks: {
// goerli: getNetwork('goerli'),
goerli: {
url: process.env.STAGING_ALCHEMY_KEY || "",
accounts: process.env.PRIVATE_KEY ? [process.env.PRIVATE_KEY] : [],
chainId: 5,
// 必要に応じて、他のプロパティも設定することができます。例えば、accounts, chainId など。
},
},
etherscan: {
apiKey: process.env.ETHERSCAN_API_KEY,
},
};
export default config;