@agoric/cosmos 0.34.2-dev-c5dea1c.0.c5dea1c → 0.34.2-dev-4ea2a82.0.4ea2a82
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Makefile +1 -0
- package/ante/ante.go +2 -2
- package/app/app.go +73 -96
- package/app/sim_test.go +0 -2
- package/app/upgrade.go +6 -6
- package/daemon/cmd/root_test.go +1 -0
- package/git-revision.txt +1 -1
- package/go.mod +83 -116
- package/go.sum +162 -130
- package/go.work +39 -0
- package/go.work.sum +2636 -0
- package/package.json +2 -2
- package/proto/Dockerfile +14 -0
- package/proto/agoric/swingset/msgs.proto +1 -0
- package/proto/agoric/vbank/msgs.proto +5 -1
- package/proto/agoric/vibc/msgs.proto +45 -2
- package/scripts/protocgen.sh +10 -1
- package/tests/integrations/types/aminojson_test.go +18 -2
- package/third_party/proto/cosmos/base/query/v1beta1/pagination.proto +2 -3
- package/third_party/proto/cosmos/upgrade/v1beta1/upgrade.proto +2 -3
- package/third_party/proto/ibc/core/channel/v1/channel.proto +6 -22
- package/third_party/proto/ibc/core/client/v1/client.proto +6 -53
- package/types/address_hooks.go +2 -2
- package/types/address_hooks_test.go +3 -3
- package/types/ibc_packet.go +3 -3
- package/types/ibc_packet_test.go +3 -3
- package/x/swingset/types/msgs.pb.go +90 -89
- package/x/vbank/types/msgs.pb.go +10 -8
- package/x/vibc/alias.go +0 -1
- package/x/vibc/keeper/dynamic_router.go +176 -0
- package/x/vibc/keeper/dynamic_router_test.go +240 -0
- package/x/vibc/keeper/keeper.go +40 -81
- package/x/vibc/keeper/migrations.go +1 -1
- package/x/vibc/keeper/scope.go +114 -0
- package/x/vibc/keeper/triggers.go +8 -4
- package/x/vibc/types/expected_keepers.go +7 -20
- package/x/vibc/types/ibc_module.go +13 -20
- package/x/vibc/types/msgs.go +60 -3
- package/x/vibc/types/msgs.pb.go +683 -31
- package/x/vibc/types/receiver.go +2 -2
- package/x/vlocalchain/vlocalchain_test.go +1 -1
- package/x/vtransfer/ibc_middleware.go +15 -17
- package/x/vtransfer/ibc_middleware_test.go +30 -53
- package/x/vtransfer/keeper/keeper.go +19 -28
- package/x/vtransfer/types/expected_keepers.go +15 -8
- package/x/vtransfer/utils_test.go +4 -9
package/x/vibc/types/msgs.pb.go
CHANGED
|
@@ -7,11 +7,11 @@ import (
|
|
|
7
7
|
context "context"
|
|
8
8
|
fmt "fmt"
|
|
9
9
|
github_com_cosmos_cosmos_sdk_types "github.com/cosmos/cosmos-sdk/types"
|
|
10
|
+
_ "github.com/cosmos/cosmos-sdk/types/msgservice"
|
|
10
11
|
_ "github.com/cosmos/cosmos-sdk/types/tx/amino"
|
|
11
12
|
_ "github.com/cosmos/gogoproto/gogoproto"
|
|
12
13
|
grpc1 "github.com/cosmos/gogoproto/grpc"
|
|
13
14
|
proto "github.com/cosmos/gogoproto/proto"
|
|
14
|
-
types "github.com/cosmos/ibc-go/v8/modules/core/04-channel/types"
|
|
15
15
|
grpc "google.golang.org/grpc"
|
|
16
16
|
codes "google.golang.org/grpc/codes"
|
|
17
17
|
status "google.golang.org/grpc/status"
|
|
@@ -33,7 +33,7 @@ const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
|
|
|
33
33
|
|
|
34
34
|
// MsgSendPacket is an SDK message for sending an outgoing IBC packet
|
|
35
35
|
type MsgSendPacket struct {
|
|
36
|
-
Packet
|
|
36
|
+
Packet Packet `protobuf:"bytes,1,opt,name=packet,proto3" json:"packet" yaml:"packet"`
|
|
37
37
|
Sender github_com_cosmos_cosmos_sdk_types.AccAddress `protobuf:"bytes,2,opt,name=sender,proto3,casttype=github.com/cosmos/cosmos-sdk/types.AccAddress" json:"submitter" yaml:"submitter"`
|
|
38
38
|
}
|
|
39
39
|
|
|
@@ -70,11 +70,11 @@ func (m *MsgSendPacket) XXX_DiscardUnknown() {
|
|
|
70
70
|
|
|
71
71
|
var xxx_messageInfo_MsgSendPacket proto.InternalMessageInfo
|
|
72
72
|
|
|
73
|
-
func (m *MsgSendPacket) GetPacket()
|
|
73
|
+
func (m *MsgSendPacket) GetPacket() Packet {
|
|
74
74
|
if m != nil {
|
|
75
75
|
return m.Packet
|
|
76
76
|
}
|
|
77
|
-
return
|
|
77
|
+
return Packet{}
|
|
78
78
|
}
|
|
79
79
|
|
|
80
80
|
func (m *MsgSendPacket) GetSender() github_com_cosmos_cosmos_sdk_types.AccAddress {
|
|
@@ -121,41 +121,159 @@ func (m *MsgSendPacketResponse) XXX_DiscardUnknown() {
|
|
|
121
121
|
|
|
122
122
|
var xxx_messageInfo_MsgSendPacketResponse proto.InternalMessageInfo
|
|
123
123
|
|
|
124
|
+
// Packet defines a type that carries data across different chains through IBC.
|
|
125
|
+
// The fields in the Packet correspond to the fields in the IBC packet
|
|
126
|
+
// definition in ibc/core/channel/v1/channel.proto, but with amino and gogoproto
|
|
127
|
+
// options to ensure compatibility with the Cosmos SDK's Protobuf code
|
|
128
|
+
// generation and JSON encoding. See ibc/core/channel/v1/channel.proto for more
|
|
129
|
+
// details on the semantics of each field in the Packet.
|
|
130
|
+
type Packet struct {
|
|
131
|
+
// number corresponds to the order of sends and receives, where a Packet
|
|
132
|
+
// with an earlier sequence number must be sent and received before a Packet
|
|
133
|
+
// with a later sequence number.
|
|
134
|
+
Sequence uint64 `protobuf:"varint,1,opt,name=sequence,proto3" json:"sequence,omitempty"`
|
|
135
|
+
// identifies the port on the sending chain.
|
|
136
|
+
SourcePort string `protobuf:"bytes,2,opt,name=source_port,json=sourcePort,proto3" json:"source_port,omitempty"`
|
|
137
|
+
// identifies the channel end on the sending chain.
|
|
138
|
+
SourceChannel string `protobuf:"bytes,3,opt,name=source_channel,json=sourceChannel,proto3" json:"source_channel,omitempty"`
|
|
139
|
+
// identifies the port on the receiving chain.
|
|
140
|
+
DestinationPort string `protobuf:"bytes,4,opt,name=destination_port,json=destinationPort,proto3" json:"destination_port,omitempty"`
|
|
141
|
+
// identifies the channel end on the receiving chain.
|
|
142
|
+
DestinationChannel string `protobuf:"bytes,5,opt,name=destination_channel,json=destinationChannel,proto3" json:"destination_channel,omitempty"`
|
|
143
|
+
// actual opaque bytes transferred directly to the application module
|
|
144
|
+
Data []byte `protobuf:"bytes,6,opt,name=data,proto3" json:"data,omitempty"`
|
|
145
|
+
// block height after which the packet times out
|
|
146
|
+
TimeoutHeight Height `protobuf:"bytes,7,opt,name=timeout_height,json=timeoutHeight,proto3" json:"timeout_height"`
|
|
147
|
+
// block timestamp (in nanoseconds) after which the packet times out
|
|
148
|
+
TimeoutTimestamp uint64 `protobuf:"varint,8,opt,name=timeout_timestamp,json=timeoutTimestamp,proto3" json:"timeout_timestamp,omitempty"`
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
func (m *Packet) Reset() { *m = Packet{} }
|
|
152
|
+
func (m *Packet) String() string { return proto.CompactTextString(m) }
|
|
153
|
+
func (*Packet) ProtoMessage() {}
|
|
154
|
+
func (*Packet) Descriptor() ([]byte, []int) {
|
|
155
|
+
return fileDescriptor_78e9bb7be62a4c00, []int{2}
|
|
156
|
+
}
|
|
157
|
+
func (m *Packet) XXX_Unmarshal(b []byte) error {
|
|
158
|
+
return m.Unmarshal(b)
|
|
159
|
+
}
|
|
160
|
+
func (m *Packet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
161
|
+
if deterministic {
|
|
162
|
+
return xxx_messageInfo_Packet.Marshal(b, m, deterministic)
|
|
163
|
+
} else {
|
|
164
|
+
b = b[:cap(b)]
|
|
165
|
+
n, err := m.MarshalToSizedBuffer(b)
|
|
166
|
+
if err != nil {
|
|
167
|
+
return nil, err
|
|
168
|
+
}
|
|
169
|
+
return b[:n], nil
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
func (m *Packet) XXX_Merge(src proto.Message) {
|
|
173
|
+
xxx_messageInfo_Packet.Merge(m, src)
|
|
174
|
+
}
|
|
175
|
+
func (m *Packet) XXX_Size() int {
|
|
176
|
+
return m.Size()
|
|
177
|
+
}
|
|
178
|
+
func (m *Packet) XXX_DiscardUnknown() {
|
|
179
|
+
xxx_messageInfo_Packet.DiscardUnknown(m)
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
var xxx_messageInfo_Packet proto.InternalMessageInfo
|
|
183
|
+
|
|
184
|
+
// Height is a local type that enforces amino and gogoproto compatibility for
|
|
185
|
+
// the Height type used in IBC. See ibc/core/client/v1/client.proto for more
|
|
186
|
+
// details on the Height type.
|
|
187
|
+
type Height struct {
|
|
188
|
+
// the revision that the client is currently on
|
|
189
|
+
RevisionNumber uint64 `protobuf:"varint,1,opt,name=revision_number,json=revisionNumber,proto3" json:"revision_number"`
|
|
190
|
+
// the height within the given revision
|
|
191
|
+
RevisionHeight uint64 `protobuf:"varint,2,opt,name=revision_height,json=revisionHeight,proto3" json:"revision_height"`
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
func (m *Height) Reset() { *m = Height{} }
|
|
195
|
+
func (m *Height) String() string { return proto.CompactTextString(m) }
|
|
196
|
+
func (*Height) ProtoMessage() {}
|
|
197
|
+
func (*Height) Descriptor() ([]byte, []int) {
|
|
198
|
+
return fileDescriptor_78e9bb7be62a4c00, []int{3}
|
|
199
|
+
}
|
|
200
|
+
func (m *Height) XXX_Unmarshal(b []byte) error {
|
|
201
|
+
return m.Unmarshal(b)
|
|
202
|
+
}
|
|
203
|
+
func (m *Height) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
204
|
+
if deterministic {
|
|
205
|
+
return xxx_messageInfo_Height.Marshal(b, m, deterministic)
|
|
206
|
+
} else {
|
|
207
|
+
b = b[:cap(b)]
|
|
208
|
+
n, err := m.MarshalToSizedBuffer(b)
|
|
209
|
+
if err != nil {
|
|
210
|
+
return nil, err
|
|
211
|
+
}
|
|
212
|
+
return b[:n], nil
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
func (m *Height) XXX_Merge(src proto.Message) {
|
|
216
|
+
xxx_messageInfo_Height.Merge(m, src)
|
|
217
|
+
}
|
|
218
|
+
func (m *Height) XXX_Size() int {
|
|
219
|
+
return m.Size()
|
|
220
|
+
}
|
|
221
|
+
func (m *Height) XXX_DiscardUnknown() {
|
|
222
|
+
xxx_messageInfo_Height.DiscardUnknown(m)
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
var xxx_messageInfo_Height proto.InternalMessageInfo
|
|
226
|
+
|
|
124
227
|
func init() {
|
|
125
228
|
proto.RegisterType((*MsgSendPacket)(nil), "agoric.vibc.MsgSendPacket")
|
|
126
229
|
proto.RegisterType((*MsgSendPacketResponse)(nil), "agoric.vibc.MsgSendPacketResponse")
|
|
230
|
+
proto.RegisterType((*Packet)(nil), "agoric.vibc.Packet")
|
|
231
|
+
proto.RegisterType((*Height)(nil), "agoric.vibc.Height")
|
|
127
232
|
}
|
|
128
233
|
|
|
129
234
|
func init() { proto.RegisterFile("agoric/vibc/msgs.proto", fileDescriptor_78e9bb7be62a4c00) }
|
|
130
235
|
|
|
131
236
|
var fileDescriptor_78e9bb7be62a4c00 = []byte{
|
|
132
|
-
//
|
|
133
|
-
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74,
|
|
134
|
-
0x14,
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
237
|
+
// 613 bytes of a gzipped FileDescriptorProto
|
|
238
|
+
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x54, 0xbf, 0x6f, 0xd3, 0x4e,
|
|
239
|
+
0x14, 0xb7, 0xd3, 0xd4, 0xdf, 0xf6, 0xf2, 0xcd, 0x8f, 0xba, 0x40, 0x2d, 0x0f, 0x76, 0x65, 0x09,
|
|
240
|
+
0xa9, 0x04, 0xd5, 0x16, 0x65, 0x40, 0xca, 0x44, 0xc2, 0xc2, 0xd0, 0xa2, 0x62, 0x98, 0xba, 0x44,
|
|
241
|
+
0x17, 0xfb, 0xe4, 0x58, 0x8d, 0x7d, 0xc6, 0x77, 0x8e, 0xc8, 0xc6, 0x82, 0x84, 0x60, 0x61, 0x60,
|
|
242
|
+
0x62, 0xaa, 0x98, 0x18, 0xf3, 0x67, 0x74, 0x2c, 0x1b, 0x93, 0x85, 0x92, 0x21, 0x28, 0x63, 0x47,
|
|
243
|
+
0x26, 0xe4, 0x3b, 0xbb, 0x75, 0xaa, 0xb2, 0xf8, 0xde, 0x7d, 0x3e, 0xef, 0x3e, 0xf7, 0xde, 0xbb,
|
|
244
|
+
0xf7, 0x0c, 0xee, 0x41, 0x0f, 0xc7, 0xbe, 0x63, 0x8d, 0xfd, 0x81, 0x63, 0x05, 0xc4, 0x23, 0x66,
|
|
245
|
+
0x14, 0x63, 0x8a, 0xe5, 0x1a, 0xc7, 0xcd, 0x0c, 0x57, 0xb7, 0x60, 0xe0, 0x87, 0xd8, 0x62, 0x5f,
|
|
246
|
+
0xce, 0xab, 0x77, 0x3c, 0xec, 0x61, 0x66, 0x5a, 0x99, 0x95, 0xa3, 0x3b, 0x0e, 0x26, 0x01, 0x26,
|
|
247
|
+
0x99, 0x90, 0x35, 0x7e, 0x94, 0x2d, 0x9c, 0x30, 0xde, 0x57, 0x40, 0xfd, 0x88, 0x78, 0xaf, 0x50,
|
|
248
|
+
0xe8, 0x1e, 0x43, 0xe7, 0x14, 0x51, 0xf9, 0x10, 0x48, 0x11, 0xb3, 0x14, 0x71, 0x57, 0xdc, 0xab,
|
|
249
|
+
0x1d, 0x6c, 0x9b, 0xa5, 0x1b, 0x4d, 0xee, 0xd4, 0xd3, 0xcf, 0x53, 0x5d, 0x58, 0xa6, 0x7a, 0xee,
|
|
250
|
+
0x7a, 0x99, 0xea, 0xf5, 0x09, 0x0c, 0x46, 0x1d, 0x83, 0xef, 0x0d, 0x3b, 0x27, 0xe4, 0x4f, 0x22,
|
|
251
|
+
0x90, 0x08, 0x0a, 0x5d, 0x14, 0x2b, 0x95, 0x5d, 0x71, 0xef, 0xff, 0x1e, 0x59, 0xa6, 0xfa, 0x26,
|
|
252
|
+
0x49, 0x06, 0x81, 0x4f, 0x29, 0x8a, 0x2f, 0x53, 0xbd, 0xc5, 0x0f, 0x5e, 0x41, 0xc6, 0x9f, 0x54,
|
|
253
|
+
0xdf, 0xf7, 0x7c, 0x3a, 0x4c, 0x06, 0xa6, 0x83, 0x03, 0x2b, 0x8f, 0x9c, 0x2f, 0xfb, 0xc4, 0x3d,
|
|
254
|
+
0xb5, 0xe8, 0x24, 0x42, 0xc4, 0xec, 0x3a, 0x4e, 0xd7, 0x75, 0x63, 0x44, 0xc8, 0xd7, 0xc5, 0xb4,
|
|
255
|
+
0xdd, 0x18, 0x21, 0x0f, 0x3a, 0x93, 0x3e, 0xe4, 0xd0, 0xb7, 0xc5, 0xb4, 0x7d, 0x7d, 0x8b, 0x9d,
|
|
256
|
+
0x87, 0xd0, 0x51, 0x7e, 0x9f, 0xe9, 0xc2, 0xc7, 0xc5, 0xb4, 0xdd, 0x64, 0x65, 0xbd, 0xce, 0xda,
|
|
257
|
+
0xd8, 0x01, 0x77, 0x57, 0xca, 0x60, 0x23, 0x12, 0xe1, 0x90, 0x20, 0xe3, 0x47, 0x05, 0x48, 0x79,
|
|
258
|
+
0x65, 0x54, 0xb0, 0x41, 0xd0, 0x9b, 0x04, 0x85, 0x0e, 0x62, 0xb5, 0xa9, 0xda, 0x57, 0x7b, 0x59,
|
|
259
|
+
0x07, 0x35, 0x82, 0x93, 0xd8, 0x41, 0xfd, 0x08, 0xc7, 0x94, 0xe5, 0xba, 0x69, 0x03, 0x0e, 0x1d,
|
|
260
|
+
0xe3, 0x98, 0xca, 0xf7, 0x41, 0x23, 0x77, 0x70, 0x86, 0x30, 0x0c, 0xd1, 0x48, 0x59, 0x63, 0x3e,
|
|
261
|
+
0x75, 0x8e, 0x3e, 0xe3, 0xa0, 0xfc, 0x00, 0xb4, 0x5c, 0x44, 0xa8, 0x1f, 0x42, 0xea, 0xe3, 0x90,
|
|
262
|
+
0x8b, 0x55, 0x99, 0x63, 0xb3, 0x84, 0x33, 0x45, 0x0b, 0x6c, 0x97, 0x5d, 0x0b, 0xd9, 0x75, 0xe6,
|
|
263
|
+
0x2d, 0x97, 0xa8, 0x42, 0x5b, 0x06, 0x55, 0x17, 0x52, 0xa8, 0x48, 0xd9, 0x43, 0xd8, 0xcc, 0x96,
|
|
264
|
+
0x9f, 0x82, 0x06, 0xf5, 0x03, 0x84, 0x13, 0xda, 0x1f, 0x22, 0xdf, 0x1b, 0x52, 0xe5, 0xbf, 0x5b,
|
|
265
|
+
0x5e, 0xfd, 0x39, 0xa3, 0x7a, 0xd5, 0xec, 0xd5, 0xed, 0x7a, 0x7e, 0x80, 0x83, 0xf2, 0x43, 0xb0,
|
|
266
|
+
0x55, 0x28, 0x64, 0x2b, 0xa1, 0x30, 0x88, 0x94, 0x0d, 0x56, 0x9e, 0x56, 0x4e, 0xbc, 0x2e, 0xf0,
|
|
267
|
+
0x4e, 0xf5, 0xc3, 0x99, 0x2e, 0x18, 0x5f, 0x44, 0x20, 0xe5, 0xa7, 0xbb, 0xa0, 0x19, 0xa3, 0xb1,
|
|
268
|
+
0x4f, 0xb2, 0x0c, 0xc2, 0x24, 0x18, 0xa0, 0x98, 0x97, 0xb6, 0xa7, 0x2c, 0x53, 0xfd, 0x26, 0xf5,
|
|
269
|
+
0x7d, 0x31, 0x6d, 0x8b, 0x76, 0xa3, 0x40, 0x5f, 0x30, 0x70, 0x45, 0x22, 0xcf, 0xa1, 0x72, 0x8b,
|
|
270
|
+
0x04, 0xa7, 0x6e, 0x48, 0xf0, 0x28, 0x78, 0x58, 0x07, 0x27, 0x60, 0xed, 0x88, 0x78, 0xf2, 0x21,
|
|
271
|
+
0x00, 0xa5, 0x71, 0x50, 0x57, 0x0a, 0xb1, 0xd2, 0x23, 0xaa, 0xf1, 0x6f, 0xae, 0xe8, 0x1f, 0x75,
|
|
272
|
+
0xfd, 0x5d, 0x76, 0x63, 0xef, 0xe5, 0xf9, 0x4c, 0x13, 0x2f, 0x66, 0x9a, 0xf8, 0x6b, 0xa6, 0x89,
|
|
273
|
+
0x9f, 0xe7, 0x9a, 0x70, 0x31, 0xd7, 0x84, 0x9f, 0x73, 0x4d, 0x38, 0x79, 0x52, 0xea, 0xf5, 0x2e,
|
|
274
|
+
0x9f, 0x79, 0xae, 0xca, 0x7a, 0xdd, 0xc3, 0x23, 0x18, 0x7a, 0xc5, 0x10, 0xbc, 0xe5, 0xbf, 0x03,
|
|
275
|
+
0x36, 0x00, 0x03, 0x89, 0x4d, 0xf0, 0xe3, 0xbf, 0x01, 0x00, 0x00, 0xff, 0xff, 0xbd, 0x67, 0x21,
|
|
276
|
+
0x23, 0x2a, 0x04, 0x00, 0x00,
|
|
159
277
|
}
|
|
160
278
|
|
|
161
279
|
// Reference imports to suppress errors if they are not otherwise used.
|
|
@@ -304,6 +422,117 @@ func (m *MsgSendPacketResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
|
304
422
|
return len(dAtA) - i, nil
|
|
305
423
|
}
|
|
306
424
|
|
|
425
|
+
func (m *Packet) Marshal() (dAtA []byte, err error) {
|
|
426
|
+
size := m.Size()
|
|
427
|
+
dAtA = make([]byte, size)
|
|
428
|
+
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
|
429
|
+
if err != nil {
|
|
430
|
+
return nil, err
|
|
431
|
+
}
|
|
432
|
+
return dAtA[:n], nil
|
|
433
|
+
}
|
|
434
|
+
|
|
435
|
+
func (m *Packet) MarshalTo(dAtA []byte) (int, error) {
|
|
436
|
+
size := m.Size()
|
|
437
|
+
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
438
|
+
}
|
|
439
|
+
|
|
440
|
+
func (m *Packet) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
441
|
+
i := len(dAtA)
|
|
442
|
+
_ = i
|
|
443
|
+
var l int
|
|
444
|
+
_ = l
|
|
445
|
+
if m.TimeoutTimestamp != 0 {
|
|
446
|
+
i = encodeVarintMsgs(dAtA, i, uint64(m.TimeoutTimestamp))
|
|
447
|
+
i--
|
|
448
|
+
dAtA[i] = 0x40
|
|
449
|
+
}
|
|
450
|
+
{
|
|
451
|
+
size, err := m.TimeoutHeight.MarshalToSizedBuffer(dAtA[:i])
|
|
452
|
+
if err != nil {
|
|
453
|
+
return 0, err
|
|
454
|
+
}
|
|
455
|
+
i -= size
|
|
456
|
+
i = encodeVarintMsgs(dAtA, i, uint64(size))
|
|
457
|
+
}
|
|
458
|
+
i--
|
|
459
|
+
dAtA[i] = 0x3a
|
|
460
|
+
if len(m.Data) > 0 {
|
|
461
|
+
i -= len(m.Data)
|
|
462
|
+
copy(dAtA[i:], m.Data)
|
|
463
|
+
i = encodeVarintMsgs(dAtA, i, uint64(len(m.Data)))
|
|
464
|
+
i--
|
|
465
|
+
dAtA[i] = 0x32
|
|
466
|
+
}
|
|
467
|
+
if len(m.DestinationChannel) > 0 {
|
|
468
|
+
i -= len(m.DestinationChannel)
|
|
469
|
+
copy(dAtA[i:], m.DestinationChannel)
|
|
470
|
+
i = encodeVarintMsgs(dAtA, i, uint64(len(m.DestinationChannel)))
|
|
471
|
+
i--
|
|
472
|
+
dAtA[i] = 0x2a
|
|
473
|
+
}
|
|
474
|
+
if len(m.DestinationPort) > 0 {
|
|
475
|
+
i -= len(m.DestinationPort)
|
|
476
|
+
copy(dAtA[i:], m.DestinationPort)
|
|
477
|
+
i = encodeVarintMsgs(dAtA, i, uint64(len(m.DestinationPort)))
|
|
478
|
+
i--
|
|
479
|
+
dAtA[i] = 0x22
|
|
480
|
+
}
|
|
481
|
+
if len(m.SourceChannel) > 0 {
|
|
482
|
+
i -= len(m.SourceChannel)
|
|
483
|
+
copy(dAtA[i:], m.SourceChannel)
|
|
484
|
+
i = encodeVarintMsgs(dAtA, i, uint64(len(m.SourceChannel)))
|
|
485
|
+
i--
|
|
486
|
+
dAtA[i] = 0x1a
|
|
487
|
+
}
|
|
488
|
+
if len(m.SourcePort) > 0 {
|
|
489
|
+
i -= len(m.SourcePort)
|
|
490
|
+
copy(dAtA[i:], m.SourcePort)
|
|
491
|
+
i = encodeVarintMsgs(dAtA, i, uint64(len(m.SourcePort)))
|
|
492
|
+
i--
|
|
493
|
+
dAtA[i] = 0x12
|
|
494
|
+
}
|
|
495
|
+
if m.Sequence != 0 {
|
|
496
|
+
i = encodeVarintMsgs(dAtA, i, uint64(m.Sequence))
|
|
497
|
+
i--
|
|
498
|
+
dAtA[i] = 0x8
|
|
499
|
+
}
|
|
500
|
+
return len(dAtA) - i, nil
|
|
501
|
+
}
|
|
502
|
+
|
|
503
|
+
func (m *Height) Marshal() (dAtA []byte, err error) {
|
|
504
|
+
size := m.Size()
|
|
505
|
+
dAtA = make([]byte, size)
|
|
506
|
+
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
|
507
|
+
if err != nil {
|
|
508
|
+
return nil, err
|
|
509
|
+
}
|
|
510
|
+
return dAtA[:n], nil
|
|
511
|
+
}
|
|
512
|
+
|
|
513
|
+
func (m *Height) MarshalTo(dAtA []byte) (int, error) {
|
|
514
|
+
size := m.Size()
|
|
515
|
+
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
516
|
+
}
|
|
517
|
+
|
|
518
|
+
func (m *Height) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
519
|
+
i := len(dAtA)
|
|
520
|
+
_ = i
|
|
521
|
+
var l int
|
|
522
|
+
_ = l
|
|
523
|
+
if m.RevisionHeight != 0 {
|
|
524
|
+
i = encodeVarintMsgs(dAtA, i, uint64(m.RevisionHeight))
|
|
525
|
+
i--
|
|
526
|
+
dAtA[i] = 0x10
|
|
527
|
+
}
|
|
528
|
+
if m.RevisionNumber != 0 {
|
|
529
|
+
i = encodeVarintMsgs(dAtA, i, uint64(m.RevisionNumber))
|
|
530
|
+
i--
|
|
531
|
+
dAtA[i] = 0x8
|
|
532
|
+
}
|
|
533
|
+
return len(dAtA) - i, nil
|
|
534
|
+
}
|
|
535
|
+
|
|
307
536
|
func encodeVarintMsgs(dAtA []byte, offset int, v uint64) int {
|
|
308
537
|
offset -= sovMsgs(v)
|
|
309
538
|
base := offset
|
|
@@ -339,6 +568,58 @@ func (m *MsgSendPacketResponse) Size() (n int) {
|
|
|
339
568
|
return n
|
|
340
569
|
}
|
|
341
570
|
|
|
571
|
+
func (m *Packet) Size() (n int) {
|
|
572
|
+
if m == nil {
|
|
573
|
+
return 0
|
|
574
|
+
}
|
|
575
|
+
var l int
|
|
576
|
+
_ = l
|
|
577
|
+
if m.Sequence != 0 {
|
|
578
|
+
n += 1 + sovMsgs(uint64(m.Sequence))
|
|
579
|
+
}
|
|
580
|
+
l = len(m.SourcePort)
|
|
581
|
+
if l > 0 {
|
|
582
|
+
n += 1 + l + sovMsgs(uint64(l))
|
|
583
|
+
}
|
|
584
|
+
l = len(m.SourceChannel)
|
|
585
|
+
if l > 0 {
|
|
586
|
+
n += 1 + l + sovMsgs(uint64(l))
|
|
587
|
+
}
|
|
588
|
+
l = len(m.DestinationPort)
|
|
589
|
+
if l > 0 {
|
|
590
|
+
n += 1 + l + sovMsgs(uint64(l))
|
|
591
|
+
}
|
|
592
|
+
l = len(m.DestinationChannel)
|
|
593
|
+
if l > 0 {
|
|
594
|
+
n += 1 + l + sovMsgs(uint64(l))
|
|
595
|
+
}
|
|
596
|
+
l = len(m.Data)
|
|
597
|
+
if l > 0 {
|
|
598
|
+
n += 1 + l + sovMsgs(uint64(l))
|
|
599
|
+
}
|
|
600
|
+
l = m.TimeoutHeight.Size()
|
|
601
|
+
n += 1 + l + sovMsgs(uint64(l))
|
|
602
|
+
if m.TimeoutTimestamp != 0 {
|
|
603
|
+
n += 1 + sovMsgs(uint64(m.TimeoutTimestamp))
|
|
604
|
+
}
|
|
605
|
+
return n
|
|
606
|
+
}
|
|
607
|
+
|
|
608
|
+
func (m *Height) Size() (n int) {
|
|
609
|
+
if m == nil {
|
|
610
|
+
return 0
|
|
611
|
+
}
|
|
612
|
+
var l int
|
|
613
|
+
_ = l
|
|
614
|
+
if m.RevisionNumber != 0 {
|
|
615
|
+
n += 1 + sovMsgs(uint64(m.RevisionNumber))
|
|
616
|
+
}
|
|
617
|
+
if m.RevisionHeight != 0 {
|
|
618
|
+
n += 1 + sovMsgs(uint64(m.RevisionHeight))
|
|
619
|
+
}
|
|
620
|
+
return n
|
|
621
|
+
}
|
|
622
|
+
|
|
342
623
|
func sovMsgs(x uint64) (n int) {
|
|
343
624
|
return (math_bits.Len64(x|1) + 6) / 7
|
|
344
625
|
}
|
|
@@ -512,6 +793,377 @@ func (m *MsgSendPacketResponse) Unmarshal(dAtA []byte) error {
|
|
|
512
793
|
}
|
|
513
794
|
return nil
|
|
514
795
|
}
|
|
796
|
+
func (m *Packet) Unmarshal(dAtA []byte) error {
|
|
797
|
+
l := len(dAtA)
|
|
798
|
+
iNdEx := 0
|
|
799
|
+
for iNdEx < l {
|
|
800
|
+
preIndex := iNdEx
|
|
801
|
+
var wire uint64
|
|
802
|
+
for shift := uint(0); ; shift += 7 {
|
|
803
|
+
if shift >= 64 {
|
|
804
|
+
return ErrIntOverflowMsgs
|
|
805
|
+
}
|
|
806
|
+
if iNdEx >= l {
|
|
807
|
+
return io.ErrUnexpectedEOF
|
|
808
|
+
}
|
|
809
|
+
b := dAtA[iNdEx]
|
|
810
|
+
iNdEx++
|
|
811
|
+
wire |= uint64(b&0x7F) << shift
|
|
812
|
+
if b < 0x80 {
|
|
813
|
+
break
|
|
814
|
+
}
|
|
815
|
+
}
|
|
816
|
+
fieldNum := int32(wire >> 3)
|
|
817
|
+
wireType := int(wire & 0x7)
|
|
818
|
+
if wireType == 4 {
|
|
819
|
+
return fmt.Errorf("proto: Packet: wiretype end group for non-group")
|
|
820
|
+
}
|
|
821
|
+
if fieldNum <= 0 {
|
|
822
|
+
return fmt.Errorf("proto: Packet: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
823
|
+
}
|
|
824
|
+
switch fieldNum {
|
|
825
|
+
case 1:
|
|
826
|
+
if wireType != 0 {
|
|
827
|
+
return fmt.Errorf("proto: wrong wireType = %d for field Sequence", wireType)
|
|
828
|
+
}
|
|
829
|
+
m.Sequence = 0
|
|
830
|
+
for shift := uint(0); ; shift += 7 {
|
|
831
|
+
if shift >= 64 {
|
|
832
|
+
return ErrIntOverflowMsgs
|
|
833
|
+
}
|
|
834
|
+
if iNdEx >= l {
|
|
835
|
+
return io.ErrUnexpectedEOF
|
|
836
|
+
}
|
|
837
|
+
b := dAtA[iNdEx]
|
|
838
|
+
iNdEx++
|
|
839
|
+
m.Sequence |= uint64(b&0x7F) << shift
|
|
840
|
+
if b < 0x80 {
|
|
841
|
+
break
|
|
842
|
+
}
|
|
843
|
+
}
|
|
844
|
+
case 2:
|
|
845
|
+
if wireType != 2 {
|
|
846
|
+
return fmt.Errorf("proto: wrong wireType = %d for field SourcePort", wireType)
|
|
847
|
+
}
|
|
848
|
+
var stringLen uint64
|
|
849
|
+
for shift := uint(0); ; shift += 7 {
|
|
850
|
+
if shift >= 64 {
|
|
851
|
+
return ErrIntOverflowMsgs
|
|
852
|
+
}
|
|
853
|
+
if iNdEx >= l {
|
|
854
|
+
return io.ErrUnexpectedEOF
|
|
855
|
+
}
|
|
856
|
+
b := dAtA[iNdEx]
|
|
857
|
+
iNdEx++
|
|
858
|
+
stringLen |= uint64(b&0x7F) << shift
|
|
859
|
+
if b < 0x80 {
|
|
860
|
+
break
|
|
861
|
+
}
|
|
862
|
+
}
|
|
863
|
+
intStringLen := int(stringLen)
|
|
864
|
+
if intStringLen < 0 {
|
|
865
|
+
return ErrInvalidLengthMsgs
|
|
866
|
+
}
|
|
867
|
+
postIndex := iNdEx + intStringLen
|
|
868
|
+
if postIndex < 0 {
|
|
869
|
+
return ErrInvalidLengthMsgs
|
|
870
|
+
}
|
|
871
|
+
if postIndex > l {
|
|
872
|
+
return io.ErrUnexpectedEOF
|
|
873
|
+
}
|
|
874
|
+
m.SourcePort = string(dAtA[iNdEx:postIndex])
|
|
875
|
+
iNdEx = postIndex
|
|
876
|
+
case 3:
|
|
877
|
+
if wireType != 2 {
|
|
878
|
+
return fmt.Errorf("proto: wrong wireType = %d for field SourceChannel", wireType)
|
|
879
|
+
}
|
|
880
|
+
var stringLen uint64
|
|
881
|
+
for shift := uint(0); ; shift += 7 {
|
|
882
|
+
if shift >= 64 {
|
|
883
|
+
return ErrIntOverflowMsgs
|
|
884
|
+
}
|
|
885
|
+
if iNdEx >= l {
|
|
886
|
+
return io.ErrUnexpectedEOF
|
|
887
|
+
}
|
|
888
|
+
b := dAtA[iNdEx]
|
|
889
|
+
iNdEx++
|
|
890
|
+
stringLen |= uint64(b&0x7F) << shift
|
|
891
|
+
if b < 0x80 {
|
|
892
|
+
break
|
|
893
|
+
}
|
|
894
|
+
}
|
|
895
|
+
intStringLen := int(stringLen)
|
|
896
|
+
if intStringLen < 0 {
|
|
897
|
+
return ErrInvalidLengthMsgs
|
|
898
|
+
}
|
|
899
|
+
postIndex := iNdEx + intStringLen
|
|
900
|
+
if postIndex < 0 {
|
|
901
|
+
return ErrInvalidLengthMsgs
|
|
902
|
+
}
|
|
903
|
+
if postIndex > l {
|
|
904
|
+
return io.ErrUnexpectedEOF
|
|
905
|
+
}
|
|
906
|
+
m.SourceChannel = string(dAtA[iNdEx:postIndex])
|
|
907
|
+
iNdEx = postIndex
|
|
908
|
+
case 4:
|
|
909
|
+
if wireType != 2 {
|
|
910
|
+
return fmt.Errorf("proto: wrong wireType = %d for field DestinationPort", wireType)
|
|
911
|
+
}
|
|
912
|
+
var stringLen uint64
|
|
913
|
+
for shift := uint(0); ; shift += 7 {
|
|
914
|
+
if shift >= 64 {
|
|
915
|
+
return ErrIntOverflowMsgs
|
|
916
|
+
}
|
|
917
|
+
if iNdEx >= l {
|
|
918
|
+
return io.ErrUnexpectedEOF
|
|
919
|
+
}
|
|
920
|
+
b := dAtA[iNdEx]
|
|
921
|
+
iNdEx++
|
|
922
|
+
stringLen |= uint64(b&0x7F) << shift
|
|
923
|
+
if b < 0x80 {
|
|
924
|
+
break
|
|
925
|
+
}
|
|
926
|
+
}
|
|
927
|
+
intStringLen := int(stringLen)
|
|
928
|
+
if intStringLen < 0 {
|
|
929
|
+
return ErrInvalidLengthMsgs
|
|
930
|
+
}
|
|
931
|
+
postIndex := iNdEx + intStringLen
|
|
932
|
+
if postIndex < 0 {
|
|
933
|
+
return ErrInvalidLengthMsgs
|
|
934
|
+
}
|
|
935
|
+
if postIndex > l {
|
|
936
|
+
return io.ErrUnexpectedEOF
|
|
937
|
+
}
|
|
938
|
+
m.DestinationPort = string(dAtA[iNdEx:postIndex])
|
|
939
|
+
iNdEx = postIndex
|
|
940
|
+
case 5:
|
|
941
|
+
if wireType != 2 {
|
|
942
|
+
return fmt.Errorf("proto: wrong wireType = %d for field DestinationChannel", wireType)
|
|
943
|
+
}
|
|
944
|
+
var stringLen uint64
|
|
945
|
+
for shift := uint(0); ; shift += 7 {
|
|
946
|
+
if shift >= 64 {
|
|
947
|
+
return ErrIntOverflowMsgs
|
|
948
|
+
}
|
|
949
|
+
if iNdEx >= l {
|
|
950
|
+
return io.ErrUnexpectedEOF
|
|
951
|
+
}
|
|
952
|
+
b := dAtA[iNdEx]
|
|
953
|
+
iNdEx++
|
|
954
|
+
stringLen |= uint64(b&0x7F) << shift
|
|
955
|
+
if b < 0x80 {
|
|
956
|
+
break
|
|
957
|
+
}
|
|
958
|
+
}
|
|
959
|
+
intStringLen := int(stringLen)
|
|
960
|
+
if intStringLen < 0 {
|
|
961
|
+
return ErrInvalidLengthMsgs
|
|
962
|
+
}
|
|
963
|
+
postIndex := iNdEx + intStringLen
|
|
964
|
+
if postIndex < 0 {
|
|
965
|
+
return ErrInvalidLengthMsgs
|
|
966
|
+
}
|
|
967
|
+
if postIndex > l {
|
|
968
|
+
return io.ErrUnexpectedEOF
|
|
969
|
+
}
|
|
970
|
+
m.DestinationChannel = string(dAtA[iNdEx:postIndex])
|
|
971
|
+
iNdEx = postIndex
|
|
972
|
+
case 6:
|
|
973
|
+
if wireType != 2 {
|
|
974
|
+
return fmt.Errorf("proto: wrong wireType = %d for field Data", wireType)
|
|
975
|
+
}
|
|
976
|
+
var byteLen int
|
|
977
|
+
for shift := uint(0); ; shift += 7 {
|
|
978
|
+
if shift >= 64 {
|
|
979
|
+
return ErrIntOverflowMsgs
|
|
980
|
+
}
|
|
981
|
+
if iNdEx >= l {
|
|
982
|
+
return io.ErrUnexpectedEOF
|
|
983
|
+
}
|
|
984
|
+
b := dAtA[iNdEx]
|
|
985
|
+
iNdEx++
|
|
986
|
+
byteLen |= int(b&0x7F) << shift
|
|
987
|
+
if b < 0x80 {
|
|
988
|
+
break
|
|
989
|
+
}
|
|
990
|
+
}
|
|
991
|
+
if byteLen < 0 {
|
|
992
|
+
return ErrInvalidLengthMsgs
|
|
993
|
+
}
|
|
994
|
+
postIndex := iNdEx + byteLen
|
|
995
|
+
if postIndex < 0 {
|
|
996
|
+
return ErrInvalidLengthMsgs
|
|
997
|
+
}
|
|
998
|
+
if postIndex > l {
|
|
999
|
+
return io.ErrUnexpectedEOF
|
|
1000
|
+
}
|
|
1001
|
+
m.Data = append(m.Data[:0], dAtA[iNdEx:postIndex]...)
|
|
1002
|
+
if m.Data == nil {
|
|
1003
|
+
m.Data = []byte{}
|
|
1004
|
+
}
|
|
1005
|
+
iNdEx = postIndex
|
|
1006
|
+
case 7:
|
|
1007
|
+
if wireType != 2 {
|
|
1008
|
+
return fmt.Errorf("proto: wrong wireType = %d for field TimeoutHeight", wireType)
|
|
1009
|
+
}
|
|
1010
|
+
var msglen int
|
|
1011
|
+
for shift := uint(0); ; shift += 7 {
|
|
1012
|
+
if shift >= 64 {
|
|
1013
|
+
return ErrIntOverflowMsgs
|
|
1014
|
+
}
|
|
1015
|
+
if iNdEx >= l {
|
|
1016
|
+
return io.ErrUnexpectedEOF
|
|
1017
|
+
}
|
|
1018
|
+
b := dAtA[iNdEx]
|
|
1019
|
+
iNdEx++
|
|
1020
|
+
msglen |= int(b&0x7F) << shift
|
|
1021
|
+
if b < 0x80 {
|
|
1022
|
+
break
|
|
1023
|
+
}
|
|
1024
|
+
}
|
|
1025
|
+
if msglen < 0 {
|
|
1026
|
+
return ErrInvalidLengthMsgs
|
|
1027
|
+
}
|
|
1028
|
+
postIndex := iNdEx + msglen
|
|
1029
|
+
if postIndex < 0 {
|
|
1030
|
+
return ErrInvalidLengthMsgs
|
|
1031
|
+
}
|
|
1032
|
+
if postIndex > l {
|
|
1033
|
+
return io.ErrUnexpectedEOF
|
|
1034
|
+
}
|
|
1035
|
+
if err := m.TimeoutHeight.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
1036
|
+
return err
|
|
1037
|
+
}
|
|
1038
|
+
iNdEx = postIndex
|
|
1039
|
+
case 8:
|
|
1040
|
+
if wireType != 0 {
|
|
1041
|
+
return fmt.Errorf("proto: wrong wireType = %d for field TimeoutTimestamp", wireType)
|
|
1042
|
+
}
|
|
1043
|
+
m.TimeoutTimestamp = 0
|
|
1044
|
+
for shift := uint(0); ; shift += 7 {
|
|
1045
|
+
if shift >= 64 {
|
|
1046
|
+
return ErrIntOverflowMsgs
|
|
1047
|
+
}
|
|
1048
|
+
if iNdEx >= l {
|
|
1049
|
+
return io.ErrUnexpectedEOF
|
|
1050
|
+
}
|
|
1051
|
+
b := dAtA[iNdEx]
|
|
1052
|
+
iNdEx++
|
|
1053
|
+
m.TimeoutTimestamp |= uint64(b&0x7F) << shift
|
|
1054
|
+
if b < 0x80 {
|
|
1055
|
+
break
|
|
1056
|
+
}
|
|
1057
|
+
}
|
|
1058
|
+
default:
|
|
1059
|
+
iNdEx = preIndex
|
|
1060
|
+
skippy, err := skipMsgs(dAtA[iNdEx:])
|
|
1061
|
+
if err != nil {
|
|
1062
|
+
return err
|
|
1063
|
+
}
|
|
1064
|
+
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
|
1065
|
+
return ErrInvalidLengthMsgs
|
|
1066
|
+
}
|
|
1067
|
+
if (iNdEx + skippy) > l {
|
|
1068
|
+
return io.ErrUnexpectedEOF
|
|
1069
|
+
}
|
|
1070
|
+
iNdEx += skippy
|
|
1071
|
+
}
|
|
1072
|
+
}
|
|
1073
|
+
|
|
1074
|
+
if iNdEx > l {
|
|
1075
|
+
return io.ErrUnexpectedEOF
|
|
1076
|
+
}
|
|
1077
|
+
return nil
|
|
1078
|
+
}
|
|
1079
|
+
func (m *Height) Unmarshal(dAtA []byte) error {
|
|
1080
|
+
l := len(dAtA)
|
|
1081
|
+
iNdEx := 0
|
|
1082
|
+
for iNdEx < l {
|
|
1083
|
+
preIndex := iNdEx
|
|
1084
|
+
var wire uint64
|
|
1085
|
+
for shift := uint(0); ; shift += 7 {
|
|
1086
|
+
if shift >= 64 {
|
|
1087
|
+
return ErrIntOverflowMsgs
|
|
1088
|
+
}
|
|
1089
|
+
if iNdEx >= l {
|
|
1090
|
+
return io.ErrUnexpectedEOF
|
|
1091
|
+
}
|
|
1092
|
+
b := dAtA[iNdEx]
|
|
1093
|
+
iNdEx++
|
|
1094
|
+
wire |= uint64(b&0x7F) << shift
|
|
1095
|
+
if b < 0x80 {
|
|
1096
|
+
break
|
|
1097
|
+
}
|
|
1098
|
+
}
|
|
1099
|
+
fieldNum := int32(wire >> 3)
|
|
1100
|
+
wireType := int(wire & 0x7)
|
|
1101
|
+
if wireType == 4 {
|
|
1102
|
+
return fmt.Errorf("proto: Height: wiretype end group for non-group")
|
|
1103
|
+
}
|
|
1104
|
+
if fieldNum <= 0 {
|
|
1105
|
+
return fmt.Errorf("proto: Height: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
1106
|
+
}
|
|
1107
|
+
switch fieldNum {
|
|
1108
|
+
case 1:
|
|
1109
|
+
if wireType != 0 {
|
|
1110
|
+
return fmt.Errorf("proto: wrong wireType = %d for field RevisionNumber", wireType)
|
|
1111
|
+
}
|
|
1112
|
+
m.RevisionNumber = 0
|
|
1113
|
+
for shift := uint(0); ; shift += 7 {
|
|
1114
|
+
if shift >= 64 {
|
|
1115
|
+
return ErrIntOverflowMsgs
|
|
1116
|
+
}
|
|
1117
|
+
if iNdEx >= l {
|
|
1118
|
+
return io.ErrUnexpectedEOF
|
|
1119
|
+
}
|
|
1120
|
+
b := dAtA[iNdEx]
|
|
1121
|
+
iNdEx++
|
|
1122
|
+
m.RevisionNumber |= uint64(b&0x7F) << shift
|
|
1123
|
+
if b < 0x80 {
|
|
1124
|
+
break
|
|
1125
|
+
}
|
|
1126
|
+
}
|
|
1127
|
+
case 2:
|
|
1128
|
+
if wireType != 0 {
|
|
1129
|
+
return fmt.Errorf("proto: wrong wireType = %d for field RevisionHeight", wireType)
|
|
1130
|
+
}
|
|
1131
|
+
m.RevisionHeight = 0
|
|
1132
|
+
for shift := uint(0); ; shift += 7 {
|
|
1133
|
+
if shift >= 64 {
|
|
1134
|
+
return ErrIntOverflowMsgs
|
|
1135
|
+
}
|
|
1136
|
+
if iNdEx >= l {
|
|
1137
|
+
return io.ErrUnexpectedEOF
|
|
1138
|
+
}
|
|
1139
|
+
b := dAtA[iNdEx]
|
|
1140
|
+
iNdEx++
|
|
1141
|
+
m.RevisionHeight |= uint64(b&0x7F) << shift
|
|
1142
|
+
if b < 0x80 {
|
|
1143
|
+
break
|
|
1144
|
+
}
|
|
1145
|
+
}
|
|
1146
|
+
default:
|
|
1147
|
+
iNdEx = preIndex
|
|
1148
|
+
skippy, err := skipMsgs(dAtA[iNdEx:])
|
|
1149
|
+
if err != nil {
|
|
1150
|
+
return err
|
|
1151
|
+
}
|
|
1152
|
+
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
|
1153
|
+
return ErrInvalidLengthMsgs
|
|
1154
|
+
}
|
|
1155
|
+
if (iNdEx + skippy) > l {
|
|
1156
|
+
return io.ErrUnexpectedEOF
|
|
1157
|
+
}
|
|
1158
|
+
iNdEx += skippy
|
|
1159
|
+
}
|
|
1160
|
+
}
|
|
1161
|
+
|
|
1162
|
+
if iNdEx > l {
|
|
1163
|
+
return io.ErrUnexpectedEOF
|
|
1164
|
+
}
|
|
1165
|
+
return nil
|
|
1166
|
+
}
|
|
515
1167
|
func skipMsgs(dAtA []byte) (n int, err error) {
|
|
516
1168
|
l := len(dAtA)
|
|
517
1169
|
iNdEx := 0
|