types

package
v0.0.0-...-7c30539 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2020 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AttributeKeyConnectionID       = "connection_id"
	AttributeKeyPortID             = "port_id"
	AttributeKeyChannelID          = "channel_id"
	AttributeCounterpartyPortID    = "counterparty_port_id"
	AttributeCounterpartyChannelID = "counterparty_channel_id"

	EventTypeSendPacket        = "send_packet"
	EventTypeRecvPacket        = "recv_packet"
	EventTypeAcknowledgePacket = "acknowledge_packet"
	EventTypeTimeoutPacket     = "timeout_packet"

	AttributeKeyData             = "packet_data"
	AttributeKeyAck              = "packet_ack"
	AttributeKeyTimeoutHeight    = "packet_timeout_height"
	AttributeKeyTimeoutTimestamp = "packet_timeout_timestamp"
	AttributeKeySequence         = "packet_sequence"
	AttributeKeySrcPort          = "packet_src_port"
	AttributeKeySrcChannel       = "packet_src_channel"
	AttributeKeyDstPort          = "packet_dst_port"
	AttributeKeyDstChannel       = "packet_dst_channel"
	AttributeKeyChannelOrdering  = "packet_channel_ordering"
)

IBC channel events

View Source
const (
	// SubModuleName defines the IBC channels name
	SubModuleName = "channel"

	// StoreKey is the store key string for IBC channels
	StoreKey = SubModuleName

	// RouterKey is the message route for IBC channels
	RouterKey = SubModuleName

	// QuerierRoute is the querier route for IBC channels
	QuerierRoute = SubModuleName
)
View Source
const (
	QueryChannelClientState    = "channel-client-state"
	QueryChannelConsensusState = "channel-consensus-state"
)

query routes supported by the IBC channel Querier

Variables

View Source
var (
	ErrInvalidLengthChannel        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowChannel          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupChannel = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrChannelExists             = sdkerrors.Register(SubModuleName, 2, "channel already exists")
	ErrChannelNotFound           = sdkerrors.Register(SubModuleName, 3, "channel not found")
	ErrInvalidChannel            = sdkerrors.Register(SubModuleName, 4, "invalid channel")
	ErrInvalidChannelState       = sdkerrors.Register(SubModuleName, 5, "invalid channel state")
	ErrInvalidChannelOrdering    = sdkerrors.Register(SubModuleName, 6, "invalid channel ordering")
	ErrInvalidCounterparty       = sdkerrors.Register(SubModuleName, 7, "invalid counterparty channel")
	ErrInvalidChannelCapability  = sdkerrors.Register(SubModuleName, 8, "invalid channel capability")
	ErrChannelCapabilityNotFound = sdkerrors.Register(SubModuleName, 9, "channel capability not found")
	ErrSequenceSendNotFound      = sdkerrors.Register(SubModuleName, 10, "sequence send not found")
	ErrSequenceReceiveNotFound   = sdkerrors.Register(SubModuleName, 11, "sequence receive not found")
	ErrSequenceAckNotFound       = sdkerrors.Register(SubModuleName, 12, "sequence acknowledgement not found")
	ErrInvalidPacket             = sdkerrors.Register(SubModuleName, 13, "invalid packet")
	ErrPacketTimeout             = sdkerrors.Register(SubModuleName, 14, "packet timeout")
	ErrTooManyConnectionHops     = sdkerrors.Register(SubModuleName, 15, "too many connection hops")
	ErrAcknowledgementTooLong    = sdkerrors.Register(SubModuleName, 16, "acknowledgement too long")
	ErrInvalidAcknowledgement    = sdkerrors.Register(SubModuleName, 17, "invalid acknowledgement")
)

IBC channel sentinel errors

View Source
var (
	EventTypeChannelOpenInit     = MsgChannelOpenInit{}.Type()
	EventTypeChannelOpenTry      = MsgChannelOpenTry{}.Type()
	EventTypeChannelOpenAck      = MsgChannelOpenAck{}.Type()
	EventTypeChannelOpenConfirm  = MsgChannelOpenConfirm{}.Type()
	EventTypeChannelCloseInit    = MsgChannelCloseInit{}.Type()
	EventTypeChannelCloseConfirm = MsgChannelCloseConfirm{}.Type()

	AttributeValueCategory = fmt.Sprintf("%s_%s", host.ModuleName, SubModuleName)
)

IBC channel events vars

View Source
var (
	ErrInvalidLengthQuery        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowQuery          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group")
)
View Source
var Order_name = map[int32]string{
	0: "ORDER_NONE_UNSPECIFIED",
	1: "ORDER_UNORDERED",
	2: "ORDER_ORDERED",
}
View Source
var Order_value = map[string]int32{
	"ORDER_NONE_UNSPECIFIED": 0,
	"ORDER_UNORDERED":        1,
	"ORDER_ORDERED":          2,
}
View Source
var State_name = map[int32]string{
	0: "STATE_UNINITIALIZED_UNSPECIFIED",
	1: "STATE_INIT",
	2: "STATE_TRYOPEN",
	3: "STATE_OPEN",
	4: "STATE_CLOSED",
}
View Source
var State_value = map[string]int32{
	"STATE_UNINITIALIZED_UNSPECIFIED": 0,
	"STATE_INIT":                      1,
	"STATE_TRYOPEN":                   2,
	"STATE_OPEN":                      3,
	"STATE_CLOSED":                    4,
}
View Source
var (

	// SubModuleCdc references the global x/ibc/04-channel module codec. Note, the codec should
	// ONLY be used in certain instances of tests and for JSON encoding as Amino is
	// still used for that purpose.
	//
	// The actual codec used for serialization should be provided to x/ibc/04-channel and
	// defined at the application level.
	SubModuleCdc = codec.NewHybridCodec(amino, cdctypes.NewInterfaceRegistry())
)

Functions

func CommitAcknowledgement

func CommitAcknowledgement(data []byte) []byte

CommitAcknowledgement returns the hash of commitment bytes

func CommitPacket

func CommitPacket(packet exported.PacketI) []byte

CommitPacket returns a packet commitment bytes. The commitment consists of: hash(timeout_timestamp + timeout_height + data) from a given packet.

func RegisterCodec

func RegisterCodec(cdc *codec.Codec)

RegisterCodec registers the necessary x/ibc/04-channel interfaces and concrete types on the provided Amino codec. These types are used for Amino JSON serialization.

func RegisterInterfaces

func RegisterInterfaces(registry cdctypes.InterfaceRegistry)

RegisterInterfaces register the ibc channel submodule interfaces to protobuf Any.

func RegisterQueryServer

func RegisterQueryServer(s grpc1.Server, srv QueryServer)

Types

type Channel

type Channel struct {
	// current state of the channel end
	State State `protobuf:"varint,1,opt,name=state,proto3,enum=ibc.channel.State" json:"state,omitempty"`
	// whether the channel is ordered or unordered
	Ordering Order `protobuf:"varint,2,opt,name=ordering,proto3,enum=ibc.channel.Order" json:"ordering,omitempty"`
	// counterparty channel end
	Counterparty Counterparty `protobuf:"bytes,3,opt,name=counterparty,proto3" json:"counterparty"`
	// list of connection identifiers, in order, along which packets sent on this
	// channel will travel
	ConnectionHops []string `` /* 126-byte string literal not displayed */
	// opaque channel version, which is agreed upon during the handshake
	Version string `protobuf:"bytes,5,opt,name=version,proto3" json:"version,omitempty"`
}

Channel defines pipeline for exactly-once packet delivery between specific modules on separate blockchains, which has at least one end capable of sending packets and one end capable of receiving packets.

func NewChannel

func NewChannel(
	state State, ordering Order, counterparty Counterparty,
	hops []string, version string,
) Channel

NewChannel creates a new Channel instance

func (*Channel) Descriptor

func (*Channel) Descriptor() ([]byte, []int)

func (Channel) GetConnectionHops

func (ch Channel) GetConnectionHops() []string

GetConnectionHops implements Channel interface.

func (Channel) GetCounterparty

func (ch Channel) GetCounterparty() exported.CounterpartyI

GetCounterparty implements Channel interface.

func (Channel) GetOrdering

func (ch Channel) GetOrdering() int32

GetOrdering implements Channel interface.

func (Channel) GetState

func (ch Channel) GetState() int32

GetState implements Channel interface.

func (Channel) GetVersion

func (ch Channel) GetVersion() string

GetVersion implements Channel interface.

func (*Channel) Marshal

func (m *Channel) Marshal() (dAtA []byte, err error)

func (*Channel) MarshalTo

func (m *Channel) MarshalTo(dAtA []byte) (int, error)

func (*Channel) MarshalToSizedBuffer

func (m *Channel) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Channel) ProtoMessage

func (*Channel) ProtoMessage()

func (*Channel) Reset

func (m *Channel) Reset()

func (*Channel) Size

func (m *Channel) Size() (n int)

func (*Channel) String

func (m *Channel) String() string

func (*Channel) Unmarshal

func (m *Channel) Unmarshal(dAtA []byte) error

func (Channel) ValidateBasic

func (ch Channel) ValidateBasic() error

ValidateBasic performs a basic validation of the channel fields

func (*Channel) XXX_DiscardUnknown

func (m *Channel) XXX_DiscardUnknown()

func (*Channel) XXX_Marshal

func (m *Channel) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Channel) XXX_Merge

func (m *Channel) XXX_Merge(src proto.Message)

func (*Channel) XXX_Size

func (m *Channel) XXX_Size() int

func (*Channel) XXX_Unmarshal

func (m *Channel) XXX_Unmarshal(b []byte) error

type ClientKeeper

type ClientKeeper interface {
	GetClientState(ctx sdk.Context, clientID string) (clientexported.ClientState, bool)
}

ClientKeeper expected account IBC client keeper

type ConnectionKeeper

type ConnectionKeeper interface {
	GetConnection(ctx sdk.Context, connectionID string) (connectiontypes.ConnectionEnd, bool)
	GetTimestampAtHeight(
		ctx sdk.Context,
		connection connectiontypes.ConnectionEnd,
		height uint64,
	) (uint64, error)
	VerifyChannelState(
		ctx sdk.Context,
		connection connectionexported.ConnectionI,
		height uint64,
		proof []byte,
		portID,
		channelID string,
		channel exported.ChannelI,
	) error
	VerifyPacketCommitment(
		ctx sdk.Context,
		connection connectionexported.ConnectionI,
		height uint64,
		proof []byte,
		portID,
		channelID string,
		sequence uint64,
		commitmentBytes []byte,
	) error
	VerifyPacketAcknowledgement(
		ctx sdk.Context,
		connection connectionexported.ConnectionI,
		height uint64,
		proof []byte,
		portID,
		channelID string,
		sequence uint64,
		acknowledgement []byte,
	) error
	VerifyPacketAcknowledgementAbsence(
		ctx sdk.Context,
		connection connectionexported.ConnectionI,
		height uint64,
		proof []byte,
		portID,
		channelID string,
		sequence uint64,
	) error
	VerifyNextSequenceRecv(
		ctx sdk.Context,
		connection connectionexported.ConnectionI,
		height uint64,
		proof []byte,
		portID,
		channelID string,
		nextSequenceRecv uint64,
	) error
}

ConnectionKeeper expected account IBC connection keeper

type Counterparty

type Counterparty struct {
	// port on the counterparty chain which owns the other end of the channel.
	PortID string `protobuf:"bytes,1,opt,name=port_id,json=portId,proto3" json:"port_id,omitempty" yaml:"port_id"`
	// channel end on the counterparty chain
	ChannelID string `protobuf:"bytes,2,opt,name=channel_id,json=channelId,proto3" json:"channel_id,omitempty" yaml:"channel_id"`
}

Counterparty defines a channel end counterparty

func NewCounterparty

func NewCounterparty(portID, channelID string) Counterparty

NewCounterparty returns a new Counterparty instance

func (*Counterparty) Descriptor

func (*Counterparty) Descriptor() ([]byte, []int)

func (Counterparty) GetChannelID

func (c Counterparty) GetChannelID() string

GetChannelID implements CounterpartyI interface

func (Counterparty) GetPortID

func (c Counterparty) GetPortID() string

GetPortID implements CounterpartyI interface

func (*Counterparty) Marshal

func (m *Counterparty) Marshal() (dAtA []byte, err error)

func (*Counterparty) MarshalTo

func (m *Counterparty) MarshalTo(dAtA []byte) (int, error)

func (*Counterparty) MarshalToSizedBuffer

func (m *Counterparty) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Counterparty) ProtoMessage

func (*Counterparty) ProtoMessage()

func (*Counterparty) Reset

func (m *Counterparty) Reset()

func (*Counterparty) Size

func (m *Counterparty) Size() (n int)

func (*Counterparty) String

func (m *Counterparty) String() string

func (*Counterparty) Unmarshal

func (m *Counterparty) Unmarshal(dAtA []byte) error

func (Counterparty) ValidateBasic

func (c Counterparty) ValidateBasic() error

ValidateBasic performs a basic validation check of the identifiers

func (*Counterparty) XXX_DiscardUnknown

func (m *Counterparty) XXX_DiscardUnknown()

func (*Counterparty) XXX_Marshal

func (m *Counterparty) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Counterparty) XXX_Merge

func (m *Counterparty) XXX_Merge(src proto.Message)

func (*Counterparty) XXX_Size

func (m *Counterparty) XXX_Size() int

func (*Counterparty) XXX_Unmarshal

func (m *Counterparty) XXX_Unmarshal(b []byte) error

type GenesisState

type GenesisState struct {
	Channels         []IdentifiedChannel   `json:"channels" yaml:"channels"`
	Acknowledgements []PacketAckCommitment `json:"acknowledgements" yaml:"acknowledgements"`
	Commitments      []PacketAckCommitment `json:"commitments" yaml:"commitments"`
	SendSequences    []PacketSequence      `json:"send_sequences" yaml:"send_sequences"`
	RecvSequences    []PacketSequence      `json:"recv_sequences" yaml:"recv_sequences"`
	AckSequences     []PacketSequence      `json:"ack_sequences" yaml:"ack_sequences"`
}

GenesisState defines the ibc channel submodule's genesis state.

func DefaultGenesisState

func DefaultGenesisState() GenesisState

DefaultGenesisState returns the ibc channel submodule's default genesis state.

func NewGenesisState

func NewGenesisState(
	channels []IdentifiedChannel, acks, commitments []PacketAckCommitment,
	sendSeqs, recvSeqs, ackSeqs []PacketSequence,
) GenesisState

NewGenesisState creates a GenesisState instance.

func (GenesisState) Validate

func (gs GenesisState) Validate() error

Validate performs basic genesis state validation returning an error upon any failure.

type IdentifiedChannel

