github.com/cosmos/cosmos-sdk@v0.50.10/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/cosmos/cosmos-proto" 10 _ "github.com/cosmos/cosmos-sdk/types/msgservice" 11 _ "github.com/cosmos/cosmos-sdk/types/tx/amino" 12 _ "github.com/cosmos/gogoproto/gogoproto" 13 grpc1 "github.com/cosmos/gogoproto/grpc" 14 proto "github.com/cosmos/gogoproto/proto" 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 // MsgUnjail defines the Msg/Unjail request type 35 type MsgUnjail struct { 36 ValidatorAddr string `protobuf:"bytes,1,opt,name=validator_addr,json=validatorAddr,proto3" json:"address"` 37 } 38 39 func (m *MsgUnjail) Reset() { *m = MsgUnjail{} } 40 func (m *MsgUnjail) String() string { return proto.CompactTextString(m) } 41 func (*MsgUnjail) ProtoMessage() {} 42 func (*MsgUnjail) Descriptor() ([]byte, []int) { 43 return fileDescriptor_3c5611c0c4a59d9d, []int{0} 44 } 45 func (m *MsgUnjail) XXX_Unmarshal(b []byte) error { 46 return m.Unmarshal(b) 47 } 48 func (m *MsgUnjail) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 49 if deterministic { 50 return xxx_messageInfo_MsgUnjail.Marshal(b, m, deterministic) 51 } else { 52 b = b[:cap(b)] 53 n, err := m.MarshalToSizedBuffer(b) 54 if err != nil { 55 return nil, err 56 } 57 return b[:n], nil 58 } 59 } 60 func (m *MsgUnjail) XXX_Merge(src proto.Message) { 61 xxx_messageInfo_MsgUnjail.Merge(m, src) 62 } 63 func (m *MsgUnjail) XXX_Size() int { 64 return m.Size() 65 } 66 func (m *MsgUnjail) XXX_DiscardUnknown() { 67 xxx_messageInfo_MsgUnjail.DiscardUnknown(m) 68 } 69 70 var xxx_messageInfo_MsgUnjail proto.InternalMessageInfo 71 72 // MsgUnjailResponse defines the Msg/Unjail response type 73 type MsgUnjailResponse struct { 74 } 75 76 func (m *MsgUnjailResponse) Reset() { *m = MsgUnjailResponse{} } 77 func (m *MsgUnjailResponse) String() string { return proto.CompactTextString(m) } 78 func (*MsgUnjailResponse) ProtoMessage() {} 79 func (*MsgUnjailResponse) Descriptor() ([]byte, []int) { 80 return fileDescriptor_3c5611c0c4a59d9d, []int{1} 81 } 82 func (m *MsgUnjailResponse) XXX_Unmarshal(b []byte) error { 83 return m.Unmarshal(b) 84 } 85 func (m *MsgUnjailResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 86 if deterministic { 87 return xxx_messageInfo_MsgUnjailResponse.Marshal(b, m, deterministic) 88 } else { 89 b = b[:cap(b)] 90 n, err := m.MarshalToSizedBuffer(b) 91 if err != nil { 92 return nil, err 93 } 94 return b[:n], nil 95 } 96 } 97 func (m *MsgUnjailResponse) XXX_Merge(src proto.Message) { 98 xxx_messageInfo_MsgUnjailResponse.Merge(m, src) 99 } 100 func (m *MsgUnjailResponse) XXX_Size() int { 101 return m.Size() 102 } 103 func (m *MsgUnjailResponse) XXX_DiscardUnknown() { 104 xxx_messageInfo_MsgUnjailResponse.DiscardUnknown(m) 105 } 106 107 var xxx_messageInfo_MsgUnjailResponse proto.InternalMessageInfo 108 109 // MsgUpdateParams is the Msg/UpdateParams request type. 110 // 111 // Since: cosmos-sdk 0.47 112 type MsgUpdateParams struct { 113 // authority is the address that controls the module (defaults to x/gov unless overwritten). 114 Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` 115 // params defines the x/slashing parameters to update. 116 // 117 // NOTE: All parameters must be supplied. 118 Params Params `protobuf:"bytes,2,opt,name=params,proto3" json:"params"` 119 } 120 121 func (m *MsgUpdateParams) Reset() { *m = MsgUpdateParams{} } 122 func (m *MsgUpdateParams) String() string { return proto.CompactTextString(m) } 123 func (*MsgUpdateParams) ProtoMessage() {} 124 func (*MsgUpdateParams) Descriptor() ([]byte, []int) { 125 return fileDescriptor_3c5611c0c4a59d9d, []int{2} 126 } 127 func (m *MsgUpdateParams) XXX_Unmarshal(b []byte) error { 128 return m.Unmarshal(b) 129 } 130 func (m *MsgUpdateParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 131 if deterministic { 132 return xxx_messageInfo_MsgUpdateParams.Marshal(b, m, deterministic) 133 } else { 134 b = b[:cap(b)] 135 n, err := m.MarshalToSizedBuffer(b) 136 if err != nil { 137 return nil, err 138 } 139 return b[:n], nil 140 } 141 } 142 func (m *MsgUpdateParams) XXX_Merge(src proto.Message) { 143 xxx_messageInfo_MsgUpdateParams.Merge(m, src) 144 } 145 func (m *MsgUpdateParams) XXX_Size() int { 146 return m.Size() 147 } 148 func (m *MsgUpdateParams) XXX_DiscardUnknown() { 149 xxx_messageInfo_MsgUpdateParams.DiscardUnknown(m) 150 } 151 152 var xxx_messageInfo_MsgUpdateParams proto.InternalMessageInfo 153 154 func (m *MsgUpdateParams) GetAuthority() string { 155 if m != nil { 156 return m.Authority 157 } 158 return "" 159 } 160 161 func (m *MsgUpdateParams) GetParams() Params { 162 if m != nil { 163 return m.Params 164 } 165 return Params{} 166 } 167 168 // MsgUpdateParamsResponse defines the response structure for executing a 169 // MsgUpdateParams message. 170 // 171 // Since: cosmos-sdk 0.47 172 type MsgUpdateParamsResponse struct { 173 } 174 175 func (m *MsgUpdateParamsResponse) Reset() { *m = MsgUpdateParamsResponse{} } 176 func (m *MsgUpdateParamsResponse) String() string { return proto.CompactTextString(m) } 177 func (*MsgUpdateParamsResponse) ProtoMessage() {} 178 func (*MsgUpdateParamsResponse) Descriptor() ([]byte, []int) { 179 return fileDescriptor_3c5611c0c4a59d9d, []int{3} 180 } 181 func (m *MsgUpdateParamsResponse) XXX_Unmarshal(b []byte) error { 182 return m.Unmarshal(b) 183 } 184 func (m *MsgUpdateParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 185 if deterministic { 186 return xxx_messageInfo_MsgUpdateParamsResponse.Marshal(b, m, deterministic) 187 } else { 188 b = b[:cap(b)] 189 n, err := m.MarshalToSizedBuffer(b) 190 if err != nil { 191 return nil, err 192 } 193 return b[:n], nil 194 } 195 } 196 func (m *MsgUpdateParamsResponse) XXX_Merge(src proto.Message) { 197 xxx_messageInfo_MsgUpdateParamsResponse.Merge(m, src) 198 } 199 func (m *MsgUpdateParamsResponse) XXX_Size() int { 200 return m.Size() 201 } 202 func (m *MsgUpdateParamsResponse) XXX_DiscardUnknown() { 203 xxx_messageInfo_MsgUpdateParamsResponse.DiscardUnknown(m) 204 } 205 206 var xxx_messageInfo_MsgUpdateParamsResponse proto.InternalMessageInfo 207 208 func init() { 209 proto.RegisterType((*MsgUnjail)(nil), "cosmos.slashing.v1beta1.MsgUnjail") 210 proto.RegisterType((*MsgUnjailResponse)(nil), "cosmos.slashing.v1beta1.MsgUnjailResponse") 211 proto.RegisterType((*MsgUpdateParams)(nil), "cosmos.slashing.v1beta1.MsgUpdateParams") 212 proto.RegisterType((*MsgUpdateParamsResponse)(nil), "cosmos.slashing.v1beta1.MsgUpdateParamsResponse") 213 } 214 215 func init() { proto.RegisterFile("cosmos/slashing/v1beta1/tx.proto", fileDescriptor_3c5611c0c4a59d9d) } 216 217 var fileDescriptor_3c5611c0c4a59d9d = []byte{ 218 // 461 bytes of a gzipped FileDescriptorProto 219 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0x48, 0xce, 0x2f, 0xce, 220 0xcd, 0x2f, 0xd6, 0x2f, 0xce, 0x49, 0x2c, 0xce, 0xc8, 0xcc, 0x4b, 0xd7, 0x2f, 0x33, 0x4c, 0x4a, 221 0x2d, 0x49, 0x34, 0xd4, 0x2f, 0xa9, 0xd0, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x12, 0x87, 0xa8, 222 0xd0, 0x83, 0xa9, 0xd0, 0x83, 0xaa, 0x90, 0x12, 0x49, 0xcf, 0x4f, 0xcf, 0x07, 0xab, 0xd1, 0x07, 223 0xb1, 0x20, 0xca, 0xa5, 0xd4, 0x70, 0x19, 0x08, 0xd7, 0x0f, 0x51, 0x27, 0x09, 0x51, 0x17, 0x0f, 224 0x31, 0x00, 0x6a, 0x07, 0x44, 0x0a, 0x6a, 0xa3, 0x7e, 0x6e, 0x31, 0x48, 0x37, 0x88, 0x82, 0x4a, 225 0x08, 0x26, 0xe6, 0x66, 0xe6, 0xe5, 0xeb, 0x83, 0x49, 0x88, 0x90, 0xd2, 0x62, 0x46, 0x2e, 0x4e, 226 0xdf, 0xe2, 0xf4, 0xd0, 0xbc, 0xac, 0xc4, 0xcc, 0x1c, 0xa1, 0x14, 0x2e, 0xbe, 0xb2, 0xc4, 0x9c, 227 0xcc, 0x94, 0xc4, 0x92, 0xfc, 0xa2, 0xf8, 0xc4, 0x94, 0x94, 0x22, 0x09, 0x46, 0x05, 0x46, 0x0d, 228 0x4e, 0x27, 0xdb, 0x57, 0xf7, 0xe4, 0xd9, 0x41, 0xfc, 0xd4, 0xe2, 0xe2, 0x4b, 0x5b, 0x74, 0x65, 229 0xa1, 0xd6, 0x85, 0xc1, 0xd4, 0x3a, 0x42, 0xa4, 0x82, 0x4b, 0x8a, 0x32, 0xf3, 0xd2, 0x17, 0x3d, 230 0xdf, 0xa0, 0x05, 0x53, 0xbc, 0xe2, 0xf9, 0x06, 0x2d, 0xc6, 0x20, 0xde, 0x32, 0x64, 0x85, 0x56, 231 0x06, 0x1d, 0x0b, 0xe4, 0x19, 0x9a, 0x9e, 0x6f, 0xd0, 0x42, 0xb3, 0xac, 0xeb, 0xf9, 0x06, 0x2d, 232 0x11, 0x88, 0xd1, 0xba, 0xc5, 0x29, 0xd9, 0xfa, 0x70, 0x77, 0x29, 0x09, 0x73, 0x09, 0xc2, 0x39, 233 0x41, 0xa9, 0xc5, 0x05, 0xf9, 0x79, 0xc5, 0xa9, 0x4a, 0xc7, 0x19, 0xb9, 0xf8, 0x41, 0xa2, 0x05, 234 0x29, 0x89, 0x25, 0xa9, 0x01, 0x89, 0x45, 0x89, 0xb9, 0xc5, 0x42, 0x66, 0x5c, 0x9c, 0x89, 0xa5, 235 0x25, 0x19, 0xf9, 0x45, 0x99, 0x25, 0x95, 0x50, 0xb7, 0x4b, 0x5c, 0xda, 0xa2, 0x0b, 0x35, 0x55, 236 0x0f, 0xc5, 0x9d, 0x41, 0x08, 0xa5, 0x42, 0x4e, 0x5c, 0x6c, 0x05, 0x60, 0x13, 0x24, 0x98, 0x14, 237 0x18, 0x35, 0xb8, 0x8d, 0xe4, 0xf5, 0x70, 0xc4, 0x9a, 0x1e, 0xc4, 0x22, 0x27, 0xce, 0x13, 0xf7, 238 0xe4, 0x19, 0x20, 0xbe, 0x83, 0xea, 0xb4, 0xb2, 0x00, 0x79, 0x09, 0x61, 0x26, 0xc8, 0x37, 0xaa, 239 0x48, 0xbe, 0xa9, 0x40, 0x44, 0x29, 0x9a, 0xab, 0x95, 0x24, 0xb9, 0xc4, 0xd1, 0x84, 0x60, 0x9e, 240 0x34, 0xba, 0xc4, 0xc8, 0xc5, 0xec, 0x5b, 0x9c, 0x2e, 0x14, 0xc1, 0xc5, 0x06, 0x8d, 0x23, 0x25, 241 0x9c, 0x4e, 0x83, 0x07, 0x91, 0x94, 0x16, 0x61, 0x35, 0x30, 0x1b, 0x84, 0xb2, 0xb8, 0x78, 0x50, 242 0x82, 0x50, 0x03, 0xaf, 0x5e, 0x24, 0x95, 0x52, 0x06, 0xc4, 0xaa, 0x84, 0xd9, 0x25, 0xc5, 0xda, 243 0x00, 0x0a, 0x31, 0x27, 0xef, 0x15, 0x8f, 0xe4, 0x18, 0x4f, 0x3c, 0x92, 0x63, 0xbc, 0xf0, 0x48, 244 0x8e, 0xf1, 0xc1, 0x23, 0x39, 0xc6, 0x09, 0x8f, 0xe5, 0x18, 0x2e, 0x3c, 0x96, 0x63, 0xb8, 0xf1, 245 0x58, 0x8e, 0x21, 0x4a, 0x37, 0x3d, 0xb3, 0x24, 0xa3, 0x34, 0x49, 0x2f, 0x39, 0x3f, 0x17, 0x9a, 246 0xae, 0xf5, 0xb1, 0x07, 0x63, 0x49, 0x65, 0x41, 0x6a, 0x71, 0x12, 0x1b, 0x38, 0x21, 0x1b, 0x03, 247 0x02, 0x00, 0x00, 0xff, 0xff, 0xf9, 0x3c, 0x10, 0x85, 0x8a, 0x03, 0x00, 0x00, 248 } 249 250 func (this *MsgUnjail) Equal(that interface{}) bool { 251 if that == nil { 252 return this == nil 253 } 254 255 that1, ok := that.(*MsgUnjail) 256 if !ok { 257 that2, ok := that.(MsgUnjail) 258 if ok { 259 that1 = &that2 260 } else { 261 return false 262 } 263 } 264 if that1 == nil { 265 return this == nil 266 } else if this == nil { 267 return false 268 } 269 if this.ValidatorAddr != that1.ValidatorAddr { 270 return false 271 } 272 return true 273 } 274 func (this *MsgUnjailResponse) Equal(that interface{}) bool { 275 if that == nil { 276 return this == nil 277 } 278 279 that1, ok := that.(*MsgUnjailResponse) 280 if !ok { 281 that2, ok := that.(MsgUnjailResponse) 282 if ok { 283 that1 = &that2 284 } else { 285 return false 286 } 287 } 288 if that1 == nil { 289 return this == nil 290 } else if this == nil { 291 return false 292 } 293 return true 294 } 295 func (this *MsgUpdateParams) Equal(that interface{}) bool { 296 if that == nil { 297 return this == nil 298 } 299 300 that1, ok := that.(*MsgUpdateParams) 301 if !ok { 302 that2, ok := that.(MsgUpdateParams) 303 if ok { 304 that1 = &that2 305 } else { 306 return false 307 } 308 } 309 if that1 == nil { 310 return this == nil 311 } else if this == nil { 312 return false 313 } 314 if this.Authority != that1.Authority { 315 return false 316 } 317 if !this.Params.Equal(&that1.Params) { 318 return false 319 } 320 return true 321 } 322 func (this *MsgUpdateParamsResponse) Equal(that interface{}) bool { 323 if that == nil { 324 return this == nil 325 } 326 327 that1, ok := that.(*MsgUpdateParamsResponse) 328 if !ok { 329 that2, ok := that.(MsgUpdateParamsResponse) 330 if ok { 331 that1 = &that2 332 } else { 333 return false 334 } 335 } 336 if that1 == nil { 337 return this == nil 338 } else if this == nil { 339 return false 340 } 341 return true 342 } 343 344 // Reference imports to suppress errors if they are not otherwise used. 345 var _ context.Context 346 var _ grpc.ClientConn 347 348 // This is a compile-time assertion to ensure that this generated file 349 // is compatible with the grpc package it is being compiled against. 350 const _ = grpc.SupportPackageIsVersion4 351 352 // MsgClient is the client API for Msg service. 353 // 354 // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. 355 type MsgClient interface { 356 // Unjail defines a method for unjailing a jailed validator, thus returning 357 // them into the bonded validator set, so they can begin receiving provisions 358 // and rewards again. 359 Unjail(ctx context.Context, in *MsgUnjail, opts ...grpc.CallOption) (*MsgUnjailResponse, error) 360 // UpdateParams defines a governance operation for updating the x/slashing module 361 // parameters. The authority defaults to the x/gov module account. 362 // 363 // Since: cosmos-sdk 0.47 364 UpdateParams(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, error) 365 } 366 367 type msgClient struct { 368 cc grpc1.ClientConn 369 } 370 371 func NewMsgClient(cc grpc1.ClientConn) MsgClient { 372 return &msgClient{cc} 373 } 374 375 func (c *msgClient) Unjail(ctx context.Context, in *MsgUnjail, opts ...grpc.CallOption) (*MsgUnjailResponse, error) { 376 out := new(MsgUnjailResponse) 377 err := c.cc.Invoke(ctx, "/cosmos.slashing.v1beta1.Msg/Unjail", in, out, opts...) 378 if err != nil { 379 return nil, err 380 } 381 return out, nil 382 } 383 384 func (c *msgClient) UpdateParams(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, error) { 385 out := new(MsgUpdateParamsResponse) 386 err := c.cc.Invoke(ctx, "/cosmos.slashing.v1beta1.Msg/UpdateParams", in, out, opts...) 387 if err != nil { 388 return nil, err 389 } 390 return out, nil 391 } 392 393 // MsgServer is the server API for Msg service. 394 type MsgServer interface { 395 // Unjail defines a method for unjailing a jailed validator, thus returning 396 // them into the bonded validator set, so they can begin receiving provisions 397 // and rewards again. 398 Unjail(context.Context, *MsgUnjail) (*MsgUnjailResponse, error) 399 // UpdateParams defines a governance operation for updating the x/slashing module 400 // parameters. The authority defaults to the x/gov module account. 401 // 402 // Since: cosmos-sdk 0.47 403 UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error) 404 } 405 406 // UnimplementedMsgServer can be embedded to have forward compatible implementations. 407 type UnimplementedMsgServer struct { 408 } 409 410 func (*UnimplementedMsgServer) Unjail(ctx context.Context, req *MsgUnjail) (*MsgUnjailResponse, error) { 411 return nil, status.Errorf(codes.Unimplemented, "method Unjail not implemented") 412 } 413 func (*UnimplementedMsgServer) UpdateParams(ctx context.Context, req *MsgUpdateParams) (*MsgUpdateParamsResponse, error) { 414 return nil, status.Errorf(codes.Unimplemented, "method UpdateParams not implemented") 415 } 416 417 func RegisterMsgServer(s grpc1.Server, srv MsgServer) { 418 s.RegisterService(&_Msg_serviceDesc, srv) 419 } 420 421 func _Msg_Unjail_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 422 in := new(MsgUnjail) 423 if err := dec(in); err != nil { 424 return nil, err 425 } 426 if interceptor == nil { 427 return srv.(MsgServer).Unjail(ctx, in) 428 } 429 info := &grpc.UnaryServerInfo{ 430 Server: srv, 431 FullMethod: "/cosmos.slashing.v1beta1.Msg/Unjail", 432 } 433 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 434 return srv.(MsgServer).Unjail(ctx, req.(*MsgUnjail)) 435 } 436 return interceptor(ctx, in, info, handler) 437 } 438 439 func _Msg_UpdateParams_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 440 in := new(MsgUpdateParams) 441 if err := dec(in); err != nil { 442 return nil, err 443 } 444 if interceptor == nil { 445 return srv.(MsgServer).UpdateParams(ctx, in) 446 } 447 info := &grpc.UnaryServerInfo{ 448 Server: srv, 449 FullMethod: "/cosmos.slashing.v1beta1.Msg/UpdateParams", 450 } 451 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 452 return srv.(MsgServer).UpdateParams(ctx, req.(*MsgUpdateParams)) 453 } 454 return interceptor(ctx, in, info, handler) 455 } 456 457 var _Msg_serviceDesc = grpc.ServiceDesc{ 458 ServiceName: "cosmos.slashing.v1beta1.Msg", 459 HandlerType: (*MsgServer)(nil), 460 Methods: []grpc.MethodDesc{ 461 { 462 MethodName: "Unjail", 463 Handler: _Msg_Unjail_Handler, 464 }, 465 { 466 MethodName: "UpdateParams", 467 Handler: _Msg_UpdateParams_Handler, 468 }, 469 }, 470 Streams: []grpc.StreamDesc{}, 471 Metadata: "cosmos/slashing/v1beta1/tx.proto", 472 } 473 474 func (m *MsgUnjail) Marshal() (dAtA []byte, err error) { 475 size := m.Size() 476 dAtA = make([]byte, size) 477 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 478 if err != nil { 479 return nil, err 480 } 481 return dAtA[:n], nil 482 } 483 484 func (m *MsgUnjail) MarshalTo(dAtA []byte) (int, error) { 485 size := m.Size() 486 return m.MarshalToSizedBuffer(dAtA[:size]) 487 } 488 489 func (m *MsgUnjail) MarshalToSizedBuffer(dAtA []byte) (int, error) { 490 i := len(dAtA) 491 _ = i 492 var l int 493 _ = l 494 if len(m.ValidatorAddr) > 0 { 495 i -= len(m.ValidatorAddr) 496 copy(dAtA[i:], m.ValidatorAddr) 497 i = encodeVarintTx(dAtA, i, uint64(len(m.ValidatorAddr))) 498 i-- 499 dAtA[i] = 0xa 500 } 501 return len(dAtA) - i, nil 502 } 503 504 func (m *MsgUnjailResponse) Marshal() (dAtA []byte, err error) { 505 size := m.Size() 506 dAtA = make([]byte, size) 507 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 508 if err != nil { 509 return nil, err 510 } 511 return dAtA[:n], nil 512 } 513 514 func (m *MsgUnjailResponse) MarshalTo(dAtA []byte) (int, error) { 515 size := m.Size() 516 return m.MarshalToSizedBuffer(dAtA[:size]) 517 } 518 519 func (m *MsgUnjailResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 520 i := len(dAtA) 521 _ = i 522 var l int 523 _ = l 524 return len(dAtA) - i, nil 525 } 526 527 func (m *MsgUpdateParams) Marshal() (dAtA []byte, err error) { 528 size := m.Size() 529 dAtA = make([]byte, size) 530 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 531 if err != nil { 532 return nil, err 533 } 534 return dAtA[:n], nil 535 } 536 537 func (m *MsgUpdateParams) MarshalTo(dAtA []byte) (int, error) { 538 size := m.Size() 539 return m.MarshalToSizedBuffer(dAtA[:size]) 540 } 541 542 func (m *MsgUpdateParams) MarshalToSizedBuffer(dAtA []byte) (int, error) { 543 i := len(dAtA) 544 _ = i 545 var l int 546 _ = l 547 { 548 size, err := m.Params.MarshalToSizedBuffer(dAtA[:i]) 549 if err != nil { 550 return 0, err 551 } 552 i -= size 553 i = encodeVarintTx(dAtA, i, uint64(size)) 554 } 555 i-- 556 dAtA[i] = 0x12 557 if len(m.Authority) > 0 { 558 i -= len(m.Authority) 559 copy(dAtA[i:], m.Authority) 560 i = encodeVarintTx(dAtA, i, uint64(len(m.Authority))) 561 i-- 562 dAtA[i] = 0xa 563 } 564 return len(dAtA) - i, nil 565 } 566 567 func (m *MsgUpdateParamsResponse) Marshal() (dAtA []byte, err error) { 568 size := m.Size() 569 dAtA = make([]byte, size) 570 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 571 if err != nil { 572 return nil, err 573 } 574 return dAtA[:n], nil 575 } 576 577 func (m *MsgUpdateParamsResponse) MarshalTo(dAtA []byte) (int, error) { 578 size := m.Size() 579 return m.MarshalToSizedBuffer(dAtA[:size]) 580 } 581 582 func (m *MsgUpdateParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 583 i := len(dAtA) 584 _ = i 585 var l int 586 _ = l 587 return len(dAtA) - i, nil 588 } 589 590 func encodeVarintTx(dAtA []byte, offset int, v uint64) int { 591 offset -= sovTx(v) 592 base := offset 593 for v >= 1<<7 { 594 dAtA[offset] = uint8(v&0x7f | 0x80) 595 v >>= 7 596 offset++ 597 } 598 dAtA[offset] = uint8(v) 599 return base 600 } 601 func (m *MsgUnjail) Size() (n int) { 602 if m == nil { 603 return 0 604 } 605 var l int 606 _ = l 607 l = len(m.ValidatorAddr) 608 if l > 0 { 609 n += 1 + l + sovTx(uint64(l)) 610 } 611 return n 612 } 613 614 func (m *MsgUnjailResponse) Size() (n int) { 615 if m == nil { 616 return 0 617 } 618 var l int 619 _ = l 620 return n 621 } 622 623 func (m *MsgUpdateParams) Size() (n int) { 624 if m == nil { 625 return 0 626 } 627 var l int 628 _ = l 629 l = len(m.Authority) 630 if l > 0 { 631 n += 1 + l + sovTx(uint64(l)) 632 } 633 l = m.Params.Size() 634 n += 1 + l + sovTx(uint64(l)) 635 return n 636 } 637 638 func (m *MsgUpdateParamsResponse) Size() (n int) { 639 if m == nil { 640 return 0 641 } 642 var l int 643 _ = l 644 return n 645 } 646 647 func sovTx(x uint64) (n int) { 648 return (math_bits.Len64(x|1) + 6) / 7 649 } 650 func sozTx(x uint64) (n int) { 651 return sovTx(uint64((x << 1) ^ uint64((int64(x) >> 63)))) 652 } 653 func (m *MsgUnjail) Unmarshal(dAtA []byte) error { 654 l := len(dAtA) 655 iNdEx := 0 656 for iNdEx < l { 657 preIndex := iNdEx 658 var wire uint64 659 for shift := uint(0); ; shift += 7 { 660 if shift >= 64 { 661 return ErrIntOverflowTx 662 } 663 if iNdEx >= l { 664 return io.ErrUnexpectedEOF 665 } 666 b := dAtA[iNdEx] 667 iNdEx++ 668 wire |= uint64(b&0x7F) << shift 669 if b < 0x80 { 670 break 671 } 672 } 673 fieldNum := int32(wire >> 3) 674 wireType := int(wire & 0x7) 675 if wireType == 4 { 676 return fmt.Errorf("proto: MsgUnjail: wiretype end group for non-group") 677 } 678 if fieldNum <= 0 { 679 return fmt.Errorf("proto: MsgUnjail: illegal tag %d (wire type %d)", fieldNum, wire) 680 } 681 switch fieldNum { 682 case 1: 683 if wireType != 2 { 684 return fmt.Errorf("proto: wrong wireType = %d for field ValidatorAddr", wireType) 685 } 686 var stringLen uint64 687 for shift := uint(0); ; shift += 7 { 688 if shift >= 64 { 689 return ErrIntOverflowTx 690 } 691 if iNdEx >= l { 692 return io.ErrUnexpectedEOF 693 } 694 b := dAtA[iNdEx] 695 iNdEx++ 696 stringLen |= uint64(b&0x7F) << shift 697 if b < 0x80 { 698 break 699 } 700 } 701 intStringLen := int(stringLen) 702 if intStringLen < 0 { 703 return ErrInvalidLengthTx 704 } 705 postIndex := iNdEx + intStringLen 706 if postIndex < 0 { 707 return ErrInvalidLengthTx 708 } 709 if postIndex > l { 710 return io.ErrUnexpectedEOF 711 } 712 m.ValidatorAddr = string(dAtA[iNdEx:postIndex]) 713 iNdEx = postIndex 714 default: 715 iNdEx = preIndex 716 skippy, err := skipTx(dAtA[iNdEx:]) 717 if err != nil { 718 return err 719 } 720 if (skippy < 0) || (iNdEx+skippy) < 0 { 721 return ErrInvalidLengthTx 722 } 723 if (iNdEx + skippy) > l { 724 return io.ErrUnexpectedEOF 725 } 726 iNdEx += skippy 727 } 728 } 729 730 if iNdEx > l { 731 return io.ErrUnexpectedEOF 732 } 733 return nil 734 } 735 func (m *MsgUnjailResponse) Unmarshal(dAtA []byte) error { 736 l := len(dAtA) 737 iNdEx := 0 738 for iNdEx < l { 739 preIndex := iNdEx 740 var wire uint64 741 for shift := uint(0); ; shift += 7 { 742 if shift >= 64 { 743 return ErrIntOverflowTx 744 } 745 if iNdEx >= l { 746 return io.ErrUnexpectedEOF 747 } 748 b := dAtA[iNdEx] 749 iNdEx++ 750 wire |= uint64(b&0x7F) << shift 751 if b < 0x80 { 752 break 753 } 754 } 755 fieldNum := int32(wire >> 3) 756 wireType := int(wire & 0x7) 757 if wireType == 4 { 758 return fmt.Errorf("proto: MsgUnjailResponse: wiretype end group for non-group") 759 } 760 if fieldNum <= 0 { 761 return fmt.Errorf("proto: MsgUnjailResponse: illegal tag %d (wire type %d)", fieldNum, wire) 762 } 763 switch fieldNum { 764 default: 765 iNdEx = preIndex 766 skippy, err := skipTx(dAtA[iNdEx:]) 767 if err != nil { 768 return err 769 } 770 if (skippy < 0) || (iNdEx+skippy) < 0 { 771 return ErrInvalidLengthTx 772 } 773 if (iNdEx + skippy) > l { 774 return io.ErrUnexpectedEOF 775 } 776 iNdEx += skippy 777 } 778 } 779 780 if iNdEx > l { 781 return io.ErrUnexpectedEOF 782 } 783 return nil 784 } 785 func (m *MsgUpdateParams) Unmarshal(dAtA []byte) error { 786 l := len(dAtA) 787 iNdEx := 0 788 for iNdEx < l { 789 preIndex := iNdEx 790 var wire uint64 791 for shift := uint(0); ; shift += 7 { 792 if shift >= 64 { 793 return ErrIntOverflowTx 794 } 795 if iNdEx >= l { 796 return io.ErrUnexpectedEOF 797 } 798 b := dAtA[iNdEx] 799 iNdEx++ 800 wire |= uint64(b&0x7F) << shift 801 if b < 0x80 { 802 break 803 } 804 } 805 fieldNum := int32(wire >> 3) 806 wireType := int(wire & 0x7) 807 if wireType == 4 { 808 return fmt.Errorf("proto: MsgUpdateParams: wiretype end group for non-group") 809 } 810 if fieldNum <= 0 { 811 return fmt.Errorf("proto: MsgUpdateParams: illegal tag %d (wire type %d)", fieldNum, wire) 812 } 813 switch fieldNum { 814 case 1: 815 if wireType != 2 { 816 return fmt.Errorf("proto: wrong wireType = %d for field Authority", wireType) 817 } 818 var stringLen uint64 819 for shift := uint(0); ; shift += 7 { 820 if shift >= 64 { 821 return ErrIntOverflowTx 822 } 823 if iNdEx >= l { 824 return io.ErrUnexpectedEOF 825 } 826 b := dAtA[iNdEx] 827 iNdEx++ 828 stringLen |= uint64(b&0x7F) << shift 829 if b < 0x80 { 830 break 831 } 832 } 833 intStringLen := int(stringLen) 834 if intStringLen < 0 { 835 return ErrInvalidLengthTx 836 } 837 postIndex := iNdEx + intStringLen 838 if postIndex < 0 { 839 return ErrInvalidLengthTx 840 } 841 if postIndex > l { 842 return io.ErrUnexpectedEOF 843 } 844 m.Authority = string(dAtA[iNdEx:postIndex]) 845 iNdEx = postIndex 846 case 2: 847 if wireType != 2 { 848 return fmt.Errorf("proto: wrong wireType = %d for field Params", wireType) 849 } 850 var msglen int 851 for shift := uint(0); ; shift += 7 { 852 if shift >= 64 { 853 return ErrIntOverflowTx 854 } 855 if iNdEx >= l { 856 return io.ErrUnexpectedEOF 857 } 858 b := dAtA[iNdEx] 859 iNdEx++ 860 msglen |= int(b&0x7F) << shift 861 if b < 0x80 { 862 break 863 } 864 } 865 if msglen < 0 { 866 return ErrInvalidLengthTx 867 } 868 postIndex := iNdEx + msglen 869 if postIndex < 0 { 870 return ErrInvalidLengthTx 871 } 872 if postIndex > l { 873 return io.ErrUnexpectedEOF 874 } 875 if err := m.Params.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 876 return err 877 } 878 iNdEx = postIndex 879 default: 880 iNdEx = preIndex 881 skippy, err := skipTx(dAtA[iNdEx:]) 882 if err != nil { 883 return err 884 } 885 if (skippy < 0) || (iNdEx+skippy) < 0 { 886 return ErrInvalidLengthTx 887 } 888 if (iNdEx + skippy) > l { 889 return io.ErrUnexpectedEOF 890 } 891 iNdEx += skippy 892 } 893 } 894 895 if iNdEx > l { 896 return io.ErrUnexpectedEOF 897 } 898 return nil 899 } 900 func (m *MsgUpdateParamsResponse) Unmarshal(dAtA []byte) error { 901 l := len(dAtA) 902 iNdEx := 0 903 for iNdEx < l { 904 preIndex := iNdEx 905 var wire uint64 906 for shift := uint(0); ; shift += 7 { 907 if shift >= 64 { 908 return ErrIntOverflowTx 909 } 910 if iNdEx >= l { 911 return io.ErrUnexpectedEOF 912 } 913 b := dAtA[iNdEx] 914 iNdEx++ 915 wire |= uint64(b&0x7F) << shift 916 if b < 0x80 { 917 break 918 } 919 } 920 fieldNum := int32(wire >> 3) 921 wireType := int(wire & 0x7) 922 if wireType == 4 { 923 return fmt.Errorf("proto: MsgUpdateParamsResponse: wiretype end group for non-group") 924 } 925 if fieldNum <= 0 { 926 return fmt.Errorf("proto: MsgUpdateParamsResponse: illegal tag %d (wire type %d)", fieldNum, wire) 927 } 928 switch fieldNum { 929 default: 930 iNdEx = preIndex 931 skippy, err := skipTx(dAtA[iNdEx:]) 932 if err != nil { 933 return err 934 } 935 if (skippy < 0) || (iNdEx+skippy) < 0 { 936 return ErrInvalidLengthTx 937 } 938 if (iNdEx + skippy) > l { 939 return io.ErrUnexpectedEOF 940 } 941 iNdEx += skippy 942 } 943 } 944 945 if iNdEx > l { 946 return io.ErrUnexpectedEOF 947 } 948 return nil 949 } 950 func skipTx(dAtA []byte) (n int, err error) { 951 l := len(dAtA) 952 iNdEx := 0 953 depth := 0 954 for iNdEx < l { 955 var wire uint64 956 for shift := uint(0); ; shift += 7 { 957 if shift >= 64 { 958 return 0, ErrIntOverflowTx 959 } 960 if iNdEx >= l { 961 return 0, io.ErrUnexpectedEOF 962 } 963 b := dAtA[iNdEx] 964 iNdEx++ 965 wire |= (uint64(b) & 0x7F) << shift 966 if b < 0x80 { 967 break 968 } 969 } 970 wireType := int(wire & 0x7) 971 switch wireType { 972 case 0: 973 for shift := uint(0); ; shift += 7 { 974 if shift >= 64 { 975 return 0, ErrIntOverflowTx 976 } 977 if iNdEx >= l { 978 return 0, io.ErrUnexpectedEOF 979 } 980 iNdEx++ 981 if dAtA[iNdEx-1] < 0x80 { 982 break 983 } 984 } 985 case 1: 986 iNdEx += 8 987 case 2: 988 var length int 989 for shift := uint(0); ; shift += 7 { 990 if shift >= 64 { 991 return 0, ErrIntOverflowTx 992 } 993 if iNdEx >= l { 994 return 0, io.ErrUnexpectedEOF 995 } 996 b := dAtA[iNdEx] 997 iNdEx++ 998 length |= (int(b) & 0x7F) << shift 999 if b < 0x80 { 1000 break 1001 } 1002 } 1003 if length < 0 { 1004 return 0, ErrInvalidLengthTx 1005 } 1006 iNdEx += length 1007 case 3: 1008 depth++ 1009 case 4: 1010 if depth == 0 { 1011 return 0, ErrUnexpectedEndOfGroupTx 1012 } 1013 depth-- 1014 case 5: 1015 iNdEx += 4 1016 default: 1017 return 0, fmt.Errorf("proto: illegal wireType %d", wireType) 1018 } 1019 if iNdEx < 0 { 1020 return 0, ErrInvalidLengthTx 1021 } 1022 if depth == 0 { 1023 return iNdEx, nil 1024 } 1025 } 1026 return 0, io.ErrUnexpectedEOF 1027 } 1028 1029 var ( 1030 ErrInvalidLengthTx = fmt.Errorf("proto: negative length found during unmarshaling") 1031 ErrIntOverflowTx = fmt.Errorf("proto: integer overflow") 1032 ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group") 1033 )