channel

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 14, 2020 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SubModuleName           = types.SubModuleName
	StoreKey                = types.StoreKey
	RouterKey               = types.RouterKey
	QuerierRoute            = types.QuerierRoute
	QueryAllChannels        = types.QueryAllChannels
	QueryConnectionChannels = types.QueryConnectionChannels
	QueryChannel            = types.QueryChannel
	UNINITIALIZED           = types.UNINITIALIZED
	INIT                    = types.INIT
	TRYOPEN                 = types.TRYOPEN
	OPEN                    = types.OPEN
	CLOSED                  = types.CLOSED
	NONE                    = types.NONE
	UNORDERED               = types.UNORDERED
	ORDERED                 = types.ORDERED
)

Variables

View Source
var (
	// functions aliases
	NewKeeper                    = keeper.NewKeeper
	QuerierChannels              = keeper.QuerierChannels
	QuerierConnectionChannels    = keeper.QuerierConnectionChannels
	NewChannel                   = types.NewChannel
	NewCounterparty              = types.NewCounterparty
	NewIdentifiedChannel         = types.NewIdentifiedChannel
	RegisterCodec                = types.RegisterCodec
	RegisterInterfaces           = types.RegisterInterfaces
	ErrChannelExists             = types.ErrChannelExists
	ErrChannelNotFound           = types.ErrChannelNotFound
	ErrInvalidCounterparty       = types.ErrInvalidCounterparty
	ErrChannelCapabilityNotFound = types.ErrChannelCapabilityNotFound
	ErrInvalidPacket             = types.ErrInvalidPacket
	ErrSequenceSendNotFound      = types.ErrSequenceSendNotFound
	ErrSequenceReceiveNotFound   = types.ErrSequenceReceiveNotFound
	ErrPacketTimeout             = types.ErrPacketTimeout
	ErrInvalidChannel            = types.ErrInvalidChannel
	ErrInvalidChannelState       = types.ErrInvalidChannelState
	ErrAcknowledgementTooLong    = types.ErrAcknowledgementTooLong
	NewMsgChannelOpenInit        = types.NewMsgChannelOpenInit
	NewMsgChannelOpenTry         = types.NewMsgChannelOpenTry
	NewMsgChannelOpenAck         = types.NewMsgChannelOpenAck
	NewMsgChannelOpenConfirm     = types.NewMsgChannelOpenConfirm
	NewMsgChannelCloseInit       = types.NewMsgChannelCloseInit
	NewMsgChannelCloseConfirm    = types.NewMsgChannelCloseConfirm
	NewMsgPacket                 = types.NewMsgPacket
	NewMsgTimeout                = types.NewMsgTimeout
	NewMsgAcknowledgement        = types.NewMsgAcknowledgement
	NewPacket                    = types.NewPacket
	NewPacketAckCommitment       = types.NewPacketAckCommitment
	NewPacketSequence            = types.NewPacketSequence
	NewChannelResponse           = types.NewChannelResponse
	DefaultGenesisState          = types.DefaultGenesisState
	NewGenesisState              = types.NewGenesisState

	// variable aliases
	SubModuleCdc                 = types.SubModuleCdc
	EventTypeChannelOpenInit     = types.EventTypeChannelOpenInit
	EventTypeChannelOpenTry      = types.EventTypeChannelOpenTry
	EventTypeChannelOpenAck      = types.EventTypeChannelOpenAck
	EventTypeChannelOpenConfirm  = types.EventTypeChannelOpenConfirm
	EventTypeChannelCloseInit    = types.EventTypeChannelCloseInit
	EventTypeChannelCloseConfirm = types.EventTypeChannelCloseConfirm
	AttributeValueCategory       = types.AttributeValueCategory
)

Functions

func GetQueryCmd

func GetQueryCmd(cdc *codec.Codec, queryRoute string) *cobra.Command

GetQueryCmd returns no root query command for the IBC connections.

func GetTxCmd

func GetTxCmd(cdc *codec.Codec, storeKey string) *cobra.Command

GetTxCmd returns the root tx command for the IBC connections.

func HandleMsgChannelCloseConfirm

func HandleMsgChannelCloseConfirm(ctx sdk.Context, k keeper.Keeper, channelCap *capability.Capability, msg types.MsgChannelCloseConfirm) (*sdk.Result, error)

