github.com/badrootd/nibiru-cometbft@v0.37.5-0.20240307173500-2a75559eee9b/rpc/grpc/types.pb.go (about) 1 // Code generated by protoc-gen-gogo. DO NOT EDIT. 2 // source: tendermint/rpc/grpc/types.proto 3 4 package coregrpc 5 6 import ( 7 context "context" 8 fmt "fmt" 9 types "github.com/badrootd/nibiru-cometbft/abci/types" 10 grpc1 "github.com/cosmos/gogoproto/grpc" 11 proto "github.com/cosmos/gogoproto/proto" 12 grpc "google.golang.org/grpc" 13 codes "google.golang.org/grpc/codes" 14 status "google.golang.org/grpc/status" 15 io "io" 16 math "math" 17 math_bits "math/bits" 18 ) 19 20 // Reference imports to suppress errors if they are not otherwise used. 21 var _ = proto.Marshal 22 var _ = fmt.Errorf 23 var _ = math.Inf 24 25 // This is a compile-time assertion to ensure that this generated file 26 // is compatible with the proto package it is being compiled against. 27 // A compilation error at this line likely means your copy of the 28 // proto package needs to be updated. 29 const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package 30 31 type RequestPing struct { 32 } 33 34 func (m *RequestPing) Reset() { *m = RequestPing{} } 35 func (m *RequestPing) String() string { return proto.CompactTextString(m) } 36 func (*RequestPing) ProtoMessage() {} 37 func (*RequestPing) Descriptor() ([]byte, []int) { 38 return fileDescriptor_0ffff5682c662b95, []int{0} 39 } 40 func (m *RequestPing) XXX_Unmarshal(b []byte) error { 41 return m.Unmarshal(b) 42 } 43 func (m *RequestPing) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 44 if deterministic { 45 return xxx_messageInfo_RequestPing.Marshal(b, m, deterministic) 46 } else { 47 b = b[:cap(b)] 48 n, err := m.MarshalToSizedBuffer(b) 49 if err != nil { 50 return nil, err 51 } 52 return b[:n], nil 53 } 54 } 55 func (m *RequestPing) XXX_Merge(src proto.Message) { 56 xxx_messageInfo_RequestPing.Merge(m, src) 57 } 58 func (m *RequestPing) XXX_Size() int { 59 return m.Size() 60 } 61 func (m *RequestPing) XXX_DiscardUnknown() { 62 xxx_messageInfo_RequestPing.DiscardUnknown(m) 63 } 64 65 var xxx_messageInfo_RequestPing proto.InternalMessageInfo 66 67 type RequestBroadcastTx struct { 68 Tx []byte `protobuf:"bytes,1,opt,name=tx,proto3" json:"tx,omitempty"` 69 } 70 71 func (m *RequestBroadcastTx) Reset() { *m = RequestBroadcastTx{} } 72 func (m *RequestBroadcastTx) String() string { return proto.CompactTextString(m) } 73 func (*RequestBroadcastTx) ProtoMessage() {} 74 func (*RequestBroadcastTx) Descriptor() ([]byte, []int) { 75 return fileDescriptor_0ffff5682c662b95, []int{1} 76 } 77 func (m *RequestBroadcastTx) XXX_Unmarshal(b []byte) error { 78 return m.Unmarshal(b) 79 } 80 func (m *RequestBroadcastTx) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 81 if deterministic { 82 return xxx_messageInfo_RequestBroadcastTx.Marshal(b, m, deterministic) 83 } else { 84 b = b[:cap(b)] 85 n, err := m.MarshalToSizedBuffer(b) 86 if err != nil { 87 return nil, err 88 } 89 return b[:n], nil 90 } 91 } 92 func (m *RequestBroadcastTx) XXX_Merge(src proto.Message) { 93 xxx_messageInfo_RequestBroadcastTx.Merge(m, src) 94 } 95 func (m *RequestBroadcastTx) XXX_Size() int { 96 return m.Size() 97 } 98 func (m *RequestBroadcastTx) XXX_DiscardUnknown() { 99 xxx_messageInfo_RequestBroadcastTx.DiscardUnknown(m) 100 } 101 102 var xxx_messageInfo_RequestBroadcastTx proto.InternalMessageInfo 103 104 func (m *RequestBroadcastTx) GetTx() []byte { 105 if m != nil { 106 return m.Tx 107 } 108 return nil 109 } 110 111 type ResponsePing struct { 112 } 113 114 func (m *ResponsePing) Reset() { *m = ResponsePing{} } 115 func (m *ResponsePing) String() string { return proto.CompactTextString(m) } 116 func (*ResponsePing) ProtoMessage() {} 117 func (*ResponsePing) Descriptor() ([]byte, []int) { 118 return fileDescriptor_0ffff5682c662b95, []int{2} 119 } 120 func (m *ResponsePing) XXX_Unmarshal(b []byte) error { 121 return m.Unmarshal(b) 122 } 123 func (m *ResponsePing) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 124 if deterministic { 125 return xxx_messageInfo_ResponsePing.Marshal(b, m, deterministic) 126 } else { 127 b = b[:cap(b)] 128 n, err := m.MarshalToSizedBuffer(b) 129 if err != nil { 130 return nil, err 131 } 132 return b[:n], nil 133 } 134 } 135 func (m *ResponsePing) XXX_Merge(src proto.Message) { 136 xxx_messageInfo_ResponsePing.Merge(m, src) 137 } 138 func (m *ResponsePing) XXX_Size() int { 139 return m.Size() 140 } 141 func (m *ResponsePing) XXX_DiscardUnknown() { 142 xxx_messageInfo_ResponsePing.DiscardUnknown(m) 143 } 144 145 var xxx_messageInfo_ResponsePing proto.InternalMessageInfo 146 147 type ResponseBroadcastTx struct { 148 CheckTx *types.ResponseCheckTx `protobuf:"bytes,1,opt,name=check_tx,json=checkTx,proto3" json:"check_tx,omitempty"` 149 DeliverTx *types.ResponseDeliverTx `protobuf:"bytes,2,opt,name=deliver_tx,json=deliverTx,proto3" json:"deliver_tx,omitempty"` 150 } 151 152 func (m *ResponseBroadcastTx) Reset() { *m = ResponseBroadcastTx{} } 153 func (m *ResponseBroadcastTx) String() string { return proto.CompactTextString(m) } 154 func (*ResponseBroadcastTx) ProtoMessage() {} 155 func (*ResponseBroadcastTx) Descriptor() ([]byte, []int) { 156 return fileDescriptor_0ffff5682c662b95, []int{3} 157 } 158 func (m *ResponseBroadcastTx) XXX_Unmarshal(b []byte) error { 159 return m.Unmarshal(b) 160 } 161 func (m *ResponseBroadcastTx) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 162 if deterministic { 163 return xxx_messageInfo_ResponseBroadcastTx.Marshal(b, m, deterministic) 164 } else { 165 b = b[:cap(b)] 166 n, err := m.MarshalToSizedBuffer(b) 167 if err != nil { 168 return nil, err 169 } 170 return b[:n], nil 171 } 172 } 173 func (m *ResponseBroadcastTx) XXX_Merge(src proto.Message) { 174 xxx_messageInfo_ResponseBroadcastTx.Merge(m, src) 175 } 176 func (m *ResponseBroadcastTx) XXX_Size() int { 177 return m.Size() 178 } 179 func (m *ResponseBroadcastTx) XXX_DiscardUnknown() { 180 xxx_messageInfo_ResponseBroadcastTx.DiscardUnknown(m) 181 } 182 183 var xxx_messageInfo_ResponseBroadcastTx proto.InternalMessageInfo 184 185 func (m *ResponseBroadcastTx) GetCheckTx() *types.ResponseCheckTx { 186 if m != nil { 187 return m.CheckTx 188 } 189 return nil 190 } 191 192 func (m *ResponseBroadcastTx) GetDeliverTx() *types.ResponseDeliverTx { 193 if m != nil { 194 return m.DeliverTx 195 } 196 return nil 197 } 198 199 func init() { 200 proto.RegisterType((*RequestPing)(nil), "tendermint.rpc.grpc.RequestPing") 201 proto.RegisterType((*RequestBroadcastTx)(nil), "tendermint.rpc.grpc.RequestBroadcastTx") 202 proto.RegisterType((*ResponsePing)(nil), "tendermint.rpc.grpc.ResponsePing") 203 proto.RegisterType((*ResponseBroadcastTx)(nil), "tendermint.rpc.grpc.ResponseBroadcastTx") 204 } 205 206 func init() { proto.RegisterFile("tendermint/rpc/grpc/types.proto", fileDescriptor_0ffff5682c662b95) } 207 208 var fileDescriptor_0ffff5682c662b95 = []byte{ 209 // 321 bytes of a gzipped FileDescriptorProto 210 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x92, 0x3f, 0x4f, 0xc2, 0x40, 211 0x18, 0xc6, 0x39, 0x62, 0xfc, 0xf3, 0x82, 0x0c, 0xc7, 0x62, 0x30, 0x39, 0xb1, 0x31, 0x91, 0xe9, 212 0x48, 0x70, 0x64, 0x02, 0x1d, 0x34, 0x2e, 0xa4, 0x61, 0x72, 0x51, 0x7a, 0x7d, 0x85, 0x46, 0xe9, 213 0xd5, 0xeb, 0x61, 0xea, 0xb7, 0x70, 0xf1, 0xe3, 0xb8, 0x3b, 0x32, 0x3a, 0x9a, 0xf6, 0x8b, 0x98, 214 0x2b, 0xd4, 0x9e, 0x03, 0x2c, 0xcd, 0xd3, 0xe6, 0xf7, 0xbb, 0x3c, 0xef, 0xdb, 0x83, 0x13, 0x8d, 215 0xa1, 0x8f, 0x6a, 0x1e, 0x84, 0xba, 0xab, 0x22, 0xd1, 0x9d, 0x9a, 0x87, 0x7e, 0x8b, 0x30, 0xe6, 216 0x91, 0x92, 0x5a, 0xd2, 0x66, 0x09, 0x70, 0x15, 0x09, 0x6e, 0x80, 0xd6, 0xb1, 0x65, 0x4d, 0x3c, 217 0x11, 0xd8, 0x86, 0x73, 0x08, 0x35, 0x17, 0x5f, 0x16, 0x18, 0xeb, 0x51, 0x10, 0x4e, 0x9d, 0x33, 218 0xa0, 0xeb, 0xd7, 0xa1, 0x92, 0x13, 0x5f, 0x4c, 0x62, 0x3d, 0x4e, 0x68, 0x03, 0xaa, 0x3a, 0x39, 219 0x22, 0x6d, 0xd2, 0xa9, 0xbb, 0x55, 0x9d, 0x38, 0x0d, 0xa8, 0xbb, 0x18, 0x47, 0x32, 0x8c, 0x31, 220 0xb7, 0x3e, 0x08, 0x34, 0x8b, 0x0f, 0xb6, 0xd7, 0x87, 0x7d, 0x31, 0x43, 0xf1, 0x74, 0xbf, 0xb6, 221 0x6b, 0xbd, 0x36, 0xb7, 0x1a, 0x9a, 0x32, 0xbc, 0xf0, 0x2e, 0x0d, 0x38, 0x4e, 0xdc, 0x3d, 0xb1, 222 0x0a, 0x74, 0x00, 0xe0, 0xe3, 0x73, 0xf0, 0x8a, 0xca, 0xe8, 0xd5, 0x5c, 0x77, 0x36, 0xea, 0x57, 223 0x2b, 0x74, 0x9c, 0xb8, 0x07, 0x7e, 0x11, 0x7b, 0x9f, 0x04, 0xea, 0x7f, 0x7d, 0x06, 0xa3, 0x1b, 224 0x7a, 0x0b, 0x3b, 0xa6, 0x30, 0xfd, 0x57, 0xa3, 0x58, 0x14, 0xb7, 0x16, 0xd1, 0x3a, 0xdd, 0x40, 225 0x94, 0x53, 0xd3, 0x07, 0xa8, 0xd9, 0xc3, 0x9e, 0x6f, 0x3b, 0xd3, 0x02, 0x5b, 0x9d, 0xad, 0x47, 226 0x5b, 0xe4, 0xf0, 0xfa, 0x2b, 0x65, 0x64, 0x99, 0x32, 0xf2, 0x93, 0x32, 0xf2, 0x9e, 0xb1, 0xca, 227 0x32, 0x63, 0x95, 0xef, 0x8c, 0x55, 0xee, 0xf8, 0x34, 0xd0, 0xb3, 0x85, 0xc7, 0x85, 0x9c, 0x77, 228 0x85, 0x9c, 0xa3, 0xf6, 0x1e, 0x75, 0x19, 0x8a, 0xbb, 0xd1, 0x17, 0x52, 0xa1, 0x09, 0xde, 0x6e, 229 0xfe, 0xb7, 0x2f, 0x7e, 0x03, 0x00, 0x00, 0xff, 0xff, 0x87, 0x53, 0x29, 0xbe, 0x42, 0x02, 0x00, 230 0x00, 231 } 232 233 // Reference imports to suppress errors if they are not otherwise used. 234 var _ context.Context 235 var _ grpc.ClientConn 236 237 // This is a compile-time assertion to ensure that this generated file 238 // is compatible with the grpc package it is being compiled against. 239 const _ = grpc.SupportPackageIsVersion4 240 241 // BroadcastAPIClient is the client API for BroadcastAPI service. 242 // 243 // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. 244 type BroadcastAPIClient interface { 245 Ping(ctx context.Context, in *RequestPing, opts ...grpc.CallOption) (*ResponsePing, error) 246 BroadcastTx(ctx context.Context, in *RequestBroadcastTx, opts ...grpc.CallOption) (*ResponseBroadcastTx, error) 247 } 248 249 type broadcastAPIClient struct { 250 cc grpc1.ClientConn 251 } 252 253 func NewBroadcastAPIClient(cc grpc1.ClientConn) BroadcastAPIClient { 254 return &broadcastAPIClient{cc} 255 } 256 257 func (c *broadcastAPIClient) Ping(ctx context.Context, in *RequestPing, opts ...grpc.CallOption) (*ResponsePing, error) { 258 out := new(ResponsePing) 259 err := c.cc.Invoke(ctx, "/tendermint.rpc.grpc.BroadcastAPI/Ping", in, out, opts...) 260 if err != nil { 261 return nil, err 262 } 263 return out, nil 264 } 265 266 func (c *broadcastAPIClient) BroadcastTx(ctx context.Context, in *RequestBroadcastTx, opts ...grpc.CallOption) (*ResponseBroadcastTx, error) { 267 out := new(ResponseBroadcastTx) 268 err := c.cc.Invoke(ctx, "/tendermint.rpc.grpc.BroadcastAPI/BroadcastTx", in, out, opts...) 269 if err != nil { 270 return nil, err 271 } 272 return out, nil 273 } 274 275 // BroadcastAPIServer is the server API for BroadcastAPI service. 276 type BroadcastAPIServer interface { 277 Ping(context.Context, *RequestPing) (*ResponsePing, error) 278 BroadcastTx(context.Context, *RequestBroadcastTx) (*ResponseBroadcastTx, error) 279 } 280 281 // UnimplementedBroadcastAPIServer can be embedded to have forward compatible implementations. 282 type UnimplementedBroadcastAPIServer struct { 283 } 284 285 func (*UnimplementedBroadcastAPIServer) Ping(ctx context.Context, req *RequestPing) (*ResponsePing, error) { 286 return nil, status.Errorf(codes.Unimplemented, "method Ping not implemented") 287 } 288 func (*UnimplementedBroadcastAPIServer) BroadcastTx(ctx context.Context, req *RequestBroadcastTx) (*ResponseBroadcastTx, error) { 289 return nil, status.Errorf(codes.Unimplemented, "method BroadcastTx not implemented") 290 } 291 292 func RegisterBroadcastAPIServer(s grpc1.Server, srv BroadcastAPIServer) { 293 s.RegisterService(&_BroadcastAPI_serviceDesc, srv) 294 } 295 296 func _BroadcastAPI_Ping_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 297 in := new(RequestPing) 298 if err := dec(in); err != nil { 299 return nil, err 300 } 301 if interceptor == nil { 302 return srv.(BroadcastAPIServer).Ping(ctx, in) 303 } 304 info := &grpc.UnaryServerInfo{ 305 Server: srv, 306 FullMethod: "/tendermint.rpc.grpc.BroadcastAPI/Ping", 307 } 308 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 309 return srv.(BroadcastAPIServer).Ping(ctx, req.(*RequestPing)) 310 } 311 return interceptor(ctx, in, info, handler) 312 } 313 314 func _BroadcastAPI_BroadcastTx_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 315 in := new(RequestBroadcastTx) 316 if err := dec(in); err != nil { 317 return nil, err 318 } 319 if interceptor == nil { 320 return srv.(BroadcastAPIServer).BroadcastTx(ctx, in) 321 } 322 info := &grpc.UnaryServerInfo{ 323 Server: srv, 324 FullMethod: "/tendermint.rpc.grpc.BroadcastAPI/BroadcastTx", 325 } 326 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 327 return srv.(BroadcastAPIServer).BroadcastTx(ctx, req.(*RequestBroadcastTx)) 328 } 329 return interceptor(ctx, in, info, handler) 330 } 331 332 var _BroadcastAPI_serviceDesc = grpc.ServiceDesc{ 333 ServiceName: "tendermint.rpc.grpc.BroadcastAPI", 334 HandlerType: (*BroadcastAPIServer)(nil), 335 Methods: []grpc.MethodDesc{ 336 { 337 MethodName: "Ping", 338 Handler: _BroadcastAPI_Ping_Handler, 339 }, 340 { 341 MethodName: "BroadcastTx", 342 Handler: _BroadcastAPI_BroadcastTx_Handler, 343 }, 344 }, 345 Streams: []grpc.StreamDesc{}, 346 Metadata: "tendermint/rpc/grpc/types.proto", 347 } 348 349 func (m *RequestPing) Marshal() (dAtA []byte, err error) { 350 size := m.Size() 351 dAtA = make([]byte, size) 352 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 353 if err != nil { 354 return nil, err 355 } 356 return dAtA[:n], nil 357 } 358 359 func (m *RequestPing) MarshalTo(dAtA []byte) (int, error) { 360 size := m.Size() 361 return m.MarshalToSizedBuffer(dAtA[:size]) 362 } 363 364 func (m *RequestPing) MarshalToSizedBuffer(dAtA []byte) (int, error) { 365 i := len(dAtA) 366 _ = i 367 var l int 368 _ = l 369 return len(dAtA) - i, nil 370 } 371 372 func (m *RequestBroadcastTx) Marshal() (dAtA []byte, err error) { 373 size := m.Size() 374 dAtA = make([]byte, size) 375 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 376 if err != nil { 377 return nil, err 378 } 379 return dAtA[:n], nil 380 } 381 382 func (m *RequestBroadcastTx) MarshalTo(dAtA []byte) (int, error) { 383 size := m.Size() 384 return m.MarshalToSizedBuffer(dAtA[:size]) 385 } 386 387 func (m *RequestBroadcastTx) MarshalToSizedBuffer(dAtA []byte) (int, error) { 388 i := len(dAtA) 389 _ = i 390 var l int 391 _ = l 392 if len(m.Tx) > 0 { 393 i -= len(m.Tx) 394 copy(dAtA[i:], m.Tx) 395 i = encodeVarintTypes(dAtA, i, uint64(len(m.Tx))) 396 i-- 397 dAtA[i] = 0xa 398 } 399 return len(dAtA) - i, nil 400 } 401 402 func (m *ResponsePing) Marshal() (dAtA []byte, err error) { 403 size := m.Size() 404 dAtA = make([]byte, size) 405 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 406 if err != nil { 407 return nil, err 408 } 409 return dAtA[:n], nil 410 } 411 412 func (m *ResponsePing) MarshalTo(dAtA []byte) (int, error) { 413 size := m.Size() 414 return m.MarshalToSizedBuffer(dAtA[:size]) 415 } 416 417 func (m *ResponsePing) MarshalToSizedBuffer(dAtA []byte) (int, error) { 418 i := len(dAtA) 419 _ = i 420 var l int 421 _ = l 422 return len(dAtA) - i, nil 423 } 424 425 func (m *ResponseBroadcastTx) Marshal() (dAtA []byte, err error) { 426 size := m.Size() 427 dAtA = make([]byte, size) 428 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 429 if err != nil { 430 return nil, err 431 } 432 return dAtA[:n], nil 433 } 434 435 func (m *ResponseBroadcastTx) MarshalTo(dAtA []byte) (int, error) { 436 size := m.Size() 437 return m.MarshalToSizedBuffer(dAtA[:size]) 438 } 439 440 func (m *ResponseBroadcastTx) MarshalToSizedBuffer(dAtA []byte) (int, error) { 441 i := len(dAtA) 442 _ = i 443 var l int 444 _ = l 445 if m.DeliverTx != nil { 446 { 447 size, err := m.DeliverTx.MarshalToSizedBuffer(dAtA[:i]) 448 if err != nil { 449 return 0, err 450 } 451 i -= size 452 i = encodeVarintTypes(dAtA, i, uint64(size)) 453 } 454 i-- 455 dAtA[i] = 0x12 456 } 457 if m.CheckTx != nil { 458 { 459 size, err := m.CheckTx.MarshalToSizedBuffer(dAtA[:i]) 460 if err != nil { 461 return 0, err 462 } 463 i -= size 464 i = encodeVarintTypes(dAtA, i, uint64(size)) 465 } 466 i-- 467 dAtA[i] = 0xa 468 } 469 return len(dAtA) - i, nil 470 } 471 472 func encodeVarintTypes(dAtA []byte, offset int, v uint64) int { 473 offset -= sovTypes(v) 474 base := offset 475 for v >= 1<<7 { 476 dAtA[offset] = uint8(v&0x7f | 0x80) 477 v >>= 7 478 offset++ 479 } 480 dAtA[offset] = uint8(v) 481 return base 482 } 483 func (m *RequestPing) Size() (n int) { 484 if m == nil { 485 return 0 486 } 487 var l int 488 _ = l 489 return n 490 } 491 492 func (m *RequestBroadcastTx) Size() (n int) { 493 if m == nil { 494 return 0 495 } 496 var l int 497 _ = l 498 l = len(m.Tx) 499 if l > 0 { 500 n += 1 + l + sovTypes(uint64(l)) 501 } 502 return n 503 } 504 505 func (m *ResponsePing) Size() (n int) { 506 if m == nil { 507 return 0 508 } 509 var l int 510 _ = l 511 return n 512 } 513 514 func (m *ResponseBroadcastTx) Size() (n int) { 515 if m == nil { 516 return 0 517 } 518 var l int 519 _ = l 520 if m.CheckTx != nil { 521 l = m.CheckTx.Size() 522 n += 1 + l + sovTypes(uint64(l)) 523 } 524 if m.DeliverTx != nil { 525 l = m.DeliverTx.Size() 526 n += 1 + l + sovTypes(uint64(l)) 527 } 528 return n 529 } 530 531 func sovTypes(x uint64) (n int) { 532 return (math_bits.Len64(x|1) + 6) / 7 533 } 534 func sozTypes(x uint64) (n int) { 535 return sovTypes(uint64((x << 1) ^ uint64((int64(x) >> 63)))) 536 } 537 func (m *RequestPing) Unmarshal(dAtA []byte) error { 538 l := len(dAtA) 539 iNdEx := 0 540 for iNdEx < l { 541 preIndex := iNdEx 542 var wire uint64 543 for shift := uint(0); ; shift += 7 { 544 if shift >= 64 { 545 return ErrIntOverflowTypes 546 } 547 if iNdEx >= l { 548 return io.ErrUnexpectedEOF 549 } 550 b := dAtA[iNdEx] 551 iNdEx++ 552 wire |= uint64(b&0x7F) << shift 553 if b < 0x80 { 554 break 555 } 556 } 557 fieldNum := int32(wire >> 3) 558 wireType := int(wire & 0x7) 559 if wireType == 4 { 560 return fmt.Errorf("proto: RequestPing: wiretype end group for non-group") 561 } 562 if fieldNum <= 0 { 563 return fmt.Errorf("proto: RequestPing: illegal tag %d (wire type %d)", fieldNum, wire) 564 } 565 switch fieldNum { 566 default: 567 iNdEx = preIndex 568 skippy, err := skipTypes(dAtA[iNdEx:]) 569 if err != nil { 570 return err 571 } 572 if (skippy < 0) || (iNdEx+skippy) < 0 { 573 return ErrInvalidLengthTypes 574 } 575 if (iNdEx + skippy) > l { 576 return io.ErrUnexpectedEOF 577 } 578 iNdEx += skippy 579 } 580 } 581 582 if iNdEx > l { 583 return io.ErrUnexpectedEOF 584 } 585 return nil 586 } 587 func (m *RequestBroadcastTx) Unmarshal(dAtA []byte) error { 588 l := len(dAtA) 589 iNdEx := 0 590 for iNdEx < l { 591 preIndex := iNdEx 592 var wire uint64 593 for shift := uint(0); ; shift += 7 { 594 if shift >= 64 { 595 return ErrIntOverflowTypes 596 } 597 if iNdEx >= l { 598 return io.ErrUnexpectedEOF 599 } 600 b := dAtA[iNdEx] 601 iNdEx++ 602 wire |= uint64(b&0x7F) << shift 603 if b < 0x80 { 604 break 605 } 606 } 607 fieldNum := int32(wire >> 3) 608 wireType := int(wire & 0x7) 609 if wireType == 4 { 610 return fmt.Errorf("proto: RequestBroadcastTx: wiretype end group for non-group") 611 } 612 if fieldNum <= 0 { 613 return fmt.Errorf("proto: RequestBroadcastTx: illegal tag %d (wire type %d)", fieldNum, wire) 614 } 615 switch fieldNum { 616 case 1: 617 if wireType != 2 { 618 return fmt.Errorf("proto: wrong wireType = %d for field Tx", wireType) 619 } 620 var byteLen int 621 for shift := uint(0); ; shift += 7 { 622 if shift >= 64 { 623 return ErrIntOverflowTypes 624 } 625 if iNdEx >= l { 626 return io.ErrUnexpectedEOF 627 } 628 b := dAtA[iNdEx] 629 iNdEx++ 630 byteLen |= int(b&0x7F) << shift 631 if b < 0x80 { 632 break 633 } 634 } 635 if byteLen < 0 { 636 return ErrInvalidLengthTypes 637 } 638 postIndex := iNdEx + byteLen 639 if postIndex < 0 { 640 return ErrInvalidLengthTypes 641 } 642 if postIndex > l { 643 return io.ErrUnexpectedEOF 644 } 645 m.Tx = append(m.Tx[:0], dAtA[iNdEx:postIndex]...) 646 if m.Tx == nil { 647 m.Tx = []byte{} 648 } 649 iNdEx = postIndex 650 default: 651 iNdEx = preIndex 652 skippy, err := skipTypes(dAtA[iNdEx:]) 653 if err != nil { 654 return err 655 } 656 if (skippy < 0) || (iNdEx+skippy) < 0 { 657 return ErrInvalidLengthTypes 658 } 659 if (iNdEx + skippy) > l { 660 return io.ErrUnexpectedEOF 661 } 662 iNdEx += skippy 663 } 664 } 665 666 if iNdEx > l { 667 return io.ErrUnexpectedEOF 668 } 669 return nil 670 } 671 func (m *ResponsePing) Unmarshal(dAtA []byte) error { 672 l := len(dAtA) 673 iNdEx := 0 674 for iNdEx < l { 675 preIndex := iNdEx 676 var wire uint64 677 for shift := uint(0); ; shift += 7 { 678 if shift >= 64 { 679 return ErrIntOverflowTypes 680 } 681 if iNdEx >= l { 682 return io.ErrUnexpectedEOF 683 } 684 b := dAtA[iNdEx] 685 iNdEx++ 686 wire |= uint64(b&0x7F) << shift 687 if b < 0x80 { 688 break 689 } 690 } 691 fieldNum := int32(wire >> 3) 692 wireType := int(wire & 0x7) 693 if wireType == 4 { 694 return fmt.Errorf("proto: ResponsePing: wiretype end group for non-group") 695 } 696 if fieldNum <= 0 { 697 return fmt.Errorf("proto: ResponsePing: illegal tag %d (wire type %d)", fieldNum, wire) 698 } 699 switch fieldNum { 700 default: 701 iNdEx = preIndex 702 skippy, err := skipTypes(dAtA[iNdEx:]) 703 if err != nil { 704 return err 705 } 706 if (skippy < 0) || (iNdEx+skippy) < 0 { 707 return ErrInvalidLengthTypes 708 } 709 if (iNdEx + skippy) > l { 710 return io.ErrUnexpectedEOF 711 } 712 iNdEx += skippy 713 } 714 } 715 716 if iNdEx > l { 717 return io.ErrUnexpectedEOF 718 } 719 return nil 720 } 721 func (m *ResponseBroadcastTx) Unmarshal(dAtA []byte) error { 722 l := len(dAtA) 723 iNdEx := 0 724 for iNdEx < l { 725 preIndex := iNdEx 726 var wire uint64 727 for shift := uint(0); ; shift += 7 { 728 if shift >= 64 { 729 return ErrIntOverflowTypes 730 } 731 if iNdEx >= l { 732 return io.ErrUnexpectedEOF 733 } 734 b := dAtA[iNdEx] 735 iNdEx++ 736 wire |= uint64(b&0x7F) << shift 737 if b < 0x80 { 738 break 739 } 740 } 741 fieldNum := int32(wire >> 3) 742 wireType := int(wire & 0x7) 743 if wireType == 4 { 744 return fmt.Errorf("proto: ResponseBroadcastTx: wiretype end group for non-group") 745 } 746 if fieldNum <= 0 { 747 return fmt.Errorf("proto: ResponseBroadcastTx: illegal tag %d (wire type %d)", fieldNum, wire) 748 } 749 switch fieldNum { 750 case 1: 751 if wireType != 2 { 752 return fmt.Errorf("proto: wrong wireType = %d for field CheckTx", wireType) 753 } 754 var msglen int 755 for shift := uint(0); ; shift += 7 { 756 if shift >= 64 { 757 return ErrIntOverflowTypes 758 } 759 if iNdEx >= l { 760 return io.ErrUnexpectedEOF 761 } 762 b := dAtA[iNdEx] 763 iNdEx++ 764 msglen |= int(b&0x7F) << shift 765 if b < 0x80 { 766 break 767 } 768 } 769 if msglen < 0 { 770 return ErrInvalidLengthTypes 771 } 772 postIndex := iNdEx + msglen 773 if postIndex < 0 { 774 return ErrInvalidLengthTypes 775 } 776 if postIndex > l { 777 return io.ErrUnexpectedEOF 778 } 779 if m.CheckTx == nil { 780 m.CheckTx = &types.ResponseCheckTx{} 781 } 782 if err := m.CheckTx.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 783 return err 784 } 785 iNdEx = postIndex 786 case 2: 787 if wireType != 2 { 788 return fmt.Errorf("proto: wrong wireType = %d for field DeliverTx", wireType) 789 } 790 var msglen int 791 for shift := uint(0); ; shift += 7 { 792 if shift >= 64 { 793 return ErrIntOverflowTypes 794 } 795 if iNdEx >= l { 796 return io.ErrUnexpectedEOF 797 } 798 b := dAtA[iNdEx] 799 iNdEx++ 800 msglen |= int(b&0x7F) << shift 801 if b < 0x80 { 802 break 803 } 804 } 805 if msglen < 0 { 806 return ErrInvalidLengthTypes 807 } 808 postIndex := iNdEx + msglen 809 if postIndex < 0 { 810 return ErrInvalidLengthTypes 811 } 812 if postIndex > l { 813 return io.ErrUnexpectedEOF 814 } 815 if m.DeliverTx == nil { 816 m.DeliverTx = &types.ResponseDeliverTx{} 817 } 818 if err := m.DeliverTx.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 819 return err 820 } 821 iNdEx = postIndex 822 default: 823 iNdEx = preIndex 824 skippy, err := skipTypes(dAtA[iNdEx:]) 825 if err != nil { 826 return err 827 } 828 if (skippy < 0) || (iNdEx+skippy) < 0 { 829 return ErrInvalidLengthTypes 830 } 831 if (iNdEx + skippy) > l { 832 return io.ErrUnexpectedEOF 833 } 834 iNdEx += skippy 835 } 836 } 837 838 if iNdEx > l { 839 return io.ErrUnexpectedEOF 840 } 841 return nil 842 } 843 func skipTypes(dAtA []byte) (n int, err error) { 844 l := len(dAtA) 845 iNdEx := 0 846 depth := 0 847 for iNdEx < l { 848 var wire uint64 849 for shift := uint(0); ; shift += 7 { 850 if shift >= 64 { 851 return 0, ErrIntOverflowTypes 852 } 853 if iNdEx >= l { 854 return 0, io.ErrUnexpectedEOF 855 } 856 b := dAtA[iNdEx] 857 iNdEx++ 858 wire |= (uint64(b) & 0x7F) << shift 859 if b < 0x80 { 860 break 861 } 862 } 863 wireType := int(wire & 0x7) 864 switch wireType { 865 case 0: 866 for shift := uint(0); ; shift += 7 { 867 if shift >= 64 { 868 return 0, ErrIntOverflowTypes 869 } 870 if iNdEx >= l { 871 return 0, io.ErrUnexpectedEOF 872 } 873 iNdEx++ 874 if dAtA[iNdEx-1] < 0x80 { 875 break 876 } 877 } 878 case 1: 879 iNdEx += 8 880 case 2: 881 var length int 882 for shift := uint(0); ; shift += 7 { 883 if shift >= 64 { 884 return 0, ErrIntOverflowTypes 885 } 886 if iNdEx >= l { 887 return 0, io.ErrUnexpectedEOF 888 } 889 b := dAtA[iNdEx] 890 iNdEx++ 891 length |= (int(b) & 0x7F) << shift 892 if b < 0x80 { 893 break 894 } 895 } 896 if length < 0 { 897 return 0, ErrInvalidLengthTypes 898 } 899 iNdEx += length 900 case 3: 901 depth++ 902 case 4: 903 if depth == 0 { 904 return 0, ErrUnexpectedEndOfGroupTypes 905 } 906 depth-- 907 case 5: 908 iNdEx += 4 909 default: 910 return 0, fmt.Errorf("proto: illegal wireType %d", wireType) 911 } 912 if iNdEx < 0 { 913 return 0, ErrInvalidLengthTypes 914 } 915 if depth == 0 { 916 return iNdEx, nil 917 } 918 } 919 return 0, io.ErrUnexpectedEOF 920 } 921 922 var ( 923 ErrInvalidLengthTypes = fmt.Errorf("proto: negative length found during unmarshaling") 924 ErrIntOverflowTypes = fmt.Errorf("proto: integer overflow") 925 ErrUnexpectedEndOfGroupTypes = fmt.Errorf("proto: unexpected end of group") 926 )