Skip to content

Latest commit

 

History

History
46 lines (29 loc) · 4.3 KB

project-structure.md

File metadata and controls

46 lines (29 loc) · 4.3 KB

Project structure

If you're not familiar with the overall module structure from the SDK modules, please check this document as prerequisite reading.

Every Interchain Standard (ICS) has been developed in its own package. The development team separated the IBC TAO (Transport, Authentication, Ordering) ICS specifications from the IBC application level specification. The following sections describe the architecture of the most relevant directories that comprise this repository.

modules

This folder contains implementations for the IBC TAO (core), IBC applications (apps) and light clients (light-clients).

core

  • 02-client: This package is an implementation for Cosmos SDK-based chains of ICS 02. This implementation defines the types and methods needed to operate light clients tracking other chain's consensus state.
  • 03-connection: This package is an implementation for Cosmos SDK-based chains of ICS 03. This implementation defines the types and methods necessary to perform connection handshake between two chains.
  • 04-channel: This package is an implementation for Cosmos SDK-based chains of ICS 04. This implementation defines the types and methods necessary to perform channel handshake between two chains and ensure correct packet sending flow.
  • 05-port: This package is an implementation for Cosmos SDK-based chains of ICS 05. This implements the port allocation system by which modules can bind to uniquely named ports.
  • 23-commitment: This package is an implementation for Cosmos SDK-based chains of ICS 23. This implementation defines the functions required to prove inclusion or non-inclusion of particular values at particular paths in state.
  • 24-host: This package is an implementation for Cosmos SDK-based chains of ICS 24.

apps

  • transfer: This is the Cosmos SDK implementation of the ICS 20 protocol, which enables cross-chain fungible token transfers. For more information, read the module's docs
  • 27-interchain-accounts: This is the Cosmos SDK implementation of the ICS 27 protocol, which enables cross-chain account management built upon IBC. For more information, read the module's documentation.
  • 29-fee: This is the Cosmos SDK implementation of the ICS 29 middleware, which handles packet incentivisation and fee distribution on top of any ICS application protocol, enabling fee payment to relayer operators. For more information, read the module's documentation.

light-clients

  • 06-solomachine: This package implement the types for the Solo Machine light client specified in ICS 06.
  • 07-tendermint: This package implement the types for the Tendermint consensus light client as specified in ICS 07.

proto

This folder contains all the Protobuf files used for

  • common message type definitions,
  • message type definitions related to genesis state,
  • Query service and related message type definitions,
  • Msg service and related message type definitions.

testing

This package contains the implementation of the testing package used in unit and integration tests. Please read the package's documentation for more information.

e2e

This folder contains all the e2e tests of ibc-go. Please read the module's documentation for more information.