type IdentifiedChannel struct {
	// current state of the channel end
	State State `protobuf:"varint,1,opt,name=state,proto3,enum=ibc.channel.State" json:"state,omitempty"`
	// whether the channel is ordered or unordered
	Ordering Order `protobuf:"varint,2,opt,name=ordering,proto3,enum=ibc.channel.Order" json:"ordering,omitempty"`
	// counterparty channel end
	Counterparty Counterparty `protobuf:"bytes,3,opt,name=counterparty,proto3" json:"counterparty"`
	// list of connection identifiers, in order, along which packets sent on this
	// channel will travel
	ConnectionHops []string `` /* 126-byte string literal not displayed */
	// opaque channel version, which is agreed upon during the handshake
	Version string `protobuf:"bytes,5,opt,name=version,proto3" json:"version,omitempty"`
	// port identifier
	PortID string `protobuf:"bytes,6,opt,name=port_id,json=portId,proto3" json:"port_id,omitempty"`
	// channel identifier
	ChannelID string `protobuf:"bytes,7,opt,name=channel_id,json=channelId,proto3" json:"channel_id,omitempty"`
}

IdentifiedChannel defines a channel with additional port and channel identifier fields.

func NewIdentifiedChannel

func NewIdentifiedChannel(portID, channelID string, ch Channel) IdentifiedChannel

NewIdentifiedChannel creates a new IdentifiedChannel instance

func (*IdentifiedChannel) Descriptor

func (*IdentifiedChannel) Descriptor() ([]byte, []int)

func (*IdentifiedChannel) Marshal

func (m *IdentifiedChannel) Marshal() (dAtA []byte, err error)

func (*IdentifiedChannel) MarshalTo

func (m *IdentifiedChannel) MarshalTo(dAtA []byte) (int, error)

func (*IdentifiedChannel) MarshalToSizedBuffer

func (m *IdentifiedChannel) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*IdentifiedChannel) ProtoMessage

func (*IdentifiedChannel) ProtoMessage()

func (*IdentifiedChannel) Reset

func (m *IdentifiedChannel) Reset()

func (*IdentifiedChannel) Size

func (m *IdentifiedChannel) Size() (n int)

func (*IdentifiedChannel) String

func (m *IdentifiedChannel) String() string

func (*IdentifiedChannel) Unmarshal

func (m *IdentifiedChannel) Unmarshal(dAtA []byte) error

func (IdentifiedChannel) ValidateBasic

func (ic IdentifiedChannel) ValidateBasic() error

ValidateBasic performs a basic validation of the identifiers and channel fields.

func (*IdentifiedChannel) XXX_DiscardUnknown

func (m *IdentifiedChannel) XXX_DiscardUnknown()

func (*IdentifiedChannel) XXX_Marshal

func (m *IdentifiedChannel) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*IdentifiedChannel) XXX_Merge

func (m *IdentifiedChannel) XXX_Merge(src proto.Message)

func (*IdentifiedChannel) XXX_Size

func (m *IdentifiedChannel) XXX_Size() int

func (*IdentifiedChannel) XXX_Unmarshal

func (m *IdentifiedChannel) XXX_Unmarshal(b []byte) error

type MsgAcknowledgement

type MsgAcknowledgement struct {
	Packet          Packet                                        `protobuf:"bytes,1,opt,name=packet,proto3" json:"packet"`
	Acknowledgement []byte                                        `protobuf:"bytes,2,opt,name=acknowledgement,proto3" json:"acknowledgement,omitempty"`
	Proof           []byte                                        `protobuf:"bytes,3,opt,name=proof,proto3" json:"proof,omitempty"`
	ProofHeight     uint64                                        `protobuf:"varint,4,opt,name=proof_height,json=proofHeight,proto3" json:"proof_height,omitempty" yaml:"proof_height"`
	Signer          github_com_cosmos_cosmos_sdk_types.AccAddress `protobuf:"bytes,5,opt,name=signer,proto3,casttype=github.com/cosmos/cosmos-sdk/types.AccAddress" json:"signer,omitempty"`
}

MsgAcknowledgement receives incoming IBC acknowledgement

func NewMsgAcknowledgement

func NewMsgAcknowledgement(
	packet Packet, ack []byte, proof []byte, proofHeight uint64, signer sdk.AccAddress) *MsgAcknowledgement

NewMsgAcknowledgement constructs a new MsgAcknowledgement

func (*MsgAcknowledgement) Descriptor

func (*MsgAcknowledgement) Descriptor() ([]byte, []int)

func (*MsgAcknowledgement) GetAcknowledgement

func (m *MsgAcknowledgement) GetAcknowledgement() []byte

func (*MsgAcknowledgement) GetPacket

func (m *MsgAcknowledgement) GetPacket() Packet

func (*MsgAcknowledgement) GetProof

func (m *MsgAcknowledgement) GetProof() []byte

func (*MsgAcknowledgement) GetProofHeight

func (m *MsgAcknowledgement) GetProofHeight() uint64

func (MsgAcknowledgement) GetSignBytes

func (msg MsgAcknowledgement) GetSignBytes() []byte

GetSignBytes implements sdk.Msg

func (*MsgAcknowledgement) GetSigner

func (MsgAcknowledgement) GetSigners

func (msg MsgAcknowledgement) GetSigners() []sdk.AccAddress

GetSigners implements sdk.Msg

func (*MsgAcknowledgement) Marshal

func (m *MsgAcknowledgement) Marshal() (dAtA []byte, err error)

func (*MsgAcknowledgement) MarshalTo

func (m *MsgAcknowledgement) MarshalTo(dAtA []byte) (int, error)

func (*MsgAcknowledgement) MarshalToSizedBuffer

func (m *MsgAcknowledgement) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgAcknowledgement) ProtoMessage

func (*MsgAcknowledgement) ProtoMessage()

func (*MsgAcknowledgement) Reset

func (m *MsgAcknowledgement) Reset()

func (MsgAcknowledgement) Route

func (msg MsgAcknowledgement) Route() string

Route implements sdk.Msg

func (*MsgAcknowledgement) Size

func (m *MsgAcknowledgement) Size() (n int)

func (*MsgAcknowledgement) String

func (m *MsgAcknowledgement) String() string

func (MsgAcknowledgement) Type

func (msg MsgAcknowledgement) Type() string

Type implements sdk.Msg

func (*MsgAcknowledgement) Unmarshal

func (m *MsgAcknowledgement) Unmarshal(dAtA []byte) error

func (MsgAcknowledgement) ValidateBasic

func (msg MsgAcknowledgement) ValidateBasic() error

ValidateBasic implements sdk.Msg

func (*MsgAcknowledgement) XXX_DiscardUnknown

func (m *MsgAcknowledgement) XXX_DiscardUnknown()

func (*MsgAcknowledgement) XXX_Marshal

func (m *MsgAcknowledgement) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgAcknowledgement) XXX_Merge

func (m *MsgAcknowledgement) XXX_Merge(src proto.Message)

func (*MsgAcknowledgement) XXX_Size

func (m *MsgAcknowledgement) XXX_Size() int

func (*MsgAcknowledgement) XXX_Unmarshal

func (m *MsgAcknowledgement) XXX_Unmarshal(b []byte) error

type MsgChannelCloseConfirm

type MsgChannelCloseConfirm struct {
	PortID      string                                        `protobuf:"bytes,1,opt,name=port_id,json=portId,proto3" json:"port_id,omitempty" yaml:"port_id"`
	ChannelID   string                                        `protobuf:"bytes,2,opt,name=channel_id,json=channelId,proto3" json:"channel_id,omitempty" yaml:"channel_id"`
	ProofInit   []byte                                        `protobuf:"bytes,3,opt,name=proof_init,json=proofInit,proto3" json:"proof_init,omitempty" yaml:"proof_init"`
	ProofHeight uint64                                        `protobuf:"varint,4,opt,name=proof_height,json=proofHeight,proto3" json:"proof_height,omitempty" yaml:"proof_height"`
	Signer      github_com_cosmos_cosmos_sdk_types.AccAddress `protobuf:"bytes,5,opt,name=signer,proto3,casttype=github.com/cosmos/cosmos-sdk/types.AccAddress" json:"signer,omitempty"`
}

MsgChannelCloseConfirm defines a msg sent by a Relayer to Chain B to acknowledge the change of channel state to CLOSED on Chain A.

func NewMsgChannelCloseConfirm

func NewMsgChannelCloseConfirm(
	portID, channelID string, proofInit []byte, proofHeight uint64,
	signer sdk.AccAddress,
) *MsgChannelCloseConfirm

NewMsgChannelCloseConfirm creates a new MsgChannelCloseConfirm instance

func (*MsgChannelCloseConfirm) Descriptor

func (*MsgChannelCloseConfirm) Descriptor() ([]byte, []int)

func (*MsgChannelCloseConfirm) GetChannelID

func (m *MsgChannelCloseConfirm) GetChannelID() string

func (*MsgChannelCloseConfirm) GetPortID

func (m *MsgChannelCloseConfirm) GetPortID() string

func (*MsgChannelCloseConfirm) GetProofHeight

func (m *MsgChannelCloseConfirm) GetProofHeight() uint64

func (*MsgChannelCloseConfirm) GetProofInit

func (m *MsgChannelCloseConfirm) GetProofInit() []byte

func (MsgChannelCloseConfirm) GetSignBytes

func (msg MsgChannelCloseConfirm) GetSignBytes() []byte

GetSignBytes implements sdk.Msg

func (*MsgChannelCloseConfirm) GetSigner

func (MsgChannelCloseConfirm) GetSigners

func (msg MsgChannelCloseConfirm) GetSigners() []sdk.AccAddress

GetSigners implements sdk.Msg

func (*MsgChannelCloseConfirm) Marshal

func (m *MsgChannelCloseConfirm) Marshal() (dAtA []byte, err error)

func (*MsgChannelCloseConfirm) MarshalTo

func (m *MsgChannelCloseConfirm) MarshalTo(dAtA []byte) (int, error)

func (*MsgChannelCloseConfirm) MarshalToSizedBuffer

func (m *MsgChannelCloseConfirm) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgChannelCloseConfirm) ProtoMessage

func (*MsgChannelCloseConfirm) ProtoMessage()

func (*MsgChannelCloseConfirm) Reset

func (m *MsgChannelCloseConfirm) Reset()

func (MsgChannelCloseConfirm) Route

func (msg MsgChannelCloseConfirm) Route() string

Route implements sdk.Msg

func (*MsgChannelCloseConfirm) Size

func (m *MsgChannelCloseConfirm) Size() (n int)

func (*MsgChannelCloseConfirm) String

func (m *MsgChannelCloseConfirm) String() string

func (MsgChannelCloseConfirm) Type

func (msg MsgChannelCloseConfirm) Type() string

Type implements sdk.Msg

func (*MsgChannelCloseConfirm) Unmarshal

func (m *MsgChannelCloseConfirm) Unmarshal(dAtA []byte) error

func (MsgChannelCloseConfirm) ValidateBasic

func (msg MsgChannelCloseConfirm) ValidateBasic() error

ValidateBasic implements sdk.Msg

func (*MsgChannelCloseConfirm) XXX_DiscardUnknown

func (m *MsgChannelCloseConfirm) XXX_DiscardUnknown()

func (*MsgChannelCloseConfirm) XXX_Marshal

func (m *MsgChannelCloseConfirm) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgChannelCloseConfirm) XXX_Merge

func (m *MsgChannelCloseConfirm) XXX_Merge(src proto.Message)

func (*MsgChannelCloseConfirm) XXX_Size

func (m *MsgChannelCloseConfirm) XXX_Size() int

func (*MsgChannelCloseConfirm) XXX_Unmarshal

func (m *MsgChannelCloseConfirm) XXX_Unmarshal(b []byte) error

type MsgChannelCloseInit

type MsgChannelCloseInit struct {
	PortID    string                                        `protobuf:"bytes,1,opt,name=port_id,json=portId,proto3" json:"port_id,omitempty" yaml:"port_id"`
	ChannelID string                                        `protobuf:"bytes,2,opt,name=channel_id,json=channelId,proto3" json:"channel_id,omitempty" yaml:"channel_id"`
	Signer    github_com_cosmos_cosmos_sdk_types.AccAddress `protobuf:"bytes,3,opt,name=signer,proto3,casttype=github.com/cosmos/cosmos-sdk/types.AccAddress" json:"signer,omitempty"`
}

MsgChannelOpenConfirm defines a msg sent by a Relayer to Chain A to close a channel with Chain B.

func NewMsgChannelCloseInit

func NewMsgChannelCloseInit(
	portID string, channelID string, signer sdk.AccAddress,
) *MsgChannelCloseInit

NewMsgChannelCloseInit creates a new MsgChannelCloseInit instance

func (*MsgChannelCloseInit) Descriptor

func (*MsgChannelCloseInit) Descriptor() ([]byte, []int)

func (*MsgChannelCloseInit) GetChannelID

func (m *MsgChannelCloseInit) GetChannelID() string

func (*MsgChannelCloseInit) GetPortID

func (m *MsgChannelCloseInit) GetPortID() string

func (MsgChannelCloseInit) GetSignBytes

func (msg MsgChannelCloseInit) GetSignBytes() []byte

GetSignBytes implements sdk.Msg

func (*MsgChannelCloseInit) GetSigner

func (MsgChannelCloseInit) GetSigners

func (msg MsgChannelCloseInit) GetSigners() []sdk.AccAddress

GetSigners implements sdk.Msg

func (*MsgChannelCloseInit) Marshal

func (m *MsgChannelCloseInit) Marshal() (dAtA []byte, err error)

func (*MsgChannelCloseInit) MarshalTo

func (m *MsgChannelCloseInit) MarshalTo(dAtA []byte) (int, error)

func (*MsgChannelCloseInit) MarshalToSizedBuffer

func (m *MsgChannelCloseInit) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgChannelCloseInit) ProtoMessage

func (*MsgChannelCloseInit) ProtoMessage()

func (*MsgChannelCloseInit) Reset

func (m *MsgChannelCloseInit) Reset()

func (MsgChannelCloseInit) Route

func (msg MsgChannelCloseInit) Route() string

Route implements sdk.Msg

func (*MsgChannelCloseInit) Size

func (m *MsgChannelCloseInit) Size() (n int)

func (*MsgChannelCloseInit) String

func (m *MsgChannelCloseInit) String() string

func (MsgChannelCloseInit) Type

func (msg MsgChannelCloseInit) Type() string

Type implements sdk.Msg

func (*MsgChannelCloseInit) Unmarshal

func (m *MsgChannelCloseInit) Unmarshal(dAtA []byte) error

func (MsgChannelCloseInit) ValidateBasic

func (msg MsgChannelCloseInit) ValidateBasic() error

ValidateBasic implements sdk.Msg

func (*MsgChannelCloseInit) XXX_DiscardUnknown

