channel

package
v9.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 5, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package channel implements the ICS 04 - Channel and Packet Semantics specification (https://github.com/cosmos/ibc/tree/main/spec/core/ics-004-channel-and-packet-semantics). This concrete implementation defines types and methods for safely creating two stateful objects (channel ends) on two separate chains, each associated with a particular connection. A channel serves as a conduit for packets passing between a module on one chain and a module on another, ensuring that packets are executed only once, delivered in the order in which they were sent (if necessary), and delivered only to the corresponding module owning the other end of the channel on the destination chain.

The main types are Channel, which defines a stateful object on a chain that allows for exactly-once packet delivery between specific modules on separate blockchains, and Packet, which defines the data carried across different chains through IBC.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExportGenesis

func ExportGenesis(ctx sdk.Context, k *keeper.Keeper) types.GenesisState

ExportGenesis returns the ibc channel submodule's exported genesis.

func GetQueryCmd

func GetQueryCmd() *cobra.Command

GetQueryCmd returns the root query command for IBC channels.

func GetTxCmd

func GetTxCmd() *cobra.Command

GetTxCmd returns the root tx command for IBC channels.

func InitGenesis

func InitGenesis(ctx sdk.Context, k *keeper.Keeper, gs types.GenesisState)

InitGenesis initializes the ibc channel submodule's state from a provided genesis state.

func Name

func Name() string

Name returns the IBC channel ICS name.

Types

This section is empty.

Directories

Path Synopsis
client
cli
Package types is a reverse proxy.
Package types is a reverse proxy.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL