@agoric/cosmos 0.34.2-dev-4ea2a82.0.4ea2a82 → 0.34.2-dev-2858da6.0.2858da6
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 +0 -1
- package/ante/ante.go +2 -2
- package/app/app.go +96 -73
- package/app/sim_test.go +2 -0
- package/app/upgrade.go +6 -6
- package/daemon/cmd/root_test.go +0 -1
- package/git-revision.txt +1 -1
- package/go.mod +116 -83
- package/go.sum +130 -162
- package/package.json +2 -2
- package/proto/agoric/swingset/msgs.proto +0 -1
- package/proto/agoric/vbank/msgs.proto +1 -5
- package/proto/agoric/vibc/msgs.proto +2 -45
- package/scripts/protocgen.sh +1 -10
- package/tests/integrations/types/aminojson_test.go +2 -18
- package/third_party/proto/cosmos/base/query/v1beta1/pagination.proto +3 -2
- package/third_party/proto/cosmos/upgrade/v1beta1/upgrade.proto +3 -2
- package/third_party/proto/ibc/core/channel/v1/channel.proto +22 -6
- package/third_party/proto/ibc/core/client/v1/client.proto +53 -6
- 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 +89 -90
- package/x/vbank/types/msgs.pb.go +8 -10
- package/x/vibc/alias.go +1 -0
- package/x/vibc/keeper/keeper.go +81 -40
- package/x/vibc/keeper/migrations.go +1 -1
- package/x/vibc/keeper/triggers.go +4 -8
- package/x/vibc/types/expected_keepers.go +20 -7
- package/x/vibc/types/ibc_module.go +20 -13
- package/x/vibc/types/msgs.go +3 -60
- package/x/vibc/types/msgs.pb.go +31 -683
- package/x/vibc/types/receiver.go +2 -2
- package/x/vlocalchain/vlocalchain_test.go +1 -1
- package/x/vtransfer/ibc_middleware.go +17 -15
- package/x/vtransfer/ibc_middleware_test.go +53 -30
- package/x/vtransfer/keeper/keeper.go +28 -19
- package/x/vtransfer/types/expected_keepers.go +8 -15
- package/x/vtransfer/utils_test.go +9 -4
- package/go.work +0 -39
- package/go.work.sum +0 -2636
- package/proto/Dockerfile +0 -14
- package/x/vibc/keeper/dynamic_router.go +0 -176
- package/x/vibc/keeper/dynamic_router_test.go +0 -240
- package/x/vibc/keeper/scope.go +0 -114
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"
|
|
11
10
|
_ "github.com/cosmos/cosmos-sdk/types/tx/amino"
|
|
12
11
|
_ "github.com/cosmos/gogoproto/gogoproto"
|
|
13
12
|
grpc1 "github.com/cosmos/gogoproto/grpc"
|
|
14
13
|
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 Packet
|
|
36
|
+
Packet types.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() Packet {
|
|
73
|
+
func (m *MsgSendPacket) GetPacket() types.Packet {
|
|
74
74
|
if m != nil {
|
|
75
75
|
return m.Packet
|
|
76
76
|
}
|
|
77
|
-
return Packet{}
|
|
77
|
+
return types.Packet{}
|
|
78
78
|
}
|
|
79
79
|
|
|
80
80
|
func (m *MsgSendPacket) GetSender() github_com_cosmos_cosmos_sdk_types.AccAddress {
|
|
@@ -121,159 +121,41 @@ 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
|
-
|
|
227
124
|
func init() {
|
|
228
125
|
proto.RegisterType((*MsgSendPacket)(nil), "agoric.vibc.MsgSendPacket")
|
|
229
126
|
proto.RegisterType((*MsgSendPacketResponse)(nil), "agoric.vibc.MsgSendPacketResponse")
|
|
230
|
-
proto.RegisterType((*Packet)(nil), "agoric.vibc.Packet")
|
|
231
|
-
proto.RegisterType((*Height)(nil), "agoric.vibc.Height")
|
|
232
127
|
}
|
|
233
128
|
|
|
234
129
|
func init() { proto.RegisterFile("agoric/vibc/msgs.proto", fileDescriptor_78e9bb7be62a4c00) }
|
|
235
130
|
|
|
236
131
|
var fileDescriptor_78e9bb7be62a4c00 = []byte{
|
|
237
|
-
//
|
|
238
|
-
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74,
|
|
239
|
-
0x14,
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
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,
|
|
132
|
+
// 401 bytes of a gzipped FileDescriptorProto
|
|
133
|
+
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x52, 0x3d, 0xaf, 0xda, 0x30,
|
|
134
|
+
0x14, 0x4d, 0xa8, 0x84, 0x54, 0x53, 0xfa, 0x11, 0xf5, 0x03, 0xa5, 0x52, 0x4c, 0x33, 0x21, 0x24,
|
|
135
|
+
0x6c, 0x41, 0x87, 0x4a, 0x6c, 0x30, 0x17, 0xa9, 0x85, 0x4e, 0x5d, 0x2a, 0xc7, 0xb1, 0x4c, 0x44,
|
|
136
|
+
0x12, 0x47, 0x71, 0x40, 0xe5, 0x2f, 0xb4, 0xaa, 0xd4, 0xb9, 0x53, 0xf5, 0x7e, 0x01, 0x3f, 0x83,
|
|
137
|
+
0x91, 0xf1, 0x4d, 0xd1, 0x13, 0x0c, 0x3c, 0x31, 0x32, 0xbe, 0xe9, 0x29, 0x71, 0xf2, 0x80, 0xe1,
|
|
138
|
+
0x2d, 0xc9, 0xc9, 0xb9, 0x3e, 0x27, 0xbe, 0xe7, 0x5e, 0xf0, 0x96, 0x70, 0x11, 0x7b, 0x14, 0x2f,
|
|
139
|
+
0x3c, 0x87, 0xe2, 0x40, 0x72, 0x89, 0xa2, 0x58, 0x24, 0xc2, 0xa8, 0x29, 0x1e, 0x65, 0xbc, 0xf9,
|
|
140
|
+
0x8a, 0x04, 0x5e, 0x28, 0x70, 0xfe, 0x54, 0x75, 0xf3, 0x35, 0x17, 0x5c, 0xe4, 0x10, 0x67, 0xa8,
|
|
141
|
+
0x60, 0x3f, 0x64, 0x2e, 0x54, 0xc4, 0x0c, 0xd3, 0x29, 0x09, 0x43, 0xe6, 0xe3, 0x45, 0xb7, 0x84,
|
|
142
|
+
0xea, 0x88, 0xfd, 0xa7, 0x02, 0xea, 0x23, 0xc9, 0x27, 0x2c, 0x74, 0xbf, 0x10, 0x3a, 0x63, 0x89,
|
|
143
|
+
0xf1, 0x0d, 0x54, 0xa3, 0x1c, 0x35, 0xf4, 0xa6, 0xde, 0xaa, 0xf5, 0xde, 0x23, 0xcf, 0xa1, 0x28,
|
|
144
|
+
0x73, 0x41, 0xa5, 0x74, 0xd1, 0x45, 0xea, 0xf0, 0x10, 0xae, 0x53, 0xa8, 0x1d, 0x52, 0x58, 0x48,
|
|
145
|
+
0x8e, 0x29, 0xac, 0x2f, 0x49, 0xe0, 0xf7, 0x6d, 0xf5, 0x6d, 0x8f, 0x8b, 0x82, 0xf1, 0x5b, 0x07,
|
|
146
|
+
0x55, 0xc9, 0x42, 0x97, 0xc5, 0x8d, 0x4a, 0x53, 0x6f, 0x3d, 0x1b, 0xca, 0x43, 0x0a, 0x9f, 0xca,
|
|
147
|
+
0xb9, 0x13, 0x78, 0x49, 0xc2, 0xe2, 0x63, 0x0a, 0x5f, 0x2a, 0xe1, 0x03, 0x65, 0xdf, 0xa5, 0xb0,
|
|
148
|
+
0xc3, 0xbd, 0x64, 0x3a, 0x77, 0x10, 0x15, 0x01, 0xa6, 0x42, 0x06, 0x42, 0x16, 0xaf, 0x8e, 0x74,
|
|
149
|
+
0x67, 0x38, 0x59, 0x46, 0x4c, 0xa2, 0x01, 0xa5, 0x03, 0xd7, 0x8d, 0x99, 0x94, 0xff, 0xf6, 0xab,
|
|
150
|
+
0xf6, 0x73, 0x9f, 0x71, 0x42, 0x97, 0x3f, 0x88, 0xa2, 0xae, 0xf6, 0xab, 0xf6, 0xe9, 0x2f, 0xe3,
|
|
151
|
+
0xe2, 0x0a, 0xfd, 0xc6, 0xed, 0x7f, 0xa8, 0xfd, 0xda, 0xaf, 0xda, 0x2f, 0xf2, 0xa0, 0x4f, 0xdd,
|
|
152
|
+
0xdb, 0xef, 0xc0, 0x9b, 0x8b, 0x38, 0xc6, 0x4c, 0x46, 0x22, 0x94, 0xac, 0x37, 0x01, 0x4f, 0x46,
|
|
153
|
+
0x92, 0x1b, 0x9f, 0x01, 0x38, 0xcb, 0xca, 0x44, 0x67, 0x73, 0x41, 0x17, 0x42, 0xd3, 0x7e, 0xbc,
|
|
154
|
+
0x56, 0x9a, 0x0e, 0xbf, 0xae, 0xb7, 0x96, 0xbe, 0xd9, 0x5a, 0xfa, 0xcd, 0xd6, 0xd2, 0xff, 0xee,
|
|
155
|
+
0x2c, 0x6d, 0xb3, 0xb3, 0xb4, 0xeb, 0x9d, 0xa5, 0x7d, 0xff, 0x74, 0xd6, 0xf9, 0x40, 0xed, 0x84,
|
|
156
|
+
0xb2, 0xcb, 0x3b, 0xe7, 0xc2, 0x27, 0x21, 0x2f, 0x23, 0xf9, 0xa9, 0xd6, 0x25, 0x8f, 0xc3, 0xa9,
|
|
157
|
+
0xe6, 0x73, 0xfd, 0x78, 0x1f, 0x00, 0x00, 0xff, 0xff, 0xca, 0x58, 0x43, 0x3c, 0x4a, 0x02, 0x00,
|
|
158
|
+
0x00,
|
|
277
159
|
}
|
|
278
160
|
|
|
279
161
|
// Reference imports to suppress errors if they are not otherwise used.
|
|
@@ -422,117 +304,6 @@ func (m *MsgSendPacketResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
|
422
304
|
return len(dAtA) - i, nil
|
|
423
305
|
}
|
|
424
306
|
|
|
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
|
-
|
|
536
307
|
func encodeVarintMsgs(dAtA []byte, offset int, v uint64) int {
|
|
537
308
|
offset -= sovMsgs(v)
|
|
538
309
|
base := offset
|
|
@@ -568,58 +339,6 @@ func (m *MsgSendPacketResponse) Size() (n int) {
|
|
|
568
339
|
return n
|
|
569
340
|
}
|
|
570
341
|
|
|
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
|
-
|
|
623
342
|
func sovMsgs(x uint64) (n int) {
|
|
624
343
|
return (math_bits.Len64(x|1) + 6) / 7
|
|
625
344
|
}
|
|
@@ -793,377 +512,6 @@ func (m *MsgSendPacketResponse) Unmarshal(dAtA []byte) error {
|
|
|
793
512
|
}
|
|
794
513
|
return nil
|
|
795
514
|
}
|
|
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
|
-
}
|
|
1167
515
|
func skipMsgs(dAtA []byte) (n int, err error) {
|
|
1168
516
|
l := len(dAtA)
|
|
1169
517
|
iNdEx := 0
|