Gnoland test2任务中文教程

Gnoland是Cosmos前创始人Jae Kwon创立的可互操作的高并发智能合约平台。开发者可以用Gno语言在链上构建智能合约。(Gno是一种类似于go的语言)

Gnoland正处于测试网阶段,当前为test2。

前提条件

你已经完成新手入门教程并有205个gnot测试币。(目前水龙头只能领50gnot,需要多领几次,换ip),也可以将自己质押过atom的地址导入到gno的https://twitter.com/adenaapp 钱包(不推荐),汇集到自己的测试网账号中。或者在discord中寻求帮助。

创建用户

获取account_numbersequence

cd
account_number=$(gnokey query auth/accounts/<钱包地址>  --remote test2.gno.land:36657  | grep account_number| sed 's/[^0-9]//g')
echo $account_number
sequence=$(gnokey query auth/accounts/<钱包地址>  --remote test2.gno.land:36657  | grep sequence | sed 's/[^0-9]//g')
echo $sequence

创建注册用户的tx

gnokey maketx call <钱包地址> --pkgpath "gno.land/r/users" --func "Register" --gas-fee 1000000ugnot --gas-wanted 2000000 --send "200000000ugnot" --args "" --args "<你自定义的用户名>" --args "" > unsigned.tx

你自定义的用户名需要是6位以上的小写字母,可包含下划线

签名该tx

gnokey sign <钱包地址> --txpath unsigned.tx --chainid test2 --number $account_number --sequence $sequence > signed.tx

广播该tx

gnokey broadcast signed.tx --remote test2.gno.land:36657

成功后,能够在 https://test2.gno.land/r/users 看到你的用户名。

如果失败,有可能是余额不够204GNOT,请确保你已经领取了5次水龙头。

还可能是sequence错误,请查询并使用最新的account_number和sequence,删除unsigned.tx和signed.tx,重新完成以上四个步骤(获取account_number和sequence,创建注册用户的tx,签名该tx,广播该tx),再试一次。

注:删除unsigned.tx和signed.tx方法:运行 rm unsigned.tx 和`rm signed.tx`

创建你自己的版(Create board)(可选)

gnokey maketx call <钱包地址> --pkgpath "gno.land/r/boards" --func "CreateBoard" --gas-fee 1000000ugnot --gas-wanted 10000000 --send 1000000ugnot --broadcast true --chainid test2 --args "<版名>" --remote test2.gno.land:36657 

成功后,你能在https://test2.gno.land/r/boards 看到你刚刚创建的版。

在你的版内发帖(可选)

获取BoardID

BoardID=$(gnokey query "vm/qeval" --data "gno.land/r/boards
GetBoardIDFromName(\"<版名>\")" --remote test2.gno.land:36657  |grep data | sed 's/[^0-9]//g')
echo $BoardID

发帖

新建一个md文档作为发帖内容,例如我新建一个helloworld.md

cd 
sudo cat <<'EOF' >> $HOME/helloworld.md
Hello,world!
EOF

发帖

gnokey maketx call <钱包地址> --pkgpath "gno.land/r/boards" --func CreateThread --args $BoardID --args "<帖名>" --args#file "<xxx.md>" --gas-fee 1000000ugnot --gas-wanted 2000000 --chainid test2   --broadcast true  --remote test2.gno.land:36657 

其中xxx.md为md文件名,如 helloworld.md。注意不需要<>

成功后,可以在你的版内看到你刚刚发的帖子,如 https://test2.gno.land/r/boards:silent/1

接下来,完成第一个官方任务以获取潜在的奖励。

任务

官方任务链接:

TASK: Describe in your words

Describe in an essay (250+ words), on your favorite medium, why you are interested in gno.land and gnolang.

Reply here with a URL link to your written piece as a comment, for rewards.

中文翻译:
任务:用你的话描述

在你最喜欢的媒体上用一篇文章(250字以上)描述,为什么你对gno.land和gnolang感兴趣。

在此回复,将你的文章的URL链接作为评论,以获得奖励。

首先,在您最喜欢的媒体(无论是 Twitter、Medium 还是 Mirror)上写一篇短文,说明您对 Gnoland 感兴趣的原因。如果您需要示例,请访问Gnoland的第一篇博文

发表文章后,运行以下命令

gnokey maketx call <钱包地址> --pkgpath "gno.land/r/boards" --func "CreateReply" --gas-fee 1000000ugnot --gas-wanted 2000000 --send "" --broadcast true --chainid test2 --args "1" --args "4" --args "4" --args "<文章URL>" --remote test2.gno.land:36657

成功后,你将能在 https://test2.gno.land/r/boards:testboard/4 看到你的帖子。

例如:

我的帖子
我的帖子

至此,你的第一个任务就完成了!

欢迎关注https://silentvalidator.com

Subscribe to Silent ⚛| validator
Receive the latest updates directly to your inbox.
Mint this entry as an NFT to add it to your collection.
Verification
This entry has been permanently stored onchain and signed by its creator.