You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/docs/01-welcome/01-index.md
+2-10Lines changed: 2 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
---
2
-
slug: /
2
+
slug: /welcome
3
3
---
4
4
5
5
import ProjectsTable from '@site/src/components/ProjectsTable';
@@ -19,18 +19,10 @@ Beyond these, Ignite has been instrumental in a wide array of blockchain applica
19
19
-**CometBFT Integration:** Built with the CometBFT consensus engine (formerly Tendermint), ensuring robust consensus mechanisms in your blockchain solutions.
20
20
-**Cross-Domain Applications:** Ignite is perfectly suited for developing a diverse array of use cases across various sectors. These include DeFi, NFTs, supply chain management, smart contracts (both EVM and WASM), and decentralized exchanges (DEXes).
21
21
22
-
## Install Ignite CLI
23
-
24
-
Get started with Ignite CLI by running this simple installation command:
25
-
26
-
```
27
-
curl https://get.ignite.com/cli! | bash
28
-
```
29
-
30
22
## Embracing the Cosmos Ecosystem
31
23
32
24
Ignite CLI is your entry point into the vibrant Cosmos ecosystem, a hub of innovation where you can explore a range of applications, from wallets and explorers to smart contracts and DEXes, all powered by CometBFT and the Cosmos SDK.
33
-
This ecosystem is home to over [$50 billion worth of blockchain projects](https://cosmos.network/ecosystem/tokens/), showcasing the scalability and versatility of the technologies at play.
25
+
This ecosystem is home to over [$100 billion worth of blockchain projects](https://cosmos.network/ecosystem/tokens/), showcasing the scalability and versatility of the technologies at play.
Copy file name to clipboardExpand all lines: docs/docs/02-guide/03-hello-world.md
+27-28Lines changed: 27 additions & 28 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,22 +7,22 @@ title: Hello World
7
7
8
8
**Introduction**
9
9
10
-
In this tutorial, you'll build a simple blockchain using Ignite CLI that responds to a custom query with "Hello %s!", where "%s" is a name passed in the query.
10
+
In this tutorial, you'll build a simple blockchain using Ignite CLI that responds to a custom query with `Hello %s!`, where `%s` is a name passed in the query.
11
11
This will enhance your understanding of creating custom queries in a Cosmos SDK blockchain.
12
12
13
13
## Setup and Scaffold
14
14
15
15
1.**Create a New Blockchain:**
16
16
17
-
```bash
18
-
ignite scaffold chain hello
19
-
```
17
+
```bash
18
+
ignite scaffold chain hello
19
+
```
20
20
21
21
2.**Navigate to the Blockchain Directory:**
22
22
23
-
```bash
24
-
cd hello
25
-
```
23
+
```bash
24
+
cd hello
25
+
```
26
26
27
27
## Adding a Custom Query
28
28
@@ -36,14 +36,13 @@ This command generates code for a new query, `say-hello`, which accepts a name,
36
36
37
37
-**Understanding the Scaffolded Code:**
38
38
39
-
- `proto/hello/hello/query.proto`: Defines the request and response structure.
40
-
- `x/hello/client/cli/query_say_hello.go`: Contains the CLI commands for the query.
41
-
- `x/hello/keeper/query_say_hello.go`: Houses the logic for the query response.
42
-
39
+
-`proto/hello/hello/query.proto`: Defines the request and response structure.
40
+
-`x/hello/client/cli/query_say_hello.go`: Contains the CLI commands for the query.
41
+
-`x/hello/keeper/query_say_hello.go`: Houses the logic for the query response.
43
42
44
43
## Customizing the Query Response
45
44
46
-
In the Cosmos SDK, queries are requests for information from the blockchain, used to access data like the ledger's current state or transaction details. While the SDK offers several built-in query methods, developers can also craft custom queries for specific data retrieval or complex operations.
45
+
In the Cosmos SDK, queries are requests for information from the blockchain, used to access data like the ledger's current state or transaction details. While the SDK offers several built-in query methods, developers can also craft custom queries for specific data retrieval or complex operations.
47
46
48
47
-**Modify `query_say_hello.go`:**
49
48
@@ -53,27 +52,27 @@ Update the `SayHello` function in `x/hello/keeper/query_say_hello.go` to return
@@ -97,4 +96,4 @@ Expect a response: `Hello world!`
97
96
98
97
## Conclusion
99
98
100
-
Congratulations! 🎉 You've successfully created a blockchain module with a custom query using Ignite CLI. Through this tutorial, you've learned how to scaffold a chain, add a custom query, and modify the logic for personalized responses. This experience illustrates the power of Ignite CLI in streamlining blockchain development and the importance of understanding the underlying code for customization.
99
+
Congratulations! 🎉 You've successfully created a blockchain module with a custom query using Ignite CLI. Through this tutorial, you've learned how to scaffold a chain, add a custom query, and modify the logic for personalized responses. This experience illustrates the power of Ignite CLI in streamlining blockchain development and the importance of understanding the underlying code for customization.
0 commit comments