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