func (m *MsgChannelCloseInit) XXX_DiscardUnknown()

func (*MsgChannelCloseInit) XXX_Marshal

func (m *MsgChannelCloseInit) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgChannelCloseInit) XXX_Merge

func (m *MsgChannelCloseInit) XXX_Merge(src proto.Message)

func (*MsgChannelCloseInit) XXX_Size

func (m *MsgChannelCloseInit) XXX_Size() int

func (*MsgChannelCloseInit) XXX_Unmarshal

func (m *MsgChannelCloseInit) XXX_Unmarshal(b []byte) error

type MsgChannelOpenAck

type MsgChannelOpenAck struct {
	PortID              string                                        `protobuf:"bytes,1,opt,name=port_id,json=portId,proto3" json:"port_id,omitempty" yaml:"port_id"`
	ChannelID           string                                        `protobuf:"bytes,2,opt,name=channel_id,json=channelId,proto3" json:"channel_id,omitempty" yaml:"channel_id"`
	CounterpartyVersion string                                        `` /* 146-byte string literal not displayed */
	ProofTry            []byte                                        `protobuf:"bytes,4,opt,name=proof_try,json=proofTry,proto3" json:"proof_try,omitempty" yaml:"proof_try"`
	ProofHeight         uint64                                        `protobuf:"varint,5,opt,name=proof_height,json=proofHeight,proto3" json:"proof_height,omitempty" yaml:"proof_height"`
	Signer              github_com_cosmos_cosmos_sdk_types.AccAddress `protobuf:"bytes,6,opt,name=signer,proto3,casttype=github.com/cosmos/cosmos-sdk/types.AccAddress" json:"signer,omitempty"`
}

MsgChannelOpenAck defines a msg sent by a Relayer to Chain A to acknowledge the change of channel state to TRYOPEN on Chain B.

func NewMsgChannelOpenAck

func NewMsgChannelOpenAck(
	portID, channelID string, cpv string, proofTry []byte, proofHeight uint64,
	signer sdk.AccAddress,
) *MsgChannelOpenAck

NewMsgChannelOpenAck creates a new MsgChannelOpenAck instance

func (*MsgChannelOpenAck) Descriptor

func (*MsgChannelOpenAck) Descriptor() ([]byte, []int)

func (*MsgChannelOpenAck) GetChannelID

func (m *MsgChannelOpenAck) GetChannelID() string

func (*MsgChannelOpenAck) GetCounterpartyVersion

func (m *MsgChannelOpenAck) GetCounterpartyVersion() string

func (*MsgChannelOpenAck) GetPortID

func (m *MsgChannelOpenAck) GetPortID() string

func (*MsgChannelOpenAck) GetProofHeight

func (m *MsgChannelOpenAck) GetProofHeight() uint64

func (*MsgChannelOpenAck) GetProofTry

func (m *MsgChannelOpenAck) GetProofTry() []byte

func (MsgChannelOpenAck) GetSignBytes

func (msg MsgChannelOpenAck) GetSignBytes() []byte

GetSignBytes implements sdk.Msg

func (*MsgChannelOpenAck) GetSigner

func (MsgChannelOpenAck) GetSigners

func (msg MsgChannelOpenAck) GetSigners() []sdk.AccAddress

GetSigners implements sdk.Msg

func (*MsgChannelOpenAck) Marshal

func (m *MsgChannelOpenAck) Marshal() (dAtA []byte, err error)

func (*MsgChannelOpenAck) MarshalTo

func (m *MsgChannelOpenAck) MarshalTo(dAtA []byte) (int, error)

func (*MsgChannelOpenAck) MarshalToSizedBuffer

func (m *MsgChannelOpenAck) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgChannelOpenAck) ProtoMessage

func (*MsgChannelOpenAck) ProtoMessage()

func (*MsgChannelOpenAck) Reset

func (m *MsgChannelOpenAck) Reset()

func (MsgChannelOpenAck) Route

func (msg MsgChannelOpenAck) Route() string

Route implements sdk.Msg

func (*MsgChannelOpenAck) Size

func (m *MsgChannelOpenAck) Size() (n int)

func (*MsgChannelOpenAck) String

func (m *MsgChannelOpenAck) String() string

func (MsgChannelOpenAck) Type

func (msg MsgChannelOpenAck) Type() string

Type implements sdk.Msg

func (*MsgChannelOpenAck) Unmarshal

func (m *MsgChannelOpenAck) Unmarshal(dAtA []byte) error

func (MsgChannelOpenAck) ValidateBasic

func (msg MsgChannelOpenAck) ValidateBasic() error

ValidateBasic implements sdk.Msg

func (*MsgChannelOpenAck) XXX_DiscardUnknown

func (m *MsgChannelOpenAck) XXX_DiscardUnknown()

func (*MsgChannelOpenAck) XXX_Marshal

func (m *MsgChannelOpenAck) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgChannelOpenAck) XXX_Merge

func (m *MsgChannelOpenAck) XXX_Merge(src proto.Message)

func (*MsgChannelOpenAck) XXX_Size

func (m *MsgChannelOpenAck) XXX_Size() int

func (*MsgChannelOpenAck) XXX_Unmarshal

func (m *MsgChannelOpenAck) XXX_Unmarshal(b []byte) error

type MsgChannelOpenConfirm

type MsgChannelOpenConfirm struct {
	PortID      string                                        `protobuf:"bytes,1,opt,name=port_id,json=portId,proto3" json:"port_id,omitempty" yaml:"port_id"`
	ChannelID   string                                        `protobuf:"bytes,2,opt,name=channel_id,json=channelId,proto3" json:"channel_id,omitempty" yaml:"channel_id"`
	ProofAck    []byte                                        `protobuf:"bytes,3,opt,name=proof_ack,json=proofAck,proto3" json:"proof_ack,omitempty" yaml:"proof_ack"`
	ProofHeight uint64                                        `protobuf:"varint,4,opt,name=proof_height,json=proofHeight,proto3" json:"proof_height,omitempty" yaml:"proof_height"`
	Signer      github_com_cosmos_cosmos_sdk_types.AccAddress `protobuf:"bytes,5,opt,name=signer,proto3,casttype=github.com/cosmos/cosmos-sdk/types.AccAddress" json:"signer,omitempty"`
}

MsgChannelOpenConfirm defines a msg sent by a Relayer to Chain B to acknowledge the change of channel state to OPEN on Chain A.

func NewMsgChannelOpenConfirm

func NewMsgChannelOpenConfirm(
	portID, channelID string, proofAck []byte, proofHeight uint64,
	signer sdk.AccAddress,
) *MsgChannelOpenConfirm

NewMsgChannelOpenConfirm creates a new MsgChannelOpenConfirm instance

func (*MsgChannelOpenConfirm) Descriptor

func (*MsgChannelOpenConfirm) Descriptor() ([]byte, []int)

func (*MsgChannelOpenConfirm) GetChannelID

func (m *MsgChannelOpenConfirm) GetChannelID() string

func (*MsgChannelOpenConfirm) GetPortID

func (m *MsgChannelOpenConfirm) GetPortID() string

func (*MsgChannelOpenConfirm) GetProofAck

func (m *MsgChannelOpenConfirm) GetProofAck() []byte

func (*MsgChannelOpenConfirm) GetProofHeight

func (m *MsgChannelOpenConfirm) GetProofHeight() uint64

func (MsgChannelOpenConfirm) GetSignBytes

func (msg MsgChannelOpenConfirm) GetSignBytes() []byte

GetSignBytes implements sdk.Msg

func (*MsgChannelOpenConfirm) GetSigner

func (MsgChannelOpenConfirm) GetSigners

func (msg MsgChannelOpenConfirm) GetSigners() []sdk.AccAddress

GetSigners implements sdk.Msg

func (*MsgChannelOpenConfirm) Marshal

func (m *MsgChannelOpenConfirm) Marshal() (dAtA []byte, err error)

func (*MsgChannelOpenConfirm) MarshalTo

func (m *MsgChannelOpenConfirm) MarshalTo(dAtA []byte) (int, error)

func (*MsgChannelOpenConfirm) MarshalToSizedBuffer

func (m *MsgChannelOpenConfirm) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgChannelOpenConfirm) ProtoMessage

func (*MsgChannelOpenConfirm) ProtoMessage()

func (*MsgChannelOpenConfirm) Reset

func (m *MsgChannelOpenConfirm) Reset()

func (MsgChannelOpenConfirm) Route

func (msg MsgChannelOpenConfirm) Route() string

Route implements sdk.Msg

func (*MsgChannelOpenConfirm) Size

func (m *MsgChannelOpenConfirm) Size() (n int)

func (*MsgChannelOpenConfirm) String

func (m *MsgChannelOpenConfirm) String() string

func (MsgChannelOpenConfirm) Type

func (msg MsgChannelOpenConfirm) Type() string

Type implements sdk.Msg

func (*MsgChannelOpenConfirm) Unmarshal

func (m *MsgChannelOpenConfirm) Unmarshal(dAtA []byte) error

func (MsgChannelOpenConfirm) ValidateBasic

func (msg MsgChannelOpenConfirm) ValidateBasic() error

ValidateBasic implements sdk.Msg

func (*MsgChannelOpenConfirm) XXX_DiscardUnknown

func (m *MsgChannelOpenConfirm) XXX_DiscardUnknown()

func (*MsgChannelOpenConfirm) XXX_Marshal

func (m *MsgChannelOpenConfirm) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgChannelOpenConfirm) XXX_Merge

func (m *MsgChannelOpenConfirm) XXX_Merge(src proto.Message)

func (*MsgChannelOpenConfirm) XXX_Size

func (m *MsgChannelOpenConfirm) XXX_Size() int

func (*MsgChannelOpenConfirm) XXX_Unmarshal

func (m *MsgChannelOpenConfirm) XXX_Unmarshal(b []byte) error

type MsgChannelOpenInit

type MsgChannelOpenInit struct {
	PortID    string                                        `protobuf:"bytes,1,opt,name=port_id,json=portId,proto3" json:"port_id,omitempty" yaml:"port_id"`
	ChannelID string                                        `protobuf:"bytes,2,opt,name=channel_id,json=channelId,proto3" json:"channel_id,omitempty" yaml:"channel_id"`
	Channel   Channel                                       `protobuf:"bytes,3,opt,name=channel,proto3" json:"channel"`
	Signer    github_com_cosmos_cosmos_sdk_types.AccAddress `protobuf:"bytes,4,opt,name=signer,proto3,casttype=github.com/cosmos/cosmos-sdk/types.AccAddress" json:"signer,omitempty"`
}

MsgChannelOpenInit defines an sdk.Msg to initialize a channel handshake. It is called by a relayer on Chain A.

func NewMsgChannelOpenInit

func NewMsgChannelOpenInit(
	portID, channelID string, version string, channelOrder Order, connectionHops []string,
	counterpartyPortID, counterpartyChannelID string, signer sdk.AccAddress,
) *MsgChannelOpenInit

NewMsgChannelOpenInit creates a new MsgChannelOpenInit

func (*MsgChannelOpenInit) Descriptor

func (*MsgChannelOpenInit) Descriptor() ([]byte, []int)

func (*MsgChannelOpenInit) GetChannel

func (m *MsgChannelOpenInit) GetChannel() Channel

func (*MsgChannelOpenInit) GetChannelID

func (m *MsgChannelOpenInit) GetChannelID() string

func (*MsgChannelOpenInit) GetPortID

func (m *MsgChannelOpenInit) GetPortID() string

func (MsgChannelOpenInit) GetSignBytes

func (msg MsgChannelOpenInit) GetSignBytes() []byte

GetSignBytes implements sdk.Msg

func (*MsgChannelOpenInit) GetSigner

func (MsgChannelOpenInit) GetSigners

func (msg MsgChannelOpenInit) GetSigners() []sdk.AccAddress

GetSigners implements sdk.Msg

func (*MsgChannelOpenInit) Marshal

func (m *MsgChannelOpenInit) Marshal() (dAtA []byte, err error)

func (*MsgChannelOpenInit) MarshalTo

func (m *MsgChannelOpenInit) MarshalTo(dAtA []byte) (int, error)

func (*MsgChannelOpenInit) MarshalToSizedBuffer

func (m *MsgChannelOpenInit) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgChannelOpenInit) ProtoMessage

func (*MsgChannelOpenInit) ProtoMessage()

func (*MsgChannelOpenInit) Reset

func (m *MsgChannelOpenInit) Reset()

func (MsgChannelOpenInit) Route

func (msg MsgChannelOpenInit) Route() string

Route implements sdk.Msg

func (*MsgChannelOpenInit) Size

func (m *MsgChannelOpenInit) Size() (n int)

func (*MsgChannelOpenInit) String

func (m *MsgChannelOpenInit) String() string

func (MsgChannelOpenInit) Type

func (msg MsgChannelOpenInit) Type() string

Type implements sdk.Msg

func (*MsgChannelOpenInit) Unmarshal

func (m *MsgChannelOpenInit) Unmarshal(dAtA []byte) error

func (MsgChannelOpenInit) ValidateBasic

func (msg MsgChannelOpenInit) ValidateBasic() error

ValidateBasic implements sdk.Msg

func (*MsgChannelOpenInit) XXX_DiscardUnknown

func (m *MsgChannelOpenInit) XXX_DiscardUnknown()

func (*MsgChannelOpenInit) XXX_Marshal

func (m *MsgChannelOpenInit) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgChannelOpenInit) XXX_Merge

func (m *MsgChannelOpenInit) XXX_Merge(src proto.Message)

func (*MsgChannelOpenInit) XXX_Size

func (m *MsgChannelOpenInit) XXX_Size() int

func (*MsgChannelOpenInit) XXX_Unmarshal

func (m *MsgChannelOpenInit) XXX_Unmarshal(b []byte) error

type MsgChannelOpenTry

type MsgChannelOpenTry struct {
	PortID              string                                        `protobuf:"bytes,1,opt,name=port_id,json=portId,proto3" json:"port_id,omitempty" yaml:"port_id"`
	ChannelID           string                                        `protobuf:"bytes,2,opt,name=channel_id,json=channelId,proto3" json:"channel_id,omitempty" yaml:"channel_id"`
	Channel             Channel                                       `protobuf:"bytes,3,opt,name=channel,proto3" json:"channel"`
	CounterpartyVersion string                                        `` /* 146-byte string literal not displayed */
	ProofInit           []byte                                        `protobuf:"bytes,5,opt,name=proof_init,json=proofInit,proto3" json:"proof_init,omitempty" yaml:"proof_init"`
	ProofHeight         uint64                                        `protobuf:"varint,6,opt,name=proof_height,json=proofHeight,proto3" json:"proof_height,omitempty" yaml:"proof_height"`
	Signer              github_com_cosmos_cosmos_sdk_types.AccAddress `protobuf:"bytes,7,opt,name=signer,proto3,casttype=github.com/cosmos/cosmos-sdk/types.AccAddress" json:"signer,omitempty"`
}

