-
Notifications
You must be signed in to change notification settings - Fork 385
/
config.js
663 lines (662 loc) · 21 KB
/
config.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
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
const path = require('path');
module.exports = {
theme: "cosmos",
title: "Cosmos Developer Portal",
head: [
[
"link",
{
rel: "apple-touch-icon",
sizes: "180x180",
href: "/apple-touch-icon.png",
},
],
[
"link",
{
rel: "icon",
type: "image/png",
sizes: "32x32",
href: "/favicon-32x32.png",
},
],
[
"link",
{
rel: "icon",
type: "image/png",
sizes: "16x16",
href: "/favicon-16x16.png",
},
],
["link", { rel: "manifest", href: "/site.webmanifest" }],
["meta", { name: "msapplication-TileColor", content: "#2e3148" }],
["meta", { name: "theme-color", content: "#ffffff" }],
["link", { rel: "icon", type: "image/svg+xml", href: "/favicon-svg.svg" }],
[
"link",
{
rel: "apple-touch-icon-precomposed",
href: "/apple-touch-icon-precomposed.png",
},
],
[
"script",
{},
`const userThemeMode = localStorage?.getItem("vuepress-theme-cosmos-user-theme") || 'dark-mode'
document.documentElement.className = userThemeMode`
]
],
themeConfig: {
repo: "cosmos/sdk-tutorials",
docsRepo: "cosmos/sdk-tutorials",
editLinks: true,
label: "sdk",
algolia: {
id: "BH4D9OD16A",
key: "7976d773390a0be350dc24b0571eee15",
index: "cosmos-sdk_tutorials",
},
topbar: {
banner: true,
},
allowedIDAOrigins: [
"preview-5bxuue6kafu5ocp5",
"deploy-preview-995",
"deploy-preview-994",
"deploy-preview-991",
"deploy-preview-1047",
"127.0.0.1",
"deploy-preview"
],
sidebar: {
auto: false,
hideProducts: true,
nav: [
{
title: "Cosmos Academy",
children: [
{
title: "Welcome",
path: "/academy/0-welcome/",
directory: false,
},
{
title: "What is Cosmos?",
path: "/academy/1-what-is-cosmos",
directory: true,
},
{
title: "Main Concepts",
path: "/academy/2-main-concepts",
directory: true,
},
{
title: "Running a Chain",
path: "/academy/3-running-a-chain",
directory: true,
},
{
title: "My Own Cosmos Chain",
path: "/academy/4-my-own-chain",
directory: true,
},
{
title: "What's Next?",
path: "/academy/5-whats-next/",
directory: false,
},
],
},
{
title: "Cosmos Academy IDA",
children: [
{
title: "Welcome",
path: "/course-ida/welcome/",
directory: false,
order: 0
},
{
title: "Getting started",
directory: true,
order: 1,
children: [
{
title: "Introduction to Blockchain Technology",
path: "/course-ida/landingpages/week0-lp.html"
},
{
title: "Blockchchain 101",
path: "/academy/0.0-B9lab-Blockchains/1_blockchain.html"
},
{
title: "Blockchain History",
path: "/academy/0.0-B9lab-Blockchains/2_public.html"
},
{
title: "Public and Managed Blockchains",
path: "/academy/0.0-B9lab-Blockchains/3_managed.html"
},
{
title: "Consensus in Distributed Networks",
path: "/academy/0.0-B9lab-Blockchains/4_consensus.html"
},
{
title: "Cryptography",
path: "/academy/0.0-B9lab-Blockchains/5_crypto.html"
}
]
},
{
title: "Week 1 - Cosmos and Its Main Concepts",
directory: true,
order: 2,
children: [
{
title: "Cosmos and its Main Concepts",
path: "/course-ida/landingpages/week1-lp.html"
},
{
title: "Blockchain Technology and Cosmos",
path: "/academy/1-what-is-cosmos/blockchain-and-cosmos.html"
},
{
title: "The Cosmos Ecosystem",
path: "/academy/1-what-is-cosmos/cosmos-ecosystem.html"
},
{
title: "Getting ATOM and Staking It",
path: "/academy/1-what-is-cosmos/atom-staking.html"
},
{
title: "A Blockchain App Architecture",
path: "/academy/2-main-concepts/architecture.html"
},
{
title: "Accounts",
path: "/academy/2-main-concepts/accounts.html"
},
{
title: "Transactions",
path: "/academy/2-main-concepts/transactions.html"
},
{
title: "Messages",
path: "/academy/2-main-concepts/messages.html"
},
{
title: "Modules",
path: "/academy/2-main-concepts/modules.html"
},
{
title: "Protobuf",
path: "/academy/2-main-concepts/protobuf.html"
},
{
title: "Multistore and Keepers",
path: "/academy/2-main-concepts/multistore-keepers.html"
},
{
title: "BaseApp",
path: "/academy/2-main-concepts/base-app.html"
},
{
title: "Queries",
path: "/academy/2-main-concepts/queries.html"
},
{
title: "Events",
path: "/academy/2-main-concepts/events.html"
},
{
title: "Context",
path: "/academy/2-main-concepts/context.html"
},
{
title: "Migrations",
path: "/academy/2-main-concepts/migrations.html"
},
{
title: "Bridges",
path: "/academy/2-main-concepts/bridges.html"
},
{
title: "Mandatory Quiz",
path: "/course-ida/quiz-week1.html"
},
]
},
{
title: "Week 2 - Running Your Own Cosmos Chain - Part 1",
directory: true,
order: 3,
children: [
{
title: "Running Your Own Cosmos Chain - Part 1",
path: "/course-ida/landingpages/week2-lp.html"
},
{
title: "Setup Your Work Environment",
path: "/course-ida/setup.html"
},
{
title: "Running a Node, API, and CLI",
path: "/academy/3-running-a-chain/node-api-and-cli.html"
},
{
title: "Ignite CLI",
path: "/academy/4-my-own-chain/ignitecli.html"
},
{
title: "Store Object - Make a Checkers Blockchain",
path: "/academy/4-my-own-chain/stored-game.html"
},
{
title: "Message - Create a Message to Create a Game",
path: "/academy/4-my-own-chain/create-message.html"
},
{
title: "Message Handler - Create and Save a Game Properly",
path: "/academy/4-my-own-chain/create-handling.html"
},
{
title: "Message and Handler - Add a Way to Make a Move",
path: "/academy/4-my-own-chain/play-game.html"
},
{
title: "Events - Emitting Game Information",
path: "/academy/4-my-own-chain/events.html"
},
{
title: "Message and Handler - Make Sure a Player Can Reject a Game",
path: "/academy/4-my-own-chain/reject-game.html"
},
{
title: "Mandatory Exercise (todo)",
path: "/feature-test"
},
]
},
{
title: "Week 3 - Running Your Own Cosmos Chain - Part 2",
directory: true,
order: 4,
children: [
{
title: "Running Your Own Cosmos Chain - Part 2",
path: "/course-ida/landingpages/week3-lp.html"
},
{
title: "Store FIFO - Put Your Games in Order",
path: "/academy/4-my-own-chain/game-fifo.html"
},
{
title: "Store Field - Keep an Up-To-Date Game Deadline",
path: "/academy/4-my-own-chain/game-deadline.html"
},
{
title: "Store Field - Record the Game Winner",
path: "/academy/4-my-own-chain/game-winner.html"
},
{
title: "EndBlock - Auto-expiring Games",
path: "/academy/4-my-own-chain/game-forfeit.html"
},
{
title: "Token - Let Players Set a Wager",
path: "/academy/4-my-own-chain/game-wager.html"
},
{
title: "Gas - Incentivize Players",
path: "/academy/4-my-own-chain/gas-meter.html"
},
{
title: "Query - Help Find a Correct Move",
path: "/academy/4-my-own-chain/can-play.html"
},
{
title: "IBC Token - Play With Cross-Chain Tokens",
path: "/academy/4-my-own-chain/wager-denom.html"
},
{
title: "Migration - Introduce a Leaderboard After Production",
path: "/academy/4-my-own-chain/migration.html"
},
{
title: "CosmWasm",
path: "/academy/4-my-own-chain/cosmwasm.html"
},
]
},
{
title: "Week 4 - The Inter-Blockchain Communication Protocol",
directory: true,
order: 5,
children: [
{
title: "The Inter-Blockchain Communication Protocol",
path: "/course-ida/landingpages/week4-lp.html"
},
{
title: "What is IBC?",
path: "/academy/ibc/what-is-ibc.html"
},
{
title: "Transport, Authentication, and Ordering Layer - Connections",
path: "/academy/ibc/ibc-tao-dev.html"
},
{
title: "Transport, Authentication, and Ordering Layer - Channels",
path: "/academy/ibc/channels.html"
},
{
title: "Transport, Authentication, and Ordering Layer - Clients",
path: "/academy/ibc/clients.html"
},
{
title: "IBC Token Transfer",
path: "/academy/ibc/token-transfer.html"
},
{
title: "Interchain Accounts",
path: "/academy/ibc/ica.html"
},
{
title: "Relayers in General",
path: "/academy/ibc/relayerintro.html"
},
{
title: "Go Relayer",
path: "/academy/ibc/gorelayer.html"
},
{
title: "Hermes Relayer",
path: "/academy/ibc/hermesrelayer.html"
},
{
title: "Overview IBC Tooling",
path: "/academy/ibc/ibc-tooling.html"
},
]
},
{
title: "Week 5 - CosmJS and Building Your CosmJS Chain",
directory: true,
order: 6,
children: [
{
title: "CosmJS and Building Your CosmJS Chain",
path: "/course-ida/landingpages/week5-lp.html"
},
{
title: "What is CosmJS",
path: "/academy/xl-cosmjs/intro.html"
},
{
title: "Your First CosmJS Actions",
path: "/academy/xl-cosmjs/first-steps.html"
},
{
title: "Compose Complex Transactions",
path: "/academy/xl-cosmjs/multi-msg.html"
},
{
title: "Learn to Integrate Keplr",
path: "/academy/xl-cosmjs/with-keplr.html"
},
{
title: "Create Custom Objects",
path: "/academy/xl-cosmjs/create-custom.html"
},
{
title: "Create Custom Objects for Your Checkers Blockchain",
path: "/academy/4-my-own-chain/cosmjs-objects.html"
},
{
title: "Create Custom Messages for Your Checkers Blockchain",
path: "/academy/4-my-own-chain/cosmjs-messages.html"
},
]
},
{
title: "Week 6 - CosmJS for Your Chain - GUI and Backend Script",
directory: true,
order: 7,
children: [
{
title: "CosmJS for Your Chain - GUI and Backend Script",
path: "/course-ida/landingpages/week6-lp.html"
},
{
title: "Pick and Fix a Checkers GUI",
path: "/academy/4-my-own-chain/external-gui.html"
},
{
title: "Integrate CosmJS and Keplr Into the GUI",
path: "/academy/4-my-own-chain/cosmjs-gui.html"
},
{
title: "CosmJS on a Backend Script for Game Indexing",
path: "/academy/4-my-own-chain/server-side.html"
},
{
title: "Final exam (todo)",
path: "/feature-test/"
},
]
},
{
title: "What's Next?",
path: "/academy/5-whats-next/",
directory: false,
order: 8,
},
],
},
],
},
gutter: {
title: "Help & Support",
editLink: true,
chat: {
title: "Discord",
text: "Chat with Cosmos developers on Discord.",
url: "https://discordapp.com/channels/669268347736686612",
bg: "linear-gradient(225.11deg, #2E3148 0%, #161931 95.68%)",
},
forum: {
title: "Cosmos SDK Forum",
text: "Join the SDK Developer Forum to learn more.",
url: "https://forum.cosmos.network/",
bg: "linear-gradient(225deg, #46509F -1.08%, #2F3564 95.88%)",
logo: "cosmos",
},
github: {
title: "Found an Issue?",
text: "Help us improve this page by suggesting edits on GitHub.",
},
},
footer: {
privacy: "https://v1.cosmos.network/privacy",
question: {
text:
"Chat with Cosmos developers in <a href='https://discord.gg/cosmosnetwork' target='_blank'>Discord</a> or reach out on the <a href='https://forum.cosmos.network/c/cosmos-sdk' target='_blank'>SDK Developer Forum</a> to learn more.",
},
logo: "/brand.png",
textLink: {
text: "cosmos.network",
url: "https://cosmos.network",
},
services: [
{
service: "medium",
url: "https://blog.cosmos.network/",
},
{
service: "twitter",
url: "https://twitter.com/cosmos",
},
{
service: "discord",
url: "https://discord.gg/cosmosnetwork"
},
{
service: "linkedin",
url: "https://www.linkedin.com/company/interchain-foundation/about/",
},
{
service: "reddit",
url: "https://reddit.com/r/cosmosnetwork",
},
{
service: "telegram",
url: "https://t.me/cosmosproject",
},
{
service: "youtube",
url: "https://www.youtube.com/c/CosmosProject",
}
],
smallprint:
"† This website is maintained by the Interchain Foundation (ICF). The contents and opinions of this website are those of the ICF. The ICF provides links to cryptocurrency exchanges as a service to the public. The ICF does not warrant that the information provided by these websites is correct, complete, and up-to-date. The ICF is not responsible for their content and expressly rejects any liability for damages of any kind resulting from the use, reference to, or reliance on any information contained within these websites.",
links: [
{
title: "Documentation",
children: [
{
title: "Cosmos SDK",
url: "https://docs.cosmos.network",
},
{
title: "Cosmos Hub",
url: "https://hub.cosmos.network",
},
{
title: "Tendermint Core",
url: "https://docs.tendermint.com",
},
{
title: "IBC Protocol",
url: "https://ibc.cosmos.network/",
},
],
},
{
title: "Community",
children: [
{
title: "Cosmos blog",
url: "https://blog.cosmos.network",
},
{
title: "Forum",
url: "https://forum.cosmos.network",
},
{
title: "Discord",
url: "https://discord.gg/cosmosnetwork",
},
],
},
{
title: "Contributing",
children: [
{
title: "Source code on GitHub",
url: "https://github.com/cosmos/sdk-tutorials",
},
],
},
],
},
tags: {
'deep-dive': {
color: 'var(--color-secondary)',
label: 'Deep dive'
},
'fast-track': {
color: 'var(--color-primary)',
label: 'Fast track'
}
},
feedback: {
formId: "xyylrkbl",
captchaSiteKey: "6Ldu_iwdAAAAAF_kmEKihLNwB4qQNsGr9ox5t3Xd",
},
resources: [
{
title: "Cosmos SDK",
description: "A framework to build application-specific blockchains",
links: [{
name: "Documentation",
url: "https://docs.cosmos.network/"
}],
image: "/cosmos-sdk-icon.svg"
},
{
title: "Tendermint Core",
description: "Blockchain consensus engine and application interface",
links: [{
name: "Documentation",
url: "https://docs.tendermint.com/"
}],
image: "/tendermint-icon.svg"
},
{
title: "Cosmos Hub",
description: "First interconnected public blockchain on the Cosmos network",
links: [{
name: "Documentation",
url: "https://hub.cosmos.network/"
}],
image: "/generic-star-icon.svg"
},
{
title: "IBC",
description: "Industry standard protocol for inter-blockchain communication",
links: [{
name: "Documentation",
url: "https://ibc.cosmos.network/"
}],
image: "/ibc-icon.svg"
}
],
assetsOptimization: {
breakpoints: [200, 600, 988, 1200],
blacklist: ['node_modules', '.vuepress/dist', '.vuepress/theme', '.vuepress/public/resized-images', '.vuepress/public/h5p']
}
},
plugins: [
[
"@vuepress/google-analytics",
{
ga: "UA-51029217-2",
}
],
[
"vuepress-plugin-google-tag-manager",
{
gtm: "UA-51029217-2",
}
],
[
"@vuepress/medium-zoom",
{
selector: ".layout__main__content :not(a) > img:not(.no-zoom)",
options: {
background: "#000000"
}
}
]
],
patterns: [
"README.md",
"feature-test/*.md",
"academy/*/*.md",
"tutorials/*/*.md",
"authz-module/*.md",
"course-ida/*/*.md",
"course-ida/*.md"
]
};