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
docs: change knowledge base and CLI docs to scaffold using single names (#2752)
* docs: change CLI docs to use single names
* fix: guides to use single names
* docs: change knowledge base docs to use single names
* review: fix code blocks and change syntax tags to be consistent
* feat: add support for proto buffers and go module syntax
* fix: replace "proto" by the "protobuf" tag in code block
Co-authored-by: Alex Johnson <alex@shmeeload.xyz>
@@ -173,7 +173,7 @@ Here's how the `Hello` rpc for the `Query` service works:
173
173
174
174
Now, take a look at the following request and response types:
175
175
176
-
```proto
176
+
```protobuf
177
177
message QueryHelloRequest {
178
178
}
179
179
@@ -239,10 +239,12 @@ Make the required changes to the `x/hello/module.go` file.
239
239
240
240
```go
241
241
import (
242
-
"encoding/json"
243
-
"fmt"
244
-
//...
242
+
// ...
243
+
245
244
"context"
245
+
246
+
// ...
247
+
)
246
248
```
247
249
248
250
Do not save the file yet, you need to continue with these modifications.
@@ -259,7 +261,7 @@ Make the required changes to the `x/hello/module.go` file.
259
261
260
262
2. After the chain has been started, visit [http://localhost:1317/hello/hello/hello](http://localhost:1317/hello/hello/hello) and see your text displayed:
As always, start with a proto file. Inside the `proto/blog/tx.proto` file, the `MsgCreatePost` message has been created. Edit the file to add the line that defines the `id` for `message MsgCreatePostResponse`:
87
87
88
-
```go
88
+
```protobuf
89
89
message MsgCreatePost {
90
90
string creator = 1;
91
91
string title = 2;
@@ -165,7 +165,7 @@ When you define the `Post` type in a proto file, Ignite CLI (with the help of `p
165
165
166
166
Create the `proto/blog/post.proto` file and define the `Post` message:
167
167
168
-
```go
168
+
```protobuf
169
169
syntax = "proto3";
170
170
171
171
package blog.blog;
@@ -202,7 +202,7 @@ Then, add these prefixes to the `x/blog/types/keys.go` file in the `const` and a
202
202
203
203
```go
204
204
const (
205
-
//...
205
+
//...
206
206
207
207
// Keep track of the index of posts
208
208
PostKey = "Post-value-"
@@ -338,13 +338,13 @@ To define the types in proto files, make the following updates in `proto/blog/qu
0 commit comments