MsgChannelOpenInit defines a msg sent by a Relayer to try to open a channel on Chain B.

func NewMsgChannelOpenTry

func NewMsgChannelOpenTry(
	portID, channelID, version string, channelOrder Order, connectionHops []string,
	counterpartyPortID, counterpartyChannelID, counterpartyVersion string,
	proofInit []byte, proofHeight uint64, signer sdk.AccAddress,
) *MsgChannelOpenTry

NewMsgChannelOpenTry creates a new MsgChannelOpenTry instance

func (*MsgChannelOpenTry) Descriptor

func (*MsgChannelOpenTry) Descriptor() ([]byte, []int)

func (*MsgChannelOpenTry) GetChannel

func (m *MsgChannelOpenTry) GetChannel() Channel

func (*MsgChannelOpenTry) GetChannelID

func (m *MsgChannelOpenTry) GetChannelID() string

func (*MsgChannelOpenTry) GetCounterpartyVersion

func (m *MsgChannelOpenTry) GetCounterpartyVersion() string

func (*MsgChannelOpenTry) GetPortID

func (m *MsgChannelOpenTry) GetPortID() string

func (*MsgChannelOpenTry) GetProofHeight

func (m *MsgChannelOpenTry) GetProofHeight() uint64

func (*MsgChannelOpenTry) GetProofInit

func (m *MsgChannelOpenTry) GetProofInit() []byte

func (MsgChannelOpenTry) GetSignBytes

func (msg MsgChannelOpenTry) GetSignBytes() []byte

GetSignBytes implements sdk.Msg

func (*MsgChannelOpenTry) GetSigner

func (MsgChannelOpenTry) GetSigners

func (msg MsgChannelOpenTry) GetSigners() []sdk.AccAddress

GetSigners implements sdk.Msg

func (*MsgChannelOpenTry) Marshal

func (m *MsgChannelOpenTry) Marshal() (dAtA []byte, err error)

func (*MsgChannelOpenTry) MarshalTo

func (m *MsgChannelOpenTry) MarshalTo(dAtA []byte) (int, error)

func (*MsgChannelOpenTry) MarshalToSizedBuffer

func (m *MsgChannelOpenTry) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgChannelOpenTry) ProtoMessage

func (*MsgChannelOpenTry) ProtoMessage()

func (*MsgChannelOpenTry) Reset

func (m *MsgChannelOpenTry) Reset()

func (MsgChannelOpenTry) Route

func (msg MsgChannelOpenTry) Route() string

Route implements sdk.Msg

func (*MsgChannelOpenTry) Size

func (m *MsgChannelOpenTry) Size() (n int)

func (*MsgChannelOpenTry) String

func (m *MsgChannelOpenTry) String() string

func (MsgChannelOpenTry) Type

func (msg MsgChannelOpenTry) Type() string

Type implements sdk.Msg

func (*MsgChannelOpenTry) Unmarshal

func (m *MsgChannelOpenTry) Unmarshal(dAtA []byte) error

func (MsgChannelOpenTry) ValidateBasic

func (msg MsgChannelOpenTry) ValidateBasic() error

ValidateBasic implements sdk.Msg

func (*MsgChannelOpenTry) XXX_DiscardUnknown

func (m *MsgChannelOpenTry) XXX_DiscardUnknown()

func (*MsgChannelOpenTry) XXX_Marshal

func (m *MsgChannelOpenTry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgChannelOpenTry) XXX_Merge

func (m *MsgChannelOpenTry) XXX_Merge(src proto.Message)

func (*MsgChannelOpenTry) XXX_Size

func (m *MsgChannelOpenTry) XXX_Size() int

func (*MsgChannelOpenTry) XXX_Unmarshal

func (m *MsgChannelOpenTry) XXX_Unmarshal(b []byte) error

type MsgRecvPacket

type MsgRecvPacket struct {
	Packet      Packet                                        `protobuf:"bytes,1,opt,name=packet,proto3" json:"packet"`
	Proof       []byte                                        `protobuf:"bytes,2,opt,name=proof,proto3" json:"proof,omitempty"`
	ProofHeight uint64                                        `protobuf:"varint,3,opt,name=proof_height,json=proofHeight,proto3" json:"proof_height,omitempty" yaml:"proof_height"`
	Signer      github_com_cosmos_cosmos_sdk_types.AccAddress `protobuf:"bytes,4,opt,name=signer,proto3,casttype=github.com/cosmos/cosmos-sdk/types.AccAddress" json:"signer,omitempty"`
}

MsgRecvPacket receives incoming IBC packet

func NewMsgRecvPacket

func NewMsgRecvPacket(
	packet Packet, proof []byte, proofHeight uint64,
	signer sdk.AccAddress,
) *MsgRecvPacket

NewMsgRecvPacket constructs new MsgRecvPacket

func (*MsgRecvPacket) Descriptor

func (*MsgRecvPacket) Descriptor() ([]byte, []int)

func (MsgRecvPacket) GetDataSignBytes

func (msg MsgRecvPacket) GetDataSignBytes() []byte

GetDataSignBytes returns the base64-encoded bytes used for the data field when signing the packet.

func (*MsgRecvPacket) GetPacket

func (m *MsgRecvPacket) GetPacket() Packet

func (*MsgRecvPacket) GetProof

func (m *MsgRecvPacket) GetProof() []byte

func (*MsgRecvPacket) GetProofHeight

func (m *MsgRecvPacket) GetProofHeight() uint64

func (MsgRecvPacket) GetSignBytes

func (msg MsgRecvPacket) GetSignBytes() []byte

GetSignBytes implements sdk.Msg

func (*MsgRecvPacket) GetSigner

func (MsgRecvPacket) GetSigners

func (msg MsgRecvPacket) GetSigners() []sdk.AccAddress

GetSigners implements sdk.Msg

func (*MsgRecvPacket) Marshal

func (m *MsgRecvPacket) Marshal() (dAtA []byte, err error)

func (*MsgRecvPacket) MarshalTo

func (m *MsgRecvPacket) MarshalTo(dAtA []byte) (int, error)

func (*MsgRecvPacket) MarshalToSizedBuffer

func (m *MsgRecvPacket) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgRecvPacket) ProtoMessage

func (*MsgRecvPacket) ProtoMessage()

func (*MsgRecvPacket) Reset

func (m *MsgRecvPacket) Reset()

func (MsgRecvPacket) Route

func (msg MsgRecvPacket) Route() string

Route implements sdk.Msg

func (*MsgRecvPacket) Size

func (m *MsgRecvPacket) Size() (n int)

func (*MsgRecvPacket) String

func (m *MsgRecvPacket) String() string

func (MsgRecvPacket) Type

func (msg MsgRecvPacket) Type() string

Type implements sdk.Msg

func (*MsgRecvPacket) Unmarshal

func (m *MsgRecvPacket) Unmarshal(dAtA []byte) error

func (MsgRecvPacket) ValidateBasic

func (msg MsgRecvPacket) ValidateBasic() error

ValidateBasic implements sdk.Msg

func (*MsgRecvPacket) XXX_DiscardUnknown

func (m *MsgRecvPacket) XXX_DiscardUnknown()

func (*MsgRecvPacket) XXX_Marshal

func (m *MsgRecvPacket) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgRecvPacket) XXX_Merge

func (m *MsgRecvPacket) XXX_Merge(src proto.Message)

func (*MsgRecvPacket) XXX_Size

func (m *MsgRecvPacket) XXX_Size() int

func (*MsgRecvPacket) XXX_Unmarshal

func (m *MsgRecvPacket) XXX_Unmarshal(b []byte) error

type MsgTimeout

type MsgTimeout struct {
	Packet           Packet                                        `protobuf:"bytes,1,opt,name=packet,proto3" json:"packet"`
	Proof            []byte                                        `protobuf:"bytes,2,opt,name=proof,proto3" json:"proof,omitempty"`
	ProofHeight      uint64                                        `protobuf:"varint,3,opt,name=proof_height,json=proofHeight,proto3" json:"proof_height,omitempty" yaml:"proof_height"`
	NextSequenceRecv uint64                                        `` /* 138-byte string literal not displayed */
	Signer           github_com_cosmos_cosmos_sdk_types.AccAddress `protobuf:"bytes,5,opt,name=signer,proto3,casttype=github.com/cosmos/cosmos-sdk/types.AccAddress" json:"signer,omitempty"`
}

MsgTimeout receives timed-out packet

func NewMsgTimeout

func NewMsgTimeout(
	packet Packet, nextSequenceRecv uint64, proof []byte,
	proofHeight uint64, signer sdk.AccAddress,
) *MsgTimeout

NewMsgTimeout constructs new MsgTimeout

func (*MsgTimeout) Descriptor

func (*MsgTimeout) Descriptor() ([]byte, []int)

func (*MsgTimeout) GetNextSequenceRecv

func (m *MsgTimeout) GetNextSequenceRecv() uint64

func (*MsgTimeout) GetPacket

func (m *MsgTimeout) GetPacket() Packet

func (*MsgTimeout) GetProof

func (m *MsgTimeout) GetProof() []byte

func (*MsgTimeout) GetProofHeight

func (m *MsgTimeout) GetProofHeight() uint64

func (MsgTimeout) GetSignBytes

func (msg MsgTimeout) GetSignBytes() []byte

GetSignBytes implements sdk.Msg

func (*MsgTimeout) GetSigner

func (MsgTimeout) GetSigners

func (msg MsgTimeout) GetSigners() []sdk.AccAddress

GetSigners implements sdk.Msg

func (*MsgTimeout) Marshal

func (m *MsgTimeout) Marshal() (dAtA []byte, err error)

func (*MsgTimeout) MarshalTo

func (m *MsgTimeout) MarshalTo(dAtA []byte) (int, error)

func (*MsgTimeout) MarshalToSizedBuffer

func (m *MsgTimeout) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgTimeout) ProtoMessage

func (*MsgTimeout) ProtoMessage()

func (*MsgTimeout) Reset

func (m *MsgTimeout) Reset()

func (MsgTimeout) Route

func (msg MsgTimeout) Route() string

Route implements sdk.Msg

func (*MsgTimeout) Size

func (m *MsgTimeout) Size() (n int)

func (*MsgTimeout) String

func (m *MsgTimeout) String() string

func (MsgTimeout) Type

func (msg MsgTimeout) Type() string

Type implements sdk.Msg

func (*MsgTimeout) Unmarshal

func (m *MsgTimeout) Unmarshal(dAtA []byte) error

func (MsgTimeout) ValidateBasic

func (msg MsgTimeout) ValidateBasic() error

ValidateBasic implements sdk.Msg

func (*MsgTimeout) XXX_DiscardUnknown

func (m *MsgTimeout) XXX_DiscardUnknown()

func (*MsgTimeout) XXX_Marshal

func (m *MsgTimeout) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgTimeout) XXX_Merge

func (m *MsgTimeout) XXX_Merge(src proto.Message)

func (*MsgTimeout) XXX_Size

func (m *MsgTimeout) XXX_Size() int

func (*MsgTimeout) XXX_Unmarshal

func (m *MsgTimeout) XXX_Unmarshal(b []byte) error

type Order

type Order int32

Order defines if a channel is ORDERED or UNORDERED

const (
	// zero-value for channel ordering
	NONE Order = 0
	// packets can be delivered in any order, which may differ from the order in which they were sent.
	UNORDERED Order = 1
	// packets are delivered exactly in the order which they were sent
	ORDERED Order = 2
)

func (Order) EnumDescriptor

func (Order) EnumDescriptor() ([]byte, []int)

func (Order) String

func (x Order) String() string

type Packet

type Packet struct {
	// number corresponds to the order of sends and receives, where a Packet with
	// an earlier sequence number must be sent and received before a Packet with a
	// later sequence number.
	Sequence uint64 `protobuf:"varint,1,opt,name=sequence,proto3" json:"sequence,omitempty"`
	// identifies the port on the sending chain.
	SourcePort string `protobuf:"bytes,2,opt,name=source_port,json=sourcePort,proto3" json:"source_port,omitempty" yaml:"source_port"`
	// identifies the channel end on the sending chain.
	SourceChannel string `protobuf:"bytes,3,opt,name=source_channel,json=sourceChannel,proto3" json:"source_channel,omitempty" yaml:"source_channel"`
	// identifies the port on the receiving chain.
	DestinationPort string `` /* 130-byte string literal not displayed */
	// identifies the channel end on the receiving chain.
	DestinationChannel string `` /* 142-byte string literal not displayed */
	// actual opaque bytes transferred directly to the application module
	Data []byte `protobuf:"bytes,6,opt,name=data,proto3" json:"data,omitempty"`
	// block height after which the packet times out
	TimeoutHeight uint64 `protobuf:"varint,7,opt,name=timeout_height,json=timeoutHeight,proto3" json:"timeout_height,omitempty" yaml:"timeout_height"`
	// block timestamp (in nanoseconds) after which the packet times out
	TimeoutTimestamp uint64 `` /* 135-byte string literal not displayed */
}

Packet defines a type that carries data across different chains through IBC

func NewPacket

func NewPacket(
	data []byte,
	sequence uint64, sourcePort, sourceChannel,
	destinationPort, destinationChannel string,
	timeoutHeight uint64, timeoutTimestamp uint64,
) Packet

NewPacket creates a new Packet instance. It panics if the provided packet data interface is not registered.

func (*Packet) Descriptor

func (*Packet) Descriptor() ([]byte, []int)

func (Packet) GetData

func (p Packet) GetData() []byte

GetData implements PacketI interface

func (Packet) GetDestChannel

func (p Packet) GetDestChannel() string

GetDestChannel implements PacketI interface

func (Packet) GetDestPort

func (p Packet) GetDestPort() string

GetDestPort implements PacketI interface

func (Packet) GetSequence

func (p Packet) GetSequence() uint64

GetSequence implements PacketI interface

func (Packet) GetSourceChannel

func (p Packet) GetSourceChannel() string

GetSourceChannel implements PacketI interface

func (Packet) GetSourcePort

func (p Packet) GetSourcePort() string

GetSourcePort implements PacketI interface

func (Packet) GetTimeoutHeight

func (p Packet) GetTimeoutHeight() uint64

GetTimeoutHeight implements PacketI interface

func (Packet) GetTimeoutTimestamp

func (p Packet) GetTimeoutTimestamp() uint64

GetTimeoutTimestamp implements PacketI interface

func (*Packet) Marshal

func (m *Packet) Marshal() (dAtA []byte, err error)

func (*Packet) MarshalTo

func (m *Packet) MarshalTo(dAtA []byte) (int, error)

func (*Packet) MarshalToSizedBuffer

