github.com/Finschia/finschia-sdk@v0.48.1/x/slashing/types/tx.pb.go (about) 1 // Code generated by protoc-gen-gogo. DO NOT EDIT. 2 // source: cosmos/slashing/v1beta1/tx.proto 3 4 package types 5 6 import ( 7 context "context" 8 fmt "fmt" 9 _ "github.com/gogo/protobuf/gogoproto" 10 grpc1 "github.com/gogo/protobuf/grpc" 11 proto "github.com/gogo/protobuf/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 // MsgUnjail defines the Msg/Unjail request type 32 type MsgUnjail struct { 33 ValidatorAddr string `protobuf:"bytes,1,opt,name=validator_addr,json=validatorAddr,proto3" json:"address" yaml:"address"` 34 } 35 36 func (m *MsgUnjail) Reset() { *m = MsgUnjail{} } 37 func (m *MsgUnjail) String() string { return proto.CompactTextString(m) } 38 func (*MsgUnjail) ProtoMessage() {} 39 func (*MsgUnjail) Descriptor() ([]byte, []int) { 40 return fileDescriptor_3c5611c0c4a59d9d, []int{0} 41 } 42 func (m *MsgUnjail) XXX_Unmarshal(b []byte) error { 43 return m.Unmarshal(b) 44 } 45 func (m *MsgUnjail) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 46 if deterministic { 47 return xxx_messageInfo_MsgUnjail.Marshal(b, m, deterministic) 48 } else { 49 b = b[:cap(b)] 50 n, err := m.MarshalToSizedBuffer(b) 51 if err != nil { 52 return nil, err 53 } 54 return b[:n], nil 55 } 56 } 57 func (m *MsgUnjail) XXX_Merge(src proto.Message) { 58 xxx_messageInfo_MsgUnjail.Merge(m, src) 59 } 60 func (m *MsgUnjail) XXX_Size() int { 61 return m.Size() 62 } 63 func (m *MsgUnjail) XXX_DiscardUnknown() { 64 xxx_messageInfo_MsgUnjail.DiscardUnknown(m) 65 } 66 67 var xxx_messageInfo_MsgUnjail proto.InternalMessageInfo 68 69 // MsgUnjailResponse defines the Msg/Unjail response type 70 type MsgUnjailResponse struct { 71 } 72 73 func (m *MsgUnjailResponse) Reset() { *m = MsgUnjailResponse{} } 74 func (m *MsgUnjailResponse) String() string { return proto.CompactTextString(m) } 75 func (*MsgUnjailResponse) ProtoMessage() {} 76 func (*MsgUnjailResponse) Descriptor() ([]byte, []int) { 77 return fileDescriptor_3c5611c0c4a59d9d, []int{1} 78 } 79 func (m *MsgUnjailResponse) XXX_Unmarshal(b []byte) error { 80 return m.Unmarshal(b) 81 } 82 func (m *MsgUnjailResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 83 if deterministic { 84 return xxx_messageInfo_MsgUnjailResponse.Marshal(b, m, deterministic) 85 } else { 86 b = b[:cap(b)] 87 n, err := m.MarshalToSizedBuffer(b) 88 if err != nil { 89 return nil, err 90 } 91 return b[:n], nil 92 } 93 } 94 func (m *MsgUnjailResponse) XXX_Merge(src proto.Message) { 95 xxx_messageInfo_MsgUnjailResponse.Merge(m, src) 96 } 97 func (m *MsgUnjailResponse) XXX_Size() int { 98 return m.Size() 99 } 100 func (m *MsgUnjailResponse) XXX_DiscardUnknown() { 101 xxx_messageInfo_MsgUnjailResponse.DiscardUnknown(m) 102 } 103 104 var xxx_messageInfo_MsgUnjailResponse proto.InternalMessageInfo 105 106 func init() { 107 proto.RegisterType((*MsgUnjail)(nil), "cosmos.slashing.v1beta1.MsgUnjail") 108 proto.RegisterType((*MsgUnjailResponse)(nil), "cosmos.slashing.v1beta1.MsgUnjailResponse") 109 } 110 111 func init() { proto.RegisterFile("cosmos/slashing/v1beta1/tx.proto", fileDescriptor_3c5611c0c4a59d9d) } 112 113 var fileDescriptor_3c5611c0c4a59d9d = []byte{ 114 // 277 bytes of a gzipped FileDescriptorProto 115 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0x48, 0xce, 0x2f, 0xce, 116 0xcd, 0x2f, 0xd6, 0x2f, 0xce, 0x49, 0x2c, 0xce, 0xc8, 0xcc, 0x4b, 0xd7, 0x2f, 0x33, 0x4c, 0x4a, 117 0x2d, 0x49, 0x34, 0xd4, 0x2f, 0xa9, 0xd0, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x12, 0x87, 0xa8, 118 0xd0, 0x83, 0xa9, 0xd0, 0x83, 0xaa, 0x90, 0x12, 0x49, 0xcf, 0x4f, 0xcf, 0x07, 0xab, 0xd1, 0x07, 119 0xb1, 0x20, 0xca, 0x95, 0xa2, 0xb9, 0x38, 0x7d, 0x8b, 0xd3, 0x43, 0xf3, 0xb2, 0x12, 0x33, 0x73, 120 0x84, 0x5c, 0xb8, 0xf8, 0xca, 0x12, 0x73, 0x32, 0x53, 0x12, 0x4b, 0xf2, 0x8b, 0xe2, 0x13, 0x53, 121 0x52, 0x8a, 0x24, 0x18, 0x15, 0x18, 0x35, 0x38, 0x9d, 0x64, 0x5f, 0xdd, 0x93, 0x67, 0x07, 0xf1, 122 0x53, 0x8b, 0x8b, 0x3f, 0xdd, 0x93, 0xe7, 0xab, 0x4c, 0xcc, 0xcd, 0xb1, 0x52, 0x82, 0x0a, 0x28, 123 0x05, 0xf1, 0xc2, 0x35, 0x39, 0xa6, 0xa4, 0x14, 0x59, 0x71, 0x74, 0x2c, 0x90, 0x67, 0x98, 0xb1, 124 0x40, 0x9e, 0x51, 0x49, 0x98, 0x4b, 0x10, 0x6e, 0x78, 0x50, 0x6a, 0x71, 0x41, 0x7e, 0x5e, 0x71, 125 0xaa, 0x51, 0x3c, 0x17, 0xb3, 0x6f, 0x71, 0xba, 0x50, 0x04, 0x17, 0x1b, 0xd4, 0x56, 0x25, 0x3d, 126 0x1c, 0x4e, 0xd6, 0x83, 0x6b, 0x96, 0xd2, 0x22, 0xac, 0x06, 0x66, 0x81, 0x93, 0xff, 0x8a, 0x47, 127 0x72, 0x8c, 0x27, 0x1e, 0xc9, 0x31, 0x5e, 0x78, 0x24, 0xc7, 0xf8, 0xe0, 0x91, 0x1c, 0xe3, 0x84, 128 0xc7, 0x72, 0x0c, 0x17, 0x1e, 0xcb, 0x31, 0xdc, 0x78, 0x2c, 0xc7, 0x10, 0x65, 0x98, 0x9e, 0x59, 129 0x92, 0x51, 0x9a, 0xa4, 0x97, 0x9c, 0x9f, 0xab, 0xef, 0x96, 0x99, 0x57, 0x9c, 0x9c, 0x91, 0x99, 130 0xa8, 0x9f, 0x06, 0x65, 0xe8, 0x16, 0xa7, 0x64, 0xeb, 0x57, 0x20, 0x42, 0xb7, 0xa4, 0xb2, 0x20, 131 0xb5, 0x38, 0x89, 0x0d, 0x1c, 0x54, 0xc6, 0x80, 0x00, 0x00, 0x00, 0xff, 0xff, 0x5f, 0x99, 0x0b, 132 0x5d, 0x7d, 0x01, 0x00, 0x00, 133 } 134 135 func (this *MsgUnjail) Equal(that interface{}) bool { 136 if that == nil { 137 return this == nil 138 } 139 140 that1, ok := that.(*MsgUnjail) 141 if !ok { 142 that2, ok := that.(MsgUnjail) 143 if ok { 144 that1 = &that2 145 } else { 146 return false 147 } 148 } 149 if that1 == nil { 150 return this == nil 151 } else if this == nil { 152 return false 153 } 154 if this.ValidatorAddr != that1.ValidatorAddr { 155 return false 156 } 157 return true 158 } 159 func (this *MsgUnjailResponse) Equal(that interface{}) bool { 160 if that == nil { 161 return this == nil 162 } 163 164 that1, ok := that.(*MsgUnjailResponse) 165 if !ok { 166 that2, ok := that.(MsgUnjailResponse) 167 if ok { 168 that1 = &that2 169 } else { 170 return false 171 } 172 } 173 if that1 == nil { 174 return this == nil 175 } else if this == nil { 176 return false 177 } 178 return true 179 } 180 181 // Reference imports to suppress errors if they are not otherwise used. 182 var _ context.Context 183 var _ grpc.ClientConn 184 185 // This is a compile-time assertion to ensure that this generated file 186 // is compatible with the grpc package it is being compiled against. 187 const _ = grpc.SupportPackageIsVersion4 188 189 // MsgClient is the client API for Msg service. 190 // 191 // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. 192 type MsgClient interface { 193 // Unjail defines a method for unjailing a jailed validator, thus returning 194 // them into the bonded validator set, so they can begin receiving provisions 195 // and rewards again. 196 Unjail(ctx context.Context, in *MsgUnjail, opts ...grpc.CallOption) (*MsgUnjailResponse, error) 197 } 198 199 type msgClient struct { 200 cc grpc1.ClientConn 201 } 202 203 func NewMsgClient(cc grpc1.ClientConn) MsgClient { 204 return &msgClient{cc} 205 } 206 207 func (c *msgClient) Unjail(ctx context.Context, in *MsgUnjail, opts ...grpc.CallOption) (*MsgUnjailResponse, error) { 208 out := new(MsgUnjailResponse) 209 err := c.cc.Invoke(ctx, "/cosmos.slashing.v1beta1.Msg/Unjail", in, out, opts...) 210 if err != nil { 211 return nil, err 212 } 213 return out, nil 214 } 215 216 // MsgServer is the server API for Msg service. 217 type MsgServer interface { 218 // Unjail defines a method for unjailing a jailed validator, thus returning 219 // them into the bonded validator set, so they can begin receiving provisions 220 // and rewards again. 221 Unjail(context.Context, *MsgUnjail) (*MsgUnjailResponse, error) 222 } 223 224 // UnimplementedMsgServer can be embedded to have forward compatible implementations. 225 type UnimplementedMsgServer struct { 226 } 227 228 func (*UnimplementedMsgServer) Unjail(ctx context.Context, req *MsgUnjail) (*MsgUnjailResponse, error) { 229 return nil, status.Errorf(codes.Unimplemented, "method Unjail not implemented") 230 } 231 232 func RegisterMsgServer(s grpc1.Server, srv MsgServer) { 233 s.RegisterService(&_Msg_serviceDesc, srv) 234 } 235 236 func _Msg_Unjail_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 237 in := new(MsgUnjail) 238 if err := dec(in); err != nil { 239 return nil, err 240 } 241 if interceptor == nil { 242 return srv.(MsgServer).Unjail(ctx, in) 243 } 244 info := &grpc.UnaryServerInfo{ 245 Server: srv, 246 FullMethod: "/cosmos.slashing.v1beta1.Msg/Unjail", 247 } 248 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 249 return srv.(MsgServer).Unjail(ctx, req.(*MsgUnjail)) 250 } 251 return interceptor(ctx, in, info, handler) 252 } 253 254 var _Msg_serviceDesc = grpc.ServiceDesc{ 255 ServiceName: "cosmos.slashing.v1beta1.Msg", 256 HandlerType: (*MsgServer)(nil), 257 Methods: []grpc.MethodDesc{ 258 { 259 MethodName: "Unjail", 260 Handler: _Msg_Unjail_Handler, 261 }, 262 }, 263 Streams: []grpc.StreamDesc{}, 264 Metadata: "cosmos/slashing/v1beta1/tx.proto", 265 } 266 267 func (m *MsgUnjail) Marshal() (dAtA []byte, err error) { 268 size := m.Size() 269 dAtA = make([]byte, size) 270 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 271 if err != nil { 272 return nil, err 273 } 274 return dAtA[:n], nil 275 } 276 277 func (m *MsgUnjail) MarshalTo(dAtA []byte) (int, error) { 278 size := m.Size() 279 return m.MarshalToSizedBuffer(dAtA[:size]) 280 } 281 282 func (m *MsgUnjail) MarshalToSizedBuffer(dAtA []byte) (int, error) { 283 i := len(dAtA) 284 _ = i 285 var l int 286 _ = l 287 if len(m.ValidatorAddr) > 0 { 288 i -= len(m.ValidatorAddr) 289 copy(dAtA[i:], m.ValidatorAddr) 290 i = encodeVarintTx(dAtA, i, uint64(len(m.ValidatorAddr))) 291 i-- 292 dAtA[i] = 0xa 293 } 294 return len(dAtA) - i, nil 295 } 296 297 func (m *MsgUnjailResponse) Marshal() (dAtA []byte, err error) { 298 size := m.Size() 299 dAtA = make([]byte, size) 300 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 301 if err != nil { 302 return nil, err 303 } 304 return dAtA[:n], nil 305 } 306 307 func (m *MsgUnjailResponse) MarshalTo(dAtA []byte) (int, error) { 308 size := m.Size() 309 return m.MarshalToSizedBuffer(dAtA[:size]) 310 } 311 312 func (m *MsgUnjailResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 313 i := len(dAtA) 314 _ = i 315 var l int 316 _ = l 317 return len(dAtA) - i, nil 318 } 319 320 func encodeVarintTx(dAtA []byte, offset int, v uint64) int { 321 offset -= sovTx(v) 322 base := offset 323 for v >= 1<<7 { 324 dAtA[offset] = uint8(v&0x7f | 0x80) 325 v >>= 7 326 offset++ 327 } 328 dAtA[offset] = uint8(v) 329 return base 330 } 331 func (m *MsgUnjail) Size() (n int) { 332 if m == nil { 333 return 0 334 } 335 var l int 336 _ = l 337 l = len(m.ValidatorAddr) 338 if l > 0 { 339 n += 1 + l + sovTx(uint64(l)) 340 } 341 return n 342 } 343 344 func (m *MsgUnjailResponse) Size() (n int) { 345 if m == nil { 346 return 0 347 } 348 var l int 349 _ = l 350 return n 351 } 352 353 func sovTx(x uint64) (n int) { 354 return (math_bits.Len64(x|1) + 6) / 7 355 } 356 func sozTx(x uint64) (n int) { 357 return sovTx(uint64((x << 1) ^ uint64((int64(x) >> 63)))) 358 } 359 func (m *MsgUnjail) Unmarshal(dAtA []byte) error { 360 l := len(dAtA) 361 iNdEx := 0 362 for iNdEx < l { 363 preIndex := iNdEx 364 var wire uint64 365 for shift := uint(0); ; shift += 7 { 366 if shift >= 64 { 367 return ErrIntOverflowTx 368 } 369 if iNdEx >= l { 370 return io.ErrUnexpectedEOF 371 } 372 b := dAtA[iNdEx] 373 iNdEx++ 374 wire |= uint64(b&0x7F) << shift 375 if b < 0x80 { 376 break 377 } 378 } 379 fieldNum := int32(wire >> 3) 380 wireType := int(wire & 0x7) 381 if wireType == 4 { 382 return fmt.Errorf("proto: MsgUnjail: wiretype end group for non-group") 383 } 384 if fieldNum <= 0 { 385 return fmt.Errorf("proto: MsgUnjail: illegal tag %d (wire type %d)", fieldNum, wire) 386 } 387 switch fieldNum { 388 case 1: 389 if wireType != 2 { 390 return fmt.Errorf("proto: wrong wireType = %d for field ValidatorAddr", wireType) 391 } 392 var stringLen uint64 393 for shift := uint(0); ; shift += 7 { 394 if shift >= 64 { 395 return ErrIntOverflowTx 396 } 397 if iNdEx >= l { 398 return io.ErrUnexpectedEOF 399 } 400 b := dAtA[iNdEx] 401 iNdEx++ 402 stringLen |= uint64(b&0x7F) << shift 403 if b < 0x80 { 404 break 405 } 406 } 407 intStringLen := int(stringLen) 408 if intStringLen < 0 { 409 return ErrInvalidLengthTx 410 } 411 postIndex := iNdEx + intStringLen 412 if postIndex < 0 { 413 return ErrInvalidLengthTx 414 } 415 if postIndex > l { 416 return io.ErrUnexpectedEOF 417 } 418 m.ValidatorAddr = string(dAtA[iNdEx:postIndex]) 419 iNdEx = postIndex 420 default: 421 iNdEx = preIndex 422 skippy, err := skipTx(dAtA[iNdEx:]) 423 if err != nil { 424 return err 425 } 426 if (skippy < 0) || (iNdEx+skippy) < 0 { 427 return ErrInvalidLengthTx 428 } 429 if (iNdEx + skippy) > l { 430 return io.ErrUnexpectedEOF 431 } 432 iNdEx += skippy 433 } 434 } 435 436 if iNdEx > l { 437 return io.ErrUnexpectedEOF 438 } 439 return nil 440 } 441 func (m *MsgUnjailResponse) Unmarshal(dAtA []byte) error { 442 l := len(dAtA) 443 iNdEx := 0 444 for iNdEx < l { 445 preIndex := iNdEx 446 var wire uint64 447 for shift := uint(0); ; shift += 7 { 448 if shift >= 64 { 449 return ErrIntOverflowTx 450 } 451 if iNdEx >= l { 452 return io.ErrUnexpectedEOF 453 } 454 b := dAtA[iNdEx] 455 iNdEx++ 456 wire |= uint64(b&0x7F) << shift 457 if b < 0x80 { 458 break 459 } 460 } 461 fieldNum := int32(wire >> 3) 462 wireType := int(wire & 0x7) 463 if wireType == 4 { 464 return fmt.Errorf("proto: MsgUnjailResponse: wiretype end group for non-group") 465 } 466 if fieldNum <= 0 { 467 return fmt.Errorf("proto: MsgUnjailResponse: illegal tag %d (wire type %d)", fieldNum, wire) 468 } 469 switch fieldNum { 470 default: 471 iNdEx = preIndex 472 skippy, err := skipTx(dAtA[iNdEx:]) 473 if err != nil { 474 return err 475 } 476 if (skippy < 0) || (iNdEx+skippy) < 0 { 477 return ErrInvalidLengthTx 478 } 479 if (iNdEx + skippy) > l { 480 return io.ErrUnexpectedEOF 481 } 482 iNdEx += skippy 483 } 484 } 485 486 if iNdEx > l { 487 return io.ErrUnexpectedEOF 488 } 489 return nil 490 } 491 func skipTx(dAtA []byte) (n int, err error) { 492 l := len(dAtA) 493 iNdEx := 0 494 depth := 0 495 for iNdEx < l { 496 var wire uint64 497 for shift := uint(0); ; shift += 7 { 498 if shift >= 64 { 499 return 0, ErrIntOverflowTx 500 } 501 if iNdEx >= l { 502 return 0, io.ErrUnexpectedEOF 503 } 504 b := dAtA[iNdEx] 505 iNdEx++ 506 wire |= (uint64(b) & 0x7F) << shift 507 if b < 0x80 { 508 break 509 } 510 } 511 wireType := int(wire & 0x7) 512 switch wireType { 513 case 0: 514 for shift := uint(0); ; shift += 7 { 515 if shift >= 64 { 516 return 0, ErrIntOverflowTx 517 } 518 if iNdEx >= l { 519 return 0, io.ErrUnexpectedEOF 520 } 521 iNdEx++ 522 if dAtA[iNdEx-1] < 0x80 { 523 break 524 } 525 } 526 case 1: 527 iNdEx += 8 528 case 2: 529 var length int 530 for shift := uint(0); ; shift += 7 { 531 if shift >= 64 { 532 return 0, ErrIntOverflowTx 533 } 534 if iNdEx >= l { 535 return 0, io.ErrUnexpectedEOF 536 } 537 b := dAtA[iNdEx] 538 iNdEx++ 539 length |= (int(b) & 0x7F) << shift 540 if b < 0x80 { 541 break 542 } 543 } 544 if length < 0 { 545 return 0, ErrInvalidLengthTx 546 } 547 iNdEx += length 548 case 3: 549 depth++ 550 case 4: 551 if depth == 0 { 552 return 0, ErrUnexpectedEndOfGroupTx 553 } 554 depth-- 555 case 5: 556 iNdEx += 4 557 default: 558 return 0, fmt.Errorf("proto: illegal wireType %d", wireType) 559 } 560 if iNdEx < 0 { 561 return 0, ErrInvalidLengthTx 562 } 563 if depth == 0 { 564 return iNdEx, nil 565 } 566 } 567 return 0, io.ErrUnexpectedEOF 568 } 569 570 var ( 571 ErrInvalidLengthTx = fmt.Errorf("proto: negative length found during unmarshaling") 572 ErrIntOverflowTx = fmt.Errorf("proto: integer overflow") 573 ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group") 574 )