-
Notifications
You must be signed in to change notification settings - Fork 0
/
helper-hardhat-config.js
56 lines (55 loc) · 1.76 KB
/
helper-hardhat-config.js
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
const networkConfig = {
31337: {
name: "localhost",
ethUsdPriceFeed: "0x9326BFA02ADD2366b30bacB125260Af641031331",
gasLane:
"0xd89b2bf150e3b9e13446986e571fb9cab24b13cea0a43ea20a6049a85cc807cc",
mintFee: "0",
callbackGasLimit: "500000",
},
5: {
name: "goerli",
ethUsdPriceFeed: "0xD4a33860578De61DBAbDc8BFdb98FD742fA7028e",
vrfCoordinatorV2: "0x2Ca8E0C643bDe4C2E08ab1fA0da3401AdAD7734D",
gasLane:
"0x79d3d8832d904592c0bf9818b621522c988bb8b0c05cdc3b15aea1b6e8db0c15",
callbackGasLimit: "500000",
mintFee: "0",
subscriptionId: "5721",
},
80001: {
name: "polygon",
ethUsdPriceFeed: "0x0715A7794a1dc8e42615F059dD6e406A6594651A",
vrfCoordinatorV2: "0x7a1BaC17Ccc5b313516C5E16fb24f7659aA5ebed",
gasLane:
"0x79d3d8832d904592c0bf9818b621522c988bb8b0c05cdc3b15aea1b6e8db0c15",
callbackGasLimit: "500000",
mintFee: "0",
subscriptionId: "5721",
},
};
const DECIMALS = "18";
const INITIAL_PRICE = "1000000000000000000000000";
const INITIAL_TOKEN_SUPPLY = "1000000";
const TOKEN_AMOUNT_GIVEN_TO_PLAYER = "20";
const TOKEN_NEEDED_TO_PLAY = "10";
const charTokenURIs = [
"https://ipfs.io/ipfs/QmcmUUQ1KPWtdzKJTaFFg5Y56wxWZRMiC1dapysW6grRe7",
"https://ipfs.io/ipfs/QmcmUUQ1KPWtdzKJTaFFg5Y56wxWZRMiC1dapysW6grRe7",
"https://ipfs.io/ipfs/QmcmUUQ1KPWtdzKJTaFFg5Y56wxWZRMiC1dapysW6grRe7",
];
const frontEndContractsFile = "../constants/networkMapping.json";
const frontEndAbiLocation = "../constants/frontEndAbiLocation/";
const developmentChains = ["hardhat", "localhost"];
module.exports = {
networkConfig,
developmentChains,
DECIMALS,
INITIAL_PRICE,
INITIAL_TOKEN_SUPPLY,
TOKEN_AMOUNT_GIVEN_TO_PLAYER,
TOKEN_NEEDED_TO_PLAY,
charTokenURIs,
frontEndContractsFile,
frontEndAbiLocation,
};