github.com/Finschia/finschia-sdk@v0.49.1/x/upgrade/types/query.pb.go (about) 1 // Code generated by protoc-gen-gogo. DO NOT EDIT. 2 // source: cosmos/upgrade/v1beta1/query.proto 3 4 package types 5 6 import ( 7 context "context" 8 fmt "fmt" 9 _ "github.com/Finschia/finschia-sdk/codec/types" 10 grpc1 "github.com/gogo/protobuf/grpc" 11 proto "github.com/gogo/protobuf/proto" 12 _ "google.golang.org/genproto/googleapis/api/annotations" 13 grpc "google.golang.org/grpc" 14 codes "google.golang.org/grpc/codes" 15 status "google.golang.org/grpc/status" 16 io "io" 17 math "math" 18 math_bits "math/bits" 19 ) 20 21 // Reference imports to suppress errors if they are not otherwise used. 22 var _ = proto.Marshal 23 var _ = fmt.Errorf 24 var _ = math.Inf 25 26 // This is a compile-time assertion to ensure that this generated file 27 // is compatible with the proto package it is being compiled against. 28 // A compilation error at this line likely means your copy of the 29 // proto package needs to be updated. 30 const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package 31 32 // QueryCurrentPlanRequest is the request type for the Query/CurrentPlan RPC 33 // method. 34 type QueryCurrentPlanRequest struct { 35 } 36 37 func (m *QueryCurrentPlanRequest) Reset() { *m = QueryCurrentPlanRequest{} } 38 func (m *QueryCurrentPlanRequest) String() string { return proto.CompactTextString(m) } 39 func (*QueryCurrentPlanRequest) ProtoMessage() {} 40 func (*QueryCurrentPlanRequest) Descriptor() ([]byte, []int) { 41 return fileDescriptor_4a334d07ad8374f0, []int{0} 42 } 43 func (m *QueryCurrentPlanRequest) XXX_Unmarshal(b []byte) error { 44 return m.Unmarshal(b) 45 } 46 func (m *QueryCurrentPlanRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 47 if deterministic { 48 return xxx_messageInfo_QueryCurrentPlanRequest.Marshal(b, m, deterministic) 49 } else { 50 b = b[:cap(b)] 51 n, err := m.MarshalToSizedBuffer(b) 52 if err != nil { 53 return nil, err 54 } 55 return b[:n], nil 56 } 57 } 58 func (m *QueryCurrentPlanRequest) XXX_Merge(src proto.Message) { 59 xxx_messageInfo_QueryCurrentPlanRequest.Merge(m, src) 60 } 61 func (m *QueryCurrentPlanRequest) XXX_Size() int { 62 return m.Size() 63 } 64 func (m *QueryCurrentPlanRequest) XXX_DiscardUnknown() { 65 xxx_messageInfo_QueryCurrentPlanRequest.DiscardUnknown(m) 66 } 67 68 var xxx_messageInfo_QueryCurrentPlanRequest proto.InternalMessageInfo 69 70 // QueryCurrentPlanResponse is the response type for the Query/CurrentPlan RPC 71 // method. 72 type QueryCurrentPlanResponse struct { 73 // plan is the current upgrade plan. 74 Plan *Plan `protobuf:"bytes,1,opt,name=plan,proto3" json:"plan,omitempty"` 75 } 76 77 func (m *QueryCurrentPlanResponse) Reset() { *m = QueryCurrentPlanResponse{} } 78 func (m *QueryCurrentPlanResponse) String() string { return proto.CompactTextString(m) } 79 func (*QueryCurrentPlanResponse) ProtoMessage() {} 80 func (*QueryCurrentPlanResponse) Descriptor() ([]byte, []int) { 81 return fileDescriptor_4a334d07ad8374f0, []int{1} 82 } 83 func (m *QueryCurrentPlanResponse) XXX_Unmarshal(b []byte) error { 84 return m.Unmarshal(b) 85 } 86 func (m *QueryCurrentPlanResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 87 if deterministic { 88 return xxx_messageInfo_QueryCurrentPlanResponse.Marshal(b, m, deterministic) 89 } else { 90 b = b[:cap(b)] 91 n, err := m.MarshalToSizedBuffer(b) 92 if err != nil { 93 return nil, err 94 } 95 return b[:n], nil 96 } 97 } 98 func (m *QueryCurrentPlanResponse) XXX_Merge(src proto.Message) { 99 xxx_messageInfo_QueryCurrentPlanResponse.Merge(m, src) 100 } 101 func (m *QueryCurrentPlanResponse) XXX_Size() int { 102 return m.Size() 103 } 104 func (m *QueryCurrentPlanResponse) XXX_DiscardUnknown() { 105 xxx_messageInfo_QueryCurrentPlanResponse.DiscardUnknown(m) 106 } 107 108 var xxx_messageInfo_QueryCurrentPlanResponse proto.InternalMessageInfo 109 110 func (m *QueryCurrentPlanResponse) GetPlan() *Plan { 111 if m != nil { 112 return m.Plan 113 } 114 return nil 115 } 116 117 // QueryCurrentPlanRequest is the request type for the Query/AppliedPlan RPC 118 // method. 119 type QueryAppliedPlanRequest struct { 120 // name is the name of the applied plan to query for. 121 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` 122 } 123 124 func (m *QueryAppliedPlanRequest) Reset() { *m = QueryAppliedPlanRequest{} } 125 func (m *QueryAppliedPlanRequest) String() string { return proto.CompactTextString(m) } 126 func (*QueryAppliedPlanRequest) ProtoMessage() {} 127 func (*QueryAppliedPlanRequest) Descriptor() ([]byte, []int) { 128 return fileDescriptor_4a334d07ad8374f0, []int{2} 129 } 130 func (m *QueryAppliedPlanRequest) XXX_Unmarshal(b []byte) error { 131 return m.Unmarshal(b) 132 } 133 func (m *QueryAppliedPlanRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 134 if deterministic { 135 return xxx_messageInfo_QueryAppliedPlanRequest.Marshal(b, m, deterministic) 136 } else { 137 b = b[:cap(b)] 138 n, err := m.MarshalToSizedBuffer(b) 139 if err != nil { 140 return nil, err 141 } 142 return b[:n], nil 143 } 144 } 145 func (m *QueryAppliedPlanRequest) XXX_Merge(src proto.Message) { 146 xxx_messageInfo_QueryAppliedPlanRequest.Merge(m, src) 147 } 148 func (m *QueryAppliedPlanRequest) XXX_Size() int { 149 return m.Size() 150 } 151 func (m *QueryAppliedPlanRequest) XXX_DiscardUnknown() { 152 xxx_messageInfo_QueryAppliedPlanRequest.DiscardUnknown(m) 153 } 154 155 var xxx_messageInfo_QueryAppliedPlanRequest proto.InternalMessageInfo 156 157 func (m *QueryAppliedPlanRequest) GetName() string { 158 if m != nil { 159 return m.Name 160 } 161 return "" 162 } 163 164 // QueryAppliedPlanResponse is the response type for the Query/AppliedPlan RPC 165 // method. 166 type QueryAppliedPlanResponse struct { 167 // height is the block height at which the plan was applied. 168 Height int64 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"` 169 } 170 171 func (m *QueryAppliedPlanResponse) Reset() { *m = QueryAppliedPlanResponse{} } 172 func (m *QueryAppliedPlanResponse) String() string { return proto.CompactTextString(m) } 173 func (*QueryAppliedPlanResponse) ProtoMessage() {} 174 func (*QueryAppliedPlanResponse) Descriptor() ([]byte, []int) { 175 return fileDescriptor_4a334d07ad8374f0, []int{3} 176 } 177 func (m *QueryAppliedPlanResponse) XXX_Unmarshal(b []byte) error { 178 return m.Unmarshal(b) 179 } 180 func (m *QueryAppliedPlanResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 181 if deterministic { 182 return xxx_messageInfo_QueryAppliedPlanResponse.Marshal(b, m, deterministic) 183 } else { 184 b = b[:cap(b)] 185 n, err := m.MarshalToSizedBuffer(b) 186 if err != nil { 187 return nil, err 188 } 189 return b[:n], nil 190 } 191 } 192 func (m *QueryAppliedPlanResponse) XXX_Merge(src proto.Message) { 193 xxx_messageInfo_QueryAppliedPlanResponse.Merge(m, src) 194 } 195 func (m *QueryAppliedPlanResponse) XXX_Size() int { 196 return m.Size() 197 } 198 func (m *QueryAppliedPlanResponse) XXX_DiscardUnknown() { 199 xxx_messageInfo_QueryAppliedPlanResponse.DiscardUnknown(m) 200 } 201 202 var xxx_messageInfo_QueryAppliedPlanResponse proto.InternalMessageInfo 203 204 func (m *QueryAppliedPlanResponse) GetHeight() int64 { 205 if m != nil { 206 return m.Height 207 } 208 return 0 209 } 210 211 // QueryUpgradedConsensusStateRequest is the request type for the Query/UpgradedConsensusState 212 // RPC method. 213 // 214 // Deprecated: Do not use. 215 type QueryUpgradedConsensusStateRequest struct { 216 // last height of the current chain must be sent in request 217 // as this is the height under which next consensus state is stored 218 LastHeight int64 `protobuf:"varint,1,opt,name=last_height,json=lastHeight,proto3" json:"last_height,omitempty"` 219 } 220 221 func (m *QueryUpgradedConsensusStateRequest) Reset() { *m = QueryUpgradedConsensusStateRequest{} } 222 func (m *QueryUpgradedConsensusStateRequest) String() string { return proto.CompactTextString(m) } 223 func (*QueryUpgradedConsensusStateRequest) ProtoMessage() {} 224 func (*QueryUpgradedConsensusStateRequest) Descriptor() ([]byte, []int) { 225 return fileDescriptor_4a334d07ad8374f0, []int{4} 226 } 227 func (m *QueryUpgradedConsensusStateRequest) XXX_Unmarshal(b []byte) error { 228 return m.Unmarshal(b) 229 } 230 func (m *QueryUpgradedConsensusStateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 231 if deterministic { 232 return xxx_messageInfo_QueryUpgradedConsensusStateRequest.Marshal(b, m, deterministic) 233 } else { 234 b = b[:cap(b)] 235 n, err := m.MarshalToSizedBuffer(b) 236 if err != nil { 237 return nil, err 238 } 239 return b[:n], nil 240 } 241 } 242 func (m *QueryUpgradedConsensusStateRequest) XXX_Merge(src proto.Message) { 243 xxx_messageInfo_QueryUpgradedConsensusStateRequest.Merge(m, src) 244 } 245 func (m *QueryUpgradedConsensusStateRequest) XXX_Size() int { 246 return m.Size() 247 } 248 func (m *QueryUpgradedConsensusStateRequest) XXX_DiscardUnknown() { 249 xxx_messageInfo_QueryUpgradedConsensusStateRequest.DiscardUnknown(m) 250 } 251 252 var xxx_messageInfo_QueryUpgradedConsensusStateRequest proto.InternalMessageInfo 253 254 func (m *QueryUpgradedConsensusStateRequest) GetLastHeight() int64 { 255 if m != nil { 256 return m.LastHeight 257 } 258 return 0 259 } 260 261 // QueryUpgradedConsensusStateResponse is the response type for the Query/UpgradedConsensusState 262 // RPC method. 263 // 264 // Deprecated: Do not use. 265 type QueryUpgradedConsensusStateResponse struct { 266 // Since: cosmos-sdk 0.43 267 UpgradedConsensusState []byte `protobuf:"bytes,2,opt,name=upgraded_consensus_state,json=upgradedConsensusState,proto3" json:"upgraded_consensus_state,omitempty"` 268 } 269 270 func (m *QueryUpgradedConsensusStateResponse) Reset() { *m = QueryUpgradedConsensusStateResponse{} } 271 func (m *QueryUpgradedConsensusStateResponse) String() string { return proto.CompactTextString(m) } 272 func (*QueryUpgradedConsensusStateResponse) ProtoMessage() {} 273 func (*QueryUpgradedConsensusStateResponse) Descriptor() ([]byte, []int) { 274 return fileDescriptor_4a334d07ad8374f0, []int{5} 275 } 276 func (m *QueryUpgradedConsensusStateResponse) XXX_Unmarshal(b []byte) error { 277 return m.Unmarshal(b) 278 } 279 func (m *QueryUpgradedConsensusStateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 280 if deterministic { 281 return xxx_messageInfo_QueryUpgradedConsensusStateResponse.Marshal(b, m, deterministic) 282 } else { 283 b = b[:cap(b)] 284 n, err := m.MarshalToSizedBuffer(b) 285 if err != nil { 286 return nil, err 287 } 288 return b[:n], nil 289 } 290 } 291 func (m *QueryUpgradedConsensusStateResponse) XXX_Merge(src proto.Message) { 292 xxx_messageInfo_QueryUpgradedConsensusStateResponse.Merge(m, src) 293 } 294 func (m *QueryUpgradedConsensusStateResponse) XXX_Size() int { 295 return m.Size() 296 } 297 func (m *QueryUpgradedConsensusStateResponse) XXX_DiscardUnknown() { 298 xxx_messageInfo_QueryUpgradedConsensusStateResponse.DiscardUnknown(m) 299 } 300 301 var xxx_messageInfo_QueryUpgradedConsensusStateResponse proto.InternalMessageInfo 302 303 func (m *QueryUpgradedConsensusStateResponse) GetUpgradedConsensusState() []byte { 304 if m != nil { 305 return m.UpgradedConsensusState 306 } 307 return nil 308 } 309 310 // QueryModuleVersionsRequest is the request type for the Query/ModuleVersions 311 // RPC method. 312 // 313 // Since: cosmos-sdk 0.43 314 type QueryModuleVersionsRequest struct { 315 // module_name is a field to query a specific module 316 // consensus version from state. Leaving this empty will 317 // fetch the full list of module versions from state 318 ModuleName string `protobuf:"bytes,1,opt,name=module_name,json=moduleName,proto3" json:"module_name,omitempty"` 319 } 320 321 func (m *QueryModuleVersionsRequest) Reset() { *m = QueryModuleVersionsRequest{} } 322 func (m *QueryModuleVersionsRequest) String() string { return proto.CompactTextString(m) } 323 func (*QueryModuleVersionsRequest) ProtoMessage() {} 324 func (*QueryModuleVersionsRequest) Descriptor() ([]byte, []int) { 325 return fileDescriptor_4a334d07ad8374f0, []int{6} 326 } 327 func (m *QueryModuleVersionsRequest) XXX_Unmarshal(b []byte) error { 328 return m.Unmarshal(b) 329 } 330 func (m *QueryModuleVersionsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 331 if deterministic { 332 return xxx_messageInfo_QueryModuleVersionsRequest.Marshal(b, m, deterministic) 333 } else { 334 b = b[:cap(b)] 335 n, err := m.MarshalToSizedBuffer(b) 336 if err != nil { 337 return nil, err 338 } 339 return b[:n], nil 340 } 341 } 342 func (m *QueryModuleVersionsRequest) XXX_Merge(src proto.Message) { 343 xxx_messageInfo_QueryModuleVersionsRequest.Merge(m, src) 344 } 345 func (m *QueryModuleVersionsRequest) XXX_Size() int { 346 return m.Size() 347 } 348 func (m *QueryModuleVersionsRequest) XXX_DiscardUnknown() { 349 xxx_messageInfo_QueryModuleVersionsRequest.DiscardUnknown(m) 350 } 351 352 var xxx_messageInfo_QueryModuleVersionsRequest proto.InternalMessageInfo 353 354 func (m *QueryModuleVersionsRequest) GetModuleName() string { 355 if m != nil { 356 return m.ModuleName 357 } 358 return "" 359 } 360 361 // QueryModuleVersionsResponse is the response type for the Query/ModuleVersions 362 // RPC method. 363 // 364 // Since: cosmos-sdk 0.43 365 type QueryModuleVersionsResponse struct { 366 // module_versions is a list of module names with their consensus versions. 367 ModuleVersions []*ModuleVersion `protobuf:"bytes,1,rep,name=module_versions,json=moduleVersions,proto3" json:"module_versions,omitempty"` 368 } 369 370 func (m *QueryModuleVersionsResponse) Reset() { *m = QueryModuleVersionsResponse{} } 371 func (m *QueryModuleVersionsResponse) String() string { return proto.CompactTextString(m) } 372 func (*QueryModuleVersionsResponse) ProtoMessage() {} 373 func (*QueryModuleVersionsResponse) Descriptor() ([]byte, []int) { 374 return fileDescriptor_4a334d07ad8374f0, []int{7} 375 } 376 func (m *QueryModuleVersionsResponse) XXX_Unmarshal(b []byte) error { 377 return m.Unmarshal(b) 378 } 379 func (m *QueryModuleVersionsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 380 if deterministic { 381 return xxx_messageInfo_QueryModuleVersionsResponse.Marshal(b, m, deterministic) 382 } else { 383 b = b[:cap(b)] 384 n, err := m.MarshalToSizedBuffer(b) 385 if err != nil { 386 return nil, err 387 } 388 return b[:n], nil 389 } 390 } 391 func (m *QueryModuleVersionsResponse) XXX_Merge(src proto.Message) { 392 xxx_messageInfo_QueryModuleVersionsResponse.Merge(m, src) 393 } 394 func (m *QueryModuleVersionsResponse) XXX_Size() int { 395 return m.Size() 396 } 397 func (m *QueryModuleVersionsResponse) XXX_DiscardUnknown() { 398 xxx_messageInfo_QueryModuleVersionsResponse.DiscardUnknown(m) 399 } 400 401 var xxx_messageInfo_QueryModuleVersionsResponse proto.InternalMessageInfo 402 403 func (m *QueryModuleVersionsResponse) GetModuleVersions() []*ModuleVersion { 404 if m != nil { 405 return m.ModuleVersions 406 } 407 return nil 408 } 409 410 func init() { 411 proto.RegisterType((*QueryCurrentPlanRequest)(nil), "cosmos.upgrade.v1beta1.QueryCurrentPlanRequest") 412 proto.RegisterType((*QueryCurrentPlanResponse)(nil), "cosmos.upgrade.v1beta1.QueryCurrentPlanResponse") 413 proto.RegisterType((*QueryAppliedPlanRequest)(nil), "cosmos.upgrade.v1beta1.QueryAppliedPlanRequest") 414 proto.RegisterType((*QueryAppliedPlanResponse)(nil), "cosmos.upgrade.v1beta1.QueryAppliedPlanResponse") 415 proto.RegisterType((*QueryUpgradedConsensusStateRequest)(nil), "cosmos.upgrade.v1beta1.QueryUpgradedConsensusStateRequest") 416 proto.RegisterType((*QueryUpgradedConsensusStateResponse)(nil), "cosmos.upgrade.v1beta1.QueryUpgradedConsensusStateResponse") 417 proto.RegisterType((*QueryModuleVersionsRequest)(nil), "cosmos.upgrade.v1beta1.QueryModuleVersionsRequest") 418 proto.RegisterType((*QueryModuleVersionsResponse)(nil), "cosmos.upgrade.v1beta1.QueryModuleVersionsResponse") 419 } 420 421 func init() { 422 proto.RegisterFile("cosmos/upgrade/v1beta1/query.proto", fileDescriptor_4a334d07ad8374f0) 423 } 424 425 var fileDescriptor_4a334d07ad8374f0 = []byte{ 426 // 595 bytes of a gzipped FileDescriptorProto 427 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x54, 0xcf, 0x6f, 0xd3, 0x30, 428 0x18, 0x9d, 0xbb, 0x1f, 0x02, 0x17, 0x0d, 0xe4, 0x43, 0xc9, 0xc2, 0x14, 0xaa, 0x30, 0xa0, 0x08, 429 0x1a, 0x77, 0xed, 0x05, 0x0d, 0x81, 0x80, 0x49, 0x88, 0x4d, 0x30, 0x41, 0x11, 0x1c, 0xb8, 0x54, 430 0x6e, 0xe3, 0xb5, 0x11, 0x89, 0x9d, 0xc5, 0xce, 0xc4, 0x34, 0xed, 0xc2, 0x89, 0x23, 0x12, 0x77, 431 0x6e, 0x5c, 0xf8, 0x4b, 0x38, 0x4e, 0xe2, 0xc2, 0x61, 0x07, 0xd4, 0xf2, 0x87, 0xa0, 0x38, 0x2e, 432 0x4a, 0x69, 0xd2, 0x01, 0xb7, 0xc4, 0xdf, 0x7b, 0xdf, 0x7b, 0x9f, 0xfd, 0x6c, 0x68, 0xf7, 0xb8, 433 0x08, 0xb8, 0xc0, 0x71, 0xd8, 0x8f, 0x88, 0x4b, 0xf1, 0xfe, 0x7a, 0x97, 0x4a, 0xb2, 0x8e, 0xf7, 434 0x62, 0x1a, 0x1d, 0x38, 0x61, 0xc4, 0x25, 0x47, 0x95, 0x14, 0xe3, 0x68, 0x8c, 0xa3, 0x31, 0xe6, 435 0x4a, 0x9f, 0xf3, 0xbe, 0x4f, 0xb1, 0x42, 0x75, 0xe3, 0x5d, 0x4c, 0x98, 0xa6, 0x98, 0xab, 0xba, 436 0x44, 0x42, 0x0f, 0x13, 0xc6, 0xb8, 0x24, 0xd2, 0xe3, 0x4c, 0xe8, 0xea, 0x5a, 0x81, 0xe8, 0x58, 437 0x40, 0xa1, 0xec, 0x15, 0x78, 0xf1, 0x79, 0xe2, 0x62, 0x33, 0x8e, 0x22, 0xca, 0xe4, 0x33, 0x9f, 438 0xb0, 0x36, 0xdd, 0x8b, 0xa9, 0x90, 0xf6, 0x13, 0x68, 0x4c, 0x97, 0x44, 0xc8, 0x99, 0xa0, 0xa8, 439 0x01, 0x17, 0x42, 0x9f, 0x30, 0x03, 0x54, 0x41, 0xad, 0xdc, 0x5c, 0x75, 0xf2, 0xcd, 0x3b, 0x8a, 440 0xa3, 0x90, 0x76, 0x5d, 0x0b, 0x3d, 0x08, 0x43, 0xdf, 0xa3, 0x6e, 0x46, 0x08, 0x21, 0xb8, 0xc0, 441 0x48, 0x40, 0x55, 0xb3, 0xb3, 0x6d, 0xf5, 0x6d, 0x37, 0xb5, 0xf8, 0x04, 0x5c, 0x8b, 0x57, 0xe0, 442 0xd2, 0x80, 0x7a, 0xfd, 0x81, 0x54, 0x8c, 0xf9, 0xb6, 0xfe, 0xb3, 0xb7, 0xa0, 0xad, 0x38, 0x2f, 443 0x53, 0x17, 0xee, 0x66, 0x82, 0x66, 0x22, 0x16, 0x2f, 0x24, 0x91, 0x74, 0xac, 0x76, 0x19, 0x96, 444 0x7d, 0x22, 0x64, 0x67, 0xa2, 0x05, 0x4c, 0x96, 0x1e, 0xab, 0x95, 0x8d, 0x92, 0x01, 0x6c, 0x0f, 445 0x5e, 0x99, 0xd9, 0x4a, 0x3b, 0xb9, 0x0d, 0x0d, 0x3d, 0xb2, 0xdb, 0xe9, 0x8d, 0x21, 0x1d, 0x91, 446 0x60, 0x8c, 0x52, 0x15, 0xd4, 0xce, 0xb5, 0x2b, 0x71, 0x6e, 0x87, 0x44, 0x64, 0x7b, 0xe1, 0x0c, 447 0xb8, 0x50, 0xb2, 0xef, 0x42, 0x53, 0x49, 0x3d, 0xe5, 0x6e, 0xec, 0xd3, 0x57, 0x34, 0x12, 0xc9, 448 0x21, 0x66, 0xdc, 0x06, 0xaa, 0xd0, 0xc9, 0x6c, 0x11, 0x4c, 0x97, 0x76, 0x92, 0x8d, 0x0a, 0xe0, 449 0xa5, 0x5c, 0xba, 0x76, 0xb8, 0x03, 0xcf, 0x6b, 0xfe, 0xbe, 0x2e, 0x19, 0xa0, 0x3a, 0x5f, 0x2b, 450 0x37, 0xaf, 0x16, 0x9d, 0xd9, 0x44, 0xa3, 0xf6, 0x72, 0x30, 0xd1, 0xb7, 0x79, 0xb2, 0x08, 0x17, 451 0x95, 0x1e, 0xfa, 0x04, 0x60, 0x39, 0x13, 0x0d, 0x84, 0x8b, 0x1a, 0x16, 0xe4, 0xcb, 0x6c, 0xfc, 452 0x3d, 0x21, 0x1d, 0xc6, 0xbe, 0xf5, 0xee, 0xdb, 0xcf, 0x8f, 0xa5, 0x6b, 0x68, 0x0d, 0x17, 0x64, 453 0xbb, 0x97, 0x92, 0x3a, 0x49, 0xe2, 0xd0, 0x67, 0x00, 0xcb, 0x99, 0xf8, 0x9c, 0x62, 0x70, 0x3a, 454 0x97, 0xa7, 0x18, 0xcc, 0x49, 0xa6, 0xdd, 0x52, 0x06, 0xeb, 0xe8, 0x66, 0x91, 0x41, 0x92, 0x92, 455 0x94, 0x41, 0x7c, 0x98, 0x1c, 0xe9, 0x11, 0x3a, 0x01, 0xb0, 0x92, 0x9f, 0x33, 0xb4, 0x31, 0xd3, 456 0xc1, 0xcc, 0x9c, 0x9b, 0x77, 0xfe, 0x8b, 0xab, 0x07, 0xd9, 0x52, 0x83, 0xdc, 0x47, 0xf7, 0xf0, 457 0xec, 0x57, 0x64, 0x2a, 0xf6, 0xf8, 0x30, 0x73, 0xb9, 0x8e, 0xde, 0x97, 0x00, 0xfa, 0x02, 0xe0, 458 0xf2, 0x64, 0x38, 0x51, 0x73, 0xa6, 0xb5, 0xdc, 0x8b, 0x60, 0xb6, 0xfe, 0x89, 0xa3, 0xc7, 0xc0, 459 0x6a, 0x8c, 0x1b, 0xe8, 0x7a, 0xd1, 0x18, 0x7f, 0xdc, 0x8d, 0x87, 0xdb, 0x5f, 0x87, 0x16, 0x38, 460 0x1e, 0x5a, 0xe0, 0xc7, 0xd0, 0x02, 0x1f, 0x46, 0xd6, 0xdc, 0xf1, 0xc8, 0x9a, 0xfb, 0x3e, 0xb2, 461 0xe6, 0x5e, 0x37, 0xfa, 0x9e, 0x1c, 0xc4, 0x5d, 0xa7, 0xc7, 0x03, 0xfc, 0xc8, 0x63, 0xa2, 0x37, 462 0xf0, 0x08, 0xde, 0xd5, 0x1f, 0x75, 0xe1, 0xbe, 0xc1, 0x6f, 0x7f, 0x77, 0x97, 0x07, 0x21, 0x15, 463 0xdd, 0x25, 0xf5, 0xc2, 0xb6, 0x7e, 0x05, 0x00, 0x00, 0xff, 0xff, 0x04, 0xb1, 0x4f, 0x3c, 0xfe, 464 0x05, 0x00, 0x00, 465 } 466 467 // Reference imports to suppress errors if they are not otherwise used. 468 var _ context.Context 469 var _ grpc.ClientConn 470 471 // This is a compile-time assertion to ensure that this generated file 472 // is compatible with the grpc package it is being compiled against. 473 const _ = grpc.SupportPackageIsVersion4 474 475 // QueryClient is the client API for Query service. 476 // 477 // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. 478 type QueryClient interface { 479 // CurrentPlan queries the current upgrade plan. 480 CurrentPlan(ctx context.Context, in *QueryCurrentPlanRequest, opts ...grpc.CallOption) (*QueryCurrentPlanResponse, error) 481 // AppliedPlan queries a previously applied upgrade plan by its name. 482 AppliedPlan(ctx context.Context, in *QueryAppliedPlanRequest, opts ...grpc.CallOption) (*QueryAppliedPlanResponse, error) 483 // UpgradedConsensusState queries the consensus state that will serve 484 // as a trusted kernel for the next version of this chain. It will only be 485 // stored at the last height of this chain. 486 // UpgradedConsensusState RPC not supported with legacy querier 487 // This rpc is deprecated now that IBC has its own replacement 488 // (https://github.com/cosmos/ibc-go/blob/2c880a22e9f9cc75f62b527ca94aa75ce1106001/proto/ibc/core/client/v1/query.proto#L54) 489 UpgradedConsensusState(ctx context.Context, in *QueryUpgradedConsensusStateRequest, opts ...grpc.CallOption) (*QueryUpgradedConsensusStateResponse, error) 490 // ModuleVersions queries the list of module versions from state. 491 // 492 // Since: cosmos-sdk 0.43 493 ModuleVersions(ctx context.Context, in *QueryModuleVersionsRequest, opts ...grpc.CallOption) (*QueryModuleVersionsResponse, error) 494 } 495 496 type queryClient struct { 497 cc grpc1.ClientConn 498 } 499 500 func NewQueryClient(cc grpc1.ClientConn) QueryClient { 501 return &queryClient{cc} 502 } 503 504 func (c *queryClient) CurrentPlan(ctx context.Context, in *QueryCurrentPlanRequest, opts ...grpc.CallOption) (*QueryCurrentPlanResponse, error) { 505 out := new(QueryCurrentPlanResponse) 506 err := c.cc.Invoke(ctx, "/cosmos.upgrade.v1beta1.Query/CurrentPlan", in, out, opts...) 507 if err != nil { 508 return nil, err 509 } 510 return out, nil 511 } 512 513 func (c *queryClient) AppliedPlan(ctx context.Context, in *QueryAppliedPlanRequest, opts ...grpc.CallOption) (*QueryAppliedPlanResponse, error) { 514 out := new(QueryAppliedPlanResponse) 515 err := c.cc.Invoke(ctx, "/cosmos.upgrade.v1beta1.Query/AppliedPlan", in, out, opts...) 516 if err != nil { 517 return nil, err 518 } 519 return out, nil 520 } 521 522 // Deprecated: Do not use. 523 func (c *queryClient) UpgradedConsensusState(ctx context.Context, in *QueryUpgradedConsensusStateRequest, opts ...grpc.CallOption) (*QueryUpgradedConsensusStateResponse, error) { 524 out := new(QueryUpgradedConsensusStateResponse) 525 err := c.cc.Invoke(ctx, "/cosmos.upgrade.v1beta1.Query/UpgradedConsensusState", in, out, opts...) 526 if err != nil { 527 return nil, err 528 } 529 return out, nil 530 } 531 532 func (c *queryClient) ModuleVersions(ctx context.Context, in *QueryModuleVersionsRequest, opts ...grpc.CallOption) (*QueryModuleVersionsResponse, error) { 533 out := new(QueryModuleVersionsResponse) 534 err := c.cc.Invoke(ctx, "/cosmos.upgrade.v1beta1.Query/ModuleVersions", in, out, opts...) 535 if err != nil { 536 return nil, err 537 } 538 return out, nil 539 } 540 541 // QueryServer is the server API for Query service. 542 type QueryServer interface { 543 // CurrentPlan queries the current upgrade plan. 544 CurrentPlan(context.Context, *QueryCurrentPlanRequest) (*QueryCurrentPlanResponse, error) 545 // AppliedPlan queries a previously applied upgrade plan by its name. 546 AppliedPlan(context.Context, *QueryAppliedPlanRequest) (*QueryAppliedPlanResponse, error) 547 // UpgradedConsensusState queries the consensus state that will serve 548 // as a trusted kernel for the next version of this chain. It will only be 549 // stored at the last height of this chain. 550 // UpgradedConsensusState RPC not supported with legacy querier 551 // This rpc is deprecated now that IBC has its own replacement 552 // (https://github.com/cosmos/ibc-go/blob/2c880a22e9f9cc75f62b527ca94aa75ce1106001/proto/ibc/core/client/v1/query.proto#L54) 553 UpgradedConsensusState(context.Context, *QueryUpgradedConsensusStateRequest) (*QueryUpgradedConsensusStateResponse, error) 554 // ModuleVersions queries the list of module versions from state. 555 // 556 // Since: cosmos-sdk 0.43 557 ModuleVersions(context.Context, *QueryModuleVersionsRequest) (*QueryModuleVersionsResponse, error) 558 } 559 560 // UnimplementedQueryServer can be embedded to have forward compatible implementations. 561 type UnimplementedQueryServer struct { 562 } 563 564 func (*UnimplementedQueryServer) CurrentPlan(ctx context.Context, req *QueryCurrentPlanRequest) (*QueryCurrentPlanResponse, error) { 565 return nil, status.Errorf(codes.Unimplemented, "method CurrentPlan not implemented") 566 } 567 func (*UnimplementedQueryServer) AppliedPlan(ctx context.Context, req *QueryAppliedPlanRequest) (*QueryAppliedPlanResponse, error) { 568 return nil, status.Errorf(codes.Unimplemented, "method AppliedPlan not implemented") 569 } 570 func (*UnimplementedQueryServer) UpgradedConsensusState(ctx context.Context, req *QueryUpgradedConsensusStateRequest) (*QueryUpgradedConsensusStateResponse, error) { 571 return nil, status.Errorf(codes.Unimplemented, "method UpgradedConsensusState not implemented") 572 } 573 func (*UnimplementedQueryServer) ModuleVersions(ctx context.Context, req *QueryModuleVersionsRequest) (*QueryModuleVersionsResponse, error) { 574 return nil, status.Errorf(codes.Unimplemented, "method ModuleVersions not implemented") 575 } 576 577 func RegisterQueryServer(s grpc1.Server, srv QueryServer) { 578 s.RegisterService(&_Query_serviceDesc, srv) 579 } 580 581 func _Query_CurrentPlan_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 582 in := new(QueryCurrentPlanRequest) 583 if err := dec(in); err != nil { 584 return nil, err 585 } 586 if interceptor == nil { 587 return srv.(QueryServer).CurrentPlan(ctx, in) 588 } 589 info := &grpc.UnaryServerInfo{ 590 Server: srv, 591 FullMethod: "/cosmos.upgrade.v1beta1.Query/CurrentPlan", 592 } 593 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 594 return srv.(QueryServer).CurrentPlan(ctx, req.(*QueryCurrentPlanRequest)) 595 } 596 return interceptor(ctx, in, info, handler) 597 } 598 599 func _Query_AppliedPlan_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 600 in := new(QueryAppliedPlanRequest) 601 if err := dec(in); err != nil { 602 return nil, err 603 } 604 if interceptor == nil { 605 return srv.(QueryServer).AppliedPlan(ctx, in) 606 } 607 info := &grpc.UnaryServerInfo{ 608 Server: srv, 609 FullMethod: "/cosmos.upgrade.v1beta1.Query/AppliedPlan", 610 } 611 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 612 return srv.(QueryServer).AppliedPlan(ctx, req.(*QueryAppliedPlanRequest)) 613 } 614 return interceptor(ctx, in, info, handler) 615 } 616 617 func _Query_UpgradedConsensusState_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 618 in := new(QueryUpgradedConsensusStateRequest) 619 if err := dec(in); err != nil { 620 return nil, err 621 } 622 if interceptor == nil { 623 return srv.(QueryServer).UpgradedConsensusState(ctx, in) 624 } 625 info := &grpc.UnaryServerInfo{ 626 Server: srv, 627 FullMethod: "/cosmos.upgrade.v1beta1.Query/UpgradedConsensusState", 628 } 629 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 630 return srv.(QueryServer).UpgradedConsensusState(ctx, req.(*QueryUpgradedConsensusStateRequest)) 631 } 632 return interceptor(ctx, in, info, handler) 633 } 634 635 func _Query_ModuleVersions_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 636 in := new(QueryModuleVersionsRequest) 637 if err := dec(in); err != nil { 638 return nil, err 639 } 640 if interceptor == nil { 641 return srv.(QueryServer).ModuleVersions(ctx, in) 642 } 643 info := &grpc.UnaryServerInfo{ 644 Server: srv, 645 FullMethod: "/cosmos.upgrade.v1beta1.Query/ModuleVersions", 646 } 647 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 648 return srv.(QueryServer).ModuleVersions(ctx, req.(*QueryModuleVersionsRequest)) 649 } 650 return interceptor(ctx, in, info, handler) 651 } 652 653 var _Query_serviceDesc = grpc.ServiceDesc{ 654 ServiceName: "cosmos.upgrade.v1beta1.Query", 655 HandlerType: (*QueryServer)(nil), 656 Methods: []grpc.MethodDesc{ 657 { 658 MethodName: "CurrentPlan", 659 Handler: _Query_CurrentPlan_Handler, 660 }, 661 { 662 MethodName: "AppliedPlan", 663 Handler: _Query_AppliedPlan_Handler, 664 }, 665 { 666 MethodName: "UpgradedConsensusState", 667 Handler: _Query_UpgradedConsensusState_Handler, 668 }, 669 { 670 MethodName: "ModuleVersions", 671 Handler: _Query_ModuleVersions_Handler, 672 }, 673 }, 674 Streams: []grpc.StreamDesc{}, 675 Metadata: "cosmos/upgrade/v1beta1/query.proto", 676 } 677 678 func (m *QueryCurrentPlanRequest) Marshal() (dAtA []byte, err error) { 679 size := m.Size() 680 dAtA = make([]byte, size) 681 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 682 if err != nil { 683 return nil, err 684 } 685 return dAtA[:n], nil 686 } 687 688 func (m *QueryCurrentPlanRequest) MarshalTo(dAtA []byte) (int, error) { 689 size := m.Size() 690 return m.MarshalToSizedBuffer(dAtA[:size]) 691 } 692 693 func (m *QueryCurrentPlanRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 694 i := len(dAtA) 695 _ = i 696 var l int 697 _ = l 698 return len(dAtA) - i, nil 699 } 700 701 func (m *QueryCurrentPlanResponse) Marshal() (dAtA []byte, err error) { 702 size := m.Size() 703 dAtA = make([]byte, size) 704 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 705 if err != nil { 706 return nil, err 707 } 708 return dAtA[:n], nil 709 } 710 711 func (m *QueryCurrentPlanResponse) MarshalTo(dAtA []byte) (int, error) { 712 size := m.Size() 713 return m.MarshalToSizedBuffer(dAtA[:size]) 714 } 715 716 func (m *QueryCurrentPlanResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 717 i := len(dAtA) 718 _ = i 719 var l int 720 _ = l 721 if m.Plan != nil { 722 { 723 size, err := m.Plan.MarshalToSizedBuffer(dAtA[:i]) 724 if err != nil { 725 return 0, err 726 } 727 i -= size 728 i = encodeVarintQuery(dAtA, i, uint64(size)) 729 } 730 i-- 731 dAtA[i] = 0xa 732 } 733 return len(dAtA) - i, nil 734 } 735 736 func (m *QueryAppliedPlanRequest) Marshal() (dAtA []byte, err error) { 737 size := m.Size() 738 dAtA = make([]byte, size) 739 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 740 if err != nil { 741 return nil, err 742 } 743 return dAtA[:n], nil 744 } 745 746 func (m *QueryAppliedPlanRequest) MarshalTo(dAtA []byte) (int, error) { 747 size := m.Size() 748 return m.MarshalToSizedBuffer(dAtA[:size]) 749 } 750 751 func (m *QueryAppliedPlanRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 752 i := len(dAtA) 753 _ = i 754 var l int 755 _ = l 756 if len(m.Name) > 0 { 757 i -= len(m.Name) 758 copy(dAtA[i:], m.Name) 759 i = encodeVarintQuery(dAtA, i, uint64(len(m.Name))) 760 i-- 761 dAtA[i] = 0xa 762 } 763 return len(dAtA) - i, nil 764 } 765 766 func (m *QueryAppliedPlanResponse) Marshal() (dAtA []byte, err error) { 767 size := m.Size() 768 dAtA = make([]byte, size) 769 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 770 if err != nil { 771 return nil, err 772 } 773 return dAtA[:n], nil 774 } 775 776 func (m *QueryAppliedPlanResponse) MarshalTo(dAtA []byte) (int, error) { 777 size := m.Size() 778 return m.MarshalToSizedBuffer(dAtA[:size]) 779 } 780 781 func (m *QueryAppliedPlanResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 782 i := len(dAtA) 783 _ = i 784 var l int 785 _ = l 786 if m.Height != 0 { 787 i = encodeVarintQuery(dAtA, i, uint64(m.Height)) 788 i-- 789 dAtA[i] = 0x8 790 } 791 return len(dAtA) - i, nil 792 } 793 794 func (m *QueryUpgradedConsensusStateRequest) Marshal() (dAtA []byte, err error) { 795 size := m.Size() 796 dAtA = make([]byte, size) 797 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 798 if err != nil { 799 return nil, err 800 } 801 return dAtA[:n], nil 802 } 803 804 func (m *QueryUpgradedConsensusStateRequest) MarshalTo(dAtA []byte) (int, error) { 805 size := m.Size() 806 return m.MarshalToSizedBuffer(dAtA[:size]) 807 } 808 809 func (m *QueryUpgradedConsensusStateRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 810 i := len(dAtA) 811 _ = i 812 var l int 813 _ = l 814 if m.LastHeight != 0 { 815 i = encodeVarintQuery(dAtA, i, uint64(m.LastHeight)) 816 i-- 817 dAtA[i] = 0x8 818 } 819 return len(dAtA) - i, nil 820 } 821 822 func (m *QueryUpgradedConsensusStateResponse) Marshal() (dAtA []byte, err error) { 823 size := m.Size() 824 dAtA = make([]byte, size) 825 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 826 if err != nil { 827 return nil, err 828 } 829 return dAtA[:n], nil 830 } 831 832 func (m *QueryUpgradedConsensusStateResponse) MarshalTo(dAtA []byte) (int, error) { 833 size := m.Size() 834 return m.MarshalToSizedBuffer(dAtA[:size]) 835 } 836 837 func (m *QueryUpgradedConsensusStateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 838 i := len(dAtA) 839 _ = i 840 var l int 841 _ = l 842 if len(m.UpgradedConsensusState) > 0 { 843 i -= len(m.UpgradedConsensusState) 844 copy(dAtA[i:], m.UpgradedConsensusState) 845 i = encodeVarintQuery(dAtA, i, uint64(len(m.UpgradedConsensusState))) 846 i-- 847 dAtA[i] = 0x12 848 } 849 return len(dAtA) - i, nil 850 } 851 852 func (m *QueryModuleVersionsRequest) Marshal() (dAtA []byte, err error) { 853 size := m.Size() 854 dAtA = make([]byte, size) 855 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 856 if err != nil { 857 return nil, err 858 } 859 return dAtA[:n], nil 860 } 861 862 func (m *QueryModuleVersionsRequest) MarshalTo(dAtA []byte) (int, error) { 863 size := m.Size() 864 return m.MarshalToSizedBuffer(dAtA[:size]) 865 } 866 867 func (m *QueryModuleVersionsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 868 i := len(dAtA) 869 _ = i 870 var l int 871 _ = l 872 if len(m.ModuleName) > 0 { 873 i -= len(m.ModuleName) 874 copy(dAtA[i:], m.ModuleName) 875 i = encodeVarintQuery(dAtA, i, uint64(len(m.ModuleName))) 876 i-- 877 dAtA[i] = 0xa 878 } 879 return len(dAtA) - i, nil 880 } 881 882 func (m *QueryModuleVersionsResponse) Marshal() (dAtA []byte, err error) { 883 size := m.Size() 884 dAtA = make([]byte, size) 885 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 886 if err != nil { 887 return nil, err 888 } 889 return dAtA[:n], nil 890 } 891 892 func (m *QueryModuleVersionsResponse) MarshalTo(dAtA []byte) (int, error) { 893 size := m.Size() 894 return m.MarshalToSizedBuffer(dAtA[:size]) 895 } 896 897 func (m *QueryModuleVersionsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 898 i := len(dAtA) 899 _ = i 900 var l int 901 _ = l 902 if len(m.ModuleVersions) > 0 { 903 for iNdEx := len(m.ModuleVersions) - 1; iNdEx >= 0; iNdEx-- { 904 { 905 size, err := m.ModuleVersions[iNdEx].MarshalToSizedBuffer(dAtA[:i]) 906 if err != nil { 907 return 0, err 908 } 909 i -= size 910 i = encodeVarintQuery(dAtA, i, uint64(size)) 911 } 912 i-- 913 dAtA[i] = 0xa 914 } 915 } 916 return len(dAtA) - i, nil 917 } 918 919 func encodeVarintQuery(dAtA []byte, offset int, v uint64) int { 920 offset -= sovQuery(v) 921 base := offset 922 for v >= 1<<7 { 923 dAtA[offset] = uint8(v&0x7f | 0x80) 924 v >>= 7 925 offset++ 926 } 927 dAtA[offset] = uint8(v) 928 return base 929 } 930 func (m *QueryCurrentPlanRequest) Size() (n int) { 931 if m == nil { 932 return 0 933 } 934 var l int 935 _ = l 936 return n 937 } 938 939 func (m *QueryCurrentPlanResponse) Size() (n int) { 940 if m == nil { 941 return 0 942 } 943 var l int 944 _ = l 945 if m.Plan != nil { 946 l = m.Plan.Size() 947 n += 1 + l + sovQuery(uint64(l)) 948 } 949 return n 950 } 951 952 func (m *QueryAppliedPlanRequest) Size() (n int) { 953 if m == nil { 954 return 0 955 } 956 var l int 957 _ = l 958 l = len(m.Name) 959 if l > 0 { 960 n += 1 + l + sovQuery(uint64(l)) 961 } 962 return n 963 } 964 965 func (m *QueryAppliedPlanResponse) Size() (n int) { 966 if m == nil { 967 return 0 968 } 969 var l int 970 _ = l 971 if m.Height != 0 { 972 n += 1 + sovQuery(uint64(m.Height)) 973 } 974 return n 975 } 976 977 func (m *QueryUpgradedConsensusStateRequest) Size() (n int) { 978 if m == nil { 979 return 0 980 } 981 var l int 982 _ = l 983 if m.LastHeight != 0 { 984 n += 1 + sovQuery(uint64(m.LastHeight)) 985 } 986 return n 987 } 988 989 func (m *QueryUpgradedConsensusStateResponse) Size() (n int) { 990 if m == nil { 991 return 0 992 } 993 var l int 994 _ = l 995 l = len(m.UpgradedConsensusState) 996 if l > 0 { 997 n += 1 + l + sovQuery(uint64(l)) 998 } 999 return n 1000 } 1001 1002 func (m *QueryModuleVersionsRequest) Size() (n int) { 1003 if m == nil { 1004 return 0 1005 } 1006 var l int 1007 _ = l 1008 l = len(m.ModuleName) 1009 if l > 0 { 1010 n += 1 + l + sovQuery(uint64(l)) 1011 } 1012 return n 1013 } 1014 1015 func (m *QueryModuleVersionsResponse) Size() (n int) { 1016 if m == nil { 1017 return 0 1018 } 1019 var l int 1020 _ = l 1021 if len(m.ModuleVersions) > 0 { 1022 for _, e := range m.ModuleVersions { 1023 l = e.Size() 1024 n += 1 + l + sovQuery(uint64(l)) 1025 } 1026 } 1027 return n 1028 } 1029 1030 func sovQuery(x uint64) (n int) { 1031 return (math_bits.Len64(x|1) + 6) / 7 1032 } 1033 func sozQuery(x uint64) (n int) { 1034 return sovQuery(uint64((x << 1) ^ uint64((int64(x) >> 63)))) 1035 } 1036 func (m *QueryCurrentPlanRequest) Unmarshal(dAtA []byte) error { 1037 l := len(dAtA) 1038 iNdEx := 0 1039 for iNdEx < l { 1040 preIndex := iNdEx 1041 var wire uint64 1042 for shift := uint(0); ; shift += 7 { 1043 if shift >= 64 { 1044 return ErrIntOverflowQuery 1045 } 1046 if iNdEx >= l { 1047 return io.ErrUnexpectedEOF 1048 } 1049 b := dAtA[iNdEx] 1050 iNdEx++ 1051 wire |= uint64(b&0x7F) << shift 1052 if b < 0x80 { 1053 break 1054 } 1055 } 1056 fieldNum := int32(wire >> 3) 1057 wireType := int(wire & 0x7) 1058 if wireType == 4 { 1059 return fmt.Errorf("proto: QueryCurrentPlanRequest: wiretype end group for non-group") 1060 } 1061 if fieldNum <= 0 { 1062 return fmt.Errorf("proto: QueryCurrentPlanRequest: illegal tag %d (wire type %d)", fieldNum, wire) 1063 } 1064 switch fieldNum { 1065 default: 1066 iNdEx = preIndex 1067 skippy, err := skipQuery(dAtA[iNdEx:]) 1068 if err != nil { 1069 return err 1070 } 1071 if (skippy < 0) || (iNdEx+skippy) < 0 { 1072 return ErrInvalidLengthQuery 1073 } 1074 if (iNdEx + skippy) > l { 1075 return io.ErrUnexpectedEOF 1076 } 1077 iNdEx += skippy 1078 } 1079 } 1080 1081 if iNdEx > l { 1082 return io.ErrUnexpectedEOF 1083 } 1084 return nil 1085 } 1086 func (m *QueryCurrentPlanResponse) Unmarshal(dAtA []byte) error { 1087 l := len(dAtA) 1088 iNdEx := 0 1089 for iNdEx < l { 1090 preIndex := iNdEx 1091 var wire uint64 1092 for shift := uint(0); ; shift += 7 { 1093 if shift >= 64 { 1094 return ErrIntOverflowQuery 1095 } 1096 if iNdEx >= l { 1097 return io.ErrUnexpectedEOF 1098 } 1099 b := dAtA[iNdEx] 1100 iNdEx++ 1101 wire |= uint64(b&0x7F) << shift 1102 if b < 0x80 { 1103 break 1104 } 1105 } 1106 fieldNum := int32(wire >> 3) 1107 wireType := int(wire & 0x7) 1108 if wireType == 4 { 1109 return fmt.Errorf("proto: QueryCurrentPlanResponse: wiretype end group for non-group") 1110 } 1111 if fieldNum <= 0 { 1112 return fmt.Errorf("proto: QueryCurrentPlanResponse: illegal tag %d (wire type %d)", fieldNum, wire) 1113 } 1114 switch fieldNum { 1115 case 1: 1116 if wireType != 2 { 1117 return fmt.Errorf("proto: wrong wireType = %d for field Plan", wireType) 1118 } 1119 var msglen int 1120 for shift := uint(0); ; shift += 7 { 1121 if shift >= 64 { 1122 return ErrIntOverflowQuery 1123 } 1124 if iNdEx >= l { 1125 return io.ErrUnexpectedEOF 1126 } 1127 b := dAtA[iNdEx] 1128 iNdEx++ 1129 msglen |= int(b&0x7F) << shift 1130 if b < 0x80 { 1131 break 1132 } 1133 } 1134 if msglen < 0 { 1135 return ErrInvalidLengthQuery 1136 } 1137 postIndex := iNdEx + msglen 1138 if postIndex < 0 { 1139 return ErrInvalidLengthQuery 1140 } 1141 if postIndex > l { 1142 return io.ErrUnexpectedEOF 1143 } 1144 if m.Plan == nil { 1145 m.Plan = &Plan{} 1146 } 1147 if err := m.Plan.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 1148 return err 1149 } 1150 iNdEx = postIndex 1151 default: 1152 iNdEx = preIndex 1153 skippy, err := skipQuery(dAtA[iNdEx:]) 1154 if err != nil { 1155 return err 1156 } 1157 if (skippy < 0) || (iNdEx+skippy) < 0 { 1158 return ErrInvalidLengthQuery 1159 } 1160 if (iNdEx + skippy) > l { 1161 return io.ErrUnexpectedEOF 1162 } 1163 iNdEx += skippy 1164 } 1165 } 1166 1167 if iNdEx > l { 1168 return io.ErrUnexpectedEOF 1169 } 1170 return nil 1171 } 1172 func (m *QueryAppliedPlanRequest) Unmarshal(dAtA []byte) error { 1173 l := len(dAtA) 1174 iNdEx := 0 1175 for iNdEx < l { 1176 preIndex := iNdEx 1177 var wire uint64 1178 for shift := uint(0); ; shift += 7 { 1179 if shift >= 64 { 1180 return ErrIntOverflowQuery 1181 } 1182 if iNdEx >= l { 1183 return io.ErrUnexpectedEOF 1184 } 1185 b := dAtA[iNdEx] 1186 iNdEx++ 1187 wire |= uint64(b&0x7F) << shift 1188 if b < 0x80 { 1189 break 1190 } 1191 } 1192 fieldNum := int32(wire >> 3) 1193 wireType := int(wire & 0x7) 1194 if wireType == 4 { 1195 return fmt.Errorf("proto: QueryAppliedPlanRequest: wiretype end group for non-group") 1196 } 1197 if fieldNum <= 0 { 1198 return fmt.Errorf("proto: QueryAppliedPlanRequest: illegal tag %d (wire type %d)", fieldNum, wire) 1199 } 1200 switch fieldNum { 1201 case 1: 1202 if wireType != 2 { 1203 return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) 1204 } 1205 var stringLen uint64 1206 for shift := uint(0); ; shift += 7 { 1207 if shift >= 64 { 1208 return ErrIntOverflowQuery 1209 } 1210 if iNdEx >= l { 1211 return io.ErrUnexpectedEOF 1212 } 1213 b := dAtA[iNdEx] 1214 iNdEx++ 1215 stringLen |= uint64(b&0x7F) << shift 1216 if b < 0x80 { 1217 break 1218 } 1219 } 1220 intStringLen := int(stringLen) 1221 if intStringLen < 0 { 1222 return ErrInvalidLengthQuery 1223 } 1224 postIndex := iNdEx + intStringLen 1225 if postIndex < 0 { 1226 return ErrInvalidLengthQuery 1227 } 1228 if postIndex > l { 1229 return io.ErrUnexpectedEOF 1230 } 1231 m.Name = string(dAtA[iNdEx:postIndex]) 1232 iNdEx = postIndex 1233 default: 1234 iNdEx = preIndex 1235 skippy, err := skipQuery(dAtA[iNdEx:]) 1236 if err != nil { 1237 return err 1238 } 1239 if (skippy < 0) || (iNdEx+skippy) < 0 { 1240 return ErrInvalidLengthQuery 1241 } 1242 if (iNdEx + skippy) > l { 1243 return io.ErrUnexpectedEOF 1244 } 1245 iNdEx += skippy 1246 } 1247 } 1248 1249 if iNdEx > l { 1250 return io.ErrUnexpectedEOF 1251 } 1252 return nil 1253 } 1254 func (m *QueryAppliedPlanResponse) Unmarshal(dAtA []byte) error { 1255 l := len(dAtA) 1256 iNdEx := 0 1257 for iNdEx < l { 1258 preIndex := iNdEx 1259 var wire uint64 1260 for shift := uint(0); ; shift += 7 { 1261 if shift >= 64 { 1262 return ErrIntOverflowQuery 1263 } 1264 if iNdEx >= l { 1265 return io.ErrUnexpectedEOF 1266 } 1267 b := dAtA[iNdEx] 1268 iNdEx++ 1269 wire |= uint64(b&0x7F) << shift 1270 if b < 0x80 { 1271 break 1272 } 1273 } 1274 fieldNum := int32(wire >> 3) 1275 wireType := int(wire & 0x7) 1276 if wireType == 4 { 1277 return fmt.Errorf("proto: QueryAppliedPlanResponse: wiretype end group for non-group") 1278 } 1279 if fieldNum <= 0 { 1280 return fmt.Errorf("proto: QueryAppliedPlanResponse: illegal tag %d (wire type %d)", fieldNum, wire) 1281 } 1282 switch fieldNum { 1283 case 1: 1284 if wireType != 0 { 1285 return fmt.Errorf("proto: wrong wireType = %d for field Height", wireType) 1286 } 1287 m.Height = 0 1288 for shift := uint(0); ; shift += 7 { 1289 if shift >= 64 { 1290 return ErrIntOverflowQuery 1291 } 1292 if iNdEx >= l { 1293 return io.ErrUnexpectedEOF 1294 } 1295 b := dAtA[iNdEx] 1296 iNdEx++ 1297 m.Height |= int64(b&0x7F) << shift 1298 if b < 0x80 { 1299 break 1300 } 1301 } 1302 default: 1303 iNdEx = preIndex 1304 skippy, err := skipQuery(dAtA[iNdEx:]) 1305 if err != nil { 1306 return err 1307 } 1308 if (skippy < 0) || (iNdEx+skippy) < 0 { 1309 return ErrInvalidLengthQuery 1310 } 1311 if (iNdEx + skippy) > l { 1312 return io.ErrUnexpectedEOF 1313 } 1314 iNdEx += skippy 1315 } 1316 } 1317 1318 if iNdEx > l { 1319 return io.ErrUnexpectedEOF 1320 } 1321 return nil 1322 } 1323 func (m *QueryUpgradedConsensusStateRequest) Unmarshal(dAtA []byte) error { 1324 l := len(dAtA) 1325 iNdEx := 0 1326 for iNdEx < l { 1327 preIndex := iNdEx 1328 var wire uint64 1329 for shift := uint(0); ; shift += 7 { 1330 if shift >= 64 { 1331 return ErrIntOverflowQuery 1332 } 1333 if iNdEx >= l { 1334 return io.ErrUnexpectedEOF 1335 } 1336 b := dAtA[iNdEx] 1337 iNdEx++ 1338 wire |= uint64(b&0x7F) << shift 1339 if b < 0x80 { 1340 break 1341 } 1342 } 1343 fieldNum := int32(wire >> 3) 1344 wireType := int(wire & 0x7) 1345 if wireType == 4 { 1346 return fmt.Errorf("proto: QueryUpgradedConsensusStateRequest: wiretype end group for non-group") 1347 } 1348 if fieldNum <= 0 { 1349 return fmt.Errorf("proto: QueryUpgradedConsensusStateRequest: illegal tag %d (wire type %d)", fieldNum, wire) 1350 } 1351 switch fieldNum { 1352 case 1: 1353 if wireType != 0 { 1354 return fmt.Errorf("proto: wrong wireType = %d for field LastHeight", wireType) 1355 } 1356 m.LastHeight = 0 1357 for shift := uint(0); ; shift += 7 { 1358 if shift >= 64 { 1359 return ErrIntOverflowQuery 1360 } 1361 if iNdEx >= l { 1362 return io.ErrUnexpectedEOF 1363 } 1364 b := dAtA[iNdEx] 1365 iNdEx++ 1366 m.LastHeight |= int64(b&0x7F) << shift 1367 if b < 0x80 { 1368 break 1369 } 1370 } 1371 default: 1372 iNdEx = preIndex 1373 skippy, err := skipQuery(dAtA[iNdEx:]) 1374 if err != nil { 1375 return err 1376 } 1377 if (skippy < 0) || (iNdEx+skippy) < 0 { 1378 return ErrInvalidLengthQuery 1379 } 1380 if (iNdEx + skippy) > l { 1381 return io.ErrUnexpectedEOF 1382 } 1383 iNdEx += skippy 1384 } 1385 } 1386 1387 if iNdEx > l { 1388 return io.ErrUnexpectedEOF 1389 } 1390 return nil 1391 } 1392 func (m *QueryUpgradedConsensusStateResponse) Unmarshal(dAtA []byte) error { 1393 l := len(dAtA) 1394 iNdEx := 0 1395 for iNdEx < l { 1396 preIndex := iNdEx 1397 var wire uint64 1398 for shift := uint(0); ; shift += 7 { 1399 if shift >= 64 { 1400 return ErrIntOverflowQuery 1401 } 1402 if iNdEx >= l { 1403 return io.ErrUnexpectedEOF 1404 } 1405 b := dAtA[iNdEx] 1406 iNdEx++ 1407 wire |= uint64(b&0x7F) << shift 1408 if b < 0x80 { 1409 break 1410 } 1411 } 1412 fieldNum := int32(wire >> 3) 1413 wireType := int(wire & 0x7) 1414 if wireType == 4 { 1415 return fmt.Errorf("proto: QueryUpgradedConsensusStateResponse: wiretype end group for non-group") 1416 } 1417 if fieldNum <= 0 { 1418 return fmt.Errorf("proto: QueryUpgradedConsensusStateResponse: illegal tag %d (wire type %d)", fieldNum, wire) 1419 } 1420 switch fieldNum { 1421 case 2: 1422 if wireType != 2 { 1423 return fmt.Errorf("proto: wrong wireType = %d for field UpgradedConsensusState", wireType) 1424 } 1425 var byteLen int 1426 for shift := uint(0); ; shift += 7 { 1427 if shift >= 64 { 1428 return ErrIntOverflowQuery 1429 } 1430 if iNdEx >= l { 1431 return io.ErrUnexpectedEOF 1432 } 1433 b := dAtA[iNdEx] 1434 iNdEx++ 1435 byteLen |= int(b&0x7F) << shift 1436 if b < 0x80 { 1437 break 1438 } 1439 } 1440 if byteLen < 0 { 1441 return ErrInvalidLengthQuery 1442 } 1443 postIndex := iNdEx + byteLen 1444 if postIndex < 0 { 1445 return ErrInvalidLengthQuery 1446 } 1447 if postIndex > l { 1448 return io.ErrUnexpectedEOF 1449 } 1450 m.UpgradedConsensusState = append(m.UpgradedConsensusState[:0], dAtA[iNdEx:postIndex]...) 1451 if m.UpgradedConsensusState == nil { 1452 m.UpgradedConsensusState = []byte{} 1453 } 1454 iNdEx = postIndex 1455 default: 1456 iNdEx = preIndex 1457 skippy, err := skipQuery(dAtA[iNdEx:]) 1458 if err != nil { 1459 return err 1460 } 1461 if (skippy < 0) || (iNdEx+skippy) < 0 { 1462 return ErrInvalidLengthQuery 1463 } 1464 if (iNdEx + skippy) > l { 1465 return io.ErrUnexpectedEOF 1466 } 1467 iNdEx += skippy 1468 } 1469 } 1470 1471 if iNdEx > l { 1472 return io.ErrUnexpectedEOF 1473 } 1474 return nil 1475 } 1476 func (m *QueryModuleVersionsRequest) Unmarshal(dAtA []byte) error { 1477 l := len(dAtA) 1478 iNdEx := 0 1479 for iNdEx < l { 1480 preIndex := iNdEx 1481 var wire uint64 1482 for shift := uint(0); ; shift += 7 { 1483 if shift >= 64 { 1484 return ErrIntOverflowQuery 1485 } 1486 if iNdEx >= l { 1487 return io.ErrUnexpectedEOF 1488 } 1489 b := dAtA[iNdEx] 1490 iNdEx++ 1491 wire |= uint64(b&0x7F) << shift 1492 if b < 0x80 { 1493 break 1494 } 1495 } 1496 fieldNum := int32(wire >> 3) 1497 wireType := int(wire & 0x7) 1498 if wireType == 4 { 1499 return fmt.Errorf("proto: QueryModuleVersionsRequest: wiretype end group for non-group") 1500 } 1501 if fieldNum <= 0 { 1502 return fmt.Errorf("proto: QueryModuleVersionsRequest: illegal tag %d (wire type %d)", fieldNum, wire) 1503 } 1504 switch fieldNum { 1505 case 1: 1506 if wireType != 2 { 1507 return fmt.Errorf("proto: wrong wireType = %d for field ModuleName", wireType) 1508 } 1509 var stringLen uint64 1510 for shift := uint(0); ; shift += 7 { 1511 if shift >= 64 { 1512 return ErrIntOverflowQuery 1513 } 1514 if iNdEx >= l { 1515 return io.ErrUnexpectedEOF 1516 } 1517 b := dAtA[iNdEx] 1518 iNdEx++ 1519 stringLen |= uint64(b&0x7F) << shift 1520 if b < 0x80 { 1521 break 1522 } 1523 } 1524 intStringLen := int(stringLen) 1525 if intStringLen < 0 { 1526 return ErrInvalidLengthQuery 1527 } 1528 postIndex := iNdEx + intStringLen 1529 if postIndex < 0 { 1530 return ErrInvalidLengthQuery 1531 } 1532 if postIndex > l { 1533 return io.ErrUnexpectedEOF 1534 } 1535 m.ModuleName = string(dAtA[iNdEx:postIndex]) 1536 iNdEx = postIndex 1537 default: 1538 iNdEx = preIndex 1539 skippy, err := skipQuery(dAtA[iNdEx:]) 1540 if err != nil { 1541 return err 1542 } 1543 if (skippy < 0) || (iNdEx+skippy) < 0 { 1544 return ErrInvalidLengthQuery 1545 } 1546 if (iNdEx + skippy) > l { 1547 return io.ErrUnexpectedEOF 1548 } 1549 iNdEx += skippy 1550 } 1551 } 1552 1553 if iNdEx > l { 1554 return io.ErrUnexpectedEOF 1555 } 1556 return nil 1557 } 1558 func (m *QueryModuleVersionsResponse) Unmarshal(dAtA []byte) error { 1559 l := len(dAtA) 1560 iNdEx := 0 1561 for iNdEx < l { 1562 preIndex := iNdEx 1563 var wire uint64 1564 for shift := uint(0); ; shift += 7 { 1565 if shift >= 64 { 1566 return ErrIntOverflowQuery 1567 } 1568 if iNdEx >= l { 1569 return io.ErrUnexpectedEOF 1570 } 1571 b := dAtA[iNdEx] 1572 iNdEx++ 1573 wire |= uint64(b&0x7F) << shift 1574 if b < 0x80 { 1575 break 1576 } 1577 } 1578 fieldNum := int32(wire >> 3) 1579 wireType := int(wire & 0x7) 1580 if wireType == 4 { 1581 return fmt.Errorf("proto: QueryModuleVersionsResponse: wiretype end group for non-group") 1582 } 1583 if fieldNum <= 0 { 1584 return fmt.Errorf("proto: QueryModuleVersionsResponse: illegal tag %d (wire type %d)", fieldNum, wire) 1585 } 1586 switch fieldNum { 1587 case 1: 1588 if wireType != 2 { 1589 return fmt.Errorf("proto: wrong wireType = %d for field ModuleVersions", wireType) 1590 } 1591 var msglen int 1592 for shift := uint(0); ; shift += 7 { 1593 if shift >= 64 { 1594 return ErrIntOverflowQuery 1595 } 1596 if iNdEx >= l { 1597 return io.ErrUnexpectedEOF 1598 } 1599 b := dAtA[iNdEx] 1600 iNdEx++ 1601 msglen |= int(b&0x7F) << shift 1602 if b < 0x80 { 1603 break 1604 } 1605 } 1606 if msglen < 0 { 1607 return ErrInvalidLengthQuery 1608 } 1609 postIndex := iNdEx + msglen 1610 if postIndex < 0 { 1611 return ErrInvalidLengthQuery 1612 } 1613 if postIndex > l { 1614 return io.ErrUnexpectedEOF 1615 } 1616 m.ModuleVersions = append(m.ModuleVersions, &ModuleVersion{}) 1617 if err := m.ModuleVersions[len(m.ModuleVersions)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 1618 return err 1619 } 1620 iNdEx = postIndex 1621 default: 1622 iNdEx = preIndex 1623 skippy, err := skipQuery(dAtA[iNdEx:]) 1624 if err != nil { 1625 return err 1626 } 1627 if (skippy < 0) || (iNdEx+skippy) < 0 { 1628 return ErrInvalidLengthQuery 1629 } 1630 if (iNdEx + skippy) > l { 1631 return io.ErrUnexpectedEOF 1632 } 1633 iNdEx += skippy 1634 } 1635 } 1636 1637 if iNdEx > l { 1638 return io.ErrUnexpectedEOF 1639 } 1640 return nil 1641 } 1642 func skipQuery(dAtA []byte) (n int, err error) { 1643 l := len(dAtA) 1644 iNdEx := 0 1645 depth := 0 1646 for iNdEx < l { 1647 var wire uint64 1648 for shift := uint(0); ; shift += 7 { 1649 if shift >= 64 { 1650 return 0, ErrIntOverflowQuery 1651 } 1652 if iNdEx >= l { 1653 return 0, io.ErrUnexpectedEOF 1654 } 1655 b := dAtA[iNdEx] 1656 iNdEx++ 1657 wire |= (uint64(b) & 0x7F) << shift 1658 if b < 0x80 { 1659 break 1660 } 1661 } 1662 wireType := int(wire & 0x7) 1663 switch wireType { 1664 case 0: 1665 for shift := uint(0); ; shift += 7 { 1666 if shift >= 64 { 1667 return 0, ErrIntOverflowQuery 1668 } 1669 if iNdEx >= l { 1670 return 0, io.ErrUnexpectedEOF 1671 } 1672 iNdEx++ 1673 if dAtA[iNdEx-1] < 0x80 { 1674 break 1675 } 1676 } 1677 case 1: 1678 iNdEx += 8 1679 case 2: 1680 var length int 1681 for shift := uint(0); ; shift += 7 { 1682 if shift >= 64 { 1683 return 0, ErrIntOverflowQuery 1684 } 1685 if iNdEx >= l { 1686 return 0, io.ErrUnexpectedEOF 1687 } 1688 b := dAtA[iNdEx] 1689 iNdEx++ 1690 length |= (int(b) & 0x7F) << shift 1691 if b < 0x80 { 1692 break 1693 } 1694 } 1695 if length < 0 { 1696 return 0, ErrInvalidLengthQuery 1697 } 1698 iNdEx += length 1699 case 3: 1700 depth++ 1701 case 4: 1702 if depth == 0 { 1703 return 0, ErrUnexpectedEndOfGroupQuery 1704 } 1705 depth-- 1706 case 5: 1707 iNdEx += 4 1708 default: 1709 return 0, fmt.Errorf("proto: illegal wireType %d", wireType) 1710 } 1711 if iNdEx < 0 { 1712 return 0, ErrInvalidLengthQuery 1713 } 1714 if depth == 0 { 1715 return iNdEx, nil 1716 } 1717 } 1718 return 0, io.ErrUnexpectedEOF 1719 } 1720 1721 var ( 1722 ErrInvalidLengthQuery = fmt.Errorf("proto: negative length found during unmarshaling") 1723 ErrIntOverflowQuery = fmt.Errorf("proto: integer overflow") 1724 ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group") 1725 )