Cosmos SDK 是一组 Go 模块的集合。本节提供了在开发 Cosmos SDK 链时可使用的各类软件包文档。
有关 SDK 模块的更多信息,请参阅 SDK 模块 部分。 有关 SDK 工具链的更多信息,请参阅 工具链 部分。

核心

  • Core - 定义 SDK 接口的核心库(ADR-063)
  • API - 包含生成的 SDK Pulsar API 的 API 库
  • Store - Cosmos SDK 存储的实现

状态管理

  • Collections - 类型化状态管理库,支持自动键编码、迭代和二级索引。参见 Collections 指南。
  • ORM - 构建在 collections 之上的 ORM 风格状态层,提供带主索引和二级索引的表抽象。基于 ADR-055。

自动化

交易

  • x/tx - 交易签名类型、签名模式实现(direct、amino JSON、textual)以及交易解码工具。

工具

  • Log - 日志库
  • Errors - 错误处理库
  • Math - 用于 SDK 算术运算的数学库

SimApp

  • SimApp - SimApp 是一个用于测试和开发的 Cosmos SDK 示例链。

The Cosmos SDK is a collection of Go modules. This section provides documentation on various packages that can be used when developing a Cosmos SDK chain.
For more information on SDK modules, see the SDK Modules section. For more information on SDK tooling, see the Tooling section.

Core

  • Core - Core library defining SDK interfaces (ADR-063)
  • API - API library containing generated SDK Pulsar API
  • Store - Implementation of the Cosmos SDK store

State Management

  • Collections - Typed state management library with automatic key encoding, iteration, and secondary indexes. See the Collections guide.
  • ORM - ORM-style state layer built on top of collections, providing table abstractions with primary and secondary indexes. Based on ADR-055.

Automation

Transactions

  • x/tx - Transaction signing types, sign mode implementations (direct, amino JSON, textual), and transaction decoder utilities.

Utilities

  • Log - Logging library
  • Errors - Error handling library
  • Math - Math library for SDK arithmetic operations

SimApp

  • SimApp - SimApp is a sample Cosmos SDK chain used for testing and development.