HandleMsgChannelCloseConfirm defines the sdk.Handler for MsgChannelCloseConfirm

func HandleMsgChannelCloseInit

func HandleMsgChannelCloseInit(ctx sdk.Context, k keeper.Keeper, channelCap *capability.Capability, msg types.MsgChannelCloseInit) (*sdk.Result, error)

HandleMsgChannelCloseInit defines the sdk.Handler for MsgChannelCloseInit

func HandleMsgChannelOpenAck

func HandleMsgChannelOpenAck(ctx sdk.Context, k keeper.Keeper, channelCap *capability.Capability, msg types.MsgChannelOpenAck) (*sdk.Result, error)

HandleMsgChannelOpenAck defines the sdk.Handler for MsgChannelOpenAck

func HandleMsgChannelOpenConfirm

func HandleMsgChannelOpenConfirm(ctx sdk.Context, k keeper.Keeper, channelCap *capability.Capability, msg types.MsgChannelOpenConfirm) (*sdk.Result, error)

HandleMsgChannelOpenConfirm defines the sdk.Handler for MsgChannelOpenConfirm

func HandleMsgChannelOpenInit

func HandleMsgChannelOpenInit(ctx sdk.Context, k keeper.Keeper, portCap *capability.Capability, msg types.MsgChannelOpenInit) (*sdk.Result, *capability.Capability, error)

HandleMsgChannelOpenInit defines the sdk.Handler for MsgChannelOpenInit

func HandleMsgChannelOpenTry

func HandleMsgChannelOpenTry(ctx sdk.Context, k keeper.Keeper, portCap *capability.Capability, msg types.MsgChannelOpenTry) (*sdk.Result, *capability.Capability, error)

HandleMsgChannelOpenTry defines the sdk.Handler for MsgChannelOpenTry

func InitGenesis

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

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

func Name

func Name() string

Name returns the IBC connection ICS name

func RegisterRESTRoutes

func RegisterRESTRoutes(ctx context.CLIContext, rtr *mux.Router, queryRoute string)

RegisterRESTRoutes registers the REST routes for the IBC channel

Types

type Channel

type Channel = types.Channel

nolint: golint

type ChannelResponse

type ChannelResponse = types.ChannelResponse

nolint: golint

type ClientKeeper

type ClientKeeper = types.ClientKeeper

nolint: golint

type ConnectionKeeper

type ConnectionKeeper = types.ConnectionKeeper

nolint: golint

type Counterparty

type Counterparty = types.Counterparty

nolint: golint

type GenesisState

type GenesisState = types.GenesisState

nolint: golint

func ExportGenesis

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

ExportGenesis returns the ibc channel submodule's exported genesis.

type IdentifiedChannel

type IdentifiedChannel = types.IdentifiedChannel

nolint: golint

type Keeper

type Keeper = keeper.Keeper

nolint: golint

type MsgAcknowledgement

type MsgAcknowledgement = types.MsgAcknowledgement

nolint: golint

type MsgChannelCloseConfirm

type MsgChannelCloseConfirm = types.MsgChannelCloseConfirm

nolint: golint

type MsgChannelCloseInit

type MsgChannelCloseInit = types.MsgChannelCloseInit

nolint: golint

type MsgChannelOpenAck

type MsgChannelOpenAck = types.MsgChannelOpenAck

nolint: golint

type MsgChannelOpenConfirm

type MsgChannelOpenConfirm = types.MsgChannelOpenConfirm

nolint: golint

type MsgChannelOpenInit

type MsgChannelOpenInit = types.MsgChannelOpenInit

nolint: golint

type MsgChannelOpenTry

type MsgChannelOpenTry = types.MsgChannelOpenTry

nolint: golint

type MsgPacket

type MsgPacket = types.MsgPacket

nolint: golint

type MsgTimeout

type MsgTimeout = types.MsgTimeout

nolint: golint

type Order

type Order = types.Order

nolint: golint

type Packet

type Packet = types.Packet

nolint: golint

type PacketAckCommitment

type PacketAckCommitment = types.PacketAckCommitment

nolint: golint

type PacketSequence

type PacketSequence = types.PacketSequence

nolint: golint

type PortKeeper

type PortKeeper = types.PortKeeper

nolint: golint

type State

type State = types.State

nolint: golint

Directories

Path Synopsis
client
cli

Jump to

Keyboard shortcuts

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