github.com/Finschia/finschia-sdk@v0.49.1/x/auth/types/query.pb.go (about) 1 // Code generated by protoc-gen-gogo. DO NOT EDIT. 2 // source: cosmos/auth/v1beta1/query.proto 3 4 package types 5 6 import ( 7 context "context" 8 fmt "fmt" 9 types "github.com/Finschia/finschia-sdk/codec/types" 10 query "github.com/Finschia/finschia-sdk/types/query" 11 _ "github.com/gogo/protobuf/gogoproto" 12 grpc1 "github.com/gogo/protobuf/grpc" 13 proto "github.com/gogo/protobuf/proto" 14 _ "github.com/regen-network/cosmos-proto" 15 _ "google.golang.org/genproto/googleapis/api/annotations" 16 grpc "google.golang.org/grpc" 17 codes "google.golang.org/grpc/codes" 18 status "google.golang.org/grpc/status" 19 io "io" 20 math "math" 21 math_bits "math/bits" 22 ) 23 24 // Reference imports to suppress errors if they are not otherwise used. 25 var _ = proto.Marshal 26 var _ = fmt.Errorf 27 var _ = math.Inf 28 29 // This is a compile-time assertion to ensure that this generated file 30 // is compatible with the proto package it is being compiled against. 31 // A compilation error at this line likely means your copy of the 32 // proto package needs to be updated. 33 const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package 34 35 // QueryAccountsRequest is the request type for the Query/Accounts RPC method. 36 // 37 // Since: cosmos-sdk 0.43 38 type QueryAccountsRequest struct { 39 // pagination defines an optional pagination for the request. 40 Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` 41 } 42 43 func (m *QueryAccountsRequest) Reset() { *m = QueryAccountsRequest{} } 44 func (m *QueryAccountsRequest) String() string { return proto.CompactTextString(m) } 45 func (*QueryAccountsRequest) ProtoMessage() {} 46 func (*QueryAccountsRequest) Descriptor() ([]byte, []int) { 47 return fileDescriptor_c451370b3929a27c, []int{0} 48 } 49 func (m *QueryAccountsRequest) XXX_Unmarshal(b []byte) error { 50 return m.Unmarshal(b) 51 } 52 func (m *QueryAccountsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 53 if deterministic { 54 return xxx_messageInfo_QueryAccountsRequest.Marshal(b, m, deterministic) 55 } else { 56 b = b[:cap(b)] 57 n, err := m.MarshalToSizedBuffer(b) 58 if err != nil { 59 return nil, err 60 } 61 return b[:n], nil 62 } 63 } 64 func (m *QueryAccountsRequest) XXX_Merge(src proto.Message) { 65 xxx_messageInfo_QueryAccountsRequest.Merge(m, src) 66 } 67 func (m *QueryAccountsRequest) XXX_Size() int { 68 return m.Size() 69 } 70 func (m *QueryAccountsRequest) XXX_DiscardUnknown() { 71 xxx_messageInfo_QueryAccountsRequest.DiscardUnknown(m) 72 } 73 74 var xxx_messageInfo_QueryAccountsRequest proto.InternalMessageInfo 75 76 func (m *QueryAccountsRequest) GetPagination() *query.PageRequest { 77 if m != nil { 78 return m.Pagination 79 } 80 return nil 81 } 82 83 // QueryAccountsResponse is the response type for the Query/Accounts RPC method. 84 // 85 // Since: cosmos-sdk 0.43 86 type QueryAccountsResponse struct { 87 // accounts are the existing accounts 88 Accounts []*types.Any `protobuf:"bytes,1,rep,name=accounts,proto3" json:"accounts,omitempty"` 89 // pagination defines the pagination in the response. 90 Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` 91 } 92 93 func (m *QueryAccountsResponse) Reset() { *m = QueryAccountsResponse{} } 94 func (m *QueryAccountsResponse) String() string { return proto.CompactTextString(m) } 95 func (*QueryAccountsResponse) ProtoMessage() {} 96 func (*QueryAccountsResponse) Descriptor() ([]byte, []int) { 97 return fileDescriptor_c451370b3929a27c, []int{1} 98 } 99 func (m *QueryAccountsResponse) XXX_Unmarshal(b []byte) error { 100 return m.Unmarshal(b) 101 } 102 func (m *QueryAccountsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 103 if deterministic { 104 return xxx_messageInfo_QueryAccountsResponse.Marshal(b, m, deterministic) 105 } else { 106 b = b[:cap(b)] 107 n, err := m.MarshalToSizedBuffer(b) 108 if err != nil { 109 return nil, err 110 } 111 return b[:n], nil 112 } 113 } 114 func (m *QueryAccountsResponse) XXX_Merge(src proto.Message) { 115 xxx_messageInfo_QueryAccountsResponse.Merge(m, src) 116 } 117 func (m *QueryAccountsResponse) XXX_Size() int { 118 return m.Size() 119 } 120 func (m *QueryAccountsResponse) XXX_DiscardUnknown() { 121 xxx_messageInfo_QueryAccountsResponse.DiscardUnknown(m) 122 } 123 124 var xxx_messageInfo_QueryAccountsResponse proto.InternalMessageInfo 125 126 func (m *QueryAccountsResponse) GetAccounts() []*types.Any { 127 if m != nil { 128 return m.Accounts 129 } 130 return nil 131 } 132 133 func (m *QueryAccountsResponse) GetPagination() *query.PageResponse { 134 if m != nil { 135 return m.Pagination 136 } 137 return nil 138 } 139 140 // QueryAccountRequest is the request type for the Query/Account RPC method. 141 type QueryAccountRequest struct { 142 // address defines the address to query for. 143 Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` 144 } 145 146 func (m *QueryAccountRequest) Reset() { *m = QueryAccountRequest{} } 147 func (m *QueryAccountRequest) String() string { return proto.CompactTextString(m) } 148 func (*QueryAccountRequest) ProtoMessage() {} 149 func (*QueryAccountRequest) Descriptor() ([]byte, []int) { 150 return fileDescriptor_c451370b3929a27c, []int{2} 151 } 152 func (m *QueryAccountRequest) XXX_Unmarshal(b []byte) error { 153 return m.Unmarshal(b) 154 } 155 func (m *QueryAccountRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 156 if deterministic { 157 return xxx_messageInfo_QueryAccountRequest.Marshal(b, m, deterministic) 158 } else { 159 b = b[:cap(b)] 160 n, err := m.MarshalToSizedBuffer(b) 161 if err != nil { 162 return nil, err 163 } 164 return b[:n], nil 165 } 166 } 167 func (m *QueryAccountRequest) XXX_Merge(src proto.Message) { 168 xxx_messageInfo_QueryAccountRequest.Merge(m, src) 169 } 170 func (m *QueryAccountRequest) XXX_Size() int { 171 return m.Size() 172 } 173 func (m *QueryAccountRequest) XXX_DiscardUnknown() { 174 xxx_messageInfo_QueryAccountRequest.DiscardUnknown(m) 175 } 176 177 var xxx_messageInfo_QueryAccountRequest proto.InternalMessageInfo 178 179 // QueryAccountResponse is the response type for the Query/Account RPC method. 180 type QueryAccountResponse struct { 181 // account defines the account of the corresponding address. 182 Account *types.Any `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"` 183 } 184 185 func (m *QueryAccountResponse) Reset() { *m = QueryAccountResponse{} } 186 func (m *QueryAccountResponse) String() string { return proto.CompactTextString(m) } 187 func (*QueryAccountResponse) ProtoMessage() {} 188 func (*QueryAccountResponse) Descriptor() ([]byte, []int) { 189 return fileDescriptor_c451370b3929a27c, []int{3} 190 } 191 func (m *QueryAccountResponse) XXX_Unmarshal(b []byte) error { 192 return m.Unmarshal(b) 193 } 194 func (m *QueryAccountResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 195 if deterministic { 196 return xxx_messageInfo_QueryAccountResponse.Marshal(b, m, deterministic) 197 } else { 198 b = b[:cap(b)] 199 n, err := m.MarshalToSizedBuffer(b) 200 if err != nil { 201 return nil, err 202 } 203 return b[:n], nil 204 } 205 } 206 func (m *QueryAccountResponse) XXX_Merge(src proto.Message) { 207 xxx_messageInfo_QueryAccountResponse.Merge(m, src) 208 } 209 func (m *QueryAccountResponse) XXX_Size() int { 210 return m.Size() 211 } 212 func (m *QueryAccountResponse) XXX_DiscardUnknown() { 213 xxx_messageInfo_QueryAccountResponse.DiscardUnknown(m) 214 } 215 216 var xxx_messageInfo_QueryAccountResponse proto.InternalMessageInfo 217 218 func (m *QueryAccountResponse) GetAccount() *types.Any { 219 if m != nil { 220 return m.Account 221 } 222 return nil 223 } 224 225 // QueryParamsRequest is the request type for the Query/Params RPC method. 226 type QueryParamsRequest struct { 227 } 228 229 func (m *QueryParamsRequest) Reset() { *m = QueryParamsRequest{} } 230 func (m *QueryParamsRequest) String() string { return proto.CompactTextString(m) } 231 func (*QueryParamsRequest) ProtoMessage() {} 232 func (*QueryParamsRequest) Descriptor() ([]byte, []int) { 233 return fileDescriptor_c451370b3929a27c, []int{4} 234 } 235 func (m *QueryParamsRequest) XXX_Unmarshal(b []byte) error { 236 return m.Unmarshal(b) 237 } 238 func (m *QueryParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 239 if deterministic { 240 return xxx_messageInfo_QueryParamsRequest.Marshal(b, m, deterministic) 241 } else { 242 b = b[:cap(b)] 243 n, err := m.MarshalToSizedBuffer(b) 244 if err != nil { 245 return nil, err 246 } 247 return b[:n], nil 248 } 249 } 250 func (m *QueryParamsRequest) XXX_Merge(src proto.Message) { 251 xxx_messageInfo_QueryParamsRequest.Merge(m, src) 252 } 253 func (m *QueryParamsRequest) XXX_Size() int { 254 return m.Size() 255 } 256 func (m *QueryParamsRequest) XXX_DiscardUnknown() { 257 xxx_messageInfo_QueryParamsRequest.DiscardUnknown(m) 258 } 259 260 var xxx_messageInfo_QueryParamsRequest proto.InternalMessageInfo 261 262 // QueryParamsResponse is the response type for the Query/Params RPC method. 263 type QueryParamsResponse struct { 264 // params defines the parameters of the module. 265 Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"` 266 } 267 268 func (m *QueryParamsResponse) Reset() { *m = QueryParamsResponse{} } 269 func (m *QueryParamsResponse) String() string { return proto.CompactTextString(m) } 270 func (*QueryParamsResponse) ProtoMessage() {} 271 func (*QueryParamsResponse) Descriptor() ([]byte, []int) { 272 return fileDescriptor_c451370b3929a27c, []int{5} 273 } 274 func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error { 275 return m.Unmarshal(b) 276 } 277 func (m *QueryParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 278 if deterministic { 279 return xxx_messageInfo_QueryParamsResponse.Marshal(b, m, deterministic) 280 } else { 281 b = b[:cap(b)] 282 n, err := m.MarshalToSizedBuffer(b) 283 if err != nil { 284 return nil, err 285 } 286 return b[:n], nil 287 } 288 } 289 func (m *QueryParamsResponse) XXX_Merge(src proto.Message) { 290 xxx_messageInfo_QueryParamsResponse.Merge(m, src) 291 } 292 func (m *QueryParamsResponse) XXX_Size() int { 293 return m.Size() 294 } 295 func (m *QueryParamsResponse) XXX_DiscardUnknown() { 296 xxx_messageInfo_QueryParamsResponse.DiscardUnknown(m) 297 } 298 299 var xxx_messageInfo_QueryParamsResponse proto.InternalMessageInfo 300 301 func (m *QueryParamsResponse) GetParams() Params { 302 if m != nil { 303 return m.Params 304 } 305 return Params{} 306 } 307 308 // QueryModuleAccountByNameRequest is the request type for the Query/ModuleAccountByName RPC method. 309 type QueryModuleAccountByNameRequest struct { 310 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` 311 } 312 313 func (m *QueryModuleAccountByNameRequest) Reset() { *m = QueryModuleAccountByNameRequest{} } 314 func (m *QueryModuleAccountByNameRequest) String() string { return proto.CompactTextString(m) } 315 func (*QueryModuleAccountByNameRequest) ProtoMessage() {} 316 func (*QueryModuleAccountByNameRequest) Descriptor() ([]byte, []int) { 317 return fileDescriptor_c451370b3929a27c, []int{6} 318 } 319 func (m *QueryModuleAccountByNameRequest) XXX_Unmarshal(b []byte) error { 320 return m.Unmarshal(b) 321 } 322 func (m *QueryModuleAccountByNameRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 323 if deterministic { 324 return xxx_messageInfo_QueryModuleAccountByNameRequest.Marshal(b, m, deterministic) 325 } else { 326 b = b[:cap(b)] 327 n, err := m.MarshalToSizedBuffer(b) 328 if err != nil { 329 return nil, err 330 } 331 return b[:n], nil 332 } 333 } 334 func (m *QueryModuleAccountByNameRequest) XXX_Merge(src proto.Message) { 335 xxx_messageInfo_QueryModuleAccountByNameRequest.Merge(m, src) 336 } 337 func (m *QueryModuleAccountByNameRequest) XXX_Size() int { 338 return m.Size() 339 } 340 func (m *QueryModuleAccountByNameRequest) XXX_DiscardUnknown() { 341 xxx_messageInfo_QueryModuleAccountByNameRequest.DiscardUnknown(m) 342 } 343 344 var xxx_messageInfo_QueryModuleAccountByNameRequest proto.InternalMessageInfo 345 346 func (m *QueryModuleAccountByNameRequest) GetName() string { 347 if m != nil { 348 return m.Name 349 } 350 return "" 351 } 352 353 // QueryModuleAccountByNameResponse is the response type for the Query/ModuleAccountByName RPC method. 354 type QueryModuleAccountByNameResponse struct { 355 Account *types.Any `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"` 356 } 357 358 func (m *QueryModuleAccountByNameResponse) Reset() { *m = QueryModuleAccountByNameResponse{} } 359 func (m *QueryModuleAccountByNameResponse) String() string { return proto.CompactTextString(m) } 360 func (*QueryModuleAccountByNameResponse) ProtoMessage() {} 361 func (*QueryModuleAccountByNameResponse) Descriptor() ([]byte, []int) { 362 return fileDescriptor_c451370b3929a27c, []int{7} 363 } 364 func (m *QueryModuleAccountByNameResponse) XXX_Unmarshal(b []byte) error { 365 return m.Unmarshal(b) 366 } 367 func (m *QueryModuleAccountByNameResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 368 if deterministic { 369 return xxx_messageInfo_QueryModuleAccountByNameResponse.Marshal(b, m, deterministic) 370 } else { 371 b = b[:cap(b)] 372 n, err := m.MarshalToSizedBuffer(b) 373 if err != nil { 374 return nil, err 375 } 376 return b[:n], nil 377 } 378 } 379 func (m *QueryModuleAccountByNameResponse) XXX_Merge(src proto.Message) { 380 xxx_messageInfo_QueryModuleAccountByNameResponse.Merge(m, src) 381 } 382 func (m *QueryModuleAccountByNameResponse) XXX_Size() int { 383 return m.Size() 384 } 385 func (m *QueryModuleAccountByNameResponse) XXX_DiscardUnknown() { 386 xxx_messageInfo_QueryModuleAccountByNameResponse.DiscardUnknown(m) 387 } 388 389 var xxx_messageInfo_QueryModuleAccountByNameResponse proto.InternalMessageInfo 390 391 func (m *QueryModuleAccountByNameResponse) GetAccount() *types.Any { 392 if m != nil { 393 return m.Account 394 } 395 return nil 396 } 397 398 // QueryNextAccountNumberRequest is the request type for the Query/NextAccountNumber. 399 // 400 // Deprecated: Do not use. 401 type QueryNextAccountNumberRequest struct { 402 } 403 404 func (m *QueryNextAccountNumberRequest) Reset() { *m = QueryNextAccountNumberRequest{} } 405 func (m *QueryNextAccountNumberRequest) String() string { return proto.CompactTextString(m) } 406 func (*QueryNextAccountNumberRequest) ProtoMessage() {} 407 func (*QueryNextAccountNumberRequest) Descriptor() ([]byte, []int) { 408 return fileDescriptor_c451370b3929a27c, []int{8} 409 } 410 func (m *QueryNextAccountNumberRequest) XXX_Unmarshal(b []byte) error { 411 return m.Unmarshal(b) 412 } 413 func (m *QueryNextAccountNumberRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 414 if deterministic { 415 return xxx_messageInfo_QueryNextAccountNumberRequest.Marshal(b, m, deterministic) 416 } else { 417 b = b[:cap(b)] 418 n, err := m.MarshalToSizedBuffer(b) 419 if err != nil { 420 return nil, err 421 } 422 return b[:n], nil 423 } 424 } 425 func (m *QueryNextAccountNumberRequest) XXX_Merge(src proto.Message) { 426 xxx_messageInfo_QueryNextAccountNumberRequest.Merge(m, src) 427 } 428 func (m *QueryNextAccountNumberRequest) XXX_Size() int { 429 return m.Size() 430 } 431 func (m *QueryNextAccountNumberRequest) XXX_DiscardUnknown() { 432 xxx_messageInfo_QueryNextAccountNumberRequest.DiscardUnknown(m) 433 } 434 435 var xxx_messageInfo_QueryNextAccountNumberRequest proto.InternalMessageInfo 436 437 // QueryNextAccountNumberResponse is the response for the Query/NextAccountNumber. 438 // 439 // Deprecated: Do not use. 440 type QueryNextAccountNumberResponse struct { 441 // The next account number is the next value of global account number. 442 NextAccountNumber uint64 `protobuf:"varint,1,opt,name=next_account_number,json=nextAccountNumber,proto3" json:"next_account_number,omitempty"` 443 } 444 445 func (m *QueryNextAccountNumberResponse) Reset() { *m = QueryNextAccountNumberResponse{} } 446 func (m *QueryNextAccountNumberResponse) String() string { return proto.CompactTextString(m) } 447 func (*QueryNextAccountNumberResponse) ProtoMessage() {} 448 func (*QueryNextAccountNumberResponse) Descriptor() ([]byte, []int) { 449 return fileDescriptor_c451370b3929a27c, []int{9} 450 } 451 func (m *QueryNextAccountNumberResponse) XXX_Unmarshal(b []byte) error { 452 return m.Unmarshal(b) 453 } 454 func (m *QueryNextAccountNumberResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 455 if deterministic { 456 return xxx_messageInfo_QueryNextAccountNumberResponse.Marshal(b, m, deterministic) 457 } else { 458 b = b[:cap(b)] 459 n, err := m.MarshalToSizedBuffer(b) 460 if err != nil { 461 return nil, err 462 } 463 return b[:n], nil 464 } 465 } 466 func (m *QueryNextAccountNumberResponse) XXX_Merge(src proto.Message) { 467 xxx_messageInfo_QueryNextAccountNumberResponse.Merge(m, src) 468 } 469 func (m *QueryNextAccountNumberResponse) XXX_Size() int { 470 return m.Size() 471 } 472 func (m *QueryNextAccountNumberResponse) XXX_DiscardUnknown() { 473 xxx_messageInfo_QueryNextAccountNumberResponse.DiscardUnknown(m) 474 } 475 476 var xxx_messageInfo_QueryNextAccountNumberResponse proto.InternalMessageInfo 477 478 func (m *QueryNextAccountNumberResponse) GetNextAccountNumber() uint64 { 479 if m != nil { 480 return m.NextAccountNumber 481 } 482 return 0 483 } 484 485 func init() { 486 proto.RegisterType((*QueryAccountsRequest)(nil), "cosmos.auth.v1beta1.QueryAccountsRequest") 487 proto.RegisterType((*QueryAccountsResponse)(nil), "cosmos.auth.v1beta1.QueryAccountsResponse") 488 proto.RegisterType((*QueryAccountRequest)(nil), "cosmos.auth.v1beta1.QueryAccountRequest") 489 proto.RegisterType((*QueryAccountResponse)(nil), "cosmos.auth.v1beta1.QueryAccountResponse") 490 proto.RegisterType((*QueryParamsRequest)(nil), "cosmos.auth.v1beta1.QueryParamsRequest") 491 proto.RegisterType((*QueryParamsResponse)(nil), "cosmos.auth.v1beta1.QueryParamsResponse") 492 proto.RegisterType((*QueryModuleAccountByNameRequest)(nil), "cosmos.auth.v1beta1.QueryModuleAccountByNameRequest") 493 proto.RegisterType((*QueryModuleAccountByNameResponse)(nil), "cosmos.auth.v1beta1.QueryModuleAccountByNameResponse") 494 proto.RegisterType((*QueryNextAccountNumberRequest)(nil), "cosmos.auth.v1beta1.QueryNextAccountNumberRequest") 495 proto.RegisterType((*QueryNextAccountNumberResponse)(nil), "cosmos.auth.v1beta1.QueryNextAccountNumberResponse") 496 } 497 498 func init() { proto.RegisterFile("cosmos/auth/v1beta1/query.proto", fileDescriptor_c451370b3929a27c) } 499 500 var fileDescriptor_c451370b3929a27c = []byte{ 501 // 709 bytes of a gzipped FileDescriptorProto 502 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x94, 0xc1, 0x4f, 0x13, 0x4f, 503 0x14, 0xc7, 0x3b, 0xfd, 0xf1, 0x2b, 0x38, 0x18, 0x13, 0xa6, 0x35, 0xa9, 0x8b, 0x6c, 0xc9, 0x12, 504 0xa5, 0x60, 0xba, 0x13, 0x8a, 0x1c, 0x20, 0xc6, 0x84, 0x1e, 0x20, 0x1e, 0x24, 0xd8, 0x70, 0xf2, 505 0x60, 0x33, 0x6d, 0x87, 0xa5, 0x91, 0x9d, 0x29, 0x9d, 0x5d, 0x43, 0x63, 0x48, 0x8c, 0x27, 0x6e, 506 0x9a, 0x18, 0xef, 0xfc, 0x0b, 0x26, 0x24, 0xfe, 0x0b, 0x84, 0x13, 0x89, 0x17, 0x4f, 0xc6, 0x80, 507 0x07, 0xff, 0x0c, 0xd3, 0x99, 0xb7, 0x40, 0x71, 0x57, 0xca, 0x6d, 0x76, 0xe6, 0x7d, 0xdf, 0xf7, 508 0x33, 0x6f, 0xde, 0x5b, 0x5c, 0x68, 0x48, 0xe5, 0x4b, 0x45, 0x59, 0x18, 0x6c, 0xd1, 0x37, 0x73, 509 0x75, 0x1e, 0xb0, 0x39, 0xba, 0x13, 0xf2, 0x4e, 0xd7, 0x6d, 0x77, 0x64, 0x20, 0x49, 0xd6, 0x04, 510 0xb8, 0xbd, 0x00, 0x17, 0x02, 0xac, 0x59, 0x50, 0xd5, 0x99, 0xe2, 0x26, 0xfa, 0x5c, 0xdb, 0x66, 511 0x5e, 0x4b, 0xb0, 0xa0, 0x25, 0x85, 0x49, 0x60, 0xe5, 0x3c, 0xe9, 0x49, 0xbd, 0xa4, 0xbd, 0x15, 512 0xec, 0xde, 0xf3, 0xa4, 0xf4, 0xb6, 0x39, 0xd5, 0x5f, 0xf5, 0x70, 0x93, 0x32, 0x01, 0x8e, 0xd6, 513 0x7d, 0x38, 0x62, 0xed, 0x16, 0x65, 0x42, 0xc8, 0x40, 0x67, 0x53, 0x70, 0x6a, 0xc7, 0x01, 0x6b, 514 0x38, 0x48, 0x6c, 0xce, 0x6b, 0xc6, 0x11, 0xe0, 0xf5, 0x87, 0xf3, 0x0a, 0xe7, 0x5e, 0xf4, 0x58, 515 0x97, 0x1b, 0x0d, 0x19, 0x8a, 0x40, 0x55, 0xf9, 0x4e, 0xc8, 0x55, 0x40, 0x56, 0x30, 0xbe, 0xa0, 516 0xce, 0xa3, 0x49, 0x54, 0x1c, 0x2d, 0x3f, 0x74, 0x41, 0xda, 0xbb, 0xa2, 0x6b, 0x0a, 0x02, 0x6e, 517 0xee, 0x3a, 0xf3, 0x38, 0x68, 0xab, 0x97, 0x94, 0xce, 0x01, 0xc2, 0x77, 0xaf, 0x18, 0xa8, 0xb6, 518 0x14, 0x8a, 0x93, 0xa7, 0x78, 0x84, 0xc1, 0x5e, 0x1e, 0x4d, 0xfe, 0x57, 0x1c, 0x2d, 0xe7, 0x5c, 519 0x73, 0x4b, 0x37, 0x2a, 0x80, 0xbb, 0x2c, 0xba, 0x95, 0xdb, 0xc7, 0x87, 0xa5, 0x11, 0x50, 0x3f, 520 0xab, 0x9e, 0x6b, 0xc8, 0x6a, 0x1f, 0x61, 0x5a, 0x13, 0x4e, 0x5f, 0x4b, 0x68, 0xcc, 0xfb, 0x10, 521 0x17, 0x71, 0xf6, 0x32, 0x61, 0x54, 0x81, 0x3c, 0x1e, 0x66, 0xcd, 0x66, 0x87, 0x2b, 0xa5, 0xaf, 522 0x7f, 0xab, 0x1a, 0x7d, 0x2e, 0x8d, 0xec, 0x1f, 0x14, 0x52, 0xbf, 0x0f, 0x0a, 0x29, 0x67, 0xa3, 523 0xbf, 0x7a, 0xe7, 0x77, 0x7b, 0x82, 0x87, 0x81, 0x13, 0x4a, 0x37, 0xc8, 0xd5, 0x22, 0x89, 0x93, 524 0xc3, 0x44, 0x67, 0x5d, 0x67, 0x1d, 0xe6, 0x47, 0x2f, 0xe2, 0xac, 0x03, 0x66, 0xb4, 0x0b, 0x56, 525 0x8b, 0x38, 0xd3, 0xd6, 0x3b, 0xe0, 0x34, 0xee, 0xc6, 0x34, 0xa7, 0x6b, 0x44, 0x95, 0xa1, 0xa3, 526 0x1f, 0x85, 0x54, 0x15, 0x04, 0xce, 0x02, 0x2e, 0xe8, 0x8c, 0xcf, 0x65, 0x33, 0xdc, 0xe6, 0xc0, 527 0x51, 0xe9, 0xae, 0x31, 0x3f, 0x7a, 0x4a, 0x42, 0xf0, 0x90, 0x60, 0x3e, 0x87, 0x0a, 0xe8, 0xb5, 528 0xb3, 0x89, 0x27, 0x93, 0x65, 0x40, 0x55, 0x19, 0xac, 0x00, 0xe4, 0xf8, 0xb0, 0x74, 0xa7, 0x2f, 529 0xcf, 0xa5, 0x32, 0x4c, 0xe1, 0x09, 0xed, 0xb3, 0xc6, 0x77, 0x03, 0x38, 0x5d, 0x0b, 0xfd, 0x3a, 530 0xef, 0x00, 0xdc, 0x52, 0x3a, 0x8f, 0x9c, 0x0d, 0x6c, 0x27, 0x05, 0x01, 0x8a, 0x8b, 0xb3, 0x82, 531 0xef, 0x06, 0x35, 0x48, 0x5b, 0x13, 0xfa, 0x58, 0x63, 0x0d, 0x55, 0xc7, 0xc4, 0x55, 0x5d, 0x2f, 532 0x6b, 0xf9, 0x73, 0x06, 0xff, 0xaf, 0xd3, 0x92, 0x7d, 0x84, 0xa3, 0x17, 0x52, 0x64, 0x26, 0xb6, 533 0xb6, 0x71, 0xf3, 0x63, 0xcd, 0x0e, 0x12, 0x6a, 0x08, 0x9d, 0x07, 0xef, 0xbf, 0xfd, 0xfa, 0x94, 534 0x2e, 0x90, 0x09, 0x1a, 0x3b, 0xc7, 0x91, 0xfb, 0x07, 0x84, 0x87, 0x41, 0x4b, 0x8a, 0xd7, 0xa6, 535 0x8f, 0x40, 0x66, 0x06, 0x88, 0x04, 0x0e, 0xaa, 0x39, 0x66, 0xc8, 0xf4, 0x3f, 0x39, 0xe8, 0x5b, 536 0x98, 0x83, 0x3d, 0xf2, 0x0e, 0xe1, 0x8c, 0xe9, 0x2c, 0x32, 0x9d, 0x6c, 0xd3, 0xd7, 0xc6, 0x56, 537 0xf1, 0xfa, 0x40, 0xc0, 0x99, 0xd2, 0x38, 0x13, 0x64, 0x3c, 0x16, 0xc7, 0xf4, 0x30, 0xf9, 0x8a, 538 0x70, 0x36, 0xa6, 0x11, 0xc9, 0xe3, 0x64, 0x9b, 0xe4, 0x76, 0xb7, 0x16, 0x6e, 0xa8, 0x02, 0xd2, 539 0x79, 0x4d, 0x5a, 0x22, 0x8f, 0x62, 0x49, 0x7d, 0xad, 0xac, 0x5d, 0xd4, 0xaf, 0x37, 0x45, 0x7b, 540 0xe4, 0x0b, 0xc2, 0x63, 0x7f, 0x75, 0x2d, 0x29, 0x27, 0x13, 0x24, 0xcd, 0x81, 0x35, 0x7f, 0x23, 541 0x4d, 0x1f, 0xf3, 0x2c, 0x29, 0xc6, 0x32, 0xc7, 0x4c, 0xcc, 0x7e, 0x1a, 0x55, 0x56, 0x8f, 0x4e, 542 0x6d, 0x74, 0x72, 0x6a, 0xa3, 0x9f, 0xa7, 0x36, 0xfa, 0x78, 0x66, 0xa7, 0x4e, 0xce, 0xec, 0xd4, 543 0xf7, 0x33, 0x3b, 0xf5, 0xb2, 0xe4, 0xb5, 0x82, 0xad, 0xb0, 0xee, 0x36, 0xa4, 0x4f, 0x57, 0x5a, 544 0x42, 0x35, 0xb6, 0x5a, 0x8c, 0x6e, 0xc2, 0xa2, 0xa4, 0x9a, 0xaf, 0xe9, 0xae, 0x71, 0x08, 0xba, 545 0x6d, 0xae, 0xea, 0x19, 0xfd, 0x1b, 0x98, 0xff, 0x13, 0x00, 0x00, 0xff, 0xff, 0xa8, 0x54, 0x55, 546 0x8b, 0x6b, 0x07, 0x00, 0x00, 547 } 548 549 // Reference imports to suppress errors if they are not otherwise used. 550 var _ context.Context 551 var _ grpc.ClientConn 552 553 // This is a compile-time assertion to ensure that this generated file 554 // is compatible with the grpc package it is being compiled against. 555 const _ = grpc.SupportPackageIsVersion4 556 557 // QueryClient is the client API for Query service. 558 // 559 // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. 560 type QueryClient interface { 561 // Accounts returns all the existing accounts 562 // 563 // Since: cosmos-sdk 0.43 564 Accounts(ctx context.Context, in *QueryAccountsRequest, opts ...grpc.CallOption) (*QueryAccountsResponse, error) 565 // Account returns account details based on address. 566 Account(ctx context.Context, in *QueryAccountRequest, opts ...grpc.CallOption) (*QueryAccountResponse, error) 567 // Params queries all parameters. 568 Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error) 569 // ModuleAccountByName returns the module account info by module name 570 ModuleAccountByName(ctx context.Context, in *QueryModuleAccountByNameRequest, opts ...grpc.CallOption) (*QueryModuleAccountByNameResponse, error) 571 // NextAccountNumber queries the global account number. 572 // Please be careful use this rpc. This rpc can be disappear whenever. 573 // And backward compatibility is not guaranteed. 574 NextAccountNumber(ctx context.Context, in *QueryNextAccountNumberRequest, opts ...grpc.CallOption) (*QueryNextAccountNumberResponse, error) 575 } 576 577 type queryClient struct { 578 cc grpc1.ClientConn 579 } 580 581 func NewQueryClient(cc grpc1.ClientConn) QueryClient { 582 return &queryClient{cc} 583 } 584 585 func (c *queryClient) Accounts(ctx context.Context, in *QueryAccountsRequest, opts ...grpc.CallOption) (*QueryAccountsResponse, error) { 586 out := new(QueryAccountsResponse) 587 err := c.cc.Invoke(ctx, "/cosmos.auth.v1beta1.Query/Accounts", in, out, opts...) 588 if err != nil { 589 return nil, err 590 } 591 return out, nil 592 } 593 594 func (c *queryClient) Account(ctx context.Context, in *QueryAccountRequest, opts ...grpc.CallOption) (*QueryAccountResponse, error) { 595 out := new(QueryAccountResponse) 596 err := c.cc.Invoke(ctx, "/cosmos.auth.v1beta1.Query/Account", in, out, opts...) 597 if err != nil { 598 return nil, err 599 } 600 return out, nil 601 } 602 603 func (c *queryClient) Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error) { 604 out := new(QueryParamsResponse) 605 err := c.cc.Invoke(ctx, "/cosmos.auth.v1beta1.Query/Params", in, out, opts...) 606 if err != nil { 607 return nil, err 608 } 609 return out, nil 610 } 611 612 func (c *queryClient) ModuleAccountByName(ctx context.Context, in *QueryModuleAccountByNameRequest, opts ...grpc.CallOption) (*QueryModuleAccountByNameResponse, error) { 613 out := new(QueryModuleAccountByNameResponse) 614 err := c.cc.Invoke(ctx, "/cosmos.auth.v1beta1.Query/ModuleAccountByName", in, out, opts...) 615 if err != nil { 616 return nil, err 617 } 618 return out, nil 619 } 620 621 // Deprecated: Do not use. 622 func (c *queryClient) NextAccountNumber(ctx context.Context, in *QueryNextAccountNumberRequest, opts ...grpc.CallOption) (*QueryNextAccountNumberResponse, error) { 623 out := new(QueryNextAccountNumberResponse) 624 err := c.cc.Invoke(ctx, "/cosmos.auth.v1beta1.Query/NextAccountNumber", in, out, opts...) 625 if err != nil { 626 return nil, err 627 } 628 return out, nil 629 } 630 631 // QueryServer is the server API for Query service. 632 type QueryServer interface { 633 // Accounts returns all the existing accounts 634 // 635 // Since: cosmos-sdk 0.43 636 Accounts(context.Context, *QueryAccountsRequest) (*QueryAccountsResponse, error) 637 // Account returns account details based on address. 638 Account(context.Context, *QueryAccountRequest) (*QueryAccountResponse, error) 639 // Params queries all parameters. 640 Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error) 641 // ModuleAccountByName returns the module account info by module name 642 ModuleAccountByName(context.Context, *QueryModuleAccountByNameRequest) (*QueryModuleAccountByNameResponse, error) 643 // NextAccountNumber queries the global account number. 644 // Please be careful use this rpc. This rpc can be disappear whenever. 645 // And backward compatibility is not guaranteed. 646 NextAccountNumber(context.Context, *QueryNextAccountNumberRequest) (*QueryNextAccountNumberResponse, error) 647 } 648 649 // UnimplementedQueryServer can be embedded to have forward compatible implementations. 650 type UnimplementedQueryServer struct { 651 } 652 653 func (*UnimplementedQueryServer) Accounts(ctx context.Context, req *QueryAccountsRequest) (*QueryAccountsResponse, error) { 654 return nil, status.Errorf(codes.Unimplemented, "method Accounts not implemented") 655 } 656 func (*UnimplementedQueryServer) Account(ctx context.Context, req *QueryAccountRequest) (*QueryAccountResponse, error) { 657 return nil, status.Errorf(codes.Unimplemented, "method Account not implemented") 658 } 659 func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error) { 660 return nil, status.Errorf(codes.Unimplemented, "method Params not implemented") 661 } 662 func (*UnimplementedQueryServer) ModuleAccountByName(ctx context.Context, req *QueryModuleAccountByNameRequest) (*QueryModuleAccountByNameResponse, error) { 663 return nil, status.Errorf(codes.Unimplemented, "method ModuleAccountByName not implemented") 664 } 665 func (*UnimplementedQueryServer) NextAccountNumber(ctx context.Context, req *QueryNextAccountNumberRequest) (*QueryNextAccountNumberResponse, error) { 666 return nil, status.Errorf(codes.Unimplemented, "method NextAccountNumber not implemented") 667 } 668 669 func RegisterQueryServer(s grpc1.Server, srv QueryServer) { 670 s.RegisterService(&_Query_serviceDesc, srv) 671 } 672 673 func _Query_Accounts_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 674 in := new(QueryAccountsRequest) 675 if err := dec(in); err != nil { 676 return nil, err 677 } 678 if interceptor == nil { 679 return srv.(QueryServer).Accounts(ctx, in) 680 } 681 info := &grpc.UnaryServerInfo{ 682 Server: srv, 683 FullMethod: "/cosmos.auth.v1beta1.Query/Accounts", 684 } 685 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 686 return srv.(QueryServer).Accounts(ctx, req.(*QueryAccountsRequest)) 687 } 688 return interceptor(ctx, in, info, handler) 689 } 690 691 func _Query_Account_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 692 in := new(QueryAccountRequest) 693 if err := dec(in); err != nil { 694 return nil, err 695 } 696 if interceptor == nil { 697 return srv.(QueryServer).Account(ctx, in) 698 } 699 info := &grpc.UnaryServerInfo{ 700 Server: srv, 701 FullMethod: "/cosmos.auth.v1beta1.Query/Account", 702 } 703 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 704 return srv.(QueryServer).Account(ctx, req.(*QueryAccountRequest)) 705 } 706 return interceptor(ctx, in, info, handler) 707 } 708 709 func _Query_Params_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 710 in := new(QueryParamsRequest) 711 if err := dec(in); err != nil { 712 return nil, err 713 } 714 if interceptor == nil { 715 return srv.(QueryServer).Params(ctx, in) 716 } 717 info := &grpc.UnaryServerInfo{ 718 Server: srv, 719 FullMethod: "/cosmos.auth.v1beta1.Query/Params", 720 } 721 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 722 return srv.(QueryServer).Params(ctx, req.(*QueryParamsRequest)) 723 } 724 return interceptor(ctx, in, info, handler) 725 } 726 727 func _Query_ModuleAccountByName_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 728 in := new(QueryModuleAccountByNameRequest) 729 if err := dec(in); err != nil { 730 return nil, err 731 } 732 if interceptor == nil { 733 return srv.(QueryServer).ModuleAccountByName(ctx, in) 734 } 735 info := &grpc.UnaryServerInfo{ 736 Server: srv, 737 FullMethod: "/cosmos.auth.v1beta1.Query/ModuleAccountByName", 738 } 739 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 740 return srv.(QueryServer).ModuleAccountByName(ctx, req.(*QueryModuleAccountByNameRequest)) 741 } 742 return interceptor(ctx, in, info, handler) 743 } 744 745 func _Query_NextAccountNumber_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 746 in := new(QueryNextAccountNumberRequest) 747 if err := dec(in); err != nil { 748 return nil, err 749 } 750 if interceptor == nil { 751 return srv.(QueryServer).NextAccountNumber(ctx, in) 752 } 753 info := &grpc.UnaryServerInfo{ 754 Server: srv, 755 FullMethod: "/cosmos.auth.v1beta1.Query/NextAccountNumber", 756 } 757 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 758 return srv.(QueryServer).NextAccountNumber(ctx, req.(*QueryNextAccountNumberRequest)) 759 } 760 return interceptor(ctx, in, info, handler) 761 } 762 763 var _Query_serviceDesc = grpc.ServiceDesc{ 764 ServiceName: "cosmos.auth.v1beta1.Query", 765 HandlerType: (*QueryServer)(nil), 766 Methods: []grpc.MethodDesc{ 767 { 768 MethodName: "Accounts", 769 Handler: _Query_Accounts_Handler, 770 }, 771 { 772 MethodName: "Account", 773 Handler: _Query_Account_Handler, 774 }, 775 { 776 MethodName: "Params", 777 Handler: _Query_Params_Handler, 778 }, 779 { 780 MethodName: "ModuleAccountByName", 781 Handler: _Query_ModuleAccountByName_Handler, 782 }, 783 { 784 MethodName: "NextAccountNumber", 785 Handler: _Query_NextAccountNumber_Handler, 786 }, 787 }, 788 Streams: []grpc.StreamDesc{}, 789 Metadata: "cosmos/auth/v1beta1/query.proto", 790 } 791 792 func (m *QueryAccountsRequest) Marshal() (dAtA []byte, err error) { 793 size := m.Size() 794 dAtA = make([]byte, size) 795 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 796 if err != nil { 797 return nil, err 798 } 799 return dAtA[:n], nil 800 } 801 802 func (m *QueryAccountsRequest) MarshalTo(dAtA []byte) (int, error) { 803 size := m.Size() 804 return m.MarshalToSizedBuffer(dAtA[:size]) 805 } 806 807 func (m *QueryAccountsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 808 i := len(dAtA) 809 _ = i 810 var l int 811 _ = l 812 if m.Pagination != nil { 813 { 814 size, err := m.Pagination.MarshalToSizedBuffer(dAtA[:i]) 815 if err != nil { 816 return 0, err 817 } 818 i -= size 819 i = encodeVarintQuery(dAtA, i, uint64(size)) 820 } 821 i-- 822 dAtA[i] = 0xa 823 } 824 return len(dAtA) - i, nil 825 } 826 827 func (m *QueryAccountsResponse) Marshal() (dAtA []byte, err error) { 828 size := m.Size() 829 dAtA = make([]byte, size) 830 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 831 if err != nil { 832 return nil, err 833 } 834 return dAtA[:n], nil 835 } 836 837 func (m *QueryAccountsResponse) MarshalTo(dAtA []byte) (int, error) { 838 size := m.Size() 839 return m.MarshalToSizedBuffer(dAtA[:size]) 840 } 841 842 func (m *QueryAccountsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 843 i := len(dAtA) 844 _ = i 845 var l int 846 _ = l 847 if m.Pagination != nil { 848 { 849 size, err := m.Pagination.MarshalToSizedBuffer(dAtA[:i]) 850 if err != nil { 851 return 0, err 852 } 853 i -= size 854 i = encodeVarintQuery(dAtA, i, uint64(size)) 855 } 856 i-- 857 dAtA[i] = 0x12 858 } 859 if len(m.Accounts) > 0 { 860 for iNdEx := len(m.Accounts) - 1; iNdEx >= 0; iNdEx-- { 861 { 862 size, err := m.Accounts[iNdEx].MarshalToSizedBuffer(dAtA[:i]) 863 if err != nil { 864 return 0, err 865 } 866 i -= size 867 i = encodeVarintQuery(dAtA, i, uint64(size)) 868 } 869 i-- 870 dAtA[i] = 0xa 871 } 872 } 873 return len(dAtA) - i, nil 874 } 875 876 func (m *QueryAccountRequest) Marshal() (dAtA []byte, err error) { 877 size := m.Size() 878 dAtA = make([]byte, size) 879 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 880 if err != nil { 881 return nil, err 882 } 883 return dAtA[:n], nil 884 } 885 886 func (m *QueryAccountRequest) MarshalTo(dAtA []byte) (int, error) { 887 size := m.Size() 888 return m.MarshalToSizedBuffer(dAtA[:size]) 889 } 890 891 func (m *QueryAccountRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 892 i := len(dAtA) 893 _ = i 894 var l int 895 _ = l 896 if len(m.Address) > 0 { 897 i -= len(m.Address) 898 copy(dAtA[i:], m.Address) 899 i = encodeVarintQuery(dAtA, i, uint64(len(m.Address))) 900 i-- 901 dAtA[i] = 0xa 902 } 903 return len(dAtA) - i, nil 904 } 905 906 func (m *QueryAccountResponse) Marshal() (dAtA []byte, err error) { 907 size := m.Size() 908 dAtA = make([]byte, size) 909 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 910 if err != nil { 911 return nil, err 912 } 913 return dAtA[:n], nil 914 } 915 916 func (m *QueryAccountResponse) MarshalTo(dAtA []byte) (int, error) { 917 size := m.Size() 918 return m.MarshalToSizedBuffer(dAtA[:size]) 919 } 920 921 func (m *QueryAccountResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 922 i := len(dAtA) 923 _ = i 924 var l int 925 _ = l 926 if m.Account != nil { 927 { 928 size, err := m.Account.MarshalToSizedBuffer(dAtA[:i]) 929 if err != nil { 930 return 0, err 931 } 932 i -= size 933 i = encodeVarintQuery(dAtA, i, uint64(size)) 934 } 935 i-- 936 dAtA[i] = 0xa 937 } 938 return len(dAtA) - i, nil 939 } 940 941 func (m *QueryParamsRequest) Marshal() (dAtA []byte, err error) { 942 size := m.Size() 943 dAtA = make([]byte, size) 944 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 945 if err != nil { 946 return nil, err 947 } 948 return dAtA[:n], nil 949 } 950 951 func (m *QueryParamsRequest) MarshalTo(dAtA []byte) (int, error) { 952 size := m.Size() 953 return m.MarshalToSizedBuffer(dAtA[:size]) 954 } 955 956 func (m *QueryParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 957 i := len(dAtA) 958 _ = i 959 var l int 960 _ = l 961 return len(dAtA) - i, nil 962 } 963 964 func (m *QueryParamsResponse) Marshal() (dAtA []byte, err error) { 965 size := m.Size() 966 dAtA = make([]byte, size) 967 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 968 if err != nil { 969 return nil, err 970 } 971 return dAtA[:n], nil 972 } 973 974 func (m *QueryParamsResponse) MarshalTo(dAtA []byte) (int, error) { 975 size := m.Size() 976 return m.MarshalToSizedBuffer(dAtA[:size]) 977 } 978 979 func (m *QueryParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 980 i := len(dAtA) 981 _ = i 982 var l int 983 _ = l 984 { 985 size, err := m.Params.MarshalToSizedBuffer(dAtA[:i]) 986 if err != nil { 987 return 0, err 988 } 989 i -= size 990 i = encodeVarintQuery(dAtA, i, uint64(size)) 991 } 992 i-- 993 dAtA[i] = 0xa 994 return len(dAtA) - i, nil 995 } 996 997 func (m *QueryModuleAccountByNameRequest) Marshal() (dAtA []byte, err error) { 998 size := m.Size() 999 dAtA = make([]byte, size) 1000 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 1001 if err != nil { 1002 return nil, err 1003 } 1004 return dAtA[:n], nil 1005 } 1006 1007 func (m *QueryModuleAccountByNameRequest) MarshalTo(dAtA []byte) (int, error) { 1008 size := m.Size() 1009 return m.MarshalToSizedBuffer(dAtA[:size]) 1010 } 1011 1012 func (m *QueryModuleAccountByNameRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 1013 i := len(dAtA) 1014 _ = i 1015 var l int 1016 _ = l 1017 if len(m.Name) > 0 { 1018 i -= len(m.Name) 1019 copy(dAtA[i:], m.Name) 1020 i = encodeVarintQuery(dAtA, i, uint64(len(m.Name))) 1021 i-- 1022 dAtA[i] = 0xa 1023 } 1024 return len(dAtA) - i, nil 1025 } 1026 1027 func (m *QueryModuleAccountByNameResponse) Marshal() (dAtA []byte, err error) { 1028 size := m.Size() 1029 dAtA = make([]byte, size) 1030 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 1031 if err != nil { 1032 return nil, err 1033 } 1034 return dAtA[:n], nil 1035 } 1036 1037 func (m *QueryModuleAccountByNameResponse) MarshalTo(dAtA []byte) (int, error) { 1038 size := m.Size() 1039 return m.MarshalToSizedBuffer(dAtA[:size]) 1040 } 1041 1042 func (m *QueryModuleAccountByNameResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 1043 i := len(dAtA) 1044 _ = i 1045 var l int 1046 _ = l 1047 if m.Account != nil { 1048 { 1049 size, err := m.Account.MarshalToSizedBuffer(dAtA[:i]) 1050 if err != nil { 1051 return 0, err 1052 } 1053 i -= size 1054 i = encodeVarintQuery(dAtA, i, uint64(size)) 1055 } 1056 i-- 1057 dAtA[i] = 0xa 1058 } 1059 return len(dAtA) - i, nil 1060 } 1061 1062 func (m *QueryNextAccountNumberRequest) Marshal() (dAtA []byte, err error) { 1063 size := m.Size() 1064 dAtA = make([]byte, size) 1065 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 1066 if err != nil { 1067 return nil, err 1068 } 1069 return dAtA[:n], nil 1070 } 1071 1072 func (m *QueryNextAccountNumberRequest) MarshalTo(dAtA []byte) (int, error) { 1073 size := m.Size() 1074 return m.MarshalToSizedBuffer(dAtA[:size]) 1075 } 1076 1077 func (m *QueryNextAccountNumberRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 1078 i := len(dAtA) 1079 _ = i 1080 var l int 1081 _ = l 1082 return len(dAtA) - i, nil 1083 } 1084 1085 func (m *QueryNextAccountNumberResponse) Marshal() (dAtA []byte, err error) { 1086 size := m.Size() 1087 dAtA = make([]byte, size) 1088 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 1089 if err != nil { 1090 return nil, err 1091 } 1092 return dAtA[:n], nil 1093 } 1094 1095 func (m *QueryNextAccountNumberResponse) MarshalTo(dAtA []byte) (int, error) { 1096 size := m.Size() 1097 return m.MarshalToSizedBuffer(dAtA[:size]) 1098 } 1099 1100 func (m *QueryNextAccountNumberResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 1101 i := len(dAtA) 1102 _ = i 1103 var l int 1104 _ = l 1105 if m.NextAccountNumber != 0 { 1106 i = encodeVarintQuery(dAtA, i, uint64(m.NextAccountNumber)) 1107 i-- 1108 dAtA[i] = 0x8 1109 } 1110 return len(dAtA) - i, nil 1111 } 1112 1113 func encodeVarintQuery(dAtA []byte, offset int, v uint64) int { 1114 offset -= sovQuery(v) 1115 base := offset 1116 for v >= 1<<7 { 1117 dAtA[offset] = uint8(v&0x7f | 0x80) 1118 v >>= 7 1119 offset++ 1120 } 1121 dAtA[offset] = uint8(v) 1122 return base 1123 } 1124 func (m *QueryAccountsRequest) Size() (n int) { 1125 if m == nil { 1126 return 0 1127 } 1128 var l int 1129 _ = l 1130 if m.Pagination != nil { 1131 l = m.Pagination.Size() 1132 n += 1 + l + sovQuery(uint64(l)) 1133 } 1134 return n 1135 } 1136 1137 func (m *QueryAccountsResponse) Size() (n int) { 1138 if m == nil { 1139 return 0 1140 } 1141 var l int 1142 _ = l 1143 if len(m.Accounts) > 0 { 1144 for _, e := range m.Accounts { 1145 l = e.Size() 1146 n += 1 + l + sovQuery(uint64(l)) 1147 } 1148 } 1149 if m.Pagination != nil { 1150 l = m.Pagination.Size() 1151 n += 1 + l + sovQuery(uint64(l)) 1152 } 1153 return n 1154 } 1155 1156 func (m *QueryAccountRequest) Size() (n int) { 1157 if m == nil { 1158 return 0 1159 } 1160 var l int 1161 _ = l 1162 l = len(m.Address) 1163 if l > 0 { 1164 n += 1 + l + sovQuery(uint64(l)) 1165 } 1166 return n 1167 } 1168 1169 func (m *QueryAccountResponse) Size() (n int) { 1170 if m == nil { 1171 return 0 1172 } 1173 var l int 1174 _ = l 1175 if m.Account != nil { 1176 l = m.Account.Size() 1177 n += 1 + l + sovQuery(uint64(l)) 1178 } 1179 return n 1180 } 1181 1182 func (m *QueryParamsRequest) Size() (n int) { 1183 if m == nil { 1184 return 0 1185 } 1186 var l int 1187 _ = l 1188 return n 1189 } 1190 1191 func (m *QueryParamsResponse) Size() (n int) { 1192 if m == nil { 1193 return 0 1194 } 1195 var l int 1196 _ = l 1197 l = m.Params.Size() 1198 n += 1 + l + sovQuery(uint64(l)) 1199 return n 1200 } 1201 1202 func (m *QueryModuleAccountByNameRequest) Size() (n int) { 1203 if m == nil { 1204 return 0 1205 } 1206 var l int 1207 _ = l 1208 l = len(m.Name) 1209 if l > 0 { 1210 n += 1 + l + sovQuery(uint64(l)) 1211 } 1212 return n 1213 } 1214 1215 func (m *QueryModuleAccountByNameResponse) Size() (n int) { 1216 if m == nil { 1217 return 0 1218 } 1219 var l int 1220 _ = l 1221 if m.Account != nil { 1222 l = m.Account.Size() 1223 n += 1 + l + sovQuery(uint64(l)) 1224 } 1225 return n 1226 } 1227 1228 func (m *QueryNextAccountNumberRequest) Size() (n int) { 1229 if m == nil { 1230 return 0 1231 } 1232 var l int 1233 _ = l 1234 return n 1235 } 1236 1237 func (m *QueryNextAccountNumberResponse) Size() (n int) { 1238 if m == nil { 1239 return 0 1240 } 1241 var l int 1242 _ = l 1243 if m.NextAccountNumber != 0 { 1244 n += 1 + sovQuery(uint64(m.NextAccountNumber)) 1245 } 1246 return n 1247 } 1248 1249 func sovQuery(x uint64) (n int) { 1250 return (math_bits.Len64(x|1) + 6) / 7 1251 } 1252 func sozQuery(x uint64) (n int) { 1253 return sovQuery(uint64((x << 1) ^ uint64((int64(x) >> 63)))) 1254 } 1255 func (m *QueryAccountsRequest) Unmarshal(dAtA []byte) error { 1256 l := len(dAtA) 1257 iNdEx := 0 1258 for iNdEx < l { 1259 preIndex := iNdEx 1260 var wire uint64 1261 for shift := uint(0); ; shift += 7 { 1262 if shift >= 64 { 1263 return ErrIntOverflowQuery 1264 } 1265 if iNdEx >= l { 1266 return io.ErrUnexpectedEOF 1267 } 1268 b := dAtA[iNdEx] 1269 iNdEx++ 1270 wire |= uint64(b&0x7F) << shift 1271 if b < 0x80 { 1272 break 1273 } 1274 } 1275 fieldNum := int32(wire >> 3) 1276 wireType := int(wire & 0x7) 1277 if wireType == 4 { 1278 return fmt.Errorf("proto: QueryAccountsRequest: wiretype end group for non-group") 1279 } 1280 if fieldNum <= 0 { 1281 return fmt.Errorf("proto: QueryAccountsRequest: illegal tag %d (wire type %d)", fieldNum, wire) 1282 } 1283 switch fieldNum { 1284 case 1: 1285 if wireType != 2 { 1286 return fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType) 1287 } 1288 var msglen int 1289 for shift := uint(0); ; shift += 7 { 1290 if shift >= 64 { 1291 return ErrIntOverflowQuery 1292 } 1293 if iNdEx >= l { 1294 return io.ErrUnexpectedEOF 1295 } 1296 b := dAtA[iNdEx] 1297 iNdEx++ 1298 msglen |= int(b&0x7F) << shift 1299 if b < 0x80 { 1300 break 1301 } 1302 } 1303 if msglen < 0 { 1304 return ErrInvalidLengthQuery 1305 } 1306 postIndex := iNdEx + msglen 1307 if postIndex < 0 { 1308 return ErrInvalidLengthQuery 1309 } 1310 if postIndex > l { 1311 return io.ErrUnexpectedEOF 1312 } 1313 if m.Pagination == nil { 1314 m.Pagination = &query.PageRequest{} 1315 } 1316 if err := m.Pagination.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 1317 return err 1318 } 1319 iNdEx = postIndex 1320 default: 1321 iNdEx = preIndex 1322 skippy, err := skipQuery(dAtA[iNdEx:]) 1323 if err != nil { 1324 return err 1325 } 1326 if (skippy < 0) || (iNdEx+skippy) < 0 { 1327 return ErrInvalidLengthQuery 1328 } 1329 if (iNdEx + skippy) > l { 1330 return io.ErrUnexpectedEOF 1331 } 1332 iNdEx += skippy 1333 } 1334 } 1335 1336 if iNdEx > l { 1337 return io.ErrUnexpectedEOF 1338 } 1339 return nil 1340 } 1341 func (m *QueryAccountsResponse) Unmarshal(dAtA []byte) error { 1342 l := len(dAtA) 1343 iNdEx := 0 1344 for iNdEx < l { 1345 preIndex := iNdEx 1346 var wire uint64 1347 for shift := uint(0); ; shift += 7 { 1348 if shift >= 64 { 1349 return ErrIntOverflowQuery 1350 } 1351 if iNdEx >= l { 1352 return io.ErrUnexpectedEOF 1353 } 1354 b := dAtA[iNdEx] 1355 iNdEx++ 1356 wire |= uint64(b&0x7F) << shift 1357 if b < 0x80 { 1358 break 1359 } 1360 } 1361 fieldNum := int32(wire >> 3) 1362 wireType := int(wire & 0x7) 1363 if wireType == 4 { 1364 return fmt.Errorf("proto: QueryAccountsResponse: wiretype end group for non-group") 1365 } 1366 if fieldNum <= 0 { 1367 return fmt.Errorf("proto: QueryAccountsResponse: illegal tag %d (wire type %d)", fieldNum, wire) 1368 } 1369 switch fieldNum { 1370 case 1: 1371 if wireType != 2 { 1372 return fmt.Errorf("proto: wrong wireType = %d for field Accounts", wireType) 1373 } 1374 var msglen int 1375 for shift := uint(0); ; shift += 7 { 1376 if shift >= 64 { 1377 return ErrIntOverflowQuery 1378 } 1379 if iNdEx >= l { 1380 return io.ErrUnexpectedEOF 1381 } 1382 b := dAtA[iNdEx] 1383 iNdEx++ 1384 msglen |= int(b&0x7F) << shift 1385 if b < 0x80 { 1386 break 1387 } 1388 } 1389 if msglen < 0 { 1390 return ErrInvalidLengthQuery 1391 } 1392 postIndex := iNdEx + msglen 1393 if postIndex < 0 { 1394 return ErrInvalidLengthQuery 1395 } 1396 if postIndex > l { 1397 return io.ErrUnexpectedEOF 1398 } 1399 m.Accounts = append(m.Accounts, &types.Any{}) 1400 if err := m.Accounts[len(m.Accounts)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 1401 return err 1402 } 1403 iNdEx = postIndex 1404 case 2: 1405 if wireType != 2 { 1406 return fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType) 1407 } 1408 var msglen int 1409 for shift := uint(0); ; shift += 7 { 1410 if shift >= 64 { 1411 return ErrIntOverflowQuery 1412 } 1413 if iNdEx >= l { 1414 return io.ErrUnexpectedEOF 1415 } 1416 b := dAtA[iNdEx] 1417 iNdEx++ 1418 msglen |= int(b&0x7F) << shift 1419 if b < 0x80 { 1420 break 1421 } 1422 } 1423 if msglen < 0 { 1424 return ErrInvalidLengthQuery 1425 } 1426 postIndex := iNdEx + msglen 1427 if postIndex < 0 { 1428 return ErrInvalidLengthQuery 1429 } 1430 if postIndex > l { 1431 return io.ErrUnexpectedEOF 1432 } 1433 if m.Pagination == nil { 1434 m.Pagination = &query.PageResponse{} 1435 } 1436 if err := m.Pagination.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 1437 return err 1438 } 1439 iNdEx = postIndex 1440 default: 1441 iNdEx = preIndex 1442 skippy, err := skipQuery(dAtA[iNdEx:]) 1443 if err != nil { 1444 return err 1445 } 1446 if (skippy < 0) || (iNdEx+skippy) < 0 { 1447 return ErrInvalidLengthQuery 1448 } 1449 if (iNdEx + skippy) > l { 1450 return io.ErrUnexpectedEOF 1451 } 1452 iNdEx += skippy 1453 } 1454 } 1455 1456 if iNdEx > l { 1457 return io.ErrUnexpectedEOF 1458 } 1459 return nil 1460 } 1461 func (m *QueryAccountRequest) Unmarshal(dAtA []byte) error { 1462 l := len(dAtA) 1463 iNdEx := 0 1464 for iNdEx < l { 1465 preIndex := iNdEx 1466 var wire uint64 1467 for shift := uint(0); ; shift += 7 { 1468 if shift >= 64 { 1469 return ErrIntOverflowQuery 1470 } 1471 if iNdEx >= l { 1472 return io.ErrUnexpectedEOF 1473 } 1474 b := dAtA[iNdEx] 1475 iNdEx++ 1476 wire |= uint64(b&0x7F) << shift 1477 if b < 0x80 { 1478 break 1479 } 1480 } 1481 fieldNum := int32(wire >> 3) 1482 wireType := int(wire & 0x7) 1483 if wireType == 4 { 1484 return fmt.Errorf("proto: QueryAccountRequest: wiretype end group for non-group") 1485 } 1486 if fieldNum <= 0 { 1487 return fmt.Errorf("proto: QueryAccountRequest: illegal tag %d (wire type %d)", fieldNum, wire) 1488 } 1489 switch fieldNum { 1490 case 1: 1491 if wireType != 2 { 1492 return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) 1493 } 1494 var stringLen uint64 1495 for shift := uint(0); ; shift += 7 { 1496 if shift >= 64 { 1497 return ErrIntOverflowQuery 1498 } 1499 if iNdEx >= l { 1500 return io.ErrUnexpectedEOF 1501 } 1502 b := dAtA[iNdEx] 1503 iNdEx++ 1504 stringLen |= uint64(b&0x7F) << shift 1505 if b < 0x80 { 1506 break 1507 } 1508 } 1509 intStringLen := int(stringLen) 1510 if intStringLen < 0 { 1511 return ErrInvalidLengthQuery 1512 } 1513 postIndex := iNdEx + intStringLen 1514 if postIndex < 0 { 1515 return ErrInvalidLengthQuery 1516 } 1517 if postIndex > l { 1518 return io.ErrUnexpectedEOF 1519 } 1520 m.Address = string(dAtA[iNdEx:postIndex]) 1521 iNdEx = postIndex 1522 default: 1523 iNdEx = preIndex 1524 skippy, err := skipQuery(dAtA[iNdEx:]) 1525 if err != nil { 1526 return err 1527 } 1528 if (skippy < 0) || (iNdEx+skippy) < 0 { 1529 return ErrInvalidLengthQuery 1530 } 1531 if (iNdEx + skippy) > l { 1532 return io.ErrUnexpectedEOF 1533 } 1534 iNdEx += skippy 1535 } 1536 } 1537 1538 if iNdEx > l { 1539 return io.ErrUnexpectedEOF 1540 } 1541 return nil 1542 } 1543 func (m *QueryAccountResponse) Unmarshal(dAtA []byte) error { 1544 l := len(dAtA) 1545 iNdEx := 0 1546 for iNdEx < l { 1547 preIndex := iNdEx 1548 var wire uint64 1549 for shift := uint(0); ; shift += 7 { 1550 if shift >= 64 { 1551 return ErrIntOverflowQuery 1552 } 1553 if iNdEx >= l { 1554 return io.ErrUnexpectedEOF 1555 } 1556 b := dAtA[iNdEx] 1557 iNdEx++ 1558 wire |= uint64(b&0x7F) << shift 1559 if b < 0x80 { 1560 break 1561 } 1562 } 1563 fieldNum := int32(wire >> 3) 1564 wireType := int(wire & 0x7) 1565 if wireType == 4 { 1566 return fmt.Errorf("proto: QueryAccountResponse: wiretype end group for non-group") 1567 } 1568 if fieldNum <= 0 { 1569 return fmt.Errorf("proto: QueryAccountResponse: illegal tag %d (wire type %d)", fieldNum, wire) 1570 } 1571 switch fieldNum { 1572 case 1: 1573 if wireType != 2 { 1574 return fmt.Errorf("proto: wrong wireType = %d for field Account", wireType) 1575 } 1576 var msglen int 1577 for shift := uint(0); ; shift += 7 { 1578 if shift >= 64 { 1579 return ErrIntOverflowQuery 1580 } 1581 if iNdEx >= l { 1582 return io.ErrUnexpectedEOF 1583 } 1584 b := dAtA[iNdEx] 1585 iNdEx++ 1586 msglen |= int(b&0x7F) << shift 1587 if b < 0x80 { 1588 break 1589 } 1590 } 1591 if msglen < 0 { 1592 return ErrInvalidLengthQuery 1593 } 1594 postIndex := iNdEx + msglen 1595 if postIndex < 0 { 1596 return ErrInvalidLengthQuery 1597 } 1598 if postIndex > l { 1599 return io.ErrUnexpectedEOF 1600 } 1601 if m.Account == nil { 1602 m.Account = &types.Any{} 1603 } 1604 if err := m.Account.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 1605 return err 1606 } 1607 iNdEx = postIndex 1608 default: 1609 iNdEx = preIndex 1610 skippy, err := skipQuery(dAtA[iNdEx:]) 1611 if err != nil { 1612 return err 1613 } 1614 if (skippy < 0) || (iNdEx+skippy) < 0 { 1615 return ErrInvalidLengthQuery 1616 } 1617 if (iNdEx + skippy) > l { 1618 return io.ErrUnexpectedEOF 1619 } 1620 iNdEx += skippy 1621 } 1622 } 1623 1624 if iNdEx > l { 1625 return io.ErrUnexpectedEOF 1626 } 1627 return nil 1628 } 1629 func (m *QueryParamsRequest) Unmarshal(dAtA []byte) error { 1630 l := len(dAtA) 1631 iNdEx := 0 1632 for iNdEx < l { 1633 preIndex := iNdEx 1634 var wire uint64 1635 for shift := uint(0); ; shift += 7 { 1636 if shift >= 64 { 1637 return ErrIntOverflowQuery 1638 } 1639 if iNdEx >= l { 1640 return io.ErrUnexpectedEOF 1641 } 1642 b := dAtA[iNdEx] 1643 iNdEx++ 1644 wire |= uint64(b&0x7F) << shift 1645 if b < 0x80 { 1646 break 1647 } 1648 } 1649 fieldNum := int32(wire >> 3) 1650 wireType := int(wire & 0x7) 1651 if wireType == 4 { 1652 return fmt.Errorf("proto: QueryParamsRequest: wiretype end group for non-group") 1653 } 1654 if fieldNum <= 0 { 1655 return fmt.Errorf("proto: QueryParamsRequest: illegal tag %d (wire type %d)", fieldNum, wire) 1656 } 1657 switch fieldNum { 1658 default: 1659 iNdEx = preIndex 1660 skippy, err := skipQuery(dAtA[iNdEx:]) 1661 if err != nil { 1662 return err 1663 } 1664 if (skippy < 0) || (iNdEx+skippy) < 0 { 1665 return ErrInvalidLengthQuery 1666 } 1667 if (iNdEx + skippy) > l { 1668 return io.ErrUnexpectedEOF 1669 } 1670 iNdEx += skippy 1671 } 1672 } 1673 1674 if iNdEx > l { 1675 return io.ErrUnexpectedEOF 1676 } 1677 return nil 1678 } 1679 func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error { 1680 l := len(dAtA) 1681 iNdEx := 0 1682 for iNdEx < l { 1683 preIndex := iNdEx 1684 var wire uint64 1685 for shift := uint(0); ; shift += 7 { 1686 if shift >= 64 { 1687 return ErrIntOverflowQuery 1688 } 1689 if iNdEx >= l { 1690 return io.ErrUnexpectedEOF 1691 } 1692 b := dAtA[iNdEx] 1693 iNdEx++ 1694 wire |= uint64(b&0x7F) << shift 1695 if b < 0x80 { 1696 break 1697 } 1698 } 1699 fieldNum := int32(wire >> 3) 1700 wireType := int(wire & 0x7) 1701 if wireType == 4 { 1702 return fmt.Errorf("proto: QueryParamsResponse: wiretype end group for non-group") 1703 } 1704 if fieldNum <= 0 { 1705 return fmt.Errorf("proto: QueryParamsResponse: illegal tag %d (wire type %d)", fieldNum, wire) 1706 } 1707 switch fieldNum { 1708 case 1: 1709 if wireType != 2 { 1710 return fmt.Errorf("proto: wrong wireType = %d for field Params", wireType) 1711 } 1712 var msglen int 1713 for shift := uint(0); ; shift += 7 { 1714 if shift >= 64 { 1715 return ErrIntOverflowQuery 1716 } 1717 if iNdEx >= l { 1718 return io.ErrUnexpectedEOF 1719 } 1720 b := dAtA[iNdEx] 1721 iNdEx++ 1722 msglen |= int(b&0x7F) << shift 1723 if b < 0x80 { 1724 break 1725 } 1726 } 1727 if msglen < 0 { 1728 return ErrInvalidLengthQuery 1729 } 1730 postIndex := iNdEx + msglen 1731 if postIndex < 0 { 1732 return ErrInvalidLengthQuery 1733 } 1734 if postIndex > l { 1735 return io.ErrUnexpectedEOF 1736 } 1737 if err := m.Params.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 1738 return err 1739 } 1740 iNdEx = postIndex 1741 default: 1742 iNdEx = preIndex 1743 skippy, err := skipQuery(dAtA[iNdEx:]) 1744 if err != nil { 1745 return err 1746 } 1747 if (skippy < 0) || (iNdEx+skippy) < 0 { 1748 return ErrInvalidLengthQuery 1749 } 1750 if (iNdEx + skippy) > l { 1751 return io.ErrUnexpectedEOF 1752 } 1753 iNdEx += skippy 1754 } 1755 } 1756 1757 if iNdEx > l { 1758 return io.ErrUnexpectedEOF 1759 } 1760 return nil 1761 } 1762 func (m *QueryModuleAccountByNameRequest) Unmarshal(dAtA []byte) error { 1763 l := len(dAtA) 1764 iNdEx := 0 1765 for iNdEx < l { 1766 preIndex := iNdEx 1767 var wire uint64 1768 for shift := uint(0); ; shift += 7 { 1769 if shift >= 64 { 1770 return ErrIntOverflowQuery 1771 } 1772 if iNdEx >= l { 1773 return io.ErrUnexpectedEOF 1774 } 1775 b := dAtA[iNdEx] 1776 iNdEx++ 1777 wire |= uint64(b&0x7F) << shift 1778 if b < 0x80 { 1779 break 1780 } 1781 } 1782 fieldNum := int32(wire >> 3) 1783 wireType := int(wire & 0x7) 1784 if wireType == 4 { 1785 return fmt.Errorf("proto: QueryModuleAccountByNameRequest: wiretype end group for non-group") 1786 } 1787 if fieldNum <= 0 { 1788 return fmt.Errorf("proto: QueryModuleAccountByNameRequest: illegal tag %d (wire type %d)", fieldNum, wire) 1789 } 1790 switch fieldNum { 1791 case 1: 1792 if wireType != 2 { 1793 return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) 1794 } 1795 var stringLen uint64 1796 for shift := uint(0); ; shift += 7 { 1797 if shift >= 64 { 1798 return ErrIntOverflowQuery 1799 } 1800 if iNdEx >= l { 1801 return io.ErrUnexpectedEOF 1802 } 1803 b := dAtA[iNdEx] 1804 iNdEx++ 1805 stringLen |= uint64(b&0x7F) << shift 1806 if b < 0x80 { 1807 break 1808 } 1809 } 1810 intStringLen := int(stringLen) 1811 if intStringLen < 0 { 1812 return ErrInvalidLengthQuery 1813 } 1814 postIndex := iNdEx + intStringLen 1815 if postIndex < 0 { 1816 return ErrInvalidLengthQuery 1817 } 1818 if postIndex > l { 1819 return io.ErrUnexpectedEOF 1820 } 1821 m.Name = string(dAtA[iNdEx:postIndex]) 1822 iNdEx = postIndex 1823 default: 1824 iNdEx = preIndex 1825 skippy, err := skipQuery(dAtA[iNdEx:]) 1826 if err != nil { 1827 return err 1828 } 1829 if (skippy < 0) || (iNdEx+skippy) < 0 { 1830 return ErrInvalidLengthQuery 1831 } 1832 if (iNdEx + skippy) > l { 1833 return io.ErrUnexpectedEOF 1834 } 1835 iNdEx += skippy 1836 } 1837 } 1838 1839 if iNdEx > l { 1840 return io.ErrUnexpectedEOF 1841 } 1842 return nil 1843 } 1844 func (m *QueryModuleAccountByNameResponse) Unmarshal(dAtA []byte) error { 1845 l := len(dAtA) 1846 iNdEx := 0 1847 for iNdEx < l { 1848 preIndex := iNdEx 1849 var wire uint64 1850 for shift := uint(0); ; shift += 7 { 1851 if shift >= 64 { 1852 return ErrIntOverflowQuery 1853 } 1854 if iNdEx >= l { 1855 return io.ErrUnexpectedEOF 1856 } 1857 b := dAtA[iNdEx] 1858 iNdEx++ 1859 wire |= uint64(b&0x7F) << shift 1860 if b < 0x80 { 1861 break 1862 } 1863 } 1864 fieldNum := int32(wire >> 3) 1865 wireType := int(wire & 0x7) 1866 if wireType == 4 { 1867 return fmt.Errorf("proto: QueryModuleAccountByNameResponse: wiretype end group for non-group") 1868 } 1869 if fieldNum <= 0 { 1870 return fmt.Errorf("proto: QueryModuleAccountByNameResponse: illegal tag %d (wire type %d)", fieldNum, wire) 1871 } 1872 switch fieldNum { 1873 case 1: 1874 if wireType != 2 { 1875 return fmt.Errorf("proto: wrong wireType = %d for field Account", wireType) 1876 } 1877 var msglen int 1878 for shift := uint(0); ; shift += 7 { 1879 if shift >= 64 { 1880 return ErrIntOverflowQuery 1881 } 1882 if iNdEx >= l { 1883 return io.ErrUnexpectedEOF 1884 } 1885 b := dAtA[iNdEx] 1886 iNdEx++ 1887 msglen |= int(b&0x7F) << shift 1888 if b < 0x80 { 1889 break 1890 } 1891 } 1892 if msglen < 0 { 1893 return ErrInvalidLengthQuery 1894 } 1895 postIndex := iNdEx + msglen 1896 if postIndex < 0 { 1897 return ErrInvalidLengthQuery 1898 } 1899 if postIndex > l { 1900 return io.ErrUnexpectedEOF 1901 } 1902 if m.Account == nil { 1903 m.Account = &types.Any{} 1904 } 1905 if err := m.Account.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 1906 return err 1907 } 1908 iNdEx = postIndex 1909 default: 1910 iNdEx = preIndex 1911 skippy, err := skipQuery(dAtA[iNdEx:]) 1912 if err != nil { 1913 return err 1914 } 1915 if (skippy < 0) || (iNdEx+skippy) < 0 { 1916 return ErrInvalidLengthQuery 1917 } 1918 if (iNdEx + skippy) > l { 1919 return io.ErrUnexpectedEOF 1920 } 1921 iNdEx += skippy 1922 } 1923 } 1924 1925 if iNdEx > l { 1926 return io.ErrUnexpectedEOF 1927 } 1928 return nil 1929 } 1930 func (m *QueryNextAccountNumberRequest) Unmarshal(dAtA []byte) error { 1931 l := len(dAtA) 1932 iNdEx := 0 1933 for iNdEx < l { 1934 preIndex := iNdEx 1935 var wire uint64 1936 for shift := uint(0); ; shift += 7 { 1937 if shift >= 64 { 1938 return ErrIntOverflowQuery 1939 } 1940 if iNdEx >= l { 1941 return io.ErrUnexpectedEOF 1942 } 1943 b := dAtA[iNdEx] 1944 iNdEx++ 1945 wire |= uint64(b&0x7F) << shift 1946 if b < 0x80 { 1947 break 1948 } 1949 } 1950 fieldNum := int32(wire >> 3) 1951 wireType := int(wire & 0x7) 1952 if wireType == 4 { 1953 return fmt.Errorf("proto: QueryNextAccountNumberRequest: wiretype end group for non-group") 1954 } 1955 if fieldNum <= 0 { 1956 return fmt.Errorf("proto: QueryNextAccountNumberRequest: illegal tag %d (wire type %d)", fieldNum, wire) 1957 } 1958 switch fieldNum { 1959 default: 1960 iNdEx = preIndex 1961 skippy, err := skipQuery(dAtA[iNdEx:]) 1962 if err != nil { 1963 return err 1964 } 1965 if (skippy < 0) || (iNdEx+skippy) < 0 { 1966 return ErrInvalidLengthQuery 1967 } 1968 if (iNdEx + skippy) > l { 1969 return io.ErrUnexpectedEOF 1970 } 1971 iNdEx += skippy 1972 } 1973 } 1974 1975 if iNdEx > l { 1976 return io.ErrUnexpectedEOF 1977 } 1978 return nil 1979 } 1980 func (m *QueryNextAccountNumberResponse) Unmarshal(dAtA []byte) error { 1981 l := len(dAtA) 1982 iNdEx := 0 1983 for iNdEx < l { 1984 preIndex := iNdEx 1985 var wire uint64 1986 for shift := uint(0); ; shift += 7 { 1987 if shift >= 64 { 1988 return ErrIntOverflowQuery 1989 } 1990 if iNdEx >= l { 1991 return io.ErrUnexpectedEOF 1992 } 1993 b := dAtA[iNdEx] 1994 iNdEx++ 1995 wire |= uint64(b&0x7F) << shift 1996 if b < 0x80 { 1997 break 1998 } 1999 } 2000 fieldNum := int32(wire >> 3) 2001 wireType := int(wire & 0x7) 2002 if wireType == 4 { 2003 return fmt.Errorf("proto: QueryNextAccountNumberResponse: wiretype end group for non-group") 2004 } 2005 if fieldNum <= 0 { 2006 return fmt.Errorf("proto: QueryNextAccountNumberResponse: illegal tag %d (wire type %d)", fieldNum, wire) 2007 } 2008 switch fieldNum { 2009 case 1: 2010 if wireType != 0 { 2011 return fmt.Errorf("proto: wrong wireType = %d for field NextAccountNumber", wireType) 2012 } 2013 m.NextAccountNumber = 0 2014 for shift := uint(0); ; shift += 7 { 2015 if shift >= 64 { 2016 return ErrIntOverflowQuery 2017 } 2018 if iNdEx >= l { 2019 return io.ErrUnexpectedEOF 2020 } 2021 b := dAtA[iNdEx] 2022 iNdEx++ 2023 m.NextAccountNumber |= uint64(b&0x7F) << shift 2024 if b < 0x80 { 2025 break 2026 } 2027 } 2028 default: 2029 iNdEx = preIndex 2030 skippy, err := skipQuery(dAtA[iNdEx:]) 2031 if err != nil { 2032 return err 2033 } 2034 if (skippy < 0) || (iNdEx+skippy) < 0 { 2035 return ErrInvalidLengthQuery 2036 } 2037 if (iNdEx + skippy) > l { 2038 return io.ErrUnexpectedEOF 2039 } 2040 iNdEx += skippy 2041 } 2042 } 2043 2044 if iNdEx > l { 2045 return io.ErrUnexpectedEOF 2046 } 2047 return nil 2048 } 2049 func skipQuery(dAtA []byte) (n int, err error) { 2050 l := len(dAtA) 2051 iNdEx := 0 2052 depth := 0 2053 for iNdEx < l { 2054 var wire uint64 2055 for shift := uint(0); ; shift += 7 { 2056 if shift >= 64 { 2057 return 0, ErrIntOverflowQuery 2058 } 2059 if iNdEx >= l { 2060 return 0, io.ErrUnexpectedEOF 2061 } 2062 b := dAtA[iNdEx] 2063 iNdEx++ 2064 wire |= (uint64(b) & 0x7F) << shift 2065 if b < 0x80 { 2066 break 2067 } 2068 } 2069 wireType := int(wire & 0x7) 2070 switch wireType { 2071 case 0: 2072 for shift := uint(0); ; shift += 7 { 2073 if shift >= 64 { 2074 return 0, ErrIntOverflowQuery 2075 } 2076 if iNdEx >= l { 2077 return 0, io.ErrUnexpectedEOF 2078 } 2079 iNdEx++ 2080 if dAtA[iNdEx-1] < 0x80 { 2081 break 2082 } 2083 } 2084 case 1: 2085 iNdEx += 8 2086 case 2: 2087 var length int 2088 for shift := uint(0); ; shift += 7 { 2089 if shift >= 64 { 2090 return 0, ErrIntOverflowQuery 2091 } 2092 if iNdEx >= l { 2093 return 0, io.ErrUnexpectedEOF 2094 } 2095 b := dAtA[iNdEx] 2096 iNdEx++ 2097 length |= (int(b) & 0x7F) << shift 2098 if b < 0x80 { 2099 break 2100 } 2101 } 2102 if length < 0 { 2103 return 0, ErrInvalidLengthQuery 2104 } 2105 iNdEx += length 2106 case 3: 2107 depth++ 2108 case 4: 2109 if depth == 0 { 2110 return 0, ErrUnexpectedEndOfGroupQuery 2111 } 2112 depth-- 2113 case 5: 2114 iNdEx += 4 2115 default: 2116 return 0, fmt.Errorf("proto: illegal wireType %d", wireType) 2117 } 2118 if iNdEx < 0 { 2119 return 0, ErrInvalidLengthQuery 2120 } 2121 if depth == 0 { 2122 return iNdEx, nil 2123 } 2124 } 2125 return 0, io.ErrUnexpectedEOF 2126 } 2127 2128 var ( 2129 ErrInvalidLengthQuery = fmt.Errorf("proto: negative length found during unmarshaling") 2130 ErrIntOverflowQuery = fmt.Errorf("proto: integer overflow") 2131 ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group") 2132 )