-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhelper-hardhat.config.ts
49 lines (45 loc) · 1.01 KB
/
helper-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
import { BigNumber } from "ethers";
import { parseEther } from "ethers/lib/utils";
export type NetworkConfig = {
name: string;
chain: "polygon";
vatPercentage: number;
mintPrice: BigNumber;
currencyRatio: number;
};
export interface NetworkConfigInfo {
[key: number]: NetworkConfig;
}
export const networkConfig: NetworkConfigInfo = {
5: {
name: "matic",
chain: "polygon",
vatPercentage: 20,
mintPrice: parseEther("1"),
currencyRatio: 10,
},
137: {
name: "matic",
chain: "polygon",
vatPercentage: 20,
mintPrice: parseEther("1"),
currencyRatio: 10,
},
80001: {
name: "mumbai",
chain: "polygon",
vatPercentage: 20,
mintPrice: parseEther("1"),
currencyRatio: 10,
},
31337: {
name: "hardhat",
chain: "polygon",
vatPercentage: 20,
mintPrice: parseEther("1"),
currencyRatio: 10,
},
};
export const developmentChains = ["hardhat", "localhost"];
export const testnetChains = ["mumbai"];
export const productionChains = ["matic"];