github.com/cosmos/cosmos-sdk@v0.50.10/types/tx/service.pb.go (about) 1 // Code generated by protoc-gen-gogo. DO NOT EDIT. 2 // source: cosmos/tx/v1beta1/service.proto 3 4 package tx 5 6 import ( 7 context "context" 8 fmt "fmt" 9 types1 "github.com/cometbft/cometbft/proto/tendermint/types" 10 types "github.com/cosmos/cosmos-sdk/types" 11 query "github.com/cosmos/cosmos-sdk/types/query" 12 grpc1 "github.com/cosmos/gogoproto/grpc" 13 proto "github.com/cosmos/gogoproto/proto" 14 _ "google.golang.org/genproto/googleapis/api/annotations" 15 grpc "google.golang.org/grpc" 16 codes "google.golang.org/grpc/codes" 17 status "google.golang.org/grpc/status" 18 io "io" 19 math "math" 20 math_bits "math/bits" 21 ) 22 23 // Reference imports to suppress errors if they are not otherwise used. 24 var _ = proto.Marshal 25 var _ = fmt.Errorf 26 var _ = math.Inf 27 28 // This is a compile-time assertion to ensure that this generated file 29 // is compatible with the proto package it is being compiled against. 30 // A compilation error at this line likely means your copy of the 31 // proto package needs to be updated. 32 const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package 33 34 // OrderBy defines the sorting order 35 type OrderBy int32 36 37 const ( 38 // ORDER_BY_UNSPECIFIED specifies an unknown sorting order. OrderBy defaults 39 // to ASC in this case. 40 OrderBy_ORDER_BY_UNSPECIFIED OrderBy = 0 41 // ORDER_BY_ASC defines ascending order 42 OrderBy_ORDER_BY_ASC OrderBy = 1 43 // ORDER_BY_DESC defines descending order 44 OrderBy_ORDER_BY_DESC OrderBy = 2 45 ) 46 47 var OrderBy_name = map[int32]string{ 48 0: "ORDER_BY_UNSPECIFIED", 49 1: "ORDER_BY_ASC", 50 2: "ORDER_BY_DESC", 51 } 52 53 var OrderBy_value = map[string]int32{ 54 "ORDER_BY_UNSPECIFIED": 0, 55 "ORDER_BY_ASC": 1, 56 "ORDER_BY_DESC": 2, 57 } 58 59 func (x OrderBy) String() string { 60 return proto.EnumName(OrderBy_name, int32(x)) 61 } 62 63 func (OrderBy) EnumDescriptor() ([]byte, []int) { 64 return fileDescriptor_e0b00a618705eca7, []int{0} 65 } 66 67 // BroadcastMode specifies the broadcast mode for the TxService.Broadcast RPC 68 // method. 69 type BroadcastMode int32 70 71 const ( 72 // zero-value for mode ordering 73 BroadcastMode_BROADCAST_MODE_UNSPECIFIED BroadcastMode = 0 74 // DEPRECATED: use BROADCAST_MODE_SYNC instead, 75 // BROADCAST_MODE_BLOCK is not supported by the SDK from v0.47.x onwards. 76 BroadcastMode_BROADCAST_MODE_BLOCK BroadcastMode = 1 // Deprecated: Do not use. 77 // BROADCAST_MODE_SYNC defines a tx broadcasting mode where the client waits 78 // for a CheckTx execution response only. 79 BroadcastMode_BROADCAST_MODE_SYNC BroadcastMode = 2 80 // BROADCAST_MODE_ASYNC defines a tx broadcasting mode where the client 81 // returns immediately. 82 BroadcastMode_BROADCAST_MODE_ASYNC BroadcastMode = 3 83 ) 84 85 var BroadcastMode_name = map[int32]string{ 86 0: "BROADCAST_MODE_UNSPECIFIED", 87 1: "BROADCAST_MODE_BLOCK", 88 2: "BROADCAST_MODE_SYNC", 89 3: "BROADCAST_MODE_ASYNC", 90 } 91 92 var BroadcastMode_value = map[string]int32{ 93 "BROADCAST_MODE_UNSPECIFIED": 0, 94 "BROADCAST_MODE_BLOCK": 1, 95 "BROADCAST_MODE_SYNC": 2, 96 "BROADCAST_MODE_ASYNC": 3, 97 } 98 99 func (x BroadcastMode) String() string { 100 return proto.EnumName(BroadcastMode_name, int32(x)) 101 } 102 103 func (BroadcastMode) EnumDescriptor() ([]byte, []int) { 104 return fileDescriptor_e0b00a618705eca7, []int{1} 105 } 106 107 // GetTxsEventRequest is the request type for the Service.TxsByEvents 108 // RPC method. 109 type GetTxsEventRequest struct { 110 // events is the list of transaction event type. 111 // Deprecated post v0.47.x: use query instead, which should contain a valid 112 // events query. 113 Events []string `protobuf:"bytes,1,rep,name=events,proto3" json:"events,omitempty"` // Deprecated: Do not use. 114 // pagination defines a pagination for the request. 115 // Deprecated post v0.46.x: use page and limit instead. 116 Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` // Deprecated: Do not use. 117 OrderBy OrderBy `protobuf:"varint,3,opt,name=order_by,json=orderBy,proto3,enum=cosmos.tx.v1beta1.OrderBy" json:"order_by,omitempty"` 118 // page is the page number to query, starts at 1. If not provided, will 119 // default to first page. 120 Page uint64 `protobuf:"varint,4,opt,name=page,proto3" json:"page,omitempty"` 121 // limit is the total number of results to be returned in the result page. 122 // If left empty it will default to a value to be set by each app. 123 Limit uint64 `protobuf:"varint,5,opt,name=limit,proto3" json:"limit,omitempty"` 124 // query defines the transaction event query that is proxied to Tendermint's 125 // TxSearch RPC method. The query must be valid. 126 // 127 // Since cosmos-sdk 0.50 128 Query string `protobuf:"bytes,6,opt,name=query,proto3" json:"query,omitempty"` 129 } 130 131 func (m *GetTxsEventRequest) Reset() { *m = GetTxsEventRequest{} } 132 func (m *GetTxsEventRequest) String() string { return proto.CompactTextString(m) } 133 func (*GetTxsEventRequest) ProtoMessage() {} 134 func (*GetTxsEventRequest) Descriptor() ([]byte, []int) { 135 return fileDescriptor_e0b00a618705eca7, []int{0} 136 } 137 func (m *GetTxsEventRequest) XXX_Unmarshal(b []byte) error { 138 return m.Unmarshal(b) 139 } 140 func (m *GetTxsEventRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 141 if deterministic { 142 return xxx_messageInfo_GetTxsEventRequest.Marshal(b, m, deterministic) 143 } else { 144 b = b[:cap(b)] 145 n, err := m.MarshalToSizedBuffer(b) 146 if err != nil { 147 return nil, err 148 } 149 return b[:n], nil 150 } 151 } 152 func (m *GetTxsEventRequest) XXX_Merge(src proto.Message) { 153 xxx_messageInfo_GetTxsEventRequest.Merge(m, src) 154 } 155 func (m *GetTxsEventRequest) XXX_Size() int { 156 return m.Size() 157 } 158 func (m *GetTxsEventRequest) XXX_DiscardUnknown() { 159 xxx_messageInfo_GetTxsEventRequest.DiscardUnknown(m) 160 } 161 162 var xxx_messageInfo_GetTxsEventRequest proto.InternalMessageInfo 163 164 // Deprecated: Do not use. 165 func (m *GetTxsEventRequest) GetEvents() []string { 166 if m != nil { 167 return m.Events 168 } 169 return nil 170 } 171 172 // Deprecated: Do not use. 173 func (m *GetTxsEventRequest) GetPagination() *query.PageRequest { 174 if m != nil { 175 return m.Pagination 176 } 177 return nil 178 } 179 180 func (m *GetTxsEventRequest) GetOrderBy() OrderBy { 181 if m != nil { 182 return m.OrderBy 183 } 184 return OrderBy_ORDER_BY_UNSPECIFIED 185 } 186 187 func (m *GetTxsEventRequest) GetPage() uint64 { 188 if m != nil { 189 return m.Page 190 } 191 return 0 192 } 193 194 func (m *GetTxsEventRequest) GetLimit() uint64 { 195 if m != nil { 196 return m.Limit 197 } 198 return 0 199 } 200 201 func (m *GetTxsEventRequest) GetQuery() string { 202 if m != nil { 203 return m.Query 204 } 205 return "" 206 } 207 208 // GetTxsEventResponse is the response type for the Service.TxsByEvents 209 // RPC method. 210 type GetTxsEventResponse struct { 211 // txs is the list of queried transactions. 212 Txs []*Tx `protobuf:"bytes,1,rep,name=txs,proto3" json:"txs,omitempty"` 213 // tx_responses is the list of queried TxResponses. 214 TxResponses []*types.TxResponse `protobuf:"bytes,2,rep,name=tx_responses,json=txResponses,proto3" json:"tx_responses,omitempty"` 215 // pagination defines a pagination for the response. 216 // Deprecated post v0.46.x: use total instead. 217 Pagination *query.PageResponse `protobuf:"bytes,3,opt,name=pagination,proto3" json:"pagination,omitempty"` // Deprecated: Do not use. 218 // total is total number of results available 219 Total uint64 `protobuf:"varint,4,opt,name=total,proto3" json:"total,omitempty"` 220 } 221 222 func (m *GetTxsEventResponse) Reset() { *m = GetTxsEventResponse{} } 223 func (m *GetTxsEventResponse) String() string { return proto.CompactTextString(m) } 224 func (*GetTxsEventResponse) ProtoMessage() {} 225 func (*GetTxsEventResponse) Descriptor() ([]byte, []int) { 226 return fileDescriptor_e0b00a618705eca7, []int{1} 227 } 228 func (m *GetTxsEventResponse) XXX_Unmarshal(b []byte) error { 229 return m.Unmarshal(b) 230 } 231 func (m *GetTxsEventResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 232 if deterministic { 233 return xxx_messageInfo_GetTxsEventResponse.Marshal(b, m, deterministic) 234 } else { 235 b = b[:cap(b)] 236 n, err := m.MarshalToSizedBuffer(b) 237 if err != nil { 238 return nil, err 239 } 240 return b[:n], nil 241 } 242 } 243 func (m *GetTxsEventResponse) XXX_Merge(src proto.Message) { 244 xxx_messageInfo_GetTxsEventResponse.Merge(m, src) 245 } 246 func (m *GetTxsEventResponse) XXX_Size() int { 247 return m.Size() 248 } 249 func (m *GetTxsEventResponse) XXX_DiscardUnknown() { 250 xxx_messageInfo_GetTxsEventResponse.DiscardUnknown(m) 251 } 252 253 var xxx_messageInfo_GetTxsEventResponse proto.InternalMessageInfo 254 255 func (m *GetTxsEventResponse) GetTxs() []*Tx { 256 if m != nil { 257 return m.Txs 258 } 259 return nil 260 } 261 262 func (m *GetTxsEventResponse) GetTxResponses() []*types.TxResponse { 263 if m != nil { 264 return m.TxResponses 265 } 266 return nil 267 } 268 269 // Deprecated: Do not use. 270 func (m *GetTxsEventResponse) GetPagination() *query.PageResponse { 271 if m != nil { 272 return m.Pagination 273 } 274 return nil 275 } 276 277 func (m *GetTxsEventResponse) GetTotal() uint64 { 278 if m != nil { 279 return m.Total 280 } 281 return 0 282 } 283 284 // BroadcastTxRequest is the request type for the Service.BroadcastTxRequest 285 // RPC method. 286 type BroadcastTxRequest struct { 287 // tx_bytes is the raw transaction. 288 TxBytes []byte `protobuf:"bytes,1,opt,name=tx_bytes,json=txBytes,proto3" json:"tx_bytes,omitempty"` 289 Mode BroadcastMode `protobuf:"varint,2,opt,name=mode,proto3,enum=cosmos.tx.v1beta1.BroadcastMode" json:"mode,omitempty"` 290 } 291 292 func (m *BroadcastTxRequest) Reset() { *m = BroadcastTxRequest{} } 293 func (m *BroadcastTxRequest) String() string { return proto.CompactTextString(m) } 294 func (*BroadcastTxRequest) ProtoMessage() {} 295 func (*BroadcastTxRequest) Descriptor() ([]byte, []int) { 296 return fileDescriptor_e0b00a618705eca7, []int{2} 297 } 298 func (m *BroadcastTxRequest) XXX_Unmarshal(b []byte) error { 299 return m.Unmarshal(b) 300 } 301 func (m *BroadcastTxRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 302 if deterministic { 303 return xxx_messageInfo_BroadcastTxRequest.Marshal(b, m, deterministic) 304 } else { 305 b = b[:cap(b)] 306 n, err := m.MarshalToSizedBuffer(b) 307 if err != nil { 308 return nil, err 309 } 310 return b[:n], nil 311 } 312 } 313 func (m *BroadcastTxRequest) XXX_Merge(src proto.Message) { 314 xxx_messageInfo_BroadcastTxRequest.Merge(m, src) 315 } 316 func (m *BroadcastTxRequest) XXX_Size() int { 317 return m.Size() 318 } 319 func (m *BroadcastTxRequest) XXX_DiscardUnknown() { 320 xxx_messageInfo_BroadcastTxRequest.DiscardUnknown(m) 321 } 322 323 var xxx_messageInfo_BroadcastTxRequest proto.InternalMessageInfo 324 325 func (m *BroadcastTxRequest) GetTxBytes() []byte { 326 if m != nil { 327 return m.TxBytes 328 } 329 return nil 330 } 331 332 func (m *BroadcastTxRequest) GetMode() BroadcastMode { 333 if m != nil { 334 return m.Mode 335 } 336 return BroadcastMode_BROADCAST_MODE_UNSPECIFIED 337 } 338 339 // BroadcastTxResponse is the response type for the 340 // Service.BroadcastTx method. 341 type BroadcastTxResponse struct { 342 // tx_response is the queried TxResponses. 343 TxResponse *types.TxResponse `protobuf:"bytes,1,opt,name=tx_response,json=txResponse,proto3" json:"tx_response,omitempty"` 344 } 345 346 func (m *BroadcastTxResponse) Reset() { *m = BroadcastTxResponse{} } 347 func (m *BroadcastTxResponse) String() string { return proto.CompactTextString(m) } 348 func (*BroadcastTxResponse) ProtoMessage() {} 349 func (*BroadcastTxResponse) Descriptor() ([]byte, []int) { 350 return fileDescriptor_e0b00a618705eca7, []int{3} 351 } 352 func (m *BroadcastTxResponse) XXX_Unmarshal(b []byte) error { 353 return m.Unmarshal(b) 354 } 355 func (m *BroadcastTxResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 356 if deterministic { 357 return xxx_messageInfo_BroadcastTxResponse.Marshal(b, m, deterministic) 358 } else { 359 b = b[:cap(b)] 360 n, err := m.MarshalToSizedBuffer(b) 361 if err != nil { 362 return nil, err 363 } 364 return b[:n], nil 365 } 366 } 367 func (m *BroadcastTxResponse) XXX_Merge(src proto.Message) { 368 xxx_messageInfo_BroadcastTxResponse.Merge(m, src) 369 } 370 func (m *BroadcastTxResponse) XXX_Size() int { 371 return m.Size() 372 } 373 func (m *BroadcastTxResponse) XXX_DiscardUnknown() { 374 xxx_messageInfo_BroadcastTxResponse.DiscardUnknown(m) 375 } 376 377 var xxx_messageInfo_BroadcastTxResponse proto.InternalMessageInfo 378 379 func (m *BroadcastTxResponse) GetTxResponse() *types.TxResponse { 380 if m != nil { 381 return m.TxResponse 382 } 383 return nil 384 } 385 386 // SimulateRequest is the request type for the Service.Simulate 387 // RPC method. 388 type SimulateRequest struct { 389 // tx is the transaction to simulate. 390 // Deprecated. Send raw tx bytes instead. 391 Tx *Tx `protobuf:"bytes,1,opt,name=tx,proto3" json:"tx,omitempty"` // Deprecated: Do not use. 392 // tx_bytes is the raw transaction. 393 // 394 // Since: cosmos-sdk 0.43 395 TxBytes []byte `protobuf:"bytes,2,opt,name=tx_bytes,json=txBytes,proto3" json:"tx_bytes,omitempty"` 396 } 397 398 func (m *SimulateRequest) Reset() { *m = SimulateRequest{} } 399 func (m *SimulateRequest) String() string { return proto.CompactTextString(m) } 400 func (*SimulateRequest) ProtoMessage() {} 401 func (*SimulateRequest) Descriptor() ([]byte, []int) { 402 return fileDescriptor_e0b00a618705eca7, []int{4} 403 } 404 func (m *SimulateRequest) XXX_Unmarshal(b []byte) error { 405 return m.Unmarshal(b) 406 } 407 func (m *SimulateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 408 if deterministic { 409 return xxx_messageInfo_SimulateRequest.Marshal(b, m, deterministic) 410 } else { 411 b = b[:cap(b)] 412 n, err := m.MarshalToSizedBuffer(b) 413 if err != nil { 414 return nil, err 415 } 416 return b[:n], nil 417 } 418 } 419 func (m *SimulateRequest) XXX_Merge(src proto.Message) { 420 xxx_messageInfo_SimulateRequest.Merge(m, src) 421 } 422 func (m *SimulateRequest) XXX_Size() int { 423 return m.Size() 424 } 425 func (m *SimulateRequest) XXX_DiscardUnknown() { 426 xxx_messageInfo_SimulateRequest.DiscardUnknown(m) 427 } 428 429 var xxx_messageInfo_SimulateRequest proto.InternalMessageInfo 430 431 // Deprecated: Do not use. 432 func (m *SimulateRequest) GetTx() *Tx { 433 if m != nil { 434 return m.Tx 435 } 436 return nil 437 } 438 439 func (m *SimulateRequest) GetTxBytes() []byte { 440 if m != nil { 441 return m.TxBytes 442 } 443 return nil 444 } 445 446 // SimulateResponse is the response type for the 447 // Service.SimulateRPC method. 448 type SimulateResponse struct { 449 // gas_info is the information about gas used in the simulation. 450 GasInfo *types.GasInfo `protobuf:"bytes,1,opt,name=gas_info,json=gasInfo,proto3" json:"gas_info,omitempty"` 451 // result is the result of the simulation. 452 Result *types.Result `protobuf:"bytes,2,opt,name=result,proto3" json:"result,omitempty"` 453 } 454 455 func (m *SimulateResponse) Reset() { *m = SimulateResponse{} } 456 func (m *SimulateResponse) String() string { return proto.CompactTextString(m) } 457 func (*SimulateResponse) ProtoMessage() {} 458 func (*SimulateResponse) Descriptor() ([]byte, []int) { 459 return fileDescriptor_e0b00a618705eca7, []int{5} 460 } 461 func (m *SimulateResponse) XXX_Unmarshal(b []byte) error { 462 return m.Unmarshal(b) 463 } 464 func (m *SimulateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 465 if deterministic { 466 return xxx_messageInfo_SimulateResponse.Marshal(b, m, deterministic) 467 } else { 468 b = b[:cap(b)] 469 n, err := m.MarshalToSizedBuffer(b) 470 if err != nil { 471 return nil, err 472 } 473 return b[:n], nil 474 } 475 } 476 func (m *SimulateResponse) XXX_Merge(src proto.Message) { 477 xxx_messageInfo_SimulateResponse.Merge(m, src) 478 } 479 func (m *SimulateResponse) XXX_Size() int { 480 return m.Size() 481 } 482 func (m *SimulateResponse) XXX_DiscardUnknown() { 483 xxx_messageInfo_SimulateResponse.DiscardUnknown(m) 484 } 485 486 var xxx_messageInfo_SimulateResponse proto.InternalMessageInfo 487 488 func (m *SimulateResponse) GetGasInfo() *types.GasInfo { 489 if m != nil { 490 return m.GasInfo 491 } 492 return nil 493 } 494 495 func (m *SimulateResponse) GetResult() *types.Result { 496 if m != nil { 497 return m.Result 498 } 499 return nil 500 } 501 502 // GetTxRequest is the request type for the Service.GetTx 503 // RPC method. 504 type GetTxRequest struct { 505 // hash is the tx hash to query, encoded as a hex string. 506 Hash string `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"` 507 } 508 509 func (m *GetTxRequest) Reset() { *m = GetTxRequest{} } 510 func (m *GetTxRequest) String() string { return proto.CompactTextString(m) } 511 func (*GetTxRequest) ProtoMessage() {} 512 func (*GetTxRequest) Descriptor() ([]byte, []int) { 513 return fileDescriptor_e0b00a618705eca7, []int{6} 514 } 515 func (m *GetTxRequest) XXX_Unmarshal(b []byte) error { 516 return m.Unmarshal(b) 517 } 518 func (m *GetTxRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 519 if deterministic { 520 return xxx_messageInfo_GetTxRequest.Marshal(b, m, deterministic) 521 } else { 522 b = b[:cap(b)] 523 n, err := m.MarshalToSizedBuffer(b) 524 if err != nil { 525 return nil, err 526 } 527 return b[:n], nil 528 } 529 } 530 func (m *GetTxRequest) XXX_Merge(src proto.Message) { 531 xxx_messageInfo_GetTxRequest.Merge(m, src) 532 } 533 func (m *GetTxRequest) XXX_Size() int { 534 return m.Size() 535 } 536 func (m *GetTxRequest) XXX_DiscardUnknown() { 537 xxx_messageInfo_GetTxRequest.DiscardUnknown(m) 538 } 539 540 var xxx_messageInfo_GetTxRequest proto.InternalMessageInfo 541 542 func (m *GetTxRequest) GetHash() string { 543 if m != nil { 544 return m.Hash 545 } 546 return "" 547 } 548 549 // GetTxResponse is the response type for the Service.GetTx method. 550 type GetTxResponse struct { 551 // tx is the queried transaction. 552 Tx *Tx `protobuf:"bytes,1,opt,name=tx,proto3" json:"tx,omitempty"` 553 // tx_response is the queried TxResponses. 554 TxResponse *types.TxResponse `protobuf:"bytes,2,opt,name=tx_response,json=txResponse,proto3" json:"tx_response,omitempty"` 555 } 556 557 func (m *GetTxResponse) Reset() { *m = GetTxResponse{} } 558 func (m *GetTxResponse) String() string { return proto.CompactTextString(m) } 559 func (*GetTxResponse) ProtoMessage() {} 560 func (*GetTxResponse) Descriptor() ([]byte, []int) { 561 return fileDescriptor_e0b00a618705eca7, []int{7} 562 } 563 func (m *GetTxResponse) XXX_Unmarshal(b []byte) error { 564 return m.Unmarshal(b) 565 } 566 func (m *GetTxResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 567 if deterministic { 568 return xxx_messageInfo_GetTxResponse.Marshal(b, m, deterministic) 569 } else { 570 b = b[:cap(b)] 571 n, err := m.MarshalToSizedBuffer(b) 572 if err != nil { 573 return nil, err 574 } 575 return b[:n], nil 576 } 577 } 578 func (m *GetTxResponse) XXX_Merge(src proto.Message) { 579 xxx_messageInfo_GetTxResponse.Merge(m, src) 580 } 581 func (m *GetTxResponse) XXX_Size() int { 582 return m.Size() 583 } 584 func (m *GetTxResponse) XXX_DiscardUnknown() { 585 xxx_messageInfo_GetTxResponse.DiscardUnknown(m) 586 } 587 588 var xxx_messageInfo_GetTxResponse proto.InternalMessageInfo 589 590 func (m *GetTxResponse) GetTx() *Tx { 591 if m != nil { 592 return m.Tx 593 } 594 return nil 595 } 596 597 func (m *GetTxResponse) GetTxResponse() *types.TxResponse { 598 if m != nil { 599 return m.TxResponse 600 } 601 return nil 602 } 603 604 // GetBlockWithTxsRequest is the request type for the Service.GetBlockWithTxs 605 // RPC method. 606 // 607 // Since: cosmos-sdk 0.45.2 608 type GetBlockWithTxsRequest struct { 609 // height is the height of the block to query. 610 Height int64 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"` 611 // pagination defines a pagination for the request. 612 Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` 613 } 614 615 func (m *GetBlockWithTxsRequest) Reset() { *m = GetBlockWithTxsRequest{} } 616 func (m *GetBlockWithTxsRequest) String() string { return proto.CompactTextString(m) } 617 func (*GetBlockWithTxsRequest) ProtoMessage() {} 618 func (*GetBlockWithTxsRequest) Descriptor() ([]byte, []int) { 619 return fileDescriptor_e0b00a618705eca7, []int{8} 620 } 621 func (m *GetBlockWithTxsRequest) XXX_Unmarshal(b []byte) error { 622 return m.Unmarshal(b) 623 } 624 func (m *GetBlockWithTxsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 625 if deterministic { 626 return xxx_messageInfo_GetBlockWithTxsRequest.Marshal(b, m, deterministic) 627 } else { 628 b = b[:cap(b)] 629 n, err := m.MarshalToSizedBuffer(b) 630 if err != nil { 631 return nil, err 632 } 633 return b[:n], nil 634 } 635 } 636 func (m *GetBlockWithTxsRequest) XXX_Merge(src proto.Message) { 637 xxx_messageInfo_GetBlockWithTxsRequest.Merge(m, src) 638 } 639 func (m *GetBlockWithTxsRequest) XXX_Size() int { 640 return m.Size() 641 } 642 func (m *GetBlockWithTxsRequest) XXX_DiscardUnknown() { 643 xxx_messageInfo_GetBlockWithTxsRequest.DiscardUnknown(m) 644 } 645 646 var xxx_messageInfo_GetBlockWithTxsRequest proto.InternalMessageInfo 647 648 func (m *GetBlockWithTxsRequest) GetHeight() int64 { 649 if m != nil { 650 return m.Height 651 } 652 return 0 653 } 654 655 func (m *GetBlockWithTxsRequest) GetPagination() *query.PageRequest { 656 if m != nil { 657 return m.Pagination 658 } 659 return nil 660 } 661 662 // GetBlockWithTxsResponse is the response type for the Service.GetBlockWithTxs 663 // method. 664 // 665 // Since: cosmos-sdk 0.45.2 666 type GetBlockWithTxsResponse struct { 667 // txs are the transactions in the block. 668 Txs []*Tx `protobuf:"bytes,1,rep,name=txs,proto3" json:"txs,omitempty"` 669 BlockId *types1.BlockID `protobuf:"bytes,2,opt,name=block_id,json=blockId,proto3" json:"block_id,omitempty"` 670 Block *types1.Block `protobuf:"bytes,3,opt,name=block,proto3" json:"block,omitempty"` 671 // pagination defines a pagination for the response. 672 Pagination *query.PageResponse `protobuf:"bytes,4,opt,name=pagination,proto3" json:"pagination,omitempty"` 673 } 674 675 func (m *GetBlockWithTxsResponse) Reset() { *m = GetBlockWithTxsResponse{} } 676 func (m *GetBlockWithTxsResponse) String() string { return proto.CompactTextString(m) } 677 func (*GetBlockWithTxsResponse) ProtoMessage() {} 678 func (*GetBlockWithTxsResponse) Descriptor() ([]byte, []int) { 679 return fileDescriptor_e0b00a618705eca7, []int{9} 680 } 681 func (m *GetBlockWithTxsResponse) XXX_Unmarshal(b []byte) error { 682 return m.Unmarshal(b) 683 } 684 func (m *GetBlockWithTxsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 685 if deterministic { 686 return xxx_messageInfo_GetBlockWithTxsResponse.Marshal(b, m, deterministic) 687 } else { 688 b = b[:cap(b)] 689 n, err := m.MarshalToSizedBuffer(b) 690 if err != nil { 691 return nil, err 692 } 693 return b[:n], nil 694 } 695 } 696 func (m *GetBlockWithTxsResponse) XXX_Merge(src proto.Message) { 697 xxx_messageInfo_GetBlockWithTxsResponse.Merge(m, src) 698 } 699 func (m *GetBlockWithTxsResponse) XXX_Size() int { 700 return m.Size() 701 } 702 func (m *GetBlockWithTxsResponse) XXX_DiscardUnknown() { 703 xxx_messageInfo_GetBlockWithTxsResponse.DiscardUnknown(m) 704 } 705 706 var xxx_messageInfo_GetBlockWithTxsResponse proto.InternalMessageInfo 707 708 func (m *GetBlockWithTxsResponse) GetTxs() []*Tx { 709 if m != nil { 710 return m.Txs 711 } 712 return nil 713 } 714 715 func (m *GetBlockWithTxsResponse) GetBlockId() *types1.BlockID { 716 if m != nil { 717 return m.BlockId 718 } 719 return nil 720 } 721 722 func (m *GetBlockWithTxsResponse) GetBlock() *types1.Block { 723 if m != nil { 724 return m.Block 725 } 726 return nil 727 } 728 729 func (m *GetBlockWithTxsResponse) GetPagination() *query.PageResponse { 730 if m != nil { 731 return m.Pagination 732 } 733 return nil 734 } 735 736 // TxDecodeRequest is the request type for the Service.TxDecode 737 // RPC method. 738 // 739 // Since: cosmos-sdk 0.47 740 type TxDecodeRequest struct { 741 // tx_bytes is the raw transaction. 742 TxBytes []byte `protobuf:"bytes,1,opt,name=tx_bytes,json=txBytes,proto3" json:"tx_bytes,omitempty"` 743 } 744 745 func (m *TxDecodeRequest) Reset() { *m = TxDecodeRequest{} } 746 func (m *TxDecodeRequest) String() string { return proto.CompactTextString(m) } 747 func (*TxDecodeRequest) ProtoMessage() {} 748 func (*TxDecodeRequest) Descriptor() ([]byte, []int) { 749 return fileDescriptor_e0b00a618705eca7, []int{10} 750 } 751 func (m *TxDecodeRequest) XXX_Unmarshal(b []byte) error { 752 return m.Unmarshal(b) 753 } 754 func (m *TxDecodeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 755 if deterministic { 756 return xxx_messageInfo_TxDecodeRequest.Marshal(b, m, deterministic) 757 } else { 758 b = b[:cap(b)] 759 n, err := m.MarshalToSizedBuffer(b) 760 if err != nil { 761 return nil, err 762 } 763 return b[:n], nil 764 } 765 } 766 func (m *TxDecodeRequest) XXX_Merge(src proto.Message) { 767 xxx_messageInfo_TxDecodeRequest.Merge(m, src) 768 } 769 func (m *TxDecodeRequest) XXX_Size() int { 770 return m.Size() 771 } 772 func (m *TxDecodeRequest) XXX_DiscardUnknown() { 773 xxx_messageInfo_TxDecodeRequest.DiscardUnknown(m) 774 } 775 776 var xxx_messageInfo_TxDecodeRequest proto.InternalMessageInfo 777 778 func (m *TxDecodeRequest) GetTxBytes() []byte { 779 if m != nil { 780 return m.TxBytes 781 } 782 return nil 783 } 784 785 // TxDecodeResponse is the response type for the 786 // Service.TxDecode method. 787 // 788 // Since: cosmos-sdk 0.47 789 type TxDecodeResponse struct { 790 // tx is the decoded transaction. 791 Tx *Tx `protobuf:"bytes,1,opt,name=tx,proto3" json:"tx,omitempty"` 792 } 793 794 func (m *TxDecodeResponse) Reset() { *m = TxDecodeResponse{} } 795 func (m *TxDecodeResponse) String() string { return proto.CompactTextString(m) } 796 func (*TxDecodeResponse) ProtoMessage() {} 797 func (*TxDecodeResponse) Descriptor() ([]byte, []int) { 798 return fileDescriptor_e0b00a618705eca7, []int{11} 799 } 800 func (m *TxDecodeResponse) XXX_Unmarshal(b []byte) error { 801 return m.Unmarshal(b) 802 } 803 func (m *TxDecodeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 804 if deterministic { 805 return xxx_messageInfo_TxDecodeResponse.Marshal(b, m, deterministic) 806 } else { 807 b = b[:cap(b)] 808 n, err := m.MarshalToSizedBuffer(b) 809 if err != nil { 810 return nil, err 811 } 812 return b[:n], nil 813 } 814 } 815 func (m *TxDecodeResponse) XXX_Merge(src proto.Message) { 816 xxx_messageInfo_TxDecodeResponse.Merge(m, src) 817 } 818 func (m *TxDecodeResponse) XXX_Size() int { 819 return m.Size() 820 } 821 func (m *TxDecodeResponse) XXX_DiscardUnknown() { 822 xxx_messageInfo_TxDecodeResponse.DiscardUnknown(m) 823 } 824 825 var xxx_messageInfo_TxDecodeResponse proto.InternalMessageInfo 826 827 func (m *TxDecodeResponse) GetTx() *Tx { 828 if m != nil { 829 return m.Tx 830 } 831 return nil 832 } 833 834 // TxEncodeRequest is the request type for the Service.TxEncode 835 // RPC method. 836 // 837 // Since: cosmos-sdk 0.47 838 type TxEncodeRequest struct { 839 // tx is the transaction to encode. 840 Tx *Tx `protobuf:"bytes,1,opt,name=tx,proto3" json:"tx,omitempty"` 841 } 842 843 func (m *TxEncodeRequest) Reset() { *m = TxEncodeRequest{} } 844 func (m *TxEncodeRequest) String() string { return proto.CompactTextString(m) } 845 func (*TxEncodeRequest) ProtoMessage() {} 846 func (*TxEncodeRequest) Descriptor() ([]byte, []int) { 847 return fileDescriptor_e0b00a618705eca7, []int{12} 848 } 849 func (m *TxEncodeRequest) XXX_Unmarshal(b []byte) error { 850 return m.Unmarshal(b) 851 } 852 func (m *TxEncodeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 853 if deterministic { 854 return xxx_messageInfo_TxEncodeRequest.Marshal(b, m, deterministic) 855 } else { 856 b = b[:cap(b)] 857 n, err := m.MarshalToSizedBuffer(b) 858 if err != nil { 859 return nil, err 860 } 861 return b[:n], nil 862 } 863 } 864 func (m *TxEncodeRequest) XXX_Merge(src proto.Message) { 865 xxx_messageInfo_TxEncodeRequest.Merge(m, src) 866 } 867 func (m *TxEncodeRequest) XXX_Size() int { 868 return m.Size() 869 } 870 func (m *TxEncodeRequest) XXX_DiscardUnknown() { 871 xxx_messageInfo_TxEncodeRequest.DiscardUnknown(m) 872 } 873 874 var xxx_messageInfo_TxEncodeRequest proto.InternalMessageInfo 875 876 func (m *TxEncodeRequest) GetTx() *Tx { 877 if m != nil { 878 return m.Tx 879 } 880 return nil 881 } 882 883 // TxEncodeResponse is the response type for the 884 // Service.TxEncode method. 885 // 886 // Since: cosmos-sdk 0.47 887 type TxEncodeResponse struct { 888 // tx_bytes is the encoded transaction bytes. 889 TxBytes []byte `protobuf:"bytes,1,opt,name=tx_bytes,json=txBytes,proto3" json:"tx_bytes,omitempty"` 890 } 891 892 func (m *TxEncodeResponse) Reset() { *m = TxEncodeResponse{} } 893 func (m *TxEncodeResponse) String() string { return proto.CompactTextString(m) } 894 func (*TxEncodeResponse) ProtoMessage() {} 895 func (*TxEncodeResponse) Descriptor() ([]byte, []int) { 896 return fileDescriptor_e0b00a618705eca7, []int{13} 897 } 898 func (m *TxEncodeResponse) XXX_Unmarshal(b []byte) error { 899 return m.Unmarshal(b) 900 } 901 func (m *TxEncodeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 902 if deterministic { 903 return xxx_messageInfo_TxEncodeResponse.Marshal(b, m, deterministic) 904 } else { 905 b = b[:cap(b)] 906 n, err := m.MarshalToSizedBuffer(b) 907 if err != nil { 908 return nil, err 909 } 910 return b[:n], nil 911 } 912 } 913 func (m *TxEncodeResponse) XXX_Merge(src proto.Message) { 914 xxx_messageInfo_TxEncodeResponse.Merge(m, src) 915 } 916 func (m *TxEncodeResponse) XXX_Size() int { 917 return m.Size() 918 } 919 func (m *TxEncodeResponse) XXX_DiscardUnknown() { 920 xxx_messageInfo_TxEncodeResponse.DiscardUnknown(m) 921 } 922 923 var xxx_messageInfo_TxEncodeResponse proto.InternalMessageInfo 924 925 func (m *TxEncodeResponse) GetTxBytes() []byte { 926 if m != nil { 927 return m.TxBytes 928 } 929 return nil 930 } 931 932 // TxEncodeAminoRequest is the request type for the Service.TxEncodeAmino 933 // RPC method. 934 // 935 // Since: cosmos-sdk 0.47 936 type TxEncodeAminoRequest struct { 937 AminoJson string `protobuf:"bytes,1,opt,name=amino_json,json=aminoJson,proto3" json:"amino_json,omitempty"` 938 } 939 940 func (m *TxEncodeAminoRequest) Reset() { *m = TxEncodeAminoRequest{} } 941 func (m *TxEncodeAminoRequest) String() string { return proto.CompactTextString(m) } 942 func (*TxEncodeAminoRequest) ProtoMessage() {} 943 func (*TxEncodeAminoRequest) Descriptor() ([]byte, []int) { 944 return fileDescriptor_e0b00a618705eca7, []int{14} 945 } 946 func (m *TxEncodeAminoRequest) XXX_Unmarshal(b []byte) error { 947 return m.Unmarshal(b) 948 } 949 func (m *TxEncodeAminoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 950 if deterministic { 951 return xxx_messageInfo_TxEncodeAminoRequest.Marshal(b, m, deterministic) 952 } else { 953 b = b[:cap(b)] 954 n, err := m.MarshalToSizedBuffer(b) 955 if err != nil { 956 return nil, err 957 } 958 return b[:n], nil 959 } 960 } 961 func (m *TxEncodeAminoRequest) XXX_Merge(src proto.Message) { 962 xxx_messageInfo_TxEncodeAminoRequest.Merge(m, src) 963 } 964 func (m *TxEncodeAminoRequest) XXX_Size() int { 965 return m.Size() 966 } 967 func (m *TxEncodeAminoRequest) XXX_DiscardUnknown() { 968 xxx_messageInfo_TxEncodeAminoRequest.DiscardUnknown(m) 969 } 970 971 var xxx_messageInfo_TxEncodeAminoRequest proto.InternalMessageInfo 972 973 func (m *TxEncodeAminoRequest) GetAminoJson() string { 974 if m != nil { 975 return m.AminoJson 976 } 977 return "" 978 } 979 980 // TxEncodeAminoResponse is the response type for the Service.TxEncodeAmino 981 // RPC method. 982 // 983 // Since: cosmos-sdk 0.47 984 type TxEncodeAminoResponse struct { 985 AminoBinary []byte `protobuf:"bytes,1,opt,name=amino_binary,json=aminoBinary,proto3" json:"amino_binary,omitempty"` 986 } 987 988 func (m *TxEncodeAminoResponse) Reset() { *m = TxEncodeAminoResponse{} } 989 func (m *TxEncodeAminoResponse) String() string { return proto.CompactTextString(m) } 990 func (*TxEncodeAminoResponse) ProtoMessage() {} 991 func (*TxEncodeAminoResponse) Descriptor() ([]byte, []int) { 992 return fileDescriptor_e0b00a618705eca7, []int{15} 993 } 994 func (m *TxEncodeAminoResponse) XXX_Unmarshal(b []byte) error { 995 return m.Unmarshal(b) 996 } 997 func (m *TxEncodeAminoResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 998 if deterministic { 999 return xxx_messageInfo_TxEncodeAminoResponse.Marshal(b, m, deterministic) 1000 } else { 1001 b = b[:cap(b)] 1002 n, err := m.MarshalToSizedBuffer(b) 1003 if err != nil { 1004 return nil, err 1005 } 1006 return b[:n], nil 1007 } 1008 } 1009 func (m *TxEncodeAminoResponse) XXX_Merge(src proto.Message) { 1010 xxx_messageInfo_TxEncodeAminoResponse.Merge(m, src) 1011 } 1012 func (m *TxEncodeAminoResponse) XXX_Size() int { 1013 return m.Size() 1014 } 1015 func (m *TxEncodeAminoResponse) XXX_DiscardUnknown() { 1016 xxx_messageInfo_TxEncodeAminoResponse.DiscardUnknown(m) 1017 } 1018 1019 var xxx_messageInfo_TxEncodeAminoResponse proto.InternalMessageInfo 1020 1021 func (m *TxEncodeAminoResponse) GetAminoBinary() []byte { 1022 if m != nil { 1023 return m.AminoBinary 1024 } 1025 return nil 1026 } 1027 1028 // TxDecodeAminoRequest is the request type for the Service.TxDecodeAmino 1029 // RPC method. 1030 // 1031 // Since: cosmos-sdk 0.47 1032 type TxDecodeAminoRequest struct { 1033 AminoBinary []byte `protobuf:"bytes,1,opt,name=amino_binary,json=aminoBinary,proto3" json:"amino_binary,omitempty"` 1034 } 1035 1036 func (m *TxDecodeAminoRequest) Reset() { *m = TxDecodeAminoRequest{} } 1037 func (m *TxDecodeAminoRequest) String() string { return proto.CompactTextString(m) } 1038 func (*TxDecodeAminoRequest) ProtoMessage() {} 1039 func (*TxDecodeAminoRequest) Descriptor() ([]byte, []int) { 1040 return fileDescriptor_e0b00a618705eca7, []int{16} 1041 } 1042 func (m *TxDecodeAminoRequest) XXX_Unmarshal(b []byte) error { 1043 return m.Unmarshal(b) 1044 } 1045 func (m *TxDecodeAminoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1046 if deterministic { 1047 return xxx_messageInfo_TxDecodeAminoRequest.Marshal(b, m, deterministic) 1048 } else { 1049 b = b[:cap(b)] 1050 n, err := m.MarshalToSizedBuffer(b) 1051 if err != nil { 1052 return nil, err 1053 } 1054 return b[:n], nil 1055 } 1056 } 1057 func (m *TxDecodeAminoRequest) XXX_Merge(src proto.Message) { 1058 xxx_messageInfo_TxDecodeAminoRequest.Merge(m, src) 1059 } 1060 func (m *TxDecodeAminoRequest) XXX_Size() int { 1061 return m.Size() 1062 } 1063 func (m *TxDecodeAminoRequest) XXX_DiscardUnknown() { 1064 xxx_messageInfo_TxDecodeAminoRequest.DiscardUnknown(m) 1065 } 1066 1067 var xxx_messageInfo_TxDecodeAminoRequest proto.InternalMessageInfo 1068 1069 func (m *TxDecodeAminoRequest) GetAminoBinary() []byte { 1070 if m != nil { 1071 return m.AminoBinary 1072 } 1073 return nil 1074 } 1075 1076 // TxDecodeAminoResponse is the response type for the Service.TxDecodeAmino 1077 // RPC method. 1078 // 1079 // Since: cosmos-sdk 0.47 1080 type TxDecodeAminoResponse struct { 1081 AminoJson string `protobuf:"bytes,1,opt,name=amino_json,json=aminoJson,proto3" json:"amino_json,omitempty"` 1082 } 1083 1084 func (m *TxDecodeAminoResponse) Reset() { *m = TxDecodeAminoResponse{} } 1085 func (m *TxDecodeAminoResponse) String() string { return proto.CompactTextString(m) } 1086 func (*TxDecodeAminoResponse) ProtoMessage() {} 1087 func (*TxDecodeAminoResponse) Descriptor() ([]byte, []int) { 1088 return fileDescriptor_e0b00a618705eca7, []int{17} 1089 } 1090 func (m *TxDecodeAminoResponse) XXX_Unmarshal(b []byte) error { 1091 return m.Unmarshal(b) 1092 } 1093 func (m *TxDecodeAminoResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1094 if deterministic { 1095 return xxx_messageInfo_TxDecodeAminoResponse.Marshal(b, m, deterministic) 1096 } else { 1097 b = b[:cap(b)] 1098 n, err := m.MarshalToSizedBuffer(b) 1099 if err != nil { 1100 return nil, err 1101 } 1102 return b[:n], nil 1103 } 1104 } 1105 func (m *TxDecodeAminoResponse) XXX_Merge(src proto.Message) { 1106 xxx_messageInfo_TxDecodeAminoResponse.Merge(m, src) 1107 } 1108 func (m *TxDecodeAminoResponse) XXX_Size() int { 1109 return m.Size() 1110 } 1111 func (m *TxDecodeAminoResponse) XXX_DiscardUnknown() { 1112 xxx_messageInfo_TxDecodeAminoResponse.DiscardUnknown(m) 1113 } 1114 1115 var xxx_messageInfo_TxDecodeAminoResponse proto.InternalMessageInfo 1116 1117 func (m *TxDecodeAminoResponse) GetAminoJson() string { 1118 if m != nil { 1119 return m.AminoJson 1120 } 1121 return "" 1122 } 1123 1124 func init() { 1125 proto.RegisterEnum("cosmos.tx.v1beta1.OrderBy", OrderBy_name, OrderBy_value) 1126 proto.RegisterEnum("cosmos.tx.v1beta1.BroadcastMode", BroadcastMode_name, BroadcastMode_value) 1127 proto.RegisterType((*GetTxsEventRequest)(nil), "cosmos.tx.v1beta1.GetTxsEventRequest") 1128 proto.RegisterType((*GetTxsEventResponse)(nil), "cosmos.tx.v1beta1.GetTxsEventResponse") 1129 proto.RegisterType((*BroadcastTxRequest)(nil), "cosmos.tx.v1beta1.BroadcastTxRequest") 1130 proto.RegisterType((*BroadcastTxResponse)(nil), "cosmos.tx.v1beta1.BroadcastTxResponse") 1131 proto.RegisterType((*SimulateRequest)(nil), "cosmos.tx.v1beta1.SimulateRequest") 1132 proto.RegisterType((*SimulateResponse)(nil), "cosmos.tx.v1beta1.SimulateResponse") 1133 proto.RegisterType((*GetTxRequest)(nil), "cosmos.tx.v1beta1.GetTxRequest") 1134 proto.RegisterType((*GetTxResponse)(nil), "cosmos.tx.v1beta1.GetTxResponse") 1135 proto.RegisterType((*GetBlockWithTxsRequest)(nil), "cosmos.tx.v1beta1.GetBlockWithTxsRequest") 1136 proto.RegisterType((*GetBlockWithTxsResponse)(nil), "cosmos.tx.v1beta1.GetBlockWithTxsResponse") 1137 proto.RegisterType((*TxDecodeRequest)(nil), "cosmos.tx.v1beta1.TxDecodeRequest") 1138 proto.RegisterType((*TxDecodeResponse)(nil), "cosmos.tx.v1beta1.TxDecodeResponse") 1139 proto.RegisterType((*TxEncodeRequest)(nil), "cosmos.tx.v1beta1.TxEncodeRequest") 1140 proto.RegisterType((*TxEncodeResponse)(nil), "cosmos.tx.v1beta1.TxEncodeResponse") 1141 proto.RegisterType((*TxEncodeAminoRequest)(nil), "cosmos.tx.v1beta1.TxEncodeAminoRequest") 1142 proto.RegisterType((*TxEncodeAminoResponse)(nil), "cosmos.tx.v1beta1.TxEncodeAminoResponse") 1143 proto.RegisterType((*TxDecodeAminoRequest)(nil), "cosmos.tx.v1beta1.TxDecodeAminoRequest") 1144 proto.RegisterType((*TxDecodeAminoResponse)(nil), "cosmos.tx.v1beta1.TxDecodeAminoResponse") 1145 } 1146 1147 func init() { proto.RegisterFile("cosmos/tx/v1beta1/service.proto", fileDescriptor_e0b00a618705eca7) } 1148 1149 var fileDescriptor_e0b00a618705eca7 = []byte{ 1150 // 1237 bytes of a gzipped FileDescriptorProto 1151 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x57, 0x4d, 0x4f, 0x1b, 0x47, 1152 0x18, 0x66, 0x6d, 0x83, 0xcd, 0x6b, 0x08, 0xce, 0x40, 0xc0, 0x38, 0xc4, 0x98, 0x0d, 0x1f, 0x8e, 1153 0x55, 0xbc, 0x0a, 0x4d, 0xaa, 0x24, 0xaa, 0x54, 0xe1, 0x8f, 0x50, 0x92, 0x26, 0x44, 0x6b, 0xaa, 1154 0x28, 0x55, 0x25, 0x6b, 0x6d, 0x4f, 0xec, 0x6d, 0xec, 0x5d, 0xe3, 0x19, 0xd0, 0x5a, 0x14, 0xb5, 1155 0xea, 0xb1, 0x87, 0xaa, 0x52, 0x0f, 0xfd, 0x0f, 0xfd, 0x25, 0x3d, 0x46, 0xea, 0xa5, 0xc7, 0x0a, 1156 0x7a, 0xea, 0xa9, 0x52, 0xff, 0x40, 0xb5, 0x33, 0xb3, 0xb6, 0xd7, 0xde, 0xc5, 0x90, 0x0b, 0xcc, 1157 0xc7, 0xf3, 0xbe, 0xcf, 0x33, 0xef, 0xcc, 0x3c, 0x3b, 0x86, 0xd5, 0xaa, 0x49, 0x5a, 0x26, 0x51, 1158 0xa8, 0xa5, 0x9c, 0xdc, 0xaf, 0x60, 0xaa, 0xdd, 0x57, 0x08, 0xee, 0x9c, 0xe8, 0x55, 0x9c, 0x6d, 1159 0x77, 0x4c, 0x6a, 0xa2, 0x9b, 0x1c, 0x90, 0xa5, 0x56, 0x56, 0x00, 0x12, 0x2b, 0x75, 0xd3, 0xac, 1160 0x37, 0xb1, 0xa2, 0xb5, 0x75, 0x45, 0x33, 0x0c, 0x93, 0x6a, 0x54, 0x37, 0x0d, 0xc2, 0x03, 0x12, 1161 0x77, 0x45, 0xc6, 0x8a, 0x46, 0xb0, 0xa2, 0x55, 0xaa, 0x7a, 0x2f, 0xb1, 0xdd, 0x11, 0xa0, 0xc4, 1162 0x28, 0x2d, 0xb5, 0xc4, 0x5c, 0x66, 0x30, 0xc1, 0xd1, 0x31, 0xee, 0x74, 0x7b, 0x98, 0xb6, 0x56, 1163 0xd7, 0x0d, 0xc6, 0x26, 0xb0, 0x2b, 0x14, 0x1b, 0x35, 0xdc, 0x69, 0xe9, 0x06, 0x55, 0x68, 0xb7, 1164 0x8d, 0x89, 0x52, 0x69, 0x9a, 0xd5, 0x77, 0xbe, 0xb3, 0xec, 0x2f, 0x9f, 0x95, 0xff, 0x93, 0x00, 1165 0xed, 0x61, 0x7a, 0x68, 0x91, 0xe2, 0x09, 0x36, 0xa8, 0x8a, 0x8f, 0x8e, 0x31, 0xa1, 0x28, 0x01, 1166 0x53, 0xd8, 0xee, 0x93, 0xb8, 0x94, 0x0a, 0xa6, 0xa7, 0x73, 0x81, 0xb8, 0xa4, 0x8a, 0x11, 0xf4, 1167 0x0c, 0xa0, 0x2f, 0x21, 0x1e, 0x48, 0x49, 0xe9, 0xe8, 0xce, 0x66, 0x56, 0x54, 0xc8, 0xd6, 0x9b, 1168 0x65, 0x7a, 0x9d, 0x4a, 0x65, 0x5f, 0x69, 0x75, 0x2c, 0xf2, 0xb2, 0x3c, 0x03, 0xd1, 0xe8, 0x21, 1169 0x44, 0xcc, 0x4e, 0x0d, 0x77, 0xca, 0x95, 0x6e, 0x3c, 0x98, 0x92, 0xd2, 0x37, 0x76, 0x12, 0xd9, 1170 0x91, 0x5a, 0x67, 0x0f, 0x6c, 0x48, 0xae, 0xab, 0x86, 0x4d, 0xde, 0x40, 0x08, 0x42, 0x6d, 0xad, 1171 0x8e, 0xe3, 0xa1, 0x94, 0x94, 0x0e, 0xa9, 0xac, 0x8d, 0x16, 0x60, 0xb2, 0xa9, 0xb7, 0x74, 0x1a, 1172 0x9f, 0x64, 0x83, 0xbc, 0x63, 0x8f, 0x32, 0x35, 0xf1, 0xa9, 0x94, 0x94, 0x9e, 0x56, 0x79, 0x47, 1173 0xfe, 0x47, 0x82, 0x79, 0xd7, 0xaa, 0x49, 0xdb, 0x34, 0x08, 0x46, 0x5b, 0x10, 0xa4, 0x16, 0x5f, 1174 0x73, 0x74, 0xe7, 0x96, 0x87, 0x92, 0x43, 0x4b, 0xb5, 0x11, 0x68, 0x0f, 0x66, 0xa8, 0x55, 0xee, 1175 0x88, 0x38, 0x12, 0x0f, 0xb0, 0x88, 0x75, 0x57, 0x15, 0xd8, 0x4e, 0x0f, 0x04, 0x0a, 0xb0, 0x1a, 1176 0xa5, 0xbd, 0x36, 0x41, 0xcf, 0x5d, 0xc5, 0x0c, 0xb2, 0x62, 0x6e, 0x8d, 0x2d, 0x26, 0x8f, 0x1e, 1177 0xa9, 0xe6, 0x02, 0x4c, 0x52, 0x93, 0x6a, 0x4d, 0x51, 0x17, 0xde, 0x91, 0x31, 0xa0, 0x5c, 0xc7, 1178 0xd4, 0x6a, 0x55, 0x8d, 0x50, 0x5b, 0x06, 0xdf, 0xe1, 0x65, 0x88, 0x50, 0xab, 0x5c, 0xe9, 0x52, 1179 0x6c, 0xaf, 0x57, 0x4a, 0xcf, 0xa8, 0x61, 0x6a, 0xe5, 0xec, 0x2e, 0x7a, 0x00, 0xa1, 0x96, 0x59, 1180 0xc3, 0x6c, 0x6b, 0x6f, 0xec, 0xa4, 0x3c, 0xca, 0xd0, 0xcb, 0xf7, 0xc2, 0xac, 0x61, 0x95, 0xa1, 1181 0xe5, 0xaf, 0x61, 0xde, 0x45, 0x23, 0x4a, 0x5a, 0x84, 0xe8, 0x40, 0xa5, 0x18, 0xd5, 0x55, 0x0b, 1182 0x05, 0xfd, 0x42, 0xc9, 0xaf, 0x61, 0xae, 0xa4, 0xb7, 0x8e, 0x9b, 0x1a, 0x75, 0xce, 0x12, 0xba, 1183 0x07, 0x01, 0x6a, 0x89, 0x84, 0xde, 0x7b, 0xc5, 0x0a, 0x14, 0xa0, 0x96, 0x6b, 0xb1, 0x01, 0xd7, 1184 0x62, 0xe5, 0x1f, 0x25, 0x88, 0xf5, 0x33, 0x0b, 0xd1, 0x9f, 0x42, 0xa4, 0xae, 0x91, 0xb2, 0x6e, 1185 0xbc, 0x35, 0x05, 0xc1, 0x9a, 0xbf, 0xe2, 0x3d, 0x8d, 0xec, 0x1b, 0x6f, 0x4d, 0x35, 0x5c, 0xe7, 1186 0x0d, 0xf4, 0x08, 0xa6, 0x3a, 0x98, 0x1c, 0x37, 0xa9, 0xb8, 0x1c, 0x29, 0xff, 0x58, 0x95, 0xe1, 1187 0x54, 0x81, 0x97, 0x65, 0x98, 0x61, 0xc7, 0xd2, 0x59, 0x22, 0x82, 0x50, 0x43, 0x23, 0x0d, 0xa6, 1188 0x61, 0x5a, 0x65, 0x6d, 0xf9, 0x0c, 0x66, 0x05, 0x46, 0x88, 0xdd, 0x18, 0x5b, 0x07, 0x56, 0x83, 1189 0xa1, 0x8d, 0x08, 0x7c, 0xe0, 0x46, 0x58, 0xb0, 0xb8, 0x87, 0x69, 0xce, 0x36, 0x98, 0xd7, 0x3a, 1190 0x6d, 0x1c, 0x5a, 0xc4, 0x11, 0xbb, 0x08, 0x53, 0x0d, 0xac, 0xd7, 0x1b, 0x94, 0x69, 0x09, 0xaa, 1191 0xa2, 0x87, 0x9e, 0x7e, 0xb8, 0x5f, 0x0c, 0x9e, 0x6e, 0xf9, 0x5f, 0x09, 0x96, 0x46, 0xa8, 0xaf, 1192 0x7b, 0x71, 0x1f, 0x40, 0x84, 0x99, 0x63, 0x59, 0xaf, 0x09, 0x29, 0xcb, 0xd9, 0xbe, 0x41, 0x66, 1193 0xb9, 0x35, 0x32, 0x8a, 0xfd, 0x82, 0x1a, 0x66, 0xd0, 0xfd, 0x1a, 0xda, 0x86, 0x49, 0xd6, 0x14, 1194 0x17, 0x74, 0xc9, 0x27, 0x44, 0xe5, 0x28, 0xb4, 0xe7, 0x5a, 0x71, 0xe8, 0x5a, 0x97, 0xda, 0xb5, 1195 0xe4, 0x8f, 0x60, 0xee, 0xd0, 0x2a, 0xe0, 0xaa, 0x7d, 0xcb, 0xc6, 0xde, 0x5b, 0xf9, 0x31, 0xc4, 1196 0xfa, 0xe8, 0x6b, 0x1d, 0x0e, 0xf9, 0x91, 0x4d, 0x54, 0x34, 0x06, 0x89, 0xae, 0x18, 0xb9, 0x6d, 1197 0x93, 0x3a, 0x91, 0x82, 0xf4, 0x12, 0x8d, 0x0f, 0x61, 0xc1, 0x81, 0xef, 0xb6, 0x74, 0xc3, 0x74, 1198 0xd8, 0xee, 0x00, 0x68, 0x76, 0xbf, 0xfc, 0x0d, 0x31, 0x0d, 0x71, 0xde, 0xa7, 0xd9, 0xc8, 0x33, 1199 0x62, 0x1a, 0xf2, 0x13, 0xb8, 0x35, 0x14, 0x26, 0xa8, 0xd6, 0x60, 0x86, 0xc7, 0x55, 0x74, 0x43, 1200 0xeb, 0x74, 0x05, 0x5d, 0x94, 0x8d, 0xe5, 0xd8, 0x90, 0xfc, 0xd8, 0xa6, 0xe4, 0x65, 0x71, 0x51, 1201 0x5e, 0x21, 0xf4, 0x13, 0x9b, 0xd6, 0x15, 0x2a, 0x68, 0x2f, 0x97, 0x9b, 0xf9, 0x1c, 0xc2, 0xe2, 1202 0x9b, 0x85, 0xe2, 0xb0, 0x70, 0xa0, 0x16, 0x8a, 0x6a, 0x39, 0xf7, 0xa6, 0xfc, 0xe5, 0xcb, 0xd2, 1203 0xab, 0x62, 0x7e, 0xff, 0xe9, 0x7e, 0xb1, 0x10, 0x9b, 0x40, 0x31, 0x98, 0xe9, 0xcd, 0xec, 0x96, 1204 0xf2, 0x31, 0x09, 0xdd, 0x84, 0xd9, 0xde, 0x48, 0xa1, 0x58, 0xca, 0xc7, 0x02, 0x99, 0xef, 0x25, 1205 0x98, 0x75, 0xb9, 0x2d, 0x4a, 0x42, 0x22, 0xa7, 0x1e, 0xec, 0x16, 0xf2, 0xbb, 0xa5, 0xc3, 0xf2, 1206 0x8b, 0x83, 0x42, 0x71, 0x28, 0xed, 0x0a, 0x2c, 0x0c, 0xcd, 0xe7, 0xbe, 0x38, 0xc8, 0x3f, 0x8f, 1207 0x49, 0x89, 0x40, 0x44, 0x42, 0x4b, 0x30, 0x3f, 0x34, 0x5b, 0x7a, 0xf3, 0x32, 0x1f, 0x0b, 0xd8, 1208 0x3a, 0x87, 0x26, 0x76, 0xd9, 0x4c, 0x70, 0xe7, 0xb7, 0x69, 0x08, 0x97, 0xf8, 0x73, 0x08, 0x9d, 1209 0x42, 0xc4, 0x31, 0x4b, 0x24, 0x7b, 0x1c, 0x8a, 0x21, 0x8f, 0x4e, 0xdc, 0xbd, 0x14, 0x23, 0x2c, 1210 0x65, 0xf3, 0x87, 0x3f, 0xfe, 0xfe, 0x25, 0x90, 0x7a, 0x22, 0x65, 0xe4, 0xdb, 0x8a, 0xc7, 0x53, 1211 0xcc, 0x21, 0x3c, 0x82, 0x49, 0xe6, 0x7c, 0x68, 0xd5, 0x23, 0xeb, 0xa0, 0x6f, 0x26, 0x52, 0xfe, 1212 0x00, 0xc1, 0xb9, 0xc1, 0x38, 0x57, 0xd1, 0x1d, 0xc5, 0xeb, 0x11, 0x46, 0x94, 0x53, 0xdb, 0x6b, 1213 0xcf, 0xd0, 0x77, 0x10, 0x1d, 0xf8, 0xa8, 0xa1, 0x8d, 0xcb, 0xbe, 0x85, 0x7d, 0xfa, 0xcd, 0x71, 1214 0x30, 0x21, 0x62, 0x8d, 0x89, 0xb8, 0x6d, 0x2f, 0x7c, 0xd1, 0x5b, 0x07, 0xfa, 0x16, 0xa2, 0x03, 1215 0x0f, 0x15, 0x4f, 0x01, 0xa3, 0xcf, 0x37, 0x4f, 0x01, 0x1e, 0xef, 0x1d, 0x39, 0xc9, 0x04, 0xc4, 1216 0x91, 0x1f, 0xfb, 0xaf, 0x12, 0xcc, 0x0d, 0x59, 0x2e, 0xba, 0xe7, 0x9d, 0xdb, 0xe3, 0x8b, 0x90, 1217 0xc8, 0x5c, 0x05, 0x2a, 0xa4, 0x6c, 0x33, 0x29, 0x5b, 0x68, 0xc3, 0x67, 0x43, 0x98, 0xb3, 0x2a, 1218 0xa7, 0xfc, 0x9b, 0x72, 0x86, 0xba, 0x10, 0x71, 0x6e, 0xa6, 0xe7, 0x41, 0x1c, 0xb2, 0x4d, 0xcf, 1219 0x83, 0x38, 0x6c, 0x96, 0xf2, 0x3a, 0xd3, 0x90, 0xb4, 0xf7, 0x63, 0xd9, 0x43, 0x46, 0x8d, 0xd3, 1220 0x31, 0x6a, 0xee, 0x45, 0x3e, 0xd4, 0x2e, 0x23, 0xf5, 0xa1, 0x76, 0x5b, 0xe6, 0x38, 0x6a, 0xcc, 1221 0xe9, 0x7e, 0x92, 0x60, 0xd6, 0xe5, 0x83, 0x68, 0xeb, 0x92, 0xe4, 0x83, 0x6e, 0x97, 0x48, 0x8f, 1222 0x07, 0x0a, 0x29, 0x19, 0x26, 0x65, 0xdd, 0x96, 0xb2, 0xea, 0x2b, 0x45, 0x61, 0x66, 0x27, 0x04, 1223 0x0d, 0x38, 0xa4, 0x8f, 0xa0, 0x51, 0xfb, 0xf5, 0x11, 0xe4, 0x61, 0xb6, 0xe3, 0x04, 0xf1, 0x6d, 1224 0xe1, 0x82, 0x72, 0x9f, 0xfd, 0x7e, 0x9e, 0x94, 0xde, 0x9f, 0x27, 0xa5, 0xbf, 0xce, 0x93, 0xd2, 1225 0xcf, 0x17, 0xc9, 0x89, 0xf7, 0x17, 0xc9, 0x89, 0x3f, 0x2f, 0x92, 0x13, 0x5f, 0x6d, 0xd4, 0x75, 1226 0xda, 0x38, 0xae, 0x64, 0xab, 0x66, 0xcb, 0x49, 0xc2, 0xff, 0x6d, 0x93, 0xda, 0x3b, 0xe7, 0x97, 1227 0x91, 0x55, 0x99, 0x62, 0xbf, 0x8b, 0x3e, 0xfe, 0x3f, 0x00, 0x00, 0xff, 0xff, 0x42, 0xa8, 0xd7, 1228 0x97, 0x14, 0x0e, 0x00, 0x00, 1229 } 1230 1231 // Reference imports to suppress errors if they are not otherwise used. 1232 var _ context.Context 1233 var _ grpc.ClientConn 1234 1235 // This is a compile-time assertion to ensure that this generated file 1236 // is compatible with the grpc package it is being compiled against. 1237 const _ = grpc.SupportPackageIsVersion4 1238 1239 // ServiceClient is the client API for Service service. 1240 // 1241 // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. 1242 type ServiceClient interface { 1243 // Simulate simulates executing a transaction for estimating gas usage. 1244 Simulate(ctx context.Context, in *SimulateRequest, opts ...grpc.CallOption) (*SimulateResponse, error) 1245 // GetTx fetches a tx by hash. 1246 GetTx(ctx context.Context, in *GetTxRequest, opts ...grpc.CallOption) (*GetTxResponse, error) 1247 // BroadcastTx broadcast transaction. 1248 BroadcastTx(ctx context.Context, in *BroadcastTxRequest, opts ...grpc.CallOption) (*BroadcastTxResponse, error) 1249 // GetTxsEvent fetches txs by event. 1250 GetTxsEvent(ctx context.Context, in *GetTxsEventRequest, opts ...grpc.CallOption) (*GetTxsEventResponse, error) 1251 // GetBlockWithTxs fetches a block with decoded txs. 1252 // 1253 // Since: cosmos-sdk 0.45.2 1254 GetBlockWithTxs(ctx context.Context, in *GetBlockWithTxsRequest, opts ...grpc.CallOption) (*GetBlockWithTxsResponse, error) 1255 // TxDecode decodes the transaction. 1256 // 1257 // Since: cosmos-sdk 0.47 1258 TxDecode(ctx context.Context, in *TxDecodeRequest, opts ...grpc.CallOption) (*TxDecodeResponse, error) 1259 // TxEncode encodes the transaction. 1260 // 1261 // Since: cosmos-sdk 0.47 1262 TxEncode(ctx context.Context, in *TxEncodeRequest, opts ...grpc.CallOption) (*TxEncodeResponse, error) 1263 // TxEncodeAmino encodes an Amino transaction from JSON to encoded bytes. 1264 // 1265 // Since: cosmos-sdk 0.47 1266 TxEncodeAmino(ctx context.Context, in *TxEncodeAminoRequest, opts ...grpc.CallOption) (*TxEncodeAminoResponse, error) 1267 // TxDecodeAmino decodes an Amino transaction from encoded bytes to JSON. 1268 // 1269 // Since: cosmos-sdk 0.47 1270 TxDecodeAmino(ctx context.Context, in *TxDecodeAminoRequest, opts ...grpc.CallOption) (*TxDecodeAminoResponse, error) 1271 } 1272 1273 type serviceClient struct { 1274 cc grpc1.ClientConn 1275 } 1276 1277 func NewServiceClient(cc grpc1.ClientConn) ServiceClient { 1278 return &serviceClient{cc} 1279 } 1280 1281 func (c *serviceClient) Simulate(ctx context.Context, in *SimulateRequest, opts ...grpc.CallOption) (*SimulateResponse, error) { 1282 out := new(SimulateResponse) 1283 err := c.cc.Invoke(ctx, "/cosmos.tx.v1beta1.Service/Simulate", in, out, opts...) 1284 if err != nil { 1285 return nil, err 1286 } 1287 return out, nil 1288 } 1289 1290 func (c *serviceClient) GetTx(ctx context.Context, in *GetTxRequest, opts ...grpc.CallOption) (*GetTxResponse, error) { 1291 out := new(GetTxResponse) 1292 err := c.cc.Invoke(ctx, "/cosmos.tx.v1beta1.Service/GetTx", in, out, opts...) 1293 if err != nil { 1294 return nil, err 1295 } 1296 return out, nil 1297 } 1298 1299 func (c *serviceClient) BroadcastTx(ctx context.Context, in *BroadcastTxRequest, opts ...grpc.CallOption) (*BroadcastTxResponse, error) { 1300 out := new(BroadcastTxResponse) 1301 err := c.cc.Invoke(ctx, "/cosmos.tx.v1beta1.Service/BroadcastTx", in, out, opts...) 1302 if err != nil { 1303 return nil, err 1304 } 1305 return out, nil 1306 } 1307 1308 func (c *serviceClient) GetTxsEvent(ctx context.Context, in *GetTxsEventRequest, opts ...grpc.CallOption) (*GetTxsEventResponse, error) { 1309 out := new(GetTxsEventResponse) 1310 err := c.cc.Invoke(ctx, "/cosmos.tx.v1beta1.Service/GetTxsEvent", in, out, opts...) 1311 if err != nil { 1312 return nil, err 1313 } 1314 return out, nil 1315 } 1316 1317 func (c *serviceClient) GetBlockWithTxs(ctx context.Context, in *GetBlockWithTxsRequest, opts ...grpc.CallOption) (*GetBlockWithTxsResponse, error) { 1318 out := new(GetBlockWithTxsResponse) 1319 err := c.cc.Invoke(ctx, "/cosmos.tx.v1beta1.Service/GetBlockWithTxs", in, out, opts...) 1320 if err != nil { 1321 return nil, err 1322 } 1323 return out, nil 1324 } 1325 1326 func (c *serviceClient) TxDecode(ctx context.Context, in *TxDecodeRequest, opts ...grpc.CallOption) (*TxDecodeResponse, error) { 1327 out := new(TxDecodeResponse) 1328 err := c.cc.Invoke(ctx, "/cosmos.tx.v1beta1.Service/TxDecode", in, out, opts...) 1329 if err != nil { 1330 return nil, err 1331 } 1332 return out, nil 1333 } 1334 1335 func (c *serviceClient) TxEncode(ctx context.Context, in *TxEncodeRequest, opts ...grpc.CallOption) (*TxEncodeResponse, error) { 1336 out := new(TxEncodeResponse) 1337 err := c.cc.Invoke(ctx, "/cosmos.tx.v1beta1.Service/TxEncode", in, out, opts...) 1338 if err != nil { 1339 return nil, err 1340 } 1341 return out, nil 1342 } 1343 1344 func (c *serviceClient) TxEncodeAmino(ctx context.Context, in *TxEncodeAminoRequest, opts ...grpc.CallOption) (*TxEncodeAminoResponse, error) { 1345 out := new(TxEncodeAminoResponse) 1346 err := c.cc.Invoke(ctx, "/cosmos.tx.v1beta1.Service/TxEncodeAmino", in, out, opts...) 1347 if err != nil { 1348 return nil, err 1349 } 1350 return out, nil 1351 } 1352 1353 func (c *serviceClient) TxDecodeAmino(ctx context.Context, in *TxDecodeAminoRequest, opts ...grpc.CallOption) (*TxDecodeAminoResponse, error) { 1354 out := new(TxDecodeAminoResponse) 1355 err := c.cc.Invoke(ctx, "/cosmos.tx.v1beta1.Service/TxDecodeAmino", in, out, opts...) 1356 if err != nil { 1357 return nil, err 1358 } 1359 return out, nil 1360 } 1361 1362 // ServiceServer is the server API for Service service. 1363 type ServiceServer interface { 1364 // Simulate simulates executing a transaction for estimating gas usage. 1365 Simulate(context.Context, *SimulateRequest) (*SimulateResponse, error) 1366 // GetTx fetches a tx by hash. 1367 GetTx(context.Context, *GetTxRequest) (*GetTxResponse, error) 1368 // BroadcastTx broadcast transaction. 1369 BroadcastTx(context.Context, *BroadcastTxRequest) (*BroadcastTxResponse, error) 1370 // GetTxsEvent fetches txs by event. 1371 GetTxsEvent(context.Context, *GetTxsEventRequest) (*GetTxsEventResponse, error) 1372 // GetBlockWithTxs fetches a block with decoded txs. 1373 // 1374 // Since: cosmos-sdk 0.45.2 1375 GetBlockWithTxs(context.Context, *GetBlockWithTxsRequest) (*GetBlockWithTxsResponse, error) 1376 // TxDecode decodes the transaction. 1377 // 1378 // Since: cosmos-sdk 0.47 1379 TxDecode(context.Context, *TxDecodeRequest) (*TxDecodeResponse, error) 1380 // TxEncode encodes the transaction. 1381 // 1382 // Since: cosmos-sdk 0.47 1383 TxEncode(context.Context, *TxEncodeRequest) (*TxEncodeResponse, error) 1384 // TxEncodeAmino encodes an Amino transaction from JSON to encoded bytes. 1385 // 1386 // Since: cosmos-sdk 0.47 1387 TxEncodeAmino(context.Context, *TxEncodeAminoRequest) (*TxEncodeAminoResponse, error) 1388 // TxDecodeAmino decodes an Amino transaction from encoded bytes to JSON. 1389 // 1390 // Since: cosmos-sdk 0.47 1391 TxDecodeAmino(context.Context, *TxDecodeAminoRequest) (*TxDecodeAminoResponse, error) 1392 } 1393 1394 // UnimplementedServiceServer can be embedded to have forward compatible implementations. 1395 type UnimplementedServiceServer struct { 1396 } 1397 1398 func (*UnimplementedServiceServer) Simulate(ctx context.Context, req *SimulateRequest) (*SimulateResponse, error) { 1399 return nil, status.Errorf(codes.Unimplemented, "method Simulate not implemented") 1400 } 1401 func (*UnimplementedServiceServer) GetTx(ctx context.Context, req *GetTxRequest) (*GetTxResponse, error) { 1402 return nil, status.Errorf(codes.Unimplemented, "method GetTx not implemented") 1403 } 1404 func (*UnimplementedServiceServer) BroadcastTx(ctx context.Context, req *BroadcastTxRequest) (*BroadcastTxResponse, error) { 1405 return nil, status.Errorf(codes.Unimplemented, "method BroadcastTx not implemented") 1406 } 1407 func (*UnimplementedServiceServer) GetTxsEvent(ctx context.Context, req *GetTxsEventRequest) (*GetTxsEventResponse, error) { 1408 return nil, status.Errorf(codes.Unimplemented, "method GetTxsEvent not implemented") 1409 } 1410 func (*UnimplementedServiceServer) GetBlockWithTxs(ctx context.Context, req *GetBlockWithTxsRequest) (*GetBlockWithTxsResponse, error) { 1411 return nil, status.Errorf(codes.Unimplemented, "method GetBlockWithTxs not implemented") 1412 } 1413 func (*UnimplementedServiceServer) TxDecode(ctx context.Context, req *TxDecodeRequest) (*TxDecodeResponse, error) { 1414 return nil, status.Errorf(codes.Unimplemented, "method TxDecode not implemented") 1415 } 1416 func (*UnimplementedServiceServer) TxEncode(ctx context.Context, req *TxEncodeRequest) (*TxEncodeResponse, error) { 1417 return nil, status.Errorf(codes.Unimplemented, "method TxEncode not implemented") 1418 } 1419 func (*UnimplementedServiceServer) TxEncodeAmino(ctx context.Context, req *TxEncodeAminoRequest) (*TxEncodeAminoResponse, error) { 1420 return nil, status.Errorf(codes.Unimplemented, "method TxEncodeAmino not implemented") 1421 } 1422 func (*UnimplementedServiceServer) TxDecodeAmino(ctx context.Context, req *TxDecodeAminoRequest) (*TxDecodeAminoResponse, error) { 1423 return nil, status.Errorf(codes.Unimplemented, "method TxDecodeAmino not implemented") 1424 } 1425 1426 func RegisterServiceServer(s grpc1.Server, srv ServiceServer) { 1427 s.RegisterService(&_Service_serviceDesc, srv) 1428 } 1429 1430 func _Service_Simulate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1431 in := new(SimulateRequest) 1432 if err := dec(in); err != nil { 1433 return nil, err 1434 } 1435 if interceptor == nil { 1436 return srv.(ServiceServer).Simulate(ctx, in) 1437 } 1438 info := &grpc.UnaryServerInfo{ 1439 Server: srv, 1440 FullMethod: "/cosmos.tx.v1beta1.Service/Simulate", 1441 } 1442 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1443 return srv.(ServiceServer).Simulate(ctx, req.(*SimulateRequest)) 1444 } 1445 return interceptor(ctx, in, info, handler) 1446 } 1447 1448 func _Service_GetTx_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1449 in := new(GetTxRequest) 1450 if err := dec(in); err != nil { 1451 return nil, err 1452 } 1453 if interceptor == nil { 1454 return srv.(ServiceServer).GetTx(ctx, in) 1455 } 1456 info := &grpc.UnaryServerInfo{ 1457 Server: srv, 1458 FullMethod: "/cosmos.tx.v1beta1.Service/GetTx", 1459 } 1460 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1461 return srv.(ServiceServer).GetTx(ctx, req.(*GetTxRequest)) 1462 } 1463 return interceptor(ctx, in, info, handler) 1464 } 1465 1466 func _Service_BroadcastTx_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1467 in := new(BroadcastTxRequest) 1468 if err := dec(in); err != nil { 1469 return nil, err 1470 } 1471 if interceptor == nil { 1472 return srv.(ServiceServer).BroadcastTx(ctx, in) 1473 } 1474 info := &grpc.UnaryServerInfo{ 1475 Server: srv, 1476 FullMethod: "/cosmos.tx.v1beta1.Service/BroadcastTx", 1477 } 1478 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1479 return srv.(ServiceServer).BroadcastTx(ctx, req.(*BroadcastTxRequest)) 1480 } 1481 return interceptor(ctx, in, info, handler) 1482 } 1483 1484 func _Service_GetTxsEvent_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1485 in := new(GetTxsEventRequest) 1486 if err := dec(in); err != nil { 1487 return nil, err 1488 } 1489 if interceptor == nil { 1490 return srv.(ServiceServer).GetTxsEvent(ctx, in) 1491 } 1492 info := &grpc.UnaryServerInfo{ 1493 Server: srv, 1494 FullMethod: "/cosmos.tx.v1beta1.Service/GetTxsEvent", 1495 } 1496 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1497 return srv.(ServiceServer).GetTxsEvent(ctx, req.(*GetTxsEventRequest)) 1498 } 1499 return interceptor(ctx, in, info, handler) 1500 } 1501 1502 func _Service_GetBlockWithTxs_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1503 in := new(GetBlockWithTxsRequest) 1504 if err := dec(in); err != nil { 1505 return nil, err 1506 } 1507 if interceptor == nil { 1508 return srv.(ServiceServer).GetBlockWithTxs(ctx, in) 1509 } 1510 info := &grpc.UnaryServerInfo{ 1511 Server: srv, 1512 FullMethod: "/cosmos.tx.v1beta1.Service/GetBlockWithTxs", 1513 } 1514 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1515 return srv.(ServiceServer).GetBlockWithTxs(ctx, req.(*GetBlockWithTxsRequest)) 1516 } 1517 return interceptor(ctx, in, info, handler) 1518 } 1519 1520 func _Service_TxDecode_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1521 in := new(TxDecodeRequest) 1522 if err := dec(in); err != nil { 1523 return nil, err 1524 } 1525 if interceptor == nil { 1526 return srv.(ServiceServer).TxDecode(ctx, in) 1527 } 1528 info := &grpc.UnaryServerInfo{ 1529 Server: srv, 1530 FullMethod: "/cosmos.tx.v1beta1.Service/TxDecode", 1531 } 1532 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1533 return srv.(ServiceServer).TxDecode(ctx, req.(*TxDecodeRequest)) 1534 } 1535 return interceptor(ctx, in, info, handler) 1536 } 1537 1538 func _Service_TxEncode_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1539 in := new(TxEncodeRequest) 1540 if err := dec(in); err != nil { 1541 return nil, err 1542 } 1543 if interceptor == nil { 1544 return srv.(ServiceServer).TxEncode(ctx, in) 1545 } 1546 info := &grpc.UnaryServerInfo{ 1547 Server: srv, 1548 FullMethod: "/cosmos.tx.v1beta1.Service/TxEncode", 1549 } 1550 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1551 return srv.(ServiceServer).TxEncode(ctx, req.(*TxEncodeRequest)) 1552 } 1553 return interceptor(ctx, in, info, handler) 1554 } 1555 1556 func _Service_TxEncodeAmino_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1557 in := new(TxEncodeAminoRequest) 1558 if err := dec(in); err != nil { 1559 return nil, err 1560 } 1561 if interceptor == nil { 1562 return srv.(ServiceServer).TxEncodeAmino(ctx, in) 1563 } 1564 info := &grpc.UnaryServerInfo{ 1565 Server: srv, 1566 FullMethod: "/cosmos.tx.v1beta1.Service/TxEncodeAmino", 1567 } 1568 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1569 return srv.(ServiceServer).TxEncodeAmino(ctx, req.(*TxEncodeAminoRequest)) 1570 } 1571 return interceptor(ctx, in, info, handler) 1572 } 1573 1574 func _Service_TxDecodeAmino_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1575 in := new(TxDecodeAminoRequest) 1576 if err := dec(in); err != nil { 1577 return nil, err 1578 } 1579 if interceptor == nil { 1580 return srv.(ServiceServer).TxDecodeAmino(ctx, in) 1581 } 1582 info := &grpc.UnaryServerInfo{ 1583 Server: srv, 1584 FullMethod: "/cosmos.tx.v1beta1.Service/TxDecodeAmino", 1585 } 1586 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1587 return srv.(ServiceServer).TxDecodeAmino(ctx, req.(*TxDecodeAminoRequest)) 1588 } 1589 return interceptor(ctx, in, info, handler) 1590 } 1591 1592 var _Service_serviceDesc = grpc.ServiceDesc{ 1593 ServiceName: "cosmos.tx.v1beta1.Service", 1594 HandlerType: (*ServiceServer)(nil), 1595 Methods: []grpc.MethodDesc{ 1596 { 1597 MethodName: "Simulate", 1598 Handler: _Service_Simulate_Handler, 1599 }, 1600 { 1601 MethodName: "GetTx", 1602 Handler: _Service_GetTx_Handler, 1603 }, 1604 { 1605 MethodName: "BroadcastTx", 1606 Handler: _Service_BroadcastTx_Handler, 1607 }, 1608 { 1609 MethodName: "GetTxsEvent", 1610 Handler: _Service_GetTxsEvent_Handler, 1611 }, 1612 { 1613 MethodName: "GetBlockWithTxs", 1614 Handler: _Service_GetBlockWithTxs_Handler, 1615 }, 1616 { 1617 MethodName: "TxDecode", 1618 Handler: _Service_TxDecode_Handler, 1619 }, 1620 { 1621 MethodName: "TxEncode", 1622 Handler: _Service_TxEncode_Handler, 1623 }, 1624 { 1625 MethodName: "TxEncodeAmino", 1626 Handler: _Service_TxEncodeAmino_Handler, 1627 }, 1628 { 1629 MethodName: "TxDecodeAmino", 1630 Handler: _Service_TxDecodeAmino_Handler, 1631 }, 1632 }, 1633 Streams: []grpc.StreamDesc{}, 1634 Metadata: "cosmos/tx/v1beta1/service.proto", 1635 } 1636 1637 func (m *GetTxsEventRequest) Marshal() (dAtA []byte, err error) { 1638 size := m.Size() 1639 dAtA = make([]byte, size) 1640 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 1641 if err != nil { 1642 return nil, err 1643 } 1644 return dAtA[:n], nil 1645 } 1646 1647 func (m *GetTxsEventRequest) MarshalTo(dAtA []byte) (int, error) { 1648 size := m.Size() 1649 return m.MarshalToSizedBuffer(dAtA[:size]) 1650 } 1651 1652 func (m *GetTxsEventRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 1653 i := len(dAtA) 1654 _ = i 1655 var l int 1656 _ = l 1657 if len(m.Query) > 0 { 1658 i -= len(m.Query) 1659 copy(dAtA[i:], m.Query) 1660 i = encodeVarintService(dAtA, i, uint64(len(m.Query))) 1661 i-- 1662 dAtA[i] = 0x32 1663 } 1664 if m.Limit != 0 { 1665 i = encodeVarintService(dAtA, i, uint64(m.Limit)) 1666 i-- 1667 dAtA[i] = 0x28 1668 } 1669 if m.Page != 0 { 1670 i = encodeVarintService(dAtA, i, uint64(m.Page)) 1671 i-- 1672 dAtA[i] = 0x20 1673 } 1674 if m.OrderBy != 0 { 1675 i = encodeVarintService(dAtA, i, uint64(m.OrderBy)) 1676 i-- 1677 dAtA[i] = 0x18 1678 } 1679 if m.Pagination != nil { 1680 { 1681 size, err := m.Pagination.MarshalToSizedBuffer(dAtA[:i]) 1682 if err != nil { 1683 return 0, err 1684 } 1685 i -= size 1686 i = encodeVarintService(dAtA, i, uint64(size)) 1687 } 1688 i-- 1689 dAtA[i] = 0x12 1690 } 1691 if len(m.Events) > 0 { 1692 for iNdEx := len(m.Events) - 1; iNdEx >= 0; iNdEx-- { 1693 i -= len(m.Events[iNdEx]) 1694 copy(dAtA[i:], m.Events[iNdEx]) 1695 i = encodeVarintService(dAtA, i, uint64(len(m.Events[iNdEx]))) 1696 i-- 1697 dAtA[i] = 0xa 1698 } 1699 } 1700 return len(dAtA) - i, nil 1701 } 1702 1703 func (m *GetTxsEventResponse) Marshal() (dAtA []byte, err error) { 1704 size := m.Size() 1705 dAtA = make([]byte, size) 1706 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 1707 if err != nil { 1708 return nil, err 1709 } 1710 return dAtA[:n], nil 1711 } 1712 1713 func (m *GetTxsEventResponse) MarshalTo(dAtA []byte) (int, error) { 1714 size := m.Size() 1715 return m.MarshalToSizedBuffer(dAtA[:size]) 1716 } 1717 1718 func (m *GetTxsEventResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 1719 i := len(dAtA) 1720 _ = i 1721 var l int 1722 _ = l 1723 if m.Total != 0 { 1724 i = encodeVarintService(dAtA, i, uint64(m.Total)) 1725 i-- 1726 dAtA[i] = 0x20 1727 } 1728 if m.Pagination != nil { 1729 { 1730 size, err := m.Pagination.MarshalToSizedBuffer(dAtA[:i]) 1731 if err != nil { 1732 return 0, err 1733 } 1734 i -= size 1735 i = encodeVarintService(dAtA, i, uint64(size)) 1736 } 1737 i-- 1738 dAtA[i] = 0x1a 1739 } 1740 if len(m.TxResponses) > 0 { 1741 for iNdEx := len(m.TxResponses) - 1; iNdEx >= 0; iNdEx-- { 1742 { 1743 size, err := m.TxResponses[iNdEx].MarshalToSizedBuffer(dAtA[:i]) 1744 if err != nil { 1745 return 0, err 1746 } 1747 i -= size 1748 i = encodeVarintService(dAtA, i, uint64(size)) 1749 } 1750 i-- 1751 dAtA[i] = 0x12 1752 } 1753 } 1754 if len(m.Txs) > 0 { 1755 for iNdEx := len(m.Txs) - 1; iNdEx >= 0; iNdEx-- { 1756 { 1757 size, err := m.Txs[iNdEx].MarshalToSizedBuffer(dAtA[:i]) 1758 if err != nil { 1759 return 0, err 1760 } 1761 i -= size 1762 i = encodeVarintService(dAtA, i, uint64(size)) 1763 } 1764 i-- 1765 dAtA[i] = 0xa 1766 } 1767 } 1768 return len(dAtA) - i, nil 1769 } 1770 1771 func (m *BroadcastTxRequest) Marshal() (dAtA []byte, err error) { 1772 size := m.Size() 1773 dAtA = make([]byte, size) 1774 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 1775 if err != nil { 1776 return nil, err 1777 } 1778 return dAtA[:n], nil 1779 } 1780 1781 func (m *BroadcastTxRequest) MarshalTo(dAtA []byte) (int, error) { 1782 size := m.Size() 1783 return m.MarshalToSizedBuffer(dAtA[:size]) 1784 } 1785 1786 func (m *BroadcastTxRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 1787 i := len(dAtA) 1788 _ = i 1789 var l int 1790 _ = l 1791 if m.Mode != 0 { 1792 i = encodeVarintService(dAtA, i, uint64(m.Mode)) 1793 i-- 1794 dAtA[i] = 0x10 1795 } 1796 if len(m.TxBytes) > 0 { 1797 i -= len(m.TxBytes) 1798 copy(dAtA[i:], m.TxBytes) 1799 i = encodeVarintService(dAtA, i, uint64(len(m.TxBytes))) 1800 i-- 1801 dAtA[i] = 0xa 1802 } 1803 return len(dAtA) - i, nil 1804 } 1805 1806 func (m *BroadcastTxResponse) Marshal() (dAtA []byte, err error) { 1807 size := m.Size() 1808 dAtA = make([]byte, size) 1809 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 1810 if err != nil { 1811 return nil, err 1812 } 1813 return dAtA[:n], nil 1814 } 1815 1816 func (m *BroadcastTxResponse) MarshalTo(dAtA []byte) (int, error) { 1817 size := m.Size() 1818 return m.MarshalToSizedBuffer(dAtA[:size]) 1819 } 1820 1821 func (m *BroadcastTxResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 1822 i := len(dAtA) 1823 _ = i 1824 var l int 1825 _ = l 1826 if m.TxResponse != nil { 1827 { 1828 size, err := m.TxResponse.MarshalToSizedBuffer(dAtA[:i]) 1829 if err != nil { 1830 return 0, err 1831 } 1832 i -= size 1833 i = encodeVarintService(dAtA, i, uint64(size)) 1834 } 1835 i-- 1836 dAtA[i] = 0xa 1837 } 1838 return len(dAtA) - i, nil 1839 } 1840 1841 func (m *SimulateRequest) Marshal() (dAtA []byte, err error) { 1842 size := m.Size() 1843 dAtA = make([]byte, size) 1844 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 1845 if err != nil { 1846 return nil, err 1847 } 1848 return dAtA[:n], nil 1849 } 1850 1851 func (m *SimulateRequest) MarshalTo(dAtA []byte) (int, error) { 1852 size := m.Size() 1853 return m.MarshalToSizedBuffer(dAtA[:size]) 1854 } 1855 1856 func (m *SimulateRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 1857 i := len(dAtA) 1858 _ = i 1859 var l int 1860 _ = l 1861 if len(m.TxBytes) > 0 { 1862 i -= len(m.TxBytes) 1863 copy(dAtA[i:], m.TxBytes) 1864 i = encodeVarintService(dAtA, i, uint64(len(m.TxBytes))) 1865 i-- 1866 dAtA[i] = 0x12 1867 } 1868 if m.Tx != nil { 1869 { 1870 size, err := m.Tx.MarshalToSizedBuffer(dAtA[:i]) 1871 if err != nil { 1872 return 0, err 1873 } 1874 i -= size 1875 i = encodeVarintService(dAtA, i, uint64(size)) 1876 } 1877 i-- 1878 dAtA[i] = 0xa 1879 } 1880 return len(dAtA) - i, nil 1881 } 1882 1883 func (m *SimulateResponse) Marshal() (dAtA []byte, err error) { 1884 size := m.Size() 1885 dAtA = make([]byte, size) 1886 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 1887 if err != nil { 1888 return nil, err 1889 } 1890 return dAtA[:n], nil 1891 } 1892 1893 func (m *SimulateResponse) MarshalTo(dAtA []byte) (int, error) { 1894 size := m.Size() 1895 return m.MarshalToSizedBuffer(dAtA[:size]) 1896 } 1897 1898 func (m *SimulateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 1899 i := len(dAtA) 1900 _ = i 1901 var l int 1902 _ = l 1903 if m.Result != nil { 1904 { 1905 size, err := m.Result.MarshalToSizedBuffer(dAtA[:i]) 1906 if err != nil { 1907 return 0, err 1908 } 1909 i -= size 1910 i = encodeVarintService(dAtA, i, uint64(size)) 1911 } 1912 i-- 1913 dAtA[i] = 0x12 1914 } 1915 if m.GasInfo != nil { 1916 { 1917 size, err := m.GasInfo.MarshalToSizedBuffer(dAtA[:i]) 1918 if err != nil { 1919 return 0, err 1920 } 1921 i -= size 1922 i = encodeVarintService(dAtA, i, uint64(size)) 1923 } 1924 i-- 1925 dAtA[i] = 0xa 1926 } 1927 return len(dAtA) - i, nil 1928 } 1929 1930 func (m *GetTxRequest) Marshal() (dAtA []byte, err error) { 1931 size := m.Size() 1932 dAtA = make([]byte, size) 1933 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 1934 if err != nil { 1935 return nil, err 1936 } 1937 return dAtA[:n], nil 1938 } 1939 1940 func (m *GetTxRequest) MarshalTo(dAtA []byte) (int, error) { 1941 size := m.Size() 1942 return m.MarshalToSizedBuffer(dAtA[:size]) 1943 } 1944 1945 func (m *GetTxRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 1946 i := len(dAtA) 1947 _ = i 1948 var l int 1949 _ = l 1950 if len(m.Hash) > 0 { 1951 i -= len(m.Hash) 1952 copy(dAtA[i:], m.Hash) 1953 i = encodeVarintService(dAtA, i, uint64(len(m.Hash))) 1954 i-- 1955 dAtA[i] = 0xa 1956 } 1957 return len(dAtA) - i, nil 1958 } 1959 1960 func (m *GetTxResponse) Marshal() (dAtA []byte, err error) { 1961 size := m.Size() 1962 dAtA = make([]byte, size) 1963 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 1964 if err != nil { 1965 return nil, err 1966 } 1967 return dAtA[:n], nil 1968 } 1969 1970 func (m *GetTxResponse) MarshalTo(dAtA []byte) (int, error) { 1971 size := m.Size() 1972 return m.MarshalToSizedBuffer(dAtA[:size]) 1973 } 1974 1975 func (m *GetTxResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 1976 i := len(dAtA) 1977 _ = i 1978 var l int 1979 _ = l 1980 if m.TxResponse != nil { 1981 { 1982 size, err := m.TxResponse.MarshalToSizedBuffer(dAtA[:i]) 1983 if err != nil { 1984 return 0, err 1985 } 1986 i -= size 1987 i = encodeVarintService(dAtA, i, uint64(size)) 1988 } 1989 i-- 1990 dAtA[i] = 0x12 1991 } 1992 if m.Tx != nil { 1993 { 1994 size, err := m.Tx.MarshalToSizedBuffer(dAtA[:i]) 1995 if err != nil { 1996 return 0, err 1997 } 1998 i -= size 1999 i = encodeVarintService(dAtA, i, uint64(size)) 2000 } 2001 i-- 2002 dAtA[i] = 0xa 2003 } 2004 return len(dAtA) - i, nil 2005 } 2006 2007 func (m *GetBlockWithTxsRequest) Marshal() (dAtA []byte, err error) { 2008 size := m.Size() 2009 dAtA = make([]byte, size) 2010 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 2011 if err != nil { 2012 return nil, err 2013 } 2014 return dAtA[:n], nil 2015 } 2016 2017 func (m *GetBlockWithTxsRequest) MarshalTo(dAtA []byte) (int, error) { 2018 size := m.Size() 2019 return m.MarshalToSizedBuffer(dAtA[:size]) 2020 } 2021 2022 func (m *GetBlockWithTxsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 2023 i := len(dAtA) 2024 _ = i 2025 var l int 2026 _ = l 2027 if m.Pagination != nil { 2028 { 2029 size, err := m.Pagination.MarshalToSizedBuffer(dAtA[:i]) 2030 if err != nil { 2031 return 0, err 2032 } 2033 i -= size 2034 i = encodeVarintService(dAtA, i, uint64(size)) 2035 } 2036 i-- 2037 dAtA[i] = 0x12 2038 } 2039 if m.Height != 0 { 2040 i = encodeVarintService(dAtA, i, uint64(m.Height)) 2041 i-- 2042 dAtA[i] = 0x8 2043 } 2044 return len(dAtA) - i, nil 2045 } 2046 2047 func (m *GetBlockWithTxsResponse) Marshal() (dAtA []byte, err error) { 2048 size := m.Size() 2049 dAtA = make([]byte, size) 2050 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 2051 if err != nil { 2052 return nil, err 2053 } 2054 return dAtA[:n], nil 2055 } 2056 2057 func (m *GetBlockWithTxsResponse) MarshalTo(dAtA []byte) (int, error) { 2058 size := m.Size() 2059 return m.MarshalToSizedBuffer(dAtA[:size]) 2060 } 2061 2062 func (m *GetBlockWithTxsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 2063 i := len(dAtA) 2064 _ = i 2065 var l int 2066 _ = l 2067 if m.Pagination != nil { 2068 { 2069 size, err := m.Pagination.MarshalToSizedBuffer(dAtA[:i]) 2070 if err != nil { 2071 return 0, err 2072 } 2073 i -= size 2074 i = encodeVarintService(dAtA, i, uint64(size)) 2075 } 2076 i-- 2077 dAtA[i] = 0x22 2078 } 2079 if m.Block != nil { 2080 { 2081 size, err := m.Block.MarshalToSizedBuffer(dAtA[:i]) 2082 if err != nil { 2083 return 0, err 2084 } 2085 i -= size 2086 i = encodeVarintService(dAtA, i, uint64(size)) 2087 } 2088 i-- 2089 dAtA[i] = 0x1a 2090 } 2091 if m.BlockId != nil { 2092 { 2093 size, err := m.BlockId.MarshalToSizedBuffer(dAtA[:i]) 2094 if err != nil { 2095 return 0, err 2096 } 2097 i -= size 2098 i = encodeVarintService(dAtA, i, uint64(size)) 2099 } 2100 i-- 2101 dAtA[i] = 0x12 2102 } 2103 if len(m.Txs) > 0 { 2104 for iNdEx := len(m.Txs) - 1; iNdEx >= 0; iNdEx-- { 2105 { 2106 size, err := m.Txs[iNdEx].MarshalToSizedBuffer(dAtA[:i]) 2107 if err != nil { 2108 return 0, err 2109 } 2110 i -= size 2111 i = encodeVarintService(dAtA, i, uint64(size)) 2112 } 2113 i-- 2114 dAtA[i] = 0xa 2115 } 2116 } 2117 return len(dAtA) - i, nil 2118 } 2119 2120 func (m *TxDecodeRequest) Marshal() (dAtA []byte, err error) { 2121 size := m.Size() 2122 dAtA = make([]byte, size) 2123 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 2124 if err != nil { 2125 return nil, err 2126 } 2127 return dAtA[:n], nil 2128 } 2129 2130 func (m *TxDecodeRequest) MarshalTo(dAtA []byte) (int, error) { 2131 size := m.Size() 2132 return m.MarshalToSizedBuffer(dAtA[:size]) 2133 } 2134 2135 func (m *TxDecodeRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 2136 i := len(dAtA) 2137 _ = i 2138 var l int 2139 _ = l 2140 if len(m.TxBytes) > 0 { 2141 i -= len(m.TxBytes) 2142 copy(dAtA[i:], m.TxBytes) 2143 i = encodeVarintService(dAtA, i, uint64(len(m.TxBytes))) 2144 i-- 2145 dAtA[i] = 0xa 2146 } 2147 return len(dAtA) - i, nil 2148 } 2149 2150 func (m *TxDecodeResponse) Marshal() (dAtA []byte, err error) { 2151 size := m.Size() 2152 dAtA = make([]byte, size) 2153 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 2154 if err != nil { 2155 return nil, err 2156 } 2157 return dAtA[:n], nil 2158 } 2159 2160 func (m *TxDecodeResponse) MarshalTo(dAtA []byte) (int, error) { 2161 size := m.Size() 2162 return m.MarshalToSizedBuffer(dAtA[:size]) 2163 } 2164 2165 func (m *TxDecodeResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 2166 i := len(dAtA) 2167 _ = i 2168 var l int 2169 _ = l 2170 if m.Tx != nil { 2171 { 2172 size, err := m.Tx.MarshalToSizedBuffer(dAtA[:i]) 2173 if err != nil { 2174 return 0, err 2175 } 2176 i -= size 2177 i = encodeVarintService(dAtA, i, uint64(size)) 2178 } 2179 i-- 2180 dAtA[i] = 0xa 2181 } 2182 return len(dAtA) - i, nil 2183 } 2184 2185 func (m *TxEncodeRequest) Marshal() (dAtA []byte, err error) { 2186 size := m.Size() 2187 dAtA = make([]byte, size) 2188 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 2189 if err != nil { 2190 return nil, err 2191 } 2192 return dAtA[:n], nil 2193 } 2194 2195 func (m *TxEncodeRequest) MarshalTo(dAtA []byte) (int, error) { 2196 size := m.Size() 2197 return m.MarshalToSizedBuffer(dAtA[:size]) 2198 } 2199 2200 func (m *TxEncodeRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 2201 i := len(dAtA) 2202 _ = i 2203 var l int 2204 _ = l 2205 if m.Tx != nil { 2206 { 2207 size, err := m.Tx.MarshalToSizedBuffer(dAtA[:i]) 2208 if err != nil { 2209 return 0, err 2210 } 2211 i -= size 2212 i = encodeVarintService(dAtA, i, uint64(size)) 2213 } 2214 i-- 2215 dAtA[i] = 0xa 2216 } 2217 return len(dAtA) - i, nil 2218 } 2219 2220 func (m *TxEncodeResponse) Marshal() (dAtA []byte, err error) { 2221 size := m.Size() 2222 dAtA = make([]byte, size) 2223 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 2224 if err != nil { 2225 return nil, err 2226 } 2227 return dAtA[:n], nil 2228 } 2229 2230 func (m *TxEncodeResponse) MarshalTo(dAtA []byte) (int, error) { 2231 size := m.Size() 2232 return m.MarshalToSizedBuffer(dAtA[:size]) 2233 } 2234 2235 func (m *TxEncodeResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 2236 i := len(dAtA) 2237 _ = i 2238 var l int 2239 _ = l 2240 if len(m.TxBytes) > 0 { 2241 i -= len(m.TxBytes) 2242 copy(dAtA[i:], m.TxBytes) 2243 i = encodeVarintService(dAtA, i, uint64(len(m.TxBytes))) 2244 i-- 2245 dAtA[i] = 0xa 2246 } 2247 return len(dAtA) - i, nil 2248 } 2249 2250 func (m *TxEncodeAminoRequest) Marshal() (dAtA []byte, err error) { 2251 size := m.Size() 2252 dAtA = make([]byte, size) 2253 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 2254 if err != nil { 2255 return nil, err 2256 } 2257 return dAtA[:n], nil 2258 } 2259 2260 func (m *TxEncodeAminoRequest) MarshalTo(dAtA []byte) (int, error) { 2261 size := m.Size() 2262 return m.MarshalToSizedBuffer(dAtA[:size]) 2263 } 2264 2265 func (m *TxEncodeAminoRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 2266 i := len(dAtA) 2267 _ = i 2268 var l int 2269 _ = l 2270 if len(m.AminoJson) > 0 { 2271 i -= len(m.AminoJson) 2272 copy(dAtA[i:], m.AminoJson) 2273 i = encodeVarintService(dAtA, i, uint64(len(m.AminoJson))) 2274 i-- 2275 dAtA[i] = 0xa 2276 } 2277 return len(dAtA) - i, nil 2278 } 2279 2280 func (m *TxEncodeAminoResponse) Marshal() (dAtA []byte, err error) { 2281 size := m.Size() 2282 dAtA = make([]byte, size) 2283 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 2284 if err != nil { 2285 return nil, err 2286 } 2287 return dAtA[:n], nil 2288 } 2289 2290 func (m *TxEncodeAminoResponse) MarshalTo(dAtA []byte) (int, error) { 2291 size := m.Size() 2292 return m.MarshalToSizedBuffer(dAtA[:size]) 2293 } 2294 2295 func (m *TxEncodeAminoResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 2296 i := len(dAtA) 2297 _ = i 2298 var l int 2299 _ = l 2300 if len(m.AminoBinary) > 0 { 2301 i -= len(m.AminoBinary) 2302 copy(dAtA[i:], m.AminoBinary) 2303 i = encodeVarintService(dAtA, i, uint64(len(m.AminoBinary))) 2304 i-- 2305 dAtA[i] = 0xa 2306 } 2307 return len(dAtA) - i, nil 2308 } 2309 2310 func (m *TxDecodeAminoRequest) Marshal() (dAtA []byte, err error) { 2311 size := m.Size() 2312 dAtA = make([]byte, size) 2313 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 2314 if err != nil { 2315 return nil, err 2316 } 2317 return dAtA[:n], nil 2318 } 2319 2320 func (m *TxDecodeAminoRequest) MarshalTo(dAtA []byte) (int, error) { 2321 size := m.Size() 2322 return m.MarshalToSizedBuffer(dAtA[:size]) 2323 } 2324 2325 func (m *TxDecodeAminoRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 2326 i := len(dAtA) 2327 _ = i 2328 var l int 2329 _ = l 2330 if len(m.AminoBinary) > 0 { 2331 i -= len(m.AminoBinary) 2332 copy(dAtA[i:], m.AminoBinary) 2333 i = encodeVarintService(dAtA, i, uint64(len(m.AminoBinary))) 2334 i-- 2335 dAtA[i] = 0xa 2336 } 2337 return len(dAtA) - i, nil 2338 } 2339 2340 func (m *TxDecodeAminoResponse) Marshal() (dAtA []byte, err error) { 2341 size := m.Size() 2342 dAtA = make([]byte, size) 2343 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 2344 if err != nil { 2345 return nil, err 2346 } 2347 return dAtA[:n], nil 2348 } 2349 2350 func (m *TxDecodeAminoResponse) MarshalTo(dAtA []byte) (int, error) { 2351 size := m.Size() 2352 return m.MarshalToSizedBuffer(dAtA[:size]) 2353 } 2354 2355 func (m *TxDecodeAminoResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 2356 i := len(dAtA) 2357 _ = i 2358 var l int 2359 _ = l 2360 if len(m.AminoJson) > 0 { 2361 i -= len(m.AminoJson) 2362 copy(dAtA[i:], m.AminoJson) 2363 i = encodeVarintService(dAtA, i, uint64(len(m.AminoJson))) 2364 i-- 2365 dAtA[i] = 0xa 2366 } 2367 return len(dAtA) - i, nil 2368 } 2369 2370 func encodeVarintService(dAtA []byte, offset int, v uint64) int { 2371 offset -= sovService(v) 2372 base := offset 2373 for v >= 1<<7 { 2374 dAtA[offset] = uint8(v&0x7f | 0x80) 2375 v >>= 7 2376 offset++ 2377 } 2378 dAtA[offset] = uint8(v) 2379 return base 2380 } 2381 func (m *GetTxsEventRequest) Size() (n int) { 2382 if m == nil { 2383 return 0 2384 } 2385 var l int 2386 _ = l 2387 if len(m.Events) > 0 { 2388 for _, s := range m.Events { 2389 l = len(s) 2390 n += 1 + l + sovService(uint64(l)) 2391 } 2392 } 2393 if m.Pagination != nil { 2394 l = m.Pagination.Size() 2395 n += 1 + l + sovService(uint64(l)) 2396 } 2397 if m.OrderBy != 0 { 2398 n += 1 + sovService(uint64(m.OrderBy)) 2399 } 2400 if m.Page != 0 { 2401 n += 1 + sovService(uint64(m.Page)) 2402 } 2403 if m.Limit != 0 { 2404 n += 1 + sovService(uint64(m.Limit)) 2405 } 2406 l = len(m.Query) 2407 if l > 0 { 2408 n += 1 + l + sovService(uint64(l)) 2409 } 2410 return n 2411 } 2412 2413 func (m *GetTxsEventResponse) Size() (n int) { 2414 if m == nil { 2415 return 0 2416 } 2417 var l int 2418 _ = l 2419 if len(m.Txs) > 0 { 2420 for _, e := range m.Txs { 2421 l = e.Size() 2422 n += 1 + l + sovService(uint64(l)) 2423 } 2424 } 2425 if len(m.TxResponses) > 0 { 2426 for _, e := range m.TxResponses { 2427 l = e.Size() 2428 n += 1 + l + sovService(uint64(l)) 2429 } 2430 } 2431 if m.Pagination != nil { 2432 l = m.Pagination.Size() 2433 n += 1 + l + sovService(uint64(l)) 2434 } 2435 if m.Total != 0 { 2436 n += 1 + sovService(uint64(m.Total)) 2437 } 2438 return n 2439 } 2440 2441 func (m *BroadcastTxRequest) Size() (n int) { 2442 if m == nil { 2443 return 0 2444 } 2445 var l int 2446 _ = l 2447 l = len(m.TxBytes) 2448 if l > 0 { 2449 n += 1 + l + sovService(uint64(l)) 2450 } 2451 if m.Mode != 0 { 2452 n += 1 + sovService(uint64(m.Mode)) 2453 } 2454 return n 2455 } 2456 2457 func (m *BroadcastTxResponse) Size() (n int) { 2458 if m == nil { 2459 return 0 2460 } 2461 var l int 2462 _ = l 2463 if m.TxResponse != nil { 2464 l = m.TxResponse.Size() 2465 n += 1 + l + sovService(uint64(l)) 2466 } 2467 return n 2468 } 2469 2470 func (m *SimulateRequest) Size() (n int) { 2471 if m == nil { 2472 return 0 2473 } 2474 var l int 2475 _ = l 2476 if m.Tx != nil { 2477 l = m.Tx.Size() 2478 n += 1 + l + sovService(uint64(l)) 2479 } 2480 l = len(m.TxBytes) 2481 if l > 0 { 2482 n += 1 + l + sovService(uint64(l)) 2483 } 2484 return n 2485 } 2486 2487 func (m *SimulateResponse) Size() (n int) { 2488 if m == nil { 2489 return 0 2490 } 2491 var l int 2492 _ = l 2493 if m.GasInfo != nil { 2494 l = m.GasInfo.Size() 2495 n += 1 + l + sovService(uint64(l)) 2496 } 2497 if m.Result != nil { 2498 l = m.Result.Size() 2499 n += 1 + l + sovService(uint64(l)) 2500 } 2501 return n 2502 } 2503 2504 func (m *GetTxRequest) Size() (n int) { 2505 if m == nil { 2506 return 0 2507 } 2508 var l int 2509 _ = l 2510 l = len(m.Hash) 2511 if l > 0 { 2512 n += 1 + l + sovService(uint64(l)) 2513 } 2514 return n 2515 } 2516 2517 func (m *GetTxResponse) Size() (n int) { 2518 if m == nil { 2519 return 0 2520 } 2521 var l int 2522 _ = l 2523 if m.Tx != nil { 2524 l = m.Tx.Size() 2525 n += 1 + l + sovService(uint64(l)) 2526 } 2527 if m.TxResponse != nil { 2528 l = m.TxResponse.Size() 2529 n += 1 + l + sovService(uint64(l)) 2530 } 2531 return n 2532 } 2533 2534 func (m *GetBlockWithTxsRequest) Size() (n int) { 2535 if m == nil { 2536 return 0 2537 } 2538 var l int 2539 _ = l 2540 if m.Height != 0 { 2541 n += 1 + sovService(uint64(m.Height)) 2542 } 2543 if m.Pagination != nil { 2544 l = m.Pagination.Size() 2545 n += 1 + l + sovService(uint64(l)) 2546 } 2547 return n 2548 } 2549 2550 func (m *GetBlockWithTxsResponse) Size() (n int) { 2551 if m == nil { 2552 return 0 2553 } 2554 var l int 2555 _ = l 2556 if len(m.Txs) > 0 { 2557 for _, e := range m.Txs { 2558 l = e.Size() 2559 n += 1 + l + sovService(uint64(l)) 2560 } 2561 } 2562 if m.BlockId != nil { 2563 l = m.BlockId.Size() 2564 n += 1 + l + sovService(uint64(l)) 2565 } 2566 if m.Block != nil { 2567 l = m.Block.Size() 2568 n += 1 + l + sovService(uint64(l)) 2569 } 2570 if m.Pagination != nil { 2571 l = m.Pagination.Size() 2572 n += 1 + l + sovService(uint64(l)) 2573 } 2574 return n 2575 } 2576 2577 func (m *TxDecodeRequest) Size() (n int) { 2578 if m == nil { 2579 return 0 2580 } 2581 var l int 2582 _ = l 2583 l = len(m.TxBytes) 2584 if l > 0 { 2585 n += 1 + l + sovService(uint64(l)) 2586 } 2587 return n 2588 } 2589 2590 func (m *TxDecodeResponse) Size() (n int) { 2591 if m == nil { 2592 return 0 2593 } 2594 var l int 2595 _ = l 2596 if m.Tx != nil { 2597 l = m.Tx.Size() 2598 n += 1 + l + sovService(uint64(l)) 2599 } 2600 return n 2601 } 2602 2603 func (m *TxEncodeRequest) Size() (n int) { 2604 if m == nil { 2605 return 0 2606 } 2607 var l int 2608 _ = l 2609 if m.Tx != nil { 2610 l = m.Tx.Size() 2611 n += 1 + l + sovService(uint64(l)) 2612 } 2613 return n 2614 } 2615 2616 func (m *TxEncodeResponse) Size() (n int) { 2617 if m == nil { 2618 return 0 2619 } 2620 var l int 2621 _ = l 2622 l = len(m.TxBytes) 2623 if l > 0 { 2624 n += 1 + l + sovService(uint64(l)) 2625 } 2626 return n 2627 } 2628 2629 func (m *TxEncodeAminoRequest) Size() (n int) { 2630 if m == nil { 2631 return 0 2632 } 2633 var l int 2634 _ = l 2635 l = len(m.AminoJson) 2636 if l > 0 { 2637 n += 1 + l + sovService(uint64(l)) 2638 } 2639 return n 2640 } 2641 2642 func (m *TxEncodeAminoResponse) Size() (n int) { 2643 if m == nil { 2644 return 0 2645 } 2646 var l int 2647 _ = l 2648 l = len(m.AminoBinary) 2649 if l > 0 { 2650 n += 1 + l + sovService(uint64(l)) 2651 } 2652 return n 2653 } 2654 2655 func (m *TxDecodeAminoRequest) Size() (n int) { 2656 if m == nil { 2657 return 0 2658 } 2659 var l int 2660 _ = l 2661 l = len(m.AminoBinary) 2662 if l > 0 { 2663 n += 1 + l + sovService(uint64(l)) 2664 } 2665 return n 2666 } 2667 2668 func (m *TxDecodeAminoResponse) Size() (n int) { 2669 if m == nil { 2670 return 0 2671 } 2672 var l int 2673 _ = l 2674 l = len(m.AminoJson) 2675 if l > 0 { 2676 n += 1 + l + sovService(uint64(l)) 2677 } 2678 return n 2679 } 2680 2681 func sovService(x uint64) (n int) { 2682 return (math_bits.Len64(x|1) + 6) / 7 2683 } 2684 func sozService(x uint64) (n int) { 2685 return sovService(uint64((x << 1) ^ uint64((int64(x) >> 63)))) 2686 } 2687 func (m *GetTxsEventRequest) Unmarshal(dAtA []byte) error { 2688 l := len(dAtA) 2689 iNdEx := 0 2690 for iNdEx < l { 2691 preIndex := iNdEx 2692 var wire uint64 2693 for shift := uint(0); ; shift += 7 { 2694 if shift >= 64 { 2695 return ErrIntOverflowService 2696 } 2697 if iNdEx >= l { 2698 return io.ErrUnexpectedEOF 2699 } 2700 b := dAtA[iNdEx] 2701 iNdEx++ 2702 wire |= uint64(b&0x7F) << shift 2703 if b < 0x80 { 2704 break 2705 } 2706 } 2707 fieldNum := int32(wire >> 3) 2708 wireType := int(wire & 0x7) 2709 if wireType == 4 { 2710 return fmt.Errorf("proto: GetTxsEventRequest: wiretype end group for non-group") 2711 } 2712 if fieldNum <= 0 { 2713 return fmt.Errorf("proto: GetTxsEventRequest: illegal tag %d (wire type %d)", fieldNum, wire) 2714 } 2715 switch fieldNum { 2716 case 1: 2717 if wireType != 2 { 2718 return fmt.Errorf("proto: wrong wireType = %d for field Events", wireType) 2719 } 2720 var stringLen uint64 2721 for shift := uint(0); ; shift += 7 { 2722 if shift >= 64 { 2723 return ErrIntOverflowService 2724 } 2725 if iNdEx >= l { 2726 return io.ErrUnexpectedEOF 2727 } 2728 b := dAtA[iNdEx] 2729 iNdEx++ 2730 stringLen |= uint64(b&0x7F) << shift 2731 if b < 0x80 { 2732 break 2733 } 2734 } 2735 intStringLen := int(stringLen) 2736 if intStringLen < 0 { 2737 return ErrInvalidLengthService 2738 } 2739 postIndex := iNdEx + intStringLen 2740 if postIndex < 0 { 2741 return ErrInvalidLengthService 2742 } 2743 if postIndex > l { 2744 return io.ErrUnexpectedEOF 2745 } 2746 m.Events = append(m.Events, string(dAtA[iNdEx:postIndex])) 2747 iNdEx = postIndex 2748 case 2: 2749 if wireType != 2 { 2750 return fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType) 2751 } 2752 var msglen int 2753 for shift := uint(0); ; shift += 7 { 2754 if shift >= 64 { 2755 return ErrIntOverflowService 2756 } 2757 if iNdEx >= l { 2758 return io.ErrUnexpectedEOF 2759 } 2760 b := dAtA[iNdEx] 2761 iNdEx++ 2762 msglen |= int(b&0x7F) << shift 2763 if b < 0x80 { 2764 break 2765 } 2766 } 2767 if msglen < 0 { 2768 return ErrInvalidLengthService 2769 } 2770 postIndex := iNdEx + msglen 2771 if postIndex < 0 { 2772 return ErrInvalidLengthService 2773 } 2774 if postIndex > l { 2775 return io.ErrUnexpectedEOF 2776 } 2777 if m.Pagination == nil { 2778 m.Pagination = &query.PageRequest{} 2779 } 2780 if err := m.Pagination.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 2781 return err 2782 } 2783 iNdEx = postIndex 2784 case 3: 2785 if wireType != 0 { 2786 return fmt.Errorf("proto: wrong wireType = %d for field OrderBy", wireType) 2787 } 2788 m.OrderBy = 0 2789 for shift := uint(0); ; shift += 7 { 2790 if shift >= 64 { 2791 return ErrIntOverflowService 2792 } 2793 if iNdEx >= l { 2794 return io.ErrUnexpectedEOF 2795 } 2796 b := dAtA[iNdEx] 2797 iNdEx++ 2798 m.OrderBy |= OrderBy(b&0x7F) << shift 2799 if b < 0x80 { 2800 break 2801 } 2802 } 2803 case 4: 2804 if wireType != 0 { 2805 return fmt.Errorf("proto: wrong wireType = %d for field Page", wireType) 2806 } 2807 m.Page = 0 2808 for shift := uint(0); ; shift += 7 { 2809 if shift >= 64 { 2810 return ErrIntOverflowService 2811 } 2812 if iNdEx >= l { 2813 return io.ErrUnexpectedEOF 2814 } 2815 b := dAtA[iNdEx] 2816 iNdEx++ 2817 m.Page |= uint64(b&0x7F) << shift 2818 if b < 0x80 { 2819 break 2820 } 2821 } 2822 case 5: 2823 if wireType != 0 { 2824 return fmt.Errorf("proto: wrong wireType = %d for field Limit", wireType) 2825 } 2826 m.Limit = 0 2827 for shift := uint(0); ; shift += 7 { 2828 if shift >= 64 { 2829 return ErrIntOverflowService 2830 } 2831 if iNdEx >= l { 2832 return io.ErrUnexpectedEOF 2833 } 2834 b := dAtA[iNdEx] 2835 iNdEx++ 2836 m.Limit |= uint64(b&0x7F) << shift 2837 if b < 0x80 { 2838 break 2839 } 2840 } 2841 case 6: 2842 if wireType != 2 { 2843 return fmt.Errorf("proto: wrong wireType = %d for field Query", wireType) 2844 } 2845 var stringLen uint64 2846 for shift := uint(0); ; shift += 7 { 2847 if shift >= 64 { 2848 return ErrIntOverflowService 2849 } 2850 if iNdEx >= l { 2851 return io.ErrUnexpectedEOF 2852 } 2853 b := dAtA[iNdEx] 2854 iNdEx++ 2855 stringLen |= uint64(b&0x7F) << shift 2856 if b < 0x80 { 2857 break 2858 } 2859 } 2860 intStringLen := int(stringLen) 2861 if intStringLen < 0 { 2862 return ErrInvalidLengthService 2863 } 2864 postIndex := iNdEx + intStringLen 2865 if postIndex < 0 { 2866 return ErrInvalidLengthService 2867 } 2868 if postIndex > l { 2869 return io.ErrUnexpectedEOF 2870 } 2871 m.Query = string(dAtA[iNdEx:postIndex]) 2872 iNdEx = postIndex 2873 default: 2874 iNdEx = preIndex 2875 skippy, err := skipService(dAtA[iNdEx:]) 2876 if err != nil { 2877 return err 2878 } 2879 if (skippy < 0) || (iNdEx+skippy) < 0 { 2880 return ErrInvalidLengthService 2881 } 2882 if (iNdEx + skippy) > l { 2883 return io.ErrUnexpectedEOF 2884 } 2885 iNdEx += skippy 2886 } 2887 } 2888 2889 if iNdEx > l { 2890 return io.ErrUnexpectedEOF 2891 } 2892 return nil 2893 } 2894 func (m *GetTxsEventResponse) Unmarshal(dAtA []byte) error { 2895 l := len(dAtA) 2896 iNdEx := 0 2897 for iNdEx < l { 2898 preIndex := iNdEx 2899 var wire uint64 2900 for shift := uint(0); ; shift += 7 { 2901 if shift >= 64 { 2902 return ErrIntOverflowService 2903 } 2904 if iNdEx >= l { 2905 return io.ErrUnexpectedEOF 2906 } 2907 b := dAtA[iNdEx] 2908 iNdEx++ 2909 wire |= uint64(b&0x7F) << shift 2910 if b < 0x80 { 2911 break 2912 } 2913 } 2914 fieldNum := int32(wire >> 3) 2915 wireType := int(wire & 0x7) 2916 if wireType == 4 { 2917 return fmt.Errorf("proto: GetTxsEventResponse: wiretype end group for non-group") 2918 } 2919 if fieldNum <= 0 { 2920 return fmt.Errorf("proto: GetTxsEventResponse: illegal tag %d (wire type %d)", fieldNum, wire) 2921 } 2922 switch fieldNum { 2923 case 1: 2924 if wireType != 2 { 2925 return fmt.Errorf("proto: wrong wireType = %d for field Txs", wireType) 2926 } 2927 var msglen int 2928 for shift := uint(0); ; shift += 7 { 2929 if shift >= 64 { 2930 return ErrIntOverflowService 2931 } 2932 if iNdEx >= l { 2933 return io.ErrUnexpectedEOF 2934 } 2935 b := dAtA[iNdEx] 2936 iNdEx++ 2937 msglen |= int(b&0x7F) << shift 2938 if b < 0x80 { 2939 break 2940 } 2941 } 2942 if msglen < 0 { 2943 return ErrInvalidLengthService 2944 } 2945 postIndex := iNdEx + msglen 2946 if postIndex < 0 { 2947 return ErrInvalidLengthService 2948 } 2949 if postIndex > l { 2950 return io.ErrUnexpectedEOF 2951 } 2952 m.Txs = append(m.Txs, &Tx{}) 2953 if err := m.Txs[len(m.Txs)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 2954 return err 2955 } 2956 iNdEx = postIndex 2957 case 2: 2958 if wireType != 2 { 2959 return fmt.Errorf("proto: wrong wireType = %d for field TxResponses", wireType) 2960 } 2961 var msglen int 2962 for shift := uint(0); ; shift += 7 { 2963 if shift >= 64 { 2964 return ErrIntOverflowService 2965 } 2966 if iNdEx >= l { 2967 return io.ErrUnexpectedEOF 2968 } 2969 b := dAtA[iNdEx] 2970 iNdEx++ 2971 msglen |= int(b&0x7F) << shift 2972 if b < 0x80 { 2973 break 2974 } 2975 } 2976 if msglen < 0 { 2977 return ErrInvalidLengthService 2978 } 2979 postIndex := iNdEx + msglen 2980 if postIndex < 0 { 2981 return ErrInvalidLengthService 2982 } 2983 if postIndex > l { 2984 return io.ErrUnexpectedEOF 2985 } 2986 m.TxResponses = append(m.TxResponses, &types.TxResponse{}) 2987 if err := m.TxResponses[len(m.TxResponses)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 2988 return err 2989 } 2990 iNdEx = postIndex 2991 case 3: 2992 if wireType != 2 { 2993 return fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType) 2994 } 2995 var msglen int 2996 for shift := uint(0); ; shift += 7 { 2997 if shift >= 64 { 2998 return ErrIntOverflowService 2999 } 3000 if iNdEx >= l { 3001 return io.ErrUnexpectedEOF 3002 } 3003 b := dAtA[iNdEx] 3004 iNdEx++ 3005 msglen |= int(b&0x7F) << shift 3006 if b < 0x80 { 3007 break 3008 } 3009 } 3010 if msglen < 0 { 3011 return ErrInvalidLengthService 3012 } 3013 postIndex := iNdEx + msglen 3014 if postIndex < 0 { 3015 return ErrInvalidLengthService 3016 } 3017 if postIndex > l { 3018 return io.ErrUnexpectedEOF 3019 } 3020 if m.Pagination == nil { 3021 m.Pagination = &query.PageResponse{} 3022 } 3023 if err := m.Pagination.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 3024 return err 3025 } 3026 iNdEx = postIndex 3027 case 4: 3028 if wireType != 0 { 3029 return fmt.Errorf("proto: wrong wireType = %d for field Total", wireType) 3030 } 3031 m.Total = 0 3032 for shift := uint(0); ; shift += 7 { 3033 if shift >= 64 { 3034 return ErrIntOverflowService 3035 } 3036 if iNdEx >= l { 3037 return io.ErrUnexpectedEOF 3038 } 3039 b := dAtA[iNdEx] 3040 iNdEx++ 3041 m.Total |= uint64(b&0x7F) << shift 3042 if b < 0x80 { 3043 break 3044 } 3045 } 3046 default: 3047 iNdEx = preIndex 3048 skippy, err := skipService(dAtA[iNdEx:]) 3049 if err != nil { 3050 return err 3051 } 3052 if (skippy < 0) || (iNdEx+skippy) < 0 { 3053 return ErrInvalidLengthService 3054 } 3055 if (iNdEx + skippy) > l { 3056 return io.ErrUnexpectedEOF 3057 } 3058 iNdEx += skippy 3059 } 3060 } 3061 3062 if iNdEx > l { 3063 return io.ErrUnexpectedEOF 3064 } 3065 return nil 3066 } 3067 func (m *BroadcastTxRequest) Unmarshal(dAtA []byte) error { 3068 l := len(dAtA) 3069 iNdEx := 0 3070 for iNdEx < l { 3071 preIndex := iNdEx 3072 var wire uint64 3073 for shift := uint(0); ; shift += 7 { 3074 if shift >= 64 { 3075 return ErrIntOverflowService 3076 } 3077 if iNdEx >= l { 3078 return io.ErrUnexpectedEOF 3079 } 3080 b := dAtA[iNdEx] 3081 iNdEx++ 3082 wire |= uint64(b&0x7F) << shift 3083 if b < 0x80 { 3084 break 3085 } 3086 } 3087 fieldNum := int32(wire >> 3) 3088 wireType := int(wire & 0x7) 3089 if wireType == 4 { 3090 return fmt.Errorf("proto: BroadcastTxRequest: wiretype end group for non-group") 3091 } 3092 if fieldNum <= 0 { 3093 return fmt.Errorf("proto: BroadcastTxRequest: illegal tag %d (wire type %d)", fieldNum, wire) 3094 } 3095 switch fieldNum { 3096 case 1: 3097 if wireType != 2 { 3098 return fmt.Errorf("proto: wrong wireType = %d for field TxBytes", wireType) 3099 } 3100 var byteLen int 3101 for shift := uint(0); ; shift += 7 { 3102 if shift >= 64 { 3103 return ErrIntOverflowService 3104 } 3105 if iNdEx >= l { 3106 return io.ErrUnexpectedEOF 3107 } 3108 b := dAtA[iNdEx] 3109 iNdEx++ 3110 byteLen |= int(b&0x7F) << shift 3111 if b < 0x80 { 3112 break 3113 } 3114 } 3115 if byteLen < 0 { 3116 return ErrInvalidLengthService 3117 } 3118 postIndex := iNdEx + byteLen 3119 if postIndex < 0 { 3120 return ErrInvalidLengthService 3121 } 3122 if postIndex > l { 3123 return io.ErrUnexpectedEOF 3124 } 3125 m.TxBytes = append(m.TxBytes[:0], dAtA[iNdEx:postIndex]...) 3126 if m.TxBytes == nil { 3127 m.TxBytes = []byte{} 3128 } 3129 iNdEx = postIndex 3130 case 2: 3131 if wireType != 0 { 3132 return fmt.Errorf("proto: wrong wireType = %d for field Mode", wireType) 3133 } 3134 m.Mode = 0 3135 for shift := uint(0); ; shift += 7 { 3136 if shift >= 64 { 3137 return ErrIntOverflowService 3138 } 3139 if iNdEx >= l { 3140 return io.ErrUnexpectedEOF 3141 } 3142 b := dAtA[iNdEx] 3143 iNdEx++ 3144 m.Mode |= BroadcastMode(b&0x7F) << shift 3145 if b < 0x80 { 3146 break 3147 } 3148 } 3149 default: 3150 iNdEx = preIndex 3151 skippy, err := skipService(dAtA[iNdEx:]) 3152 if err != nil { 3153 return err 3154 } 3155 if (skippy < 0) || (iNdEx+skippy) < 0 { 3156 return ErrInvalidLengthService 3157 } 3158 if (iNdEx + skippy) > l { 3159 return io.ErrUnexpectedEOF 3160 } 3161 iNdEx += skippy 3162 } 3163 } 3164 3165 if iNdEx > l { 3166 return io.ErrUnexpectedEOF 3167 } 3168 return nil 3169 } 3170 func (m *BroadcastTxResponse) Unmarshal(dAtA []byte) error { 3171 l := len(dAtA) 3172 iNdEx := 0 3173 for iNdEx < l { 3174 preIndex := iNdEx 3175 var wire uint64 3176 for shift := uint(0); ; shift += 7 { 3177 if shift >= 64 { 3178 return ErrIntOverflowService 3179 } 3180 if iNdEx >= l { 3181 return io.ErrUnexpectedEOF 3182 } 3183 b := dAtA[iNdEx] 3184 iNdEx++ 3185 wire |= uint64(b&0x7F) << shift 3186 if b < 0x80 { 3187 break 3188 } 3189 } 3190 fieldNum := int32(wire >> 3) 3191 wireType := int(wire & 0x7) 3192 if wireType == 4 { 3193 return fmt.Errorf("proto: BroadcastTxResponse: wiretype end group for non-group") 3194 } 3195 if fieldNum <= 0 { 3196 return fmt.Errorf("proto: BroadcastTxResponse: illegal tag %d (wire type %d)", fieldNum, wire) 3197 } 3198 switch fieldNum { 3199 case 1: 3200 if wireType != 2 { 3201 return fmt.Errorf("proto: wrong wireType = %d for field TxResponse", wireType) 3202 } 3203 var msglen int 3204 for shift := uint(0); ; shift += 7 { 3205 if shift >= 64 { 3206 return ErrIntOverflowService 3207 } 3208 if iNdEx >= l { 3209 return io.ErrUnexpectedEOF 3210 } 3211 b := dAtA[iNdEx] 3212 iNdEx++ 3213 msglen |= int(b&0x7F) << shift 3214 if b < 0x80 { 3215 break 3216 } 3217 } 3218 if msglen < 0 { 3219 return ErrInvalidLengthService 3220 } 3221 postIndex := iNdEx + msglen 3222 if postIndex < 0 { 3223 return ErrInvalidLengthService 3224 } 3225 if postIndex > l { 3226 return io.ErrUnexpectedEOF 3227 } 3228 if m.TxResponse == nil { 3229 m.TxResponse = &types.TxResponse{} 3230 } 3231 if err := m.TxResponse.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 3232 return err 3233 } 3234 iNdEx = postIndex 3235 default: 3236 iNdEx = preIndex 3237 skippy, err := skipService(dAtA[iNdEx:]) 3238 if err != nil { 3239 return err 3240 } 3241 if (skippy < 0) || (iNdEx+skippy) < 0 { 3242 return ErrInvalidLengthService 3243 } 3244 if (iNdEx + skippy) > l { 3245 return io.ErrUnexpectedEOF 3246 } 3247 iNdEx += skippy 3248 } 3249 } 3250 3251 if iNdEx > l { 3252 return io.ErrUnexpectedEOF 3253 } 3254 return nil 3255 } 3256 func (m *SimulateRequest) Unmarshal(dAtA []byte) error { 3257 l := len(dAtA) 3258 iNdEx := 0 3259 for iNdEx < l { 3260 preIndex := iNdEx 3261 var wire uint64 3262 for shift := uint(0); ; shift += 7 { 3263 if shift >= 64 { 3264 return ErrIntOverflowService 3265 } 3266 if iNdEx >= l { 3267 return io.ErrUnexpectedEOF 3268 } 3269 b := dAtA[iNdEx] 3270 iNdEx++ 3271 wire |= uint64(b&0x7F) << shift 3272 if b < 0x80 { 3273 break 3274 } 3275 } 3276 fieldNum := int32(wire >> 3) 3277 wireType := int(wire & 0x7) 3278 if wireType == 4 { 3279 return fmt.Errorf("proto: SimulateRequest: wiretype end group for non-group") 3280 } 3281 if fieldNum <= 0 { 3282 return fmt.Errorf("proto: SimulateRequest: illegal tag %d (wire type %d)", fieldNum, wire) 3283 } 3284 switch fieldNum { 3285 case 1: 3286 if wireType != 2 { 3287 return fmt.Errorf("proto: wrong wireType = %d for field Tx", wireType) 3288 } 3289 var msglen int 3290 for shift := uint(0); ; shift += 7 { 3291 if shift >= 64 { 3292 return ErrIntOverflowService 3293 } 3294 if iNdEx >= l { 3295 return io.ErrUnexpectedEOF 3296 } 3297 b := dAtA[iNdEx] 3298 iNdEx++ 3299 msglen |= int(b&0x7F) << shift 3300 if b < 0x80 { 3301 break 3302 } 3303 } 3304 if msglen < 0 { 3305 return ErrInvalidLengthService 3306 } 3307 postIndex := iNdEx + msglen 3308 if postIndex < 0 { 3309 return ErrInvalidLengthService 3310 } 3311 if postIndex > l { 3312 return io.ErrUnexpectedEOF 3313 } 3314 if m.Tx == nil { 3315 m.Tx = &Tx{} 3316 } 3317 if err := m.Tx.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 3318 return err 3319 } 3320 iNdEx = postIndex 3321 case 2: 3322 if wireType != 2 { 3323 return fmt.Errorf("proto: wrong wireType = %d for field TxBytes", wireType) 3324 } 3325 var byteLen int 3326 for shift := uint(0); ; shift += 7 { 3327 if shift >= 64 { 3328 return ErrIntOverflowService 3329 } 3330 if iNdEx >= l { 3331 return io.ErrUnexpectedEOF 3332 } 3333 b := dAtA[iNdEx] 3334 iNdEx++ 3335 byteLen |= int(b&0x7F) << shift 3336 if b < 0x80 { 3337 break 3338 } 3339 } 3340 if byteLen < 0 { 3341 return ErrInvalidLengthService 3342 } 3343 postIndex := iNdEx + byteLen 3344 if postIndex < 0 { 3345 return ErrInvalidLengthService 3346 } 3347 if postIndex > l { 3348 return io.ErrUnexpectedEOF 3349 } 3350 m.TxBytes = append(m.TxBytes[:0], dAtA[iNdEx:postIndex]...) 3351 if m.TxBytes == nil { 3352 m.TxBytes = []byte{} 3353 } 3354 iNdEx = postIndex 3355 default: 3356 iNdEx = preIndex 3357 skippy, err := skipService(dAtA[iNdEx:]) 3358 if err != nil { 3359 return err 3360 } 3361 if (skippy < 0) || (iNdEx+skippy) < 0 { 3362 return ErrInvalidLengthService 3363 } 3364 if (iNdEx + skippy) > l { 3365 return io.ErrUnexpectedEOF 3366 } 3367 iNdEx += skippy 3368 } 3369 } 3370 3371 if iNdEx > l { 3372 return io.ErrUnexpectedEOF 3373 } 3374 return nil 3375 } 3376 func (m *SimulateResponse) Unmarshal(dAtA []byte) error { 3377 l := len(dAtA) 3378 iNdEx := 0 3379 for iNdEx < l { 3380 preIndex := iNdEx 3381 var wire uint64 3382 for shift := uint(0); ; shift += 7 { 3383 if shift >= 64 { 3384 return ErrIntOverflowService 3385 } 3386 if iNdEx >= l { 3387 return io.ErrUnexpectedEOF 3388 } 3389 b := dAtA[iNdEx] 3390 iNdEx++ 3391 wire |= uint64(b&0x7F) << shift 3392 if b < 0x80 { 3393 break 3394 } 3395 } 3396 fieldNum := int32(wire >> 3) 3397 wireType := int(wire & 0x7) 3398 if wireType == 4 { 3399 return fmt.Errorf("proto: SimulateResponse: wiretype end group for non-group") 3400 } 3401 if fieldNum <= 0 { 3402 return fmt.Errorf("proto: SimulateResponse: illegal tag %d (wire type %d)", fieldNum, wire) 3403 } 3404 switch fieldNum { 3405 case 1: 3406 if wireType != 2 { 3407 return fmt.Errorf("proto: wrong wireType = %d for field GasInfo", wireType) 3408 } 3409 var msglen int 3410 for shift := uint(0); ; shift += 7 { 3411 if shift >= 64 { 3412 return ErrIntOverflowService 3413 } 3414 if iNdEx >= l { 3415 return io.ErrUnexpectedEOF 3416 } 3417 b := dAtA[iNdEx] 3418 iNdEx++ 3419 msglen |= int(b&0x7F) << shift 3420 if b < 0x80 { 3421 break 3422 } 3423 } 3424 if msglen < 0 { 3425 return ErrInvalidLengthService 3426 } 3427 postIndex := iNdEx + msglen 3428 if postIndex < 0 { 3429 return ErrInvalidLengthService 3430 } 3431 if postIndex > l { 3432 return io.ErrUnexpectedEOF 3433 } 3434 if m.GasInfo == nil { 3435 m.GasInfo = &types.GasInfo{} 3436 } 3437 if err := m.GasInfo.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 3438 return err 3439 } 3440 iNdEx = postIndex 3441 case 2: 3442 if wireType != 2 { 3443 return fmt.Errorf("proto: wrong wireType = %d for field Result", wireType) 3444 } 3445 var msglen int 3446 for shift := uint(0); ; shift += 7 { 3447 if shift >= 64 { 3448 return ErrIntOverflowService 3449 } 3450 if iNdEx >= l { 3451 return io.ErrUnexpectedEOF 3452 } 3453 b := dAtA[iNdEx] 3454 iNdEx++ 3455 msglen |= int(b&0x7F) << shift 3456 if b < 0x80 { 3457 break 3458 } 3459 } 3460 if msglen < 0 { 3461 return ErrInvalidLengthService 3462 } 3463 postIndex := iNdEx + msglen 3464 if postIndex < 0 { 3465 return ErrInvalidLengthService 3466 } 3467 if postIndex > l { 3468 return io.ErrUnexpectedEOF 3469 } 3470 if m.Result == nil { 3471 m.Result = &types.Result{} 3472 } 3473 if err := m.Result.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 3474 return err 3475 } 3476 iNdEx = postIndex 3477 default: 3478 iNdEx = preIndex 3479 skippy, err := skipService(dAtA[iNdEx:]) 3480 if err != nil { 3481 return err 3482 } 3483 if (skippy < 0) || (iNdEx+skippy) < 0 { 3484 return ErrInvalidLengthService 3485 } 3486 if (iNdEx + skippy) > l { 3487 return io.ErrUnexpectedEOF 3488 } 3489 iNdEx += skippy 3490 } 3491 } 3492 3493 if iNdEx > l { 3494 return io.ErrUnexpectedEOF 3495 } 3496 return nil 3497 } 3498 func (m *GetTxRequest) Unmarshal(dAtA []byte) error { 3499 l := len(dAtA) 3500 iNdEx := 0 3501 for iNdEx < l { 3502 preIndex := iNdEx 3503 var wire uint64 3504 for shift := uint(0); ; shift += 7 { 3505 if shift >= 64 { 3506 return ErrIntOverflowService 3507 } 3508 if iNdEx >= l { 3509 return io.ErrUnexpectedEOF 3510 } 3511 b := dAtA[iNdEx] 3512 iNdEx++ 3513 wire |= uint64(b&0x7F) << shift 3514 if b < 0x80 { 3515 break 3516 } 3517 } 3518 fieldNum := int32(wire >> 3) 3519 wireType := int(wire & 0x7) 3520 if wireType == 4 { 3521 return fmt.Errorf("proto: GetTxRequest: wiretype end group for non-group") 3522 } 3523 if fieldNum <= 0 { 3524 return fmt.Errorf("proto: GetTxRequest: illegal tag %d (wire type %d)", fieldNum, wire) 3525 } 3526 switch fieldNum { 3527 case 1: 3528 if wireType != 2 { 3529 return fmt.Errorf("proto: wrong wireType = %d for field Hash", wireType) 3530 } 3531 var stringLen uint64 3532 for shift := uint(0); ; shift += 7 { 3533 if shift >= 64 { 3534 return ErrIntOverflowService 3535 } 3536 if iNdEx >= l { 3537 return io.ErrUnexpectedEOF 3538 } 3539 b := dAtA[iNdEx] 3540 iNdEx++ 3541 stringLen |= uint64(b&0x7F) << shift 3542 if b < 0x80 { 3543 break 3544 } 3545 } 3546 intStringLen := int(stringLen) 3547 if intStringLen < 0 { 3548 return ErrInvalidLengthService 3549 } 3550 postIndex := iNdEx + intStringLen 3551 if postIndex < 0 { 3552 return ErrInvalidLengthService 3553 } 3554 if postIndex > l { 3555 return io.ErrUnexpectedEOF 3556 } 3557 m.Hash = string(dAtA[iNdEx:postIndex]) 3558 iNdEx = postIndex 3559 default: 3560 iNdEx = preIndex 3561 skippy, err := skipService(dAtA[iNdEx:]) 3562 if err != nil { 3563 return err 3564 } 3565 if (skippy < 0) || (iNdEx+skippy) < 0 { 3566 return ErrInvalidLengthService 3567 } 3568 if (iNdEx + skippy) > l { 3569 return io.ErrUnexpectedEOF 3570 } 3571 iNdEx += skippy 3572 } 3573 } 3574 3575 if iNdEx > l { 3576 return io.ErrUnexpectedEOF 3577 } 3578 return nil 3579 } 3580 func (m *GetTxResponse) Unmarshal(dAtA []byte) error { 3581 l := len(dAtA) 3582 iNdEx := 0 3583 for iNdEx < l { 3584 preIndex := iNdEx 3585 var wire uint64 3586 for shift := uint(0); ; shift += 7 { 3587 if shift >= 64 { 3588 return ErrIntOverflowService 3589 } 3590 if iNdEx >= l { 3591 return io.ErrUnexpectedEOF 3592 } 3593 b := dAtA[iNdEx] 3594 iNdEx++ 3595 wire |= uint64(b&0x7F) << shift 3596 if b < 0x80 { 3597 break 3598 } 3599 } 3600 fieldNum := int32(wire >> 3) 3601 wireType := int(wire & 0x7) 3602 if wireType == 4 { 3603 return fmt.Errorf("proto: GetTxResponse: wiretype end group for non-group") 3604 } 3605 if fieldNum <= 0 { 3606 return fmt.Errorf("proto: GetTxResponse: illegal tag %d (wire type %d)", fieldNum, wire) 3607 } 3608 switch fieldNum { 3609 case 1: 3610 if wireType != 2 { 3611 return fmt.Errorf("proto: wrong wireType = %d for field Tx", wireType) 3612 } 3613 var msglen int 3614 for shift := uint(0); ; shift += 7 { 3615 if shift >= 64 { 3616 return ErrIntOverflowService 3617 } 3618 if iNdEx >= l { 3619 return io.ErrUnexpectedEOF 3620 } 3621 b := dAtA[iNdEx] 3622 iNdEx++ 3623 msglen |= int(b&0x7F) << shift 3624 if b < 0x80 { 3625 break 3626 } 3627 } 3628 if msglen < 0 { 3629 return ErrInvalidLengthService 3630 } 3631 postIndex := iNdEx + msglen 3632 if postIndex < 0 { 3633 return ErrInvalidLengthService 3634 } 3635 if postIndex > l { 3636 return io.ErrUnexpectedEOF 3637 } 3638 if m.Tx == nil { 3639 m.Tx = &Tx{} 3640 } 3641 if err := m.Tx.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 3642 return err 3643 } 3644 iNdEx = postIndex 3645 case 2: 3646 if wireType != 2 { 3647 return fmt.Errorf("proto: wrong wireType = %d for field TxResponse", wireType) 3648 } 3649 var msglen int 3650 for shift := uint(0); ; shift += 7 { 3651 if shift >= 64 { 3652 return ErrIntOverflowService 3653 } 3654 if iNdEx >= l { 3655 return io.ErrUnexpectedEOF 3656 } 3657 b := dAtA[iNdEx] 3658 iNdEx++ 3659 msglen |= int(b&0x7F) << shift 3660 if b < 0x80 { 3661 break 3662 } 3663 } 3664 if msglen < 0 { 3665 return ErrInvalidLengthService 3666 } 3667 postIndex := iNdEx + msglen 3668 if postIndex < 0 { 3669 return ErrInvalidLengthService 3670 } 3671 if postIndex > l { 3672 return io.ErrUnexpectedEOF 3673 } 3674 if m.TxResponse == nil { 3675 m.TxResponse = &types.TxResponse{} 3676 } 3677 if err := m.TxResponse.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 3678 return err 3679 } 3680 iNdEx = postIndex 3681 default: 3682 iNdEx = preIndex 3683 skippy, err := skipService(dAtA[iNdEx:]) 3684 if err != nil { 3685 return err 3686 } 3687 if (skippy < 0) || (iNdEx+skippy) < 0 { 3688 return ErrInvalidLengthService 3689 } 3690 if (iNdEx + skippy) > l { 3691 return io.ErrUnexpectedEOF 3692 } 3693 iNdEx += skippy 3694 } 3695 } 3696 3697 if iNdEx > l { 3698 return io.ErrUnexpectedEOF 3699 } 3700 return nil 3701 } 3702 func (m *GetBlockWithTxsRequest) Unmarshal(dAtA []byte) error { 3703 l := len(dAtA) 3704 iNdEx := 0 3705 for iNdEx < l { 3706 preIndex := iNdEx 3707 var wire uint64 3708 for shift := uint(0); ; shift += 7 { 3709 if shift >= 64 { 3710 return ErrIntOverflowService 3711 } 3712 if iNdEx >= l { 3713 return io.ErrUnexpectedEOF 3714 } 3715 b := dAtA[iNdEx] 3716 iNdEx++ 3717 wire |= uint64(b&0x7F) << shift 3718 if b < 0x80 { 3719 break 3720 } 3721 } 3722 fieldNum := int32(wire >> 3) 3723 wireType := int(wire & 0x7) 3724 if wireType == 4 { 3725 return fmt.Errorf("proto: GetBlockWithTxsRequest: wiretype end group for non-group") 3726 } 3727 if fieldNum <= 0 { 3728 return fmt.Errorf("proto: GetBlockWithTxsRequest: illegal tag %d (wire type %d)", fieldNum, wire) 3729 } 3730 switch fieldNum { 3731 case 1: 3732 if wireType != 0 { 3733 return fmt.Errorf("proto: wrong wireType = %d for field Height", wireType) 3734 } 3735 m.Height = 0 3736 for shift := uint(0); ; shift += 7 { 3737 if shift >= 64 { 3738 return ErrIntOverflowService 3739 } 3740 if iNdEx >= l { 3741 return io.ErrUnexpectedEOF 3742 } 3743 b := dAtA[iNdEx] 3744 iNdEx++ 3745 m.Height |= int64(b&0x7F) << shift 3746 if b < 0x80 { 3747 break 3748 } 3749 } 3750 case 2: 3751 if wireType != 2 { 3752 return fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType) 3753 } 3754 var msglen int 3755 for shift := uint(0); ; shift += 7 { 3756 if shift >= 64 { 3757 return ErrIntOverflowService 3758 } 3759 if iNdEx >= l { 3760 return io.ErrUnexpectedEOF 3761 } 3762 b := dAtA[iNdEx] 3763 iNdEx++ 3764 msglen |= int(b&0x7F) << shift 3765 if b < 0x80 { 3766 break 3767 } 3768 } 3769 if msglen < 0 { 3770 return ErrInvalidLengthService 3771 } 3772 postIndex := iNdEx + msglen 3773 if postIndex < 0 { 3774 return ErrInvalidLengthService 3775 } 3776 if postIndex > l { 3777 return io.ErrUnexpectedEOF 3778 } 3779 if m.Pagination == nil { 3780 m.Pagination = &query.PageRequest{} 3781 } 3782 if err := m.Pagination.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 3783 return err 3784 } 3785 iNdEx = postIndex 3786 default: 3787 iNdEx = preIndex 3788 skippy, err := skipService(dAtA[iNdEx:]) 3789 if err != nil { 3790 return err 3791 } 3792 if (skippy < 0) || (iNdEx+skippy) < 0 { 3793 return ErrInvalidLengthService 3794 } 3795 if (iNdEx + skippy) > l { 3796 return io.ErrUnexpectedEOF 3797 } 3798 iNdEx += skippy 3799 } 3800 } 3801 3802 if iNdEx > l { 3803 return io.ErrUnexpectedEOF 3804 } 3805 return nil 3806 } 3807 func (m *GetBlockWithTxsResponse) Unmarshal(dAtA []byte) error { 3808 l := len(dAtA) 3809 iNdEx := 0 3810 for iNdEx < l { 3811 preIndex := iNdEx 3812 var wire uint64 3813 for shift := uint(0); ; shift += 7 { 3814 if shift >= 64 { 3815 return ErrIntOverflowService 3816 } 3817 if iNdEx >= l { 3818 return io.ErrUnexpectedEOF 3819 } 3820 b := dAtA[iNdEx] 3821 iNdEx++ 3822 wire |= uint64(b&0x7F) << shift 3823 if b < 0x80 { 3824 break 3825 } 3826 } 3827 fieldNum := int32(wire >> 3) 3828 wireType := int(wire & 0x7) 3829 if wireType == 4 { 3830 return fmt.Errorf("proto: GetBlockWithTxsResponse: wiretype end group for non-group") 3831 } 3832 if fieldNum <= 0 { 3833 return fmt.Errorf("proto: GetBlockWithTxsResponse: illegal tag %d (wire type %d)", fieldNum, wire) 3834 } 3835 switch fieldNum { 3836 case 1: 3837 if wireType != 2 { 3838 return fmt.Errorf("proto: wrong wireType = %d for field Txs", wireType) 3839 } 3840 var msglen int 3841 for shift := uint(0); ; shift += 7 { 3842 if shift >= 64 { 3843 return ErrIntOverflowService 3844 } 3845 if iNdEx >= l { 3846 return io.ErrUnexpectedEOF 3847 } 3848 b := dAtA[iNdEx] 3849 iNdEx++ 3850 msglen |= int(b&0x7F) << shift 3851 if b < 0x80 { 3852 break 3853 } 3854 } 3855 if msglen < 0 { 3856 return ErrInvalidLengthService 3857 } 3858 postIndex := iNdEx + msglen 3859 if postIndex < 0 { 3860 return ErrInvalidLengthService 3861 } 3862 if postIndex > l { 3863 return io.ErrUnexpectedEOF 3864 } 3865 m.Txs = append(m.Txs, &Tx{}) 3866 if err := m.Txs[len(m.Txs)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 3867 return err 3868 } 3869 iNdEx = postIndex 3870 case 2: 3871 if wireType != 2 { 3872 return fmt.Errorf("proto: wrong wireType = %d for field BlockId", wireType) 3873 } 3874 var msglen int 3875 for shift := uint(0); ; shift += 7 { 3876 if shift >= 64 { 3877 return ErrIntOverflowService 3878 } 3879 if iNdEx >= l { 3880 return io.ErrUnexpectedEOF 3881 } 3882 b := dAtA[iNdEx] 3883 iNdEx++ 3884 msglen |= int(b&0x7F) << shift 3885 if b < 0x80 { 3886 break 3887 } 3888 } 3889 if msglen < 0 { 3890 return ErrInvalidLengthService 3891 } 3892 postIndex := iNdEx + msglen 3893 if postIndex < 0 { 3894 return ErrInvalidLengthService 3895 } 3896 if postIndex > l { 3897 return io.ErrUnexpectedEOF 3898 } 3899 if m.BlockId == nil { 3900 m.BlockId = &types1.BlockID{} 3901 } 3902 if err := m.BlockId.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 3903 return err 3904 } 3905 iNdEx = postIndex 3906 case 3: 3907 if wireType != 2 { 3908 return fmt.Errorf("proto: wrong wireType = %d for field Block", wireType) 3909 } 3910 var msglen int 3911 for shift := uint(0); ; shift += 7 { 3912 if shift >= 64 { 3913 return ErrIntOverflowService 3914 } 3915 if iNdEx >= l { 3916 return io.ErrUnexpectedEOF 3917 } 3918 b := dAtA[iNdEx] 3919 iNdEx++ 3920 msglen |= int(b&0x7F) << shift 3921 if b < 0x80 { 3922 break 3923 } 3924 } 3925 if msglen < 0 { 3926 return ErrInvalidLengthService 3927 } 3928 postIndex := iNdEx + msglen 3929 if postIndex < 0 { 3930 return ErrInvalidLengthService 3931 } 3932 if postIndex > l { 3933 return io.ErrUnexpectedEOF 3934 } 3935 if m.Block == nil { 3936 m.Block = &types1.Block{} 3937 } 3938 if err := m.Block.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 3939 return err 3940 } 3941 iNdEx = postIndex 3942 case 4: 3943 if wireType != 2 { 3944 return fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType) 3945 } 3946 var msglen int 3947 for shift := uint(0); ; shift += 7 { 3948 if shift >= 64 { 3949 return ErrIntOverflowService 3950 } 3951 if iNdEx >= l { 3952 return io.ErrUnexpectedEOF 3953 } 3954 b := dAtA[iNdEx] 3955 iNdEx++ 3956 msglen |= int(b&0x7F) << shift 3957 if b < 0x80 { 3958 break 3959 } 3960 } 3961 if msglen < 0 { 3962 return ErrInvalidLengthService 3963 } 3964 postIndex := iNdEx + msglen 3965 if postIndex < 0 { 3966 return ErrInvalidLengthService 3967 } 3968 if postIndex > l { 3969 return io.ErrUnexpectedEOF 3970 } 3971 if m.Pagination == nil { 3972 m.Pagination = &query.PageResponse{} 3973 } 3974 if err := m.Pagination.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 3975 return err 3976 } 3977 iNdEx = postIndex 3978 default: 3979 iNdEx = preIndex 3980 skippy, err := skipService(dAtA[iNdEx:]) 3981 if err != nil { 3982 return err 3983 } 3984 if (skippy < 0) || (iNdEx+skippy) < 0 { 3985 return ErrInvalidLengthService 3986 } 3987 if (iNdEx + skippy) > l { 3988 return io.ErrUnexpectedEOF 3989 } 3990 iNdEx += skippy 3991 } 3992 } 3993 3994 if iNdEx > l { 3995 return io.ErrUnexpectedEOF 3996 } 3997 return nil 3998 } 3999 func (m *TxDecodeRequest) Unmarshal(dAtA []byte) error { 4000 l := len(dAtA) 4001 iNdEx := 0 4002 for iNdEx < l { 4003 preIndex := iNdEx 4004 var wire uint64 4005 for shift := uint(0); ; shift += 7 { 4006 if shift >= 64 { 4007 return ErrIntOverflowService 4008 } 4009 if iNdEx >= l { 4010 return io.ErrUnexpectedEOF 4011 } 4012 b := dAtA[iNdEx] 4013 iNdEx++ 4014 wire |= uint64(b&0x7F) << shift 4015 if b < 0x80 { 4016 break 4017 } 4018 } 4019 fieldNum := int32(wire >> 3) 4020 wireType := int(wire & 0x7) 4021 if wireType == 4 { 4022 return fmt.Errorf("proto: TxDecodeRequest: wiretype end group for non-group") 4023 } 4024 if fieldNum <= 0 { 4025 return fmt.Errorf("proto: TxDecodeRequest: illegal tag %d (wire type %d)", fieldNum, wire) 4026 } 4027 switch fieldNum { 4028 case 1: 4029 if wireType != 2 { 4030 return fmt.Errorf("proto: wrong wireType = %d for field TxBytes", wireType) 4031 } 4032 var byteLen int 4033 for shift := uint(0); ; shift += 7 { 4034 if shift >= 64 { 4035 return ErrIntOverflowService 4036 } 4037 if iNdEx >= l { 4038 return io.ErrUnexpectedEOF 4039 } 4040 b := dAtA[iNdEx] 4041 iNdEx++ 4042 byteLen |= int(b&0x7F) << shift 4043 if b < 0x80 { 4044 break 4045 } 4046 } 4047 if byteLen < 0 { 4048 return ErrInvalidLengthService 4049 } 4050 postIndex := iNdEx + byteLen 4051 if postIndex < 0 { 4052 return ErrInvalidLengthService 4053 } 4054 if postIndex > l { 4055 return io.ErrUnexpectedEOF 4056 } 4057 m.TxBytes = append(m.TxBytes[:0], dAtA[iNdEx:postIndex]...) 4058 if m.TxBytes == nil { 4059 m.TxBytes = []byte{} 4060 } 4061 iNdEx = postIndex 4062 default: 4063 iNdEx = preIndex 4064 skippy, err := skipService(dAtA[iNdEx:]) 4065 if err != nil { 4066 return err 4067 } 4068 if (skippy < 0) || (iNdEx+skippy) < 0 { 4069 return ErrInvalidLengthService 4070 } 4071 if (iNdEx + skippy) > l { 4072 return io.ErrUnexpectedEOF 4073 } 4074 iNdEx += skippy 4075 } 4076 } 4077 4078 if iNdEx > l { 4079 return io.ErrUnexpectedEOF 4080 } 4081 return nil 4082 } 4083 func (m *TxDecodeResponse) Unmarshal(dAtA []byte) error { 4084 l := len(dAtA) 4085 iNdEx := 0 4086 for iNdEx < l { 4087 preIndex := iNdEx 4088 var wire uint64 4089 for shift := uint(0); ; shift += 7 { 4090 if shift >= 64 { 4091 return ErrIntOverflowService 4092 } 4093 if iNdEx >= l { 4094 return io.ErrUnexpectedEOF 4095 } 4096 b := dAtA[iNdEx] 4097 iNdEx++ 4098 wire |= uint64(b&0x7F) << shift 4099 if b < 0x80 { 4100 break 4101 } 4102 } 4103 fieldNum := int32(wire >> 3) 4104 wireType := int(wire & 0x7) 4105 if wireType == 4 { 4106 return fmt.Errorf("proto: TxDecodeResponse: wiretype end group for non-group") 4107 } 4108 if fieldNum <= 0 { 4109 return fmt.Errorf("proto: TxDecodeResponse: illegal tag %d (wire type %d)", fieldNum, wire) 4110 } 4111 switch fieldNum { 4112 case 1: 4113 if wireType != 2 { 4114 return fmt.Errorf("proto: wrong wireType = %d for field Tx", wireType) 4115 } 4116 var msglen int 4117 for shift := uint(0); ; shift += 7 { 4118 if shift >= 64 { 4119 return ErrIntOverflowService 4120 } 4121 if iNdEx >= l { 4122 return io.ErrUnexpectedEOF 4123 } 4124 b := dAtA[iNdEx] 4125 iNdEx++ 4126 msglen |= int(b&0x7F) << shift 4127 if b < 0x80 { 4128 break 4129 } 4130 } 4131 if msglen < 0 { 4132 return ErrInvalidLengthService 4133 } 4134 postIndex := iNdEx + msglen 4135 if postIndex < 0 { 4136 return ErrInvalidLengthService 4137 } 4138 if postIndex > l { 4139 return io.ErrUnexpectedEOF 4140 } 4141 if m.Tx == nil { 4142 m.Tx = &Tx{} 4143 } 4144 if err := m.Tx.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 4145 return err 4146 } 4147 iNdEx = postIndex 4148 default: 4149 iNdEx = preIndex 4150 skippy, err := skipService(dAtA[iNdEx:]) 4151 if err != nil { 4152 return err 4153 } 4154 if (skippy < 0) || (iNdEx+skippy) < 0 { 4155 return ErrInvalidLengthService 4156 } 4157 if (iNdEx + skippy) > l { 4158 return io.ErrUnexpectedEOF 4159 } 4160 iNdEx += skippy 4161 } 4162 } 4163 4164 if iNdEx > l { 4165 return io.ErrUnexpectedEOF 4166 } 4167 return nil 4168 } 4169 func (m *TxEncodeRequest) Unmarshal(dAtA []byte) error { 4170 l := len(dAtA) 4171 iNdEx := 0 4172 for iNdEx < l { 4173 preIndex := iNdEx 4174 var wire uint64 4175 for shift := uint(0); ; shift += 7 { 4176 if shift >= 64 { 4177 return ErrIntOverflowService 4178 } 4179 if iNdEx >= l { 4180 return io.ErrUnexpectedEOF 4181 } 4182 b := dAtA[iNdEx] 4183 iNdEx++ 4184 wire |= uint64(b&0x7F) << shift 4185 if b < 0x80 { 4186 break 4187 } 4188 } 4189 fieldNum := int32(wire >> 3) 4190 wireType := int(wire & 0x7) 4191 if wireType == 4 { 4192 return fmt.Errorf("proto: TxEncodeRequest: wiretype end group for non-group") 4193 } 4194 if fieldNum <= 0 { 4195 return fmt.Errorf("proto: TxEncodeRequest: illegal tag %d (wire type %d)", fieldNum, wire) 4196 } 4197 switch fieldNum { 4198 case 1: 4199 if wireType != 2 { 4200 return fmt.Errorf("proto: wrong wireType = %d for field Tx", wireType) 4201 } 4202 var msglen int 4203 for shift := uint(0); ; shift += 7 { 4204 if shift >= 64 { 4205 return ErrIntOverflowService 4206 } 4207 if iNdEx >= l { 4208 return io.ErrUnexpectedEOF 4209 } 4210 b := dAtA[iNdEx] 4211 iNdEx++ 4212 msglen |= int(b&0x7F) << shift 4213 if b < 0x80 { 4214 break 4215 } 4216 } 4217 if msglen < 0 { 4218 return ErrInvalidLengthService 4219 } 4220 postIndex := iNdEx + msglen 4221 if postIndex < 0 { 4222 return ErrInvalidLengthService 4223 } 4224 if postIndex > l { 4225 return io.ErrUnexpectedEOF 4226 } 4227 if m.Tx == nil { 4228 m.Tx = &Tx{} 4229 } 4230 if err := m.Tx.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 4231 return err 4232 } 4233 iNdEx = postIndex 4234 default: 4235 iNdEx = preIndex 4236 skippy, err := skipService(dAtA[iNdEx:]) 4237 if err != nil { 4238 return err 4239 } 4240 if (skippy < 0) || (iNdEx+skippy) < 0 { 4241 return ErrInvalidLengthService 4242 } 4243 if (iNdEx + skippy) > l { 4244 return io.ErrUnexpectedEOF 4245 } 4246 iNdEx += skippy 4247 } 4248 } 4249 4250 if iNdEx > l { 4251 return io.ErrUnexpectedEOF 4252 } 4253 return nil 4254 } 4255 func (m *TxEncodeResponse) Unmarshal(dAtA []byte) error { 4256 l := len(dAtA) 4257 iNdEx := 0 4258 for iNdEx < l { 4259 preIndex := iNdEx 4260 var wire uint64 4261 for shift := uint(0); ; shift += 7 { 4262 if shift >= 64 { 4263 return ErrIntOverflowService 4264 } 4265 if iNdEx >= l { 4266 return io.ErrUnexpectedEOF 4267 } 4268 b := dAtA[iNdEx] 4269 iNdEx++ 4270 wire |= uint64(b&0x7F) << shift 4271 if b < 0x80 { 4272 break 4273 } 4274 } 4275 fieldNum := int32(wire >> 3) 4276 wireType := int(wire & 0x7) 4277 if wireType == 4 { 4278 return fmt.Errorf("proto: TxEncodeResponse: wiretype end group for non-group") 4279 } 4280 if fieldNum <= 0 { 4281 return fmt.Errorf("proto: TxEncodeResponse: illegal tag %d (wire type %d)", fieldNum, wire) 4282 } 4283 switch fieldNum { 4284 case 1: 4285 if wireType != 2 { 4286 return fmt.Errorf("proto: wrong wireType = %d for field TxBytes", wireType) 4287 } 4288 var byteLen int 4289 for shift := uint(0); ; shift += 7 { 4290 if shift >= 64 { 4291 return ErrIntOverflowService 4292 } 4293 if iNdEx >= l { 4294 return io.ErrUnexpectedEOF 4295 } 4296 b := dAtA[iNdEx] 4297 iNdEx++ 4298 byteLen |= int(b&0x7F) << shift 4299 if b < 0x80 { 4300 break 4301 } 4302 } 4303 if byteLen < 0 { 4304 return ErrInvalidLengthService 4305 } 4306 postIndex := iNdEx + byteLen 4307 if postIndex < 0 { 4308 return ErrInvalidLengthService 4309 } 4310 if postIndex > l { 4311 return io.ErrUnexpectedEOF 4312 } 4313 m.TxBytes = append(m.TxBytes[:0], dAtA[iNdEx:postIndex]...) 4314 if m.TxBytes == nil { 4315 m.TxBytes = []byte{} 4316 } 4317 iNdEx = postIndex 4318 default: 4319 iNdEx = preIndex 4320 skippy, err := skipService(dAtA[iNdEx:]) 4321 if err != nil { 4322 return err 4323 } 4324 if (skippy < 0) || (iNdEx+skippy) < 0 { 4325 return ErrInvalidLengthService 4326 } 4327 if (iNdEx + skippy) > l { 4328 return io.ErrUnexpectedEOF 4329 } 4330 iNdEx += skippy 4331 } 4332 } 4333 4334 if iNdEx > l { 4335 return io.ErrUnexpectedEOF 4336 } 4337 return nil 4338 } 4339 func (m *TxEncodeAminoRequest) Unmarshal(dAtA []byte) error { 4340 l := len(dAtA) 4341 iNdEx := 0 4342 for iNdEx < l { 4343 preIndex := iNdEx 4344 var wire uint64 4345 for shift := uint(0); ; shift += 7 { 4346 if shift >= 64 { 4347 return ErrIntOverflowService 4348 } 4349 if iNdEx >= l { 4350 return io.ErrUnexpectedEOF 4351 } 4352 b := dAtA[iNdEx] 4353 iNdEx++ 4354 wire |= uint64(b&0x7F) << shift 4355 if b < 0x80 { 4356 break 4357 } 4358 } 4359 fieldNum := int32(wire >> 3) 4360 wireType := int(wire & 0x7) 4361 if wireType == 4 { 4362 return fmt.Errorf("proto: TxEncodeAminoRequest: wiretype end group for non-group") 4363 } 4364 if fieldNum <= 0 { 4365 return fmt.Errorf("proto: TxEncodeAminoRequest: illegal tag %d (wire type %d)", fieldNum, wire) 4366 } 4367 switch fieldNum { 4368 case 1: 4369 if wireType != 2 { 4370 return fmt.Errorf("proto: wrong wireType = %d for field AminoJson", wireType) 4371 } 4372 var stringLen uint64 4373 for shift := uint(0); ; shift += 7 { 4374 if shift >= 64 { 4375 return ErrIntOverflowService 4376 } 4377 if iNdEx >= l { 4378 return io.ErrUnexpectedEOF 4379 } 4380 b := dAtA[iNdEx] 4381 iNdEx++ 4382 stringLen |= uint64(b&0x7F) << shift 4383 if b < 0x80 { 4384 break 4385 } 4386 } 4387 intStringLen := int(stringLen) 4388 if intStringLen < 0 { 4389 return ErrInvalidLengthService 4390 } 4391 postIndex := iNdEx + intStringLen 4392 if postIndex < 0 { 4393 return ErrInvalidLengthService 4394 } 4395 if postIndex > l { 4396 return io.ErrUnexpectedEOF 4397 } 4398 m.AminoJson = string(dAtA[iNdEx:postIndex]) 4399 iNdEx = postIndex 4400 default: 4401 iNdEx = preIndex 4402 skippy, err := skipService(dAtA[iNdEx:]) 4403 if err != nil { 4404 return err 4405 } 4406 if (skippy < 0) || (iNdEx+skippy) < 0 { 4407 return ErrInvalidLengthService 4408 } 4409 if (iNdEx + skippy) > l { 4410 return io.ErrUnexpectedEOF 4411 } 4412 iNdEx += skippy 4413 } 4414 } 4415 4416 if iNdEx > l { 4417 return io.ErrUnexpectedEOF 4418 } 4419 return nil 4420 } 4421 func (m *TxEncodeAminoResponse) Unmarshal(dAtA []byte) error { 4422 l := len(dAtA) 4423 iNdEx := 0 4424 for iNdEx < l { 4425 preIndex := iNdEx 4426 var wire uint64 4427 for shift := uint(0); ; shift += 7 { 4428 if shift >= 64 { 4429 return ErrIntOverflowService 4430 } 4431 if iNdEx >= l { 4432 return io.ErrUnexpectedEOF 4433 } 4434 b := dAtA[iNdEx] 4435 iNdEx++ 4436 wire |= uint64(b&0x7F) << shift 4437 if b < 0x80 { 4438 break 4439 } 4440 } 4441 fieldNum := int32(wire >> 3) 4442 wireType := int(wire & 0x7) 4443 if wireType == 4 { 4444 return fmt.Errorf("proto: TxEncodeAminoResponse: wiretype end group for non-group") 4445 } 4446 if fieldNum <= 0 { 4447 return fmt.Errorf("proto: TxEncodeAminoResponse: illegal tag %d (wire type %d)", fieldNum, wire) 4448 } 4449 switch fieldNum { 4450 case 1: 4451 if wireType != 2 { 4452 return fmt.Errorf("proto: wrong wireType = %d for field AminoBinary", wireType) 4453 } 4454 var byteLen int 4455 for shift := uint(0); ; shift += 7 { 4456 if shift >= 64 { 4457 return ErrIntOverflowService 4458 } 4459 if iNdEx >= l { 4460 return io.ErrUnexpectedEOF 4461 } 4462 b := dAtA[iNdEx] 4463 iNdEx++ 4464 byteLen |= int(b&0x7F) << shift 4465 if b < 0x80 { 4466 break 4467 } 4468 } 4469 if byteLen < 0 { 4470 return ErrInvalidLengthService 4471 } 4472 postIndex := iNdEx + byteLen 4473 if postIndex < 0 { 4474 return ErrInvalidLengthService 4475 } 4476 if postIndex > l { 4477 return io.ErrUnexpectedEOF 4478 } 4479 m.AminoBinary = append(m.AminoBinary[:0], dAtA[iNdEx:postIndex]...) 4480 if m.AminoBinary == nil { 4481 m.AminoBinary = []byte{} 4482 } 4483 iNdEx = postIndex 4484 default: 4485 iNdEx = preIndex 4486 skippy, err := skipService(dAtA[iNdEx:]) 4487 if err != nil { 4488 return err 4489 } 4490 if (skippy < 0) || (iNdEx+skippy) < 0 { 4491 return ErrInvalidLengthService 4492 } 4493 if (iNdEx + skippy) > l { 4494 return io.ErrUnexpectedEOF 4495 } 4496 iNdEx += skippy 4497 } 4498 } 4499 4500 if iNdEx > l { 4501 return io.ErrUnexpectedEOF 4502 } 4503 return nil 4504 } 4505 func (m *TxDecodeAminoRequest) Unmarshal(dAtA []byte) error { 4506 l := len(dAtA) 4507 iNdEx := 0 4508 for iNdEx < l { 4509 preIndex := iNdEx 4510 var wire uint64 4511 for shift := uint(0); ; shift += 7 { 4512 if shift >= 64 { 4513 return ErrIntOverflowService 4514 } 4515 if iNdEx >= l { 4516 return io.ErrUnexpectedEOF 4517 } 4518 b := dAtA[iNdEx] 4519 iNdEx++ 4520 wire |= uint64(b&0x7F) << shift 4521 if b < 0x80 { 4522 break 4523 } 4524 } 4525 fieldNum := int32(wire >> 3) 4526 wireType := int(wire & 0x7) 4527 if wireType == 4 { 4528 return fmt.Errorf("proto: TxDecodeAminoRequest: wiretype end group for non-group") 4529 } 4530 if fieldNum <= 0 { 4531 return fmt.Errorf("proto: TxDecodeAminoRequest: illegal tag %d (wire type %d)", fieldNum, wire) 4532 } 4533 switch fieldNum { 4534 case 1: 4535 if wireType != 2 { 4536 return fmt.Errorf("proto: wrong wireType = %d for field AminoBinary", wireType) 4537 } 4538 var byteLen int 4539 for shift := uint(0); ; shift += 7 { 4540 if shift >= 64 { 4541 return ErrIntOverflowService 4542 } 4543 if iNdEx >= l { 4544 return io.ErrUnexpectedEOF 4545 } 4546 b := dAtA[iNdEx] 4547 iNdEx++ 4548 byteLen |= int(b&0x7F) << shift 4549 if b < 0x80 { 4550 break 4551 } 4552 } 4553 if byteLen < 0 { 4554 return ErrInvalidLengthService 4555 } 4556 postIndex := iNdEx + byteLen 4557 if postIndex < 0 { 4558 return ErrInvalidLengthService 4559 } 4560 if postIndex > l { 4561 return io.ErrUnexpectedEOF 4562 } 4563 m.AminoBinary = append(m.AminoBinary[:0], dAtA[iNdEx:postIndex]...) 4564 if m.AminoBinary == nil { 4565 m.AminoBinary = []byte{} 4566 } 4567 iNdEx = postIndex 4568 default: 4569 iNdEx = preIndex 4570 skippy, err := skipService(dAtA[iNdEx:]) 4571 if err != nil { 4572 return err 4573 } 4574 if (skippy < 0) || (iNdEx+skippy) < 0 { 4575 return ErrInvalidLengthService 4576 } 4577 if (iNdEx + skippy) > l { 4578 return io.ErrUnexpectedEOF 4579 } 4580 iNdEx += skippy 4581 } 4582 } 4583 4584 if iNdEx > l { 4585 return io.ErrUnexpectedEOF 4586 } 4587 return nil 4588 } 4589 func (m *TxDecodeAminoResponse) Unmarshal(dAtA []byte) error { 4590 l := len(dAtA) 4591 iNdEx := 0 4592 for iNdEx < l { 4593 preIndex := iNdEx 4594 var wire uint64 4595 for shift := uint(0); ; shift += 7 { 4596 if shift >= 64 { 4597 return ErrIntOverflowService 4598 } 4599 if iNdEx >= l { 4600 return io.ErrUnexpectedEOF 4601 } 4602 b := dAtA[iNdEx] 4603 iNdEx++ 4604 wire |= uint64(b&0x7F) << shift 4605 if b < 0x80 { 4606 break 4607 } 4608 } 4609 fieldNum := int32(wire >> 3) 4610 wireType := int(wire & 0x7) 4611 if wireType == 4 { 4612 return fmt.Errorf("proto: TxDecodeAminoResponse: wiretype end group for non-group") 4613 } 4614 if fieldNum <= 0 { 4615 return fmt.Errorf("proto: TxDecodeAminoResponse: illegal tag %d (wire type %d)", fieldNum, wire) 4616 } 4617 switch fieldNum { 4618 case 1: 4619 if wireType != 2 { 4620 return fmt.Errorf("proto: wrong wireType = %d for field AminoJson", wireType) 4621 } 4622 var stringLen uint64 4623 for shift := uint(0); ; shift += 7 { 4624 if shift >= 64 { 4625 return ErrIntOverflowService 4626 } 4627 if iNdEx >= l { 4628 return io.ErrUnexpectedEOF 4629 } 4630 b := dAtA[iNdEx] 4631 iNdEx++ 4632 stringLen |= uint64(b&0x7F) << shift 4633 if b < 0x80 { 4634 break 4635 } 4636 } 4637 intStringLen := int(stringLen) 4638 if intStringLen < 0 { 4639 return ErrInvalidLengthService 4640 } 4641 postIndex := iNdEx + intStringLen 4642 if postIndex < 0 { 4643 return ErrInvalidLengthService 4644 } 4645 if postIndex > l { 4646 return io.ErrUnexpectedEOF 4647 } 4648 m.AminoJson = string(dAtA[iNdEx:postIndex]) 4649 iNdEx = postIndex 4650 default: 4651 iNdEx = preIndex 4652 skippy, err := skipService(dAtA[iNdEx:]) 4653 if err != nil { 4654 return err 4655 } 4656 if (skippy < 0) || (iNdEx+skippy) < 0 { 4657 return ErrInvalidLengthService 4658 } 4659 if (iNdEx + skippy) > l { 4660 return io.ErrUnexpectedEOF 4661 } 4662 iNdEx += skippy 4663 } 4664 } 4665 4666 if iNdEx > l { 4667 return io.ErrUnexpectedEOF 4668 } 4669 return nil 4670 } 4671 func skipService(dAtA []byte) (n int, err error) { 4672 l := len(dAtA) 4673 iNdEx := 0 4674 depth := 0 4675 for iNdEx < l { 4676 var wire uint64 4677 for shift := uint(0); ; shift += 7 { 4678 if shift >= 64 { 4679 return 0, ErrIntOverflowService 4680 } 4681 if iNdEx >= l { 4682 return 0, io.ErrUnexpectedEOF 4683 } 4684 b := dAtA[iNdEx] 4685 iNdEx++ 4686 wire |= (uint64(b) & 0x7F) << shift 4687 if b < 0x80 { 4688 break 4689 } 4690 } 4691 wireType := int(wire & 0x7) 4692 switch wireType { 4693 case 0: 4694 for shift := uint(0); ; shift += 7 { 4695 if shift >= 64 { 4696 return 0, ErrIntOverflowService 4697 } 4698 if iNdEx >= l { 4699 return 0, io.ErrUnexpectedEOF 4700 } 4701 iNdEx++ 4702 if dAtA[iNdEx-1] < 0x80 { 4703 break 4704 } 4705 } 4706 case 1: 4707 iNdEx += 8 4708 case 2: 4709 var length int 4710 for shift := uint(0); ; shift += 7 { 4711 if shift >= 64 { 4712 return 0, ErrIntOverflowService 4713 } 4714 if iNdEx >= l { 4715 return 0, io.ErrUnexpectedEOF 4716 } 4717 b := dAtA[iNdEx] 4718 iNdEx++ 4719 length |= (int(b) & 0x7F) << shift 4720 if b < 0x80 { 4721 break 4722 } 4723 } 4724 if length < 0 { 4725 return 0, ErrInvalidLengthService 4726 } 4727 iNdEx += length 4728 case 3: 4729 depth++ 4730 case 4: 4731 if depth == 0 { 4732 return 0, ErrUnexpectedEndOfGroupService 4733 } 4734 depth-- 4735 case 5: 4736 iNdEx += 4 4737 default: 4738 return 0, fmt.Errorf("proto: illegal wireType %d", wireType) 4739 } 4740 if iNdEx < 0 { 4741 return 0, ErrInvalidLengthService 4742 } 4743 if depth == 0 { 4744 return iNdEx, nil 4745 } 4746 } 4747 return 0, io.ErrUnexpectedEOF 4748 } 4749 4750 var ( 4751 ErrInvalidLengthService = fmt.Errorf("proto: negative length found during unmarshaling") 4752 ErrIntOverflowService = fmt.Errorf("proto: integer overflow") 4753 ErrUnexpectedEndOfGroupService = fmt.Errorf("proto: unexpected end of group") 4754 )