-
Notifications
You must be signed in to change notification settings - Fork 0
/
hardhat.config.ts
40 lines (37 loc) · 1.23 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
import dotenv from "dotenv";
import "@nomiclabs/hardhat-ethers";
dotenv.config();
//* Notes for deploying the smart contract on your own subnet
//* More info on subnets: https://docs.avax.network/subnets
//* Why deploy on a subnet: https://docs.avax.network/subnets/when-to-use-subnet-vs-c-chain
//* How to deploy on a subnet: https://docs.avax.network/subnets/create-a-local-subnet
//* Transactions on the C-Chain might take 2-10 seconds -> the ones on the subnet will be much faster
//* On C-Chain we're relaying on the Avax token to confirm transactions -> on the subnet we can create our own token
//* You are in complete control over the network and it's inner workings
export default {
solidity: {
version: "0.8.16",
settings: {
viaIR: true,
optimizer: {
enabled: true,
runs: 100,
},
},
},
networks: {
fuji: {
url: "https://api.avax-test.network/ext/bc/C/rpc",
gasPrice: 225000000000,
chainId: 43113,
accounts: [process.env.PRIVATE_KEY],
saveDeployments: true,
},
// subnet: {
// url: process.env.NODE_URL,
// chainId: Number(process.env.CHAIN_ID),
// gasPrice: 'auto',
// accounts: [process.env.PRIVATE_KEY],
// },
},
};