github.com/Finschia/finschia-sdk@v0.49.1/x/fbridge/types/event.pb.go (about) 1 // Code generated by protoc-gen-gogo. DO NOT EDIT. 2 // source: lbm/fbridge/v1/event.proto 3 4 package types 5 6 import ( 7 fmt "fmt" 8 _ "github.com/gogo/protobuf/gogoproto" 9 proto "github.com/gogo/protobuf/proto" 10 io "io" 11 math "math" 12 math_bits "math/bits" 13 ) 14 15 // Reference imports to suppress errors if they are not otherwise used. 16 var _ = proto.Marshal 17 var _ = fmt.Errorf 18 var _ = math.Inf 19 20 // This is a compile-time assertion to ensure that this generated file 21 // is compatible with the proto package it is being compiled against. 22 // A compilation error at this line likely means your copy of the 23 // proto package needs to be updated. 24 const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package 25 26 type EventUpdateParams struct { 27 Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"` 28 } 29 30 func (m *EventUpdateParams) Reset() { *m = EventUpdateParams{} } 31 func (m *EventUpdateParams) String() string { return proto.CompactTextString(m) } 32 func (*EventUpdateParams) ProtoMessage() {} 33 func (*EventUpdateParams) Descriptor() ([]byte, []int) { 34 return fileDescriptor_a36aa6e56f2275b8, []int{0} 35 } 36 func (m *EventUpdateParams) XXX_Unmarshal(b []byte) error { 37 return m.Unmarshal(b) 38 } 39 func (m *EventUpdateParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 40 if deterministic { 41 return xxx_messageInfo_EventUpdateParams.Marshal(b, m, deterministic) 42 } else { 43 b = b[:cap(b)] 44 n, err := m.MarshalToSizedBuffer(b) 45 if err != nil { 46 return nil, err 47 } 48 return b[:n], nil 49 } 50 } 51 func (m *EventUpdateParams) XXX_Merge(src proto.Message) { 52 xxx_messageInfo_EventUpdateParams.Merge(m, src) 53 } 54 func (m *EventUpdateParams) XXX_Size() int { 55 return m.Size() 56 } 57 func (m *EventUpdateParams) XXX_DiscardUnknown() { 58 xxx_messageInfo_EventUpdateParams.DiscardUnknown(m) 59 } 60 61 var xxx_messageInfo_EventUpdateParams proto.InternalMessageInfo 62 63 func (m *EventUpdateParams) GetParams() Params { 64 if m != nil { 65 return m.Params 66 } 67 return Params{} 68 } 69 70 type EventTransfer struct { 71 // the sequence number of the bridge request 72 Seq uint64 `protobuf:"varint,1,opt,name=seq,proto3" json:"seq,omitempty"` 73 // the sender address on the source chain 74 Sender string `protobuf:"bytes,2,opt,name=sender,proto3" json:"sender,omitempty"` 75 // the recipient address on the destination chain 76 Receiver string `protobuf:"bytes,3,opt,name=receiver,proto3" json:"receiver,omitempty"` 77 // the amount of token to be transferred 78 Amount string `protobuf:"bytes,4,opt,name=amount,proto3" json:"amount,omitempty"` 79 } 80 81 func (m *EventTransfer) Reset() { *m = EventTransfer{} } 82 func (m *EventTransfer) String() string { return proto.CompactTextString(m) } 83 func (*EventTransfer) ProtoMessage() {} 84 func (*EventTransfer) Descriptor() ([]byte, []int) { 85 return fileDescriptor_a36aa6e56f2275b8, []int{1} 86 } 87 func (m *EventTransfer) XXX_Unmarshal(b []byte) error { 88 return m.Unmarshal(b) 89 } 90 func (m *EventTransfer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 91 if deterministic { 92 return xxx_messageInfo_EventTransfer.Marshal(b, m, deterministic) 93 } else { 94 b = b[:cap(b)] 95 n, err := m.MarshalToSizedBuffer(b) 96 if err != nil { 97 return nil, err 98 } 99 return b[:n], nil 100 } 101 } 102 func (m *EventTransfer) XXX_Merge(src proto.Message) { 103 xxx_messageInfo_EventTransfer.Merge(m, src) 104 } 105 func (m *EventTransfer) XXX_Size() int { 106 return m.Size() 107 } 108 func (m *EventTransfer) XXX_DiscardUnknown() { 109 xxx_messageInfo_EventTransfer.DiscardUnknown(m) 110 } 111 112 var xxx_messageInfo_EventTransfer proto.InternalMessageInfo 113 114 func (m *EventTransfer) GetSeq() uint64 { 115 if m != nil { 116 return m.Seq 117 } 118 return 0 119 } 120 121 func (m *EventTransfer) GetSender() string { 122 if m != nil { 123 return m.Sender 124 } 125 return "" 126 } 127 128 func (m *EventTransfer) GetReceiver() string { 129 if m != nil { 130 return m.Receiver 131 } 132 return "" 133 } 134 135 func (m *EventTransfer) GetAmount() string { 136 if m != nil { 137 return m.Amount 138 } 139 return "" 140 } 141 142 type EventSuggestRole struct { 143 Proposal RoleProposal `protobuf:"bytes,1,opt,name=proposal,proto3" json:"proposal"` 144 } 145 146 func (m *EventSuggestRole) Reset() { *m = EventSuggestRole{} } 147 func (m *EventSuggestRole) String() string { return proto.CompactTextString(m) } 148 func (*EventSuggestRole) ProtoMessage() {} 149 func (*EventSuggestRole) Descriptor() ([]byte, []int) { 150 return fileDescriptor_a36aa6e56f2275b8, []int{2} 151 } 152 func (m *EventSuggestRole) XXX_Unmarshal(b []byte) error { 153 return m.Unmarshal(b) 154 } 155 func (m *EventSuggestRole) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 156 if deterministic { 157 return xxx_messageInfo_EventSuggestRole.Marshal(b, m, deterministic) 158 } else { 159 b = b[:cap(b)] 160 n, err := m.MarshalToSizedBuffer(b) 161 if err != nil { 162 return nil, err 163 } 164 return b[:n], nil 165 } 166 } 167 func (m *EventSuggestRole) XXX_Merge(src proto.Message) { 168 xxx_messageInfo_EventSuggestRole.Merge(m, src) 169 } 170 func (m *EventSuggestRole) XXX_Size() int { 171 return m.Size() 172 } 173 func (m *EventSuggestRole) XXX_DiscardUnknown() { 174 xxx_messageInfo_EventSuggestRole.DiscardUnknown(m) 175 } 176 177 var xxx_messageInfo_EventSuggestRole proto.InternalMessageInfo 178 179 func (m *EventSuggestRole) GetProposal() RoleProposal { 180 if m != nil { 181 return m.Proposal 182 } 183 return RoleProposal{} 184 } 185 186 type EventAddVoteForRole struct { 187 // the voter address 188 Voter string `protobuf:"bytes,1,opt,name=voter,proto3" json:"voter,omitempty"` 189 // the role proposal id 190 ProposalId uint64 `protobuf:"varint,2,opt,name=proposal_id,json=proposalId,proto3" json:"proposal_id,omitempty"` 191 // the vote option 192 Option VoteOption `protobuf:"varint,3,opt,name=option,proto3,enum=lbm.fbridge.v1.VoteOption" json:"option,omitempty"` 193 } 194 195 func (m *EventAddVoteForRole) Reset() { *m = EventAddVoteForRole{} } 196 func (m *EventAddVoteForRole) String() string { return proto.CompactTextString(m) } 197 func (*EventAddVoteForRole) ProtoMessage() {} 198 func (*EventAddVoteForRole) Descriptor() ([]byte, []int) { 199 return fileDescriptor_a36aa6e56f2275b8, []int{3} 200 } 201 func (m *EventAddVoteForRole) XXX_Unmarshal(b []byte) error { 202 return m.Unmarshal(b) 203 } 204 func (m *EventAddVoteForRole) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 205 if deterministic { 206 return xxx_messageInfo_EventAddVoteForRole.Marshal(b, m, deterministic) 207 } else { 208 b = b[:cap(b)] 209 n, err := m.MarshalToSizedBuffer(b) 210 if err != nil { 211 return nil, err 212 } 213 return b[:n], nil 214 } 215 } 216 func (m *EventAddVoteForRole) XXX_Merge(src proto.Message) { 217 xxx_messageInfo_EventAddVoteForRole.Merge(m, src) 218 } 219 func (m *EventAddVoteForRole) XXX_Size() int { 220 return m.Size() 221 } 222 func (m *EventAddVoteForRole) XXX_DiscardUnknown() { 223 xxx_messageInfo_EventAddVoteForRole.DiscardUnknown(m) 224 } 225 226 var xxx_messageInfo_EventAddVoteForRole proto.InternalMessageInfo 227 228 func (m *EventAddVoteForRole) GetVoter() string { 229 if m != nil { 230 return m.Voter 231 } 232 return "" 233 } 234 235 func (m *EventAddVoteForRole) GetProposalId() uint64 { 236 if m != nil { 237 return m.ProposalId 238 } 239 return 0 240 } 241 242 func (m *EventAddVoteForRole) GetOption() VoteOption { 243 if m != nil { 244 return m.Option 245 } 246 return OptionEmpty 247 } 248 249 type EventProvision struct { 250 // the sequence number of the bridge request 251 Seq uint64 `protobuf:"varint,1,opt,name=seq,proto3" json:"seq,omitempty"` 252 // the sender address on the source chain 253 Sender string `protobuf:"bytes,2,opt,name=sender,proto3" json:"sender,omitempty"` 254 // the recipient address on the destination chain 255 Receiver string `protobuf:"bytes,3,opt,name=receiver,proto3" json:"receiver,omitempty"` 256 // the amount of token to be claimed 257 Amount string `protobuf:"bytes,4,opt,name=amount,proto3" json:"amount,omitempty"` 258 // the address of the operator 259 Operator string `protobuf:"bytes,5,opt,name=operator,proto3" json:"operator,omitempty"` 260 } 261 262 func (m *EventProvision) Reset() { *m = EventProvision{} } 263 func (m *EventProvision) String() string { return proto.CompactTextString(m) } 264 func (*EventProvision) ProtoMessage() {} 265 func (*EventProvision) Descriptor() ([]byte, []int) { 266 return fileDescriptor_a36aa6e56f2275b8, []int{4} 267 } 268 func (m *EventProvision) XXX_Unmarshal(b []byte) error { 269 return m.Unmarshal(b) 270 } 271 func (m *EventProvision) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 272 if deterministic { 273 return xxx_messageInfo_EventProvision.Marshal(b, m, deterministic) 274 } else { 275 b = b[:cap(b)] 276 n, err := m.MarshalToSizedBuffer(b) 277 if err != nil { 278 return nil, err 279 } 280 return b[:n], nil 281 } 282 } 283 func (m *EventProvision) XXX_Merge(src proto.Message) { 284 xxx_messageInfo_EventProvision.Merge(m, src) 285 } 286 func (m *EventProvision) XXX_Size() int { 287 return m.Size() 288 } 289 func (m *EventProvision) XXX_DiscardUnknown() { 290 xxx_messageInfo_EventProvision.DiscardUnknown(m) 291 } 292 293 var xxx_messageInfo_EventProvision proto.InternalMessageInfo 294 295 func (m *EventProvision) GetSeq() uint64 { 296 if m != nil { 297 return m.Seq 298 } 299 return 0 300 } 301 302 func (m *EventProvision) GetSender() string { 303 if m != nil { 304 return m.Sender 305 } 306 return "" 307 } 308 309 func (m *EventProvision) GetReceiver() string { 310 if m != nil { 311 return m.Receiver 312 } 313 return "" 314 } 315 316 func (m *EventProvision) GetAmount() string { 317 if m != nil { 318 return m.Amount 319 } 320 return "" 321 } 322 323 func (m *EventProvision) GetOperator() string { 324 if m != nil { 325 return m.Operator 326 } 327 return "" 328 } 329 330 type EventConfirmProvision struct { 331 // the sequence number of the bridge request 332 Seq uint64 `protobuf:"varint,1,opt,name=seq,proto3" json:"seq,omitempty"` 333 } 334 335 func (m *EventConfirmProvision) Reset() { *m = EventConfirmProvision{} } 336 func (m *EventConfirmProvision) String() string { return proto.CompactTextString(m) } 337 func (*EventConfirmProvision) ProtoMessage() {} 338 func (*EventConfirmProvision) Descriptor() ([]byte, []int) { 339 return fileDescriptor_a36aa6e56f2275b8, []int{5} 340 } 341 func (m *EventConfirmProvision) XXX_Unmarshal(b []byte) error { 342 return m.Unmarshal(b) 343 } 344 func (m *EventConfirmProvision) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 345 if deterministic { 346 return xxx_messageInfo_EventConfirmProvision.Marshal(b, m, deterministic) 347 } else { 348 b = b[:cap(b)] 349 n, err := m.MarshalToSizedBuffer(b) 350 if err != nil { 351 return nil, err 352 } 353 return b[:n], nil 354 } 355 } 356 func (m *EventConfirmProvision) XXX_Merge(src proto.Message) { 357 xxx_messageInfo_EventConfirmProvision.Merge(m, src) 358 } 359 func (m *EventConfirmProvision) XXX_Size() int { 360 return m.Size() 361 } 362 func (m *EventConfirmProvision) XXX_DiscardUnknown() { 363 xxx_messageInfo_EventConfirmProvision.DiscardUnknown(m) 364 } 365 366 var xxx_messageInfo_EventConfirmProvision proto.InternalMessageInfo 367 368 func (m *EventConfirmProvision) GetSeq() uint64 { 369 if m != nil { 370 return m.Seq 371 } 372 return 0 373 } 374 375 type EventClaim struct { 376 // the sequence number of the bridge request 377 Seq uint64 `protobuf:"varint,1,opt,name=seq,proto3" json:"seq,omitempty"` 378 // the sender address on the source chain 379 Sender string `protobuf:"bytes,2,opt,name=sender,proto3" json:"sender,omitempty"` 380 // the recipient address on the destination chain 381 Receiver string `protobuf:"bytes,3,opt,name=receiver,proto3" json:"receiver,omitempty"` 382 // the amount of token to be claimed 383 Amount string `protobuf:"bytes,4,opt,name=amount,proto3" json:"amount,omitempty"` 384 } 385 386 func (m *EventClaim) Reset() { *m = EventClaim{} } 387 func (m *EventClaim) String() string { return proto.CompactTextString(m) } 388 func (*EventClaim) ProtoMessage() {} 389 func (*EventClaim) Descriptor() ([]byte, []int) { 390 return fileDescriptor_a36aa6e56f2275b8, []int{6} 391 } 392 func (m *EventClaim) XXX_Unmarshal(b []byte) error { 393 return m.Unmarshal(b) 394 } 395 func (m *EventClaim) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 396 if deterministic { 397 return xxx_messageInfo_EventClaim.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 *EventClaim) XXX_Merge(src proto.Message) { 408 xxx_messageInfo_EventClaim.Merge(m, src) 409 } 410 func (m *EventClaim) XXX_Size() int { 411 return m.Size() 412 } 413 func (m *EventClaim) XXX_DiscardUnknown() { 414 xxx_messageInfo_EventClaim.DiscardUnknown(m) 415 } 416 417 var xxx_messageInfo_EventClaim proto.InternalMessageInfo 418 419 func (m *EventClaim) GetSeq() uint64 { 420 if m != nil { 421 return m.Seq 422 } 423 return 0 424 } 425 426 func (m *EventClaim) GetSender() string { 427 if m != nil { 428 return m.Sender 429 } 430 return "" 431 } 432 433 func (m *EventClaim) GetReceiver() string { 434 if m != nil { 435 return m.Receiver 436 } 437 return "" 438 } 439 440 func (m *EventClaim) GetAmount() string { 441 if m != nil { 442 return m.Amount 443 } 444 return "" 445 } 446 447 type EventSetBridgeStatus struct { 448 // the guardian address who modifies the bridge status (a.k.a. bridge switch) 449 Guardian string `protobuf:"bytes,1,opt,name=guardian,proto3" json:"guardian,omitempty"` 450 // the new status of the guardian's bridge switch 451 Status BridgeStatus `protobuf:"varint,2,opt,name=status,proto3,enum=lbm.fbridge.v1.BridgeStatus" json:"status,omitempty"` 452 } 453 454 func (m *EventSetBridgeStatus) Reset() { *m = EventSetBridgeStatus{} } 455 func (m *EventSetBridgeStatus) String() string { return proto.CompactTextString(m) } 456 func (*EventSetBridgeStatus) ProtoMessage() {} 457 func (*EventSetBridgeStatus) Descriptor() ([]byte, []int) { 458 return fileDescriptor_a36aa6e56f2275b8, []int{7} 459 } 460 func (m *EventSetBridgeStatus) XXX_Unmarshal(b []byte) error { 461 return m.Unmarshal(b) 462 } 463 func (m *EventSetBridgeStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 464 if deterministic { 465 return xxx_messageInfo_EventSetBridgeStatus.Marshal(b, m, deterministic) 466 } else { 467 b = b[:cap(b)] 468 n, err := m.MarshalToSizedBuffer(b) 469 if err != nil { 470 return nil, err 471 } 472 return b[:n], nil 473 } 474 } 475 func (m *EventSetBridgeStatus) XXX_Merge(src proto.Message) { 476 xxx_messageInfo_EventSetBridgeStatus.Merge(m, src) 477 } 478 func (m *EventSetBridgeStatus) XXX_Size() int { 479 return m.Size() 480 } 481 func (m *EventSetBridgeStatus) XXX_DiscardUnknown() { 482 xxx_messageInfo_EventSetBridgeStatus.DiscardUnknown(m) 483 } 484 485 var xxx_messageInfo_EventSetBridgeStatus proto.InternalMessageInfo 486 487 func (m *EventSetBridgeStatus) GetGuardian() string { 488 if m != nil { 489 return m.Guardian 490 } 491 return "" 492 } 493 494 func (m *EventSetBridgeStatus) GetStatus() BridgeStatus { 495 if m != nil { 496 return m.Status 497 } 498 return StatusEmpty 499 } 500 501 func init() { 502 proto.RegisterType((*EventUpdateParams)(nil), "lbm.fbridge.v1.EventUpdateParams") 503 proto.RegisterType((*EventTransfer)(nil), "lbm.fbridge.v1.EventTransfer") 504 proto.RegisterType((*EventSuggestRole)(nil), "lbm.fbridge.v1.EventSuggestRole") 505 proto.RegisterType((*EventAddVoteForRole)(nil), "lbm.fbridge.v1.EventAddVoteForRole") 506 proto.RegisterType((*EventProvision)(nil), "lbm.fbridge.v1.EventProvision") 507 proto.RegisterType((*EventConfirmProvision)(nil), "lbm.fbridge.v1.EventConfirmProvision") 508 proto.RegisterType((*EventClaim)(nil), "lbm.fbridge.v1.EventClaim") 509 proto.RegisterType((*EventSetBridgeStatus)(nil), "lbm.fbridge.v1.EventSetBridgeStatus") 510 } 511 512 func init() { proto.RegisterFile("lbm/fbridge/v1/event.proto", fileDescriptor_a36aa6e56f2275b8) } 513 514 var fileDescriptor_a36aa6e56f2275b8 = []byte{ 515 // 481 bytes of a gzipped FileDescriptorProto 516 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x53, 0x41, 0x6f, 0xd3, 0x4c, 517 0x10, 0x8d, 0xbf, 0xa6, 0x51, 0x3b, 0xd5, 0x17, 0x15, 0x13, 0x2a, 0xcb, 0xaa, 0xdc, 0xca, 0xa7, 518 0x72, 0xc0, 0xa6, 0x81, 0x33, 0x12, 0x41, 0x54, 0x2a, 0x17, 0x22, 0x17, 0x38, 0x70, 0x41, 0xeb, 519 0x78, 0xe3, 0x2c, 0xd8, 0x1e, 0xb3, 0xbb, 0xb6, 0xe0, 0xc6, 0x99, 0x13, 0x3f, 0xab, 0xc7, 0x1e, 520 0x39, 0x21, 0x94, 0xfc, 0x11, 0xb4, 0xe3, 0x4d, 0x04, 0x41, 0xe2, 0xd6, 0xdb, 0x3c, 0xcf, 0x7b, 521 0x6f, 0xde, 0x7a, 0x76, 0xc1, 0x2f, 0xd2, 0x32, 0x9e, 0xa7, 0x52, 0x64, 0x39, 0x8f, 0xdb, 0xf3, 522 0x98, 0xb7, 0xbc, 0xd2, 0x51, 0x2d, 0x51, 0xa3, 0x3b, 0x2c, 0xd2, 0x32, 0xb2, 0xbd, 0xa8, 0x3d, 523 0xf7, 0x47, 0x39, 0xe6, 0x48, 0xad, 0xd8, 0x54, 0x1d, 0xcb, 0x3f, 0xde, 0x72, 0x58, 0x0b, 0xa8, 524 0x1b, 0x5e, 0xc2, 0x9d, 0xe7, 0xc6, 0xf2, 0x75, 0x9d, 0x31, 0xcd, 0xa7, 0x4c, 0xb2, 0x52, 0xb9, 525 0x8f, 0x61, 0x50, 0x53, 0xe5, 0x39, 0xa7, 0xce, 0xd9, 0xc1, 0xf8, 0x28, 0xfa, 0x73, 0x52, 0xd4, 526 0xf1, 0x26, 0xfd, 0xeb, 0x1f, 0x27, 0xbd, 0xc4, 0x72, 0xc3, 0x12, 0xfe, 0x27, 0xab, 0x57, 0x92, 527 0x55, 0x6a, 0xce, 0xa5, 0x7b, 0x08, 0x3b, 0x8a, 0x7f, 0x24, 0x8f, 0x7e, 0x62, 0x4a, 0xf7, 0x08, 528 0x06, 0x8a, 0x57, 0x19, 0x97, 0xde, 0x7f, 0xa7, 0xce, 0xd9, 0x7e, 0x62, 0x91, 0xeb, 0xc3, 0x9e, 529 0xe4, 0x33, 0x2e, 0x5a, 0x2e, 0xbd, 0x1d, 0xea, 0x6c, 0xb0, 0xd1, 0xb0, 0x12, 0x9b, 0x4a, 0x7b, 530 0xfd, 0x4e, 0xd3, 0xa1, 0x30, 0x81, 0x43, 0x1a, 0x77, 0xd5, 0xe4, 0x39, 0x57, 0x3a, 0xc1, 0x82, 531 0xbb, 0x4f, 0x60, 0xaf, 0x96, 0x58, 0xa3, 0x62, 0x85, 0x8d, 0x7e, 0xbc, 0x1d, 0xdd, 0xf0, 0xa6, 532 0x96, 0x63, 0x0f, 0xb0, 0xd1, 0x84, 0x5f, 0x1c, 0xb8, 0x4b, 0xa6, 0x4f, 0xb3, 0xec, 0x0d, 0x6a, 533 0x7e, 0x81, 0x92, 0x7c, 0x47, 0xb0, 0xdb, 0xa2, 0xe6, 0x92, 0x4c, 0xf7, 0x93, 0x0e, 0xb8, 0x27, 534 0x70, 0xb0, 0x56, 0xbe, 0x13, 0x19, 0x1d, 0xa9, 0x9f, 0xc0, 0xfa, 0xd3, 0x65, 0xe6, 0x8e, 0x61, 535 0x80, 0xb5, 0x16, 0x58, 0xd1, 0xa1, 0x86, 0x63, 0x7f, 0x3b, 0x8c, 0x99, 0xf1, 0x92, 0x18, 0x89, 536 0x65, 0x86, 0x5f, 0x1d, 0x18, 0x52, 0x84, 0xa9, 0xc4, 0x56, 0x28, 0x81, 0xd5, 0xed, 0xfe, 0x47, 537 0xa3, 0xc1, 0x9a, 0x4b, 0xa6, 0x51, 0x7a, 0xbb, 0x9d, 0x66, 0x8d, 0xc3, 0xfb, 0x70, 0x8f, 0xb2, 538 0x3c, 0xc3, 0x6a, 0x2e, 0x64, 0xf9, 0x8f, 0x48, 0xe1, 0x7b, 0x80, 0x8e, 0x5a, 0x30, 0x51, 0xde, 539 0xf2, 0xea, 0x17, 0x30, 0xea, 0x56, 0xcf, 0xf5, 0x84, 0xfe, 0xe5, 0x95, 0x66, 0xba, 0x51, 0xc6, 540 0x2b, 0x6f, 0x98, 0xcc, 0x04, 0xab, 0xec, 0xa6, 0x36, 0xd8, 0xdc, 0x69, 0x45, 0x2c, 0x9a, 0x3f, 541 0xfc, 0xfb, 0x62, 0xfc, 0xee, 0x94, 0x58, 0xee, 0xe4, 0xc5, 0xf5, 0x32, 0x70, 0x6e, 0x96, 0x81, 542 0xf3, 0x73, 0x19, 0x38, 0xdf, 0x56, 0x41, 0xef, 0x66, 0x15, 0xf4, 0xbe, 0xaf, 0x82, 0xde, 0xdb, 543 0x87, 0xb9, 0xd0, 0x8b, 0x26, 0x8d, 0x66, 0x58, 0xc6, 0x17, 0xa2, 0x52, 0xb3, 0x85, 0x60, 0xf1, 544 0xdc, 0x16, 0x0f, 0x54, 0xf6, 0x21, 0xfe, 0xb4, 0x79, 0x75, 0xfa, 0x73, 0xcd, 0x55, 0x3a, 0xa0, 545 0x17, 0xf7, 0xe8, 0x57, 0x00, 0x00, 0x00, 0xff, 0xff, 0x04, 0x84, 0xa9, 0x5c, 0xd3, 0x03, 0x00, 546 0x00, 547 } 548 549 func (m *EventUpdateParams) Marshal() (dAtA []byte, err error) { 550 size := m.Size() 551 dAtA = make([]byte, size) 552 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 553 if err != nil { 554 return nil, err 555 } 556 return dAtA[:n], nil 557 } 558 559 func (m *EventUpdateParams) MarshalTo(dAtA []byte) (int, error) { 560 size := m.Size() 561 return m.MarshalToSizedBuffer(dAtA[:size]) 562 } 563 564 func (m *EventUpdateParams) MarshalToSizedBuffer(dAtA []byte) (int, error) { 565 i := len(dAtA) 566 _ = i 567 var l int 568 _ = l 569 { 570 size, err := m.Params.MarshalToSizedBuffer(dAtA[:i]) 571 if err != nil { 572 return 0, err 573 } 574 i -= size 575 i = encodeVarintEvent(dAtA, i, uint64(size)) 576 } 577 i-- 578 dAtA[i] = 0xa 579 return len(dAtA) - i, nil 580 } 581 582 func (m *EventTransfer) Marshal() (dAtA []byte, err error) { 583 size := m.Size() 584 dAtA = make([]byte, size) 585 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 586 if err != nil { 587 return nil, err 588 } 589 return dAtA[:n], nil 590 } 591 592 func (m *EventTransfer) MarshalTo(dAtA []byte) (int, error) { 593 size := m.Size() 594 return m.MarshalToSizedBuffer(dAtA[:size]) 595 } 596 597 func (m *EventTransfer) MarshalToSizedBuffer(dAtA []byte) (int, error) { 598 i := len(dAtA) 599 _ = i 600 var l int 601 _ = l 602 if len(m.Amount) > 0 { 603 i -= len(m.Amount) 604 copy(dAtA[i:], m.Amount) 605 i = encodeVarintEvent(dAtA, i, uint64(len(m.Amount))) 606 i-- 607 dAtA[i] = 0x22 608 } 609 if len(m.Receiver) > 0 { 610 i -= len(m.Receiver) 611 copy(dAtA[i:], m.Receiver) 612 i = encodeVarintEvent(dAtA, i, uint64(len(m.Receiver))) 613 i-- 614 dAtA[i] = 0x1a 615 } 616 if len(m.Sender) > 0 { 617 i -= len(m.Sender) 618 copy(dAtA[i:], m.Sender) 619 i = encodeVarintEvent(dAtA, i, uint64(len(m.Sender))) 620 i-- 621 dAtA[i] = 0x12 622 } 623 if m.Seq != 0 { 624 i = encodeVarintEvent(dAtA, i, uint64(m.Seq)) 625 i-- 626 dAtA[i] = 0x8 627 } 628 return len(dAtA) - i, nil 629 } 630 631 func (m *EventSuggestRole) Marshal() (dAtA []byte, err error) { 632 size := m.Size() 633 dAtA = make([]byte, size) 634 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 635 if err != nil { 636 return nil, err 637 } 638 return dAtA[:n], nil 639 } 640 641 func (m *EventSuggestRole) MarshalTo(dAtA []byte) (int, error) { 642 size := m.Size() 643 return m.MarshalToSizedBuffer(dAtA[:size]) 644 } 645 646 func (m *EventSuggestRole) MarshalToSizedBuffer(dAtA []byte) (int, error) { 647 i := len(dAtA) 648 _ = i 649 var l int 650 _ = l 651 { 652 size, err := m.Proposal.MarshalToSizedBuffer(dAtA[:i]) 653 if err != nil { 654 return 0, err 655 } 656 i -= size 657 i = encodeVarintEvent(dAtA, i, uint64(size)) 658 } 659 i-- 660 dAtA[i] = 0xa 661 return len(dAtA) - i, nil 662 } 663 664 func (m *EventAddVoteForRole) Marshal() (dAtA []byte, err error) { 665 size := m.Size() 666 dAtA = make([]byte, size) 667 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 668 if err != nil { 669 return nil, err 670 } 671 return dAtA[:n], nil 672 } 673 674 func (m *EventAddVoteForRole) MarshalTo(dAtA []byte) (int, error) { 675 size := m.Size() 676 return m.MarshalToSizedBuffer(dAtA[:size]) 677 } 678 679 func (m *EventAddVoteForRole) MarshalToSizedBuffer(dAtA []byte) (int, error) { 680 i := len(dAtA) 681 _ = i 682 var l int 683 _ = l 684 if m.Option != 0 { 685 i = encodeVarintEvent(dAtA, i, uint64(m.Option)) 686 i-- 687 dAtA[i] = 0x18 688 } 689 if m.ProposalId != 0 { 690 i = encodeVarintEvent(dAtA, i, uint64(m.ProposalId)) 691 i-- 692 dAtA[i] = 0x10 693 } 694 if len(m.Voter) > 0 { 695 i -= len(m.Voter) 696 copy(dAtA[i:], m.Voter) 697 i = encodeVarintEvent(dAtA, i, uint64(len(m.Voter))) 698 i-- 699 dAtA[i] = 0xa 700 } 701 return len(dAtA) - i, nil 702 } 703 704 func (m *EventProvision) Marshal() (dAtA []byte, err error) { 705 size := m.Size() 706 dAtA = make([]byte, size) 707 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 708 if err != nil { 709 return nil, err 710 } 711 return dAtA[:n], nil 712 } 713 714 func (m *EventProvision) MarshalTo(dAtA []byte) (int, error) { 715 size := m.Size() 716 return m.MarshalToSizedBuffer(dAtA[:size]) 717 } 718 719 func (m *EventProvision) MarshalToSizedBuffer(dAtA []byte) (int, error) { 720 i := len(dAtA) 721 _ = i 722 var l int 723 _ = l 724 if len(m.Operator) > 0 { 725 i -= len(m.Operator) 726 copy(dAtA[i:], m.Operator) 727 i = encodeVarintEvent(dAtA, i, uint64(len(m.Operator))) 728 i-- 729 dAtA[i] = 0x2a 730 } 731 if len(m.Amount) > 0 { 732 i -= len(m.Amount) 733 copy(dAtA[i:], m.Amount) 734 i = encodeVarintEvent(dAtA, i, uint64(len(m.Amount))) 735 i-- 736 dAtA[i] = 0x22 737 } 738 if len(m.Receiver) > 0 { 739 i -= len(m.Receiver) 740 copy(dAtA[i:], m.Receiver) 741 i = encodeVarintEvent(dAtA, i, uint64(len(m.Receiver))) 742 i-- 743 dAtA[i] = 0x1a 744 } 745 if len(m.Sender) > 0 { 746 i -= len(m.Sender) 747 copy(dAtA[i:], m.Sender) 748 i = encodeVarintEvent(dAtA, i, uint64(len(m.Sender))) 749 i-- 750 dAtA[i] = 0x12 751 } 752 if m.Seq != 0 { 753 i = encodeVarintEvent(dAtA, i, uint64(m.Seq)) 754 i-- 755 dAtA[i] = 0x8 756 } 757 return len(dAtA) - i, nil 758 } 759 760 func (m *EventConfirmProvision) Marshal() (dAtA []byte, err error) { 761 size := m.Size() 762 dAtA = make([]byte, size) 763 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 764 if err != nil { 765 return nil, err 766 } 767 return dAtA[:n], nil 768 } 769 770 func (m *EventConfirmProvision) MarshalTo(dAtA []byte) (int, error) { 771 size := m.Size() 772 return m.MarshalToSizedBuffer(dAtA[:size]) 773 } 774 775 func (m *EventConfirmProvision) MarshalToSizedBuffer(dAtA []byte) (int, error) { 776 i := len(dAtA) 777 _ = i 778 var l int 779 _ = l 780 if m.Seq != 0 { 781 i = encodeVarintEvent(dAtA, i, uint64(m.Seq)) 782 i-- 783 dAtA[i] = 0x8 784 } 785 return len(dAtA) - i, nil 786 } 787 788 func (m *EventClaim) Marshal() (dAtA []byte, err error) { 789 size := m.Size() 790 dAtA = make([]byte, size) 791 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 792 if err != nil { 793 return nil, err 794 } 795 return dAtA[:n], nil 796 } 797 798 func (m *EventClaim) MarshalTo(dAtA []byte) (int, error) { 799 size := m.Size() 800 return m.MarshalToSizedBuffer(dAtA[:size]) 801 } 802 803 func (m *EventClaim) MarshalToSizedBuffer(dAtA []byte) (int, error) { 804 i := len(dAtA) 805 _ = i 806 var l int 807 _ = l 808 if len(m.Amount) > 0 { 809 i -= len(m.Amount) 810 copy(dAtA[i:], m.Amount) 811 i = encodeVarintEvent(dAtA, i, uint64(len(m.Amount))) 812 i-- 813 dAtA[i] = 0x22 814 } 815 if len(m.Receiver) > 0 { 816 i -= len(m.Receiver) 817 copy(dAtA[i:], m.Receiver) 818 i = encodeVarintEvent(dAtA, i, uint64(len(m.Receiver))) 819 i-- 820 dAtA[i] = 0x1a 821 } 822 if len(m.Sender) > 0 { 823 i -= len(m.Sender) 824 copy(dAtA[i:], m.Sender) 825 i = encodeVarintEvent(dAtA, i, uint64(len(m.Sender))) 826 i-- 827 dAtA[i] = 0x12 828 } 829 if m.Seq != 0 { 830 i = encodeVarintEvent(dAtA, i, uint64(m.Seq)) 831 i-- 832 dAtA[i] = 0x8 833 } 834 return len(dAtA) - i, nil 835 } 836 837 func (m *EventSetBridgeStatus) Marshal() (dAtA []byte, err error) { 838 size := m.Size() 839 dAtA = make([]byte, size) 840 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 841 if err != nil { 842 return nil, err 843 } 844 return dAtA[:n], nil 845 } 846 847 func (m *EventSetBridgeStatus) MarshalTo(dAtA []byte) (int, error) { 848 size := m.Size() 849 return m.MarshalToSizedBuffer(dAtA[:size]) 850 } 851 852 func (m *EventSetBridgeStatus) MarshalToSizedBuffer(dAtA []byte) (int, error) { 853 i := len(dAtA) 854 _ = i 855 var l int 856 _ = l 857 if m.Status != 0 { 858 i = encodeVarintEvent(dAtA, i, uint64(m.Status)) 859 i-- 860 dAtA[i] = 0x10 861 } 862 if len(m.Guardian) > 0 { 863 i -= len(m.Guardian) 864 copy(dAtA[i:], m.Guardian) 865 i = encodeVarintEvent(dAtA, i, uint64(len(m.Guardian))) 866 i-- 867 dAtA[i] = 0xa 868 } 869 return len(dAtA) - i, nil 870 } 871 872 func encodeVarintEvent(dAtA []byte, offset int, v uint64) int { 873 offset -= sovEvent(v) 874 base := offset 875 for v >= 1<<7 { 876 dAtA[offset] = uint8(v&0x7f | 0x80) 877 v >>= 7 878 offset++ 879 } 880 dAtA[offset] = uint8(v) 881 return base 882 } 883 func (m *EventUpdateParams) Size() (n int) { 884 if m == nil { 885 return 0 886 } 887 var l int 888 _ = l 889 l = m.Params.Size() 890 n += 1 + l + sovEvent(uint64(l)) 891 return n 892 } 893 894 func (m *EventTransfer) Size() (n int) { 895 if m == nil { 896 return 0 897 } 898 var l int 899 _ = l 900 if m.Seq != 0 { 901 n += 1 + sovEvent(uint64(m.Seq)) 902 } 903 l = len(m.Sender) 904 if l > 0 { 905 n += 1 + l + sovEvent(uint64(l)) 906 } 907 l = len(m.Receiver) 908 if l > 0 { 909 n += 1 + l + sovEvent(uint64(l)) 910 } 911 l = len(m.Amount) 912 if l > 0 { 913 n += 1 + l + sovEvent(uint64(l)) 914 } 915 return n 916 } 917 918 func (m *EventSuggestRole) Size() (n int) { 919 if m == nil { 920 return 0 921 } 922 var l int 923 _ = l 924 l = m.Proposal.Size() 925 n += 1 + l + sovEvent(uint64(l)) 926 return n 927 } 928 929 func (m *EventAddVoteForRole) Size() (n int) { 930 if m == nil { 931 return 0 932 } 933 var l int 934 _ = l 935 l = len(m.Voter) 936 if l > 0 { 937 n += 1 + l + sovEvent(uint64(l)) 938 } 939 if m.ProposalId != 0 { 940 n += 1 + sovEvent(uint64(m.ProposalId)) 941 } 942 if m.Option != 0 { 943 n += 1 + sovEvent(uint64(m.Option)) 944 } 945 return n 946 } 947 948 func (m *EventProvision) Size() (n int) { 949 if m == nil { 950 return 0 951 } 952 var l int 953 _ = l 954 if m.Seq != 0 { 955 n += 1 + sovEvent(uint64(m.Seq)) 956 } 957 l = len(m.Sender) 958 if l > 0 { 959 n += 1 + l + sovEvent(uint64(l)) 960 } 961 l = len(m.Receiver) 962 if l > 0 { 963 n += 1 + l + sovEvent(uint64(l)) 964 } 965 l = len(m.Amount) 966 if l > 0 { 967 n += 1 + l + sovEvent(uint64(l)) 968 } 969 l = len(m.Operator) 970 if l > 0 { 971 n += 1 + l + sovEvent(uint64(l)) 972 } 973 return n 974 } 975 976 func (m *EventConfirmProvision) Size() (n int) { 977 if m == nil { 978 return 0 979 } 980 var l int 981 _ = l 982 if m.Seq != 0 { 983 n += 1 + sovEvent(uint64(m.Seq)) 984 } 985 return n 986 } 987 988 func (m *EventClaim) Size() (n int) { 989 if m == nil { 990 return 0 991 } 992 var l int 993 _ = l 994 if m.Seq != 0 { 995 n += 1 + sovEvent(uint64(m.Seq)) 996 } 997 l = len(m.Sender) 998 if l > 0 { 999 n += 1 + l + sovEvent(uint64(l)) 1000 } 1001 l = len(m.Receiver) 1002 if l > 0 { 1003 n += 1 + l + sovEvent(uint64(l)) 1004 } 1005 l = len(m.Amount) 1006 if l > 0 { 1007 n += 1 + l + sovEvent(uint64(l)) 1008 } 1009 return n 1010 } 1011 1012 func (m *EventSetBridgeStatus) Size() (n int) { 1013 if m == nil { 1014 return 0 1015 } 1016 var l int 1017 _ = l 1018 l = len(m.Guardian) 1019 if l > 0 { 1020 n += 1 + l + sovEvent(uint64(l)) 1021 } 1022 if m.Status != 0 { 1023 n += 1 + sovEvent(uint64(m.Status)) 1024 } 1025 return n 1026 } 1027 1028 func sovEvent(x uint64) (n int) { 1029 return (math_bits.Len64(x|1) + 6) / 7 1030 } 1031 func sozEvent(x uint64) (n int) { 1032 return sovEvent(uint64((x << 1) ^ uint64((int64(x) >> 63)))) 1033 } 1034 func (m *EventUpdateParams) Unmarshal(dAtA []byte) error { 1035 l := len(dAtA) 1036 iNdEx := 0 1037 for iNdEx < l { 1038 preIndex := iNdEx 1039 var wire uint64 1040 for shift := uint(0); ; shift += 7 { 1041 if shift >= 64 { 1042 return ErrIntOverflowEvent 1043 } 1044 if iNdEx >= l { 1045 return io.ErrUnexpectedEOF 1046 } 1047 b := dAtA[iNdEx] 1048 iNdEx++ 1049 wire |= uint64(b&0x7F) << shift 1050 if b < 0x80 { 1051 break 1052 } 1053 } 1054 fieldNum := int32(wire >> 3) 1055 wireType := int(wire & 0x7) 1056 if wireType == 4 { 1057 return fmt.Errorf("proto: EventUpdateParams: wiretype end group for non-group") 1058 } 1059 if fieldNum <= 0 { 1060 return fmt.Errorf("proto: EventUpdateParams: illegal tag %d (wire type %d)", fieldNum, wire) 1061 } 1062 switch fieldNum { 1063 case 1: 1064 if wireType != 2 { 1065 return fmt.Errorf("proto: wrong wireType = %d for field Params", wireType) 1066 } 1067 var msglen int 1068 for shift := uint(0); ; shift += 7 { 1069 if shift >= 64 { 1070 return ErrIntOverflowEvent 1071 } 1072 if iNdEx >= l { 1073 return io.ErrUnexpectedEOF 1074 } 1075 b := dAtA[iNdEx] 1076 iNdEx++ 1077 msglen |= int(b&0x7F) << shift 1078 if b < 0x80 { 1079 break 1080 } 1081 } 1082 if msglen < 0 { 1083 return ErrInvalidLengthEvent 1084 } 1085 postIndex := iNdEx + msglen 1086 if postIndex < 0 { 1087 return ErrInvalidLengthEvent 1088 } 1089 if postIndex > l { 1090 return io.ErrUnexpectedEOF 1091 } 1092 if err := m.Params.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 1093 return err 1094 } 1095 iNdEx = postIndex 1096 default: 1097 iNdEx = preIndex 1098 skippy, err := skipEvent(dAtA[iNdEx:]) 1099 if err != nil { 1100 return err 1101 } 1102 if (skippy < 0) || (iNdEx+skippy) < 0 { 1103 return ErrInvalidLengthEvent 1104 } 1105 if (iNdEx + skippy) > l { 1106 return io.ErrUnexpectedEOF 1107 } 1108 iNdEx += skippy 1109 } 1110 } 1111 1112 if iNdEx > l { 1113 return io.ErrUnexpectedEOF 1114 } 1115 return nil 1116 } 1117 func (m *EventTransfer) Unmarshal(dAtA []byte) error { 1118 l := len(dAtA) 1119 iNdEx := 0 1120 for iNdEx < l { 1121 preIndex := iNdEx 1122 var wire uint64 1123 for shift := uint(0); ; shift += 7 { 1124 if shift >= 64 { 1125 return ErrIntOverflowEvent 1126 } 1127 if iNdEx >= l { 1128 return io.ErrUnexpectedEOF 1129 } 1130 b := dAtA[iNdEx] 1131 iNdEx++ 1132 wire |= uint64(b&0x7F) << shift 1133 if b < 0x80 { 1134 break 1135 } 1136 } 1137 fieldNum := int32(wire >> 3) 1138 wireType := int(wire & 0x7) 1139 if wireType == 4 { 1140 return fmt.Errorf("proto: EventTransfer: wiretype end group for non-group") 1141 } 1142 if fieldNum <= 0 { 1143 return fmt.Errorf("proto: EventTransfer: illegal tag %d (wire type %d)", fieldNum, wire) 1144 } 1145 switch fieldNum { 1146 case 1: 1147 if wireType != 0 { 1148 return fmt.Errorf("proto: wrong wireType = %d for field Seq", wireType) 1149 } 1150 m.Seq = 0 1151 for shift := uint(0); ; shift += 7 { 1152 if shift >= 64 { 1153 return ErrIntOverflowEvent 1154 } 1155 if iNdEx >= l { 1156 return io.ErrUnexpectedEOF 1157 } 1158 b := dAtA[iNdEx] 1159 iNdEx++ 1160 m.Seq |= uint64(b&0x7F) << shift 1161 if b < 0x80 { 1162 break 1163 } 1164 } 1165 case 2: 1166 if wireType != 2 { 1167 return fmt.Errorf("proto: wrong wireType = %d for field Sender", wireType) 1168 } 1169 var stringLen uint64 1170 for shift := uint(0); ; shift += 7 { 1171 if shift >= 64 { 1172 return ErrIntOverflowEvent 1173 } 1174 if iNdEx >= l { 1175 return io.ErrUnexpectedEOF 1176 } 1177 b := dAtA[iNdEx] 1178 iNdEx++ 1179 stringLen |= uint64(b&0x7F) << shift 1180 if b < 0x80 { 1181 break 1182 } 1183 } 1184 intStringLen := int(stringLen) 1185 if intStringLen < 0 { 1186 return ErrInvalidLengthEvent 1187 } 1188 postIndex := iNdEx + intStringLen 1189 if postIndex < 0 { 1190 return ErrInvalidLengthEvent 1191 } 1192 if postIndex > l { 1193 return io.ErrUnexpectedEOF 1194 } 1195 m.Sender = string(dAtA[iNdEx:postIndex]) 1196 iNdEx = postIndex 1197 case 3: 1198 if wireType != 2 { 1199 return fmt.Errorf("proto: wrong wireType = %d for field Receiver", wireType) 1200 } 1201 var stringLen uint64 1202 for shift := uint(0); ; shift += 7 { 1203 if shift >= 64 { 1204 return ErrIntOverflowEvent 1205 } 1206 if iNdEx >= l { 1207 return io.ErrUnexpectedEOF 1208 } 1209 b := dAtA[iNdEx] 1210 iNdEx++ 1211 stringLen |= uint64(b&0x7F) << shift 1212 if b < 0x80 { 1213 break 1214 } 1215 } 1216 intStringLen := int(stringLen) 1217 if intStringLen < 0 { 1218 return ErrInvalidLengthEvent 1219 } 1220 postIndex := iNdEx + intStringLen 1221 if postIndex < 0 { 1222 return ErrInvalidLengthEvent 1223 } 1224 if postIndex > l { 1225 return io.ErrUnexpectedEOF 1226 } 1227 m.Receiver = string(dAtA[iNdEx:postIndex]) 1228 iNdEx = postIndex 1229 case 4: 1230 if wireType != 2 { 1231 return fmt.Errorf("proto: wrong wireType = %d for field Amount", wireType) 1232 } 1233 var stringLen uint64 1234 for shift := uint(0); ; shift += 7 { 1235 if shift >= 64 { 1236 return ErrIntOverflowEvent 1237 } 1238 if iNdEx >= l { 1239 return io.ErrUnexpectedEOF 1240 } 1241 b := dAtA[iNdEx] 1242 iNdEx++ 1243 stringLen |= uint64(b&0x7F) << shift 1244 if b < 0x80 { 1245 break 1246 } 1247 } 1248 intStringLen := int(stringLen) 1249 if intStringLen < 0 { 1250 return ErrInvalidLengthEvent 1251 } 1252 postIndex := iNdEx + intStringLen 1253 if postIndex < 0 { 1254 return ErrInvalidLengthEvent 1255 } 1256 if postIndex > l { 1257 return io.ErrUnexpectedEOF 1258 } 1259 m.Amount = string(dAtA[iNdEx:postIndex]) 1260 iNdEx = postIndex 1261 default: 1262 iNdEx = preIndex 1263 skippy, err := skipEvent(dAtA[iNdEx:]) 1264 if err != nil { 1265 return err 1266 } 1267 if (skippy < 0) || (iNdEx+skippy) < 0 { 1268 return ErrInvalidLengthEvent 1269 } 1270 if (iNdEx + skippy) > l { 1271 return io.ErrUnexpectedEOF 1272 } 1273 iNdEx += skippy 1274 } 1275 } 1276 1277 if iNdEx > l { 1278 return io.ErrUnexpectedEOF 1279 } 1280 return nil 1281 } 1282 func (m *EventSuggestRole) Unmarshal(dAtA []byte) error { 1283 l := len(dAtA) 1284 iNdEx := 0 1285 for iNdEx < l { 1286 preIndex := iNdEx 1287 var wire uint64 1288 for shift := uint(0); ; shift += 7 { 1289 if shift >= 64 { 1290 return ErrIntOverflowEvent 1291 } 1292 if iNdEx >= l { 1293 return io.ErrUnexpectedEOF 1294 } 1295 b := dAtA[iNdEx] 1296 iNdEx++ 1297 wire |= uint64(b&0x7F) << shift 1298 if b < 0x80 { 1299 break 1300 } 1301 } 1302 fieldNum := int32(wire >> 3) 1303 wireType := int(wire & 0x7) 1304 if wireType == 4 { 1305 return fmt.Errorf("proto: EventSuggestRole: wiretype end group for non-group") 1306 } 1307 if fieldNum <= 0 { 1308 return fmt.Errorf("proto: EventSuggestRole: illegal tag %d (wire type %d)", fieldNum, wire) 1309 } 1310 switch fieldNum { 1311 case 1: 1312 if wireType != 2 { 1313 return fmt.Errorf("proto: wrong wireType = %d for field Proposal", wireType) 1314 } 1315 var msglen int 1316 for shift := uint(0); ; shift += 7 { 1317 if shift >= 64 { 1318 return ErrIntOverflowEvent 1319 } 1320 if iNdEx >= l { 1321 return io.ErrUnexpectedEOF 1322 } 1323 b := dAtA[iNdEx] 1324 iNdEx++ 1325 msglen |= int(b&0x7F) << shift 1326 if b < 0x80 { 1327 break 1328 } 1329 } 1330 if msglen < 0 { 1331 return ErrInvalidLengthEvent 1332 } 1333 postIndex := iNdEx + msglen 1334 if postIndex < 0 { 1335 return ErrInvalidLengthEvent 1336 } 1337 if postIndex > l { 1338 return io.ErrUnexpectedEOF 1339 } 1340 if err := m.Proposal.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 1341 return err 1342 } 1343 iNdEx = postIndex 1344 default: 1345 iNdEx = preIndex 1346 skippy, err := skipEvent(dAtA[iNdEx:]) 1347 if err != nil { 1348 return err 1349 } 1350 if (skippy < 0) || (iNdEx+skippy) < 0 { 1351 return ErrInvalidLengthEvent 1352 } 1353 if (iNdEx + skippy) > l { 1354 return io.ErrUnexpectedEOF 1355 } 1356 iNdEx += skippy 1357 } 1358 } 1359 1360 if iNdEx > l { 1361 return io.ErrUnexpectedEOF 1362 } 1363 return nil 1364 } 1365 func (m *EventAddVoteForRole) Unmarshal(dAtA []byte) error { 1366 l := len(dAtA) 1367 iNdEx := 0 1368 for iNdEx < l { 1369 preIndex := iNdEx 1370 var wire uint64 1371 for shift := uint(0); ; shift += 7 { 1372 if shift >= 64 { 1373 return ErrIntOverflowEvent 1374 } 1375 if iNdEx >= l { 1376 return io.ErrUnexpectedEOF 1377 } 1378 b := dAtA[iNdEx] 1379 iNdEx++ 1380 wire |= uint64(b&0x7F) << shift 1381 if b < 0x80 { 1382 break 1383 } 1384 } 1385 fieldNum := int32(wire >> 3) 1386 wireType := int(wire & 0x7) 1387 if wireType == 4 { 1388 return fmt.Errorf("proto: EventAddVoteForRole: wiretype end group for non-group") 1389 } 1390 if fieldNum <= 0 { 1391 return fmt.Errorf("proto: EventAddVoteForRole: illegal tag %d (wire type %d)", fieldNum, wire) 1392 } 1393 switch fieldNum { 1394 case 1: 1395 if wireType != 2 { 1396 return fmt.Errorf("proto: wrong wireType = %d for field Voter", wireType) 1397 } 1398 var stringLen uint64 1399 for shift := uint(0); ; shift += 7 { 1400 if shift >= 64 { 1401 return ErrIntOverflowEvent 1402 } 1403 if iNdEx >= l { 1404 return io.ErrUnexpectedEOF 1405 } 1406 b := dAtA[iNdEx] 1407 iNdEx++ 1408 stringLen |= uint64(b&0x7F) << shift 1409 if b < 0x80 { 1410 break 1411 } 1412 } 1413 intStringLen := int(stringLen) 1414 if intStringLen < 0 { 1415 return ErrInvalidLengthEvent 1416 } 1417 postIndex := iNdEx + intStringLen 1418 if postIndex < 0 { 1419 return ErrInvalidLengthEvent 1420 } 1421 if postIndex > l { 1422 return io.ErrUnexpectedEOF 1423 } 1424 m.Voter = string(dAtA[iNdEx:postIndex]) 1425 iNdEx = postIndex 1426 case 2: 1427 if wireType != 0 { 1428 return fmt.Errorf("proto: wrong wireType = %d for field ProposalId", wireType) 1429 } 1430 m.ProposalId = 0 1431 for shift := uint(0); ; shift += 7 { 1432 if shift >= 64 { 1433 return ErrIntOverflowEvent 1434 } 1435 if iNdEx >= l { 1436 return io.ErrUnexpectedEOF 1437 } 1438 b := dAtA[iNdEx] 1439 iNdEx++ 1440 m.ProposalId |= uint64(b&0x7F) << shift 1441 if b < 0x80 { 1442 break 1443 } 1444 } 1445 case 3: 1446 if wireType != 0 { 1447 return fmt.Errorf("proto: wrong wireType = %d for field Option", wireType) 1448 } 1449 m.Option = 0 1450 for shift := uint(0); ; shift += 7 { 1451 if shift >= 64 { 1452 return ErrIntOverflowEvent 1453 } 1454 if iNdEx >= l { 1455 return io.ErrUnexpectedEOF 1456 } 1457 b := dAtA[iNdEx] 1458 iNdEx++ 1459 m.Option |= VoteOption(b&0x7F) << shift 1460 if b < 0x80 { 1461 break 1462 } 1463 } 1464 default: 1465 iNdEx = preIndex 1466 skippy, err := skipEvent(dAtA[iNdEx:]) 1467 if err != nil { 1468 return err 1469 } 1470 if (skippy < 0) || (iNdEx+skippy) < 0 { 1471 return ErrInvalidLengthEvent 1472 } 1473 if (iNdEx + skippy) > l { 1474 return io.ErrUnexpectedEOF 1475 } 1476 iNdEx += skippy 1477 } 1478 } 1479 1480 if iNdEx > l { 1481 return io.ErrUnexpectedEOF 1482 } 1483 return nil 1484 } 1485 func (m *EventProvision) Unmarshal(dAtA []byte) error { 1486 l := len(dAtA) 1487 iNdEx := 0 1488 for iNdEx < l { 1489 preIndex := iNdEx 1490 var wire uint64 1491 for shift := uint(0); ; shift += 7 { 1492 if shift >= 64 { 1493 return ErrIntOverflowEvent 1494 } 1495 if iNdEx >= l { 1496 return io.ErrUnexpectedEOF 1497 } 1498 b := dAtA[iNdEx] 1499 iNdEx++ 1500 wire |= uint64(b&0x7F) << shift 1501 if b < 0x80 { 1502 break 1503 } 1504 } 1505 fieldNum := int32(wire >> 3) 1506 wireType := int(wire & 0x7) 1507 if wireType == 4 { 1508 return fmt.Errorf("proto: EventProvision: wiretype end group for non-group") 1509 } 1510 if fieldNum <= 0 { 1511 return fmt.Errorf("proto: EventProvision: illegal tag %d (wire type %d)", fieldNum, wire) 1512 } 1513 switch fieldNum { 1514 case 1: 1515 if wireType != 0 { 1516 return fmt.Errorf("proto: wrong wireType = %d for field Seq", wireType) 1517 } 1518 m.Seq = 0 1519 for shift := uint(0); ; shift += 7 { 1520 if shift >= 64 { 1521 return ErrIntOverflowEvent 1522 } 1523 if iNdEx >= l { 1524 return io.ErrUnexpectedEOF 1525 } 1526 b := dAtA[iNdEx] 1527 iNdEx++ 1528 m.Seq |= uint64(b&0x7F) << shift 1529 if b < 0x80 { 1530 break 1531 } 1532 } 1533 case 2: 1534 if wireType != 2 { 1535 return fmt.Errorf("proto: wrong wireType = %d for field Sender", wireType) 1536 } 1537 var stringLen uint64 1538 for shift := uint(0); ; shift += 7 { 1539 if shift >= 64 { 1540 return ErrIntOverflowEvent 1541 } 1542 if iNdEx >= l { 1543 return io.ErrUnexpectedEOF 1544 } 1545 b := dAtA[iNdEx] 1546 iNdEx++ 1547 stringLen |= uint64(b&0x7F) << shift 1548 if b < 0x80 { 1549 break 1550 } 1551 } 1552 intStringLen := int(stringLen) 1553 if intStringLen < 0 { 1554 return ErrInvalidLengthEvent 1555 } 1556 postIndex := iNdEx + intStringLen 1557 if postIndex < 0 { 1558 return ErrInvalidLengthEvent 1559 } 1560 if postIndex > l { 1561 return io.ErrUnexpectedEOF 1562 } 1563 m.Sender = string(dAtA[iNdEx:postIndex]) 1564 iNdEx = postIndex 1565 case 3: 1566 if wireType != 2 { 1567 return fmt.Errorf("proto: wrong wireType = %d for field Receiver", wireType) 1568 } 1569 var stringLen uint64 1570 for shift := uint(0); ; shift += 7 { 1571 if shift >= 64 { 1572 return ErrIntOverflowEvent 1573 } 1574 if iNdEx >= l { 1575 return io.ErrUnexpectedEOF 1576 } 1577 b := dAtA[iNdEx] 1578 iNdEx++ 1579 stringLen |= uint64(b&0x7F) << shift 1580 if b < 0x80 { 1581 break 1582 } 1583 } 1584 intStringLen := int(stringLen) 1585 if intStringLen < 0 { 1586 return ErrInvalidLengthEvent 1587 } 1588 postIndex := iNdEx + intStringLen 1589 if postIndex < 0 { 1590 return ErrInvalidLengthEvent 1591 } 1592 if postIndex > l { 1593 return io.ErrUnexpectedEOF 1594 } 1595 m.Receiver = string(dAtA[iNdEx:postIndex]) 1596 iNdEx = postIndex 1597 case 4: 1598 if wireType != 2 { 1599 return fmt.Errorf("proto: wrong wireType = %d for field Amount", wireType) 1600 } 1601 var stringLen uint64 1602 for shift := uint(0); ; shift += 7 { 1603 if shift >= 64 { 1604 return ErrIntOverflowEvent 1605 } 1606 if iNdEx >= l { 1607 return io.ErrUnexpectedEOF 1608 } 1609 b := dAtA[iNdEx] 1610 iNdEx++ 1611 stringLen |= uint64(b&0x7F) << shift 1612 if b < 0x80 { 1613 break 1614 } 1615 } 1616 intStringLen := int(stringLen) 1617 if intStringLen < 0 { 1618 return ErrInvalidLengthEvent 1619 } 1620 postIndex := iNdEx + intStringLen 1621 if postIndex < 0 { 1622 return ErrInvalidLengthEvent 1623 } 1624 if postIndex > l { 1625 return io.ErrUnexpectedEOF 1626 } 1627 m.Amount = string(dAtA[iNdEx:postIndex]) 1628 iNdEx = postIndex 1629 case 5: 1630 if wireType != 2 { 1631 return fmt.Errorf("proto: wrong wireType = %d for field Operator", wireType) 1632 } 1633 var stringLen uint64 1634 for shift := uint(0); ; shift += 7 { 1635 if shift >= 64 { 1636 return ErrIntOverflowEvent 1637 } 1638 if iNdEx >= l { 1639 return io.ErrUnexpectedEOF 1640 } 1641 b := dAtA[iNdEx] 1642 iNdEx++ 1643 stringLen |= uint64(b&0x7F) << shift 1644 if b < 0x80 { 1645 break 1646 } 1647 } 1648 intStringLen := int(stringLen) 1649 if intStringLen < 0 { 1650 return ErrInvalidLengthEvent 1651 } 1652 postIndex := iNdEx + intStringLen 1653 if postIndex < 0 { 1654 return ErrInvalidLengthEvent 1655 } 1656 if postIndex > l { 1657 return io.ErrUnexpectedEOF 1658 } 1659 m.Operator = string(dAtA[iNdEx:postIndex]) 1660 iNdEx = postIndex 1661 default: 1662 iNdEx = preIndex 1663 skippy, err := skipEvent(dAtA[iNdEx:]) 1664 if err != nil { 1665 return err 1666 } 1667 if (skippy < 0) || (iNdEx+skippy) < 0 { 1668 return ErrInvalidLengthEvent 1669 } 1670 if (iNdEx + skippy) > l { 1671 return io.ErrUnexpectedEOF 1672 } 1673 iNdEx += skippy 1674 } 1675 } 1676 1677 if iNdEx > l { 1678 return io.ErrUnexpectedEOF 1679 } 1680 return nil 1681 } 1682 func (m *EventConfirmProvision) Unmarshal(dAtA []byte) error { 1683 l := len(dAtA) 1684 iNdEx := 0 1685 for iNdEx < l { 1686 preIndex := iNdEx 1687 var wire uint64 1688 for shift := uint(0); ; shift += 7 { 1689 if shift >= 64 { 1690 return ErrIntOverflowEvent 1691 } 1692 if iNdEx >= l { 1693 return io.ErrUnexpectedEOF 1694 } 1695 b := dAtA[iNdEx] 1696 iNdEx++ 1697 wire |= uint64(b&0x7F) << shift 1698 if b < 0x80 { 1699 break 1700 } 1701 } 1702 fieldNum := int32(wire >> 3) 1703 wireType := int(wire & 0x7) 1704 if wireType == 4 { 1705 return fmt.Errorf("proto: EventConfirmProvision: wiretype end group for non-group") 1706 } 1707 if fieldNum <= 0 { 1708 return fmt.Errorf("proto: EventConfirmProvision: illegal tag %d (wire type %d)", fieldNum, wire) 1709 } 1710 switch fieldNum { 1711 case 1: 1712 if wireType != 0 { 1713 return fmt.Errorf("proto: wrong wireType = %d for field Seq", wireType) 1714 } 1715 m.Seq = 0 1716 for shift := uint(0); ; shift += 7 { 1717 if shift >= 64 { 1718 return ErrIntOverflowEvent 1719 } 1720 if iNdEx >= l { 1721 return io.ErrUnexpectedEOF 1722 } 1723 b := dAtA[iNdEx] 1724 iNdEx++ 1725 m.Seq |= uint64(b&0x7F) << shift 1726 if b < 0x80 { 1727 break 1728 } 1729 } 1730 default: 1731 iNdEx = preIndex 1732 skippy, err := skipEvent(dAtA[iNdEx:]) 1733 if err != nil { 1734 return err 1735 } 1736 if (skippy < 0) || (iNdEx+skippy) < 0 { 1737 return ErrInvalidLengthEvent 1738 } 1739 if (iNdEx + skippy) > l { 1740 return io.ErrUnexpectedEOF 1741 } 1742 iNdEx += skippy 1743 } 1744 } 1745 1746 if iNdEx > l { 1747 return io.ErrUnexpectedEOF 1748 } 1749 return nil 1750 } 1751 func (m *EventClaim) Unmarshal(dAtA []byte) error { 1752 l := len(dAtA) 1753 iNdEx := 0 1754 for iNdEx < l { 1755 preIndex := iNdEx 1756 var wire uint64 1757 for shift := uint(0); ; shift += 7 { 1758 if shift >= 64 { 1759 return ErrIntOverflowEvent 1760 } 1761 if iNdEx >= l { 1762 return io.ErrUnexpectedEOF 1763 } 1764 b := dAtA[iNdEx] 1765 iNdEx++ 1766 wire |= uint64(b&0x7F) << shift 1767 if b < 0x80 { 1768 break 1769 } 1770 } 1771 fieldNum := int32(wire >> 3) 1772 wireType := int(wire & 0x7) 1773 if wireType == 4 { 1774 return fmt.Errorf("proto: EventClaim: wiretype end group for non-group") 1775 } 1776 if fieldNum <= 0 { 1777 return fmt.Errorf("proto: EventClaim: illegal tag %d (wire type %d)", fieldNum, wire) 1778 } 1779 switch fieldNum { 1780 case 1: 1781 if wireType != 0 { 1782 return fmt.Errorf("proto: wrong wireType = %d for field Seq", wireType) 1783 } 1784 m.Seq = 0 1785 for shift := uint(0); ; shift += 7 { 1786 if shift >= 64 { 1787 return ErrIntOverflowEvent 1788 } 1789 if iNdEx >= l { 1790 return io.ErrUnexpectedEOF 1791 } 1792 b := dAtA[iNdEx] 1793 iNdEx++ 1794 m.Seq |= uint64(b&0x7F) << shift 1795 if b < 0x80 { 1796 break 1797 } 1798 } 1799 case 2: 1800 if wireType != 2 { 1801 return fmt.Errorf("proto: wrong wireType = %d for field Sender", wireType) 1802 } 1803 var stringLen uint64 1804 for shift := uint(0); ; shift += 7 { 1805 if shift >= 64 { 1806 return ErrIntOverflowEvent 1807 } 1808 if iNdEx >= l { 1809 return io.ErrUnexpectedEOF 1810 } 1811 b := dAtA[iNdEx] 1812 iNdEx++ 1813 stringLen |= uint64(b&0x7F) << shift 1814 if b < 0x80 { 1815 break 1816 } 1817 } 1818 intStringLen := int(stringLen) 1819 if intStringLen < 0 { 1820 return ErrInvalidLengthEvent 1821 } 1822 postIndex := iNdEx + intStringLen 1823 if postIndex < 0 { 1824 return ErrInvalidLengthEvent 1825 } 1826 if postIndex > l { 1827 return io.ErrUnexpectedEOF 1828 } 1829 m.Sender = string(dAtA[iNdEx:postIndex]) 1830 iNdEx = postIndex 1831 case 3: 1832 if wireType != 2 { 1833 return fmt.Errorf("proto: wrong wireType = %d for field Receiver", wireType) 1834 } 1835 var stringLen uint64 1836 for shift := uint(0); ; shift += 7 { 1837 if shift >= 64 { 1838 return ErrIntOverflowEvent 1839 } 1840 if iNdEx >= l { 1841 return io.ErrUnexpectedEOF 1842 } 1843 b := dAtA[iNdEx] 1844 iNdEx++ 1845 stringLen |= uint64(b&0x7F) << shift 1846 if b < 0x80 { 1847 break 1848 } 1849 } 1850 intStringLen := int(stringLen) 1851 if intStringLen < 0 { 1852 return ErrInvalidLengthEvent 1853 } 1854 postIndex := iNdEx + intStringLen 1855 if postIndex < 0 { 1856 return ErrInvalidLengthEvent 1857 } 1858 if postIndex > l { 1859 return io.ErrUnexpectedEOF 1860 } 1861 m.Receiver = string(dAtA[iNdEx:postIndex]) 1862 iNdEx = postIndex 1863 case 4: 1864 if wireType != 2 { 1865 return fmt.Errorf("proto: wrong wireType = %d for field Amount", wireType) 1866 } 1867 var stringLen uint64 1868 for shift := uint(0); ; shift += 7 { 1869 if shift >= 64 { 1870 return ErrIntOverflowEvent 1871 } 1872 if iNdEx >= l { 1873 return io.ErrUnexpectedEOF 1874 } 1875 b := dAtA[iNdEx] 1876 iNdEx++ 1877 stringLen |= uint64(b&0x7F) << shift 1878 if b < 0x80 { 1879 break 1880 } 1881 } 1882 intStringLen := int(stringLen) 1883 if intStringLen < 0 { 1884 return ErrInvalidLengthEvent 1885 } 1886 postIndex := iNdEx + intStringLen 1887 if postIndex < 0 { 1888 return ErrInvalidLengthEvent 1889 } 1890 if postIndex > l { 1891 return io.ErrUnexpectedEOF 1892 } 1893 m.Amount = string(dAtA[iNdEx:postIndex]) 1894 iNdEx = postIndex 1895 default: 1896 iNdEx = preIndex 1897 skippy, err := skipEvent(dAtA[iNdEx:]) 1898 if err != nil { 1899 return err 1900 } 1901 if (skippy < 0) || (iNdEx+skippy) < 0 { 1902 return ErrInvalidLengthEvent 1903 } 1904 if (iNdEx + skippy) > l { 1905 return io.ErrUnexpectedEOF 1906 } 1907 iNdEx += skippy 1908 } 1909 } 1910 1911 if iNdEx > l { 1912 return io.ErrUnexpectedEOF 1913 } 1914 return nil 1915 } 1916 func (m *EventSetBridgeStatus) Unmarshal(dAtA []byte) error { 1917 l := len(dAtA) 1918 iNdEx := 0 1919 for iNdEx < l { 1920 preIndex := iNdEx 1921 var wire uint64 1922 for shift := uint(0); ; shift += 7 { 1923 if shift >= 64 { 1924 return ErrIntOverflowEvent 1925 } 1926 if iNdEx >= l { 1927 return io.ErrUnexpectedEOF 1928 } 1929 b := dAtA[iNdEx] 1930 iNdEx++ 1931 wire |= uint64(b&0x7F) << shift 1932 if b < 0x80 { 1933 break 1934 } 1935 } 1936 fieldNum := int32(wire >> 3) 1937 wireType := int(wire & 0x7) 1938 if wireType == 4 { 1939 return fmt.Errorf("proto: EventSetBridgeStatus: wiretype end group for non-group") 1940 } 1941 if fieldNum <= 0 { 1942 return fmt.Errorf("proto: EventSetBridgeStatus: illegal tag %d (wire type %d)", fieldNum, wire) 1943 } 1944 switch fieldNum { 1945 case 1: 1946 if wireType != 2 { 1947 return fmt.Errorf("proto: wrong wireType = %d for field Guardian", wireType) 1948 } 1949 var stringLen uint64 1950 for shift := uint(0); ; shift += 7 { 1951 if shift >= 64 { 1952 return ErrIntOverflowEvent 1953 } 1954 if iNdEx >= l { 1955 return io.ErrUnexpectedEOF 1956 } 1957 b := dAtA[iNdEx] 1958 iNdEx++ 1959 stringLen |= uint64(b&0x7F) << shift 1960 if b < 0x80 { 1961 break 1962 } 1963 } 1964 intStringLen := int(stringLen) 1965 if intStringLen < 0 { 1966 return ErrInvalidLengthEvent 1967 } 1968 postIndex := iNdEx + intStringLen 1969 if postIndex < 0 { 1970 return ErrInvalidLengthEvent 1971 } 1972 if postIndex > l { 1973 return io.ErrUnexpectedEOF 1974 } 1975 m.Guardian = string(dAtA[iNdEx:postIndex]) 1976 iNdEx = postIndex 1977 case 2: 1978 if wireType != 0 { 1979 return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) 1980 } 1981 m.Status = 0 1982 for shift := uint(0); ; shift += 7 { 1983 if shift >= 64 { 1984 return ErrIntOverflowEvent 1985 } 1986 if iNdEx >= l { 1987 return io.ErrUnexpectedEOF 1988 } 1989 b := dAtA[iNdEx] 1990 iNdEx++ 1991 m.Status |= BridgeStatus(b&0x7F) << shift 1992 if b < 0x80 { 1993 break 1994 } 1995 } 1996 default: 1997 iNdEx = preIndex 1998 skippy, err := skipEvent(dAtA[iNdEx:]) 1999 if err != nil { 2000 return err 2001 } 2002 if (skippy < 0) || (iNdEx+skippy) < 0 { 2003 return ErrInvalidLengthEvent 2004 } 2005 if (iNdEx + skippy) > l { 2006 return io.ErrUnexpectedEOF 2007 } 2008 iNdEx += skippy 2009 } 2010 } 2011 2012 if iNdEx > l { 2013 return io.ErrUnexpectedEOF 2014 } 2015 return nil 2016 } 2017 func skipEvent(dAtA []byte) (n int, err error) { 2018 l := len(dAtA) 2019 iNdEx := 0 2020 depth := 0 2021 for iNdEx < l { 2022 var wire uint64 2023 for shift := uint(0); ; shift += 7 { 2024 if shift >= 64 { 2025 return 0, ErrIntOverflowEvent 2026 } 2027 if iNdEx >= l { 2028 return 0, io.ErrUnexpectedEOF 2029 } 2030 b := dAtA[iNdEx] 2031 iNdEx++ 2032 wire |= (uint64(b) & 0x7F) << shift 2033 if b < 0x80 { 2034 break 2035 } 2036 } 2037 wireType := int(wire & 0x7) 2038 switch wireType { 2039 case 0: 2040 for shift := uint(0); ; shift += 7 { 2041 if shift >= 64 { 2042 return 0, ErrIntOverflowEvent 2043 } 2044 if iNdEx >= l { 2045 return 0, io.ErrUnexpectedEOF 2046 } 2047 iNdEx++ 2048 if dAtA[iNdEx-1] < 0x80 { 2049 break 2050 } 2051 } 2052 case 1: 2053 iNdEx += 8 2054 case 2: 2055 var length int 2056 for shift := uint(0); ; shift += 7 { 2057 if shift >= 64 { 2058 return 0, ErrIntOverflowEvent 2059 } 2060 if iNdEx >= l { 2061 return 0, io.ErrUnexpectedEOF 2062 } 2063 b := dAtA[iNdEx] 2064 iNdEx++ 2065 length |= (int(b) & 0x7F) << shift 2066 if b < 0x80 { 2067 break 2068 } 2069 } 2070 if length < 0 { 2071 return 0, ErrInvalidLengthEvent 2072 } 2073 iNdEx += length 2074 case 3: 2075 depth++ 2076 case 4: 2077 if depth == 0 { 2078 return 0, ErrUnexpectedEndOfGroupEvent 2079 } 2080 depth-- 2081 case 5: 2082 iNdEx += 4 2083 default: 2084 return 0, fmt.Errorf("proto: illegal wireType %d", wireType) 2085 } 2086 if iNdEx < 0 { 2087 return 0, ErrInvalidLengthEvent 2088 } 2089 if depth == 0 { 2090 return iNdEx, nil 2091 } 2092 } 2093 return 0, io.ErrUnexpectedEOF 2094 } 2095 2096 var ( 2097 ErrInvalidLengthEvent = fmt.Errorf("proto: negative length found during unmarshaling") 2098 ErrIntOverflowEvent = fmt.Errorf("proto: integer overflow") 2099 ErrUnexpectedEndOfGroupEvent = fmt.Errorf("proto: unexpected end of group") 2100 )