-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathconfig.schema.json
663 lines (663 loc) · 19.1 KB
/
config.schema.json
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
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
{
"title": "Demex Webapp Config",
"description": "demex-webapp-config is a repository to allow frontends to fetch metadata associated with Demex",
"type": "object",
"required": [
"network",
"prelaunch_markets",
"blacklisted_markets",
"blacklisted_pools",
"blacklisted_tokens",
"transfer_options",
"network_fees",
"cross_selling_source_tokens",
"external_chain_channels",
"additional_ibc_token_config"
],
"properties": {
"network": {
"type": "string",
"enum": [
"mainnet",
"testnet",
"devnet"
]
},
"prelaunch_markets": {
"type": "array",
"description": "List of market names designated as Pre-Launch markets",
"items": {
"$ref": "#/$defs/prelaunch_market"
}
},
"blacklisted_markets": {
"type": "array",
"description": "List of blacklisted market names",
"items": {
"$ref": "#/$defs/blacklisted_market"
}
},
"blacklisted_pools": {
"type": "array",
"description": "List of blacklisted pool ids",
"items": {
"$ref": "#/$defs/blacklisted_pool"
}
},
"blacklisted_tokens": {
"type": "array",
"description": "List of blacklisted token denoms",
"items": {
"$ref": "#/$defs/blacklisted_token"
}
},
"transfer_options": {
"type": "object",
"description": "List of blockchain networks and their priority numbers, used to set their order in deposit and withdrawal forms transfer option dropdown",
"patternProperties": {
".*": {
"type": "integer"
}
},
"additionalProperties": false
},
"network_fees": {
"type": "object",
"description": "List of token denoms and their priority numbers, used to set their order in network fee preferences",
"patternProperties": {
".*": {
"type": "integer"
}
},
"additionalProperties": false
},
"maintenance": {
"type": "object",
"description": "Dictates whether or not the maintenance page is displayed on each particular network.",
"properties": {
"title": {
"type": "string",
"description": "Title shown on maintenance page (optional). If not provided, the title of the page will default to \"Service Maintenance\""
},
"message": {
"type": "string",
"description": "Description shown on maintenance page (optional). If not provided, the description of the page will default to \"Website is temporily unavailable due to planned maintenance. We will be back soon.\""
}
}
},
"demex_points_config": {
"type": "object",
"description": "Config for demex points",
"properties": {
"depositsPerSpin": {
"type": "integer"
},
"tradingVolumePerSpin": {
"type": "integer"
}
}
},
"perp_pool_promo": {
"type": "object",
"description": "Perp Pool Promo config",
"patternProperties": {
"^\\d+$": {
"type": "object",
"required": [
"start",
"end",
"perpPoolDepositBoost",
"perpTradingBoost"
],
"properties": {
"start": {
"$ref": "#/$defs/start"
},
"end": {
"$ref": "#/$defs/end"
},
"perpPoolDepositBoost": {
"$ref": "#/$defs/perpPoolDepositBoost"
},
"perpTradingBoost": {
"$ref": "#/$defs/perpTradingBoost"
}
}
}
}
},
"cross_selling_source_tokens": {
"type": "array",
"description": "List of cross selling source token denoms",
"items": {
"$ref": "#/$defs/cross_selling_source_token"
}
}
},
"typeform_widget_config": {
"type": "array",
"description": "Ongoing survey configs for typeform survey widget",
"items": {
"type": "object",
"required": [
"surveyLink",
"endTime",
"pages"
],
"properties": {
"message": {
"type": "string"
},
"surveyLink": {
"type": "string"
},
"endTime": {
"$ref": "#/$defs/survey_end"
},
"pages": {
"type": "array"
}
}
}
},
"external_chain_channels": {
"type": "object",
"description": "Map of destination channels for external IBC chains",
"patternProperties": {
"^[0-9A-Za-z ]+$": {
"type": "object",
"patternProperties": {
"^[0-9A-Za-z ]+$": {
"type": "string",
"pattern": "^channel-([0-9]+)$"
}
}
}
},
"additionalProperties": false
},
"additional_ibc_token_config": {
"type": "array",
"description": "List of information for tokens that (1) are not added on Carbon blockchain or (2) require packet forwarding",
"items": {
"$ref": "#/$defs/additional_ibc_token_info"
}
},
"demex_trading_league_config": {
"type": "object",
"description": "Config for Demex Trading League",
"properties": {
"type": "object",
"promoMarkets": {
"type": "array",
"description": "List of market names designated as promo markets during the Demex Trading League competition",
"items": {
"$ref": "#/$defs/promo_market"
}
},
"currentPrizeSymbol": {
"type": "string",
"description": "The symbol of the prize token, mainly used to display the prize symbol and token icon on the Demex Trading League page."
},
"currentCompPerpPoolId": {
"type": "integer",
"description": "Id of the perp pool that provides liquidity for the promo markets of the Demex Trading League event."
}
}
},
"perp_pools": {
"type": "object",
"description": "Perp pool configs",
"items": {
"incentives": {
"$ref": "#/$defs/perp_pools_incentives_info"
},
"banners": {
"$ref": "#/$defs/perp_pool_banners_info"
}
}
},
"wswth_contract": {
"type": "string",
"description": "ERC-20 contract for wrapped SWTH"
},
"market_banners": {
"type": "array",
"description": "List of banner information to be displayed over the TradingView chart for the required market",
"items": {
"type": "object",
"required": [
"market_id",
"content"
],
"properties": {
"market_id": {
"$ref": "#/$defs/market_id"
},
"show_from": {
"$ref": "#/$defs/show_from"
},
"show_until": {
"$ref": "#/$defs/show_until"
},
"content": {
"$ref": "#/$defs/content"
},
"hideable": {
"$ref": "#/$defs/hideable"
}
}
}
},
"native_depositor_contracts_map": {
"type": "object",
"description": "Map of axelar connection ids to their respective native depositor contract addresses",
"patternProperties": {
".*": {
"type": "string"
}
}
},
"native_token_contracts_map": {
"type": "object",
"description": "Map of token denoms to their respective contract addresses on the native chain",
"patternProperties": {
".*": {
"type": "string"
}
}
},
"market_promo": {
"type": "object",
"description": "Market Promo config",
"patternProperties": {
"^\\d+$": {
"type": "object",
"required": [
"start",
"end"
],
"properties": {
"start": {
"$ref": "#/$defs/start"
},
"end": {
"$ref": "#/$defs/end"
},
"tooltip": {
"$ref": "#/$defs/tooltip"
}
}
}
}
},
"$defs": {
"prelaunch_market": {
"type": "string",
"description": "Market name of Pre-launch market"
},
"promo_market": {
"type": "string",
"description": "Market name of Promo market"
},
"blacklisted_market": {
"type": "string",
"description": "Blacklisted market name"
},
"blacklisted_pool": {
"type": "string",
"description": "Blacklisted pool id (type: string)",
"pattern": "^\\d+$"
},
"blacklisted_token": {
"type": "string",
"description": "Blacklisted token denom"
},
"perp_pool_id": {
"type": "string",
"description": "Perp pool id (type: string)",
"pattern": "^\\d+$"
},
"show_from": {
"type": "string",
"description": "The date and time when the perp pool banner is scheduled to begin displaying (optional). If not provided, the banner will be shown immediately.",
"pattern": "^\\d{4}(-\\d\\d(-\\d\\d(T\\d\\d:\\d\\d(:\\d\\d)?(\\.\\d+)?(([+-]\\d\\d:\\d\\d)|Z)?)?)?)?$"
},
"show_until": {
"type": "string",
"description": "The date and time when the perp pool banner is scheduled to stop displaying (optional). If not provided, the banner will continue to display indefinitely.",
"pattern": "^\\d{4}(-\\d\\d(-\\d\\d(T\\d\\d:\\d\\d(:\\d\\d)?(\\.\\d+)?(([+-]\\d\\d:\\d\\d)|Z)?)?)?)?$"
},
"title": {
"type": "string",
"description": "The title shown on the banner"
},
"removed_markets": {
"type": "string",
"description": "The message shown on the banner describing markets being removed"
},
"action_trigger_date": {
"type": "string",
"description": "The date and time when the action in the banner message is triggered. The past_tense_text will not be shown if this value is omitted",
"pattern": "^\\d{4}(-\\d\\d(-\\d\\d(T\\d\\d:\\d\\d(:\\d\\d)?(\\.\\d+)?(([+-]\\d\\d:\\d\\d)|Z)?)?)?)?$"
},
"past_tense_text": {
"type": "string",
"description": "The alternative message shown after the date of markets being added or removed has passed"
},
"added_markets": {
"type": "string",
"description": "The message shown on the banner describing markets being added"
},
"subtext": {
"type": "string",
"description": "The subtext shown on the banner"
},
"start": {
"type": "string",
"description": "The start time of the relevant program (in timestamp format)",
"pattern": "^\\d{4}(-\\d\\d(-\\d\\d(T\\d\\d:\\d\\d(:\\d\\d)?(\\.\\d+)?(([+-]\\d\\d:\\d\\d)|Z)?)?)?)?$"
},
"end": {
"type": "string",
"description": "The end time of the relevant program (in timestamp format)",
"pattern": "^\\d{4}(-\\d\\d(-\\d\\d(T\\d\\d:\\d\\d(:\\d\\d)?(\\.\\d+)?(([+-]\\d\\d:\\d\\d)|Z)?)?)?)?$"
},
"perpPoolDepositBoost": {
"type": "integer",
"description": "The spin boost multiplier for deposits in perp pool"
},
"perpTradingBoost": {
"type": "integer",
"description": "The spin boost multiplier for boosted perp markets trading volume"
},
"cross_selling_source_token": {
"type": "string",
"description": "Cross selling source token denom"
},
"survey_end": {
"type": "string",
"description": "The end time of the tyepform survey",
"pattern": "^\\d{4}(-\\d\\d(-\\d\\d(T\\d\\d:\\d\\d(:\\d\\d)?(\\.\\d+)?(([+-]\\d\\d:\\d\\d)|Z)?)?)?)?$"
},
"market_id": {
"type": "string",
"description": "Market id (type: string)"
},
"hideable": {
"type": "boolean",
"description": "Whether the banner can be hidden by the user"
},
"content": {
"type": "string",
"description": "The content shown on the banner, we can render hyperlink in the content eg: You can visit [here](url)"
},
"tooltip": {
"type": "string",
"description": "The tooltip shown on the market select dropdown tag"
},
"additional_ibc_token_info": {
"type": "object",
"description": "Information for token that (1) is not added on Carbon blockchain or (2) requires packet forwarding.",
"required": [
"baseDenom",
"chainRoutes"
],
"properties": {
"baseDenom": {
"type": "string",
"description": "Denom of token on its native chain",
"minLength": 2
},
"chainRoutes": {
"type": "array",
"description": "List of IBC chains that token needs to be forwarded through before being deposited into Carbon",
"items": {
"type": "string"
},
"minItems": 1
},
"denomOnCarbon": {
"type": "string",
"description": "Denom of token on Carbon chain (omit if token is not added to Carbon chain)",
"minLength": 2
}
}
},
"perp_pools_incentives_info": {
"distributors": {
"type": "array",
"description": "List of ERC-20 distributor contracts for Perp Pool Incentives",
"items": {
"type": "string"
}
},
"proxy": {
"type": "string",
"description": "ERC-20 contract claim and unwrap from incentives distributor for wrapped SWTH"
}
},
"perp_pool_banners_info": {
"type": "array",
"description": "List of perp pool banners",
"items": {
"type": "object",
"required": [
"perp_pool_id",
"title"
],
"properties": {
"perp_pool_id": {
"$ref": "#/$defs/perp_pool_id"
},
"show_from": {
"$ref": "#/$defs/show_from"
},
"show_until": {
"$ref": "#/$defs/show_until"
},
"title": {
"$ref": "#/$defs/title"
},
"removed_markets": {
"$ref": "#/$defs/removed_markets"
},
"added_markets": {
"$ref": "#/$defs/added_markets"
},
"past_tense_text": {
"$ref": "#/$defs/past_tense_text"
},
"subtext": {
"$ref": "#/$defs/subtext"
}
}
}
},
"demex_referrer": {
"type": "object",
"description": "Default referrer for orders created through Demex",
"patternProperties": {
"address": {
"type": "string"
},
"commission": {
"type": "integer"
},
"kickback": {
"type": "integer"
}
},
"additionalProperties": false
},
"spot_pool_config": {
"type": "object",
"description": "Config parameters for Spot Pools page",
"properties": {
"show_apr_tooltip": {
"type": "boolean",
"description": "Indicates whether or not to show APR tooltip on Spot Pools page"
}
}
},
"announcement_banner": {
"type": "object",
"description": "Custom announcement banner through all or only on specificed paths",
"required": [
"content",
"show_only_on"
],
"patternProperties": {
"show_from": {
"$ref": "#/$defs/show_from"
},
"show_until": {
"$ref": "#/$defs/show_until"
},
"content": {
"$ref": "#/$defs/content"
},
"hideable": {
"$ref": "#/$defs/hideable"
},
"show_only_on": {
"type": "array",
"description": "List of paths that announcement will be show on. Empty array will be shown on all paths",
"items": {
"type": "string"
},
"minItems": 0
}
}
},
"quick_select_token": {
"type": "object",
"description": "Token denom for quick select in transfer form",
"required": ["label_denom", "target_denom"],
"properties": {
"label_denom": {
"type": "string",
"description": "Token denom to show on UI"
},
"target_denom": {
"type": "string",
"description": "Token denom to use in transfer"
}
}
},
"quick_select_tokens": {
"type": "array",
"description": "List of tokens for quick select in transfer form",
"items": {
"$ref": "#/$defs/quick_select_token"
}
},
"disabled_transfer_banner_config": {
"type": "object",
"description": "Config parameters for displaying banner to inform users that transfers for the relevant tokens are disabled",
"properties": {
"unsupported_tokens": {
"type": "array",
"description": "List of tokens are no longer supported",
"items": {
"type": "string"
}
},
"temp_disabled_transfer_tokens": {
"type": "object",
"description": "List of tokens for which deposits and withdrawals have been temporarily disabled",
"patternProperties": {
".*": {
"type": "object",
"properties": {
"start": {
"$ref": "#/$defs/start"
},
"end": {
"$ref": "#/$defs/end"
}
}
}
}
},
"temp_disabled_bridges": {
"type": "object",
"description": "List of bridges for which deposits and withdrawals have been temporarily disabled",
"patternProperties": {
".*": {
"type": "object",
"properties": {
"start": {
"$ref": "#/$defs/start"
},
"end": {
"$ref": "#/$defs/end"
}
}
}
}
}
}
},
"trading_league": {
"type": "object",
"description": "Trading League config",
"required": ["startDate", "endDate", "competitionId", "tradingLeague", "tradingLeagueTitle"],
"properties": {
"start_date": {
"type": "string",
"description": "The start date of the trading league"
},
"end_date": {
"type": "string",
"description": "The end date of the trading league"
},
"competition_id": {
"type": "string",
"description": "The competition id of the trading league"
},
"trading_teague": {
"type": "string",
"description": "The trading league name"
},
"trading_league_title": {
"type": "string",
"description": "The trading league title"
}
}
},
"trading_leagues": {
"type": "object",
"description": "Map of trading league with their paths",
"items": {
"$ref": "#/$defs/trading_league"
}
},
"lst_native_apr": {
"type": "object",
"description": "API for query LST native APR show on Nitron",
"required": ["protocol", "api_url", "lst_denoms"],
"properties": {
"protocol": {
"type": "string",
"description": "Protocol name"
},
"api_url": {
"type": "string",
"description": "API URL"
},
"lst_denoms": {
"type": "string",
"description": "Reward denom map"
}
}
},
"lst_native_aprs": {
"type": "array",
"description": "List of APIs for fetch LST Native APR show on Nitron",
"items": {
"$ref": "#/$defs/lst_native_apr"
}
}
}
}