-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathapplication.yaml
321 lines (320 loc) · 8.2 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
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
# 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-miner:
host: localhost:5343
version: local
defaultEndpointTimeout: 30s
httpServer:
port: 5343
certPath: cmd/freezer-refrigerant/.testdata/localhost.crt
keyPath: cmd/freezer-refrigerant/.testdata/localhost.key
defaultPagination:
limit: 20
maxLimit: 1000
wintr/auth/ice:
jwtSecret: bogus
cmd/freezer-refrigerant:
host: localhost:3443
version: local
defaultEndpointTimeout: 30s
#tenant: sunwaves
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
mining-boost: &mining-boost
priceDelta: 10
sessionLength: 15m
levels:
1.0:
miningSessionLengthSeconds: 60
miningRateBonus: 25
maxT1Referrals: 5
slashingDisabled: false
2.0:
miningSessionLengthSeconds: 60
miningRateBonus: 50
maxT1Referrals: 10
slashingDisabled: false
3.0:
miningSessionLengthSeconds: 60
miningRateBonus: 75
maxT1Referrals: 15
slashingDisabled: false
4.0:
miningSessionLengthSeconds: 120
miningRateBonus: 100
maxT1Referrals: 20
slashingDisabled: false
5.0:
miningSessionLengthSeconds: 120
miningRateBonus: 125
maxT1Referrals: 25
slashingDisabled: true
contractAddresses:
ethereum: "0x79F05c263055BA20EE0e814ACD117C20CAA10e0c"
arbitrum: "0x0b2402144bb366a632d14b83f244d2e0e21bd39c"
bnb: "0xc335Df7C25b72eEC661d5Aa32a7c2B7b2a1D1874"
networkEndpoints:
ethereum:
- https://ethereum-rpc.publicnode.com
arbitrum:
- https://arbitrum.llamarpc.com
bnb:
- https://bsc-dataseed1.binance.org/
paymentAddress: "0x0000000000000000000000000000000000000000"
tokenomics: &tokenomics
t1ReferralsAllowedWithoutAnyMiningBoostLevel: false
tasksV2Enabled: false
adminUsers:
- user1
- user2
welcomeBonusV2Amount: 500
defaultReferralName: bogus
slashingFloor: 5
adoption:
startingBaseMiningRate: 16
milestones: 7
durationBetweenMilestones: 3m
blockchain-coin-stats-json-url: https://ice-staging.b-cdn.net/sunwaves/assets/blockchain_coin_stats.json
tenant: generic
kyc:
try-reset-kyc-steps-url: https://localhost:1443/v1w/kyc/tryResetKYCSteps/users
config-json-url: https://ice-staging.b-cdn.net/something/somebogus.json
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:6381
wintr/connectors/storage/v2: &globalDB
runDDL: true
primaryURL: postgresql://root:pass@localhost:5437/freezer-global
timeout: 90s
credentials:
user: root
password: pass
replicaURLs:
- postgresql://root:pass@localhost:5437/freezer-global
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
t1LimitCount: 2
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
kycPassedExtraBonus: 300
mining-boost: *mining-boost
detailed-coin-metrics:
refresh-interval: 1m
wintr/connectors/storage/v2: &db
runDDL: true
primaryURL: postgresql://root:pass@localhost:5437/freezer-global
credentials:
user: root
password: pass
replicaURLs:
- postgresql://root:pass@localhost:5437/freezer-global
miner:
ethereumDistributionFrequency:
min: 24h
max: 672h
bookkeeper/storage: *bookkeeperStorage
development: true
workers: 2
batchSize: 100
wintr/connectors/storage/v2: *db
mainnetRewardPoolContributionPercentage: 0.3
mainnetRewardPoolContributionEthAddress: bogus
slashingStartInterval: 1m
slashingDaysCount: 10
t1LimitCount: 2
welcomeBonusV2Amount: 500
t1ReferralsAllowedWithoutAnyMiningBoostLevel: false
dryRunDistribution: false
kyc/quiz:
maxResetCount: 0
maxAttemptsAllowed: 3
availabilityWindowSeconds: 600
globalStartDate: '2024-02-03T16:20:52.156534Z'
wintr/connectors/storage/v2: &usersdb
runDDL: false
primaryURL: postgresql://root:pass@localhost:5433/eskimo
timeout: 90s
credentials:
user: root
password: pass
replicaURLs:
- postgresql://root:pass@localhost:5433/eskimo
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
users: &users
wintr/connectors/storage/v2: &usersdb
runDDL: false
primaryURL: postgresql://root:pass@localhost:5433/eskimo
timeout: 90s
credentials:
user: root
password: pass
replicaURLs:
- postgresql://root:pass@localhost:5433/eskimo
tokenomics_test:
<<: *tokenomics
messageBroker:
<<: *tokenomicsMessageBroker
consumingTopics: *tokenomicsMessageBrokerTopics
consumerGroup: freezer-local-test