-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathconstants.js
63 lines (63 loc) · 1.79 KB
/
constants.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
57
58
59
60
61
62
63
const MAX_SIZE = 50 * 1024 * 1024;
const accountKeys = [
'name',
'avatarId',
'avatarName',
'avatarExt',
'avatarPreview',
'loadout',
'homeSpaceId',
'homeSpaceName',
'homeSpaceExt',
'homeSpacePreview',
'ftu',
// 'mainnetAddress',
'addressProofs',
];
const ids = {
lastCachedBlockAccount: 'lastCachedBlock',
lastCachedBlockNft: -1,
};
const tableNames = {
mainnetAccount: 'mainnet-cache-account',
mainnetNft: 'mainnet-cache-nft',
mainnetsidechainAccount: 'sidechain-cache-account',
mainnetsidechainNft: 'sidechain-cache-nft',
testnetAccount: 'testnet-cache-account',
testnetNft: 'testnet-cache-nft',
testnetsidechainAccount: 'testnetsidechain-cache-account',
testnetsidechainNft: 'testnetsidechain-cache-nft',
polygonAccount: 'polygon-cache-account',
polygonNft: 'polygon-cache-nft',
testnetpolygonAccount: 'testnetpolygon-cache-account',
testnetpolygonNft: 'testnetpolygon-cache-nft',
WebaverseERC721: "WebaverseERC721-cache-tokenids",
};
const redisPrefixes = (() => {
const result = {};
for (const k in tableNames) {
result[k] = tableNames[k].replace(/\-/g, '');
}
return result;
})();
const nftIndexName = 'nftIdx';
const polygonVigilKey = `1bdde9289621d9d420488a9804254f4a958e128b`;
const polygonAlchemyKey = 'bN2G8nP-vDFAnRXksfpd7I7g5f9c0GqD' // will be process.env.polygonAlchemyKey
const ethereumHost = 'ethereum.exokit.org';
const storageHost = 'https://ipfs.exokit.org';
const mainnetSignatureMessage = `Connecting mainnet address.`;
const cacheHostUrl = 'cache.webaverse.com';
module.exports = {
MAX_SIZE,
accountKeys,
ids,
tableNames,
redisPrefixes,
nftIndexName,
polygonVigilKey,
polygonAlchemyKey,
ethereumHost,
storageHost,
mainnetSignatureMessage,
cacheHostUrl,
};