stellartalk

所属分类:其他
开发工具:GO
文件大小:0KB
下载次数:0
上传日期:2023-02-04 18:24:54
上 传 者sh-1993
说明:  Stellartalk是去中心化区块链,允许地址在彼此之间发送消息。它使用Cosmos SDK和tende......构建...,
(Stellartalk is decentralized blockchain that allows addresses to send messages between each other. It is built using Cosmos SDK and tendermint consensus engine. Initial bootstrap made with Ignite CLI.)

文件列表:
Dockerfile (139, 2023-02-04)
Makefile (1001, 2023-02-04)
app/ (0, 2023-02-04)
app/app.go (31391, 2023-02-04)
app/encoding.go (1122, 2023-02-04)
app/export.go (5783, 2023-02-04)
app/genesis.go (750, 2023-02-04)
app/params/ (0, 2023-02-04)
app/params/encoding.go (489, 2023-02-04)
app/simulation_test.go (1656, 2023-02-04)
cmd/ (0, 2023-02-04)
cmd/stellartalkd/ (0, 2023-02-04)
cmd/stellartalkd/cmd/ (0, 2023-02-04)
cmd/stellartalkd/cmd/config.go (760, 2023-02-04)
cmd/stellartalkd/cmd/genaccounts.go (6402, 2023-02-04)
cmd/stellartalkd/cmd/root.go (12037, 2023-02-04)
cmd/stellartalkd/main.go (404, 2023-02-04)
config.yml (376, 2023-02-04)
go.mod (10269, 2023-02-04)
go.sum (205115, 2023-02-04)
init.sh (953, 2023-02-04)
proto/ (0, 2023-02-04)
proto/stellartalk/ (0, 2023-02-04)
proto/stellartalk/stellartalk/ (0, 2023-02-04)
proto/stellartalk/stellartalk/chat.proto (216, 2023-02-04)
proto/stellartalk/stellartalk/genesis.proto (596, 2023-02-04)
proto/stellartalk/stellartalk/params.proto (259, 2023-02-04)
proto/stellartalk/stellartalk/query.proto (2734, 2023-02-04)
proto/stellartalk/stellartalk/tx.proto (566, 2023-02-04)
scripts/ (0, 2023-02-04)
scripts/create-chat.sh (366, 2023-02-04)
scripts/send-message.sh (793, 2023-02-04)
testutil/ (0, 2023-02-04)
testutil/keeper/ (0, 2023-02-04)
testutil/keeper/stellartalk.go (1482, 2023-02-04)
testutil/network/ (0, 2023-02-04)
testutil/network/network.go (2812, 2023-02-04)
testutil/nullify/ (0, 2023-02-04)
... ...

# Stellartalk chat blockchain Stellartalk is decentralized blockchain that allows addresses to send messages between each other. It is built using Cosmos SDK and tendermint consensus engine. Initial bootstrap made with [Ignite CLI](https://ignite.com/cli). ## Install binaries Install stellartalk binaries in your $GOPATH/bin folder. ``` make install ``` ## Initialize local node This command will clean up the configuration folder, create a new one add validators to test keyring and create genesis file and transactions. ``` make init ``` ## Start local node ``` make start ``` You should see something similar to this in your console ```shell 8:51AM INF starting node with ABCI Tendermint in-process 8:51AM INF service start impl=multiAppConn module=proxy msg={} 8:51AM INF service start connection=query impl=localClient module=abci-client msg={} 8:51AM INF service start connection=snapshot impl=localClient module=abci-client msg={} 8:51AM INF service start connection=mempool impl=localClient module=abci-client msg={} 8:51AM INF service start connection=consensus impl=localClient module=abci-client msg={} 8:51AM INF service start impl=EventBus module=events msg={} 8:51AM INF service start impl=PubSub module=pubsub msg={} 8:51AM INF service start impl=IndexerService module=txindex msg={} 8:51AM INF ABCI Handshake App Info hash= height=0 module=consensus protocol-version=0 software-version= 8:51AM INF ABCI Replay Blocks appHeight=0 module=consensus stateHeight=0 storeHeight=0 8:51AM INF initializing blockchain state from genesis.json 8:51AM INF asserting crisis invariants inv=1/12 module=x/crisis name=group/Group-TotalWeight ........... 8:51AM INF Version info block=11 p2p=8 tendermint_version=0.34.23 8:51AM INF This node is a validator addr=FF64609E695010834C305B3E5D9DF6B8973A3D4E module=consensus pubKey=vK7pj+4UbQgy9hSGWPGDvoFFl380Ffu6mXvjiYc/Eqw= 8:51AM INF P2P Node ID ID=1f969171c689af4585735f9bbfabb444cac6a7dc file=/Users/ao/.stellartalk/config/node_key.json module=p2p ``` ## Sending chats Now that your local Stellartalk node is running you can send your first message to other person using the following command ```shell stellartalkd tx stellartalk create-chat [content] [recipient] [flags] ``` Example: ```shell stellartalkd tx stellartalk create-chat "First chat" cosmos10mamzxu2krqdewrjl7s5c3qzjwjvtcyavqlhh2 --from cosmos10mamzxu2krqdewrjl7s5c3qzjwjvtcyavqlhh2 --keyring-backend test ``` ## Querying chats ### List all chats list-chat list all chat ```shell stellartalkd query stellartalk list-chat ``` ### List chats sent to my wallet ```shell stellartalkd query stellartalk my-received-chats ``` ### List all chats sent from my wallet stellartalkd query stellartalk my-sent-chats

近期下载者

相关文件


收藏者