GBEC Tech Blog
Published in

GBEC Tech Blog

Cosmos SDKでHello World ! その1

はじめに

確認

./hellochain
├── go.mod
├── Makefile
├── app.go
├── cmd
│ ├── hccli
│ │ └── main.go
│ └── hcd
│ └── main.go
└── x
└── greeter
├── client
│ ├── cli
│ │ ├── query.go
│ │ └── tx.go
├── internal
| ├── types
| | ├── msgs.go
| | └── types.go
| └─ keeper
| └── querier.go
| └── keeper.go
├── alias.go
├── module.go
└── handler.go

準備

# GOPATH以下にプロジェクトフォルダを作成しましょう。$ mkdir -p $GOPATH/src/github.com/{ .Username }/hellochain
$ cd $GOPATH/src/github.com/{ .Username }/hellochain
$ git init
# goモジュールの初期化(GOPATH以下でなければうまく実行できません)$ cd ./hellochain
$ go mod init

アプリの設定

Simple Daemon

つづく〜

fressetsお知らせ

HashHubお知らせ

--

--

This Blog is for all Blockchain Engineer

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store