-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathconstants.ts
132 lines (116 loc) · 3.64 KB
/
constants.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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
import { HardhatEthersHelpers } from "hardhat/types";
export interface Constants {
aavegotchiDiamond: string;
realmDiamond: string;
installationDiamond: string;
tileDiamond: string;
fud: string;
fomo: string;
alpha: string;
kek: string;
gltr: string;
ghst: string;
defenderRelayer?: string;
}
interface NetworkToConstants {
[network: number]: Constants;
}
export interface Domain {
name: string;
version: string;
chainId: number;
verifyingContract: string;
}
function varsByChainId(chainId: number) {
if ([137, 80001].includes(chainId)) return networkToVars[chainId];
else return networkToVars[137];
}
export async function varsForNetwork(ethers: HardhatEthersHelpers) {
return varsByChainId((await ethers.provider.getNetwork()).chainId);
}
export const gotchiverseSubgraph =
"https://api.thegraph.com/subgraphs/name/aavegotchi/gotchiverse-matic";
export const alchemica = [
"0x403E967b044d4Be25170310157cB1A4Bf10bdD0f",
"0x44A6e0BE76e1D9620A7F76588e4509fE4fa8E8C8",
"0x6a3E7C3c6EF65Ee26975b12293cA1AAD7e1dAeD2",
"0x42E5E06EF5b90Fe15F853F59299Fc96259209c5C",
];
const kovanVars: Constants = {
aavegotchiDiamond: "0xa37D0c085121B6b7190A34514Ca28fC15Bb4dc22",
realmDiamond: "",
installationDiamond: "",
tileDiamond: "",
fud: "",
fomo: "",
alpha: "",
kek: "",
gltr: "",
ghst: "",
};
export const maticVars: Constants = {
aavegotchiDiamond: "0x86935F11C86623deC8a25696E1C19a8659CbF95d",
realmDiamond: "0x1D0360BaC7299C86Ec8E99d0c1C9A95FEfaF2a11",
installationDiamond: "0x19f870bD94A34b3adAa9CaA439d333DA18d6812A",
tileDiamond: "0x9216c31d8146bCB3eA5a9162Dc1702e8AEDCa355",
fud: "0x403E967b044d4Be25170310157cB1A4Bf10bdD0f",
fomo: "0x44A6e0BE76e1D9620A7F76588e4509fE4fa8E8C8",
alpha: "0x6a3E7C3c6EF65Ee26975b12293cA1AAD7e1dAeD2",
kek: "0x42E5E06EF5b90Fe15F853F59299Fc96259209c5C",
gltr: "0x3801c3b3b5c98f88a9c9005966aa96aa440b9afc",
ghst: "0x385eeac5cb85a38a9a07a70c73e0a3271cfb54a7",
defenderRelayer: "0xb6384935d68e9858f8385ebeed7db84fc93b1420",
};
const mumbaiVars: Constants = {
aavegotchiDiamond: "0x14B55C7862023c9f2aEfCA1EB5a606465dA034B0",
realmDiamond: "0x726F201A9aB38cD56D60ee392165F1434C4F193D",
installationDiamond: "0x663aeA831087487d2944ce44836F419A35Ee005A",
tileDiamond: "0xDd8947D7F6705136e5A12971231D134E80DFC15d",
fud: "0x8898BEA7EBC534263d891aCE9fdf8B18F0205ddb",
fomo: "0x18c2F784B51b04ba6E85bF62D74898Fac5BCC59b",
alpha: "0x066F7B9172DE92945dF4e7fB29a0815dc225d45F",
kek: "0x1C5714F00cc2e795Cf4F4F7e2A9F3AA04149d423",
gltr: "0x3FF9E39009bfFe903C262f6d63161B1f4414d3c8",
ghst: "",
};
const networkToVars: NetworkToConstants = {
137: maticVars,
80001: mumbaiVars,
0: kovanVars, //update
100: maticVars, //update
};
export const gasPrice = 175000000000;
export const aavegotchiDAOAddress =
"0xb208f8BB431f580CC4b216826AFfB128cd1431aB";
export const pixelcraftAddress = "0xD4151c984e6CF33E04FFAAF06c3374B2926Ecc64";
export const proxyAdminAddress = "0xB549125b4A2F3c1B4319b798EcDC72b04315dF2D";
export const ecosystemVesting = "0x7e07313B4FF259743C0c84eA3d5e741D2b0d07c3";
export const gameplayVesting = "0x3fB6C2A83d2FfFe94e0b912b612fB100047cc176";
export const DOMAIN_TYPES = [
{
name: "name",
type: "string",
},
{
name: "version",
type: "string",
},
{
name: "chainId",
type: "uint256",
},
{
name: "verifyingContract",
type: "address",
},
];
export const PERMIT_TYPES = {
//EIP712Domain: DOMAIN_TYPES,
Permit: [
{ name: "owner", type: "address" },
{ name: "spender", type: "address" },
{ name: "value", type: "uint256" },
{ name: "nonce", type: "uint256" },
{ name: "deadline", type: "uint256" },
],
};