diff --git a/go.mod b/go.mod index 6030009..158981f 100644 --- a/go.mod +++ b/go.mod @@ -3,7 +3,7 @@ module github.com/datachainlab/ibc-proxy go 1.16 replace ( - github.com/cosmos/ibc-go => github.com/datachainlab/ibc-go v0.0.0-20210623043207-6582d8c965f8 + github.com/cosmos/ibc-go => github.com/datachainlab/ibc-go v0.0.0-20220120054455-a627cf595609 github.com/gogo/protobuf => github.com/regen-network/protobuf v1.3.3-alpha.regen.1 ) diff --git a/go.sum b/go.sum index 3aeda73..2ddb8c7 100644 --- a/go.sum +++ b/go.sum @@ -148,8 +148,8 @@ github.com/cpuguy83/go-md2man/v2 v2.0.0/go.mod h1:maD7wRr/U5Z6m/iR4s+kqSMx2CaBsr github.com/creack/pty v1.1.7/go.mod h1:lj5s0c3V2DBrqTV7llrYr5NG6My20zk30Fl46Y7DoTY= github.com/danieljoos/wincred v1.0.2 h1:zf4bhty2iLuwgjgpraD2E9UbvO+fe54XXGJbOwe23fU= github.com/danieljoos/wincred v1.0.2/go.mod h1:SnuYRW9lp1oJrZX/dXJqr0cPK5gYXqx3EJbmjhLdK9U= -github.com/datachainlab/ibc-go v0.0.0-20210623043207-6582d8c965f8 h1:Nx9l9NCCKvCmGDDQslhKHc4hWXINcMKFykMQjrvu5o8= -github.com/datachainlab/ibc-go v0.0.0-20210623043207-6582d8c965f8/go.mod h1:NU4IARjXt3Hj5xcju207SWjDMpqMx3CHUXejGe0EXfY= +github.com/datachainlab/ibc-go v0.0.0-20220120054455-a627cf595609 h1:F/4hdX1IO88bt0Pzvm+ogaq7e6OPA1w+vuwjxA7kT5E= +github.com/datachainlab/ibc-go v0.0.0-20220120054455-a627cf595609/go.mod h1:NU4IARjXt3Hj5xcju207SWjDMpqMx3CHUXejGe0EXfY= github.com/davecgh/go-spew v0.0.0-20171005155431-ecdeabc65495/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= diff --git a/modules/proxy/keeper/commitment.go b/modules/proxy/keeper/commitment.go index 08cba2e..dcbc22a 100644 --- a/modules/proxy/keeper/commitment.go +++ b/modules/proxy/keeper/commitment.go @@ -2,6 +2,7 @@ package keeper import ( sdk "github.com/cosmos/cosmos-sdk/types" + sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" clienttypes "github.com/cosmos/ibc-go/modules/core/02-client/types" connectiontypes "github.com/cosmos/ibc-go/modules/core/03-connection/types" @@ -181,3 +182,20 @@ func (k Keeper) SetProxyNextSequenceRecv( store.Set(host.NextSequenceRecvKey(portID, channelID), bz) return nil } + +func (k Keeper) GetUpstreamTimestampAtHeight( + ctx sdk.Context, + upstreamClientID string, + height exported.Height, +) (uint64, error) { + consensusState, found := k.clientKeeper.GetClientConsensusState(ctx, upstreamClientID, height) + + if !found { + return 0, sdkerrors.Wrapf( + clienttypes.ErrConsensusStateNotFound, + "clientID (%s), height (%s)", upstreamClientID, height, + ) + } + + return consensusState.GetTimestamp(), nil +} diff --git a/modules/proxy/keeper/msg_server.go b/modules/proxy/keeper/msg_server.go index ed33b7f..e5b677b 100644 --- a/modules/proxy/keeper/msg_server.go +++ b/modules/proxy/keeper/msg_server.go @@ -165,3 +165,13 @@ func (k *Keeper) ProxyAcknowledgePacket(goCtx context.Context, msg *types.MsgPro } return &types.MsgProxyAcknowledgePacketResponse{}, nil } + +// ProxyTimeoutPacket implements types.MsgServer +func (k Keeper) ProxyTimeoutPacket(goCtx context.Context, msg *types.MsgProxyTimeoutPacket) (*types.MsgProxyTimeoutPacketResponse, error) { + ctx := sdk.UnwrapSDKContext(goCtx) + err := k.TimeoutPacket(ctx, msg.UpstreamClientId, msg.UpstreamPrefix, msg.Packet, msg.ProofUnreceived, msg.ProofHeight, msg.NextSequenceRecv) + if err != nil { + return nil, err + } + return &types.MsgProxyTimeoutPacketResponse{}, nil +} diff --git a/modules/proxy/keeper/packet.go b/modules/proxy/keeper/packet.go index 81cf741..9b3a9cf 100644 --- a/modules/proxy/keeper/packet.go +++ b/modules/proxy/keeper/packet.go @@ -8,7 +8,7 @@ import ( "github.com/cosmos/ibc-go/modules/core/exported" ) -// upstream: chainA, downstream: chainB +// upstream(dst): chainA, downstream(src): chainB func (k Keeper) RecvPacket( ctx sdk.Context, upstreamClientID string, // the client ID corresponding to light client for chainA on chainB @@ -60,7 +60,7 @@ func (k Keeper) RecvPacket( return nil } -// upstream: chainA, downstream: chainB +// upstream: chainA(src), downstream: chainB(dst) func (k Keeper) AcknowledgePacket( ctx sdk.Context, upstreamClientID string, // the client ID corresponding to light client for chainA on chainB @@ -100,3 +100,89 @@ func (k Keeper) AcknowledgePacket( return nil } + +// upstream(dst): chainA, downstream(src): chainB +func (k Keeper) TimeoutPacket( + ctx sdk.Context, + upstreamClientID string, // the client ID corresponding to light client for chainA on chainB + upstreamPrefix exported.Prefix, // store prefix on chainA + packet exported.PacketI, + proof []byte, + proofHeight exported.Height, + nextSequenceRecv uint64, +) error { + channel, found := k.GetProxyChannel(ctx, upstreamPrefix, upstreamClientID, packet.GetSourcePort(), packet.GetSourceChannel()) + if !found { + return sdkerrors.Wrapf( + channeltypes.ErrChannelNotFound, + "port ID (%s) channel ID (%s)", packet.GetSourcePort(), packet.GetSourceChannel(), + ) + } + if channel.State != channeltypes.OPEN { + return sdkerrors.Wrapf( + channeltypes.ErrInvalidChannelState, + "channel state is not OPEN (got %s)", channel.State.String(), + ) + } + + if packet.GetDestPort() != channel.Counterparty.PortId { + return sdkerrors.Wrapf( + channeltypes.ErrInvalidPacket, + "packet destination port doesn't match the counterparty's port (%s ≠ %s)", packet.GetDestPort(), channel.Counterparty.PortId, + ) + } + + if packet.GetDestChannel() != channel.Counterparty.ChannelId { + return sdkerrors.Wrapf( + channeltypes.ErrInvalidPacket, + "packet destination channel doesn't match the counterparty's channel (%s ≠ %s)", packet.GetDestChannel(), channel.Counterparty.ChannelId, + ) + } + + connectionEnd, found := k.GetProxyConnection(ctx, upstreamPrefix, upstreamClientID, channel.ConnectionHops[0]) + if !found { + return sdkerrors.Wrap( + connectiontypes.ErrConnectionNotFound, + channel.ConnectionHops[0], + ) + } + + proofTimestamp, err := k.GetUpstreamTimestampAtHeight(ctx, upstreamClientID, proofHeight) + if err != nil { + return err + } + timeoutHeight := packet.GetTimeoutHeight() + if (timeoutHeight.IsZero() || proofHeight.LT(timeoutHeight)) && + (packet.GetTimeoutTimestamp() == 0 || proofTimestamp < packet.GetTimeoutTimestamp()) { + return sdkerrors.Wrap(channeltypes.ErrPacketTimeout, "packet timeout has not been reached for height or timestamp") + } + + switch channel.Ordering { + case channeltypes.ORDERED: + // check that packet has not been received + if nextSequenceRecv > packet.GetSequence() { + return sdkerrors.Wrapf( + channeltypes.ErrPacketReceived, + "packet already received, next sequence receive > packet sequence (%d > %d)", nextSequenceRecv, packet.GetSequence(), + ) + } + // check that the recv sequence is as claimed + err = k.VerifyAndProxyNextSequenceRecv( + ctx, upstreamClientID, upstreamPrefix, connectionEnd, proofHeight, proof, + packet.GetDestPort(), packet.GetDestChannel(), nextSequenceRecv, + ) + case channeltypes.UNORDERED: + err = k.VerifyAndProxyPacketReceiptAbsence( + ctx, upstreamClientID, upstreamPrefix, connectionEnd, proofHeight, proof, + packet.GetDestPort(), packet.GetDestChannel(), packet.GetSequence(), + ) + default: + panic(sdkerrors.Wrapf(channeltypes.ErrInvalidChannelOrdering, channel.Ordering.String())) + } + + if err != nil { + return err + } + + return nil +} diff --git a/modules/proxy/keeper/proxy.go b/modules/proxy/keeper/proxy.go index 8051662..796559e 100644 --- a/modules/proxy/keeper/proxy.go +++ b/modules/proxy/keeper/proxy.go @@ -418,5 +418,6 @@ func (k Keeper) VerifyAndProxyNextSequenceRecv( // getBlockDelay always returns 0 func (k Keeper) getBlockDelay(ctx sdk.Context, connection exported.ConnectionI) uint64 { + // TODO can we use the parameter `KeyMaxExpectedTimePerBlock` of the proxy to calclulate the block delay? return 0 } diff --git a/modules/proxy/types/codec.go b/modules/proxy/types/codec.go index 196489e..14fbb3d 100644 --- a/modules/proxy/types/codec.go +++ b/modules/proxy/types/codec.go @@ -25,6 +25,7 @@ func RegisterInterfaces(registry codectypes.InterfaceRegistry) { &MsgProxyChannelOpenFinalize{}, &MsgProxyRecvPacket{}, &MsgProxyAcknowledgePacket{}, + &MsgProxyTimeoutPacket{}, ) registry.RegisterImplementations((*exported.ClientState)(nil), &proxytypes.ClientState{}) registry.RegisterImplementations((*exported.ConsensusState)(nil), &proxytypes.ConsensusState{}) diff --git a/modules/proxy/types/expected_keepers.go b/modules/proxy/types/expected_keepers.go index 2d0fd53..c1dcc4d 100644 --- a/modules/proxy/types/expected_keepers.go +++ b/modules/proxy/types/expected_keepers.go @@ -8,6 +8,7 @@ import ( type ClientKeeper interface { ClientStore(ctx sdk.Context, clientID string) sdk.KVStore GetClientState(ctx sdk.Context, clientID string) (exported.ClientState, bool) + GetClientConsensusState(ctx sdk.Context, clientID string, height exported.Height) (exported.ConsensusState, bool) GetSelfConsensusState(ctx sdk.Context, height exported.Height) (exported.ConsensusState, bool) ValidateSelfClient(ctx sdk.Context, clientState exported.ClientState) error } diff --git a/modules/proxy/types/msgs.go b/modules/proxy/types/msgs.go index 60c0a53..ac864c9 100644 --- a/modules/proxy/types/msgs.go +++ b/modules/proxy/types/msgs.go @@ -10,11 +10,11 @@ import ( ) var ( - _, _, _, _ sdk.Msg = (*MsgProxyClientState)(nil), (*MsgProxyConnectionOpenTry)(nil), (*MsgProxyConnectionOpenAck)(nil), (*MsgProxyConnectionOpenConfirm)(nil) - _, _, _, _ codectypes.UnpackInterfacesMessage = (*MsgProxyClientState)(nil), (*MsgProxyConnectionOpenTry)(nil), (*MsgProxyConnectionOpenAck)(nil), (*MsgProxyConnectionOpenConfirm)(nil) + _, _, _, _, _ sdk.Msg = (*MsgProxyClientState)(nil), (*MsgProxyConnectionOpenTry)(nil), (*MsgProxyConnectionOpenAck)(nil), (*MsgProxyConnectionOpenConfirm)(nil), (*MsgProxyConnectionOpenFinalize)(nil) + _, _, _ codectypes.UnpackInterfacesMessage = (*MsgProxyClientState)(nil), (*MsgProxyConnectionOpenTry)(nil), (*MsgProxyConnectionOpenAck)(nil) - _, _, _ sdk.Msg = (*MsgProxyChannelOpenTry)(nil), (*MsgProxyChannelOpenAck)(nil), (*MsgProxyChannelOpenConfirm)(nil) - _, _ sdk.Msg = (*MsgProxyRecvPacket)(nil), (*MsgProxyAcknowledgePacket)(nil) + _, _, _, _ sdk.Msg = (*MsgProxyChannelOpenTry)(nil), (*MsgProxyChannelOpenAck)(nil), (*MsgProxyChannelOpenConfirm)(nil), (*MsgProxyChannelOpenFinalize)(nil) + _, _, _ sdk.Msg = (*MsgProxyRecvPacket)(nil), (*MsgProxyAcknowledgePacket)(nil), (*MsgProxyTimeoutPacket)(nil) ) func NewMsgProxyClientState( @@ -291,11 +291,6 @@ func (msg MsgProxyConnectionOpenFinalize) GetSigners() []sdk.AccAddress { return []sdk.AccAddress{accAddr} } -// UnpackInterfaces implements UnpackInterfacesMessage.UnpackInterfaces -func (msg MsgProxyConnectionOpenFinalize) UnpackInterfaces(unpacker codectypes.AnyUnpacker) error { - return nil -} - // ValidateBasic implements sdk.Msg func (msg MsgProxyChannelOpenTry) ValidateBasic() error { return nil @@ -371,6 +366,7 @@ func (msg MsgProxyAcknowledgePacket) ValidateBasic() error { return nil } +// GetSigners implements sdk.Msg func (msg MsgProxyAcknowledgePacket) GetSigners() []sdk.AccAddress { accAddr, err := sdk.AccAddressFromBech32(msg.Signer) if err != nil { @@ -379,6 +375,20 @@ func (msg MsgProxyAcknowledgePacket) GetSigners() []sdk.AccAddress { return []sdk.AccAddress{accAddr} } +// ValidateBasic implements sdk.Msg +func (msg MsgProxyTimeoutPacket) ValidateBasic() error { + return nil +} + +// GetSigners implements sdk.Msg +func (msg MsgProxyTimeoutPacket) GetSigners() []sdk.AccAddress { + accAddr, err := sdk.AccAddressFromBech32(msg.Signer) + if err != nil { + panic(err) + } + return []sdk.AccAddress{accAddr} +} + func mustPackClientState(clientState exported.ClientState) *codectypes.Any { anyClient, err := clienttypes.PackClientState(clientState) if err != nil { diff --git a/modules/proxy/types/tx.pb.go b/modules/proxy/types/tx.pb.go index 0cf9450..532f112 100644 --- a/modules/proxy/types/tx.pb.go +++ b/modules/proxy/types/tx.pb.go @@ -1038,6 +1038,85 @@ func (m *MsgProxyAcknowledgePacketResponse) XXX_DiscardUnknown() { var xxx_messageInfo_MsgProxyAcknowledgePacketResponse proto.InternalMessageInfo +type MsgProxyTimeoutPacket struct { + UpstreamClientId string `protobuf:"bytes,1,opt,name=upstream_client_id,json=upstreamClientId,proto3" json:"upstream_client_id,omitempty"` + UpstreamPrefix types.MerklePrefix `protobuf:"bytes,2,opt,name=upstream_prefix,json=upstreamPrefix,proto3" json:"upstream_prefix"` + Packet types4.Packet `protobuf:"bytes,3,opt,name=packet,proto3" json:"packet"` + ProofUnreceived []byte `protobuf:"bytes,4,opt,name=proof_unreceived,json=proofUnreceived,proto3" json:"proof_unreceived,omitempty"` + ProofHeight types2.Height `protobuf:"bytes,5,opt,name=proof_height,json=proofHeight,proto3" json:"proof_height"` + NextSequenceRecv uint64 `protobuf:"varint,6,opt,name=next_sequence_recv,json=nextSequenceRecv,proto3" json:"next_sequence_recv,omitempty"` + Signer string `protobuf:"bytes,7,opt,name=signer,proto3" json:"signer,omitempty"` +} + +func (m *MsgProxyTimeoutPacket) Reset() { *m = MsgProxyTimeoutPacket{} } +func (m *MsgProxyTimeoutPacket) String() string { return proto.CompactTextString(m) } +func (*MsgProxyTimeoutPacket) ProtoMessage() {} +func (*MsgProxyTimeoutPacket) Descriptor() ([]byte, []int) { + return fileDescriptor_68797dc99f8f4cd2, []int{22} +} +func (m *MsgProxyTimeoutPacket) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgProxyTimeoutPacket) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgProxyTimeoutPacket.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 *MsgProxyTimeoutPacket) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgProxyTimeoutPacket.Merge(m, src) +} +func (m *MsgProxyTimeoutPacket) XXX_Size() int { + return m.Size() +} +func (m *MsgProxyTimeoutPacket) XXX_DiscardUnknown() { + xxx_messageInfo_MsgProxyTimeoutPacket.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgProxyTimeoutPacket proto.InternalMessageInfo + +type MsgProxyTimeoutPacketResponse struct { +} + +func (m *MsgProxyTimeoutPacketResponse) Reset() { *m = MsgProxyTimeoutPacketResponse{} } +func (m *MsgProxyTimeoutPacketResponse) String() string { return proto.CompactTextString(m) } +func (*MsgProxyTimeoutPacketResponse) ProtoMessage() {} +func (*MsgProxyTimeoutPacketResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_68797dc99f8f4cd2, []int{23} +} +func (m *MsgProxyTimeoutPacketResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgProxyTimeoutPacketResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgProxyTimeoutPacketResponse.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 *MsgProxyTimeoutPacketResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgProxyTimeoutPacketResponse.Merge(m, src) +} +func (m *MsgProxyTimeoutPacketResponse) XXX_Size() int { + return m.Size() +} +func (m *MsgProxyTimeoutPacketResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgProxyTimeoutPacketResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgProxyTimeoutPacketResponse proto.InternalMessageInfo + func init() { proto.RegisterType((*MsgProxyClientState)(nil), "ibc.proxy.v1.MsgProxyClientState") proto.RegisterType((*MsgProxyClientStateResponse)(nil), "ibc.proxy.v1.MsgProxyClientStateResponse") @@ -1061,103 +1140,111 @@ func init() { proto.RegisterType((*MsgProxyRecvPacketResponse)(nil), "ibc.proxy.v1.MsgProxyRecvPacketResponse") proto.RegisterType((*MsgProxyAcknowledgePacket)(nil), "ibc.proxy.v1.MsgProxyAcknowledgePacket") proto.RegisterType((*MsgProxyAcknowledgePacketResponse)(nil), "ibc.proxy.v1.MsgProxyAcknowledgePacketResponse") + proto.RegisterType((*MsgProxyTimeoutPacket)(nil), "ibc.proxy.v1.MsgProxyTimeoutPacket") + proto.RegisterType((*MsgProxyTimeoutPacketResponse)(nil), "ibc.proxy.v1.MsgProxyTimeoutPacketResponse") } func init() { proto.RegisterFile("ibc/modules/proxy/tx.proto", fileDescriptor_68797dc99f8f4cd2) } var fileDescriptor_68797dc99f8f4cd2 = []byte{ - // 1454 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xec, 0x59, 0xcf, 0x6f, 0x1b, 0xc5, - 0x17, 0x8f, 0xe3, 0x1f, 0xb1, 0x9f, 0xdd, 0xd8, 0xda, 0xa4, 0xe9, 0x76, 0xf3, 0xad, 0xe3, 0x38, - 0xed, 0x37, 0xae, 0x08, 0xeb, 0x3a, 0x2d, 0x42, 0x20, 0x38, 0xa4, 0x15, 0xa8, 0x55, 0x29, 0x8d, - 0x5c, 0xc4, 0x01, 0x09, 0x85, 0xf5, 0x7a, 0x62, 0xaf, 0x6c, 0xef, 0xae, 0x76, 0xd7, 0x6e, 0xcc, - 0x01, 0xc1, 0x01, 0x09, 0x6e, 0xfc, 0x09, 0xfd, 0x0b, 0xf8, 0x33, 0x50, 0x6f, 0xf4, 0xc0, 0x01, - 0x71, 0x40, 0xa8, 0xbd, 0x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x0a, 0xf2, 0x3d, 0x41, 0x85, 0xad, 0x41, 0xc6, 0xd6, 0x3a, 0x3a, 0xb2, 0x44, 0xc0, - 0xbe, 0xa7, 0xa3, 0xb7, 0xb3, 0xdf, 0x3c, 0xda, 0x58, 0xf8, 0xfd, 0xd1, 0xc6, 0x42, 0xf5, 0x12, - 0xac, 0x4f, 0x89, 0xa3, 0x26, 0xb2, 0x4d, 0x57, 0x54, 0xf5, 0xaf, 0x25, 0xb8, 0xc8, 0xd6, 0x59, - 0xac, 0xdf, 0x37, 0x91, 0xfe, 0x91, 0x35, 0x16, 0xb6, 0xe0, 0x9c, 0x9f, 0x00, 0x7e, 0xa0, 0x15, - 0xfc, 0xc9, 0x97, 0x15, 0x64, 0x77, 0x01, 0x7c, 0x25, 0x38, 0xb0, 0xf2, 0xbb, 0x57, 0x78, 0x79, - 0x2c, 0x2d, 0x47, 0x0d, 0xd9, 0x37, 0xfc, 0x3d, 0xbd, 0x4d, 0x05, 0x72, 0xdb, 0x85, 0x0f, 0xe0, - 0x42, 0xdb, 0x78, 0xa8, 0x07, 0xd3, 0x66, 0x7e, 0x18, 0x9e, 0xf7, 0x37, 0xf1, 0x29, 0xd8, 0x04, - 0x89, 0x97, 0x76, 0x8c, 0xd8, 0x14, 0x39, 0x81, 0xc1, 0x28, 0xbd, 0x09, 0x02, 0xae, 0x60, 0x41, - 0xe3, 0x32, 0x33, 0x64, 0x95, 0xcc, 0x70, 0x69, 0xb8, 0x04, 0x40, 0xa2, 0x53, 0xd3, 0x35, 0x87, - 0x46, 0x70, 0x0e, 0xcf, 0xdc, 0xd1, 0x35, 0x67, 0x22, 0x11, 0xb2, 0xb1, 0x12, 0x21, 0x17, 0x2b, - 0x11, 0xe0, 0x45, 0x25, 0x42, 0xfe, 0x79, 0x13, 0x61, 0x07, 0x3b, 0xd0, 0x38, 0x3c, 0xe0, 0xdd, - 0x28, 0x16, 0xb0, 0xf5, 0x25, 0xbc, 0xc2, 0xa5, 0x80, 0xb0, 0x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, 0x22, 0x3b, 0x27, 0x80, 0x51, 0xd9, 0x19, 0x59, 0xef, 0x6e, 0xde, 0x7f, - 0xfc, 0xb4, 0x9c, 0x78, 0xf2, 0xb4, 0x9c, 0xf8, 0xed, 0x69, 0x39, 0xf1, 0xdd, 0xb3, 0xf2, 0xc2, - 0x93, 0x67, 0xe5, 0x85, 0x9f, 0x9f, 0x95, 0x17, 0x3e, 0x79, 0xa3, 0xa3, 0x39, 0xdd, 0x61, 0xcb, - 0xbd, 0x49, 0xea, 0x6d, 0xc5, 0x51, 0xd4, 0xae, 0xa2, 0xe9, 0x7d, 0xa5, 0x55, 0xd7, 0x5a, 0xea, - 0xeb, 0xe4, 0x6f, 0xe9, 0xd0, 0x9f, 0xd4, 0x63, 0x13, 0xd9, 0xad, 0x0c, 0xfe, 0x40, 0x7b, 0xfd, - 0x9f, 0x00, 0x00, 0x00, 0xff, 0xff, 0x89, 0x9d, 0x10, 0x23, 0xc6, 0x1e, 0x00, 0x00, + // 1545 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xec, 0x5a, 0xcf, 0x8f, 0xdb, 0xc4, + 0x17, 0xdf, 0x6c, 0x7e, 0xec, 0xe6, 0x25, 0xdd, 0x8d, 0xbc, 0x3f, 0xea, 0x7a, 0xbf, 0xcd, 0xfe, + 0x6a, 0xbf, 0x9b, 0xaa, 0x8b, 0xd3, 0x6c, 0x8b, 0x10, 0x08, 0x0e, 0xdb, 0x0a, 0xd4, 0xaa, 0x94, + 0xae, 0xd2, 0xc2, 0x01, 0x09, 0x05, 0xc7, 0x99, 0xcd, 0x5a, 0x49, 0x6c, 0x63, 0x3b, 0xe9, 0x86, + 0x03, 0x82, 0x03, 0x12, 0xdc, 0xb8, 0x70, 0xef, 0x5f, 0xc0, 0x9f, 0x81, 0x7a, 0xa3, 0x07, 0x90, + 0x10, 0x07, 0x84, 0xda, 0x0b, 0x37, 0xc4, 0x9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0xdc, 0x3d, 0x62, 0xa2, 0x8a, 0xf5, 0xa2, 0x57, 0x89, 0x70, 0x08, 0x86, 0xfd, 0x9f, + 0x3d, 0x9e, 0xff, 0x73, 0x31, 0xfe, 0xaf, 0xc0, 0xff, 0xc7, 0x7b, 0x95, 0x11, 0xf0, 0x4f, 0x1a, + 0x96, 0x19, 0x94, 0xdc, 0x15, 0xbd, 0x16, 0xfb, 0x05, 0xb8, 0xd0, 0x5d, 0x81, 0xac, 0x61, 0xb5, + 0x90, 0x85, 0xe9, 0x99, 0x0b, 0xf8, 0x89, 0xde, 0x6b, 0x07, 0x35, 0xf9, 0xae, 0x8b, 0xa8, 0x13, + 0xa0, 0x7b, 0x22, 0x70, 0xd1, 0x72, 0x60, 0x98, 0xb6, 0x98, 0x59, 0x4b, 0x57, 0xf2, 0xf8, 0xf6, + 0x45, 0x87, 0x6f, 0x1a, 0xa6, 0x2d, 0x9c, 0x85, 0x19, 0xd3, 0xb0, 0xf0, 0x96, 0xb2, 0xc4, 0x8b, + 0xee, 0xe3, 0xad, 0x96, 0xdb, 0xac, 0x52, 0xe1, 0xee, 0x1c, 0xf1, 0x70, 0x9e, 0x8e, 0x90, 0x48, + 0xe3, 0x8e, 0x52, 0x4f, 0x04, 0x49, 0x84, 0x92, 0x3f, 0xb3, 0x47, 0x84, 0x89, 0x30, 0x33, 0x40, + 0x96, 0xed, 0x36, 0x04, 0xb3, 0x18, 0xe2, 0x3d, 0x86, 0x7a, 0xe2, 0x7c, 0xb8, 0x27, 0x3e, 0x91, + 0x03, 0xcb, 0x0f, 0x94, 0x42, 0x4c, 0xa0, 0xac, 0x71, 0xe9, 0x17, 0x60, 0x9f, 0x05, 0xc8, 0x0f, + 0x99, 0xc8, 0x00, 0x71, 0x8b, 0xc9, 0x69, 0x80, 0x1c, 0x3f, 0x40, 0x76, 0x60, 0x89, 0xef, 0xcc, + 0x7c, 0xb9, 0x24, 0x5c, 0x16, 0xb8, 0xf6, 0x8b, 0x69, 0xe0, 0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 0x47, 0xd0, 0x73, 0xba, 0x42, 0x70, 0x77, 0xbe, 0x11, 0x06, 0x18, 0x4f, 0xdf, 0xa7, 0x61, + 0xc9, 0x43, 0xdd, 0xd7, 0x7a, 0xc8, 0xe8, 0x3b, 0xaf, 0x04, 0x47, 0x97, 0x80, 0x5c, 0xbf, 0x1b, + 0x7d, 0xdd, 0x42, 0x2a, 0xd2, 0x06, 0xa8, 0xe5, 0x91, 0x84, 0xc7, 0x3f, 0x64, 0xc3, 0x27, 0x93, + 0x2f, 0xdb, 0x20, 0xe8, 0xe8, 0xd0, 0x69, 0xd8, 0xe8, 0xb3, 0x3e, 0xd2, 0x55, 0xd4, 0xb0, 0x90, + 0x3a, 0xc0, 0xcc, 0x66, 0xea, 0x25, 0x77, 0xe6, 0x1e, 0x9d, 0x70, 0x73, 0x25, 0x01, 0x79, 0xab, + 0xfe, 0x55, 0x3c, 0x40, 0x8b, 0x47, 0xdc, 0xce, 0x2f, 0x00, 0xe9, 0x3b, 0x76, 0x5b, 0xf8, 0x14, + 0x4a, 0x23, 0x1f, 0x92, 0xd6, 0x65, 0xfe, 0xb3, 0x99, 0x1c, 0xf1, 0x8d, 0x40, 0xba, 0x34, 0x11, + 0xe2, 0x69, 0x12, 0x2c, 0x58, 0x8e, 0xf9, 0x84, 0xb0, 0x15, 0x23, 0x24, 0x0c, 0x94, 0xaa, 0x09, + 0x81, 0x13, 0x74, 0xba, 0xe7, 0x79, 0x22, 0x9d, 0xbb, 0x6a, 0x27, 0x99, 0x4e, 0xae, 0xa9, 0x12, + 0xbe, 0x00, 0x69, 0xcc, 0xab, 0x8f, 0xcb, 0x49, 0xc4, 0x51, 0xb0, 0x74, 0xf5, 0x08, 0x60, 0xa6, + 0xff, 0xab, 0x14, 0xac, 0x8c, 0xbb, 0xc6, 0x6f, 0x27, 0x11, 0xea, 0xa1, 0xa5, 0x6b, 0x47, 0x41, + 0x33, 0x1b, 0x34, 0x58, 0x88, 0xba, 0xc8, 0x5e, 0x88, 0x11, 0x16, 0x40, 0x49, 0xdb, 0x49, 0x50, + 0xe3, 0x54, 0xb9, 0xfc, 0x4e, 0x56, 0xe5, 0x92, 0xbb, 0x9d, 0x04, 0xc5, 0x54, 0xf5, 0xe1, 0x6c, + 0x5c, 0xab, 0x5c, 0x99, 0x28, 0xc8, 0xe3, 0xf4, 0x4a, 0x52, 0x24, 0x53, 0x7b, 0x08, 0x62, 0x6c, + 0xcf, 0x77, 0x69, 0xa2, 0x34, 0xc6, 0x64, 0x2d, 0x31, 0x94, 0x69, 0xfe, 0x04, 0xe6, 0xc3, 0x9d, + 0xce, 0x5a, 0xb4, 0x14, 0x1f, 0x21, 0x55, 0x26, 0x21, 0x46, 0xb2, 0x73, 0xf4, 0x60, 0x8f, 0xc9, + 0xce, 0x11, 0x60, 0x5c, 0x76, 0xc6, 0x1e, 0x54, 0xc2, 0x3e, 0x08, 0x11, 0x87, 0xd4, 0x66, 0xb4, + 0x98, 0x00, 0x48, 0xba, 0x9c, 0x00, 0xe4, 0xe9, 0xb9, 0x7e, 0xf7, 0xd1, 0x93, 0x72, 0xea, 0xf1, + 0x93, 0x72, 0xea, 0x8f, 0x27, 0xe5, 0xd4, 0x77, 0x4f, 0xcb, 0x53, 0x8f, 0x9f, 0x96, 0xa7, 0x7e, + 0x7d, 0x5a, 0x9e, 0xfa, 0xf8, 0xf5, 0xb6, 0xe6, 0x1c, 0xf4, 0x9b, 0xee, 0x31, 0x56, 0x6d, 0x29, + 0x8e, 0xa2, 0x1e, 0x28, 0x9a, 0xde, 0x55, 0x9a, 0x55, 0xad, 0xa9, 0xbe, 0x46, 0xfe, 0xb7, 0x10, + 0xfa, 0x17, 0xc3, 0xd0, 0x44, 0x76, 0x33, 0x87, 0xdf, 0xe0, 0x5f, 0xfd, 0x37, 0x00, 0x00, 0xff, + 0xff, 0x87, 0x65, 0x58, 0x2d, 0xe7, 0x20, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -1183,6 +1270,7 @@ type MsgClient interface { ProxyChannelOpenFinalize(ctx context.Context, in *MsgProxyChannelOpenFinalize, opts ...grpc.CallOption) (*MsgProxyChannelOpenFinalizeResponse, error) ProxyRecvPacket(ctx context.Context, in *MsgProxyRecvPacket, opts ...grpc.CallOption) (*MsgProxyRecvPacketResponse, error) ProxyAcknowledgePacket(ctx context.Context, in *MsgProxyAcknowledgePacket, opts ...grpc.CallOption) (*MsgProxyAcknowledgePacketResponse, error) + ProxyTimeoutPacket(ctx context.Context, in *MsgProxyTimeoutPacket, opts ...grpc.CallOption) (*MsgProxyTimeoutPacketResponse, error) } type msgClient struct { @@ -1292,6 +1380,15 @@ func (c *msgClient) ProxyAcknowledgePacket(ctx context.Context, in *MsgProxyAckn return out, nil } +func (c *msgClient) ProxyTimeoutPacket(ctx context.Context, in *MsgProxyTimeoutPacket, opts ...grpc.CallOption) (*MsgProxyTimeoutPacketResponse, error) { + out := new(MsgProxyTimeoutPacketResponse) + err := c.cc.Invoke(ctx, "/ibc.proxy.v1.Msg/ProxyTimeoutPacket", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + // MsgServer is the server API for Msg service. type MsgServer interface { ProxyClientState(context.Context, *MsgProxyClientState) (*MsgProxyClientStateResponse, error) @@ -1305,6 +1402,7 @@ type MsgServer interface { ProxyChannelOpenFinalize(context.Context, *MsgProxyChannelOpenFinalize) (*MsgProxyChannelOpenFinalizeResponse, error) ProxyRecvPacket(context.Context, *MsgProxyRecvPacket) (*MsgProxyRecvPacketResponse, error) ProxyAcknowledgePacket(context.Context, *MsgProxyAcknowledgePacket) (*MsgProxyAcknowledgePacketResponse, error) + ProxyTimeoutPacket(context.Context, *MsgProxyTimeoutPacket) (*MsgProxyTimeoutPacketResponse, error) } // UnimplementedMsgServer can be embedded to have forward compatible implementations. @@ -1344,6 +1442,9 @@ func (*UnimplementedMsgServer) ProxyRecvPacket(ctx context.Context, req *MsgProx func (*UnimplementedMsgServer) ProxyAcknowledgePacket(ctx context.Context, req *MsgProxyAcknowledgePacket) (*MsgProxyAcknowledgePacketResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ProxyAcknowledgePacket not implemented") } +func (*UnimplementedMsgServer) ProxyTimeoutPacket(ctx context.Context, req *MsgProxyTimeoutPacket) (*MsgProxyTimeoutPacketResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ProxyTimeoutPacket not implemented") +} func RegisterMsgServer(s grpc1.Server, srv MsgServer) { s.RegisterService(&_Msg_serviceDesc, srv) @@ -1547,6 +1648,24 @@ func _Msg_ProxyAcknowledgePacket_Handler(srv interface{}, ctx context.Context, d return interceptor(ctx, in, info, handler) } +func _Msg_ProxyTimeoutPacket_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgProxyTimeoutPacket) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).ProxyTimeoutPacket(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/ibc.proxy.v1.Msg/ProxyTimeoutPacket", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).ProxyTimeoutPacket(ctx, req.(*MsgProxyTimeoutPacket)) + } + return interceptor(ctx, in, info, handler) +} + var _Msg_serviceDesc = grpc.ServiceDesc{ ServiceName: "ibc.proxy.v1.Msg", HandlerType: (*MsgServer)(nil), @@ -1595,6 +1714,10 @@ var _Msg_serviceDesc = grpc.ServiceDesc{ MethodName: "ProxyAcknowledgePacket", Handler: _Msg_ProxyAcknowledgePacket_Handler, }, + { + MethodName: "ProxyTimeoutPacket", + Handler: _Msg_ProxyTimeoutPacket_Handler, + }, }, Streams: []grpc.StreamDesc{}, Metadata: "ibc/modules/proxy/tx.proto", @@ -2991,6 +3114,108 @@ func (m *MsgProxyAcknowledgePacketResponse) MarshalToSizedBuffer(dAtA []byte) (i return len(dAtA) - i, nil } +func (m *MsgProxyTimeoutPacket) 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 *MsgProxyTimeoutPacket) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgProxyTimeoutPacket) 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 = encodeVarintTx(dAtA, i, uint64(len(m.Signer))) + i-- + dAtA[i] = 0x3a + } + if m.NextSequenceRecv != 0 { + i = encodeVarintTx(dAtA, i, uint64(m.NextSequenceRecv)) + i-- + dAtA[i] = 0x30 + } + { + size, err := m.ProofHeight.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2a + if len(m.ProofUnreceived) > 0 { + i -= len(m.ProofUnreceived) + copy(dAtA[i:], m.ProofUnreceived) + i = encodeVarintTx(dAtA, i, uint64(len(m.ProofUnreceived))) + i-- + dAtA[i] = 0x22 + } + { + size, err := m.Packet.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + { + size, err := m.UpstreamPrefix.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + if len(m.UpstreamClientId) > 0 { + i -= len(m.UpstreamClientId) + copy(dAtA[i:], m.UpstreamClientId) + i = encodeVarintTx(dAtA, i, uint64(len(m.UpstreamClientId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MsgProxyTimeoutPacketResponse) 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 *MsgProxyTimeoutPacketResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgProxyTimeoutPacketResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + func encodeVarintTx(dAtA []byte, offset int, v uint64) int { offset -= sovTx(v) base := offset @@ -3560,6 +3785,45 @@ func (m *MsgProxyAcknowledgePacketResponse) Size() (n int) { return n } +func (m *MsgProxyTimeoutPacket) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.UpstreamClientId) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = m.UpstreamPrefix.Size() + n += 1 + l + sovTx(uint64(l)) + l = m.Packet.Size() + n += 1 + l + sovTx(uint64(l)) + l = len(m.ProofUnreceived) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = m.ProofHeight.Size() + n += 1 + l + sovTx(uint64(l)) + if m.NextSequenceRecv != 0 { + n += 1 + sovTx(uint64(m.NextSequenceRecv)) + } + l = len(m.Signer) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + return n +} + +func (m *MsgProxyTimeoutPacketResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + func sovTx(x uint64) (n int) { return (math_bits.Len64(x|1) + 6) / 7 } @@ -8139,6 +8403,322 @@ func (m *MsgProxyAcknowledgePacketResponse) Unmarshal(dAtA []byte) error { } return nil } +func (m *MsgProxyTimeoutPacket) 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 ErrIntOverflowTx + } + 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: MsgProxyTimeoutPacket: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgProxyTimeoutPacket: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field UpstreamClientId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + 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 ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.UpstreamClientId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field UpstreamPrefix", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.UpstreamPrefix.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + 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 ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Packet.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ProofUnreceived", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ProofUnreceived = append(m.ProofUnreceived[:0], dAtA[iNdEx:postIndex]...) + if m.ProofUnreceived == nil { + m.ProofUnreceived = []byte{} + } + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ProofHeight", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.ProofHeight.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 6: + 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 ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.NextSequenceRecv |= 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 stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + 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 ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Signer = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MsgProxyTimeoutPacketResponse) 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 ErrIntOverflowTx + } + 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: MsgProxyTimeoutPacketResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgProxyTimeoutPacketResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} func skipTx(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0 diff --git a/proto/ibc/modules/proxy/tx.proto b/proto/ibc/modules/proxy/tx.proto index eec7332..db7fdf4 100644 --- a/proto/ibc/modules/proxy/tx.proto +++ b/proto/ibc/modules/proxy/tx.proto @@ -25,6 +25,7 @@ service Msg { rpc ProxyRecvPacket(MsgProxyRecvPacket) returns (MsgProxyRecvPacketResponse); rpc ProxyAcknowledgePacket(MsgProxyAcknowledgePacket) returns (MsgProxyAcknowledgePacketResponse); + rpc ProxyTimeoutPacket(MsgProxyTimeoutPacket) returns (MsgProxyTimeoutPacketResponse); } message MsgProxyClientState { @@ -214,3 +215,18 @@ message MsgProxyAcknowledgePacket { } message MsgProxyAcknowledgePacketResponse {} + +message MsgProxyTimeoutPacket { + option (gogoproto.equal) = false; + option (gogoproto.goproto_getters) = false; + + string upstream_client_id = 1; + ibc.core.commitment.v1.MerklePrefix upstream_prefix = 2 [(gogoproto.nullable) = false]; + ibc.core.channel.v1.Packet packet = 3 [(gogoproto.nullable) = false]; + bytes proof_unreceived = 4; + ibc.core.client.v1.Height proof_height = 5 [(gogoproto.nullable) = false]; + uint64 next_sequence_recv = 6; + string signer = 7; +} + +message MsgProxyTimeoutPacketResponse {}