// Code generated by protoc-gen-gogo. DO NOT EDIT. // source: ibc/channel/channel.proto package types import ( fmt "fmt" github_com_cosmos_cosmos_sdk_types "github.com/cosmos/cosmos-sdk/types" _ "github.com/gogo/protobuf/gogoproto" proto "github.com/gogo/protobuf/proto" io "io" math "math" math_bits "math/bits" ) // Reference imports to suppress errors if they are not otherwise used. var _ = proto.Marshal var _ = fmt.Errorf var _ = math.Inf // This is a compile-time assertion to ensure that this generated file // is compatible with the proto package it is being compiled against. // A compilation error at this line likely means your copy of the // proto package needs to be updated. const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package // State defines if a channel is in one of the following states: // CLOSED, INIT, TRYOPEN, OPEN or UNINITIALIZED. type State int32 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 ) var State_name = map[int32]string{ 0: "STATE_UNINITIALIZED_UNSPECIFIED", 1: "STATE_INIT", 2: "STATE_TRYOPEN", 3: "STATE_OPEN", 4: "STATE_CLOSED", } var State_value = map[string]int32{ "STATE_UNINITIALIZED_UNSPECIFIED": 0, "STATE_INIT": 1, "STATE_TRYOPEN": 2, "STATE_OPEN": 3, "STATE_CLOSED": 4, } func (x State) String() string { return proto.EnumName(State_name, int32(x)) } func (State) EnumDescriptor() ([]byte, []int) { return fileDescriptor_9277922ccfb7f043, []int{0} } // Order defines if a channel is ORDERED or UNORDERED type Order int32 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 ) var Order_name = map[int32]string{ 0: "ORDER_NONE_UNSPECIFIED", 1: "ORDER_UNORDERED", 2: "ORDER_ORDERED", } var Order_value = map[string]int32{ "ORDER_NONE_UNSPECIFIED": 0, "ORDER_UNORDERED": 1, "ORDER_ORDERED": 2, } func (x Order) String() string { return proto.EnumName(Order_name, int32(x)) } func (Order) EnumDescriptor() ([]byte, []int) { return fileDescriptor_9277922ccfb7f043, []int{1} } // MsgChannelOpenInit defines an sdk.Msg to initialize a channel handshake. It is // called by a relayer on Chain A. 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"` } func (m *MsgChannelOpenInit) Reset() { *m = MsgChannelOpenInit{} } func (m *MsgChannelOpenInit) String() string { return proto.CompactTextString(m) } func (*MsgChannelOpenInit) ProtoMessage() {} func (*MsgChannelOpenInit) Descriptor() ([]byte, []int) { return fileDescriptor_9277922ccfb7f043, []int{0} } func (m *MsgChannelOpenInit) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *MsgChannelOpenInit) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_MsgChannelOpenInit.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } } func (m *MsgChannelOpenInit) XXX_Merge(src proto.Message) { xxx_messageInfo_MsgChannelOpenInit.Merge(m, src) } func (m *MsgChannelOpenInit) XXX_Size() int { return m.Size() } func (m *MsgChannelOpenInit) XXX_DiscardUnknown() { xxx_messageInfo_MsgChannelOpenInit.DiscardUnknown(m) } var xxx_messageInfo_MsgChannelOpenInit proto.InternalMessageInfo func (m *MsgChannelOpenInit) GetPortID() string { if m != nil { return m.PortID } return "" } func (m *MsgChannelOpenInit) GetChannelID() string { if m != nil { return m.ChannelID } return "" } func (m *MsgChannelOpenInit) GetChannel() Channel { if m != nil { return m.Channel } return Channel{} } func (m *MsgChannelOpenInit) GetSigner() github_com_cosmos_cosmos_sdk_types.AccAddress { if m != nil { return m.Signer } return nil } // MsgChannelOpenInit defines a msg sent by a Relayer to try to open a channel // on Chain B. 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 `protobuf:"bytes,4,opt,name=counterparty_version,json=counterpartyVersion,proto3" json:"counterparty_version,omitempty" yaml:"counterparty_version"` 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"` } func (m *MsgChannelOpenTry) Reset() { *m = MsgChannelOpenTry{} } func (m *MsgChannelOpenTry) String() string { return proto.CompactTextString(m) } func (*MsgChannelOpenTry) ProtoMessage() {} func (*MsgChannelOpenTry) Descriptor() ([]byte, []int) { return fileDescriptor_9277922ccfb7f043, []int{1} } func (m *MsgChannelOpenTry) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *MsgChannelOpenTry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_MsgChannelOpenTry.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } } func (m *MsgChannelOpenTry) XXX_Merge(src proto.Message) { xxx_messageInfo_MsgChannelOpenTry.Merge(m, src) } func (m *MsgChannelOpenTry) XXX_Size() int { return m.Size() } func (m *MsgChannelOpenTry) XXX_DiscardUnknown() { xxx_messageInfo_MsgChannelOpenTry.DiscardUnknown(m) } var xxx_messageInfo_MsgChannelOpenTry proto.InternalMessageInfo func (m *MsgChannelOpenTry) GetPortID() string { if m != nil { return m.PortID } return "" } func (m *MsgChannelOpenTry) GetChannelID() string { if m != nil { return m.ChannelID } return "" } func (m *MsgChannelOpenTry) GetChannel() Channel { if m != nil { return m.Channel } return Channel{} } func (m *MsgChannelOpenTry) GetCounterpartyVersion() string { if m != nil { return m.CounterpartyVersion } return "" } func (m *MsgChannelOpenTry) GetProofInit() []byte { if m != nil { return m.ProofInit } return nil } func (m *MsgChannelOpenTry) GetProofHeight() uint64 { if m != nil { return m.ProofHeight } return 0 } func (m *MsgChannelOpenTry) GetSigner() github_com_cosmos_cosmos_sdk_types.AccAddress { if m != nil { return m.Signer } return nil } // MsgChannelOpenAck defines a msg sent by a Relayer to Chain A to acknowledge // the change of channel state to TRYOPEN on Chain B. 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 `protobuf:"bytes,3,opt,name=counterparty_version,json=counterpartyVersion,proto3" json:"counterparty_version,omitempty" yaml:"counterparty_version"` 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"` } func (m *MsgChannelOpenAck) Reset() { *m = MsgChannelOpenAck{} } func (m *MsgChannelOpenAck) String() string { return proto.CompactTextString(m) } func (*MsgChannelOpenAck) ProtoMessage() {} func (*MsgChannelOpenAck) Descriptor() ([]byte, []int) { return fileDescriptor_9277922ccfb7f043, []int{2} } func (m *MsgChannelOpenAck) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *MsgChannelOpenAck) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_MsgChannelOpenAck.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } } func (m *MsgChannelOpenAck) XXX_Merge(src proto.Message) { xxx_messageInfo_MsgChannelOpenAck.Merge(m, src) } func (m *MsgChannelOpenAck) XXX_Size() int { return m.Size() } func (m *MsgChannelOpenAck) XXX_DiscardUnknown() { xxx_messageInfo_MsgChannelOpenAck.DiscardUnknown(m) } var xxx_messageInfo_MsgChannelOpenAck proto.InternalMessageInfo func (m *MsgChannelOpenAck) GetPortID() string { if m != nil { return m.PortID } return "" } func (m *MsgChannelOpenAck) GetChannelID() string { if m != nil { return m.ChannelID } return "" } func (m *MsgChannelOpenAck) GetCounterpartyVersion() string { if m != nil { return m.CounterpartyVersion } return "" } func (m *MsgChannelOpenAck) GetProofTry() []byte { if m != nil { return m.ProofTry } return nil } func (m *MsgChannelOpenAck) GetProofHeight() uint64 { if m != nil { return m.ProofHeight } return 0 } func (m *MsgChannelOpenAck) GetSigner() github_com_cosmos_cosmos_sdk_types.AccAddress { if m != nil { return m.Signer } return nil } // MsgChannelOpenConfirm defines a msg sent by a Relayer to Chain B to acknowledge // the change of channel state to OPEN on Chain A. 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"` } func (m *MsgChannelOpenConfirm) Reset() { *m = MsgChannelOpenConfirm{} } func (m *MsgChannelOpenConfirm) String() string { return proto.CompactTextString(m) } func (*MsgChannelOpenConfirm) ProtoMessage() {} func (*MsgChannelOpenConfirm) Descriptor() ([]byte, []int) { return fileDescriptor_9277922ccfb7f043, []int{3} } func (m *MsgChannelOpenConfirm) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *MsgChannelOpenConfirm) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_MsgChannelOpenConfirm.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } } func (m *MsgChannelOpenConfirm) XXX_Merge(src proto.Message) { xxx_messageInfo_MsgChannelOpenConfirm.Merge(m, src) } func (m *MsgChannelOpenConfirm) XXX_Size() int { return m.Size() } func (m *MsgChannelOpenConfirm) XXX_DiscardUnknown() { xxx_messageInfo_MsgChannelOpenConfirm.DiscardUnknown(m) } var xxx_messageInfo_MsgChannelOpenConfirm proto.InternalMessageInfo func (m *MsgChannelOpenConfirm) GetPortID() string { if m != nil { return m.PortID } return "" } func (m *MsgChannelOpenConfirm) GetChannelID() string { if m != nil { return m.ChannelID } return "" } func (m *MsgChannelOpenConfirm) GetProofAck() []byte { if m != nil { return m.ProofAck } return nil } func (m *MsgChannelOpenConfirm) GetProofHeight() uint64 { if m != nil { return m.ProofHeight } return 0 } func (m *MsgChannelOpenConfirm) GetSigner() github_com_cosmos_cosmos_sdk_types.AccAddress { if m != nil { return m.Signer } return nil } // MsgChannelOpenConfirm defines a msg sent by a Relayer to Chain A // to close a channel with Chain B. 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"` } func (m *MsgChannelCloseInit) Reset() { *m = MsgChannelCloseInit{} } func (m *MsgChannelCloseInit) String() string { return proto.CompactTextString(m) } func (*MsgChannelCloseInit) ProtoMessage() {} func (*MsgChannelCloseInit) Descriptor() ([]byte, []int) { return fileDescriptor_9277922ccfb7f043, []int{4} } func (m *MsgChannelCloseInit) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *MsgChannelCloseInit) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_MsgChannelCloseInit.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } } func (m *MsgChannelCloseInit) XXX_Merge(src proto.Message) { xxx_messageInfo_MsgChannelCloseInit.Merge(m, src) } func (m *MsgChannelCloseInit) XXX_Size() int { return m.Size() } func (m *MsgChannelCloseInit) XXX_DiscardUnknown() { xxx_messageInfo_MsgChannelCloseInit.DiscardUnknown(m) } var xxx_messageInfo_MsgChannelCloseInit proto.InternalMessageInfo func (m *MsgChannelCloseInit) GetPortID() string { if m != nil { return m.PortID } return "" } func (m *MsgChannelCloseInit) GetChannelID() string { if m != nil { return m.ChannelID } return "" } func (m *MsgChannelCloseInit) GetSigner() github_com_cosmos_cosmos_sdk_types.AccAddress { if m != nil { return m.Signer } return nil } // MsgChannelCloseConfirm defines a msg sent by a Relayer to Chain B // to acknowledge the change of channel state to CLOSED on Chain A. 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"` } func (m *MsgChannelCloseConfirm) Reset() { *m = MsgChannelCloseConfirm{} } func (m *MsgChannelCloseConfirm) String() string { return proto.CompactTextString(m) } func (*MsgChannelCloseConfirm) ProtoMessage() {} func (*MsgChannelCloseConfirm) Descriptor() ([]byte, []int) { return fileDescriptor_9277922ccfb7f043, []int{5} } func (m *MsgChannelCloseConfirm) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *MsgChannelCloseConfirm) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_MsgChannelCloseConfirm.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } } func (m *MsgChannelCloseConfirm) XXX_Merge(src proto.Message) { xxx_messageInfo_MsgChannelCloseConfirm.Merge(m, src) } func (m *MsgChannelCloseConfirm) XXX_Size() int { return m.Size() } func (m *MsgChannelCloseConfirm) XXX_DiscardUnknown() { xxx_messageInfo_MsgChannelCloseConfirm.DiscardUnknown(m) } var xxx_messageInfo_MsgChannelCloseConfirm proto.InternalMessageInfo func (m *MsgChannelCloseConfirm) GetPortID() string { if m != nil { return m.PortID } return "" } func (m *MsgChannelCloseConfirm) GetChannelID() string { if m != nil { return m.ChannelID } return "" } func (m *MsgChannelCloseConfirm) GetProofInit() []byte { if m != nil { return m.ProofInit } return nil } func (m *MsgChannelCloseConfirm) GetProofHeight() uint64 { if m != nil { return m.ProofHeight } return 0 } func (m *MsgChannelCloseConfirm) GetSigner() github_com_cosmos_cosmos_sdk_types.AccAddress { if m != nil { return m.Signer } return nil } // MsgRecvPacket receives incoming IBC packet 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"` } func (m *MsgRecvPacket) Reset() { *m = MsgRecvPacket{} } func (m *MsgRecvPacket) String() string { return proto.CompactTextString(m) } func (*MsgRecvPacket) ProtoMessage() {} func (*MsgRecvPacket) Descriptor() ([]byte, []int) { return fileDescriptor_9277922ccfb7f043, []int{6} } func (m *MsgRecvPacket) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *MsgRecvPacket) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_MsgRecvPacket.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } } func (m *MsgRecvPacket) XXX_Merge(src proto.Message) { xxx_messageInfo_MsgRecvPacket.Merge(m, src) } func (m *MsgRecvPacket) XXX_Size() int { return m.Size() } func (m *MsgRecvPacket) XXX_DiscardUnknown() { xxx_messageInfo_MsgRecvPacket.DiscardUnknown(m) } var xxx_messageInfo_MsgRecvPacket proto.InternalMessageInfo func (m *MsgRecvPacket) GetPacket() Packet { if m != nil { return m.Packet } return Packet{} } func (m *MsgRecvPacket) GetProof() []byte { if m != nil { return m.Proof } return nil } func (m *MsgRecvPacket) GetProofHeight() uint64 { if m != nil { return m.ProofHeight } return 0 } func (m *MsgRecvPacket) GetSigner() github_com_cosmos_cosmos_sdk_types.AccAddress { if m != nil { return m.Signer } return nil } // MsgTimeout receives timed-out packet 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 `protobuf:"varint,4,opt,name=next_sequence_recv,json=nextSequenceRecv,proto3" json:"next_sequence_recv,omitempty" yaml:"next_sequence_recv"` 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"` } func (m *MsgTimeout) Reset() { *m = MsgTimeout{} } func (m *MsgTimeout) String() string { return proto.CompactTextString(m) } func (*MsgTimeout) ProtoMessage() {} func (*MsgTimeout) Descriptor() ([]byte, []int) { return fileDescriptor_9277922ccfb7f043, []int{7} } func (m *MsgTimeout) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *MsgTimeout) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_MsgTimeout.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } } func (m *MsgTimeout) XXX_Merge(src proto.Message) { xxx_messageInfo_MsgTimeout.Merge(m, src) } func (m *MsgTimeout) XXX_Size() int { return m.Size() } func (m *MsgTimeout) XXX_DiscardUnknown() { xxx_messageInfo_MsgTimeout.DiscardUnknown(m) } var xxx_messageInfo_MsgTimeout proto.InternalMessageInfo func (m *MsgTimeout) GetPacket() Packet { if m != nil { return m.Packet } return Packet{} } func (m *MsgTimeout) GetProof() []byte { if m != nil { return m.Proof } return nil } func (m *MsgTimeout) GetProofHeight() uint64 { if m != nil { return m.ProofHeight } return 0 } func (m *MsgTimeout) GetNextSequenceRecv() uint64 { if m != nil { return m.NextSequenceRecv } return 0 } func (m *MsgTimeout) GetSigner() github_com_cosmos_cosmos_sdk_types.AccAddress { if m != nil { return m.Signer } return nil } // MsgAcknowledgement receives incoming IBC acknowledgement 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"` } func (m *MsgAcknowledgement) Reset() { *m = MsgAcknowledgement{} } func (m *MsgAcknowledgement) String() string { return proto.CompactTextString(m) } func (*MsgAcknowledgement) ProtoMessage() {} func (*MsgAcknowledgement) Descriptor() ([]byte, []int) { return fileDescriptor_9277922ccfb7f043, []int{8} } func (m *MsgAcknowledgement) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *MsgAcknowledgement) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_MsgAcknowledgement.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } } func (m *MsgAcknowledgement) XXX_Merge(src proto.Message) { xxx_messageInfo_MsgAcknowledgement.Merge(m, src) } func (m *MsgAcknowledgement) XXX_Size() int { return m.Size() } func (m *MsgAcknowledgement) XXX_DiscardUnknown() { xxx_messageInfo_MsgAcknowledgement.DiscardUnknown(m) } var xxx_messageInfo_MsgAcknowledgement proto.InternalMessageInfo func (m *MsgAcknowledgement) GetPacket() Packet { if m != nil { return m.Packet } return Packet{} } func (m *MsgAcknowledgement) GetAcknowledgement() []byte { if m != nil { return m.Acknowledgement } return nil } func (m *MsgAcknowledgement) GetProof() []byte { if m != nil { return m.Proof } return nil } func (m *MsgAcknowledgement) GetProofHeight() uint64 { if m != nil { return m.ProofHeight } return 0 } func (m *MsgAcknowledgement) GetSigner() github_com_cosmos_cosmos_sdk_types.AccAddress { if m != nil { return m.Signer } return nil } // 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. 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 `protobuf:"bytes,4,rep,name=connection_hops,json=connectionHops,proto3" json:"connection_hops,omitempty" yaml:"connection_hops"` // opaque channel version, which is agreed upon during the handshake Version string `protobuf:"bytes,5,opt,name=version,proto3" json:"version,omitempty"` } func (m *Channel) Reset() { *m = Channel{} } func (m *Channel) String() string { return proto.CompactTextString(m) } func (*Channel) ProtoMessage() {} func (*Channel) Descriptor() ([]byte, []int) { return fileDescriptor_9277922ccfb7f043, []int{9} } func (m *Channel) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *Channel) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_Channel.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } } func (m *Channel) XXX_Merge(src proto.Message) { xxx_messageInfo_Channel.Merge(m, src) } func (m *Channel) XXX_Size() int { return m.Size() } func (m *Channel) XXX_DiscardUnknown() { xxx_messageInfo_Channel.DiscardUnknown(m) } var xxx_messageInfo_Channel proto.InternalMessageInfo // IdentifiedChannel defines a channel with additional port and channel identifier // fields. 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 `protobuf:"bytes,4,rep,name=connection_hops,json=connectionHops,proto3" json:"connection_hops,omitempty" yaml:"connection_hops"` // 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"` } func (m *IdentifiedChannel) Reset() { *m = IdentifiedChannel{} } func (m *IdentifiedChannel) String() string { return proto.CompactTextString(m) } func (*IdentifiedChannel) ProtoMessage() {} func (*IdentifiedChannel) Descriptor() ([]byte, []int) { return fileDescriptor_9277922ccfb7f043, []int{10} } func (m *IdentifiedChannel) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *IdentifiedChannel) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_IdentifiedChannel.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } } func (m *IdentifiedChannel) XXX_Merge(src proto.Message) { xxx_messageInfo_IdentifiedChannel.Merge(m, src) } func (m *IdentifiedChannel) XXX_Size() int { return m.Size() } func (m *IdentifiedChannel) XXX_DiscardUnknown() { xxx_messageInfo_IdentifiedChannel.DiscardUnknown(m) } var xxx_messageInfo_IdentifiedChannel proto.InternalMessageInfo // Counterparty defines a channel end 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"` } func (m *Counterparty) Reset() { *m = Counterparty{} } func (m *Counterparty) String() string { return proto.CompactTextString(m) } func (*Counterparty) ProtoMessage() {} func (*Counterparty) Descriptor() ([]byte, []int) { return fileDescriptor_9277922ccfb7f043, []int{11} } func (m *Counterparty) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *Counterparty) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_Counterparty.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } } func (m *Counterparty) XXX_Merge(src proto.Message) { xxx_messageInfo_Counterparty.Merge(m, src) } func (m *Counterparty) XXX_Size() int { return m.Size() } func (m *Counterparty) XXX_DiscardUnknown() { xxx_messageInfo_Counterparty.DiscardUnknown(m) } var xxx_messageInfo_Counterparty proto.InternalMessageInfo // Packet defines a type that carries data across different chains through IBC 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 `protobuf:"bytes,4,opt,name=destination_port,json=destinationPort,proto3" json:"destination_port,omitempty" yaml:"destination_port"` // identifies the channel end on the receiving chain. DestinationChannel string `protobuf:"bytes,5,opt,name=destination_channel,json=destinationChannel,proto3" json:"destination_channel,omitempty" yaml:"destination_channel"` // 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 `protobuf:"varint,8,opt,name=timeout_timestamp,json=timeoutTimestamp,proto3" json:"timeout_timestamp,omitempty" yaml:"timeout_timestamp"` } func (m *Packet) Reset() { *m = Packet{} } func (m *Packet) String() string { return proto.CompactTextString(m) } func (*Packet) ProtoMessage() {} func (*Packet) Descriptor() ([]byte, []int) { return fileDescriptor_9277922ccfb7f043, []int{12} } func (m *Packet) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *Packet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_Packet.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } } func (m *Packet) XXX_Merge(src proto.Message) { xxx_messageInfo_Packet.Merge(m, src) } func (m *Packet) XXX_Size() int { return m.Size() } func (m *Packet) XXX_DiscardUnknown() { xxx_messageInfo_Packet.DiscardUnknown(m) } var xxx_messageInfo_Packet proto.InternalMessageInfo // PacketAckCommitment defines the genesis type necessary to retrieve and store // acknowlegements. 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"` } func (m *PacketAckCommitment) Reset() { *m = PacketAckCommitment{} } func (m *PacketAckCommitment) String() string { return proto.CompactTextString(m) } func (*PacketAckCommitment) ProtoMessage() {} func (*PacketAckCommitment) Descriptor() ([]byte, []int) { return fileDescriptor_9277922ccfb7f043, []int{13} } func (m *PacketAckCommitment) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *PacketAckCommitment) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_PacketAckCommitment.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } } func (m *PacketAckCommitment) XXX_Merge(src proto.Message) { xxx_messageInfo_PacketAckCommitment.Merge(m, src) } func (m *PacketAckCommitment) XXX_Size() int { return m.Size() } func (m *PacketAckCommitment) XXX_DiscardUnknown() { xxx_messageInfo_PacketAckCommitment.DiscardUnknown(m) } var xxx_messageInfo_PacketAckCommitment proto.InternalMessageInfo func init() { proto.RegisterEnum("ibc.channel.State", State_name, State_value) proto.RegisterEnum("ibc.channel.Order", Order_name, Order_value) proto.RegisterType((*MsgChannelOpenInit)(nil), "ibc.channel.MsgChannelOpenInit") proto.RegisterType((*MsgChannelOpenTry)(nil), "ibc.channel.MsgChannelOpenTry") proto.RegisterType((*MsgChannelOpenAck)(nil), "ibc.channel.MsgChannelOpenAck") proto.RegisterType((*MsgChannelOpenConfirm)(nil), "ibc.channel.MsgChannelOpenConfirm") proto.RegisterType((*MsgChannelCloseInit)(nil), "ibc.channel.MsgChannelCloseInit") proto.RegisterType((*MsgChannelCloseConfirm)(nil), "ibc.channel.MsgChannelCloseConfirm") proto.RegisterType((*MsgRecvPacket)(nil), "ibc.channel.MsgRecvPacket") proto.RegisterType((*MsgTimeout)(nil), "ibc.channel.MsgTimeout") proto.RegisterType((*MsgAcknowledgement)(nil), "ibc.channel.MsgAcknowledgement") proto.RegisterType((*Channel)(nil), "ibc.channel.Channel") proto.RegisterType((*IdentifiedChannel)(nil), "ibc.channel.IdentifiedChannel") proto.RegisterType((*Counterparty)(nil), "ibc.channel.Counterparty") proto.RegisterType((*Packet)(nil), "ibc.channel.Packet") proto.RegisterType((*PacketAckCommitment)(nil), "ibc.channel.PacketAckCommitment") } func init() { proto.RegisterFile("ibc/channel/channel.proto", fileDescriptor_9277922ccfb7f043) } var fileDescriptor_9277922ccfb7f043 = []byte{ // 1284 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xec, 0x58, 0x4f, 0x6f, 0x1b, 0x45, 0x14, 0xf7, 0xfa, 0x6f, 0xfc, 0x12, 0x27, 0xce, 0x24, 0x4d, 0x1d, 0xb7, 0x78, 0xad, 0x85, 0x83, 0x55, 0x51, 0x87, 0xfe, 0x01, 0xa4, 0x9e, 0xb0, 0x1d, 0x57, 0x5d, 0xd1, 0xd8, 0xd1, 0xc4, 0x45, 0xa2, 0x17, 0x6b, 0xb3, 0x3b, 0xb5, 0x57, 0x8e, 0x77, 0xcc, 0xee, 0xa6, 0x6d, 0xbe, 0x41, 0x15, 0x89, 0xc2, 0x1d, 0x45, 0x42, 0xe2, 0xc4, 0x27, 0xe0, 0x13, 0x20, 0x55, 0xe2, 0x40, 0x0f, 0x1c, 0x10, 0x87, 0x2d, 0x4a, 0x6f, 0x1c, 0x7d, 0xe4, 0x84, 0x76, 0x66, 0xd6, 0xde, 0x75, 0x4a, 0x0f, 0x09, 0x92, 0x41, 0xe2, 0xb4, 0xf3, 0xde, 0xfb, 0xcd, 0xcc, 0x7b, 0xbf, 0xf7, 0xf2, 0xde, 0xc4, 0xb0, 0x69, 0xee, 0xeb, 0x5b, 0x7a, 0x5f, 0xb3, 0x2c, 0x72, 0x10, 0x7c, 0xab, 0x23, 0x9b, 0xba, 0x14, 0x2d, 0x9a, 0xfb, 0x7a, 0x55, 0xa8, 0x8a, 0xeb, 0x3d, 0xda, 0xa3, 0x4c, 0xbf, 0xe5, 0xaf, 0x38, 0x44, 0xf9, 0x2a, 0x0e, 0x68, 0xc7, 0xe9, 0x35, 0x38, 0xa8, 0x3d, 0x22, 0x96, 0x6a, 0x99, 0x2e, 0xfa, 0x10, 0x32, 0x23, 0x6a, 0xbb, 0x5d, 0xd3, 0x28, 0x48, 0x65, 0xa9, 0x92, 0xad, 0x5f, 0x3d, 0xf5, 0xe4, 0xf4, 0x2e, 0xb5, 0x5d, 0x75, 0x7b, 0xec, 0xc9, 0xcb, 0x47, 0xda, 0xf0, 0xe0, 0x8e, 0x22, 0x20, 0x0a, 0x4e, 0xfb, 0x2b, 0xd5, 0x40, 0x35, 0x00, 0x71, 0x9d, 0xbf, 0x33, 0xce, 0x76, 0x2a, 0xa7, 0x9e, 0x9c, 0x15, 0xe7, 0xb3, 0xcd, 0xab, 0x7c, 0xf3, 0x14, 0xa8, 0xe0, 0xac, 0x10, 0x54, 0x03, 0xdd, 0x86, 0x8c, 0x10, 0x0a, 0x89, 0xb2, 0x54, 0x59, 0xbc, 0xb9, 0x5e, 0x0d, 0x45, 0x51, 0x15, 0x07, 0xd5, 0x93, 0x2f, 0x3c, 0x39, 0x86, 0x03, 0x28, 0x52, 0x21, 0xed, 0x98, 0x3d, 0x8b, 0xd8, 0x85, 0x64, 0x59, 0xaa, 0x2c, 0xd5, 0x6f, 0xfc, 0xe9, 0xc9, 0xd7, 0x7b, 0xa6, 0xdb, 0x3f, 0xdc, 0xaf, 0xea, 0x74, 0xb8, 0xa5, 0x53, 0x67, 0x48, 0x1d, 0xf1, 0xb9, 0xee, 0x18, 0x83, 0x2d, 0xf7, 0x68, 0x44, 0x9c, 0x6a, 0x4d, 0xd7, 0x6b, 0x86, 0x61, 0x13, 0xc7, 0xc1, 0xe2, 0x00, 0xe5, 0x97, 0x04, 0xac, 0x46, 0x19, 0xe9, 0xd8, 0x47, 0xff, 0x39, 0x42, 0x30, 0xac, 0xeb, 0xf4, 0xd0, 0x72, 0x89, 0x3d, 0xd2, 0x6c, 0xf7, 0xa8, 0xfb, 0x98, 0xd8, 0x8e, 0x49, 0x2d, 0x46, 0x4f, 0xb6, 0x2e, 0x8f, 0x3d, 0xf9, 0x8a, 0xb8, 0xf5, 0x0d, 0x28, 0x05, 0xaf, 0x85, 0xd5, 0x9f, 0x71, 0x2d, 0xba, 0x0d, 0x30, 0xb2, 0x29, 0x7d, 0xd4, 0x35, 0x2d, 0xd3, 0x2d, 0xa4, 0x18, 0xd1, 0x97, 0xa6, 0xfe, 0x4f, 0x6d, 0x0a, 0xce, 0x32, 0x81, 0x95, 0xd2, 0x1d, 0x58, 0xe2, 0x96, 0x3e, 0x31, 0x7b, 0x7d, 0xb7, 0x90, 0x2e, 0x4b, 0x95, 0x64, 0xfd, 0xf2, 0xd8, 0x93, 0xd7, 0xc2, 0xfb, 0xb8, 0x55, 0xc1, 0x8b, 0x4c, 0xbc, 0xc7, 0xa4, 0x50, 0x5a, 0x33, 0x17, 0x4d, 0xeb, 0x37, 0x67, 0xd2, 0x5a, 0xd3, 0x07, 0x73, 0x4c, 0xeb, 0xdf, 0x25, 0x28, 0x71, 0x81, 0x04, 0xdd, 0x00, 0xce, 0x7b, 0xd7, 0xb5, 0x8f, 0xc4, 0x1f, 0xc2, 0xfa, 0xd8, 0x93, 0xf3, 0x61, 0x9e, 0x5d, 0xfb, 0x48, 0xc1, 0x0b, 0x6c, 0xed, 0xd7, 0xf5, 0x6c, 0x76, 0x52, 0xe7, 0xca, 0x4e, 0xfa, 0xa2, 0xd9, 0xf9, 0x29, 0x0e, 0x97, 0xa2, 0xd9, 0x69, 0x50, 0xeb, 0x91, 0x69, 0x0f, 0xe7, 0x98, 0xa1, 0x09, 0x9b, 0x9a, 0x3e, 0x60, 0x69, 0x79, 0x03, 0x9b, 0x9a, 0x3e, 0x08, 0xd8, 0xf4, 0xcb, 0x69, 0x96, 0xcd, 0xe4, 0xb9, 0xd8, 0x4c, 0x5d, 0x94, 0xcd, 0xdf, 0x24, 0x58, 0x9b, 0xb2, 0xd9, 0x38, 0xa0, 0x0e, 0x99, 0x73, 0x57, 0x9f, 0x06, 0x97, 0xb8, 0x68, 0x70, 0x3f, 0xc7, 0x61, 0x63, 0x26, 0xb8, 0xf9, 0xd7, 0x4a, 0xb4, 0x35, 0x26, 0xce, 0xd9, 0x1a, 0xe7, 0x54, 0x2e, 0xaf, 0x24, 0xc8, 0xed, 0x38, 0x3d, 0x4c, 0xf4, 0xc7, 0xbb, 0x9a, 0x3e, 0x20, 0x2e, 0xba, 0x01, 0xe9, 0x11, 0x5b, 0x31, 0x1e, 0x17, 0x6f, 0xae, 0x45, 0x46, 0x0e, 0x07, 0x89, 0x89, 0x23, 0x80, 0x68, 0x1d, 0x52, 0xcc, 0x3d, 0xc6, 0xdf, 0x12, 0xe6, 0xc2, 0x99, 0x08, 0x13, 0xe7, 0x8a, 0xf0, 0xc2, 0x33, 0xfd, 0xfb, 0x38, 0xc0, 0x8e, 0xd3, 0xeb, 0x98, 0x43, 0x42, 0x0f, 0xff, 0x25, 0xe1, 0x7d, 0x0a, 0xc8, 0x22, 0x4f, 0xdd, 0xae, 0x43, 0xbe, 0x38, 0x24, 0x96, 0x4e, 0xba, 0x36, 0xd1, 0x1f, 0x8b, 0x12, 0x78, 0x67, 0xec, 0xc9, 0x9b, 0xfc, 0x84, 0xb3, 0x18, 0x05, 0xe7, 0x7d, 0xe5, 0x9e, 0xd0, 0xf9, 0x69, 0xfb, 0x27, 0xab, 0xe1, 0x39, 0x7f, 0x11, 0xd6, 0xf4, 0x81, 0x45, 0x9f, 0x1c, 0x10, 0xa3, 0x47, 0x86, 0xc4, 0x3a, 0x17, 0x67, 0x15, 0x58, 0xd1, 0xa2, 0xa7, 0x08, 0xf6, 0x66, 0xd5, 0x53, 0x76, 0x13, 0x6f, 0x63, 0x77, 0x4e, 0x7f, 0x1e, 0x5f, 0xc6, 0x21, 0x23, 0x3a, 0x01, 0xaa, 0x40, 0xca, 0x71, 0x35, 0x97, 0x30, 0x12, 0x96, 0x6f, 0xa2, 0x08, 0x09, 0x7b, 0xbe, 0x05, 0x73, 0x00, 0xaa, 0xc2, 0x02, 0xb5, 0x0d, 0x62, 0x9b, 0x56, 0x8f, 0x45, 0x3d, 0x0b, 0x6e, 0xfb, 0x46, 0x3c, 0xc1, 0xa0, 0x06, 0x2c, 0x85, 0x47, 0xba, 0x78, 0xeb, 0x6d, 0x46, 0xdf, 0x7a, 0x21, 0x80, 0xe0, 0x3a, 0xb2, 0x09, 0x35, 0x60, 0x45, 0xa7, 0x96, 0x45, 0x74, 0xd7, 0xa4, 0x56, 0xb7, 0x4f, 0x47, 0x4e, 0x21, 0x59, 0x4e, 0x54, 0xb2, 0xf5, 0xe2, 0xd8, 0x93, 0x37, 0x82, 0xf7, 0x44, 0x04, 0xa0, 0xe0, 0xe5, 0xa9, 0xe6, 0x1e, 0x1d, 0x39, 0xa8, 0x00, 0x99, 0xe0, 0x31, 0xe2, 0x73, 0x97, 0xc5, 0x81, 0x78, 0x27, 0xf9, 0xec, 0x5b, 0x39, 0xa6, 0xfc, 0x11, 0x87, 0x55, 0xd5, 0x20, 0x96, 0x6b, 0x3e, 0x32, 0x89, 0xf1, 0x3f, 0x33, 0xfe, 0xcb, 0xeb, 0xdd, 0xe9, 0xe4, 0x49, 0xb3, 0xf9, 0x01, 0xd3, 0xc9, 0x33, 0x99, 0x33, 0xef, 0x47, 0xe6, 0x4c, 0x86, 0xe1, 0x72, 0x91, 0x39, 0x13, 0x1a, 0x29, 0x82, 0xec, 0xe7, 0x12, 0x2c, 0x85, 0x83, 0x9b, 0xdf, 0x8c, 0x13, 0x0e, 0xbd, 0x4a, 0x40, 0x5a, 0x4c, 0x89, 0x22, 0x2c, 0x04, 0x8d, 0x89, 0xf9, 0x92, 0xc4, 0x13, 0x19, 0x7d, 0x0c, 0x8b, 0x0e, 0x3d, 0xb4, 0x75, 0xd2, 0xf5, 0x1d, 0x10, 0x17, 0x6e, 0x8c, 0x3d, 0x19, 0xf1, 0x3b, 0x42, 0x46, 0x05, 0x03, 0x97, 0xfc, 0x20, 0xd0, 0x27, 0xb0, 0x2c, 0x6c, 0xe1, 0xff, 0x7a, 0xb2, 0xf5, 0xcd, 0xb1, 0x27, 0x5f, 0x8a, 0xec, 0x15, 0x76, 0x05, 0xe7, 0xb8, 0x22, 0xa8, 0xc4, 0xbb, 0x90, 0x37, 0x88, 0xe3, 0x9a, 0x96, 0xc6, 0x52, 0xc9, 0xee, 0xe7, 0xff, 0xf6, 0x5c, 0x19, 0x7b, 0xf2, 0x65, 0x7e, 0xc6, 0x2c, 0x42, 0xc1, 0x2b, 0x21, 0x15, 0xf3, 0xa4, 0x0d, 0x6b, 0x61, 0x54, 0xe0, 0x0e, 0xcb, 0x7c, 0xbd, 0x34, 0xf6, 0xe4, 0xe2, 0xd9, 0xa3, 0x26, 0x3e, 0xa1, 0x90, 0x36, 0x70, 0x0c, 0x41, 0xd2, 0xd0, 0x5c, 0x8d, 0xbf, 0x96, 0x31, 0x5b, 0xfb, 0xe1, 0xba, 0x7c, 0x2a, 0x05, 0x5d, 0x2e, 0xc3, 0xba, 0x5c, 0x28, 0xdc, 0xa8, 0x5d, 0xc1, 0x39, 0xa1, 0x98, 0x74, 0xba, 0xd5, 0x00, 0xe1, 0x7f, 0x1d, 0x57, 0x1b, 0x8e, 0x0a, 0x0b, 0xec, 0x90, 0xab, 0x63, 0x4f, 0x2e, 0x44, 0x0f, 0x99, 0x40, 0x14, 0x9c, 0x17, 0xba, 0x4e, 0xa0, 0x12, 0x19, 0xfe, 0x51, 0x82, 0x35, 0x9e, 0xe1, 0x9a, 0x3e, 0x68, 0xd0, 0xe1, 0xd0, 0x74, 0x59, 0x93, 0x9e, 0xdf, 0xeb, 0x2a, 0x5c, 0x68, 0x89, 0x99, 0x42, 0x43, 0x90, 0xec, 0x6b, 0x4e, 0x9f, 0xbf, 0x11, 0x30, 0x5b, 0xf3, 0x38, 0xae, 0xfd, 0x20, 0x41, 0x8a, 0x35, 0x1e, 0xf4, 0x11, 0xc8, 0x7b, 0x9d, 0x5a, 0xa7, 0xd9, 0x7d, 0xd0, 0x52, 0x5b, 0x6a, 0x47, 0xad, 0xdd, 0x57, 0x1f, 0x36, 0xb7, 0xbb, 0x0f, 0x5a, 0x7b, 0xbb, 0xcd, 0x86, 0x7a, 0x57, 0x6d, 0x6e, 0xe7, 0x63, 0xc5, 0xd5, 0xe3, 0x93, 0x72, 0x2e, 0x02, 0x40, 0x05, 0x00, 0xbe, 0xcf, 0x57, 0xe6, 0xa5, 0xe2, 0xc2, 0xf1, 0x49, 0x39, 0xe9, 0xaf, 0x51, 0x09, 0x72, 0xdc, 0xd2, 0xc1, 0x9f, 0xb7, 0x77, 0x9b, 0xad, 0x7c, 0xbc, 0xb8, 0x78, 0x7c, 0x52, 0xce, 0x08, 0x71, 0xba, 0x93, 0x19, 0x13, 0x7c, 0x27, 0xb3, 0x5c, 0x85, 0x25, 0x6e, 0x69, 0xdc, 0x6f, 0xef, 0x35, 0xb7, 0xf3, 0xc9, 0x22, 0x1c, 0x9f, 0x94, 0xd3, 0x5c, 0x2a, 0x26, 0x9f, 0x7d, 0x57, 0x8a, 0x5d, 0x7b, 0x02, 0x29, 0xd6, 0x04, 0xd1, 0x7b, 0xb0, 0xd1, 0xc6, 0xdb, 0x4d, 0xdc, 0x6d, 0xb5, 0x5b, 0xcd, 0x19, 0x7f, 0xd9, 0x91, 0xbe, 0x1e, 0x29, 0xb0, 0xc2, 0x51, 0x0f, 0x5a, 0xec, 0xdb, 0xdc, 0xce, 0x4b, 0xc5, 0xdc, 0xf1, 0x49, 0x39, 0x3b, 0x51, 0xf8, 0x0e, 0x73, 0x4c, 0x80, 0x10, 0x0e, 0x0b, 0x91, 0x5f, 0x5c, 0xdf, 0x79, 0x71, 0x5a, 0x92, 0x5e, 0x9e, 0x96, 0xa4, 0xdf, 0x4f, 0x4b, 0xd2, 0xd7, 0xaf, 0x4b, 0xb1, 0x97, 0xaf, 0x4b, 0xb1, 0x5f, 0x5f, 0x97, 0x62, 0x0f, 0x6f, 0xbd, 0x75, 0x76, 0x3e, 0xdd, 0x32, 0xf7, 0xf5, 0xad, 0x0f, 0x6e, 0x5f, 0x0f, 0x7e, 0x87, 0x62, 0xc3, 0x74, 0x3f, 0xcd, 0x7e, 0x63, 0xba, 0xf5, 0x57, 0x00, 0x00, 0x00, 0xff, 0xff, 0x5e, 0xbb, 0x3c, 0x45, 0xa3, 0x12, 0x00, 0x00, } func (m *MsgChannelOpenInit) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *MsgChannelOpenInit) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *MsgChannelOpenInit) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l if len(m.Signer) > 0 { i -= len(m.Signer) copy(dAtA[i:], m.Signer) i = encodeVarintChannel(dAtA, i, uint64(len(m.Signer))) i-- dAtA[i] = 0x22 } { size, err := m.Channel.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintChannel(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x1a if len(m.ChannelID) > 0 { i -= len(m.ChannelID) copy(dAtA[i:], m.ChannelID) i = encodeVarintChannel(dAtA, i, uint64(len(m.ChannelID))) i-- dAtA[i] = 0x12 } if len(m.PortID) > 0 { i -= len(m.PortID) copy(dAtA[i:], m.PortID) i = encodeVarintChannel(dAtA, i, uint64(len(m.PortID))) i-- dAtA[i] = 0xa } return len(dAtA) - i, nil } func (m *MsgChannelOpenTry) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *MsgChannelOpenTry) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *MsgChannelOpenTry) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l if len(m.Signer) > 0 { i -= len(m.Signer) copy(dAtA[i:], m.Signer) i = encodeVarintChannel(dAtA, i, uint64(len(m.Signer))) i-- dAtA[i] = 0x3a } if m.ProofHeight != 0 { i = encodeVarintChannel(dAtA, i, uint64(m.ProofHeight)) i-- dAtA[i] = 0x30 } if len(m.ProofInit) > 0 { i -= len(m.ProofInit) copy(dAtA[i:], m.ProofInit) i = encodeVarintChannel(dAtA, i, uint64(len(m.ProofInit))) i-- dAtA[i] = 0x2a } if len(m.CounterpartyVersion) > 0 { i -= len(m.CounterpartyVersion) copy(dAtA[i:], m.CounterpartyVersion) i = encodeVarintChannel(dAtA, i, uint64(len(m.CounterpartyVersion))) i-- dAtA[i] = 0x22 } { size, err := m.Channel.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintChannel(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x1a if len(m.ChannelID) > 0 { i -= len(m.ChannelID) copy(dAtA[i:], m.ChannelID) i = encodeVarintChannel(dAtA, i, uint64(len(m.ChannelID))) i-- dAtA[i] = 0x12 } if len(m.PortID) > 0 { i -= len(m.PortID) copy(dAtA[i:], m.PortID) i = encodeVarintChannel(dAtA, i, uint64(len(m.PortID))) i-- dAtA[i] = 0xa } return len(dAtA) - i, nil } func (m *MsgChannelOpenAck) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *MsgChannelOpenAck) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *MsgChannelOpenAck) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l if len(m.Signer) > 0 { i -= len(m.Signer) copy(dAtA[i:], m.Signer) i = encodeVarintChannel(dAtA, i, uint64(len(m.Signer))) i-- dAtA[i] = 0x32 } if m.ProofHeight != 0 { i = encodeVarintChannel(dAtA, i, uint64(m.ProofHeight)) i-- dAtA[i] = 0x28 } if len(m.ProofTry) > 0 { i -= len(m.ProofTry) copy(dAtA[i:], m.ProofTry) i = encodeVarintChannel(dAtA, i, uint64(len(m.ProofTry))) i-- dAtA[i] = 0x22 } if len(m.CounterpartyVersion) > 0 { i -= len(m.CounterpartyVersion) copy(dAtA[i:], m.CounterpartyVersion) i = encodeVarintChannel(dAtA, i, uint64(len(m.CounterpartyVersion))) i-- dAtA[i] = 0x1a } if len(m.ChannelID) > 0 { i -= len(m.ChannelID) copy(dAtA[i:], m.ChannelID) i = encodeVarintChannel(dAtA, i, uint64(len(m.ChannelID))) i-- dAtA[i] = 0x12 } if len(m.PortID) > 0 { i -= len(m.PortID) copy(dAtA[i:], m.PortID) i = encodeVarintChannel(dAtA, i, uint64(len(m.PortID))) i-- dAtA[i] = 0xa } return len(dAtA) - i, nil } func (m *MsgChannelOpenConfirm) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *MsgChannelOpenConfirm) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *MsgChannelOpenConfirm) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l if len(m.Signer) > 0 { i -= len(m.Signer) copy(dAtA[i:], m.Signer) i = encodeVarintChannel(dAtA, i, uint64(len(m.Signer))) i-- dAtA[i] = 0x2a } if m.ProofHeight != 0 { i = encodeVarintChannel(dAtA, i, uint64(m.ProofHeight)) i-- dAtA[i] = 0x20 } if len(m.ProofAck) > 0 { i -= len(m.ProofAck) copy(dAtA[i:], m.ProofAck) i = encodeVarintChannel(dAtA, i, uint64(len(m.ProofAck))) i-- dAtA[i] = 0x1a } if len(m.ChannelID) > 0 { i -= len(m.ChannelID) copy(dAtA[i:], m.ChannelID) i = encodeVarintChannel(dAtA, i, uint64(len(m.ChannelID))) i-- dAtA[i] = 0x12 } if len(m.PortID) > 0 { i -= len(m.PortID) copy(dAtA[i:], m.PortID) i = encodeVarintChannel(dAtA, i, uint64(len(m.PortID))) i-- dAtA[i] = 0xa } return len(dAtA) - i, nil } func (m *MsgChannelCloseInit) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *MsgChannelCloseInit) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *MsgChannelCloseInit) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l if len(m.Signer) > 0 { i -= len(m.Signer) copy(dAtA[i:], m.Signer) i = encodeVarintChannel(dAtA, i, uint64(len(m.Signer))) i-- dAtA[i] = 0x1a } if len(m.ChannelID) > 0 { i -= len(m.ChannelID) copy(dAtA[i:], m.ChannelID) i = encodeVarintChannel(dAtA, i, uint64(len(m.ChannelID))) i-- dAtA[i] = 0x12 } if len(m.PortID) > 0 { i -= len(m.PortID) copy(dAtA[i:], m.PortID) i = encodeVarintChannel(dAtA, i, uint64(len(m.PortID))) i-- dAtA[i] = 0xa } return len(dAtA) - i, nil } func (m *MsgChannelCloseConfirm) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *MsgChannelCloseConfirm) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *MsgChannelCloseConfirm) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l if len(m.Signer) > 0 { i -= len(m.Signer) copy(dAtA[i:], m.Signer) i = encodeVarintChannel(dAtA, i, uint64(len(m.Signer))) i-- dAtA[i] = 0x2a } if m.ProofHeight != 0 { i = encodeVarintChannel(dAtA, i, uint64(m.ProofHeight)) i-- dAtA[i] = 0x20 } if len(m.ProofInit) > 0 { i -= len(m.ProofInit) copy(dAtA[i:], m.ProofInit) i = encodeVarintChannel(dAtA, i, uint64(len(m.ProofInit))) i-- dAtA[i] = 0x1a } if len(m.ChannelID) > 0 { i -= len(m.ChannelID) copy(dAtA[i:], m.ChannelID) i = encodeVarintChannel(dAtA, i, uint64(len(m.ChannelID))) i-- dAtA[i] = 0x12 } if len(m.PortID) > 0 { i -= len(m.PortID) copy(dAtA[i:], m.PortID) i = encodeVarintChannel(dAtA, i, uint64(len(m.PortID))) i-- dAtA[i] = 0xa } return len(dAtA) - i, nil } func (m *MsgRecvPacket) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *MsgRecvPacket) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *MsgRecvPacket) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l if len(m.Signer) > 0 { i -= len(m.Signer) copy(dAtA[i:], m.Signer) i = encodeVarintChannel(dAtA, i, uint64(len(m.Signer))) i-- dAtA[i] = 0x22 } if m.ProofHeight != 0 { i = encodeVarintChannel(dAtA, i, uint64(m.ProofHeight)) i-- dAtA[i] = 0x18 } if len(m.Proof) > 0 { i -= len(m.Proof) copy(dAtA[i:], m.Proof) i = encodeVarintChannel(dAtA, i, uint64(len(m.Proof))) i-- dAtA[i] = 0x12 } { size, err := m.Packet.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintChannel(dAtA, i, uint64(size)) } i-- dAtA[i] = 0xa return len(dAtA) - i, nil } func (m *MsgTimeout) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *MsgTimeout) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *MsgTimeout) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l if len(m.Signer) > 0 { i -= len(m.Signer) copy(dAtA[i:], m.Signer) i = encodeVarintChannel(dAtA, i, uint64(len(m.Signer))) i-- dAtA[i] = 0x2a } if m.NextSequenceRecv != 0 { i = encodeVarintChannel(dAtA, i, uint64(m.NextSequenceRecv)) i-- dAtA[i] = 0x20 } if m.ProofHeight != 0 { i = encodeVarintChannel(dAtA, i, uint64(m.ProofHeight)) i-- dAtA[i] = 0x18 } if len(m.Proof) > 0 { i -= len(m.Proof) copy(dAtA[i:], m.Proof) i = encodeVarintChannel(dAtA, i, uint64(len(m.Proof))) i-- dAtA[i] = 0x12 } { size, err := m.Packet.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintChannel(dAtA, i, uint64(size)) } i-- dAtA[i] = 0xa return len(dAtA) - i, nil } func (m *MsgAcknowledgement) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *MsgAcknowledgement) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *MsgAcknowledgement) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l if len(m.Signer) > 0 { i -= len(m.Signer) copy(dAtA[i:], m.Signer) i = encodeVarintChannel(dAtA, i, uint64(len(m.Signer))) i-- dAtA[i] = 0x2a } if m.ProofHeight != 0 { i = encodeVarintChannel(dAtA, i, uint64(m.ProofHeight)) i-- dAtA[i] = 0x20 } if len(m.Proof) > 0 { i -= len(m.Proof) copy(dAtA[i:], m.Proof) i = encodeVarintChannel(dAtA, i, uint64(len(m.Proof))) i-- dAtA[i] = 0x1a } if len(m.Acknowledgement) > 0 { i -= len(m.Acknowledgement) copy(dAtA[i:], m.Acknowledgement) i = encodeVarintChannel(dAtA, i, uint64(len(m.Acknowledgement))) i-- dAtA[i] = 0x12 } { size, err := m.Packet.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintChannel(dAtA, i, uint64(size)) } i-- dAtA[i] = 0xa return len(dAtA) - i, nil } func (m *Channel) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *Channel) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *Channel) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l if len(m.Version) > 0 { i -= len(m.Version) copy(dAtA[i:], m.Version) i = encodeVarintChannel(dAtA, i, uint64(len(m.Version))) i-- dAtA[i] = 0x2a } if len(m.ConnectionHops) > 0 { for iNdEx := len(m.ConnectionHops) - 1; iNdEx >= 0; iNdEx-- { i -= len(m.ConnectionHops[iNdEx]) copy(dAtA[i:], m.ConnectionHops[iNdEx]) i = encodeVarintChannel(dAtA, i, uint64(len(m.ConnectionHops[iNdEx]))) i-- dAtA[i] = 0x22 } } { size, err := m.Counterparty.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintChannel(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x1a if m.Ordering != 0 { i = encodeVarintChannel(dAtA, i, uint64(m.Ordering)) i-- dAtA[i] = 0x10 } if m.State != 0 { i = encodeVarintChannel(dAtA, i, uint64(m.State)) i-- dAtA[i] = 0x8 } return len(dAtA) - i, nil } func (m *IdentifiedChannel) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *IdentifiedChannel) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *IdentifiedChannel) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l if len(m.ChannelID) > 0 { i -= len(m.ChannelID) copy(dAtA[i:], m.ChannelID) i = encodeVarintChannel(dAtA, i, uint64(len(m.ChannelID))) i-- dAtA[i] = 0x3a } if len(m.PortID) > 0 { i -= len(m.PortID) copy(dAtA[i:], m.PortID) i = encodeVarintChannel(dAtA, i, uint64(len(m.PortID))) i-- dAtA[i] = 0x32 } if len(m.Version) > 0 { i -= len(m.Version) copy(dAtA[i:], m.Version) i = encodeVarintChannel(dAtA, i, uint64(len(m.Version))) i-- dAtA[i] = 0x2a } if len(m.ConnectionHops) > 0 { for iNdEx := len(m.ConnectionHops) - 1; iNdEx >= 0; iNdEx-- { i -= len(m.ConnectionHops[iNdEx]) copy(dAtA[i:], m.ConnectionHops[iNdEx]) i = encodeVarintChannel(dAtA, i, uint64(len(m.ConnectionHops[iNdEx]))) i-- dAtA[i] = 0x22 } } { size, err := m.Counterparty.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintChannel(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x1a if m.Ordering != 0 { i = encodeVarintChannel(dAtA, i, uint64(m.Ordering)) i-- dAtA[i] = 0x10 } if m.State != 0 { i = encodeVarintChannel(dAtA, i, uint64(m.State)) i-- dAtA[i] = 0x8 } return len(dAtA) - i, nil } func (m *Counterparty) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *Counterparty) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *Counterparty) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l if len(m.ChannelID) > 0 { i -= len(m.ChannelID) copy(dAtA[i:], m.ChannelID) i = encodeVarintChannel(dAtA, i, uint64(len(m.ChannelID))) i-- dAtA[i] = 0x12 } if len(m.PortID) > 0 { i -= len(m.PortID) copy(dAtA[i:], m.PortID) i = encodeVarintChannel(dAtA, i, uint64(len(m.PortID))) i-- dAtA[i] = 0xa } return len(dAtA) - i, nil } func (m *Packet) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *Packet) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *Packet) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l if m.TimeoutTimestamp != 0 { i = encodeVarintChannel(dAtA, i, uint64(m.TimeoutTimestamp)) i-- dAtA[i] = 0x40 } if m.TimeoutHeight != 0 { i = encodeVarintChannel(dAtA, i, uint64(m.TimeoutHeight)) i-- dAtA[i] = 0x38 } if len(m.Data) > 0 { i -= len(m.Data) copy(dAtA[i:], m.Data) i = encodeVarintChannel(dAtA, i, uint64(len(m.Data))) i-- dAtA[i] = 0x32 } if len(m.DestinationChannel) > 0 { i -= len(m.DestinationChannel) copy(dAtA[i:], m.DestinationChannel) i = encodeVarintChannel(dAtA, i, uint64(len(m.DestinationChannel))) i-- dAtA[i] = 0x2a } if len(m.DestinationPort) > 0 { i -= len(m.DestinationPort) copy(dAtA[i:], m.DestinationPort) i = encodeVarintChannel(dAtA, i, uint64(len(m.DestinationPort))) i-- dAtA[i] = 0x22 } if len(m.SourceChannel) > 0 { i -= len(m.SourceChannel) copy(dAtA[i:], m.SourceChannel) i = encodeVarintChannel(dAtA, i, uint64(len(m.SourceChannel))) i-- dAtA[i] = 0x1a } if len(m.SourcePort) > 0 { i -= len(m.SourcePort) copy(dAtA[i:], m.SourcePort) i = encodeVarintChannel(dAtA, i, uint64(len(m.SourcePort))) i-- dAtA[i] = 0x12 } if m.Sequence != 0 { i = encodeVarintChannel(dAtA, i, uint64(m.Sequence)) i-- dAtA[i] = 0x8 } return len(dAtA) - i, nil } func (m *PacketAckCommitment) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *PacketAckCommitment) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *PacketAckCommitment) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l if len(m.Hash) > 0 { i -= len(m.Hash) copy(dAtA[i:], m.Hash) i = encodeVarintChannel(dAtA, i, uint64(len(m.Hash))) i-- dAtA[i] = 0x22 } if m.Sequence != 0 { i = encodeVarintChannel(dAtA, i, uint64(m.Sequence)) i-- dAtA[i] = 0x18 } if len(m.ChannelID) > 0 { i -= len(m.ChannelID) copy(dAtA[i:], m.ChannelID) i = encodeVarintChannel(dAtA, i, uint64(len(m.ChannelID))) i-- dAtA[i] = 0x12 } if len(m.PortID) > 0 { i -= len(m.PortID) copy(dAtA[i:], m.PortID) i = encodeVarintChannel(dAtA, i, uint64(len(m.PortID))) i-- dAtA[i] = 0xa } return len(dAtA) - i, nil } func encodeVarintChannel(dAtA []byte, offset int, v uint64) int { offset -= sovChannel(v) base := offset for v >= 1<<7 { dAtA[offset] = uint8(v&0x7f | 0x80) v >>= 7 offset++ } dAtA[offset] = uint8(v) return base } func (m *MsgChannelOpenInit) Size() (n int) { if m == nil { return 0 } var l int _ = l l = len(m.PortID) if l > 0 { n += 1 + l + sovChannel(uint64(l)) } l = len(m.ChannelID) if l > 0 { n += 1 + l + sovChannel(uint64(l)) } l = m.Channel.Size() n += 1 + l + sovChannel(uint64(l)) l = len(m.Signer) if l > 0 { n += 1 + l + sovChannel(uint64(l)) } return n } func (m *MsgChannelOpenTry) Size() (n int) { if m == nil { return 0 } var l int _ = l l = len(m.PortID) if l > 0 { n += 1 + l + sovChannel(uint64(l)) } l = len(m.ChannelID) if l > 0 { n += 1 + l + sovChannel(uint64(l)) } l = m.Channel.Size() n += 1 + l + sovChannel(uint64(l)) l = len(m.CounterpartyVersion) if l > 0 { n += 1 + l + sovChannel(uint64(l)) } l = len(m.ProofInit) if l > 0 { n += 1 + l + sovChannel(uint64(l)) } if m.ProofHeight != 0 { n += 1 + sovChannel(uint64(m.ProofHeight)) } l = len(m.Signer) if l > 0 { n += 1 + l + sovChannel(uint64(l)) } return n } func (m *MsgChannelOpenAck) Size() (n int) { if m == nil { return 0 } var l int _ = l l = len(m.PortID) if l > 0 { n += 1 + l + sovChannel(uint64(l)) } l = len(m.ChannelID) if l > 0 { n += 1 + l + sovChannel(uint64(l)) } l = len(m.CounterpartyVersion) if l > 0 { n += 1 + l + sovChannel(uint64(l)) } l = len(m.ProofTry) if l > 0 { n += 1 + l + sovChannel(uint64(l)) } if m.ProofHeight != 0 { n += 1 + sovChannel(uint64(m.ProofHeight)) } l = len(m.Signer) if l > 0 { n += 1 + l + sovChannel(uint64(l)) } return n } func (m *MsgChannelOpenConfirm) Size() (n int) { if m == nil { return 0 } var l int _ = l l = len(m.PortID) if l > 0 { n += 1 + l + sovChannel(uint64(l)) } l = len(m.ChannelID) if l > 0 { n += 1 + l + sovChannel(uint64(l)) } l = len(m.ProofAck) if l > 0 { n += 1 + l + sovChannel(uint64(l)) } if m.ProofHeight != 0 { n += 1 + sovChannel(uint64(m.ProofHeight)) } l = len(m.Signer) if l > 0 { n += 1 + l + sovChannel(uint64(l)) } return n } func (m *MsgChannelCloseInit) Size() (n int) { if m == nil { return 0 } var l int _ = l l = len(m.PortID) if l > 0 { n += 1 + l + sovChannel(uint64(l)) } l = len(m.ChannelID) if l > 0 { n += 1 + l + sovChannel(uint64(l)) } l = len(m.Signer) if l > 0 { n += 1 + l + sovChannel(uint64(l)) } return n } func (m *MsgChannelCloseConfirm) Size() (n int) { if m == nil { return 0 } var l int _ = l l = len(m.PortID) if l > 0 { n += 1 + l + sovChannel(uint64(l)) } l = len(m.ChannelID) if l > 0 { n += 1 + l + sovChannel(uint64(l)) } l = len(m.ProofInit) if l > 0 { n += 1 + l + sovChannel(uint64(l)) } if m.ProofHeight != 0 { n += 1 + sovChannel(uint64(m.ProofHeight)) } l = len(m.Signer) if l > 0 { n += 1 + l + sovChannel(uint64(l)) } return n } func (m *MsgRecvPacket) Size() (n int) { if m == nil { return 0 } var l int _ = l l = m.Packet.Size() n += 1 + l + sovChannel(uint64(l)) l = len(m.Proof) if l > 0 { n += 1 + l + sovChannel(uint64(l)) } if m.ProofHeight != 0 { n += 1 + sovChannel(uint64(m.ProofHeight)) } l = len(m.Signer) if l > 0 { n += 1 + l + sovChannel(uint64(l)) } return n } func (m *MsgTimeout) Size() (n int) { if m == nil { return 0 } var l int _ = l l = m.Packet.Size() n += 1 + l + sovChannel(uint64(l)) l = len(m.Proof) if l > 0 { n += 1 + l + sovChannel(uint64(l)) } if m.ProofHeight != 0 { n += 1 + sovChannel(uint64(m.ProofHeight)) } if m.NextSequenceRecv != 0 { n += 1 + sovChannel(uint64(m.NextSequenceRecv)) } l = len(m.Signer) if l > 0 { n += 1 + l + sovChannel(uint64(l)) } return n } func (m *MsgAcknowledgement) Size() (n int) { if m == nil { return 0 } var l int _ = l l = m.Packet.Size() n += 1 + l + sovChannel(uint64(l)) l = len(m.Acknowledgement) if l > 0 { n += 1 + l + sovChannel(uint64(l)) } l = len(m.Proof) if l > 0 { n += 1 + l + sovChannel(uint64(l)) } if m.ProofHeight != 0 { n += 1 + sovChannel(uint64(m.ProofHeight)) } l = len(m.Signer) if l > 0 { n += 1 + l + sovChannel(uint64(l)) } return n } func (m *Channel) Size() (n int) { if m == nil { return 0 } var l int _ = l if m.State != 0 { n += 1 + sovChannel(uint64(m.State)) } if m.Ordering != 0 { n += 1 + sovChannel(uint64(m.Ordering)) } l = m.Counterparty.Size() n += 1 + l + sovChannel(uint64(l)) if len(m.ConnectionHops) > 0 { for _, s := range m.ConnectionHops { l = len(s) n += 1 + l + sovChannel(uint64(l)) } } l = len(m.Version) if l > 0 { n += 1 + l + sovChannel(uint64(l)) } return n } func (m *IdentifiedChannel) Size() (n int) { if m == nil { return 0 } var l int _ = l if m.State != 0 { n += 1 + sovChannel(uint64(m.State)) } if m.Ordering != 0 { n += 1 + sovChannel(uint64(m.Ordering)) } l = m.Counterparty.Size() n += 1 + l + sovChannel(uint64(l)) if len(m.ConnectionHops) > 0 { for _, s := range m.ConnectionHops { l = len(s) n += 1 + l + sovChannel(uint64(l)) } } l = len(m.Version) if l > 0 { n += 1 + l + sovChannel(uint64(l)) } l = len(m.PortID) if l > 0 { n += 1 + l + sovChannel(uint64(l)) } l = len(m.ChannelID) if l > 0 { n += 1 + l + sovChannel(uint64(l)) } return n } func (m *Counterparty) Size() (n int) { if m == nil { return 0 } var l int _ = l l = len(m.PortID) if l > 0 { n += 1 + l + sovChannel(uint64(l)) } l = len(m.ChannelID) if l > 0 { n += 1 + l + sovChannel(uint64(l)) } return n } func (m *Packet) Size() (n int) { if m == nil { return 0 } var l int _ = l if m.Sequence != 0 { n += 1 + sovChannel(uint64(m.Sequence)) } l = len(m.SourcePort) if l > 0 { n += 1 + l + sovChannel(uint64(l)) } l = len(m.SourceChannel) if l > 0 { n += 1 + l + sovChannel(uint64(l)) } l = len(m.DestinationPort) if l > 0 { n += 1 + l + sovChannel(uint64(l)) } l = len(m.DestinationChannel) if l > 0 { n += 1 + l + sovChannel(uint64(l)) } l = len(m.Data) if l > 0 { n += 1 + l + sovChannel(uint64(l)) } if m.TimeoutHeight != 0 { n += 1 + sovChannel(uint64(m.TimeoutHeight)) } if m.TimeoutTimestamp != 0 { n += 1 + sovChannel(uint64(m.TimeoutTimestamp)) } return n } func (m *PacketAckCommitment) Size() (n int) { if m == nil { return 0 } var l int _ = l l = len(m.PortID) if l > 0 { n += 1 + l + sovChannel(uint64(l)) } l = len(m.ChannelID) if l > 0 { n += 1 + l + sovChannel(uint64(l)) } if m.Sequence != 0 { n += 1 + sovChannel(uint64(m.Sequence)) } l = len(m.Hash) if l > 0 { n += 1 + l + sovChannel(uint64(l)) } return n } func sovChannel(x uint64) (n int) { return (math_bits.Len64(x|1) + 6) / 7 } func sozChannel(x uint64) (n int) { return sovChannel(uint64((x << 1) ^ uint64((int64(x) >> 63)))) } func (m *MsgChannelOpenInit) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowChannel } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: MsgChannelOpenInit: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: MsgChannelOpenInit: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field PortID", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowChannel } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } intStringLen := int(stringLen) if intStringLen < 0 { return ErrInvalidLengthChannel } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthChannel } if postIndex > l { return io.ErrUnexpectedEOF } m.PortID = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field ChannelID", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowChannel } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } intStringLen := int(stringLen) if intStringLen < 0 { return ErrInvalidLengthChannel } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthChannel } if postIndex > l { return io.ErrUnexpectedEOF } m.ChannelID = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 3: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Channel", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowChannel } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthChannel } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthChannel } if postIndex > l { return io.ErrUnexpectedEOF } if err := m.Channel.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 4: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Signer", wireType) } var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowChannel } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ byteLen |= int(b&0x7F) << shift if b < 0x80 { break } } if byteLen < 0 { return ErrInvalidLengthChannel } postIndex := iNdEx + byteLen if postIndex < 0 { return ErrInvalidLengthChannel } if postIndex > l { return io.ErrUnexpectedEOF } m.Signer = append(m.Signer[:0], dAtA[iNdEx:postIndex]...) if m.Signer == nil { m.Signer = []byte{} } iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipChannel(dAtA[iNdEx:]) if err != nil { return err } if skippy < 0 { return ErrInvalidLengthChannel } if (iNdEx + skippy) < 0 { return ErrInvalidLengthChannel } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *MsgChannelOpenTry) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowChannel } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: MsgChannelOpenTry: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: MsgChannelOpenTry: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field PortID", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowChannel } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } intStringLen := int(stringLen) if intStringLen < 0 { return ErrInvalidLengthChannel } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthChannel } if postIndex > l { return io.ErrUnexpectedEOF } m.PortID = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field ChannelID", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowChannel } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } intStringLen := int(stringLen) if intStringLen < 0 { return ErrInvalidLengthChannel } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthChannel } if postIndex > l { return io.ErrUnexpectedEOF } m.ChannelID = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 3: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Channel", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowChannel } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthChannel } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthChannel } if postIndex > l { return io.ErrUnexpectedEOF } if err := m.Channel.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 4: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field CounterpartyVersion", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowChannel } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } intStringLen := int(stringLen) if intStringLen < 0 { return ErrInvalidLengthChannel } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthChannel } if postIndex > l { return io.ErrUnexpectedEOF } m.CounterpartyVersion = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 5: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field ProofInit", wireType) } var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowChannel } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ byteLen |= int(b&0x7F) << shift if b < 0x80 { break } } if byteLen < 0 { return ErrInvalidLengthChannel } postIndex := iNdEx + byteLen if postIndex < 0 { return ErrInvalidLengthChannel } if postIndex > l { return io.ErrUnexpectedEOF } m.ProofInit = append(m.ProofInit[:0], dAtA[iNdEx:postIndex]...) if m.ProofInit == nil { m.ProofInit = []byte{} } iNdEx = postIndex case 6: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field ProofHeight", wireType) } m.ProofHeight = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowChannel } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ m.ProofHeight |= uint64(b&0x7F) << shift if b < 0x80 { break } } case 7: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Signer", wireType) } var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowChannel } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ byteLen |= int(b&0x7F) << shift if b < 0x80 { break } } if byteLen < 0 { return ErrInvalidLengthChannel } postIndex := iNdEx + byteLen if postIndex < 0 { return ErrInvalidLengthChannel } if postIndex > l { return io.ErrUnexpectedEOF } m.Signer = append(m.Signer[:0], dAtA[iNdEx:postIndex]...) if m.Signer == nil { m.Signer = []byte{} } iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipChannel(dAtA[iNdEx:]) if err != nil { return err } if skippy < 0 { return ErrInvalidLengthChannel } if (iNdEx + skippy) < 0 { return ErrInvalidLengthChannel } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *MsgChannelOpenAck) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowChannel } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: MsgChannelOpenAck: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: MsgChannelOpenAck: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field PortID", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowChannel } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } intStringLen := int(stringLen) if intStringLen < 0 { return ErrInvalidLengthChannel } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthChannel } if postIndex > l { return io.ErrUnexpectedEOF } m.PortID = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field ChannelID", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowChannel } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } intStringLen := int(stringLen) if intStringLen < 0 { return ErrInvalidLengthChannel } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthChannel } if postIndex > l { return io.ErrUnexpectedEOF } m.ChannelID = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 3: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field CounterpartyVersion", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowChannel } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } intStringLen := int(stringLen) if intStringLen < 0 { return ErrInvalidLengthChannel } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthChannel } if postIndex > l { return io.ErrUnexpectedEOF } m.CounterpartyVersion = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 4: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field ProofTry", wireType) } var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowChannel } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ byteLen |= int(b&0x7F) << shift if b < 0x80 { break } } if byteLen < 0 { return ErrInvalidLengthChannel } postIndex := iNdEx + byteLen if postIndex < 0 { return ErrInvalidLengthChannel } if postIndex > l { return io.ErrUnexpectedEOF } m.ProofTry = append(m.ProofTry[:0], dAtA[iNdEx:postIndex]...) if m.ProofTry == nil { m.ProofTry = []byte{} } iNdEx = postIndex case 5: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field ProofHeight", wireType) } m.ProofHeight = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowChannel } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ m.ProofHeight |= uint64(b&0x7F) << shift if b < 0x80 { break } } case 6: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Signer", wireType) } var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowChannel } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ byteLen |= int(b&0x7F) << shift if b < 0x80 { break } } if byteLen < 0 { return ErrInvalidLengthChannel } postIndex := iNdEx + byteLen if postIndex < 0 { return ErrInvalidLengthChannel } if postIndex > l { return io.ErrUnexpectedEOF } m.Signer = append(m.Signer[:0], dAtA[iNdEx:postIndex]...) if m.Signer == nil { m.Signer = []byte{} } iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipChannel(dAtA[iNdEx:]) if err != nil { return err } if skippy < 0 { return ErrInvalidLengthChannel } if (iNdEx + skippy) < 0 { return ErrInvalidLengthChannel } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *MsgChannelOpenConfirm) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowChannel } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: MsgChannelOpenConfirm: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: MsgChannelOpenConfirm: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field PortID", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowChannel } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } intStringLen := int(stringLen) if intStringLen < 0 { return ErrInvalidLengthChannel } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthChannel } if postIndex > l { return io.ErrUnexpectedEOF } m.PortID = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field ChannelID", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowChannel } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } intStringLen := int(stringLen) if intStringLen < 0 { return ErrInvalidLengthChannel } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthChannel } if postIndex > l { return io.ErrUnexpectedEOF } m.ChannelID = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 3: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field ProofAck", wireType) } var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowChannel } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ byteLen |= int(b&0x7F) << shift if b < 0x80 { break } } if byteLen < 0 { return ErrInvalidLengthChannel } postIndex := iNdEx + byteLen if postIndex < 0 { return ErrInvalidLengthChannel } if postIndex > l { return io.ErrUnexpectedEOF } m.ProofAck = append(m.ProofAck[:0], dAtA[iNdEx:postIndex]...) if m.ProofAck == nil { m.ProofAck = []byte{} } iNdEx = postIndex case 4: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field ProofHeight", wireType) } m.ProofHeight = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowChannel } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ m.ProofHeight |= uint64(b&0x7F) << shift if b < 0x80 { break } } case 5: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Signer", wireType) } var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowChannel } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ byteLen |= int(b&0x7F) << shift if b < 0x80 { break } } if byteLen < 0 { return ErrInvalidLengthChannel } postIndex := iNdEx + byteLen if postIndex < 0 { return ErrInvalidLengthChannel } if postIndex > l { return io.ErrUnexpectedEOF } m.Signer = append(m.Signer[:0], dAtA[iNdEx:postIndex]...) if m.Signer == nil { m.Signer = []byte{} } iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipChannel(dAtA[iNdEx:]) if err != nil { return err } if skippy < 0 { return ErrInvalidLengthChannel } if (iNdEx + skippy) < 0 { return ErrInvalidLengthChannel } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *MsgChannelCloseInit) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowChannel } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: MsgChannelCloseInit: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: MsgChannelCloseInit: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field PortID", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowChannel } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } intStringLen := int(stringLen) if intStringLen < 0 { return ErrInvalidLengthChannel } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthChannel } if postIndex > l { return io.ErrUnexpectedEOF } m.PortID = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field ChannelID", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowChannel } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } intStringLen := int(stringLen) if intStringLen < 0 { return ErrInvalidLengthChannel } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthChannel } if postIndex > l { return io.ErrUnexpectedEOF } m.ChannelID = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 3: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Signer", wireType) } var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowChannel } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ byteLen |= int(b&0x7F) << shift if b < 0x80 { break } } if byteLen < 0 { return ErrInvalidLengthChannel } postIndex := iNdEx + byteLen if postIndex < 0 { return ErrInvalidLengthChannel } if postIndex > l { return io.ErrUnexpectedEOF } m.Signer = append(m.Signer[:0], dAtA[iNdEx:postIndex]...) if m.Signer == nil { m.Signer = []byte{} } iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipChannel(dAtA[iNdEx:]) if err != nil { return err } if skippy < 0 { return ErrInvalidLengthChannel } if (iNdEx + skippy) < 0 { return ErrInvalidLengthChannel } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *MsgChannelCloseConfirm) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowChannel } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: MsgChannelCloseConfirm: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: MsgChannelCloseConfirm: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field PortID", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowChannel } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } intStringLen := int(stringLen) if intStringLen < 0 { return ErrInvalidLengthChannel } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthChannel } if postIndex > l { return io.ErrUnexpectedEOF } m.PortID = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field ChannelID", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowChannel } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } intStringLen := int(stringLen) if intStringLen < 0 { return ErrInvalidLengthChannel } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthChannel } if postIndex > l { return io.ErrUnexpectedEOF } m.ChannelID = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 3: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field ProofInit", wireType) } var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowChannel } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ byteLen |= int(b&0x7F) << shift if b < 0x80 { break } } if byteLen < 0 { return ErrInvalidLengthChannel } postIndex := iNdEx + byteLen if postIndex < 0 { return ErrInvalidLengthChannel } if postIndex > l { return io.ErrUnexpectedEOF } m.ProofInit = append(m.ProofInit[:0], dAtA[iNdEx:postIndex]...) if m.ProofInit == nil { m.ProofInit = []byte{} } iNdEx = postIndex case 4: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field ProofHeight", wireType) } m.ProofHeight = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowChannel } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ m.ProofHeight |= uint64(b&0x7F) << shift if b < 0x80 { break } } case 5: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Signer", wireType) } var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowChannel } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ byteLen |= int(b&0x7F) << shift if b < 0x80 { break } } if byteLen < 0 { return ErrInvalidLengthChannel } postIndex := iNdEx + byteLen if postIndex < 0 { return ErrInvalidLengthChannel } if postIndex > l { return io.ErrUnexpectedEOF } m.Signer = append(m.Signer[:0], dAtA[iNdEx:postIndex]...) if m.Signer == nil { m.Signer = []byte{} } iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipChannel(dAtA[iNdEx:]) if err != nil { return err } if skippy < 0 { return ErrInvalidLengthChannel } if (iNdEx + skippy) < 0 { return ErrInvalidLengthChannel } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *MsgRecvPacket) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowChannel } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: MsgRecvPacket: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: MsgRecvPacket: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Packet", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowChannel } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthChannel } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthChannel } if postIndex > l { return io.ErrUnexpectedEOF } if err := m.Packet.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 2: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Proof", wireType) } var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowChannel } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ byteLen |= int(b&0x7F) << shift if b < 0x80 { break } } if byteLen < 0 { return ErrInvalidLengthChannel } postIndex := iNdEx + byteLen if postIndex < 0 { return ErrInvalidLengthChannel } if postIndex > l { return io.ErrUnexpectedEOF } m.Proof = append(m.Proof[:0], dAtA[iNdEx:postIndex]...) if m.Proof == nil { m.Proof = []byte{} } iNdEx = postIndex case 3: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field ProofHeight", wireType) } m.ProofHeight = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowChannel } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ m.ProofHeight |= uint64(b&0x7F) << shift if b < 0x80 { break } } case 4: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Signer", wireType) } var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowChannel } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ byteLen |= int(b&0x7F) << shift if b < 0x80 { break } } if byteLen < 0 { return ErrInvalidLengthChannel } postIndex := iNdEx + byteLen if postIndex < 0 { return ErrInvalidLengthChannel } if postIndex > l { return io.ErrUnexpectedEOF } m.Signer = append(m.Signer[:0], dAtA[iNdEx:postIndex]...) if m.Signer == nil { m.Signer = []byte{} } iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipChannel(dAtA[iNdEx:]) if err != nil { return err } if skippy < 0 { return ErrInvalidLengthChannel } if (iNdEx + skippy) < 0 { return ErrInvalidLengthChannel } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *MsgTimeout) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowChannel } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: MsgTimeout: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: MsgTimeout: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Packet", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowChannel } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthChannel } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthChannel } if postIndex > l { return io.ErrUnexpectedEOF } if err := m.Packet.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 2: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Proof", wireType) } var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowChannel } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ byteLen |= int(b&0x7F) << shift if b < 0x80 { break } } if byteLen < 0 { return ErrInvalidLengthChannel } postIndex := iNdEx + byteLen if postIndex < 0 { return ErrInvalidLengthChannel } if postIndex > l { return io.ErrUnexpectedEOF } m.Proof = append(m.Proof[:0], dAtA[iNdEx:postIndex]...) if m.Proof == nil { m.Proof = []byte{} } iNdEx = postIndex case 3: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field ProofHeight", wireType) } m.ProofHeight = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowChannel } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ m.ProofHeight |= uint64(b&0x7F) << shift if b < 0x80 { break } } case 4: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field NextSequenceRecv", wireType) } m.NextSequenceRecv = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowChannel } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ m.NextSequenceRecv |= uint64(b&0x7F) << shift if b < 0x80 { break } } case 5: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Signer", wireType) } var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowChannel } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ byteLen |= int(b&0x7F) << shift if b < 0x80 { break } } if byteLen < 0 { return ErrInvalidLengthChannel } postIndex := iNdEx + byteLen if postIndex < 0 { return ErrInvalidLengthChannel } if postIndex > l { return io.ErrUnexpectedEOF } m.Signer = append(m.Signer[:0], dAtA[iNdEx:postIndex]...) if m.Signer == nil { m.Signer = []byte{} } iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipChannel(dAtA[iNdEx:]) if err != nil { return err } if skippy < 0 { return ErrInvalidLengthChannel } if (iNdEx + skippy) < 0 { return ErrInvalidLengthChannel } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *MsgAcknowledgement) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowChannel } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: MsgAcknowledgement: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: MsgAcknowledgement: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Packet", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowChannel } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthChannel } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthChannel } if postIndex > l { return io.ErrUnexpectedEOF } if err := m.Packet.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 2: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Acknowledgement", wireType) } var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowChannel } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ byteLen |= int(b&0x7F) << shift if b < 0x80 { break } } if byteLen < 0 { return ErrInvalidLengthChannel } postIndex := iNdEx + byteLen if postIndex < 0 { return ErrInvalidLengthChannel } if postIndex > l { return io.ErrUnexpectedEOF } m.Acknowledgement = append(m.Acknowledgement[:0], dAtA[iNdEx:postIndex]...) if m.Acknowledgement == nil { m.Acknowledgement = []byte{} } iNdEx = postIndex case 3: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Proof", wireType) } var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowChannel } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ byteLen |= int(b&0x7F) << shift if b < 0x80 { break } } if byteLen < 0 { return ErrInvalidLengthChannel } postIndex := iNdEx + byteLen if postIndex < 0 { return ErrInvalidLengthChannel } if postIndex > l { return io.ErrUnexpectedEOF } m.Proof = append(m.Proof[:0], dAtA[iNdEx:postIndex]...) if m.Proof == nil { m.Proof = []byte{} } iNdEx = postIndex case 4: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field ProofHeight", wireType) } m.ProofHeight = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowChannel } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ m.ProofHeight |= uint64(b&0x7F) << shift if b < 0x80 { break } } case 5: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Signer", wireType) } var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowChannel } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ byteLen |= int(b&0x7F) << shift if b < 0x80 { break } } if byteLen < 0 { return ErrInvalidLengthChannel } postIndex := iNdEx + byteLen if postIndex < 0 { return ErrInvalidLengthChannel } if postIndex > l { return io.ErrUnexpectedEOF } m.Signer = append(m.Signer[:0], dAtA[iNdEx:postIndex]...) if m.Signer == nil { m.Signer = []byte{} } iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipChannel(dAtA[iNdEx:]) if err != nil { return err } if skippy < 0 { return ErrInvalidLengthChannel } if (iNdEx + skippy) < 0 { return ErrInvalidLengthChannel } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *Channel) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowChannel } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: Channel: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: Channel: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) } m.State = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowChannel } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ m.State |= State(b&0x7F) << shift if b < 0x80 { break } } case 2: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field Ordering", wireType) } m.Ordering = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowChannel } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ m.Ordering |= Order(b&0x7F) << shift if b < 0x80 { break } } case 3: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Counterparty", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowChannel } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthChannel } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthChannel } if postIndex > l { return io.ErrUnexpectedEOF } if err := m.Counterparty.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 4: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field ConnectionHops", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowChannel } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } intStringLen := int(stringLen) if intStringLen < 0 { return ErrInvalidLengthChannel } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthChannel } if postIndex > l { return io.ErrUnexpectedEOF } m.ConnectionHops = append(m.ConnectionHops, string(dAtA[iNdEx:postIndex])) iNdEx = postIndex case 5: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Version", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowChannel } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } intStringLen := int(stringLen) if intStringLen < 0 { return ErrInvalidLengthChannel } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthChannel } if postIndex > l { return io.ErrUnexpectedEOF } m.Version = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipChannel(dAtA[iNdEx:]) if err != nil { return err } if skippy < 0 { return ErrInvalidLengthChannel } if (iNdEx + skippy) < 0 { return ErrInvalidLengthChannel } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *IdentifiedChannel) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowChannel } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: IdentifiedChannel: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: IdentifiedChannel: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) } m.State = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowChannel } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ m.State |= State(b&0x7F) << shift if b < 0x80 { break } } case 2: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field Ordering", wireType) } m.Ordering = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowChannel } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ m.Ordering |= Order(b&0x7F) << shift if b < 0x80 { break } } case 3: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Counterparty", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowChannel } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthChannel } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthChannel } if postIndex > l { return io.ErrUnexpectedEOF } if err := m.Counterparty.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 4: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field ConnectionHops", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowChannel } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } intStringLen := int(stringLen) if intStringLen < 0 { return ErrInvalidLengthChannel } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthChannel } if postIndex > l { return io.ErrUnexpectedEOF } m.ConnectionHops = append(m.ConnectionHops, string(dAtA[iNdEx:postIndex])) iNdEx = postIndex case 5: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Version", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowChannel } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } intStringLen := int(stringLen) if intStringLen < 0 { return ErrInvalidLengthChannel } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthChannel } if postIndex > l { return io.ErrUnexpectedEOF } m.Version = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 6: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field PortID", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowChannel } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } intStringLen := int(stringLen) if intStringLen < 0 { return ErrInvalidLengthChannel } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthChannel } if postIndex > l { return io.ErrUnexpectedEOF } m.PortID = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 7: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field ChannelID", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowChannel } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } intStringLen := int(stringLen) if intStringLen < 0 { return ErrInvalidLengthChannel } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthChannel } if postIndex > l { return io.ErrUnexpectedEOF } m.ChannelID = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipChannel(dAtA[iNdEx:]) if err != nil { return err } if skippy < 0 { return ErrInvalidLengthChannel } if (iNdEx + skippy) < 0 { return ErrInvalidLengthChannel } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *Counterparty) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowChannel } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: Counterparty: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: Counterparty: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field PortID", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowChannel } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } intStringLen := int(stringLen) if intStringLen < 0 { return ErrInvalidLengthChannel } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthChannel } if postIndex > l { return io.ErrUnexpectedEOF } m.PortID = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field ChannelID", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowChannel } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } intStringLen := int(stringLen) if intStringLen < 0 { return ErrInvalidLengthChannel } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthChannel } if postIndex > l { return io.ErrUnexpectedEOF } m.ChannelID = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipChannel(dAtA[iNdEx:]) if err != nil { return err } if skippy < 0 { return ErrInvalidLengthChannel } if (iNdEx + skippy) < 0 { return ErrInvalidLengthChannel } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *Packet) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowChannel } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: Packet: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: Packet: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field Sequence", wireType) } m.Sequence = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowChannel } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ m.Sequence |= uint64(b&0x7F) << shift if b < 0x80 { break } } case 2: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field SourcePort", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowChannel } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } intStringLen := int(stringLen) if intStringLen < 0 { return ErrInvalidLengthChannel } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthChannel } if postIndex > l { return io.ErrUnexpectedEOF } m.SourcePort = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 3: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field SourceChannel", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowChannel } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } intStringLen := int(stringLen) if intStringLen < 0 { return ErrInvalidLengthChannel } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthChannel } if postIndex > l { return io.ErrUnexpectedEOF } m.SourceChannel = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 4: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field DestinationPort", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowChannel } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } intStringLen := int(stringLen) if intStringLen < 0 { return ErrInvalidLengthChannel } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthChannel } if postIndex > l { return io.ErrUnexpectedEOF } m.DestinationPort = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 5: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field DestinationChannel", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowChannel } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } intStringLen := int(stringLen) if intStringLen < 0 { return ErrInvalidLengthChannel } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthChannel } if postIndex > l { return io.ErrUnexpectedEOF } m.DestinationChannel = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 6: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Data", wireType) } var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowChannel } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ byteLen |= int(b&0x7F) << shift if b < 0x80 { break } } if byteLen < 0 { return ErrInvalidLengthChannel } postIndex := iNdEx + byteLen if postIndex < 0 { return ErrInvalidLengthChannel } if postIndex > l { return io.ErrUnexpectedEOF } m.Data = append(m.Data[:0], dAtA[iNdEx:postIndex]...) if m.Data == nil { m.Data = []byte{} } iNdEx = postIndex case 7: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field TimeoutHeight", wireType) } m.TimeoutHeight = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowChannel } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ m.TimeoutHeight |= uint64(b&0x7F) << shift if b < 0x80 { break } } case 8: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field TimeoutTimestamp", wireType) } m.TimeoutTimestamp = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowChannel } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ m.TimeoutTimestamp |= uint64(b&0x7F) << shift if b < 0x80 { break } } default: iNdEx = preIndex skippy, err := skipChannel(dAtA[iNdEx:]) if err != nil { return err } if skippy < 0 { return ErrInvalidLengthChannel } if (iNdEx + skippy) < 0 { return ErrInvalidLengthChannel } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *PacketAckCommitment) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowChannel } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: PacketAckCommitment: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: PacketAckCommitment: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field PortID", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowChannel } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } intStringLen := int(stringLen) if intStringLen < 0 { return ErrInvalidLengthChannel } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthChannel } if postIndex > l { return io.ErrUnexpectedEOF } m.PortID = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field ChannelID", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowChannel } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } intStringLen := int(stringLen) if intStringLen < 0 { return ErrInvalidLengthChannel } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthChannel } if postIndex > l { return io.ErrUnexpectedEOF } m.ChannelID = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 3: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field Sequence", wireType) } m.Sequence = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowChannel } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ m.Sequence |= uint64(b&0x7F) << shift if b < 0x80 { break } } case 4: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Hash", wireType) } var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowChannel } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ byteLen |= int(b&0x7F) << shift if b < 0x80 { break } } if byteLen < 0 { return ErrInvalidLengthChannel } postIndex := iNdEx + byteLen if postIndex < 0 { return ErrInvalidLengthChannel } if postIndex > l { return io.ErrUnexpectedEOF } m.Hash = append(m.Hash[:0], dAtA[iNdEx:postIndex]...) if m.Hash == nil { m.Hash = []byte{} } iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipChannel(dAtA[iNdEx:]) if err != nil { return err } if skippy < 0 { return ErrInvalidLengthChannel } if (iNdEx + skippy) < 0 { return ErrInvalidLengthChannel } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func skipChannel(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0 depth := 0 for iNdEx < l { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return 0, ErrIntOverflowChannel } if iNdEx >= l { return 0, io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } } wireType := int(wire & 0x7) switch wireType { case 0: for shift := uint(0); ; shift += 7 { if shift >= 64 { return 0, ErrIntOverflowChannel } if iNdEx >= l { return 0, io.ErrUnexpectedEOF } iNdEx++ if dAtA[iNdEx-1] < 0x80 { break } } case 1: iNdEx += 8 case 2: var length int for shift := uint(0); ; shift += 7 { if shift >= 64 { return 0, ErrIntOverflowChannel } if iNdEx >= l { return 0, io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ length |= (int(b) & 0x7F) << shift if b < 0x80 { break } } if length < 0 { return 0, ErrInvalidLengthChannel } iNdEx += length case 3: depth++ case 4: if depth == 0 { return 0, ErrUnexpectedEndOfGroupChannel } depth-- case 5: iNdEx += 4 default: return 0, fmt.Errorf("proto: illegal wireType %d", wireType) } if iNdEx < 0 { return 0, ErrInvalidLengthChannel } if depth == 0 { return iNdEx, nil } } return 0, io.ErrUnexpectedEOF } var ( ErrInvalidLengthChannel = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowChannel = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupChannel = fmt.Errorf("proto: unexpected end of group") )