Categorygithub.com/jerryma0912/Cosmos-sdk-tutorial
modulepackage
0.0.0-20190807155910-e7c82ff2c4ef
Repository: https://github.com/jerryma0912/cosmos-sdk-tutorial.git
Documentation: pkg.go.dev

# README

SDK Application Tutorial

This repository contains the source code of the nameservice tutorial.

Tutorial

Click here to access the tutorial. You can also view it on the website.

Building and running the example

Click here for instructions on how to build and run the code.

Translations:

Slides

# Packages

No description provided by the author
No description provided by the author

# Functions

MakeCodec generates the necessary codecs for Amino.
No description provided by the author
NewNameServiceApp is a constructor function for nameServiceApp为应用添加一个简单的构造函数 添加以下逻辑:- 从每个所需模块中实例化所需的`Keeper`。- 生成每个`Keeper`所需的`storeKey`。- 注册每个模块的`handler`。`baseapp`的`路由器`的 `AddRoute()` 方法用来做这个。- 注册每个模块的`querier`。`baseapp`的`queryRouter`中的`AddRoute()`方法用来做这个。- 将`KVStores`挂载到`baseApp`的multistore提供的key值。- 设置`initChainer`来定义初始应用程序状态。.

# Variables

设置客户端的安装路径 default home directories for the application CLI.
设置全节点的安装路径 DefaultNodeHome sets the folder where the applcation data and configuration will be stored.
为不同模块的初始化 以及 配置,使其能够成为一个完整的应用 ModuleBasicManager is in charge of setting up basic module elemnets.

# Type aliases

GenesisState represents chain state at the start of the chain.