核心模块
核心模块包含你的 Cosmos SDK 区块链中必须具备的功能。 这些模块提供了用户和运营者所需的核心行为,例如余额追踪、 权益证明能力以及治理。- Auth - 为 Cosmos SDK 应用中的账户和交易提供身份验证。
- Bank - 代币转账功能。
- Circuit - 用于暂停消息的熔断器模块。
- Consensus - 用于修改 CometBFT ABCI 共识参数的共识模块。
- Distribution - 费用分配以及质押代币分发。
- Evidence - 处理双签、恶意行为等证据。
- Governance - 链上提案与投票。
- Genutil - Cosmos SDK 的创世工具。
- Mint - 创建新的质押代币单位。
- Slashing - 验证者惩罚机制。
- Staking - 公有区块链的权益证明层。
- Upgrade - 软件升级处理与协调。
补充模块
补充模块是由 Cosmos SDK 维护、但并非你的区块链核心功能所必需的模块。 它们可以被视为扩展区块链能力或进一步实现专项化功能的方式。- Authz - 授权账户代表其他账户执行操作。
- Epochs - 提供注册机制,使 SDK 模块能够在定时触发点执行逻辑。
- Feegrant - 授予执行交易的手续费额度。
- Group - 支持创建和管理链上多签账户。
- NFT - 基于 ADR43 实现的 NFT 模块。
- ProtocolPool - 对社区资金池功能的扩展管理。
已弃用模块
以下模块已弃用。它们将不再维护,并会根据我们的发布流程 在 Cosmos SDK 后续版本中最终被移除。 如需进一步了解模块构建流程,请参阅模块构建参考文档。IBC
SDK 的 IBC 模块由 IBC Go 团队在其独立仓库中维护。 此外,capability 模块 从 v0.50+ 起也由 IBC Go 团队在其独立仓库中维护。CosmWasm
CosmWasm 模块支持智能合约。更多信息请访问其文档站点,或查看代码仓库。EVM
关于使用 Solidity 编写智能合约的更多信息,请参阅官方evm 文档页面。
Here are some production-grade modules that can be used in Cosmos SDK applications, along with their respective documentation:
Essential Modules
Essential modules include functionality that must be included in your Cosmos SDK blockchain. These modules provide the core behaviors that are needed for users and operators such as balance tracking, proof-of-stake capabilities and governance.- Auth - Authentication of accounts and transactions for Cosmos SDK applications.
- Bank - Token transfer functionalities.
- Circuit - Circuit breaker module for pausing messages.
- Consensus - Consensus module for modifying CometBFT’s ABCI consensus params.
- Distribution - Fee distribution, and staking token provision distribution.
- Evidence - Evidence handling for double signing, misbehaviour, etc.
- Governance - On-chain proposals and voting.
- Genutil - Genesis utilities for the Cosmos SDK.
- Mint - Creation of new units of staking token.
- Slashing - Validator punishment mechanisms.
- Staking - Proof-of-Stake layer for public blockchains.
- Upgrade - Software upgrades handling and coordination.
Supplementary Modules
Supplementary modules are modules that are maintained in the Cosmos SDK but are not necessary for the core functionality of your blockchain. They can be thought of as ways to extend the capabilities of your blockchain or further specialize it.- Authz - Authorization for accounts to perform actions on behalf of other accounts.
- Epochs - Registration so SDK modules can have logic to be executed at the timed tickers.
- Feegrant - Grant fee allowances for executing transactions.
- Group - Allows for the creation and management of on-chain multisig accounts.
- NFT - NFT module implemented based on ADR43.
- ProtocolPool - Extended management of community pool functionality.
Deprecated Modules
The following modules are deprecated. They will no longer be maintained and eventually will be removed in an upcoming release of the Cosmos SDK per our release process.- Crisis - Deprecated halting the blockchain under certain circumstances (e.g. if an invariant is broken).
- Params - Deprecated Globally available parameter store.
IBC
The IBC module for the SDK is maintained by the IBC Go team in its own repository. Additionally, the capability module is from v0.50+ maintained by the IBC Go team in its own repository.CosmWasm
The CosmWasm module enables smart contracts, learn more by going to their documentation site, or visit the repository.EVM
Read more about writing smart contracts with solidity at the officialevm documentation page.