func (m *Packet) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Packet) ProtoMessage

func (*Packet) ProtoMessage()

func (*Packet) Reset

func (m *Packet) Reset()

func (*Packet) Size

func (m *Packet) Size() (n int)

func (*Packet) String

func (m *Packet) String() string

func (*Packet) Unmarshal

func (m *Packet) Unmarshal(dAtA []byte) error

func (Packet) ValidateBasic

func (p Packet) ValidateBasic() error

ValidateBasic implements PacketI interface

func (*Packet) XXX_DiscardUnknown

func (m *Packet) XXX_DiscardUnknown()

func (*Packet) XXX_Marshal

func (m *Packet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Packet) XXX_Merge

func (m *Packet) XXX_Merge(src proto.Message)

func (*Packet) XXX_Size

func (m *Packet) XXX_Size() int

func (*Packet) XXX_Unmarshal

func (m *Packet) XXX_Unmarshal(b []byte) error

type PacketAckCommitment

type PacketAckCommitment struct {
	// channel port identifier.
	PortID string `protobuf:"bytes,1,opt,name=port_id,json=portId,proto3" json:"port_id,omitempty" yaml:"port_id"`
	// channel unique identifier.
	ChannelID string `protobuf:"bytes,2,opt,name=channel_id,json=channelId,proto3" json:"channel_id,omitempty" yaml:"channel_id"`
	// packet sequence.
	Sequence uint64 `protobuf:"varint,3,opt,name=sequence,proto3" json:"sequence,omitempty"`
	// packet commitment hash.
	Hash []byte `protobuf:"bytes,4,opt,name=hash,proto3" json:"hash,omitempty"`
}

PacketAckCommitment defines the genesis type necessary to retrieve and store acknowlegements.

func NewPacketAckCommitment

func NewPacketAckCommitment(portID, channelID string, seq uint64, hash []byte) PacketAckCommitment

NewPacketAckCommitment creates a new PacketAckCommitment instance.

func (*PacketAckCommitment) Descriptor

func (*PacketAckCommitment) Descriptor() ([]byte, []int)

func (*PacketAckCommitment) Marshal

func (m *PacketAckCommitment) Marshal() (dAtA []byte, err error)

func (*PacketAckCommitment) MarshalTo

func (m *PacketAckCommitment) MarshalTo(dAtA []byte) (int, error)

func (*PacketAckCommitment) MarshalToSizedBuffer

func (m *PacketAckCommitment) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*PacketAckCommitment) ProtoMessage

func (*PacketAckCommitment) ProtoMessage()

func (*PacketAckCommitment) Reset

func (m *PacketAckCommitment) Reset()

func (*PacketAckCommitment) Size

func (m *PacketAckCommitment) Size() (n int)

func (*PacketAckCommitment) String

func (m *PacketAckCommitment) String() string

func (*PacketAckCommitment) Unmarshal

func (m *PacketAckCommitment) Unmarshal(dAtA []byte) error

func (PacketAckCommitment) Validate

func (pa PacketAckCommitment) Validate() error

Validate performs basic validation of fields returning an error upon any failure.

func (*PacketAckCommitment) XXX_DiscardUnknown

func (m *PacketAckCommitment) XXX_DiscardUnknown()

func (*PacketAckCommitment) XXX_Marshal

func (m *PacketAckCommitment) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PacketAckCommitment) XXX_Merge

func (m *PacketAckCommitment) XXX_Merge(src proto.Message)

func (*PacketAckCommitment) XXX_Size

func (m *PacketAckCommitment) XXX_Size() int

func (*PacketAckCommitment) XXX_Unmarshal

func (m *PacketAckCommitment) XXX_Unmarshal(b []byte) error

type PacketSequence

type PacketSequence struct {
	PortID    string `json:"port_id" yaml:"port_id"`
	ChannelID string `json:"channel_id" yaml:"channel_id"`
	Sequence  uint64 `json:"sequence" yaml:"sequence"`
}

PacketSequence defines the genesis type necessary to retrieve and store next send and receive sequences.

func NewPacketSequence

func NewPacketSequence(portID, channelID string, seq uint64) PacketSequence

NewPacketSequence creates a new PacketSequences instance.

func (PacketSequence) Validate

func (ps PacketSequence) Validate() error

Validate performs basic validation of fields returning an error upon any failure.

type PortKeeper

type PortKeeper interface {
	Authenticate(ctx sdk.Context, key *capabilitytypes.Capability, portID string) bool
}

PortKeeper expected account IBC port keeper

type QueryChannelClientStateRequest

type QueryChannelClientStateRequest struct {
	// port unique identifier
	PortID string `protobuf:"bytes,1,opt,name=port_id,json=portId,proto3" json:"port_id,omitempty"`
	// channel unique identifier
	ChannelID string `protobuf:"bytes,2,opt,name=channel_id,json=channelId,proto3" json:"channel_id,omitempty"`
}

QueryChannelClientStateRequest is the request type for the Query/ClientState RPC method

func NewQueryChannelClientStateRequest

func NewQueryChannelClientStateRequest(portID, channelID string) *QueryChannelClientStateRequest

NewQueryChannelClientStateRequest creates a new QueryChannelClientStateRequest instance.

func (*QueryChannelClientStateRequest) Descriptor

func (*QueryChannelClientStateRequest) Descriptor() ([]byte, []int)

func (*QueryChannelClientStateRequest) GetChannelID

func (m *QueryChannelClientStateRequest) GetChannelID() string

func (*QueryChannelClientStateRequest) GetPortID

func (m *QueryChannelClientStateRequest) GetPortID() string

func (*QueryChannelClientStateRequest) Marshal

func (m *QueryChannelClientStateRequest) Marshal() (dAtA []byte, err error)

func (*QueryChannelClientStateRequest) MarshalTo

func (m *QueryChannelClientStateRequest) MarshalTo(dAtA []byte) (int, error)

func (*QueryChannelClientStateRequest) MarshalToSizedBuffer

func (m *QueryChannelClientStateRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryChannelClientStateRequest) ProtoMessage

func (*QueryChannelClientStateRequest) ProtoMessage()

func (*QueryChannelClientStateRequest) Reset

func (m *QueryChannelClientStateRequest) Reset()

func (*QueryChannelClientStateRequest) Size

func (m *QueryChannelClientStateRequest) Size() (n int)

func (*QueryChannelClientStateRequest) String

func (*QueryChannelClientStateRequest) Unmarshal

func (m *QueryChannelClientStateRequest) Unmarshal(dAtA []byte) error

func (*QueryChannelClientStateRequest) XXX_DiscardUnknown

func (m *QueryChannelClientStateRequest) XXX_DiscardUnknown()

func (*QueryChannelClientStateRequest) XXX_Marshal

func (m *QueryChannelClientStateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryChannelClientStateRequest) XXX_Merge

func (m *QueryChannelClientStateRequest) XXX_Merge(src proto.Message)

func (*QueryChannelClientStateRequest) XXX_Size

func (m *QueryChannelClientStateRequest) XXX_Size() int

func (*QueryChannelClientStateRequest) XXX_Unmarshal

func (m *QueryChannelClientStateRequest) XXX_Unmarshal(b []byte) error

type QueryChannelConsensusStateRequest

type QueryChannelConsensusStateRequest struct {
	// port unique identifier
	PortID string `protobuf:"bytes,1,opt,name=port_id,json=portId,proto3" json:"port_id,omitempty"`
	// channel unique identifier
	ChannelID string `protobuf:"bytes,2,opt,name=channel_id,json=channelId,proto3" json:"channel_id,omitempty"`
}

QueryChannelConsensusStateRequest is the request type for the Query/ConsensusState RPC method

func NewQueryChannelConsensusStateRequest

func NewQueryChannelConsensusStateRequest(portID, channelID string) *QueryChannelConsensusStateRequest

NewQueryChannelConsensusStateRequest creates a new QueryChannelConsensusStateRequest instance.

func (*QueryChannelConsensusStateRequest) Descriptor

func (*QueryChannelConsensusStateRequest) Descriptor() ([]byte, []int)

func (*QueryChannelConsensusStateRequest) GetChannelID

func (m *QueryChannelConsensusStateRequest) GetChannelID() string

func (*QueryChannelConsensusStateRequest) GetPortID

func (*QueryChannelConsensusStateRequest) Marshal

func (m *QueryChannelConsensusStateRequest) Marshal() (dAtA []byte, err error)

func (*QueryChannelConsensusStateRequest) MarshalTo

func (m *QueryChannelConsensusStateRequest) MarshalTo(dAtA []byte) (int, error)

func (*QueryChannelConsensusStateRequest) MarshalToSizedBuffer

func (m *QueryChannelConsensusStateRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryChannelConsensusStateRequest) ProtoMessage

func (*QueryChannelConsensusStateRequest) ProtoMessage()

func (*QueryChannelConsensusStateRequest) Reset

func (*QueryChannelConsensusStateRequest) Size

func (m *QueryChannelConsensusStateRequest) Size() (n int)

func (*QueryChannelConsensusStateRequest) String

func (*QueryChannelConsensusStateRequest) Unmarshal

func (m *QueryChannelConsensusStateRequest) Unmarshal(dAtA []byte) error

func (*QueryChannelConsensusStateRequest) XXX_DiscardUnknown

func (m *QueryChannelConsensusStateRequest) XXX_DiscardUnknown()

func (*QueryChannelConsensusStateRequest) XXX_Marshal

func (m *QueryChannelConsensusStateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryChannelConsensusStateRequest) XXX_Merge

func (*QueryChannelConsensusStateRequest) XXX_Size

func (m *QueryChannelConsensusStateRequest) XXX_Size() int

func (*QueryChannelConsensusStateRequest) XXX_Unmarshal

func (m *QueryChannelConsensusStateRequest) XXX_Unmarshal(b []byte) error

type QueryChannelRequest

type QueryChannelRequest struct {
	// port unique identifier
	PortID string `protobuf:"bytes,1,opt,name=port_id,json=portId,proto3" json:"port_id,omitempty"`
	// channel unique identifier
	ChannelID string `protobuf:"bytes,2,opt,name=channel_id,json=channelId,proto3" json:"channel_id,omitempty"`
}

QueryChannelRequest is the request type for the Query/Channel RPC method

func (*QueryChannelRequest) Descriptor

func (*QueryChannelRequest) Descriptor() ([]byte, []int)

func (*QueryChannelRequest) GetChannelID

func (m *QueryChannelRequest) GetChannelID() string

func (*QueryChannelRequest) GetPortID

func (m *QueryChannelRequest) GetPortID() string

func (*QueryChannelRequest) Marshal

func (m *QueryChannelRequest) Marshal() (dAtA []byte, err error)

func (*QueryChannelRequest) MarshalTo

func (m *QueryChannelRequest) MarshalTo(dAtA []byte) (int, error)

func (*QueryChannelRequest) MarshalToSizedBuffer

func (m *QueryChannelRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryChannelRequest) ProtoMessage

func (*QueryChannelRequest) ProtoMessage()

func (*QueryChannelRequest) Reset

func (m *QueryChannelRequest) Reset()

func (*QueryChannelRequest) Size

func (m *QueryChannelRequest) Size() (n int)

func (*QueryChannelRequest) String

func (m *QueryChannelRequest) String() string

func (*QueryChannelRequest) Unmarshal

func (m *QueryChannelRequest) Unmarshal(dAtA []byte) error

func (*QueryChannelRequest) XXX_DiscardUnknown

func (m *QueryChannelRequest) XXX_DiscardUnknown()

func (*QueryChannelRequest) XXX_Marshal

func (m *QueryChannelRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryChannelRequest) XXX_Merge

func (m *QueryChannelRequest) XXX_Merge(src proto.Message)

func (*QueryChannelRequest) XXX_Size

func (m *QueryChannelRequest) XXX_Size() int

func (*QueryChannelRequest) XXX_Unmarshal

func (m *QueryChannelRequest) XXX_Unmarshal(b []byte) error

type QueryChannelResponse

type QueryChannelResponse struct {
	// channel associated with the request identifiers
	Channel *Channel `protobuf:"bytes,1,opt,name=channel,proto3" json:"channel,omitempty"`
	// merkle proof of existence
	Proof []byte `protobuf:"bytes,2,opt,name=proof,proto3" json:"proof,omitempty"`
	// merkle proof path
	ProofPath string `protobuf:"bytes,3,opt,name=proof_path,json=proofPath,proto3" json:"proof_path,omitempty"`
	// height at which the proof was retrieved
	ProofHeight uint64 `protobuf:"varint,4,opt,name=proof_height,json=proofHeight,proto3" json:"proof_height,omitempty"`
}

QueryChannelResponse is the response type for the Query/Channel RPC method. Besides the Channel end, it includes a proof and the height from which the proof was retrieved.

func NewQueryChannelResponse

func NewQueryChannelResponse(portID, channelID string, channel Channel, proof []byte, height int64) *QueryChannelResponse

NewQueryChannelResponse creates a new QueryChannelResponse instance

func (*QueryChannelResponse) Descriptor

func (*QueryChannelResponse) Descriptor() ([]byte, []int)

func (*QueryChannelResponse) GetChannel

func (m *QueryChannelResponse) GetChannel() *Channel

func (*QueryChannelResponse) GetProof

func (m *QueryChannelResponse) GetProof() []byte

func (*QueryChannelResponse) GetProofHeight

func (m *QueryChannelResponse) GetProofHeight() uint64

func (*QueryChannelResponse) GetProofPath

func (m *QueryChannelResponse) GetProofPath() string

func (*QueryChannelResponse) Marshal

func (m *QueryChannelResponse) Marshal() (dAtA []byte, err error)

func (*QueryChannelResponse) MarshalTo

func (m *QueryChannelResponse) MarshalTo(dAtA []byte) (int, error)

func (*QueryChannelResponse) MarshalToSizedBuffer

func (m *QueryChannelResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryChannelResponse) ProtoMessage

func (*QueryChannelResponse) ProtoMessage()

func (*QueryChannelResponse) Reset

func (m *QueryChannelResponse) Reset()

func (*QueryChannelResponse) Size

func (m *QueryChannelResponse) Size() (n int)

func (*QueryChannelResponse) String

func (m *QueryChannelResponse) String() string

func (*QueryChannelResponse) Unmarshal

func (m *QueryChannelResponse) Unmarshal(dAtA []byte) error

func (*QueryChannelResponse) XXX_DiscardUnknown

func (m *QueryChannelResponse) XXX_DiscardUnknown()

func (*QueryChannelResponse) XXX_Marshal

func (m *QueryChannelResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryChannelResponse) XXX_Merge

func (m *QueryChannelResponse) XXX_Merge(src proto.Message)

func (*QueryChannelResponse) XXX_Size

func (m *QueryChannelResponse) XXX_Size() int

