@agoric/cosmos 0.35.0-upgrade-14-dev-c8f9e7b.0 → 0.35.0-upgrade-16a-dev-fb592e4.0
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/CHANGELOG.md +121 -77
- package/MAINTAINERS.md +3 -0
- package/Makefile +36 -26
- package/ante/ante.go +7 -9
- package/ante/inbound_test.go +3 -2
- package/ante/vm_admission.go +2 -1
- package/app/app.go +212 -140
- package/app/upgrade.go +76 -0
- package/cmd/agd/agvm.go +42 -0
- package/cmd/agd/main.go +130 -11
- package/cmd/libdaemon/main.go +64 -53
- package/cmd/libdaemon/main_test.go +2 -1
- package/daemon/cmd/root.go +171 -74
- package/daemon/cmd/root_test.go +189 -1
- package/daemon/main.go +4 -2
- package/e2e_test/Makefile +29 -0
- package/e2e_test/README.md +100 -0
- package/e2e_test/go.mod +217 -0
- package/e2e_test/go.sum +1323 -0
- package/e2e_test/ibc_conformance_test.go +56 -0
- package/e2e_test/pfm_test.go +613 -0
- package/e2e_test/util.go +271 -0
- package/git-revision.txt +1 -1
- package/go.mod +22 -11
- package/go.sum +17 -13
- package/package.json +9 -5
- package/proto/agoric/swingset/genesis.proto +4 -0
- package/proto/agoric/swingset/swingset.proto +1 -1
- package/proto/agoric/vlocalchain/.clang-format +7 -0
- package/proto/agoric/vlocalchain/vlocalchain.proto +31 -0
- package/proto/agoric/vtransfer/genesis.proto +18 -0
- package/scripts/protocgen.sh +7 -8
- package/types/kv_entry_helpers.go +42 -0
- package/upgradegaia.sh +8 -8
- package/vm/action.go +5 -4
- package/vm/action_test.go +31 -11
- package/vm/client.go +113 -0
- package/vm/client_test.go +182 -0
- package/vm/controller.go +17 -40
- package/vm/core_proposals.go +22 -2
- package/vm/jsonrpcconn/jsonrpcconn.go +160 -0
- package/vm/jsonrpcconn/jsonrpcconn_test.go +126 -0
- package/vm/proto_json.go +38 -0
- package/vm/proto_json_test.go +103 -0
- package/vm/server.go +124 -0
- package/x/swingset/abci.go +10 -10
- package/x/swingset/alias.go +2 -0
- package/x/swingset/client/cli/tx.go +4 -0
- package/x/swingset/genesis.go +84 -24
- package/x/swingset/handler.go +2 -1
- package/x/swingset/keeper/extension_snapshotter.go +2 -2
- package/x/swingset/keeper/keeper.go +13 -25
- package/x/swingset/keeper/msg_server.go +18 -18
- package/x/swingset/keeper/proposal.go +3 -3
- package/x/swingset/keeper/querier.go +12 -11
- package/x/swingset/keeper/swing_store_exports_handler.go +21 -6
- package/x/swingset/keeper/test_utils.go +16 -0
- package/x/swingset/module.go +7 -7
- package/x/swingset/proposal_handler.go +2 -1
- package/x/swingset/testing/queue.go +17 -0
- package/x/swingset/types/default-params.go +1 -1
- package/x/swingset/types/expected_keepers.go +3 -2
- package/x/swingset/types/genesis.pb.go +78 -25
- package/x/swingset/types/msgs.go +44 -24
- package/x/swingset/types/params.go +2 -1
- package/x/swingset/types/proposal.go +5 -4
- package/x/swingset/types/swingset.pb.go +1 -1
- package/x/vbank/genesis.go +0 -2
- package/x/vbank/handler.go +2 -1
- package/x/vbank/keeper/querier.go +4 -3
- package/x/vbank/module.go +0 -5
- package/x/vbank/types/msgs.go +0 -12
- package/x/vbank/vbank.go +9 -9
- package/x/vbank/vbank_test.go +2 -2
- package/x/vibc/alias.go +3 -0
- package/x/vibc/handler.go +16 -9
- package/x/vibc/keeper/keeper.go +102 -65
- package/x/vibc/keeper/triggers.go +101 -0
- package/x/vibc/module.go +5 -8
- package/x/vibc/types/expected_keepers.go +13 -0
- package/x/vibc/types/ibc_module.go +336 -0
- package/x/vibc/types/receiver.go +170 -0
- package/x/vlocalchain/alias.go +19 -0
- package/x/vlocalchain/handler.go +21 -0
- package/x/vlocalchain/keeper/keeper.go +279 -0
- package/x/vlocalchain/keeper/keeper_test.go +97 -0
- package/x/vlocalchain/types/codec.go +34 -0
- package/x/vlocalchain/types/key.go +27 -0
- package/x/vlocalchain/types/msgs.go +16 -0
- package/x/vlocalchain/types/vlocalchain.pb.go +1072 -0
- package/x/vlocalchain/vlocalchain.go +114 -0
- package/x/vlocalchain/vlocalchain_test.go +434 -0
- package/x/vstorage/handler.go +2 -1
- package/x/vstorage/keeper/grpc_query.go +0 -1
- package/x/vstorage/keeper/keeper.go +13 -20
- package/x/vstorage/keeper/querier.go +6 -5
- package/x/vstorage/keeper/querier_test.go +4 -3
- package/x/vstorage/module.go +0 -5
- package/x/vstorage/testing/queue.go +27 -0
- package/x/vtransfer/alias.go +13 -0
- package/x/vtransfer/genesis.go +39 -0
- package/x/vtransfer/genesis_test.go +12 -0
- package/x/vtransfer/handler.go +20 -0
- package/x/vtransfer/ibc_middleware.go +186 -0
- package/x/vtransfer/ibc_middleware_test.go +448 -0
- package/x/vtransfer/keeper/keeper.go +281 -0
- package/x/vtransfer/module.go +124 -0
- package/x/vtransfer/types/expected_keepers.go +38 -0
- package/x/vtransfer/types/genesis.pb.go +327 -0
- package/x/vtransfer/types/key.go +9 -0
- package/x/vtransfer/types/msgs.go +9 -0
- package/ante/fee.go +0 -96
- package/proto/agoric/lien/genesis.proto +0 -25
- package/proto/agoric/lien/lien.proto +0 -25
- package/x/lien/alias.go +0 -17
- package/x/lien/genesis.go +0 -58
- package/x/lien/genesis_test.go +0 -101
- package/x/lien/keeper/account.go +0 -290
- package/x/lien/keeper/keeper.go +0 -255
- package/x/lien/keeper/keeper_test.go +0 -623
- package/x/lien/lien.go +0 -205
- package/x/lien/lien_test.go +0 -533
- package/x/lien/module.go +0 -115
- package/x/lien/spec/01_concepts.md +0 -146
- package/x/lien/spec/02_messages.md +0 -96
- package/x/lien/types/accountkeeper.go +0 -81
- package/x/lien/types/accountstate.go +0 -27
- package/x/lien/types/expected_keepers.go +0 -18
- package/x/lien/types/genesis.pb.go +0 -567
- package/x/lien/types/key.go +0 -25
- package/x/lien/types/lien.pb.go +0 -403
- package/x/vibc/ibc.go +0 -394
- /package/{src/index.cjs → index.cjs} +0 -0
|
@@ -0,0 +1,1072 @@
|
|
|
1
|
+
// Code generated by protoc-gen-gogo. DO NOT EDIT.
|
|
2
|
+
// source: agoric/vlocalchain/vlocalchain.proto
|
|
3
|
+
|
|
4
|
+
package types
|
|
5
|
+
|
|
6
|
+
import (
|
|
7
|
+
fmt "fmt"
|
|
8
|
+
types "github.com/cosmos/cosmos-sdk/codec/types"
|
|
9
|
+
proto "github.com/gogo/protobuf/proto"
|
|
10
|
+
io "io"
|
|
11
|
+
math "math"
|
|
12
|
+
math_bits "math/bits"
|
|
13
|
+
)
|
|
14
|
+
|
|
15
|
+
// Reference imports to suppress errors if they are not otherwise used.
|
|
16
|
+
var _ = proto.Marshal
|
|
17
|
+
var _ = fmt.Errorf
|
|
18
|
+
var _ = math.Inf
|
|
19
|
+
|
|
20
|
+
// This is a compile-time assertion to ensure that this generated file
|
|
21
|
+
// is compatible with the proto package it is being compiled against.
|
|
22
|
+
// A compilation error at this line likely means your copy of the
|
|
23
|
+
// proto package needs to be updated.
|
|
24
|
+
const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
|
|
25
|
+
|
|
26
|
+
// CosmosTx contains a list of sdk.Msg's. It should be used when sending
|
|
27
|
+
// transactions to a local chain.
|
|
28
|
+
type CosmosTx struct {
|
|
29
|
+
Messages []*types.Any `protobuf:"bytes,1,rep,name=messages,proto3" json:"messages,omitempty"`
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
func (m *CosmosTx) Reset() { *m = CosmosTx{} }
|
|
33
|
+
func (m *CosmosTx) String() string { return proto.CompactTextString(m) }
|
|
34
|
+
func (*CosmosTx) ProtoMessage() {}
|
|
35
|
+
func (*CosmosTx) Descriptor() ([]byte, []int) {
|
|
36
|
+
return fileDescriptor_ed217a89a86564b3, []int{0}
|
|
37
|
+
}
|
|
38
|
+
func (m *CosmosTx) XXX_Unmarshal(b []byte) error {
|
|
39
|
+
return m.Unmarshal(b)
|
|
40
|
+
}
|
|
41
|
+
func (m *CosmosTx) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
42
|
+
if deterministic {
|
|
43
|
+
return xxx_messageInfo_CosmosTx.Marshal(b, m, deterministic)
|
|
44
|
+
} else {
|
|
45
|
+
b = b[:cap(b)]
|
|
46
|
+
n, err := m.MarshalToSizedBuffer(b)
|
|
47
|
+
if err != nil {
|
|
48
|
+
return nil, err
|
|
49
|
+
}
|
|
50
|
+
return b[:n], nil
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
func (m *CosmosTx) XXX_Merge(src proto.Message) {
|
|
54
|
+
xxx_messageInfo_CosmosTx.Merge(m, src)
|
|
55
|
+
}
|
|
56
|
+
func (m *CosmosTx) XXX_Size() int {
|
|
57
|
+
return m.Size()
|
|
58
|
+
}
|
|
59
|
+
func (m *CosmosTx) XXX_DiscardUnknown() {
|
|
60
|
+
xxx_messageInfo_CosmosTx.DiscardUnknown(m)
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
var xxx_messageInfo_CosmosTx proto.InternalMessageInfo
|
|
64
|
+
|
|
65
|
+
func (m *CosmosTx) GetMessages() []*types.Any {
|
|
66
|
+
if m != nil {
|
|
67
|
+
return m.Messages
|
|
68
|
+
}
|
|
69
|
+
return nil
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
// QueryRequest is used internally to describe a query for the local chain.
|
|
73
|
+
type QueryRequest struct {
|
|
74
|
+
FullMethod string `protobuf:"bytes,1,opt,name=full_method,json=fullMethod,proto3" json:"full_method,omitempty"`
|
|
75
|
+
Request *types.Any `protobuf:"bytes,2,opt,name=request,proto3" json:"request,omitempty"`
|
|
76
|
+
ReplyType string `protobuf:"bytes,3,opt,name=reply_type,json=replyType,proto3" json:"reply_type,omitempty"`
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
func (m *QueryRequest) Reset() { *m = QueryRequest{} }
|
|
80
|
+
func (m *QueryRequest) String() string { return proto.CompactTextString(m) }
|
|
81
|
+
func (*QueryRequest) ProtoMessage() {}
|
|
82
|
+
func (*QueryRequest) Descriptor() ([]byte, []int) {
|
|
83
|
+
return fileDescriptor_ed217a89a86564b3, []int{1}
|
|
84
|
+
}
|
|
85
|
+
func (m *QueryRequest) XXX_Unmarshal(b []byte) error {
|
|
86
|
+
return m.Unmarshal(b)
|
|
87
|
+
}
|
|
88
|
+
func (m *QueryRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
89
|
+
if deterministic {
|
|
90
|
+
return xxx_messageInfo_QueryRequest.Marshal(b, m, deterministic)
|
|
91
|
+
} else {
|
|
92
|
+
b = b[:cap(b)]
|
|
93
|
+
n, err := m.MarshalToSizedBuffer(b)
|
|
94
|
+
if err != nil {
|
|
95
|
+
return nil, err
|
|
96
|
+
}
|
|
97
|
+
return b[:n], nil
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
func (m *QueryRequest) XXX_Merge(src proto.Message) {
|
|
101
|
+
xxx_messageInfo_QueryRequest.Merge(m, src)
|
|
102
|
+
}
|
|
103
|
+
func (m *QueryRequest) XXX_Size() int {
|
|
104
|
+
return m.Size()
|
|
105
|
+
}
|
|
106
|
+
func (m *QueryRequest) XXX_DiscardUnknown() {
|
|
107
|
+
xxx_messageInfo_QueryRequest.DiscardUnknown(m)
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
var xxx_messageInfo_QueryRequest proto.InternalMessageInfo
|
|
111
|
+
|
|
112
|
+
func (m *QueryRequest) GetFullMethod() string {
|
|
113
|
+
if m != nil {
|
|
114
|
+
return m.FullMethod
|
|
115
|
+
}
|
|
116
|
+
return ""
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
func (m *QueryRequest) GetRequest() *types.Any {
|
|
120
|
+
if m != nil {
|
|
121
|
+
return m.Request
|
|
122
|
+
}
|
|
123
|
+
return nil
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
func (m *QueryRequest) GetReplyType() string {
|
|
127
|
+
if m != nil {
|
|
128
|
+
return m.ReplyType
|
|
129
|
+
}
|
|
130
|
+
return ""
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
// QueryResponse is used internally to describe a response from the local chain.
|
|
134
|
+
type QueryResponse struct {
|
|
135
|
+
Height int64 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"`
|
|
136
|
+
Reply *types.Any `protobuf:"bytes,2,opt,name=reply,proto3" json:"reply,omitempty"`
|
|
137
|
+
Error string `protobuf:"bytes,3,opt,name=error,proto3" json:"error,omitempty"`
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
func (m *QueryResponse) Reset() { *m = QueryResponse{} }
|
|
141
|
+
func (m *QueryResponse) String() string { return proto.CompactTextString(m) }
|
|
142
|
+
func (*QueryResponse) ProtoMessage() {}
|
|
143
|
+
func (*QueryResponse) Descriptor() ([]byte, []int) {
|
|
144
|
+
return fileDescriptor_ed217a89a86564b3, []int{2}
|
|
145
|
+
}
|
|
146
|
+
func (m *QueryResponse) XXX_Unmarshal(b []byte) error {
|
|
147
|
+
return m.Unmarshal(b)
|
|
148
|
+
}
|
|
149
|
+
func (m *QueryResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
150
|
+
if deterministic {
|
|
151
|
+
return xxx_messageInfo_QueryResponse.Marshal(b, m, deterministic)
|
|
152
|
+
} else {
|
|
153
|
+
b = b[:cap(b)]
|
|
154
|
+
n, err := m.MarshalToSizedBuffer(b)
|
|
155
|
+
if err != nil {
|
|
156
|
+
return nil, err
|
|
157
|
+
}
|
|
158
|
+
return b[:n], nil
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
func (m *QueryResponse) XXX_Merge(src proto.Message) {
|
|
162
|
+
xxx_messageInfo_QueryResponse.Merge(m, src)
|
|
163
|
+
}
|
|
164
|
+
func (m *QueryResponse) XXX_Size() int {
|
|
165
|
+
return m.Size()
|
|
166
|
+
}
|
|
167
|
+
func (m *QueryResponse) XXX_DiscardUnknown() {
|
|
168
|
+
xxx_messageInfo_QueryResponse.DiscardUnknown(m)
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
var xxx_messageInfo_QueryResponse proto.InternalMessageInfo
|
|
172
|
+
|
|
173
|
+
func (m *QueryResponse) GetHeight() int64 {
|
|
174
|
+
if m != nil {
|
|
175
|
+
return m.Height
|
|
176
|
+
}
|
|
177
|
+
return 0
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
func (m *QueryResponse) GetReply() *types.Any {
|
|
181
|
+
if m != nil {
|
|
182
|
+
return m.Reply
|
|
183
|
+
}
|
|
184
|
+
return nil
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
func (m *QueryResponse) GetError() string {
|
|
188
|
+
if m != nil {
|
|
189
|
+
return m.Error
|
|
190
|
+
}
|
|
191
|
+
return ""
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
// QueryResponses is used to group multiple QueryResponse messages.
|
|
195
|
+
type QueryResponses struct {
|
|
196
|
+
Responses []*QueryResponse `protobuf:"bytes,1,rep,name=responses,proto3" json:"responses,omitempty"`
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
func (m *QueryResponses) Reset() { *m = QueryResponses{} }
|
|
200
|
+
func (m *QueryResponses) String() string { return proto.CompactTextString(m) }
|
|
201
|
+
func (*QueryResponses) ProtoMessage() {}
|
|
202
|
+
func (*QueryResponses) Descriptor() ([]byte, []int) {
|
|
203
|
+
return fileDescriptor_ed217a89a86564b3, []int{3}
|
|
204
|
+
}
|
|
205
|
+
func (m *QueryResponses) XXX_Unmarshal(b []byte) error {
|
|
206
|
+
return m.Unmarshal(b)
|
|
207
|
+
}
|
|
208
|
+
func (m *QueryResponses) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
209
|
+
if deterministic {
|
|
210
|
+
return xxx_messageInfo_QueryResponses.Marshal(b, m, deterministic)
|
|
211
|
+
} else {
|
|
212
|
+
b = b[:cap(b)]
|
|
213
|
+
n, err := m.MarshalToSizedBuffer(b)
|
|
214
|
+
if err != nil {
|
|
215
|
+
return nil, err
|
|
216
|
+
}
|
|
217
|
+
return b[:n], nil
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
func (m *QueryResponses) XXX_Merge(src proto.Message) {
|
|
221
|
+
xxx_messageInfo_QueryResponses.Merge(m, src)
|
|
222
|
+
}
|
|
223
|
+
func (m *QueryResponses) XXX_Size() int {
|
|
224
|
+
return m.Size()
|
|
225
|
+
}
|
|
226
|
+
func (m *QueryResponses) XXX_DiscardUnknown() {
|
|
227
|
+
xxx_messageInfo_QueryResponses.DiscardUnknown(m)
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
var xxx_messageInfo_QueryResponses proto.InternalMessageInfo
|
|
231
|
+
|
|
232
|
+
func (m *QueryResponses) GetResponses() []*QueryResponse {
|
|
233
|
+
if m != nil {
|
|
234
|
+
return m.Responses
|
|
235
|
+
}
|
|
236
|
+
return nil
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
func init() {
|
|
240
|
+
proto.RegisterType((*CosmosTx)(nil), "agoric.vlocalchain.CosmosTx")
|
|
241
|
+
proto.RegisterType((*QueryRequest)(nil), "agoric.vlocalchain.QueryRequest")
|
|
242
|
+
proto.RegisterType((*QueryResponse)(nil), "agoric.vlocalchain.QueryResponse")
|
|
243
|
+
proto.RegisterType((*QueryResponses)(nil), "agoric.vlocalchain.QueryResponses")
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
func init() {
|
|
247
|
+
proto.RegisterFile("agoric/vlocalchain/vlocalchain.proto", fileDescriptor_ed217a89a86564b3)
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
var fileDescriptor_ed217a89a86564b3 = []byte{
|
|
251
|
+
// 350 bytes of a gzipped FileDescriptorProto
|
|
252
|
+
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x92, 0xb1, 0x4e, 0xf3, 0x30,
|
|
253
|
+
0x14, 0x85, 0x9b, 0xbf, 0x6a, 0xff, 0xf6, 0x16, 0x18, 0xac, 0x0a, 0x05, 0x24, 0x42, 0x89, 0x18,
|
|
254
|
+
0x2a, 0x24, 0x6c, 0x04, 0x2b, 0x02, 0x15, 0x66, 0x86, 0x46, 0x1d, 0x10, 0x4b, 0x95, 0xa6, 0xae,
|
|
255
|
+
0x13, 0xe1, 0xc4, 0xc1, 0x4e, 0x50, 0xb3, 0xf0, 0x0c, 0x3c, 0x16, 0x63, 0x47, 0x46, 0xd4, 0xbe,
|
|
256
|
+
0x08, 0xaa, 0x9d, 0x42, 0x2b, 0x04, 0x9b, 0xef, 0xf5, 0x77, 0xee, 0x91, 0xcf, 0x35, 0x1c, 0xfb,
|
|
257
|
+
0x4c, 0xc8, 0x28, 0x20, 0xcf, 0x5c, 0x04, 0x3e, 0x0f, 0x42, 0x3f, 0x4a, 0xd6, 0xcf, 0x38, 0x95,
|
|
258
|
+
0x22, 0x13, 0x08, 0x19, 0x0a, 0xaf, 0xdd, 0xec, 0xef, 0x31, 0x21, 0x18, 0xa7, 0x44, 0x13, 0xa3,
|
|
259
|
+
0x7c, 0x42, 0xfc, 0xa4, 0x30, 0xb8, 0x7b, 0x09, 0x8d, 0x5b, 0xa1, 0x62, 0xa1, 0x06, 0x53, 0x74,
|
|
260
|
+
0x06, 0x8d, 0x98, 0x2a, 0xe5, 0x33, 0xaa, 0x6c, 0xab, 0x53, 0xed, 0xb6, 0xce, 0xdb, 0xd8, 0x28,
|
|
261
|
+
0xf1, 0x4a, 0x89, 0x7b, 0x49, 0xe1, 0x7d, 0x51, 0xee, 0x0b, 0x6c, 0xf5, 0x73, 0x2a, 0x0b, 0x8f,
|
|
262
|
+
0x3e, 0xe5, 0x54, 0x65, 0xe8, 0x10, 0x5a, 0x93, 0x9c, 0xf3, 0x61, 0x4c, 0xb3, 0x50, 0x8c, 0x6d,
|
|
263
|
+
0xab, 0x63, 0x75, 0x9b, 0x1e, 0x2c, 0x5b, 0x77, 0xba, 0x83, 0x30, 0xfc, 0x97, 0x86, 0xb5, 0xff,
|
|
264
|
+
0x75, 0xac, 0x5f, 0x1d, 0x56, 0x10, 0x3a, 0x00, 0x90, 0x34, 0xe5, 0xc5, 0x30, 0x2b, 0x52, 0x6a,
|
|
265
|
+
0x57, 0xf5, 0xbc, 0xa6, 0xee, 0x0c, 0x8a, 0x94, 0xba, 0x11, 0x6c, 0x97, 0xfe, 0x2a, 0x15, 0x89,
|
|
266
|
+
0xa2, 0x68, 0x17, 0xea, 0x21, 0x8d, 0x58, 0x98, 0x69, 0xef, 0xaa, 0x57, 0x56, 0xe8, 0x04, 0x6a,
|
|
267
|
+
0x5a, 0xf5, 0xa7, 0xab, 0x41, 0x50, 0x1b, 0x6a, 0x54, 0x4a, 0x21, 0x4b, 0x3b, 0x53, 0xb8, 0x7d,
|
|
268
|
+
0xd8, 0xd9, 0xb0, 0x52, 0xe8, 0x1a, 0x9a, 0x72, 0x55, 0x94, 0x79, 0x1d, 0xe1, 0x9f, 0xe9, 0xe3,
|
|
269
|
+
0x0d, 0x99, 0xf7, 0xad, 0xb9, 0xb9, 0x7f, 0x9b, 0x3b, 0xd6, 0x6c, 0xee, 0x58, 0x1f, 0x73, 0xc7,
|
|
270
|
+
0x7a, 0x5d, 0x38, 0x95, 0xd9, 0xc2, 0xa9, 0xbc, 0x2f, 0x9c, 0xca, 0xc3, 0x15, 0x8b, 0xb2, 0x30,
|
|
271
|
+
0x1f, 0xe1, 0x40, 0xc4, 0xa4, 0x67, 0xb6, 0x6e, 0x06, 0x9f, 0xaa, 0xf1, 0x23, 0x61, 0x82, 0xfb,
|
|
272
|
+
0x09, 0x23, 0x81, 0xde, 0x1b, 0x99, 0x6e, 0x7c, 0x88, 0x65, 0x4e, 0x6a, 0x54, 0xd7, 0xef, 0xba,
|
|
273
|
+
0xf8, 0x0c, 0x00, 0x00, 0xff, 0xff, 0x91, 0xc8, 0xca, 0x9a, 0x33, 0x02, 0x00, 0x00,
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
func (m *CosmosTx) Marshal() (dAtA []byte, err error) {
|
|
277
|
+
size := m.Size()
|
|
278
|
+
dAtA = make([]byte, size)
|
|
279
|
+
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
|
280
|
+
if err != nil {
|
|
281
|
+
return nil, err
|
|
282
|
+
}
|
|
283
|
+
return dAtA[:n], nil
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
func (m *CosmosTx) MarshalTo(dAtA []byte) (int, error) {
|
|
287
|
+
size := m.Size()
|
|
288
|
+
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
func (m *CosmosTx) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
292
|
+
i := len(dAtA)
|
|
293
|
+
_ = i
|
|
294
|
+
var l int
|
|
295
|
+
_ = l
|
|
296
|
+
if len(m.Messages) > 0 {
|
|
297
|
+
for iNdEx := len(m.Messages) - 1; iNdEx >= 0; iNdEx-- {
|
|
298
|
+
{
|
|
299
|
+
size, err := m.Messages[iNdEx].MarshalToSizedBuffer(dAtA[:i])
|
|
300
|
+
if err != nil {
|
|
301
|
+
return 0, err
|
|
302
|
+
}
|
|
303
|
+
i -= size
|
|
304
|
+
i = encodeVarintVlocalchain(dAtA, i, uint64(size))
|
|
305
|
+
}
|
|
306
|
+
i--
|
|
307
|
+
dAtA[i] = 0xa
|
|
308
|
+
}
|
|
309
|
+
}
|
|
310
|
+
return len(dAtA) - i, nil
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
func (m *QueryRequest) Marshal() (dAtA []byte, err error) {
|
|
314
|
+
size := m.Size()
|
|
315
|
+
dAtA = make([]byte, size)
|
|
316
|
+
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
|
317
|
+
if err != nil {
|
|
318
|
+
return nil, err
|
|
319
|
+
}
|
|
320
|
+
return dAtA[:n], nil
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
func (m *QueryRequest) MarshalTo(dAtA []byte) (int, error) {
|
|
324
|
+
size := m.Size()
|
|
325
|
+
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
func (m *QueryRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
329
|
+
i := len(dAtA)
|
|
330
|
+
_ = i
|
|
331
|
+
var l int
|
|
332
|
+
_ = l
|
|
333
|
+
if len(m.ReplyType) > 0 {
|
|
334
|
+
i -= len(m.ReplyType)
|
|
335
|
+
copy(dAtA[i:], m.ReplyType)
|
|
336
|
+
i = encodeVarintVlocalchain(dAtA, i, uint64(len(m.ReplyType)))
|
|
337
|
+
i--
|
|
338
|
+
dAtA[i] = 0x1a
|
|
339
|
+
}
|
|
340
|
+
if m.Request != nil {
|
|
341
|
+
{
|
|
342
|
+
size, err := m.Request.MarshalToSizedBuffer(dAtA[:i])
|
|
343
|
+
if err != nil {
|
|
344
|
+
return 0, err
|
|
345
|
+
}
|
|
346
|
+
i -= size
|
|
347
|
+
i = encodeVarintVlocalchain(dAtA, i, uint64(size))
|
|
348
|
+
}
|
|
349
|
+
i--
|
|
350
|
+
dAtA[i] = 0x12
|
|
351
|
+
}
|
|
352
|
+
if len(m.FullMethod) > 0 {
|
|
353
|
+
i -= len(m.FullMethod)
|
|
354
|
+
copy(dAtA[i:], m.FullMethod)
|
|
355
|
+
i = encodeVarintVlocalchain(dAtA, i, uint64(len(m.FullMethod)))
|
|
356
|
+
i--
|
|
357
|
+
dAtA[i] = 0xa
|
|
358
|
+
}
|
|
359
|
+
return len(dAtA) - i, nil
|
|
360
|
+
}
|
|
361
|
+
|
|
362
|
+
func (m *QueryResponse) Marshal() (dAtA []byte, err error) {
|
|
363
|
+
size := m.Size()
|
|
364
|
+
dAtA = make([]byte, size)
|
|
365
|
+
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
|
366
|
+
if err != nil {
|
|
367
|
+
return nil, err
|
|
368
|
+
}
|
|
369
|
+
return dAtA[:n], nil
|
|
370
|
+
}
|
|
371
|
+
|
|
372
|
+
func (m *QueryResponse) MarshalTo(dAtA []byte) (int, error) {
|
|
373
|
+
size := m.Size()
|
|
374
|
+
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
375
|
+
}
|
|
376
|
+
|
|
377
|
+
func (m *QueryResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
378
|
+
i := len(dAtA)
|
|
379
|
+
_ = i
|
|
380
|
+
var l int
|
|
381
|
+
_ = l
|
|
382
|
+
if len(m.Error) > 0 {
|
|
383
|
+
i -= len(m.Error)
|
|
384
|
+
copy(dAtA[i:], m.Error)
|
|
385
|
+
i = encodeVarintVlocalchain(dAtA, i, uint64(len(m.Error)))
|
|
386
|
+
i--
|
|
387
|
+
dAtA[i] = 0x1a
|
|
388
|
+
}
|
|
389
|
+
if m.Reply != nil {
|
|
390
|
+
{
|
|
391
|
+
size, err := m.Reply.MarshalToSizedBuffer(dAtA[:i])
|
|
392
|
+
if err != nil {
|
|
393
|
+
return 0, err
|
|
394
|
+
}
|
|
395
|
+
i -= size
|
|
396
|
+
i = encodeVarintVlocalchain(dAtA, i, uint64(size))
|
|
397
|
+
}
|
|
398
|
+
i--
|
|
399
|
+
dAtA[i] = 0x12
|
|
400
|
+
}
|
|
401
|
+
if m.Height != 0 {
|
|
402
|
+
i = encodeVarintVlocalchain(dAtA, i, uint64(m.Height))
|
|
403
|
+
i--
|
|
404
|
+
dAtA[i] = 0x8
|
|
405
|
+
}
|
|
406
|
+
return len(dAtA) - i, nil
|
|
407
|
+
}
|
|
408
|
+
|
|
409
|
+
func (m *QueryResponses) Marshal() (dAtA []byte, err error) {
|
|
410
|
+
size := m.Size()
|
|
411
|
+
dAtA = make([]byte, size)
|
|
412
|
+
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
|
413
|
+
if err != nil {
|
|
414
|
+
return nil, err
|
|
415
|
+
}
|
|
416
|
+
return dAtA[:n], nil
|
|
417
|
+
}
|
|
418
|
+
|
|
419
|
+
func (m *QueryResponses) MarshalTo(dAtA []byte) (int, error) {
|
|
420
|
+
size := m.Size()
|
|
421
|
+
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
422
|
+
}
|
|
423
|
+
|
|
424
|
+
func (m *QueryResponses) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
425
|
+
i := len(dAtA)
|
|
426
|
+
_ = i
|
|
427
|
+
var l int
|
|
428
|
+
_ = l
|
|
429
|
+
if len(m.Responses) > 0 {
|
|
430
|
+
for iNdEx := len(m.Responses) - 1; iNdEx >= 0; iNdEx-- {
|
|
431
|
+
{
|
|
432
|
+
size, err := m.Responses[iNdEx].MarshalToSizedBuffer(dAtA[:i])
|
|
433
|
+
if err != nil {
|
|
434
|
+
return 0, err
|
|
435
|
+
}
|
|
436
|
+
i -= size
|
|
437
|
+
i = encodeVarintVlocalchain(dAtA, i, uint64(size))
|
|
438
|
+
}
|
|
439
|
+
i--
|
|
440
|
+
dAtA[i] = 0xa
|
|
441
|
+
}
|
|
442
|
+
}
|
|
443
|
+
return len(dAtA) - i, nil
|
|
444
|
+
}
|
|
445
|
+
|
|
446
|
+
func encodeVarintVlocalchain(dAtA []byte, offset int, v uint64) int {
|
|
447
|
+
offset -= sovVlocalchain(v)
|
|
448
|
+
base := offset
|
|
449
|
+
for v >= 1<<7 {
|
|
450
|
+
dAtA[offset] = uint8(v&0x7f | 0x80)
|
|
451
|
+
v >>= 7
|
|
452
|
+
offset++
|
|
453
|
+
}
|
|
454
|
+
dAtA[offset] = uint8(v)
|
|
455
|
+
return base
|
|
456
|
+
}
|
|
457
|
+
func (m *CosmosTx) Size() (n int) {
|
|
458
|
+
if m == nil {
|
|
459
|
+
return 0
|
|
460
|
+
}
|
|
461
|
+
var l int
|
|
462
|
+
_ = l
|
|
463
|
+
if len(m.Messages) > 0 {
|
|
464
|
+
for _, e := range m.Messages {
|
|
465
|
+
l = e.Size()
|
|
466
|
+
n += 1 + l + sovVlocalchain(uint64(l))
|
|
467
|
+
}
|
|
468
|
+
}
|
|
469
|
+
return n
|
|
470
|
+
}
|
|
471
|
+
|
|
472
|
+
func (m *QueryRequest) Size() (n int) {
|
|
473
|
+
if m == nil {
|
|
474
|
+
return 0
|
|
475
|
+
}
|
|
476
|
+
var l int
|
|
477
|
+
_ = l
|
|
478
|
+
l = len(m.FullMethod)
|
|
479
|
+
if l > 0 {
|
|
480
|
+
n += 1 + l + sovVlocalchain(uint64(l))
|
|
481
|
+
}
|
|
482
|
+
if m.Request != nil {
|
|
483
|
+
l = m.Request.Size()
|
|
484
|
+
n += 1 + l + sovVlocalchain(uint64(l))
|
|
485
|
+
}
|
|
486
|
+
l = len(m.ReplyType)
|
|
487
|
+
if l > 0 {
|
|
488
|
+
n += 1 + l + sovVlocalchain(uint64(l))
|
|
489
|
+
}
|
|
490
|
+
return n
|
|
491
|
+
}
|
|
492
|
+
|
|
493
|
+
func (m *QueryResponse) Size() (n int) {
|
|
494
|
+
if m == nil {
|
|
495
|
+
return 0
|
|
496
|
+
}
|
|
497
|
+
var l int
|
|
498
|
+
_ = l
|
|
499
|
+
if m.Height != 0 {
|
|
500
|
+
n += 1 + sovVlocalchain(uint64(m.Height))
|
|
501
|
+
}
|
|
502
|
+
if m.Reply != nil {
|
|
503
|
+
l = m.Reply.Size()
|
|
504
|
+
n += 1 + l + sovVlocalchain(uint64(l))
|
|
505
|
+
}
|
|
506
|
+
l = len(m.Error)
|
|
507
|
+
if l > 0 {
|
|
508
|
+
n += 1 + l + sovVlocalchain(uint64(l))
|
|
509
|
+
}
|
|
510
|
+
return n
|
|
511
|
+
}
|
|
512
|
+
|
|
513
|
+
func (m *QueryResponses) Size() (n int) {
|
|
514
|
+
if m == nil {
|
|
515
|
+
return 0
|
|
516
|
+
}
|
|
517
|
+
var l int
|
|
518
|
+
_ = l
|
|
519
|
+
if len(m.Responses) > 0 {
|
|
520
|
+
for _, e := range m.Responses {
|
|
521
|
+
l = e.Size()
|
|
522
|
+
n += 1 + l + sovVlocalchain(uint64(l))
|
|
523
|
+
}
|
|
524
|
+
}
|
|
525
|
+
return n
|
|
526
|
+
}
|
|
527
|
+
|
|
528
|
+
func sovVlocalchain(x uint64) (n int) {
|
|
529
|
+
return (math_bits.Len64(x|1) + 6) / 7
|
|
530
|
+
}
|
|
531
|
+
func sozVlocalchain(x uint64) (n int) {
|
|
532
|
+
return sovVlocalchain(uint64((x << 1) ^ uint64((int64(x) >> 63))))
|
|
533
|
+
}
|
|
534
|
+
func (m *CosmosTx) Unmarshal(dAtA []byte) error {
|
|
535
|
+
l := len(dAtA)
|
|
536
|
+
iNdEx := 0
|
|
537
|
+
for iNdEx < l {
|
|
538
|
+
preIndex := iNdEx
|
|
539
|
+
var wire uint64
|
|
540
|
+
for shift := uint(0); ; shift += 7 {
|
|
541
|
+
if shift >= 64 {
|
|
542
|
+
return ErrIntOverflowVlocalchain
|
|
543
|
+
}
|
|
544
|
+
if iNdEx >= l {
|
|
545
|
+
return io.ErrUnexpectedEOF
|
|
546
|
+
}
|
|
547
|
+
b := dAtA[iNdEx]
|
|
548
|
+
iNdEx++
|
|
549
|
+
wire |= uint64(b&0x7F) << shift
|
|
550
|
+
if b < 0x80 {
|
|
551
|
+
break
|
|
552
|
+
}
|
|
553
|
+
}
|
|
554
|
+
fieldNum := int32(wire >> 3)
|
|
555
|
+
wireType := int(wire & 0x7)
|
|
556
|
+
if wireType == 4 {
|
|
557
|
+
return fmt.Errorf("proto: CosmosTx: wiretype end group for non-group")
|
|
558
|
+
}
|
|
559
|
+
if fieldNum <= 0 {
|
|
560
|
+
return fmt.Errorf("proto: CosmosTx: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
561
|
+
}
|
|
562
|
+
switch fieldNum {
|
|
563
|
+
case 1:
|
|
564
|
+
if wireType != 2 {
|
|
565
|
+
return fmt.Errorf("proto: wrong wireType = %d for field Messages", wireType)
|
|
566
|
+
}
|
|
567
|
+
var msglen int
|
|
568
|
+
for shift := uint(0); ; shift += 7 {
|
|
569
|
+
if shift >= 64 {
|
|
570
|
+
return ErrIntOverflowVlocalchain
|
|
571
|
+
}
|
|
572
|
+
if iNdEx >= l {
|
|
573
|
+
return io.ErrUnexpectedEOF
|
|
574
|
+
}
|
|
575
|
+
b := dAtA[iNdEx]
|
|
576
|
+
iNdEx++
|
|
577
|
+
msglen |= int(b&0x7F) << shift
|
|
578
|
+
if b < 0x80 {
|
|
579
|
+
break
|
|
580
|
+
}
|
|
581
|
+
}
|
|
582
|
+
if msglen < 0 {
|
|
583
|
+
return ErrInvalidLengthVlocalchain
|
|
584
|
+
}
|
|
585
|
+
postIndex := iNdEx + msglen
|
|
586
|
+
if postIndex < 0 {
|
|
587
|
+
return ErrInvalidLengthVlocalchain
|
|
588
|
+
}
|
|
589
|
+
if postIndex > l {
|
|
590
|
+
return io.ErrUnexpectedEOF
|
|
591
|
+
}
|
|
592
|
+
m.Messages = append(m.Messages, &types.Any{})
|
|
593
|
+
if err := m.Messages[len(m.Messages)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
594
|
+
return err
|
|
595
|
+
}
|
|
596
|
+
iNdEx = postIndex
|
|
597
|
+
default:
|
|
598
|
+
iNdEx = preIndex
|
|
599
|
+
skippy, err := skipVlocalchain(dAtA[iNdEx:])
|
|
600
|
+
if err != nil {
|
|
601
|
+
return err
|
|
602
|
+
}
|
|
603
|
+
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
|
604
|
+
return ErrInvalidLengthVlocalchain
|
|
605
|
+
}
|
|
606
|
+
if (iNdEx + skippy) > l {
|
|
607
|
+
return io.ErrUnexpectedEOF
|
|
608
|
+
}
|
|
609
|
+
iNdEx += skippy
|
|
610
|
+
}
|
|
611
|
+
}
|
|
612
|
+
|
|
613
|
+
if iNdEx > l {
|
|
614
|
+
return io.ErrUnexpectedEOF
|
|
615
|
+
}
|
|
616
|
+
return nil
|
|
617
|
+
}
|
|
618
|
+
func (m *QueryRequest) Unmarshal(dAtA []byte) error {
|
|
619
|
+
l := len(dAtA)
|
|
620
|
+
iNdEx := 0
|
|
621
|
+
for iNdEx < l {
|
|
622
|
+
preIndex := iNdEx
|
|
623
|
+
var wire uint64
|
|
624
|
+
for shift := uint(0); ; shift += 7 {
|
|
625
|
+
if shift >= 64 {
|
|
626
|
+
return ErrIntOverflowVlocalchain
|
|
627
|
+
}
|
|
628
|
+
if iNdEx >= l {
|
|
629
|
+
return io.ErrUnexpectedEOF
|
|
630
|
+
}
|
|
631
|
+
b := dAtA[iNdEx]
|
|
632
|
+
iNdEx++
|
|
633
|
+
wire |= uint64(b&0x7F) << shift
|
|
634
|
+
if b < 0x80 {
|
|
635
|
+
break
|
|
636
|
+
}
|
|
637
|
+
}
|
|
638
|
+
fieldNum := int32(wire >> 3)
|
|
639
|
+
wireType := int(wire & 0x7)
|
|
640
|
+
if wireType == 4 {
|
|
641
|
+
return fmt.Errorf("proto: QueryRequest: wiretype end group for non-group")
|
|
642
|
+
}
|
|
643
|
+
if fieldNum <= 0 {
|
|
644
|
+
return fmt.Errorf("proto: QueryRequest: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
645
|
+
}
|
|
646
|
+
switch fieldNum {
|
|
647
|
+
case 1:
|
|
648
|
+
if wireType != 2 {
|
|
649
|
+
return fmt.Errorf("proto: wrong wireType = %d for field FullMethod", wireType)
|
|
650
|
+
}
|
|
651
|
+
var stringLen uint64
|
|
652
|
+
for shift := uint(0); ; shift += 7 {
|
|
653
|
+
if shift >= 64 {
|
|
654
|
+
return ErrIntOverflowVlocalchain
|
|
655
|
+
}
|
|
656
|
+
if iNdEx >= l {
|
|
657
|
+
return io.ErrUnexpectedEOF
|
|
658
|
+
}
|
|
659
|
+
b := dAtA[iNdEx]
|
|
660
|
+
iNdEx++
|
|
661
|
+
stringLen |= uint64(b&0x7F) << shift
|
|
662
|
+
if b < 0x80 {
|
|
663
|
+
break
|
|
664
|
+
}
|
|
665
|
+
}
|
|
666
|
+
intStringLen := int(stringLen)
|
|
667
|
+
if intStringLen < 0 {
|
|
668
|
+
return ErrInvalidLengthVlocalchain
|
|
669
|
+
}
|
|
670
|
+
postIndex := iNdEx + intStringLen
|
|
671
|
+
if postIndex < 0 {
|
|
672
|
+
return ErrInvalidLengthVlocalchain
|
|
673
|
+
}
|
|
674
|
+
if postIndex > l {
|
|
675
|
+
return io.ErrUnexpectedEOF
|
|
676
|
+
}
|
|
677
|
+
m.FullMethod = string(dAtA[iNdEx:postIndex])
|
|
678
|
+
iNdEx = postIndex
|
|
679
|
+
case 2:
|
|
680
|
+
if wireType != 2 {
|
|
681
|
+
return fmt.Errorf("proto: wrong wireType = %d for field Request", wireType)
|
|
682
|
+
}
|
|
683
|
+
var msglen int
|
|
684
|
+
for shift := uint(0); ; shift += 7 {
|
|
685
|
+
if shift >= 64 {
|
|
686
|
+
return ErrIntOverflowVlocalchain
|
|
687
|
+
}
|
|
688
|
+
if iNdEx >= l {
|
|
689
|
+
return io.ErrUnexpectedEOF
|
|
690
|
+
}
|
|
691
|
+
b := dAtA[iNdEx]
|
|
692
|
+
iNdEx++
|
|
693
|
+
msglen |= int(b&0x7F) << shift
|
|
694
|
+
if b < 0x80 {
|
|
695
|
+
break
|
|
696
|
+
}
|
|
697
|
+
}
|
|
698
|
+
if msglen < 0 {
|
|
699
|
+
return ErrInvalidLengthVlocalchain
|
|
700
|
+
}
|
|
701
|
+
postIndex := iNdEx + msglen
|
|
702
|
+
if postIndex < 0 {
|
|
703
|
+
return ErrInvalidLengthVlocalchain
|
|
704
|
+
}
|
|
705
|
+
if postIndex > l {
|
|
706
|
+
return io.ErrUnexpectedEOF
|
|
707
|
+
}
|
|
708
|
+
if m.Request == nil {
|
|
709
|
+
m.Request = &types.Any{}
|
|
710
|
+
}
|
|
711
|
+
if err := m.Request.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
712
|
+
return err
|
|
713
|
+
}
|
|
714
|
+
iNdEx = postIndex
|
|
715
|
+
case 3:
|
|
716
|
+
if wireType != 2 {
|
|
717
|
+
return fmt.Errorf("proto: wrong wireType = %d for field ReplyType", wireType)
|
|
718
|
+
}
|
|
719
|
+
var stringLen uint64
|
|
720
|
+
for shift := uint(0); ; shift += 7 {
|
|
721
|
+
if shift >= 64 {
|
|
722
|
+
return ErrIntOverflowVlocalchain
|
|
723
|
+
}
|
|
724
|
+
if iNdEx >= l {
|
|
725
|
+
return io.ErrUnexpectedEOF
|
|
726
|
+
}
|
|
727
|
+
b := dAtA[iNdEx]
|
|
728
|
+
iNdEx++
|
|
729
|
+
stringLen |= uint64(b&0x7F) << shift
|
|
730
|
+
if b < 0x80 {
|
|
731
|
+
break
|
|
732
|
+
}
|
|
733
|
+
}
|
|
734
|
+
intStringLen := int(stringLen)
|
|
735
|
+
if intStringLen < 0 {
|
|
736
|
+
return ErrInvalidLengthVlocalchain
|
|
737
|
+
}
|
|
738
|
+
postIndex := iNdEx + intStringLen
|
|
739
|
+
if postIndex < 0 {
|
|
740
|
+
return ErrInvalidLengthVlocalchain
|
|
741
|
+
}
|
|
742
|
+
if postIndex > l {
|
|
743
|
+
return io.ErrUnexpectedEOF
|
|
744
|
+
}
|
|
745
|
+
m.ReplyType = string(dAtA[iNdEx:postIndex])
|
|
746
|
+
iNdEx = postIndex
|
|
747
|
+
default:
|
|
748
|
+
iNdEx = preIndex
|
|
749
|
+
skippy, err := skipVlocalchain(dAtA[iNdEx:])
|
|
750
|
+
if err != nil {
|
|
751
|
+
return err
|
|
752
|
+
}
|
|
753
|
+
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
|
754
|
+
return ErrInvalidLengthVlocalchain
|
|
755
|
+
}
|
|
756
|
+
if (iNdEx + skippy) > l {
|
|
757
|
+
return io.ErrUnexpectedEOF
|
|
758
|
+
}
|
|
759
|
+
iNdEx += skippy
|
|
760
|
+
}
|
|
761
|
+
}
|
|
762
|
+
|
|
763
|
+
if iNdEx > l {
|
|
764
|
+
return io.ErrUnexpectedEOF
|
|
765
|
+
}
|
|
766
|
+
return nil
|
|
767
|
+
}
|
|
768
|
+
func (m *QueryResponse) Unmarshal(dAtA []byte) error {
|
|
769
|
+
l := len(dAtA)
|
|
770
|
+
iNdEx := 0
|
|
771
|
+
for iNdEx < l {
|
|
772
|
+
preIndex := iNdEx
|
|
773
|
+
var wire uint64
|
|
774
|
+
for shift := uint(0); ; shift += 7 {
|
|
775
|
+
if shift >= 64 {
|
|
776
|
+
return ErrIntOverflowVlocalchain
|
|
777
|
+
}
|
|
778
|
+
if iNdEx >= l {
|
|
779
|
+
return io.ErrUnexpectedEOF
|
|
780
|
+
}
|
|
781
|
+
b := dAtA[iNdEx]
|
|
782
|
+
iNdEx++
|
|
783
|
+
wire |= uint64(b&0x7F) << shift
|
|
784
|
+
if b < 0x80 {
|
|
785
|
+
break
|
|
786
|
+
}
|
|
787
|
+
}
|
|
788
|
+
fieldNum := int32(wire >> 3)
|
|
789
|
+
wireType := int(wire & 0x7)
|
|
790
|
+
if wireType == 4 {
|
|
791
|
+
return fmt.Errorf("proto: QueryResponse: wiretype end group for non-group")
|
|
792
|
+
}
|
|
793
|
+
if fieldNum <= 0 {
|
|
794
|
+
return fmt.Errorf("proto: QueryResponse: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
795
|
+
}
|
|
796
|
+
switch fieldNum {
|
|
797
|
+
case 1:
|
|
798
|
+
if wireType != 0 {
|
|
799
|
+
return fmt.Errorf("proto: wrong wireType = %d for field Height", wireType)
|
|
800
|
+
}
|
|
801
|
+
m.Height = 0
|
|
802
|
+
for shift := uint(0); ; shift += 7 {
|
|
803
|
+
if shift >= 64 {
|
|
804
|
+
return ErrIntOverflowVlocalchain
|
|
805
|
+
}
|
|
806
|
+
if iNdEx >= l {
|
|
807
|
+
return io.ErrUnexpectedEOF
|
|
808
|
+
}
|
|
809
|
+
b := dAtA[iNdEx]
|
|
810
|
+
iNdEx++
|
|
811
|
+
m.Height |= int64(b&0x7F) << shift
|
|
812
|
+
if b < 0x80 {
|
|
813
|
+
break
|
|
814
|
+
}
|
|
815
|
+
}
|
|
816
|
+
case 2:
|
|
817
|
+
if wireType != 2 {
|
|
818
|
+
return fmt.Errorf("proto: wrong wireType = %d for field Reply", wireType)
|
|
819
|
+
}
|
|
820
|
+
var msglen int
|
|
821
|
+
for shift := uint(0); ; shift += 7 {
|
|
822
|
+
if shift >= 64 {
|
|
823
|
+
return ErrIntOverflowVlocalchain
|
|
824
|
+
}
|
|
825
|
+
if iNdEx >= l {
|
|
826
|
+
return io.ErrUnexpectedEOF
|
|
827
|
+
}
|
|
828
|
+
b := dAtA[iNdEx]
|
|
829
|
+
iNdEx++
|
|
830
|
+
msglen |= int(b&0x7F) << shift
|
|
831
|
+
if b < 0x80 {
|
|
832
|
+
break
|
|
833
|
+
}
|
|
834
|
+
}
|
|
835
|
+
if msglen < 0 {
|
|
836
|
+
return ErrInvalidLengthVlocalchain
|
|
837
|
+
}
|
|
838
|
+
postIndex := iNdEx + msglen
|
|
839
|
+
if postIndex < 0 {
|
|
840
|
+
return ErrInvalidLengthVlocalchain
|
|
841
|
+
}
|
|
842
|
+
if postIndex > l {
|
|
843
|
+
return io.ErrUnexpectedEOF
|
|
844
|
+
}
|
|
845
|
+
if m.Reply == nil {
|
|
846
|
+
m.Reply = &types.Any{}
|
|
847
|
+
}
|
|
848
|
+
if err := m.Reply.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
849
|
+
return err
|
|
850
|
+
}
|
|
851
|
+
iNdEx = postIndex
|
|
852
|
+
case 3:
|
|
853
|
+
if wireType != 2 {
|
|
854
|
+
return fmt.Errorf("proto: wrong wireType = %d for field Error", wireType)
|
|
855
|
+
}
|
|
856
|
+
var stringLen uint64
|
|
857
|
+
for shift := uint(0); ; shift += 7 {
|
|
858
|
+
if shift >= 64 {
|
|
859
|
+
return ErrIntOverflowVlocalchain
|
|
860
|
+
}
|
|
861
|
+
if iNdEx >= l {
|
|
862
|
+
return io.ErrUnexpectedEOF
|
|
863
|
+
}
|
|
864
|
+
b := dAtA[iNdEx]
|
|
865
|
+
iNdEx++
|
|
866
|
+
stringLen |= uint64(b&0x7F) << shift
|
|
867
|
+
if b < 0x80 {
|
|
868
|
+
break
|
|
869
|
+
}
|
|
870
|
+
}
|
|
871
|
+
intStringLen := int(stringLen)
|
|
872
|
+
if intStringLen < 0 {
|
|
873
|
+
return ErrInvalidLengthVlocalchain
|
|
874
|
+
}
|
|
875
|
+
postIndex := iNdEx + intStringLen
|
|
876
|
+
if postIndex < 0 {
|
|
877
|
+
return ErrInvalidLengthVlocalchain
|
|
878
|
+
}
|
|
879
|
+
if postIndex > l {
|
|
880
|
+
return io.ErrUnexpectedEOF
|
|
881
|
+
}
|
|
882
|
+
m.Error = string(dAtA[iNdEx:postIndex])
|
|
883
|
+
iNdEx = postIndex
|
|
884
|
+
default:
|
|
885
|
+
iNdEx = preIndex
|
|
886
|
+
skippy, err := skipVlocalchain(dAtA[iNdEx:])
|
|
887
|
+
if err != nil {
|
|
888
|
+
return err
|
|
889
|
+
}
|
|
890
|
+
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
|
891
|
+
return ErrInvalidLengthVlocalchain
|
|
892
|
+
}
|
|
893
|
+
if (iNdEx + skippy) > l {
|
|
894
|
+
return io.ErrUnexpectedEOF
|
|
895
|
+
}
|
|
896
|
+
iNdEx += skippy
|
|
897
|
+
}
|
|
898
|
+
}
|
|
899
|
+
|
|
900
|
+
if iNdEx > l {
|
|
901
|
+
return io.ErrUnexpectedEOF
|
|
902
|
+
}
|
|
903
|
+
return nil
|
|
904
|
+
}
|
|
905
|
+
func (m *QueryResponses) Unmarshal(dAtA []byte) error {
|
|
906
|
+
l := len(dAtA)
|
|
907
|
+
iNdEx := 0
|
|
908
|
+
for iNdEx < l {
|
|
909
|
+
preIndex := iNdEx
|
|
910
|
+
var wire uint64
|
|
911
|
+
for shift := uint(0); ; shift += 7 {
|
|
912
|
+
if shift >= 64 {
|
|
913
|
+
return ErrIntOverflowVlocalchain
|
|
914
|
+
}
|
|
915
|
+
if iNdEx >= l {
|
|
916
|
+
return io.ErrUnexpectedEOF
|
|
917
|
+
}
|
|
918
|
+
b := dAtA[iNdEx]
|
|
919
|
+
iNdEx++
|
|
920
|
+
wire |= uint64(b&0x7F) << shift
|
|
921
|
+
if b < 0x80 {
|
|
922
|
+
break
|
|
923
|
+
}
|
|
924
|
+
}
|
|
925
|
+
fieldNum := int32(wire >> 3)
|
|
926
|
+
wireType := int(wire & 0x7)
|
|
927
|
+
if wireType == 4 {
|
|
928
|
+
return fmt.Errorf("proto: QueryResponses: wiretype end group for non-group")
|
|
929
|
+
}
|
|
930
|
+
if fieldNum <= 0 {
|
|
931
|
+
return fmt.Errorf("proto: QueryResponses: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
932
|
+
}
|
|
933
|
+
switch fieldNum {
|
|
934
|
+
case 1:
|
|
935
|
+
if wireType != 2 {
|
|
936
|
+
return fmt.Errorf("proto: wrong wireType = %d for field Responses", wireType)
|
|
937
|
+
}
|
|
938
|
+
var msglen int
|
|
939
|
+
for shift := uint(0); ; shift += 7 {
|
|
940
|
+
if shift >= 64 {
|
|
941
|
+
return ErrIntOverflowVlocalchain
|
|
942
|
+
}
|
|
943
|
+
if iNdEx >= l {
|
|
944
|
+
return io.ErrUnexpectedEOF
|
|
945
|
+
}
|
|
946
|
+
b := dAtA[iNdEx]
|
|
947
|
+
iNdEx++
|
|
948
|
+
msglen |= int(b&0x7F) << shift
|
|
949
|
+
if b < 0x80 {
|
|
950
|
+
break
|
|
951
|
+
}
|
|
952
|
+
}
|
|
953
|
+
if msglen < 0 {
|
|
954
|
+
return ErrInvalidLengthVlocalchain
|
|
955
|
+
}
|
|
956
|
+
postIndex := iNdEx + msglen
|
|
957
|
+
if postIndex < 0 {
|
|
958
|
+
return ErrInvalidLengthVlocalchain
|
|
959
|
+
}
|
|
960
|
+
if postIndex > l {
|
|
961
|
+
return io.ErrUnexpectedEOF
|
|
962
|
+
}
|
|
963
|
+
m.Responses = append(m.Responses, &QueryResponse{})
|
|
964
|
+
if err := m.Responses[len(m.Responses)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
965
|
+
return err
|
|
966
|
+
}
|
|
967
|
+
iNdEx = postIndex
|
|
968
|
+
default:
|
|
969
|
+
iNdEx = preIndex
|
|
970
|
+
skippy, err := skipVlocalchain(dAtA[iNdEx:])
|
|
971
|
+
if err != nil {
|
|
972
|
+
return err
|
|
973
|
+
}
|
|
974
|
+
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
|
975
|
+
return ErrInvalidLengthVlocalchain
|
|
976
|
+
}
|
|
977
|
+
if (iNdEx + skippy) > l {
|
|
978
|
+
return io.ErrUnexpectedEOF
|
|
979
|
+
}
|
|
980
|
+
iNdEx += skippy
|
|
981
|
+
}
|
|
982
|
+
}
|
|
983
|
+
|
|
984
|
+
if iNdEx > l {
|
|
985
|
+
return io.ErrUnexpectedEOF
|
|
986
|
+
}
|
|
987
|
+
return nil
|
|
988
|
+
}
|
|
989
|
+
func skipVlocalchain(dAtA []byte) (n int, err error) {
|
|
990
|
+
l := len(dAtA)
|
|
991
|
+
iNdEx := 0
|
|
992
|
+
depth := 0
|
|
993
|
+
for iNdEx < l {
|
|
994
|
+
var wire uint64
|
|
995
|
+
for shift := uint(0); ; shift += 7 {
|
|
996
|
+
if shift >= 64 {
|
|
997
|
+
return 0, ErrIntOverflowVlocalchain
|
|
998
|
+
}
|
|
999
|
+
if iNdEx >= l {
|
|
1000
|
+
return 0, io.ErrUnexpectedEOF
|
|
1001
|
+
}
|
|
1002
|
+
b := dAtA[iNdEx]
|
|
1003
|
+
iNdEx++
|
|
1004
|
+
wire |= (uint64(b) & 0x7F) << shift
|
|
1005
|
+
if b < 0x80 {
|
|
1006
|
+
break
|
|
1007
|
+
}
|
|
1008
|
+
}
|
|
1009
|
+
wireType := int(wire & 0x7)
|
|
1010
|
+
switch wireType {
|
|
1011
|
+
case 0:
|
|
1012
|
+
for shift := uint(0); ; shift += 7 {
|
|
1013
|
+
if shift >= 64 {
|
|
1014
|
+
return 0, ErrIntOverflowVlocalchain
|
|
1015
|
+
}
|
|
1016
|
+
if iNdEx >= l {
|
|
1017
|
+
return 0, io.ErrUnexpectedEOF
|
|
1018
|
+
}
|
|
1019
|
+
iNdEx++
|
|
1020
|
+
if dAtA[iNdEx-1] < 0x80 {
|
|
1021
|
+
break
|
|
1022
|
+
}
|
|
1023
|
+
}
|
|
1024
|
+
case 1:
|
|
1025
|
+
iNdEx += 8
|
|
1026
|
+
case 2:
|
|
1027
|
+
var length int
|
|
1028
|
+
for shift := uint(0); ; shift += 7 {
|
|
1029
|
+
if shift >= 64 {
|
|
1030
|
+
return 0, ErrIntOverflowVlocalchain
|
|
1031
|
+
}
|
|
1032
|
+
if iNdEx >= l {
|
|
1033
|
+
return 0, io.ErrUnexpectedEOF
|
|
1034
|
+
}
|
|
1035
|
+
b := dAtA[iNdEx]
|
|
1036
|
+
iNdEx++
|
|
1037
|
+
length |= (int(b) & 0x7F) << shift
|
|
1038
|
+
if b < 0x80 {
|
|
1039
|
+
break
|
|
1040
|
+
}
|
|
1041
|
+
}
|
|
1042
|
+
if length < 0 {
|
|
1043
|
+
return 0, ErrInvalidLengthVlocalchain
|
|
1044
|
+
}
|
|
1045
|
+
iNdEx += length
|
|
1046
|
+
case 3:
|
|
1047
|
+
depth++
|
|
1048
|
+
case 4:
|
|
1049
|
+
if depth == 0 {
|
|
1050
|
+
return 0, ErrUnexpectedEndOfGroupVlocalchain
|
|
1051
|
+
}
|
|
1052
|
+
depth--
|
|
1053
|
+
case 5:
|
|
1054
|
+
iNdEx += 4
|
|
1055
|
+
default:
|
|
1056
|
+
return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
|
|
1057
|
+
}
|
|
1058
|
+
if iNdEx < 0 {
|
|
1059
|
+
return 0, ErrInvalidLengthVlocalchain
|
|
1060
|
+
}
|
|
1061
|
+
if depth == 0 {
|
|
1062
|
+
return iNdEx, nil
|
|
1063
|
+
}
|
|
1064
|
+
}
|
|
1065
|
+
return 0, io.ErrUnexpectedEOF
|
|
1066
|
+
}
|
|
1067
|
+
|
|
1068
|
+
var (
|
|
1069
|
+
ErrInvalidLengthVlocalchain = fmt.Errorf("proto: negative length found during unmarshaling")
|
|
1070
|
+
ErrIntOverflowVlocalchain = fmt.Errorf("proto: integer overflow")
|
|
1071
|
+
ErrUnexpectedEndOfGroupVlocalchain = fmt.Errorf("proto: unexpected end of group")
|
|
1072
|
+
)
|