forked from ice-blockchain/freezer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
application.yaml
208 lines (207 loc) · 5.08 KB
/
application.yaml
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
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
# SPDX-License-Identifier: ice License 1.0
development: true
logger:
encoder: console
level: info
cmd/freezer:
host: localhost:2443
version: local
defaultEndpointTimeout: 30s
httpServer:
port: 2443
certPath: cmd/freezer/.testdata/localhost.crt
keyPath: cmd/freezer/.testdata/localhost.key
defaultPagination:
limit: 20
maxLimit: 1000
wintr/auth/ice:
jwtSecret: bogus
cmd/freezer-refrigerant:
host: localhost:3443
version: local
defaultEndpointTimeout: 30s
httpServer:
port: 3443
certPath: cmd/freezer-refrigerant/.testdata/localhost.crt
keyPath: cmd/freezer-refrigerant/.testdata/localhost.key
defaultPagination:
limit: 20
maxLimit: 1000
wintr/auth/ice:
jwtSecret: bogus
tokenomics: &tokenomics
blockchain-coin-stats-json-url: https://ice-staging.b-cdn.net/assets/auth-config.json
kyc:
try-reset-kyc-steps-url: https://something.example.com
config-json-url: https://ice-staging.b-cdn.net/something/somebogus.json
liveness-delay: 5m
face-recognition-delay: 5m
social1-delay: 3m
quiz-delay: 3m
social2-delay: 3m
social3-delay: 3m
# require-quiz-only-on-specific-day-of-week: 1
bookkeeper/storage: &bookkeeperStorage
runDDL: true
urls:
- localhost:9000
db: default
poolSize: 1
credentials:
user: default
password:
wintr/connectors/storage/v3:
url: redis://default:@localhost:6379
messageBroker: &tokenomicsMessageBroker
consumerGroup: freezer-local
createTopics: true
urls:
- localhost:9092
topics: &tokenomicsMessageBrokerTopics
- name: freezer-health-check
partitions: 1
replicationFactor: 1
retention: 10s
- name: adoption-table
partitions: 10
replicationFactor: 1
retention: 10s
- name: mining-sessions-table
partitions: 10
replicationFactor: 1
retention: 10s
- name: balances-table
partitions: 10
replicationFactor: 1
retention: 10s
- name: available-daily-bonuses
partitions: 10
replicationFactor: 1
retention: 10s
- name: started-days-off
partitions: 10
replicationFactor: 1
retention: 10s
### The next topics are not owned by this service, but are needed to be created for the local/test environment.
- name: users-table
partitions: 10
replicationFactor: 1
retention: 10s
- name: completed-tasks
partitions: 10
replicationFactor: 1
retention: 10s
- name: viewed-news
partitions: 10
replicationFactor: 1
retention: 10s
- name: user-device-metadata-table
partitions: 10
replicationFactor: 1
retention: 10s
consumingTopics:
- name: users-table
- name: mining-sessions-table
- name: completed-tasks
- name: viewed-news
- name: user-device-metadata-table
wintr/multimedia/picture:
urlDownload: https://ice-staging.b-cdn.net/profile
referralBonusMiningRates:
t0: 25
t1: 25
t2: 5
rollbackNegativeMining:
available:
after: 5m
until: 60m
miningSessionDuration:
min: 30s
max: 1m
warnAboutExpirationAfter: 50s
consecutiveNaturalMiningSessionsRequiredFor1ExtraFreeArtificialMiningSession:
min: 12
max: 6
globalAggregationInterval:
parent: 60m
child: 1m
adoptionMilestoneSwitch:
duration: 60s
consecutiveDurationsRequired: 7
activeUserMilestones:
- users: 0
baseMiningRate: 32
- users: 2
baseMiningRate: 16
- users: 4
baseMiningRate: 8
- users: 6
baseMiningRate: 4
- users: 8
baseMiningRate: 2
- users: 10
baseMiningRate: 1
extraBonuses:
duration: 24m
utcOffsetDuration: 6s
claimWindow: 1m
delayedClaimPenaltyWindow: 15s
availabilityWindow: 10m
timeToAvailabilityWindow: 10m
flatValues:
- 2
- 4
- 6
- 8
- 10
newsSeenValues:
- 0
- 6
- 15
- 54
- 90
miningStreakValues:
- 0
- 2
- 5
- 9
- 20
wintr/connectors/storage/v2: &db
runDDL: true
primaryURL: postgresql://root:pass@localhost:5433/eskimo
credentials:
user: root
password: pass
replicaURLs:
- postgresql://root:pass@localhost:5433/eskimo
miner:
ethereumDistributionFrequency:
min: 24h
max: 672h
bookkeeper/storage: *bookkeeperStorage
development: true
workers: 2
batchSize: 100
wintr/connectors/storage/v2: *db
coin-distribution:
alert-slack-webhook: https://hooks.slack.com/services/dummy/dummy/dummy
environment: local
review-url: https://some.bogus.example.com/going/somewhere
development: true
workers: 2
batchSize: 100
wintr/connectors/storage/v2: *db
extra-bonus-notifier:
workers: 1
miningSessionDuration: 1m
batchSize: 100
chunks: 1000
balance-synchronizer:
workers: 1
batchSize: 100
tokenomics_test:
<<: *tokenomics
messageBroker:
<<: *tokenomicsMessageBroker
consumingTopics: *tokenomicsMessageBrokerTopics
consumerGroup: freezer-local-test