@@ -8,8 +8,8 @@ name ["gno.land/r/demo/boards"](https://gno.land/r/demo/boards/)
8
8
## Build ` gnokey ` , create your account, and interact with Gno.
9
9
10
10
NOTE: Where you see ` -remote localhost:26657 ` here, that flag can be replaced
11
- with ` -remote test3. gno.land:26657 ` if you have $GNOT on the testnet.
12
- (To use the testnet, also replace ` -chainid dev ` with ` -chainid test3 ` .)
11
+ with ` -remote gno.land:26657 ` if you have $GNOT on the testnet.
12
+ (To use the testnet, also replace ` -chainid dev ` with ` -chainid portal-loop ` .)
13
13
14
14
### Build ` gnokey ` (and other tools).
15
15
@@ -85,15 +85,15 @@ The `USERNAME` for posting can different than your `KEYNAME`. It is internally l
85
85
./build/gnokey maketx call -pkgpath " gno.land/r/demo/users" -func " Register" -args " " -args " USERNAME" -args " Profile description" -gas-fee " 10000000ugnot" -gas-wanted " 2000000" -send " 200000000ugnot" -broadcast -chainid dev -remote 127.0.0.1:26657 KEYNAME
86
86
```
87
87
88
- Interactive documentation: https://test3. gno.land/r/demo/users?help&__func=Register
88
+ Interactive documentation: https://gno.land/r/demo/users?help&__func=Register
89
89
90
90
### Create a board with a smart contract call.
91
91
92
92
``` bash
93
93
./build/gnokey maketx call -pkgpath " gno.land/r/demo/boards" -func " CreateBoard" -args " BOARDNAME" -gas-fee " 1000000ugnot" -gas-wanted " 10000000" -broadcast -chainid dev -remote localhost:26657 KEYNAME
94
94
```
95
95
96
- Interactive documentation: https://test3. gno.land/r/demo/boards?help&__func=CreateBoard
96
+ Interactive documentation: https://gno.land/r/demo/boards?help&__func=CreateBoard
97
97
98
98
Next, query for the permanent board ID by querying (you need this to create a new post):
99
99
@@ -109,15 +109,15 @@ NOTE: If a board was created successfully, your SEQUENCE_NUMBER would have incre
109
109
./build/gnokey maketx call -pkgpath " gno.land/r/demo/boards" -func " CreateThread" -args BOARD_ID -args " Hello gno.land" -args " Text of the post" -gas-fee 1000000ugnot -gas-wanted 2000000 -broadcast -chainid dev -remote localhost:26657 KEYNAME
110
110
```
111
111
112
- Interactive documentation: https://test3. gno.land/r/demo/boards?help&__func=CreateThread
112
+ Interactive documentation: https://gno.land/r/demo/boards?help&__func=CreateThread
113
113
114
114
### Create a comment to a post.
115
115
116
116
``` bash
117
117
./build/gnokey maketx call -pkgpath " gno.land/r/demo/boards" -func " CreateReply" -args BOARD_ID -args " 1" -args " 1" -args " Nice to meet you too." -gas-fee 1000000ugnot -gas-wanted 2000000 -broadcast -chainid dev -remote localhost:26657 KEYNAME
118
118
```
119
119
120
- Interactive documentation: https://test3. gno.land/r/demo/boards?help&__func=CreateReply
120
+ Interactive documentation: https://gno.land/r/demo/boards?help&__func=CreateReply
121
121
122
122
``` bash
123
123
./build/gnokey query " vm/qrender" -data " gno.land/r/demo/boards:BOARDNAME/1" -remote localhost:26657
0 commit comments