func (*QueryChannelResponse) XXX_Unmarshal

func (m *QueryChannelResponse) XXX_Unmarshal(b []byte) error

type QueryChannelsRequest

type QueryChannelsRequest struct {
	// pagination request
	Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryChannelsRequest is the request type for the Query/Channels RPC method

func (*QueryChannelsRequest) Descriptor

func (*QueryChannelsRequest) Descriptor() ([]byte, []int)

func (*QueryChannelsRequest) GetPagination

func (m *QueryChannelsRequest) GetPagination() *query.PageRequest

func (*QueryChannelsRequest) Marshal

func (m *QueryChannelsRequest) Marshal() (dAtA []byte, err error)

func (*QueryChannelsRequest) MarshalTo

func (m *QueryChannelsRequest) MarshalTo(dAtA []byte) (int, error)

func (*QueryChannelsRequest) MarshalToSizedBuffer

func (m *QueryChannelsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryChannelsRequest) ProtoMessage

func (*QueryChannelsRequest) ProtoMessage()

func (*QueryChannelsRequest) Reset

func (m *QueryChannelsRequest) Reset()

func (*QueryChannelsRequest) Size

func (m *QueryChannelsRequest) Size() (n int)

func (*QueryChannelsRequest) String

func (m *QueryChannelsRequest) String() string

func (*QueryChannelsRequest) Unmarshal

func (m *QueryChannelsRequest) Unmarshal(dAtA []byte) error

func (*QueryChannelsRequest) XXX_DiscardUnknown

func (m *QueryChannelsRequest) XXX_DiscardUnknown()

func (*QueryChannelsRequest) XXX_Marshal

func (m *QueryChannelsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryChannelsRequest) XXX_Merge

func (m *QueryChannelsRequest) XXX_Merge(src proto.Message)

func (*QueryChannelsRequest) XXX_Size

func (m *QueryChannelsRequest) XXX_Size() int

func (*QueryChannelsRequest) XXX_Unmarshal

func (m *QueryChannelsRequest) XXX_Unmarshal(b []byte) error

type QueryChannelsResponse

type QueryChannelsResponse struct {
	// list of stored channels of the chain.
	Channels []*IdentifiedChannel `protobuf:"bytes,1,rep,name=channels,proto3" json:"channels,omitempty"`
	// pagination response
	Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
	// query block height
	Height int64 `protobuf:"varint,3,opt,name=height,proto3" json:"height,omitempty"`
}

QueryChannelsResponse is the response type for the Query/Channels RPC method.

func (*QueryChannelsResponse) Descriptor

func (*QueryChannelsResponse) Descriptor() ([]byte, []int)

func (*QueryChannelsResponse) GetChannels

func (m *QueryChannelsResponse) GetChannels() []*IdentifiedChannel

func (*QueryChannelsResponse) GetHeight

func (m *QueryChannelsResponse) GetHeight() int64

func (*QueryChannelsResponse) GetPagination

func (m *QueryChannelsResponse) GetPagination() *query.PageResponse

func (*QueryChannelsResponse) Marshal

func (m *QueryChannelsResponse) Marshal() (dAtA []byte, err error)

func (*QueryChannelsResponse) MarshalTo

func (m *QueryChannelsResponse) MarshalTo(dAtA []byte) (int, error)

func (*QueryChannelsResponse) MarshalToSizedBuffer

func (m *QueryChannelsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryChannelsResponse) ProtoMessage

func (*QueryChannelsResponse) ProtoMessage()

func (*QueryChannelsResponse) Reset

func (m *QueryChannelsResponse) Reset()

func (*QueryChannelsResponse) Size

func (m *QueryChannelsResponse) Size() (n int)

func (*QueryChannelsResponse) String

func (m *QueryChannelsResponse) String() string

func (*QueryChannelsResponse) Unmarshal

func (m *QueryChannelsResponse) Unmarshal(dAtA []byte) error

func (*QueryChannelsResponse) XXX_DiscardUnknown

func (m *QueryChannelsResponse) XXX_DiscardUnknown()

func (*QueryChannelsResponse) XXX_Marshal

func (m *QueryChannelsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryChannelsResponse) XXX_Merge

func (m *QueryChannelsResponse) XXX_Merge(src proto.Message)

func (*QueryChannelsResponse) XXX_Size

func (m *QueryChannelsResponse) XXX_Size() int

func (*QueryChannelsResponse) XXX_Unmarshal

func (m *QueryChannelsResponse) XXX_Unmarshal(b []byte) error

type QueryClient

type QueryClient interface {
	// Channel queries an IBC Channel.
	Channel(ctx context.Context, in *QueryChannelRequest, opts ...grpc.CallOption) (*QueryChannelResponse, error)
	// Channels queries all the IBC channels of a chain.
	Channels(ctx context.Context, in *QueryChannelsRequest, opts ...grpc.CallOption) (*QueryChannelsResponse, error)
	// ConnectionChannels queries all the channels associated with a connection end.
	ConnectionChannels(ctx context.Context, in *QueryConnectionChannelsRequest, opts ...grpc.CallOption) (*QueryConnectionChannelsResponse, error)
	// PacketCommitment queries a stored packet commitment hash.
	PacketCommitment(ctx context.Context, in *QueryPacketCommitmentRequest, opts ...grpc.CallOption) (*QueryPacketCommitmentResponse, error)
	// PacketCommitments returns the all the packet commitments hashes associated with a channel.
	PacketCommitments(ctx context.Context, in *QueryPacketCommitmentsRequest, opts ...grpc.CallOption) (*QueryPacketCommitmentsResponse, error)
	// PacketAcknowledgement queries a stored packet acknowledgement hash.
	PacketAcknowledgement(ctx context.Context, in *QueryPacketAcknowledgementRequest, opts ...grpc.CallOption) (*QueryPacketAcknowledgementResponse, error)
	// UnrelayedPackets returns all the unrelayed IBC packets associated with a channel and sequences.
	UnrelayedPackets(ctx context.Context, in *QueryUnrelayedPacketsRequest, opts ...grpc.CallOption) (*QueryUnrelayedPacketsResponse, error)
	// NextSequenceReceive returns the next receive sequence for a given channel
	NextSequenceReceive(ctx context.Context, in *QueryNextSequenceReceiveRequest, opts ...grpc.CallOption) (*QueryNextSequenceReceiveResponse, error)
}

QueryClient is the client API for Query service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewQueryClient

func NewQueryClient(cc grpc1.ClientConn) QueryClient

type QueryConnectionChannelsRequest

type QueryConnectionChannelsRequest struct {
	// connection unique identifier
	Connection string `protobuf:"bytes,1,opt,name=connection,proto3" json:"connection,omitempty"`
	// pagination request
	Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryConnectionChannelsRequest is the request type for the Query/QueryConnectionChannels RPC method

func (*QueryConnectionChannelsRequest) Descriptor

func (*QueryConnectionChannelsRequest) Descriptor() ([]byte, []int)

func (*QueryConnectionChannelsRequest) GetConnection

func (m *QueryConnectionChannelsRequest) GetConnection() string

func (*QueryConnectionChannelsRequest) GetPagination

func (m *QueryConnectionChannelsRequest) GetPagination() *query.PageRequest

func (*QueryConnectionChannelsRequest) Marshal

func (m *QueryConnectionChannelsRequest) Marshal() (dAtA []byte, err error)

func (*QueryConnectionChannelsRequest) MarshalTo

func (m *QueryConnectionChannelsRequest) MarshalTo(dAtA []byte) (int, error)

func (*QueryConnectionChannelsRequest) MarshalToSizedBuffer

func (m *QueryConnectionChannelsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryConnectionChannelsRequest) ProtoMessage

func (*QueryConnectionChannelsRequest) ProtoMessage()

func (*QueryConnectionChannelsRequest) Reset

func (m *QueryConnectionChannelsRequest) Reset()

func (*QueryConnectionChannelsRequest) Size

func (m *QueryConnectionChannelsRequest) Size() (n int)

func (*QueryConnectionChannelsRequest) String

func (*QueryConnectionChannelsRequest) Unmarshal

func (m *QueryConnectionChannelsRequest) Unmarshal(dAtA []byte) error

func (*QueryConnectionChannelsRequest) XXX_DiscardUnknown

func (m *QueryConnectionChannelsRequest) XXX_DiscardUnknown()

func (*QueryConnectionChannelsRequest) XXX_Marshal

func (m *QueryConnectionChannelsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryConnectionChannelsRequest) XXX_Merge

func (m *QueryConnectionChannelsRequest) XXX_Merge(src proto.Message)

func (*QueryConnectionChannelsRequest) XXX_Size

func (m *QueryConnectionChannelsRequest) XXX_Size() int

func (*QueryConnectionChannelsRequest) XXX_Unmarshal

func (m *QueryConnectionChannelsRequest) XXX_Unmarshal(b []byte) error

type QueryConnectionChannelsResponse

type QueryConnectionChannelsResponse struct {
	// list of channels associated with a connection.
	Channels []*IdentifiedChannel `protobuf:"bytes,1,rep,name=channels,proto3" json:"channels,omitempty"`
	// pagination response
	Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
	// query block height
	Height int64 `protobuf:"varint,3,opt,name=height,proto3" json:"height,omitempty"`
}

QueryConnectionChannelsResponse is the Response type for the Query/QueryConnectionChannels RPC method

func (*QueryConnectionChannelsResponse) Descriptor

func (*QueryConnectionChannelsResponse) Descriptor() ([]byte, []int)

func (*QueryConnectionChannelsResponse) GetChannels

func (*QueryConnectionChannelsResponse) GetHeight

func (m *QueryConnectionChannelsResponse) GetHeight() int64

func (*QueryConnectionChannelsResponse) GetPagination

func (*QueryConnectionChannelsResponse) Marshal

func (m *QueryConnectionChannelsResponse) Marshal() (dAtA []byte, err error)

func (*QueryConnectionChannelsResponse) MarshalTo

func (m *QueryConnectionChannelsResponse) MarshalTo(dAtA []byte) (int, error)

func (*QueryConnectionChannelsResponse) MarshalToSizedBuffer

func (m *QueryConnectionChannelsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryConnectionChannelsResponse) ProtoMessage

func (*QueryConnectionChannelsResponse) ProtoMessage()

func (*QueryConnectionChannelsResponse) Reset

func (*QueryConnectionChannelsResponse) Size

func (m *QueryConnectionChannelsResponse) Size() (n int)

func (*QueryConnectionChannelsResponse) String

func (*QueryConnectionChannelsResponse) Unmarshal

func (m *QueryConnectionChannelsResponse) Unmarshal(dAtA []byte) error

func (*QueryConnectionChannelsResponse) XXX_DiscardUnknown

func (m *QueryConnectionChannelsResponse) XXX_DiscardUnknown()

func (*QueryConnectionChannelsResponse) XXX_Marshal

func (m *QueryConnectionChannelsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryConnectionChannelsResponse) XXX_Merge

func (m *QueryConnectionChannelsResponse) XXX_Merge(src proto.Message)

func (*QueryConnectionChannelsResponse) XXX_Size

func (m *QueryConnectionChannelsResponse) XXX_Size() int

func (*QueryConnectionChannelsResponse) XXX_Unmarshal

func (m *QueryConnectionChannelsResponse) XXX_Unmarshal(b []byte) error

type QueryNextSequenceReceiveRequest

type QueryNextSequenceReceiveRequest struct {
	// port unique identifier
	PortID string `protobuf:"bytes,1,opt,name=port_id,json=portId,proto3" json:"port_id,omitempty"`
	// channel unique identifier
	ChannelID string `protobuf:"bytes,2,opt,name=channel_id,json=channelId,proto3" json:"channel_id,omitempty"`
}

QueryNextSequenceReceiveRequest is the request type for the Query/QueryNextSequenceReceiveRequest RPC method

func (*QueryNextSequenceReceiveRequest) Descriptor

func (*QueryNextSequenceReceiveRequest) Descriptor() ([]byte, []int)

func (*QueryNextSequenceReceiveRequest) GetChannelID

func (m *QueryNextSequenceReceiveRequest) GetChannelID() string

func (*QueryNextSequenceReceiveRequest) GetPortID

func (m *QueryNextSequenceReceiveRequest) GetPortID() string

func (*QueryNextSequenceReceiveRequest) Marshal

func (m *QueryNextSequenceReceiveRequest) Marshal() (dAtA []byte, err error)

func (*QueryNextSequenceReceiveRequest) MarshalTo

func (m *QueryNextSequenceReceiveRequest) MarshalTo(dAtA []byte) (int, error)

func (*QueryNextSequenceReceiveRequest) MarshalToSizedBuffer

func (m *QueryNextSequenceReceiveRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryNextSequenceReceiveRequest) ProtoMessage

func (*QueryNextSequenceReceiveRequest) ProtoMessage()

func (*QueryNextSequenceReceiveRequest) Reset

func (*QueryNextSequenceReceiveRequest) Size

func (m *QueryNextSequenceReceiveRequest) Size() (n int)

func (*QueryNextSequenceReceiveRequest) String

func (*QueryNextSequenceReceiveRequest) Unmarshal

func (m *QueryNextSequenceReceiveRequest) Unmarshal(dAtA []byte) error

func (*QueryNextSequenceReceiveRequest) XXX_DiscardUnknown

func (m *QueryNextSequenceReceiveRequest) XXX_DiscardUnknown()

func (*QueryNextSequenceReceiveRequest) XXX_Marshal

func (m *QueryNextSequenceReceiveRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryNextSequenceReceiveRequest) XXX_Merge

func (m *QueryNextSequenceReceiveRequest) XXX_Merge(src proto.Message)

func (*QueryNextSequenceReceiveRequest) XXX_Size

func (m *QueryNextSequenceReceiveRequest) XXX_Size() int

func (*QueryNextSequenceReceiveRequest) XXX_Unmarshal

func (m *QueryNextSequenceReceiveRequest) XXX_Unmarshal(b []byte) error

type QueryNextSequenceReceiveResponse

type QueryNextSequenceReceiveResponse struct {
	// next sequence receive number
	NextSequenceReceive uint64 `protobuf:"varint,1,opt,name=next_sequence_receive,json=nextSequenceReceive,proto3" json:"next_sequence_receive,omitempty"`
	// merkle proof of existence
	Proof []byte `protobuf:"bytes,2,opt,name=proof,proto3" json:"proof,omitempty"`
	// merkle proof path
	ProofPath string `protobuf:"bytes,3,opt,name=proof_path,json=proofPath,proto3" json:"proof_path,omitempty"`
	// height at which the proof was retrieved
	ProofHeight uint64 `protobuf:"varint,4,opt,name=proof_height,json=proofHeight,proto3" json:"proof_height,omitempty"`
}

QuerySequenceResponse is the request type for the Query/QueryNextSequenceReceiveResponse RPC method

func NewQueryNextSequenceReceiveResponse

func NewQueryNextSequenceReceiveResponse(
	portID, channelID string, sequence uint64, proof []byte, height int64,
) *QueryNextSequenceReceiveResponse

NewQueryNextSequenceReceiveResponse creates a new QueryNextSequenceReceiveResponse instance

func (*QueryNextSequenceReceiveResponse) Descriptor

func (*QueryNextSequenceReceiveResponse) Descriptor() ([]byte, []int)

func (*QueryNextSequenceReceiveResponse) GetNextSequenceReceive

func (m *QueryNextSequenceReceiveResponse) GetNextSequenceReceive() uint64

func (*QueryNextSequenceReceiveResponse) GetProof

func (m *QueryNextSequenceReceiveResponse) GetProof() []byte

func (*QueryNextSequenceReceiveResponse) GetProofHeight

func (m *QueryNextSequenceReceiveResponse) GetProofHeight() uint64

func (*QueryNextSequenceReceiveResponse) GetProofPath

func (m *QueryNextSequenceReceiveResponse) GetProofPath() string

func (*QueryNextSequenceReceiveResponse) Marshal

func (m *QueryNextSequenceReceiveResponse) Marshal() (dAtA []byte, err error)

func (*QueryNextSequenceReceiveResponse) MarshalTo

func (m *QueryNextSequenceReceiveResponse) MarshalTo(dAtA []byte) (int, error)

func (*QueryNextSequenceReceiveResponse) MarshalToSizedBuffer

func (m *QueryNextSequenceReceiveResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryNextSequenceReceiveResponse) ProtoMessage

func (*QueryNextSequenceReceiveResponse) ProtoMessage()

func (*QueryNextSequenceReceiveResponse) Reset

func (*QueryNextSequenceReceiveResponse) Size

func (m *QueryNextSequenceReceiveResponse) Size() (n int)

func (*QueryNextSequenceReceiveResponse) String

func (*QueryNextSequenceReceiveResponse) Unmarshal

func (m *QueryNextSequenceReceiveResponse) Unmarshal(dAtA []byte) error

func (*QueryNextSequenceReceiveResponse) XXX_DiscardUnknown

func (m *QueryNextSequenceReceiveResponse) XXX_DiscardUnknown()

func (*QueryNextSequenceReceiveResponse) XXX_Marshal

func (m *QueryNextSequenceReceiveResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryNextSequenceReceiveResponse) XXX_Merge

func (*QueryNextSequenceReceiveResponse) XXX_Size

func (m *QueryNextSequenceReceiveResponse) XXX_Size() int

func (*QueryNextSequenceReceiveResponse) XXX_Unmarshal

func (m *QueryNextSequenceReceiveResponse) XXX_Unmarshal(b []byte) error

type QueryPacketAcknowledgementRequest

type QueryPacketAcknowledgementRequest struct {
	// port unique identifier
	PortID string `protobuf:"bytes,1,opt,name=port_id,json=portId,proto3" json:"port_id,omitempty"`
	// channel unique identifier
	ChannelID string `protobuf:"bytes,2,opt,name=channel_id,json=channelId,proto3" json:"channel_id,omitempty"`
	// packet sequence
	Sequence uint64 `protobuf:"varint,3,opt,name=sequence,proto3" json:"sequence,omitempty"`
}

QueryPacketAcknowledgementRequest is the request type for the Query/PacketAcknowledgement RPC method

func (*QueryPacketAcknowledgementRequest) Descriptor

func (*QueryPacketAcknowledgementRequest) Descriptor() ([]byte, []int)

func (*QueryPacketAcknowledgementRequest) GetChannelID

func (m *QueryPacketAcknowledgementRequest) GetChannelID() string

func (*QueryPacketAcknowledgementRequest) GetPortID

func (*QueryPacketAcknowledgementRequest) GetSequence

func (m *QueryPacketAcknowledgementRequest) GetSequence() uint64

func (*QueryPacketAcknowledgementRequest) Marshal

func (m *QueryPacketAcknowledgementRequest) Marshal() (dAtA []byte, err error)

func (*QueryPacketAcknowledgementRequest) MarshalTo

func (m *QueryPacketAcknowledgementRequest) MarshalTo(dAtA []byte) (int, error)

func (*QueryPacketAcknowledgementRequest) MarshalToSizedBuffer

func (m *QueryPacketAcknowledgementRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryPacketAcknowledgementRequest) ProtoMessage

func (*QueryPacketAcknowledgementRequest) ProtoMessage()

func (*QueryPacketAcknowledgementRequest) Reset

func (*QueryPacketAcknowledgementRequest) Size

func (m *QueryPacketAcknowledgementRequest) Size() (n int)

func (*QueryPacketAcknowledgementRequest) String

func (*QueryPacketAcknowledgementRequest) Unmarshal

func (m *QueryPacketAcknowledgementRequest) Unmarshal(dAtA []byte) error

func (*QueryPacketAcknowledgementRequest) XXX_DiscardUnknown

func (m *QueryPacketAcknowledgementRequest) XXX_DiscardUnknown()

func (*QueryPacketAcknowledgementRequest) XXX_Marshal

func (m *QueryPacketAcknowledgementRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryPacketAcknowledgementRequest) XXX_Merge

func (*QueryPacketAcknowledgementRequest) XXX_Size

func (m *QueryPacketAcknowledgementRequest) XXX_Size() int

func (*QueryPacketAcknowledgementRequest) XXX_Unmarshal

func (m *QueryPacketAcknowledgementRequest) XXX_Unmarshal(b []byte) error

type QueryPacketAcknowledgementResponse

type QueryPacketAcknowledgementResponse struct {
	// packet associated with the request fields
	Acknowledgement []byte `protobuf:"bytes,1,opt,name=acknowledgement,proto3" json:"acknowledgement,omitempty"`
	// merkle proof of existence
	Proof []byte `protobuf:"bytes,2,opt,name=proof,proto3" json:"proof,omitempty"`
	// merkle proof path
	ProofPath string `protobuf:"bytes,3,opt,name=proof_path,json=proofPath,proto3" json:"proof_path,omitempty"`
	// height at which the proof was retrieved
	ProofHeight uint64 `protobuf:"varint,4,opt,name=proof_height,json=proofHeight,proto3" json:"proof_height,omitempty"`
}

QueryPacketAcknowledgementResponse defines the client query response for a packet which also includes a proof, its path and the height form which the proof was retrieved

func NewQueryPacketAcknowledgementResponse

func NewQueryPacketAcknowledgementResponse(
	portID, channelID string, sequence uint64, acknowledgement []byte, proof []byte, height int64,
) *QueryPacketAcknowledgementResponse

NewQueryPacketAcknowledgementResponse creates a new QueryPacketAcknowledgementResponse instance

func (*QueryPacketAcknowledgementResponse) Descriptor

func (*QueryPacketAcknowledgementResponse) Descriptor() ([]byte, []int)

func (*QueryPacketAcknowledgementResponse) GetAcknowledgement

func (m *QueryPacketAcknowledgementResponse) GetAcknowledgement() []byte

func (*QueryPacketAcknowledgementResponse) GetProof

func (m *QueryPacketAcknowledgementResponse) GetProof() []byte

func (*QueryPacketAcknowledgementResponse) GetProofHeight

func (m *QueryPacketAcknowledgementResponse) GetProofHeight() uint64

func (*QueryPacketAcknowledgementResponse) GetProofPath

func (m *QueryPacketAcknowledgementResponse) GetProofPath() string

func (*QueryPacketAcknowledgementResponse) Marshal

func (m *QueryPacketAcknowledgementResponse) Marshal() (dAtA []byte, err error)

func (*QueryPacketAcknowledgementResponse) MarshalTo

func (m *QueryPacketAcknowledgementResponse) MarshalTo(dAtA []byte) (int, error)

func (*QueryPacketAcknowledgementResponse) MarshalToSizedBuffer

func (m *QueryPacketAcknowledgementResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryPacketAcknowledgementResponse) ProtoMessage

func (*QueryPacketAcknowledgementResponse) ProtoMessage()

func (*QueryPacketAcknowledgementResponse) Reset

func (*QueryPacketAcknowledgementResponse) Size

func (*QueryPacketAcknowledgementResponse) String

func (*QueryPacketAcknowledgementResponse) Unmarshal

func (m *QueryPacketAcknowledgementResponse) Unmarshal(dAtA []byte) error

func (*QueryPacketAcknowledgementResponse) XXX_DiscardUnknown

func (m *QueryPacketAcknowledgementResponse) XXX_DiscardUnknown()

func (*QueryPacketAcknowledgementResponse) XXX_Marshal

func (m *QueryPacketAcknowledgementResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryPacketAcknowledgementResponse) XXX_Merge

func (*QueryPacketAcknowledgementResponse) XXX_Size

func (*QueryPacketAcknowledgementResponse) XXX_Unmarshal

func (m *QueryPacketAcknowledgementResponse) XXX_Unmarshal(b []byte) error

type QueryPacketCommitmentRequest

type QueryPacketCommitmentRequest struct {
	// port unique identifier
	PortID string `protobuf:"bytes,1,opt,name=port_id,json=portId,proto3" json:"port_id,omitempty"`
	// channel unique identifier
	ChannelID string `protobuf:"bytes,2,opt,name=channel_id,json=channelId,proto3" json:"channel_id,omitempty"`
	// packet sequence
	Sequence uint64 `protobuf:"varint,3,opt,name=sequence,proto3" json:"sequence,omitempty"`
}

QueryPacketCommitmentRequest is the request type for the Query/PacketCommitment RPC method

func (*QueryPacketCommitmentRequest) Descriptor

func (*QueryPacketCommitmentRequest) Descriptor() ([]byte, []int)

func (*QueryPacketCommitmentRequest) GetChannelID

func (m *QueryPacketCommitmentRequest) GetChannelID() string

func (*QueryPacketCommitmentRequest) GetPortID

func (m *QueryPacketCommitmentRequest) GetPortID() string

func (*QueryPacketCommitmentRequest) GetSequence

func (m *QueryPacketCommitmentRequest) GetSequence() uint64

func (*QueryPacketCommitmentRequest) Marshal

func (m *QueryPacketCommitmentRequest) Marshal() (dAtA []byte, err error)

func (*QueryPacketCommitmentRequest) MarshalTo

func (m *QueryPacketCommitmentRequest) MarshalTo(dAtA []byte) (int, error)

func (*QueryPacketCommitmentRequest) MarshalToSizedBuffer

func (m *QueryPacketCommitmentRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryPacketCommitmentRequest) ProtoMessage

func (*QueryPacketCommitmentRequest) ProtoMessage()

func (*QueryPacketCommitmentRequest) Reset

func (m *QueryPacketCommitmentRequest) Reset()

func (*QueryPacketCommitmentRequest) Size

func (m *QueryPacketCommitmentRequest) Size() (n int)

func (*QueryPacketCommitmentRequest) String

func (*QueryPacketCommitmentRequest) Unmarshal

func (m *QueryPacketCommitmentRequest) Unmarshal(dAtA []byte) error

func (*QueryPacketCommitmentRequest) XXX_DiscardUnknown

func (m *QueryPacketCommitmentRequest) XXX_DiscardUnknown()

func (*QueryPacketCommitmentRequest) XXX_Marshal

func (m *QueryPacketCommitmentRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryPacketCommitmentRequest) XXX_Merge

func (m *QueryPacketCommitmentRequest) XXX_Merge(src proto.Message)

func (*QueryPacketCommitmentRequest) XXX_Size

func (m *QueryPacketCommitmentRequest) XXX_Size() int

func (*QueryPacketCommitmentRequest) XXX_Unmarshal

func (m *QueryPacketCommitmentRequest) XXX_Unmarshal(b []byte) error

type QueryPacketCommitmentResponse

type QueryPacketCommitmentResponse struct {
	// packet associated with the request fields
	Commitment []byte `protobuf:"bytes,1,opt,name=commitment,proto3" json:"commitment,omitempty"`
	// merkle proof of existence
	Proof []byte `protobuf:"bytes,2,opt,name=proof,proto3" json:"proof,omitempty"`
	// merkle proof path
	ProofPath string `protobuf:"bytes,3,opt,name=proof_path,json=proofPath,proto3" json:"proof_path,omitempty"`
	// height at which the proof was retrieved
	ProofHeight uint64 `protobuf:"varint,4,opt,name=proof_height,json=proofHeight,proto3" json:"proof_height,omitempty"`
}

QueryPacketCommitmentResponse defines the client query response for a packet which also includes a proof, its path and the height form which the proof was retrieved

func NewQueryPacketCommitmentResponse

func NewQueryPacketCommitmentResponse(
	portID, channelID string, sequence uint64, commitment []byte, proof []byte, height int64,
) *QueryPacketCommitmentResponse

NewQueryPacketCommitmentResponse creates a new QueryPacketCommitmentResponse instance

func (*QueryPacketCommitmentResponse) Descriptor

func (*QueryPacketCommitmentResponse) Descriptor() ([]byte, []int)

func (*QueryPacketCommitmentResponse) GetCommitment

func (m *QueryPacketCommitmentResponse) GetCommitment() []byte

func (*QueryPacketCommitmentResponse) GetProof

func (m *QueryPacketCommitmentResponse) GetProof() []byte

func (*QueryPacketCommitmentResponse) GetProofHeight

func (m *QueryPacketCommitmentResponse) GetProofHeight() uint64

func (*QueryPacketCommitmentResponse) GetProofPath

func (m *QueryPacketCommitmentResponse) GetProofPath() string

func (*QueryPacketCommitmentResponse) Marshal

func (m *QueryPacketCommitmentResponse) Marshal() (dAtA []byte, err error)

func (*QueryPacketCommitmentResponse) MarshalTo

func (m *QueryPacketCommitmentResponse) MarshalTo(dAtA []byte) (int, error)

func (*QueryPacketCommitmentResponse) MarshalToSizedBuffer

func (m *QueryPacketCommitmentResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryPacketCommitmentResponse) ProtoMessage

func (*QueryPacketCommitmentResponse) ProtoMessage()

func (*QueryPacketCommitmentResponse) Reset

func (m *QueryPacketCommitmentResponse) Reset()

func (*QueryPacketCommitmentResponse) Size

func (m *QueryPacketCommitmentResponse) Size() (n int)

func (*QueryPacketCommitmentResponse) String

func (*QueryPacketCommitmentResponse) Unmarshal

func (m *QueryPacketCommitmentResponse) Unmarshal(dAtA []byte) error

func (*QueryPacketCommitmentResponse) XXX_DiscardUnknown

func (m *QueryPacketCommitmentResponse) XXX_DiscardUnknown()

func (*QueryPacketCommitmentResponse) XXX_Marshal

func (m *QueryPacketCommitmentResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryPacketCommitmentResponse) XXX_Merge

func (m *QueryPacketCommitmentResponse) XXX_Merge(src proto.Message)

func (*QueryPacketCommitmentResponse) XXX_Size

func (m *QueryPacketCommitmentResponse) XXX_Size() int

func (*QueryPacketCommitmentResponse) XXX_Unmarshal

func (m *QueryPacketCommitmentResponse) XXX_Unmarshal(b []byte) error

type QueryPacketCommitmentsRequest

type QueryPacketCommitmentsRequest struct {
	// port unique identifier
	PortID string `protobuf:"bytes,1,opt,name=port_id,json=portId,proto3" json:"port_id,omitempty"`
	// channel unique identifier
	ChannelID string `protobuf:"bytes,2,opt,name=channel_id,json=channelId,proto3" json:"channel_id,omitempty"`
	// pagination request
	Pagination *query.PageRequest `protobuf:"bytes,3,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryPacketCommitmentsRequest is the request type for the Query/QueryPacketCommitments RPC method

func (*QueryPacketCommitmentsRequest) Descriptor

func (*QueryPacketCommitmentsRequest) Descriptor() ([]byte, []int)

func (*QueryPacketCommitmentsRequest) GetChannelID

func (m *QueryPacketCommitmentsRequest) GetChannelID() string

func (*QueryPacketCommitmentsRequest) GetPagination

func (m *QueryPacketCommitmentsRequest) GetPagination() *query.PageRequest

func (*QueryPacketCommitmentsRequest) GetPortID

func (m *QueryPacketCommitmentsRequest) GetPortID() string

func (*QueryPacketCommitmentsRequest) Marshal

func (m *QueryPacketCommitmentsRequest) Marshal() (dAtA []byte, err error)

func (*QueryPacketCommitmentsRequest) MarshalTo

func (m *QueryPacketCommitmentsRequest) MarshalTo(dAtA []byte) (int, error)

func (*QueryPacketCommitmentsRequest) MarshalToSizedBuffer

func (m *QueryPacketCommitmentsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryPacketCommitmentsRequest) ProtoMessage

func (*QueryPacketCommitmentsRequest) ProtoMessage()

func (*QueryPacketCommitmentsRequest) Reset

func (m *QueryPacketCommitmentsRequest) Reset()

func (*QueryPacketCommitmentsRequest) Size

func (m *QueryPacketCommitmentsRequest) Size() (n int)

func (*QueryPacketCommitmentsRequest) String

func (*QueryPacketCommitmentsRequest) Unmarshal

func (m *QueryPacketCommitmentsRequest) Unmarshal(dAtA []byte) error

func (*QueryPacketCommitmentsRequest) XXX_DiscardUnknown

func (m *QueryPacketCommitmentsRequest) XXX_DiscardUnknown()

func (*QueryPacketCommitmentsRequest) XXX_Marshal

func (m *QueryPacketCommitmentsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryPacketCommitmentsRequest) XXX_Merge

func (m *QueryPacketCommitmentsRequest) XXX_Merge(src proto.Message)

func (*QueryPacketCommitmentsRequest) XXX_Size

func (m *QueryPacketCommitmentsRequest) XXX_Size() int

func (*QueryPacketCommitmentsRequest) XXX_Unmarshal

func (m *QueryPacketCommitmentsRequest) XXX_Unmarshal(b []byte) error

type QueryPacketCommitmentsResponse

type QueryPacketCommitmentsResponse struct {
	Commitments []*PacketAckCommitment `protobuf:"bytes,1,rep,name=commitments,proto3" json:"commitments,omitempty"`
	// pagination response
	Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
	// query block height
	Height int64 `protobuf:"varint,3,opt,name=height,proto3" json:"height,omitempty"`
}

QueryPacketCommitmentsResponse is the request type for the Query/QueryPacketCommitments RPC method

func (*QueryPacketCommitmentsResponse) Descriptor

func (*QueryPacketCommitmentsResponse) Descriptor() ([]byte, []int)

func (*QueryPacketCommitmentsResponse) GetCommitments

func (m *QueryPacketCommitmentsResponse) GetCommitments() []*PacketAckCommitment

func (*QueryPacketCommitmentsResponse) GetHeight

func (m *QueryPacketCommitmentsResponse) GetHeight() int64

func (*QueryPacketCommitmentsResponse) GetPagination

func (*QueryPacketCommitmentsResponse) Marshal

func (m *QueryPacketCommitmentsResponse) Marshal() (dAtA []byte, err error)

func (*QueryPacketCommitmentsResponse) MarshalTo

func (m *QueryPacketCommitmentsResponse) MarshalTo(dAtA []byte) (int, error)

func (*QueryPacketCommitmentsResponse) MarshalToSizedBuffer

func (m *QueryPacketCommitmentsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryPacketCommitmentsResponse) ProtoMessage

func (*QueryPacketCommitmentsResponse) ProtoMessage()

func (*QueryPacketCommitmentsResponse) Reset

func (m *QueryPacketCommitmentsResponse) Reset()

func (*QueryPacketCommitmentsResponse) Size

func (m *QueryPacketCommitmentsResponse) Size() (n int)

func (*QueryPacketCommitmentsResponse) String

func (*QueryPacketCommitmentsResponse) Unmarshal

func (m *QueryPacketCommitmentsResponse) Unmarshal(dAtA []byte) error

func (*QueryPacketCommitmentsResponse) XXX_DiscardUnknown

func (m *QueryPacketCommitmentsResponse) XXX_DiscardUnknown()

func (*QueryPacketCommitmentsResponse) XXX_Marshal

func (m *QueryPacketCommitmentsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryPacketCommitmentsResponse) XXX_Merge

func (m *QueryPacketCommitmentsResponse) XXX_Merge(src proto.Message)

func (*QueryPacketCommitmentsResponse) XXX_Size

func (m *QueryPacketCommitmentsResponse) XXX_Size() int

func (*QueryPacketCommitmentsResponse) XXX_Unmarshal

func (m *QueryPacketCommitmentsResponse) XXX_Unmarshal(b []byte) error

type QueryServer

type QueryServer interface {
	// Channel queries an IBC Channel.
	Channel(context.Context, *QueryChannelRequest) (*QueryChannelResponse, error)
	// Channels queries all the IBC channels of a chain.
	Channels(context.Context, *QueryChannelsRequest) (*QueryChannelsResponse, error)
	// ConnectionChannels queries all the channels associated with a connection end.
	ConnectionChannels(context.Context, *QueryConnectionChannelsRequest) (*QueryConnectionChannelsResponse, error)
	// PacketCommitment queries a stored packet commitment hash.
	PacketCommitment(context.Context, *QueryPacketCommitmentRequest) (*QueryPacketCommitmentResponse, error)
	// PacketCommitments returns the all the packet commitments hashes associated with a channel.
	PacketCommitments(context.Context, *QueryPacketCommitmentsRequest) (*QueryPacketCommitmentsResponse, error)
	// PacketAcknowledgement queries a stored packet acknowledgement hash.
	PacketAcknowledgement(context.Context, *QueryPacketAcknowledgementRequest) (*QueryPacketAcknowledgementResponse, error)
	// UnrelayedPackets returns all the unrelayed IBC packets associated with a channel and sequences.
	UnrelayedPackets(context.Context, *QueryUnrelayedPacketsRequest) (*QueryUnrelayedPacketsResponse, error)
	// NextSequenceReceive returns the next receive sequence for a given channel
	NextSequenceReceive(context.Context, *QueryNextSequenceReceiveRequest) (*QueryNextSequenceReceiveResponse, error)
}

QueryServer is the server API for Query service.

type QueryUnrelayedPacketsRequest

type QueryUnrelayedPacketsRequest struct {
	// port unique identifier
	PortID string `protobuf:"bytes,1,opt,name=port_id,json=portId,proto3" json:"port_id,omitempty"`
	// channel unique identifier
	ChannelID string `protobuf:"bytes,2,opt,name=channel_id,json=channelId,proto3" json:"channel_id,omitempty"`
	// list of packet sequences
	PacketCommitmentSequences []uint64 `` /* 146-byte string literal not displayed */
	// flag indicating if the return value is packet commitments or acknowledgements
	Acknowledgements bool `protobuf:"varint,4,opt,name=acknowledgements,proto3" json:"acknowledgements,omitempty"`
}

QueryUnrelayedPacketsRequest is the request type for the Query/UnrelayedPackets RPC method

func (*QueryUnrelayedPacketsRequest) Descriptor

func (*QueryUnrelayedPacketsRequest) Descriptor() ([]byte, []int)

func (*QueryUnrelayedPacketsRequest) GetAcknowledgements

func (m *QueryUnrelayedPacketsRequest) GetAcknowledgements() bool

func (*QueryUnrelayedPacketsRequest) GetChannelID

func (m *QueryUnrelayedPacketsRequest) GetChannelID() string

func (*QueryUnrelayedPacketsRequest) GetPacketCommitmentSequences

func (m *QueryUnrelayedPacketsRequest) GetPacketCommitmentSequences() []uint64

func (*QueryUnrelayedPacketsRequest) GetPortID

func (m *QueryUnrelayedPacketsRequest) GetPortID() string

func (*QueryUnrelayedPacketsRequest) Marshal

func (m *QueryUnrelayedPacketsRequest) Marshal() (dAtA []byte, err error)

func (*QueryUnrelayedPacketsRequest) MarshalTo

func (m *QueryUnrelayedPacketsRequest) MarshalTo(dAtA []byte) (int, error)

func (*QueryUnrelayedPacketsRequest) MarshalToSizedBuffer

func (m *QueryUnrelayedPacketsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryUnrelayedPacketsRequest) ProtoMessage

func (*QueryUnrelayedPacketsRequest) ProtoMessage()

func (*QueryUnrelayedPacketsRequest) Reset

func (m *QueryUnrelayedPacketsRequest) Reset()

func (*QueryUnrelayedPacketsRequest) Size

func (m *QueryUnrelayedPacketsRequest) Size() (n int)

func (*QueryUnrelayedPacketsRequest) String

func (*QueryUnrelayedPacketsRequest) Unmarshal

func (m *QueryUnrelayedPacketsRequest) Unmarshal(dAtA []byte) error

func (*QueryUnrelayedPacketsRequest) XXX_DiscardUnknown

func (m *QueryUnrelayedPacketsRequest) XXX_DiscardUnknown()

func (*QueryUnrelayedPacketsRequest) XXX_Marshal

func (m *QueryUnrelayedPacketsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryUnrelayedPacketsRequest) XXX_Merge

func (m *QueryUnrelayedPacketsRequest) XXX_Merge(src proto.Message)

func (*QueryUnrelayedPacketsRequest) XXX_Size

func (m *QueryUnrelayedPacketsRequest) XXX_Size() int

func (*QueryUnrelayedPacketsRequest) XXX_Unmarshal

func (m *QueryUnrelayedPacketsRequest) XXX_Unmarshal(b []byte) error

type QueryUnrelayedPacketsResponse

type QueryUnrelayedPacketsResponse struct {
	// list of unrelayed packet sequences
	Sequences []uint64 `protobuf:"varint,1,rep,packed,name=sequences,proto3" json:"sequences,omitempty"`
	// query block height
	Height int64 `protobuf:"varint,2,opt,name=height,proto3" json:"height,omitempty"`
}

QueryUnrelayedPacketsResponse is the request type for the Query/UnrelayedPacketCommitments RPC method

func (*QueryUnrelayedPacketsResponse) Descriptor

func (*QueryUnrelayedPacketsResponse) Descriptor() ([]byte, []int)

func (*QueryUnrelayedPacketsResponse) GetHeight

func (m *QueryUnrelayedPacketsResponse) GetHeight() int64

func (*QueryUnrelayedPacketsResponse) GetSequences

func (m *QueryUnrelayedPacketsResponse) GetSequences() []uint64

func (*QueryUnrelayedPacketsResponse) Marshal

func (m *QueryUnrelayedPacketsResponse) Marshal() (dAtA []byte, err error)

func (*QueryUnrelayedPacketsResponse) MarshalTo

func (m *QueryUnrelayedPacketsResponse) MarshalTo(dAtA []byte) (int, error)

func (*QueryUnrelayedPacketsResponse) MarshalToSizedBuffer

func (m *QueryUnrelayedPacketsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryUnrelayedPacketsResponse) ProtoMessage

func (*QueryUnrelayedPacketsResponse) ProtoMessage()

func (*QueryUnrelayedPacketsResponse) Reset

func (m *QueryUnrelayedPacketsResponse) Reset()

func (*QueryUnrelayedPacketsResponse) Size

func (m *QueryUnrelayedPacketsResponse) Size() (n int)

func (*QueryUnrelayedPacketsResponse) String

func (*QueryUnrelayedPacketsResponse) Unmarshal

func (m *QueryUnrelayedPacketsResponse) Unmarshal(dAtA []byte) error

func (*QueryUnrelayedPacketsResponse) XXX_DiscardUnknown

func (m *QueryUnrelayedPacketsResponse) XXX_DiscardUnknown()

func (*QueryUnrelayedPacketsResponse) XXX_Marshal

func (m *QueryUnrelayedPacketsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryUnrelayedPacketsResponse) XXX_Merge

func (m *QueryUnrelayedPacketsResponse) XXX_Merge(src proto.Message)

func (*QueryUnrelayedPacketsResponse) XXX_Size

func (m *QueryUnrelayedPacketsResponse) XXX_Size() int

func (*QueryUnrelayedPacketsResponse) XXX_Unmarshal

func (m *QueryUnrelayedPacketsResponse) XXX_Unmarshal(b []byte) error

type State

type State int32

State defines if a channel is in one of the following states: CLOSED, INIT, TRYOPEN, OPEN or UNINITIALIZED.

const (
	// Default State
	UNINITIALIZED State = 0
	// A channel has just started the opening handshake.
	INIT State = 1
	// A channel has acknowledged the handshake step on the counterparty chain.
	TRYOPEN State = 2
	// A channel has completed the handshake. Open channels are
	// ready to send and receive packets.
	OPEN State = 3
	// A channel has been closed and can no longer be used to send or receive packets.
	CLOSED State = 4
)

func (State) EnumDescriptor

func (State) EnumDescriptor() ([]byte, []int)

func (State) String

func (x State) String() string

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) Channel

func (*UnimplementedQueryServer) Channels

func (*UnimplementedQueryServer) ConnectionChannels

func (*UnimplementedQueryServer) NextSequenceReceive

func (*UnimplementedQueryServer) PacketCommitment

func (*UnimplementedQueryServer) PacketCommitments

func (*UnimplementedQueryServer) UnrelayedPackets

Jump to

Keyboard shortcuts

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