-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathConfig.ts
More file actions
98 lines (97 loc) · 3.03 KB
/
Config.ts
File metadata and controls
98 lines (97 loc) · 3.03 KB
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
import env from "@beam-australia/react-env";
export const config = {
nodeAddress: `${
env("HIVE_BLOG_API_ADDRESS")
? env("HIVE_BLOG_API_ADDRESS")
: "https://api.hive.blog"
}`,
apiAddress: `${
env("API_ADDRESS") ? env("API_ADDRESS") : "https://api.hive.blog"
}`,
baseMomentTimeFormat: "YYYY/MM/DD HH:mm:ss UTC",
momentLocaleDateFormat : "MMM D, YYYY",
gitHash: process.env.NEXT_PUBLIC_COMMIT_HASH,
get lastCommitHashRepoUrl() {
return `https://gitlab.syncad.com/hive/block_explorer_ui/-/commit/${this.gitHash}`;
},
opsBodyLimit: 100000,
commentOperationsTypeIds: [0, 1, 17, 19, 51, 53, 61, 63, 72, 73],
standardPaginationSize: 100,
expandedPaginationSize: 20000,
proposalVotesSize: 500,
blockPagePaginationSize: 2000, // Temporary 2000 until cache problem solved
witnessesPerPages: {
witnesses: 200,
home: 20,
},
topHolders: {
totalCount: 2000, // Total number of top holders
pageSize: 100, // Page size for pagination
},
maxWitnessVotes: 30,
inactiveWitnessKey: "STM1111111111111111111111111111111114T1Anm",
maxDelegatorsCount: 1000,
mainRefreshInterval: 3000,
accountRefreshInterval: 20000,
marketHistoryRefreshInterval: 60000,
lastBlocksForWidget: 20,
firstBlockTime: "2016-03-24T16:05:00",
popularCommunitiesCount: 10,
precisions: {
vests: 6,
hivePower: 3,
percentage: 2,
},
liveblockSecurityDifference: 10,
operationPerspective: {
incoming: "incoming",
outgoing: "outgoing",
},
maxProxyDepth: 3,
compactViewPercentage :"80%",
fullViewPercentage: "98%",
defaultNodeProviders: [
"https://api.hive.blog",
"https://api.openhive.network",
"https://anyx.io",
"https://rpc.ausbit.dev",
"https://rpc.mahdiyari.info",
"https://techcoderx.com",
"https://hive.roelandp.nl",
"https://hived.emre.sh",
"https://api.deathwing.me",
"https://api.c0ff33a.uk",
"https://hive-api.arcange.eu",
"https://hive-api.3speak.tv",
"https://hiveapi.actifit.io",
],
defaultRestApiProvicers: [
"https://hiveapi.actifit.io",
"https://techcoderx.com",
"https://api.hive.blog",
"https://hafbe.openhive.network",
],
hivesigner: {
// The Hive account name that owns the app
app: process.env.NEXT_PUBLIC_HIVESIGNER_APP,
defaultCallBack: process.env.NEXT_PUBLIC_HIVESIGNER_CALLBACK as string,
scope: ['vote', 'comment', 'custom_json', 'claim_reward_balance'],
endpoints: {
authorize: "https://hivesigner.com/oauth2/authorize",
token: "https://hivesigner.com/api/oauth2/token",
broadcast: "https://hivesigner.com/api/broadcast"
}
},
security: {
keychainTimeout : 60000,
nodeTimeout: 8000,
sessionMaxAge: 604800,
rateLimits: {
interval: 60000, // 1 minute
maxTrackedIps: 1000, // How many unique IPs to keep in memory
loginLimit: 5, // Attempts per interval
broadcastLimit: 30, // Actions per interval
},
allowedOperations: ['vote', 'claim_reward_balance', 'custom_json'],
}
};