github.com/Finschia/finschia-sdk@v0.48.1/x/collection/event.pb.go (about) 1 // Code generated by protoc-gen-gogo. DO NOT EDIT. 2 // source: lbm/collection/v1/event.proto 3 4 package collection 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 // AttributeKey enumerates the valid attribute keys on x/collection. 27 type AttributeKey int32 28 29 const ( 30 AttributeKeyUnspecified AttributeKey = 0 31 AttributeKeyName AttributeKey = 1 32 AttributeKeyMeta AttributeKey = 2 33 // deprecated: use ATTRIBUTE_KEY_URI 34 AttributeKeyBaseImgURI AttributeKey = 8 35 AttributeKeyURI AttributeKey = 20 36 ) 37 38 var AttributeKey_name = map[int32]string{ 39 0: "ATTRIBUTE_KEY_UNSPECIFIED", 40 1: "ATTRIBUTE_KEY_NAME", 41 2: "ATTRIBUTE_KEY_META", 42 8: "ATTRIBUTE_KEY_BASE_IMG_URI", 43 20: "ATTRIBUTE_KEY_URI", 44 } 45 46 var AttributeKey_value = map[string]int32{ 47 "ATTRIBUTE_KEY_UNSPECIFIED": 0, 48 "ATTRIBUTE_KEY_NAME": 1, 49 "ATTRIBUTE_KEY_META": 2, 50 "ATTRIBUTE_KEY_BASE_IMG_URI": 8, 51 "ATTRIBUTE_KEY_URI": 20, 52 } 53 54 func (AttributeKey) EnumDescriptor() ([]byte, []int) { 55 return fileDescriptor_478cfab12ea1b00e, []int{0} 56 } 57 58 // EventSent is emitted when tokens are transferred. 59 // 60 // Since: 0.46.0 (finschia) 61 type EventSent struct { 62 // contract id associated with the contract. 63 ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` 64 // address which triggered the send. 65 Operator string `protobuf:"bytes,2,opt,name=operator,proto3" json:"operator,omitempty"` 66 // holder whose tokens were sent. 67 From string `protobuf:"bytes,3,opt,name=from,proto3" json:"from,omitempty"` 68 // recipient of the tokens. 69 To string `protobuf:"bytes,4,opt,name=to,proto3" json:"to,omitempty"` 70 // amount of tokens sent. 71 Amount []Coin `protobuf:"bytes,5,rep,name=amount,proto3" json:"amount"` 72 } 73 74 func (m *EventSent) Reset() { *m = EventSent{} } 75 func (m *EventSent) String() string { return proto.CompactTextString(m) } 76 func (*EventSent) ProtoMessage() {} 77 func (*EventSent) Descriptor() ([]byte, []int) { 78 return fileDescriptor_478cfab12ea1b00e, []int{0} 79 } 80 func (m *EventSent) XXX_Unmarshal(b []byte) error { 81 return m.Unmarshal(b) 82 } 83 func (m *EventSent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 84 if deterministic { 85 return xxx_messageInfo_EventSent.Marshal(b, m, deterministic) 86 } else { 87 b = b[:cap(b)] 88 n, err := m.MarshalToSizedBuffer(b) 89 if err != nil { 90 return nil, err 91 } 92 return b[:n], nil 93 } 94 } 95 func (m *EventSent) XXX_Merge(src proto.Message) { 96 xxx_messageInfo_EventSent.Merge(m, src) 97 } 98 func (m *EventSent) XXX_Size() int { 99 return m.Size() 100 } 101 func (m *EventSent) XXX_DiscardUnknown() { 102 xxx_messageInfo_EventSent.DiscardUnknown(m) 103 } 104 105 var xxx_messageInfo_EventSent proto.InternalMessageInfo 106 107 func (m *EventSent) GetContractId() string { 108 if m != nil { 109 return m.ContractId 110 } 111 return "" 112 } 113 114 func (m *EventSent) GetOperator() string { 115 if m != nil { 116 return m.Operator 117 } 118 return "" 119 } 120 121 func (m *EventSent) GetFrom() string { 122 if m != nil { 123 return m.From 124 } 125 return "" 126 } 127 128 func (m *EventSent) GetTo() string { 129 if m != nil { 130 return m.To 131 } 132 return "" 133 } 134 135 func (m *EventSent) GetAmount() []Coin { 136 if m != nil { 137 return m.Amount 138 } 139 return nil 140 } 141 142 // EventAuthorizedOperator is emitted when a holder authorizes an operator to manipulate its tokens. 143 // 144 // Since: 0.46.0 (finschia) 145 type EventAuthorizedOperator struct { 146 // contract id associated with the contract. 147 ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` 148 // address of a holder which authorized the `operator` address as an operator. 149 Holder string `protobuf:"bytes,2,opt,name=holder,proto3" json:"holder,omitempty"` 150 // address which became an operator of `holder`. 151 Operator string `protobuf:"bytes,3,opt,name=operator,proto3" json:"operator,omitempty"` 152 } 153 154 func (m *EventAuthorizedOperator) Reset() { *m = EventAuthorizedOperator{} } 155 func (m *EventAuthorizedOperator) String() string { return proto.CompactTextString(m) } 156 func (*EventAuthorizedOperator) ProtoMessage() {} 157 func (*EventAuthorizedOperator) Descriptor() ([]byte, []int) { 158 return fileDescriptor_478cfab12ea1b00e, []int{1} 159 } 160 func (m *EventAuthorizedOperator) XXX_Unmarshal(b []byte) error { 161 return m.Unmarshal(b) 162 } 163 func (m *EventAuthorizedOperator) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 164 if deterministic { 165 return xxx_messageInfo_EventAuthorizedOperator.Marshal(b, m, deterministic) 166 } else { 167 b = b[:cap(b)] 168 n, err := m.MarshalToSizedBuffer(b) 169 if err != nil { 170 return nil, err 171 } 172 return b[:n], nil 173 } 174 } 175 func (m *EventAuthorizedOperator) XXX_Merge(src proto.Message) { 176 xxx_messageInfo_EventAuthorizedOperator.Merge(m, src) 177 } 178 func (m *EventAuthorizedOperator) XXX_Size() int { 179 return m.Size() 180 } 181 func (m *EventAuthorizedOperator) XXX_DiscardUnknown() { 182 xxx_messageInfo_EventAuthorizedOperator.DiscardUnknown(m) 183 } 184 185 var xxx_messageInfo_EventAuthorizedOperator proto.InternalMessageInfo 186 187 func (m *EventAuthorizedOperator) GetContractId() string { 188 if m != nil { 189 return m.ContractId 190 } 191 return "" 192 } 193 194 func (m *EventAuthorizedOperator) GetHolder() string { 195 if m != nil { 196 return m.Holder 197 } 198 return "" 199 } 200 201 func (m *EventAuthorizedOperator) GetOperator() string { 202 if m != nil { 203 return m.Operator 204 } 205 return "" 206 } 207 208 // EventRevokedOperator is emitted when an authorization is revoked. 209 // 210 // Since: 0.46.0 (finschia) 211 type EventRevokedOperator struct { 212 // contract id associated with the contract. 213 ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` 214 // address of a holder which revoked the `operator` address as an operator. 215 Holder string `protobuf:"bytes,2,opt,name=holder,proto3" json:"holder,omitempty"` 216 // address which was revoked as an operator of `holder`. 217 Operator string `protobuf:"bytes,3,opt,name=operator,proto3" json:"operator,omitempty"` 218 } 219 220 func (m *EventRevokedOperator) Reset() { *m = EventRevokedOperator{} } 221 func (m *EventRevokedOperator) String() string { return proto.CompactTextString(m) } 222 func (*EventRevokedOperator) ProtoMessage() {} 223 func (*EventRevokedOperator) Descriptor() ([]byte, []int) { 224 return fileDescriptor_478cfab12ea1b00e, []int{2} 225 } 226 func (m *EventRevokedOperator) XXX_Unmarshal(b []byte) error { 227 return m.Unmarshal(b) 228 } 229 func (m *EventRevokedOperator) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 230 if deterministic { 231 return xxx_messageInfo_EventRevokedOperator.Marshal(b, m, deterministic) 232 } else { 233 b = b[:cap(b)] 234 n, err := m.MarshalToSizedBuffer(b) 235 if err != nil { 236 return nil, err 237 } 238 return b[:n], nil 239 } 240 } 241 func (m *EventRevokedOperator) XXX_Merge(src proto.Message) { 242 xxx_messageInfo_EventRevokedOperator.Merge(m, src) 243 } 244 func (m *EventRevokedOperator) XXX_Size() int { 245 return m.Size() 246 } 247 func (m *EventRevokedOperator) XXX_DiscardUnknown() { 248 xxx_messageInfo_EventRevokedOperator.DiscardUnknown(m) 249 } 250 251 var xxx_messageInfo_EventRevokedOperator proto.InternalMessageInfo 252 253 func (m *EventRevokedOperator) GetContractId() string { 254 if m != nil { 255 return m.ContractId 256 } 257 return "" 258 } 259 260 func (m *EventRevokedOperator) GetHolder() string { 261 if m != nil { 262 return m.Holder 263 } 264 return "" 265 } 266 267 func (m *EventRevokedOperator) GetOperator() string { 268 if m != nil { 269 return m.Operator 270 } 271 return "" 272 } 273 274 // EventCreatedContract is emitted when a new contract is created. 275 // 276 // Since: 0.46.0 (finschia) 277 type EventCreatedContract struct { 278 // address which created the contract. 279 Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` 280 // contract id associated with the contract. 281 ContractId string `protobuf:"bytes,2,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` 282 // name of the contract. 283 Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` 284 // metadata of the contract. 285 Meta string `protobuf:"bytes,4,opt,name=meta,proto3" json:"meta,omitempty"` 286 // uri for the contract image stored off chain. 287 Uri string `protobuf:"bytes,5,opt,name=uri,proto3" json:"uri,omitempty"` 288 } 289 290 func (m *EventCreatedContract) Reset() { *m = EventCreatedContract{} } 291 func (m *EventCreatedContract) String() string { return proto.CompactTextString(m) } 292 func (*EventCreatedContract) ProtoMessage() {} 293 func (*EventCreatedContract) Descriptor() ([]byte, []int) { 294 return fileDescriptor_478cfab12ea1b00e, []int{3} 295 } 296 func (m *EventCreatedContract) XXX_Unmarshal(b []byte) error { 297 return m.Unmarshal(b) 298 } 299 func (m *EventCreatedContract) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 300 if deterministic { 301 return xxx_messageInfo_EventCreatedContract.Marshal(b, m, deterministic) 302 } else { 303 b = b[:cap(b)] 304 n, err := m.MarshalToSizedBuffer(b) 305 if err != nil { 306 return nil, err 307 } 308 return b[:n], nil 309 } 310 } 311 func (m *EventCreatedContract) XXX_Merge(src proto.Message) { 312 xxx_messageInfo_EventCreatedContract.Merge(m, src) 313 } 314 func (m *EventCreatedContract) XXX_Size() int { 315 return m.Size() 316 } 317 func (m *EventCreatedContract) XXX_DiscardUnknown() { 318 xxx_messageInfo_EventCreatedContract.DiscardUnknown(m) 319 } 320 321 var xxx_messageInfo_EventCreatedContract proto.InternalMessageInfo 322 323 func (m *EventCreatedContract) GetCreator() string { 324 if m != nil { 325 return m.Creator 326 } 327 return "" 328 } 329 330 func (m *EventCreatedContract) GetContractId() string { 331 if m != nil { 332 return m.ContractId 333 } 334 return "" 335 } 336 337 func (m *EventCreatedContract) GetName() string { 338 if m != nil { 339 return m.Name 340 } 341 return "" 342 } 343 344 func (m *EventCreatedContract) GetMeta() string { 345 if m != nil { 346 return m.Meta 347 } 348 return "" 349 } 350 351 func (m *EventCreatedContract) GetUri() string { 352 if m != nil { 353 return m.Uri 354 } 355 return "" 356 } 357 358 // EventCreatedFTClass is emitted when a new fungible token class is created. 359 // 360 // Since: 0.46.0 (finschia) 361 type EventCreatedFTClass struct { 362 // contract id associated with the contract. 363 ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` 364 // address which triggered the create. 365 Operator string `protobuf:"bytes,2,opt,name=operator,proto3" json:"operator,omitempty"` 366 // token id associated with the token class. 367 TokenId string `protobuf:"bytes,3,opt,name=token_id,json=tokenId,proto3" json:"token_id,omitempty"` 368 // name of the token class. 369 Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"` 370 // metadata of the token class. 371 Meta string `protobuf:"bytes,5,opt,name=meta,proto3" json:"meta,omitempty"` 372 // decimals of the token class. 373 Decimals int32 `protobuf:"varint,6,opt,name=decimals,proto3" json:"decimals,omitempty"` 374 // mintable represents whether the token class is allowed to mint or burn its tokens. 375 Mintable bool `protobuf:"varint,7,opt,name=mintable,proto3" json:"mintable,omitempty"` 376 } 377 378 func (m *EventCreatedFTClass) Reset() { *m = EventCreatedFTClass{} } 379 func (m *EventCreatedFTClass) String() string { return proto.CompactTextString(m) } 380 func (*EventCreatedFTClass) ProtoMessage() {} 381 func (*EventCreatedFTClass) Descriptor() ([]byte, []int) { 382 return fileDescriptor_478cfab12ea1b00e, []int{4} 383 } 384 func (m *EventCreatedFTClass) XXX_Unmarshal(b []byte) error { 385 return m.Unmarshal(b) 386 } 387 func (m *EventCreatedFTClass) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 388 if deterministic { 389 return xxx_messageInfo_EventCreatedFTClass.Marshal(b, m, deterministic) 390 } else { 391 b = b[:cap(b)] 392 n, err := m.MarshalToSizedBuffer(b) 393 if err != nil { 394 return nil, err 395 } 396 return b[:n], nil 397 } 398 } 399 func (m *EventCreatedFTClass) XXX_Merge(src proto.Message) { 400 xxx_messageInfo_EventCreatedFTClass.Merge(m, src) 401 } 402 func (m *EventCreatedFTClass) XXX_Size() int { 403 return m.Size() 404 } 405 func (m *EventCreatedFTClass) XXX_DiscardUnknown() { 406 xxx_messageInfo_EventCreatedFTClass.DiscardUnknown(m) 407 } 408 409 var xxx_messageInfo_EventCreatedFTClass proto.InternalMessageInfo 410 411 func (m *EventCreatedFTClass) GetContractId() string { 412 if m != nil { 413 return m.ContractId 414 } 415 return "" 416 } 417 418 func (m *EventCreatedFTClass) GetOperator() string { 419 if m != nil { 420 return m.Operator 421 } 422 return "" 423 } 424 425 func (m *EventCreatedFTClass) GetTokenId() string { 426 if m != nil { 427 return m.TokenId 428 } 429 return "" 430 } 431 432 func (m *EventCreatedFTClass) GetName() string { 433 if m != nil { 434 return m.Name 435 } 436 return "" 437 } 438 439 func (m *EventCreatedFTClass) GetMeta() string { 440 if m != nil { 441 return m.Meta 442 } 443 return "" 444 } 445 446 func (m *EventCreatedFTClass) GetDecimals() int32 { 447 if m != nil { 448 return m.Decimals 449 } 450 return 0 451 } 452 453 func (m *EventCreatedFTClass) GetMintable() bool { 454 if m != nil { 455 return m.Mintable 456 } 457 return false 458 } 459 460 // EventCreatedNFTClass is emitted when a new non-fungible token class is created. 461 // 462 // Since: 0.46.0 (finschia) 463 type EventCreatedNFTClass struct { 464 // contract id associated with the contract. 465 ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` 466 // address which triggered the create. 467 Operator string `protobuf:"bytes,2,opt,name=operator,proto3" json:"operator,omitempty"` 468 // token type associated with the token class. 469 // refer to TokenType for the definition. 470 TokenType string `protobuf:"bytes,3,opt,name=token_type,json=tokenType,proto3" json:"token_type,omitempty"` 471 // name of the token class. 472 Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"` 473 // metadata of the token class. 474 Meta string `protobuf:"bytes,5,opt,name=meta,proto3" json:"meta,omitempty"` 475 } 476 477 func (m *EventCreatedNFTClass) Reset() { *m = EventCreatedNFTClass{} } 478 func (m *EventCreatedNFTClass) String() string { return proto.CompactTextString(m) } 479 func (*EventCreatedNFTClass) ProtoMessage() {} 480 func (*EventCreatedNFTClass) Descriptor() ([]byte, []int) { 481 return fileDescriptor_478cfab12ea1b00e, []int{5} 482 } 483 func (m *EventCreatedNFTClass) XXX_Unmarshal(b []byte) error { 484 return m.Unmarshal(b) 485 } 486 func (m *EventCreatedNFTClass) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 487 if deterministic { 488 return xxx_messageInfo_EventCreatedNFTClass.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 *EventCreatedNFTClass) XXX_Merge(src proto.Message) { 499 xxx_messageInfo_EventCreatedNFTClass.Merge(m, src) 500 } 501 func (m *EventCreatedNFTClass) XXX_Size() int { 502 return m.Size() 503 } 504 func (m *EventCreatedNFTClass) XXX_DiscardUnknown() { 505 xxx_messageInfo_EventCreatedNFTClass.DiscardUnknown(m) 506 } 507 508 var xxx_messageInfo_EventCreatedNFTClass proto.InternalMessageInfo 509 510 func (m *EventCreatedNFTClass) GetContractId() string { 511 if m != nil { 512 return m.ContractId 513 } 514 return "" 515 } 516 517 func (m *EventCreatedNFTClass) GetOperator() string { 518 if m != nil { 519 return m.Operator 520 } 521 return "" 522 } 523 524 func (m *EventCreatedNFTClass) GetTokenType() string { 525 if m != nil { 526 return m.TokenType 527 } 528 return "" 529 } 530 531 func (m *EventCreatedNFTClass) GetName() string { 532 if m != nil { 533 return m.Name 534 } 535 return "" 536 } 537 538 func (m *EventCreatedNFTClass) GetMeta() string { 539 if m != nil { 540 return m.Meta 541 } 542 return "" 543 } 544 545 // EventGranted is emitted when a granter grants its permission to a grantee. 546 // 547 // Info: `granter` would be empty if the permission is granted by an issuance. 548 // 549 // Since: 0.46.0 (finschia) 550 type EventGranted struct { 551 // contract id associated with the contract. 552 ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` 553 // address of the granter which grants the permission. 554 Granter string `protobuf:"bytes,2,opt,name=granter,proto3" json:"granter,omitempty"` 555 // address of the grantee. 556 Grantee string `protobuf:"bytes,3,opt,name=grantee,proto3" json:"grantee,omitempty"` 557 // permission on the contract. 558 Permission Permission `protobuf:"varint,4,opt,name=permission,proto3,enum=lbm.collection.v1.Permission" json:"permission,omitempty"` 559 } 560 561 func (m *EventGranted) Reset() { *m = EventGranted{} } 562 func (m *EventGranted) String() string { return proto.CompactTextString(m) } 563 func (*EventGranted) ProtoMessage() {} 564 func (*EventGranted) Descriptor() ([]byte, []int) { 565 return fileDescriptor_478cfab12ea1b00e, []int{6} 566 } 567 func (m *EventGranted) XXX_Unmarshal(b []byte) error { 568 return m.Unmarshal(b) 569 } 570 func (m *EventGranted) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 571 if deterministic { 572 return xxx_messageInfo_EventGranted.Marshal(b, m, deterministic) 573 } else { 574 b = b[:cap(b)] 575 n, err := m.MarshalToSizedBuffer(b) 576 if err != nil { 577 return nil, err 578 } 579 return b[:n], nil 580 } 581 } 582 func (m *EventGranted) XXX_Merge(src proto.Message) { 583 xxx_messageInfo_EventGranted.Merge(m, src) 584 } 585 func (m *EventGranted) XXX_Size() int { 586 return m.Size() 587 } 588 func (m *EventGranted) XXX_DiscardUnknown() { 589 xxx_messageInfo_EventGranted.DiscardUnknown(m) 590 } 591 592 var xxx_messageInfo_EventGranted proto.InternalMessageInfo 593 594 func (m *EventGranted) GetContractId() string { 595 if m != nil { 596 return m.ContractId 597 } 598 return "" 599 } 600 601 func (m *EventGranted) GetGranter() string { 602 if m != nil { 603 return m.Granter 604 } 605 return "" 606 } 607 608 func (m *EventGranted) GetGrantee() string { 609 if m != nil { 610 return m.Grantee 611 } 612 return "" 613 } 614 615 func (m *EventGranted) GetPermission() Permission { 616 if m != nil { 617 return m.Permission 618 } 619 return PermissionUnspecified 620 } 621 622 // EventRenounced is emitted when a grantee renounced its permission. 623 // 624 // Since: 0.46.0 (finschia) 625 type EventRenounced struct { 626 // contract id associated with the contract. 627 ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` 628 // address of the grantee which abandons its grant. 629 Grantee string `protobuf:"bytes,2,opt,name=grantee,proto3" json:"grantee,omitempty"` 630 // permission on the contract. 631 Permission Permission `protobuf:"varint,3,opt,name=permission,proto3,enum=lbm.collection.v1.Permission" json:"permission,omitempty"` 632 } 633 634 func (m *EventRenounced) Reset() { *m = EventRenounced{} } 635 func (m *EventRenounced) String() string { return proto.CompactTextString(m) } 636 func (*EventRenounced) ProtoMessage() {} 637 func (*EventRenounced) Descriptor() ([]byte, []int) { 638 return fileDescriptor_478cfab12ea1b00e, []int{7} 639 } 640 func (m *EventRenounced) XXX_Unmarshal(b []byte) error { 641 return m.Unmarshal(b) 642 } 643 func (m *EventRenounced) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 644 if deterministic { 645 return xxx_messageInfo_EventRenounced.Marshal(b, m, deterministic) 646 } else { 647 b = b[:cap(b)] 648 n, err := m.MarshalToSizedBuffer(b) 649 if err != nil { 650 return nil, err 651 } 652 return b[:n], nil 653 } 654 } 655 func (m *EventRenounced) XXX_Merge(src proto.Message) { 656 xxx_messageInfo_EventRenounced.Merge(m, src) 657 } 658 func (m *EventRenounced) XXX_Size() int { 659 return m.Size() 660 } 661 func (m *EventRenounced) XXX_DiscardUnknown() { 662 xxx_messageInfo_EventRenounced.DiscardUnknown(m) 663 } 664 665 var xxx_messageInfo_EventRenounced proto.InternalMessageInfo 666 667 func (m *EventRenounced) GetContractId() string { 668 if m != nil { 669 return m.ContractId 670 } 671 return "" 672 } 673 674 func (m *EventRenounced) GetGrantee() string { 675 if m != nil { 676 return m.Grantee 677 } 678 return "" 679 } 680 681 func (m *EventRenounced) GetPermission() Permission { 682 if m != nil { 683 return m.Permission 684 } 685 return PermissionUnspecified 686 } 687 688 // EventMintedFT is emitted when fungible tokens are minted. 689 // 690 // Since: 0.46.0 (finschia) 691 type EventMintedFT struct { 692 // contract id associated with the contract. 693 ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` 694 // address which triggered the mint. 695 Operator string `protobuf:"bytes,2,opt,name=operator,proto3" json:"operator,omitempty"` 696 // recipient of the tokens. 697 To string `protobuf:"bytes,3,opt,name=to,proto3" json:"to,omitempty"` 698 // amount of tokens minted. 699 Amount []Coin `protobuf:"bytes,4,rep,name=amount,proto3" json:"amount"` 700 } 701 702 func (m *EventMintedFT) Reset() { *m = EventMintedFT{} } 703 func (m *EventMintedFT) String() string { return proto.CompactTextString(m) } 704 func (*EventMintedFT) ProtoMessage() {} 705 func (*EventMintedFT) Descriptor() ([]byte, []int) { 706 return fileDescriptor_478cfab12ea1b00e, []int{8} 707 } 708 func (m *EventMintedFT) XXX_Unmarshal(b []byte) error { 709 return m.Unmarshal(b) 710 } 711 func (m *EventMintedFT) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 712 if deterministic { 713 return xxx_messageInfo_EventMintedFT.Marshal(b, m, deterministic) 714 } else { 715 b = b[:cap(b)] 716 n, err := m.MarshalToSizedBuffer(b) 717 if err != nil { 718 return nil, err 719 } 720 return b[:n], nil 721 } 722 } 723 func (m *EventMintedFT) XXX_Merge(src proto.Message) { 724 xxx_messageInfo_EventMintedFT.Merge(m, src) 725 } 726 func (m *EventMintedFT) XXX_Size() int { 727 return m.Size() 728 } 729 func (m *EventMintedFT) XXX_DiscardUnknown() { 730 xxx_messageInfo_EventMintedFT.DiscardUnknown(m) 731 } 732 733 var xxx_messageInfo_EventMintedFT proto.InternalMessageInfo 734 735 func (m *EventMintedFT) GetContractId() string { 736 if m != nil { 737 return m.ContractId 738 } 739 return "" 740 } 741 742 func (m *EventMintedFT) GetOperator() string { 743 if m != nil { 744 return m.Operator 745 } 746 return "" 747 } 748 749 func (m *EventMintedFT) GetTo() string { 750 if m != nil { 751 return m.To 752 } 753 return "" 754 } 755 756 func (m *EventMintedFT) GetAmount() []Coin { 757 if m != nil { 758 return m.Amount 759 } 760 return nil 761 } 762 763 // EventMintedNFT is emitted when non-fungible tokens are minted. 764 // 765 // Since: 0.46.0 (finschia) 766 type EventMintedNFT struct { 767 // contract id associated with the contract. 768 ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` 769 // address which triggered the mint. 770 Operator string `protobuf:"bytes,2,opt,name=operator,proto3" json:"operator,omitempty"` 771 // recipient of the tokens. 772 To string `protobuf:"bytes,3,opt,name=to,proto3" json:"to,omitempty"` 773 // tokens minted. 774 Tokens []NFT `protobuf:"bytes,4,rep,name=tokens,proto3" json:"tokens"` 775 } 776 777 func (m *EventMintedNFT) Reset() { *m = EventMintedNFT{} } 778 func (m *EventMintedNFT) String() string { return proto.CompactTextString(m) } 779 func (*EventMintedNFT) ProtoMessage() {} 780 func (*EventMintedNFT) Descriptor() ([]byte, []int) { 781 return fileDescriptor_478cfab12ea1b00e, []int{9} 782 } 783 func (m *EventMintedNFT) XXX_Unmarshal(b []byte) error { 784 return m.Unmarshal(b) 785 } 786 func (m *EventMintedNFT) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 787 if deterministic { 788 return xxx_messageInfo_EventMintedNFT.Marshal(b, m, deterministic) 789 } else { 790 b = b[:cap(b)] 791 n, err := m.MarshalToSizedBuffer(b) 792 if err != nil { 793 return nil, err 794 } 795 return b[:n], nil 796 } 797 } 798 func (m *EventMintedNFT) XXX_Merge(src proto.Message) { 799 xxx_messageInfo_EventMintedNFT.Merge(m, src) 800 } 801 func (m *EventMintedNFT) XXX_Size() int { 802 return m.Size() 803 } 804 func (m *EventMintedNFT) XXX_DiscardUnknown() { 805 xxx_messageInfo_EventMintedNFT.DiscardUnknown(m) 806 } 807 808 var xxx_messageInfo_EventMintedNFT proto.InternalMessageInfo 809 810 func (m *EventMintedNFT) GetContractId() string { 811 if m != nil { 812 return m.ContractId 813 } 814 return "" 815 } 816 817 func (m *EventMintedNFT) GetOperator() string { 818 if m != nil { 819 return m.Operator 820 } 821 return "" 822 } 823 824 func (m *EventMintedNFT) GetTo() string { 825 if m != nil { 826 return m.To 827 } 828 return "" 829 } 830 831 func (m *EventMintedNFT) GetTokens() []NFT { 832 if m != nil { 833 return m.Tokens 834 } 835 return nil 836 } 837 838 // EventBurned is emitted when tokens are burnt. 839 // 840 // Since: 0.46.0 (finschia) 841 type EventBurned struct { 842 // contract id associated with the contract. 843 ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` 844 // address which triggered the burn. 845 Operator string `protobuf:"bytes,2,opt,name=operator,proto3" json:"operator,omitempty"` 846 // holder whose tokens were burned. 847 From string `protobuf:"bytes,3,opt,name=from,proto3" json:"from,omitempty"` 848 // amount of tokens burned. 849 Amount []Coin `protobuf:"bytes,4,rep,name=amount,proto3" json:"amount"` 850 } 851 852 func (m *EventBurned) Reset() { *m = EventBurned{} } 853 func (m *EventBurned) String() string { return proto.CompactTextString(m) } 854 func (*EventBurned) ProtoMessage() {} 855 func (*EventBurned) Descriptor() ([]byte, []int) { 856 return fileDescriptor_478cfab12ea1b00e, []int{10} 857 } 858 func (m *EventBurned) XXX_Unmarshal(b []byte) error { 859 return m.Unmarshal(b) 860 } 861 func (m *EventBurned) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 862 if deterministic { 863 return xxx_messageInfo_EventBurned.Marshal(b, m, deterministic) 864 } else { 865 b = b[:cap(b)] 866 n, err := m.MarshalToSizedBuffer(b) 867 if err != nil { 868 return nil, err 869 } 870 return b[:n], nil 871 } 872 } 873 func (m *EventBurned) XXX_Merge(src proto.Message) { 874 xxx_messageInfo_EventBurned.Merge(m, src) 875 } 876 func (m *EventBurned) XXX_Size() int { 877 return m.Size() 878 } 879 func (m *EventBurned) XXX_DiscardUnknown() { 880 xxx_messageInfo_EventBurned.DiscardUnknown(m) 881 } 882 883 var xxx_messageInfo_EventBurned proto.InternalMessageInfo 884 885 func (m *EventBurned) GetContractId() string { 886 if m != nil { 887 return m.ContractId 888 } 889 return "" 890 } 891 892 func (m *EventBurned) GetOperator() string { 893 if m != nil { 894 return m.Operator 895 } 896 return "" 897 } 898 899 func (m *EventBurned) GetFrom() string { 900 if m != nil { 901 return m.From 902 } 903 return "" 904 } 905 906 func (m *EventBurned) GetAmount() []Coin { 907 if m != nil { 908 return m.Amount 909 } 910 return nil 911 } 912 913 // EventModifiedContract is emitted when the information of a contract is modified. 914 // 915 // Since: 0.46.0 (finschia) 916 type EventModifiedContract struct { 917 // contract id associated with the contract. 918 ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` 919 // address which triggered the modify. 920 Operator string `protobuf:"bytes,2,opt,name=operator,proto3" json:"operator,omitempty"` 921 // changes of the attributes applied. 922 // possible attribute keys are same as those of MsgModify. 923 // deprecated "base_img_uri" has been replaced by "uri" in the events. 924 Changes []Attribute `protobuf:"bytes,3,rep,name=changes,proto3" json:"changes"` 925 } 926 927 func (m *EventModifiedContract) Reset() { *m = EventModifiedContract{} } 928 func (m *EventModifiedContract) String() string { return proto.CompactTextString(m) } 929 func (*EventModifiedContract) ProtoMessage() {} 930 func (*EventModifiedContract) Descriptor() ([]byte, []int) { 931 return fileDescriptor_478cfab12ea1b00e, []int{11} 932 } 933 func (m *EventModifiedContract) XXX_Unmarshal(b []byte) error { 934 return m.Unmarshal(b) 935 } 936 func (m *EventModifiedContract) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 937 if deterministic { 938 return xxx_messageInfo_EventModifiedContract.Marshal(b, m, deterministic) 939 } else { 940 b = b[:cap(b)] 941 n, err := m.MarshalToSizedBuffer(b) 942 if err != nil { 943 return nil, err 944 } 945 return b[:n], nil 946 } 947 } 948 func (m *EventModifiedContract) XXX_Merge(src proto.Message) { 949 xxx_messageInfo_EventModifiedContract.Merge(m, src) 950 } 951 func (m *EventModifiedContract) XXX_Size() int { 952 return m.Size() 953 } 954 func (m *EventModifiedContract) XXX_DiscardUnknown() { 955 xxx_messageInfo_EventModifiedContract.DiscardUnknown(m) 956 } 957 958 var xxx_messageInfo_EventModifiedContract proto.InternalMessageInfo 959 960 func (m *EventModifiedContract) GetContractId() string { 961 if m != nil { 962 return m.ContractId 963 } 964 return "" 965 } 966 967 func (m *EventModifiedContract) GetOperator() string { 968 if m != nil { 969 return m.Operator 970 } 971 return "" 972 } 973 974 func (m *EventModifiedContract) GetChanges() []Attribute { 975 if m != nil { 976 return m.Changes 977 } 978 return nil 979 } 980 981 // EventModifiedTokenClass is emitted when the information of a token class is modified. 982 // 983 // Since: 0.46.0 (finschia) 984 type EventModifiedTokenClass struct { 985 // contract id associated with the contract. 986 ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` 987 // address which triggered the modify. 988 Operator string `protobuf:"bytes,2,opt,name=operator,proto3" json:"operator,omitempty"` 989 // token type associated with the token class. 990 // refer to TokenType for the definition. 991 TokenType string `protobuf:"bytes,3,opt,name=token_type,json=tokenType,proto3" json:"token_type,omitempty"` 992 // changes of the attributes applied. 993 // possible attribute keys are same as those of MsgModify. 994 Changes []Attribute `protobuf:"bytes,4,rep,name=changes,proto3" json:"changes"` 995 // type name of the token class. 996 TypeName string `protobuf:"bytes,5,opt,name=type_name,json=typeName,proto3" json:"type_name,omitempty"` 997 } 998 999 func (m *EventModifiedTokenClass) Reset() { *m = EventModifiedTokenClass{} } 1000 func (m *EventModifiedTokenClass) String() string { return proto.CompactTextString(m) } 1001 func (*EventModifiedTokenClass) ProtoMessage() {} 1002 func (*EventModifiedTokenClass) Descriptor() ([]byte, []int) { 1003 return fileDescriptor_478cfab12ea1b00e, []int{12} 1004 } 1005 func (m *EventModifiedTokenClass) XXX_Unmarshal(b []byte) error { 1006 return m.Unmarshal(b) 1007 } 1008 func (m *EventModifiedTokenClass) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1009 if deterministic { 1010 return xxx_messageInfo_EventModifiedTokenClass.Marshal(b, m, deterministic) 1011 } else { 1012 b = b[:cap(b)] 1013 n, err := m.MarshalToSizedBuffer(b) 1014 if err != nil { 1015 return nil, err 1016 } 1017 return b[:n], nil 1018 } 1019 } 1020 func (m *EventModifiedTokenClass) XXX_Merge(src proto.Message) { 1021 xxx_messageInfo_EventModifiedTokenClass.Merge(m, src) 1022 } 1023 func (m *EventModifiedTokenClass) XXX_Size() int { 1024 return m.Size() 1025 } 1026 func (m *EventModifiedTokenClass) XXX_DiscardUnknown() { 1027 xxx_messageInfo_EventModifiedTokenClass.DiscardUnknown(m) 1028 } 1029 1030 var xxx_messageInfo_EventModifiedTokenClass proto.InternalMessageInfo 1031 1032 func (m *EventModifiedTokenClass) GetContractId() string { 1033 if m != nil { 1034 return m.ContractId 1035 } 1036 return "" 1037 } 1038 1039 func (m *EventModifiedTokenClass) GetOperator() string { 1040 if m != nil { 1041 return m.Operator 1042 } 1043 return "" 1044 } 1045 1046 func (m *EventModifiedTokenClass) GetTokenType() string { 1047 if m != nil { 1048 return m.TokenType 1049 } 1050 return "" 1051 } 1052 1053 func (m *EventModifiedTokenClass) GetChanges() []Attribute { 1054 if m != nil { 1055 return m.Changes 1056 } 1057 return nil 1058 } 1059 1060 func (m *EventModifiedTokenClass) GetTypeName() string { 1061 if m != nil { 1062 return m.TypeName 1063 } 1064 return "" 1065 } 1066 1067 // EventModifiedNFT is emitted when the information of a non-fungible token is modified. 1068 // 1069 // Since: 0.46.0 (finschia) 1070 type EventModifiedNFT struct { 1071 // contract id associated with the contract. 1072 ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` 1073 // address which triggered the modify. 1074 Operator string `protobuf:"bytes,2,opt,name=operator,proto3" json:"operator,omitempty"` 1075 // token id associated with the non-fungible token. 1076 TokenId string `protobuf:"bytes,3,opt,name=token_id,json=tokenId,proto3" json:"token_id,omitempty"` 1077 // changes of the attributes applied. 1078 // possible attribute keys are same as those of MsgModify. 1079 Changes []Attribute `protobuf:"bytes,4,rep,name=changes,proto3" json:"changes"` 1080 } 1081 1082 func (m *EventModifiedNFT) Reset() { *m = EventModifiedNFT{} } 1083 func (m *EventModifiedNFT) String() string { return proto.CompactTextString(m) } 1084 func (*EventModifiedNFT) ProtoMessage() {} 1085 func (*EventModifiedNFT) Descriptor() ([]byte, []int) { 1086 return fileDescriptor_478cfab12ea1b00e, []int{13} 1087 } 1088 func (m *EventModifiedNFT) XXX_Unmarshal(b []byte) error { 1089 return m.Unmarshal(b) 1090 } 1091 func (m *EventModifiedNFT) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1092 if deterministic { 1093 return xxx_messageInfo_EventModifiedNFT.Marshal(b, m, deterministic) 1094 } else { 1095 b = b[:cap(b)] 1096 n, err := m.MarshalToSizedBuffer(b) 1097 if err != nil { 1098 return nil, err 1099 } 1100 return b[:n], nil 1101 } 1102 } 1103 func (m *EventModifiedNFT) XXX_Merge(src proto.Message) { 1104 xxx_messageInfo_EventModifiedNFT.Merge(m, src) 1105 } 1106 func (m *EventModifiedNFT) XXX_Size() int { 1107 return m.Size() 1108 } 1109 func (m *EventModifiedNFT) XXX_DiscardUnknown() { 1110 xxx_messageInfo_EventModifiedNFT.DiscardUnknown(m) 1111 } 1112 1113 var xxx_messageInfo_EventModifiedNFT proto.InternalMessageInfo 1114 1115 func (m *EventModifiedNFT) GetContractId() string { 1116 if m != nil { 1117 return m.ContractId 1118 } 1119 return "" 1120 } 1121 1122 func (m *EventModifiedNFT) GetOperator() string { 1123 if m != nil { 1124 return m.Operator 1125 } 1126 return "" 1127 } 1128 1129 func (m *EventModifiedNFT) GetTokenId() string { 1130 if m != nil { 1131 return m.TokenId 1132 } 1133 return "" 1134 } 1135 1136 func (m *EventModifiedNFT) GetChanges() []Attribute { 1137 if m != nil { 1138 return m.Changes 1139 } 1140 return nil 1141 } 1142 1143 // EventAttached is emitted when a token is attached to another. 1144 // 1145 // Since: 0.46.0 (finschia) 1146 type EventAttached struct { 1147 // contract id associated with the contract. 1148 ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` 1149 // address which triggered the attach. 1150 Operator string `protobuf:"bytes,2,opt,name=operator,proto3" json:"operator,omitempty"` 1151 // address which holds the tokens. 1152 Holder string `protobuf:"bytes,3,opt,name=holder,proto3" json:"holder,omitempty"` 1153 // subject of the attach. 1154 Subject string `protobuf:"bytes,4,opt,name=subject,proto3" json:"subject,omitempty"` 1155 // target of the attach. 1156 Target string `protobuf:"bytes,5,opt,name=target,proto3" json:"target,omitempty"` 1157 } 1158 1159 func (m *EventAttached) Reset() { *m = EventAttached{} } 1160 func (m *EventAttached) String() string { return proto.CompactTextString(m) } 1161 func (*EventAttached) ProtoMessage() {} 1162 func (*EventAttached) Descriptor() ([]byte, []int) { 1163 return fileDescriptor_478cfab12ea1b00e, []int{14} 1164 } 1165 func (m *EventAttached) XXX_Unmarshal(b []byte) error { 1166 return m.Unmarshal(b) 1167 } 1168 func (m *EventAttached) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1169 if deterministic { 1170 return xxx_messageInfo_EventAttached.Marshal(b, m, deterministic) 1171 } else { 1172 b = b[:cap(b)] 1173 n, err := m.MarshalToSizedBuffer(b) 1174 if err != nil { 1175 return nil, err 1176 } 1177 return b[:n], nil 1178 } 1179 } 1180 func (m *EventAttached) XXX_Merge(src proto.Message) { 1181 xxx_messageInfo_EventAttached.Merge(m, src) 1182 } 1183 func (m *EventAttached) XXX_Size() int { 1184 return m.Size() 1185 } 1186 func (m *EventAttached) XXX_DiscardUnknown() { 1187 xxx_messageInfo_EventAttached.DiscardUnknown(m) 1188 } 1189 1190 var xxx_messageInfo_EventAttached proto.InternalMessageInfo 1191 1192 func (m *EventAttached) GetContractId() string { 1193 if m != nil { 1194 return m.ContractId 1195 } 1196 return "" 1197 } 1198 1199 func (m *EventAttached) GetOperator() string { 1200 if m != nil { 1201 return m.Operator 1202 } 1203 return "" 1204 } 1205 1206 func (m *EventAttached) GetHolder() string { 1207 if m != nil { 1208 return m.Holder 1209 } 1210 return "" 1211 } 1212 1213 func (m *EventAttached) GetSubject() string { 1214 if m != nil { 1215 return m.Subject 1216 } 1217 return "" 1218 } 1219 1220 func (m *EventAttached) GetTarget() string { 1221 if m != nil { 1222 return m.Target 1223 } 1224 return "" 1225 } 1226 1227 // EventDetached is emitted when a token is detached from its parent. 1228 // 1229 // Since: 0.46.0 (finschia) 1230 type EventDetached struct { 1231 // contract id associated with the contract. 1232 ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` 1233 // address which triggered the detach. 1234 Operator string `protobuf:"bytes,2,opt,name=operator,proto3" json:"operator,omitempty"` 1235 // address which holds the token. 1236 Holder string `protobuf:"bytes,3,opt,name=holder,proto3" json:"holder,omitempty"` 1237 // token being detached. 1238 Subject string `protobuf:"bytes,4,opt,name=subject,proto3" json:"subject,omitempty"` 1239 // parent token before the detach. 1240 PreviousParent string `protobuf:"bytes,5,opt,name=previous_parent,json=previousParent,proto3" json:"previous_parent,omitempty"` 1241 } 1242 1243 func (m *EventDetached) Reset() { *m = EventDetached{} } 1244 func (m *EventDetached) String() string { return proto.CompactTextString(m) } 1245 func (*EventDetached) ProtoMessage() {} 1246 func (*EventDetached) Descriptor() ([]byte, []int) { 1247 return fileDescriptor_478cfab12ea1b00e, []int{15} 1248 } 1249 func (m *EventDetached) XXX_Unmarshal(b []byte) error { 1250 return m.Unmarshal(b) 1251 } 1252 func (m *EventDetached) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1253 if deterministic { 1254 return xxx_messageInfo_EventDetached.Marshal(b, m, deterministic) 1255 } else { 1256 b = b[:cap(b)] 1257 n, err := m.MarshalToSizedBuffer(b) 1258 if err != nil { 1259 return nil, err 1260 } 1261 return b[:n], nil 1262 } 1263 } 1264 func (m *EventDetached) XXX_Merge(src proto.Message) { 1265 xxx_messageInfo_EventDetached.Merge(m, src) 1266 } 1267 func (m *EventDetached) XXX_Size() int { 1268 return m.Size() 1269 } 1270 func (m *EventDetached) XXX_DiscardUnknown() { 1271 xxx_messageInfo_EventDetached.DiscardUnknown(m) 1272 } 1273 1274 var xxx_messageInfo_EventDetached proto.InternalMessageInfo 1275 1276 func (m *EventDetached) GetContractId() string { 1277 if m != nil { 1278 return m.ContractId 1279 } 1280 return "" 1281 } 1282 1283 func (m *EventDetached) GetOperator() string { 1284 if m != nil { 1285 return m.Operator 1286 } 1287 return "" 1288 } 1289 1290 func (m *EventDetached) GetHolder() string { 1291 if m != nil { 1292 return m.Holder 1293 } 1294 return "" 1295 } 1296 1297 func (m *EventDetached) GetSubject() string { 1298 if m != nil { 1299 return m.Subject 1300 } 1301 return "" 1302 } 1303 1304 func (m *EventDetached) GetPreviousParent() string { 1305 if m != nil { 1306 return m.PreviousParent 1307 } 1308 return "" 1309 } 1310 1311 // EventOwnerChanged is emitted when the owner of token is changed by operation applied to its ancestor. 1312 // 1313 // Since: 0.46.0 (finschia) 1314 type EventOwnerChanged struct { 1315 // contract id associated with the contract. 1316 ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` 1317 // token id associated with the token. 1318 TokenId string `protobuf:"bytes,2,opt,name=token_id,json=tokenId,proto3" json:"token_id,omitempty"` 1319 // address of the previous owner before the change. 1320 From string `protobuf:"bytes,3,opt,name=from,proto3" json:"from,omitempty"` 1321 // address of the new owner. 1322 To string `protobuf:"bytes,4,opt,name=to,proto3" json:"to,omitempty"` 1323 } 1324 1325 func (m *EventOwnerChanged) Reset() { *m = EventOwnerChanged{} } 1326 func (m *EventOwnerChanged) String() string { return proto.CompactTextString(m) } 1327 func (*EventOwnerChanged) ProtoMessage() {} 1328 func (*EventOwnerChanged) Descriptor() ([]byte, []int) { 1329 return fileDescriptor_478cfab12ea1b00e, []int{16} 1330 } 1331 func (m *EventOwnerChanged) XXX_Unmarshal(b []byte) error { 1332 return m.Unmarshal(b) 1333 } 1334 func (m *EventOwnerChanged) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1335 if deterministic { 1336 return xxx_messageInfo_EventOwnerChanged.Marshal(b, m, deterministic) 1337 } else { 1338 b = b[:cap(b)] 1339 n, err := m.MarshalToSizedBuffer(b) 1340 if err != nil { 1341 return nil, err 1342 } 1343 return b[:n], nil 1344 } 1345 } 1346 func (m *EventOwnerChanged) XXX_Merge(src proto.Message) { 1347 xxx_messageInfo_EventOwnerChanged.Merge(m, src) 1348 } 1349 func (m *EventOwnerChanged) XXX_Size() int { 1350 return m.Size() 1351 } 1352 func (m *EventOwnerChanged) XXX_DiscardUnknown() { 1353 xxx_messageInfo_EventOwnerChanged.DiscardUnknown(m) 1354 } 1355 1356 var xxx_messageInfo_EventOwnerChanged proto.InternalMessageInfo 1357 1358 func (m *EventOwnerChanged) GetContractId() string { 1359 if m != nil { 1360 return m.ContractId 1361 } 1362 return "" 1363 } 1364 1365 func (m *EventOwnerChanged) GetTokenId() string { 1366 if m != nil { 1367 return m.TokenId 1368 } 1369 return "" 1370 } 1371 1372 func (m *EventOwnerChanged) GetFrom() string { 1373 if m != nil { 1374 return m.From 1375 } 1376 return "" 1377 } 1378 1379 func (m *EventOwnerChanged) GetTo() string { 1380 if m != nil { 1381 return m.To 1382 } 1383 return "" 1384 } 1385 1386 // EventRootChanged is emitted when the root of token is changed by operation applied to its ancestor. 1387 // 1388 // Since: 0.46.0 (finschia) 1389 type EventRootChanged struct { 1390 // contract id associated with the contract. 1391 ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` 1392 // token id associated with the token. 1393 TokenId string `protobuf:"bytes,2,opt,name=token_id,json=tokenId,proto3" json:"token_id,omitempty"` 1394 // token id of the previous root before the change. 1395 From string `protobuf:"bytes,3,opt,name=from,proto3" json:"from,omitempty"` 1396 // token id of the new root. 1397 To string `protobuf:"bytes,4,opt,name=to,proto3" json:"to,omitempty"` 1398 } 1399 1400 func (m *EventRootChanged) Reset() { *m = EventRootChanged{} } 1401 func (m *EventRootChanged) String() string { return proto.CompactTextString(m) } 1402 func (*EventRootChanged) ProtoMessage() {} 1403 func (*EventRootChanged) Descriptor() ([]byte, []int) { 1404 return fileDescriptor_478cfab12ea1b00e, []int{17} 1405 } 1406 func (m *EventRootChanged) XXX_Unmarshal(b []byte) error { 1407 return m.Unmarshal(b) 1408 } 1409 func (m *EventRootChanged) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1410 if deterministic { 1411 return xxx_messageInfo_EventRootChanged.Marshal(b, m, deterministic) 1412 } else { 1413 b = b[:cap(b)] 1414 n, err := m.MarshalToSizedBuffer(b) 1415 if err != nil { 1416 return nil, err 1417 } 1418 return b[:n], nil 1419 } 1420 } 1421 func (m *EventRootChanged) XXX_Merge(src proto.Message) { 1422 xxx_messageInfo_EventRootChanged.Merge(m, src) 1423 } 1424 func (m *EventRootChanged) XXX_Size() int { 1425 return m.Size() 1426 } 1427 func (m *EventRootChanged) XXX_DiscardUnknown() { 1428 xxx_messageInfo_EventRootChanged.DiscardUnknown(m) 1429 } 1430 1431 var xxx_messageInfo_EventRootChanged proto.InternalMessageInfo 1432 1433 func (m *EventRootChanged) GetContractId() string { 1434 if m != nil { 1435 return m.ContractId 1436 } 1437 return "" 1438 } 1439 1440 func (m *EventRootChanged) GetTokenId() string { 1441 if m != nil { 1442 return m.TokenId 1443 } 1444 return "" 1445 } 1446 1447 func (m *EventRootChanged) GetFrom() string { 1448 if m != nil { 1449 return m.From 1450 } 1451 return "" 1452 } 1453 1454 func (m *EventRootChanged) GetTo() string { 1455 if m != nil { 1456 return m.To 1457 } 1458 return "" 1459 } 1460 1461 func init() { 1462 proto.RegisterEnum("lbm.collection.v1.AttributeKey", AttributeKey_name, AttributeKey_value) 1463 proto.RegisterType((*EventSent)(nil), "lbm.collection.v1.EventSent") 1464 proto.RegisterType((*EventAuthorizedOperator)(nil), "lbm.collection.v1.EventAuthorizedOperator") 1465 proto.RegisterType((*EventRevokedOperator)(nil), "lbm.collection.v1.EventRevokedOperator") 1466 proto.RegisterType((*EventCreatedContract)(nil), "lbm.collection.v1.EventCreatedContract") 1467 proto.RegisterType((*EventCreatedFTClass)(nil), "lbm.collection.v1.EventCreatedFTClass") 1468 proto.RegisterType((*EventCreatedNFTClass)(nil), "lbm.collection.v1.EventCreatedNFTClass") 1469 proto.RegisterType((*EventGranted)(nil), "lbm.collection.v1.EventGranted") 1470 proto.RegisterType((*EventRenounced)(nil), "lbm.collection.v1.EventRenounced") 1471 proto.RegisterType((*EventMintedFT)(nil), "lbm.collection.v1.EventMintedFT") 1472 proto.RegisterType((*EventMintedNFT)(nil), "lbm.collection.v1.EventMintedNFT") 1473 proto.RegisterType((*EventBurned)(nil), "lbm.collection.v1.EventBurned") 1474 proto.RegisterType((*EventModifiedContract)(nil), "lbm.collection.v1.EventModifiedContract") 1475 proto.RegisterType((*EventModifiedTokenClass)(nil), "lbm.collection.v1.EventModifiedTokenClass") 1476 proto.RegisterType((*EventModifiedNFT)(nil), "lbm.collection.v1.EventModifiedNFT") 1477 proto.RegisterType((*EventAttached)(nil), "lbm.collection.v1.EventAttached") 1478 proto.RegisterType((*EventDetached)(nil), "lbm.collection.v1.EventDetached") 1479 proto.RegisterType((*EventOwnerChanged)(nil), "lbm.collection.v1.EventOwnerChanged") 1480 proto.RegisterType((*EventRootChanged)(nil), "lbm.collection.v1.EventRootChanged") 1481 } 1482 1483 func init() { proto.RegisterFile("lbm/collection/v1/event.proto", fileDescriptor_478cfab12ea1b00e) } 1484 1485 var fileDescriptor_478cfab12ea1b00e = []byte{ 1486 // 987 bytes of a gzipped FileDescriptorProto 1487 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xc4, 0x97, 0x4f, 0x6f, 0x1b, 0x45, 1488 0x14, 0xc0, 0xbd, 0xb6, 0xe3, 0x3f, 0x2f, 0x25, 0xdd, 0x6c, 0x42, 0xb2, 0xdd, 0x12, 0xd7, 0xda, 1489 0x0b, 0x51, 0x45, 0x6d, 0xb5, 0xc0, 0xa5, 0x82, 0x83, 0xed, 0x3a, 0xd1, 0xaa, 0xb2, 0x1b, 0x6d, 1490 0xec, 0x03, 0x5c, 0xac, 0xf5, 0x7a, 0x62, 0x2f, 0xf1, 0xce, 0x58, 0xb3, 0xb3, 0x86, 0xf0, 0x09, 1491 0x90, 0xb9, 0x20, 0x2a, 0x38, 0x20, 0xe5, 0x42, 0x2b, 0xd1, 0x8f, 0xd2, 0x0b, 0x52, 0x8e, 0x9c, 1492 0x10, 0x4a, 0xbe, 0x08, 0xda, 0xf1, 0x8e, 0xb3, 0x8e, 0x2d, 0x12, 0xe3, 0x06, 0x6e, 0xf3, 0xde, 1493 0xbc, 0x37, 0xf3, 0x7b, 0x6f, 0xde, 0xbc, 0xd9, 0x85, 0x9d, 0x7e, 0xdb, 0x2d, 0xda, 0xa4, 0xdf, 1494 0x47, 0x36, 0x73, 0x08, 0x2e, 0x0e, 0x1f, 0x17, 0xd1, 0x10, 0x61, 0x56, 0x18, 0x50, 0xc2, 0x88, 1495 0xb2, 0xde, 0x6f, 0xbb, 0x85, 0xcb, 0xe9, 0xc2, 0xf0, 0xb1, 0xb6, 0xd9, 0x25, 0x5d, 0xc2, 0x67, 1496 0x8b, 0xc1, 0x68, 0x6c, 0xa8, 0xe9, 0xb3, 0xeb, 0x44, 0xdc, 0xb8, 0x8d, 0xfe, 0x4a, 0x82, 0x6c, 1497 0x35, 0x58, 0xfc, 0x10, 0x61, 0xa6, 0x3c, 0x80, 0x55, 0x9b, 0x60, 0x46, 0x2d, 0x9b, 0xb5, 0x9c, 1498 0x8e, 0x2a, 0xe5, 0xa5, 0xdd, 0xac, 0x09, 0x42, 0x65, 0x74, 0x14, 0x0d, 0x32, 0x64, 0x80, 0xa8, 1499 0xc5, 0x08, 0x55, 0xe3, 0x7c, 0x76, 0x22, 0x2b, 0x0a, 0x24, 0x8f, 0x28, 0x71, 0xd5, 0x04, 0xd7, 1500 0xf3, 0xb1, 0xb2, 0x06, 0x71, 0x46, 0xd4, 0x24, 0xd7, 0xc4, 0x19, 0x51, 0x3e, 0x85, 0x94, 0xe5, 1501 0x12, 0x1f, 0x33, 0x75, 0x25, 0x9f, 0xd8, 0x5d, 0x7d, 0xb2, 0x5d, 0x98, 0x09, 0xa6, 0x50, 0x21, 1502 0x0e, 0x2e, 0x27, 0xdf, 0xfe, 0xf9, 0x20, 0x66, 0x86, 0xc6, 0x3a, 0x86, 0x6d, 0x0e, 0x59, 0xf2, 1503 0x59, 0x8f, 0x50, 0xe7, 0x5b, 0xd4, 0x79, 0x21, 0x76, 0xbd, 0x16, 0x79, 0x0b, 0x52, 0x3d, 0xd2, 1504 0xef, 0x20, 0x01, 0x1c, 0x4a, 0x53, 0xa1, 0x24, 0xa6, 0x43, 0xd1, 0x8f, 0x61, 0x93, 0xef, 0x67, 1505 0xa2, 0x21, 0x39, 0xbe, 0xed, 0xcd, 0xbe, 0x97, 0xc2, 0xdd, 0x2a, 0x14, 0x59, 0x0c, 0x75, 0x2a, 1506 0xe1, 0x72, 0x8a, 0x0a, 0x69, 0x3b, 0x50, 0x11, 0x1a, 0xee, 0x24, 0xc4, 0xab, 0x1c, 0xf1, 0x19, 1507 0x0e, 0x05, 0x92, 0xd8, 0x72, 0x91, 0x38, 0x8b, 0x60, 0x1c, 0xe8, 0x5c, 0xc4, 0xac, 0xf0, 0x34, 1508 0xf8, 0x58, 0x91, 0x21, 0xe1, 0x53, 0x47, 0x5d, 0xe1, 0xaa, 0x60, 0xa8, 0xff, 0x2e, 0xc1, 0x46, 1509 0x94, 0x66, 0xaf, 0x51, 0xe9, 0x5b, 0x9e, 0xb7, 0x5c, 0x69, 0xdc, 0x83, 0x0c, 0x23, 0xc7, 0x08, 1510 0x07, 0x9e, 0x63, 0xa4, 0x34, 0x97, 0x23, 0xa4, 0xc9, 0x39, 0xa4, 0x2b, 0x11, 0x52, 0x0d, 0x32, 1511 0x1d, 0x64, 0x3b, 0xae, 0xd5, 0xf7, 0xd4, 0x54, 0x5e, 0xda, 0x5d, 0x31, 0x27, 0x72, 0x30, 0xe7, 1512 0x3a, 0x98, 0x59, 0xed, 0x3e, 0x52, 0xd3, 0x79, 0x69, 0x37, 0x63, 0x4e, 0x64, 0xfd, 0x97, 0x2b, 1513 0xd9, 0xad, 0xbf, 0x93, 0x80, 0x76, 0x00, 0xc6, 0x01, 0xb1, 0x93, 0x81, 0xc8, 0x72, 0x96, 0x6b, 1514 0x1a, 0x27, 0x03, 0x74, 0xd3, 0xa0, 0xf4, 0x5f, 0x25, 0xb8, 0xc3, 0xe1, 0xf6, 0xa9, 0x85, 0x19, 1515 0xea, 0x5c, 0x0f, 0xa5, 0x42, 0xba, 0xcb, 0x6d, 0x05, 0x93, 0x10, 0x2f, 0x67, 0x04, 0x8f, 0x10, 1516 0x95, 0xcf, 0x01, 0x06, 0x88, 0xba, 0x8e, 0xe7, 0x39, 0x04, 0x73, 0xa6, 0xb5, 0x27, 0x3b, 0x73, 1517 0x2e, 0xde, 0xc1, 0xc4, 0xc8, 0x8c, 0x38, 0xe8, 0x23, 0x09, 0xd6, 0xc2, 0xdb, 0x80, 0x89, 0x8f, 1518 0xed, 0x85, 0x30, 0xd1, 0x34, 0xe6, 0x55, 0x98, 0xc4, 0xa2, 0x30, 0x2f, 0x25, 0x78, 0x8f, 0xc3, 1519 0xd4, 0x1c, 0xcc, 0xab, 0x73, 0xb9, 0x73, 0x1c, 0xf7, 0xa7, 0xc4, 0x9c, 0xfe, 0x94, 0x5c, 0xa4, 1520 0x3f, 0xbd, 0x14, 0x29, 0x1a, 0x53, 0xd5, 0xdf, 0x35, 0xd6, 0x27, 0x90, 0xe2, 0xc5, 0xe5, 0x85, 1521 0x58, 0x5b, 0x73, 0xb0, 0xea, 0x7b, 0x0d, 0x41, 0x35, 0xb6, 0xd5, 0x7f, 0x92, 0x60, 0x95, 0x53, 1522 0x95, 0x7d, 0x8a, 0x6f, 0x72, 0x6a, 0x8b, 0x76, 0xf7, 0x7f, 0x99, 0xad, 0x1f, 0x25, 0x78, 0x7f, 1523 0x9c, 0x2d, 0xd2, 0x71, 0x8e, 0x9c, 0x48, 0xc7, 0x5b, 0x8a, 0xf0, 0x33, 0x48, 0xdb, 0x3d, 0x0b, 1524 0x77, 0x91, 0xa7, 0x26, 0x38, 0xce, 0x07, 0x73, 0x70, 0x4a, 0x8c, 0x51, 0xa7, 0xed, 0x33, 0x14, 1525 0x32, 0x09, 0x17, 0xfd, 0x4c, 0x0a, 0xdf, 0x18, 0x01, 0xd5, 0x08, 0x92, 0x78, 0xfb, 0xad, 0x22, 1526 0x42, 0x9d, 0x5c, 0x98, 0x5a, 0xb9, 0x0f, 0xd9, 0x60, 0xd9, 0x16, 0xef, 0x36, 0xe3, 0xce, 0x92, 1527 0x09, 0x14, 0x75, 0xcb, 0x45, 0xfa, 0x1b, 0x09, 0xe4, 0xa9, 0x90, 0x96, 0xae, 0xcb, 0x7f, 0xe8, 1528 0xe3, 0x4b, 0xc5, 0xa1, 0xff, 0x2c, 0xae, 0x75, 0x89, 0x31, 0xcb, 0xee, 0x2d, 0x5b, 0xac, 0x97, 1529 0xcf, 0x70, 0x62, 0xea, 0x19, 0x56, 0x21, 0xed, 0xf9, 0xed, 0xaf, 0x90, 0xcd, 0xc2, 0xd6, 0x2c, 1530 0xc4, 0xc0, 0x83, 0x59, 0xb4, 0x8b, 0x58, 0x98, 0xc5, 0x50, 0xd2, 0x7f, 0x13, 0x60, 0xcf, 0xd0, 1531 0xff, 0x03, 0xf6, 0x21, 0xdc, 0x1d, 0x50, 0x34, 0x74, 0x88, 0xef, 0xb5, 0x06, 0x16, 0x45, 0x58, 1532 0x10, 0xae, 0x09, 0xf5, 0x01, 0xd7, 0xea, 0x1e, 0xac, 0x73, 0xd0, 0x17, 0x5f, 0x63, 0x44, 0x2b, 1533 0x3c, 0xaf, 0x37, 0x80, 0x8d, 0x9e, 0x68, 0x7c, 0xe6, 0x65, 0xbe, 0xee, 0x7b, 0x4e, 0xa7, 0x61, 1534 0x85, 0x99, 0x84, 0xb0, 0xff, 0x68, 0xcf, 0x87, 0xaf, 0xe3, 0x70, 0x67, 0x52, 0x48, 0xcf, 0xd1, 1535 0x89, 0xf2, 0x14, 0xee, 0x95, 0x1a, 0x0d, 0xd3, 0x28, 0x37, 0x1b, 0xd5, 0xd6, 0xf3, 0xea, 0x17, 1536 0xad, 0x66, 0xfd, 0xf0, 0xa0, 0x5a, 0x31, 0xf6, 0x8c, 0xea, 0x33, 0x39, 0xa6, 0xdd, 0x1f, 0x9d, 1537 0xe6, 0xb7, 0xa3, 0x0e, 0x4d, 0xec, 0x0d, 0x90, 0xcd, 0x6f, 0x84, 0xf2, 0x11, 0x28, 0xd3, 0xbe, 1538 0xf5, 0x52, 0xad, 0x2a, 0x4b, 0xda, 0xe6, 0xe8, 0x34, 0x2f, 0x47, 0x9d, 0x82, 0x1b, 0x35, 0x6b, 1539 0x5d, 0xab, 0x36, 0x4a, 0x72, 0x7c, 0xd6, 0xba, 0x16, 0x7c, 0xb2, 0x3c, 0x05, 0x6d, 0xda, 0xba, 1540 0x5c, 0x3a, 0xac, 0xb6, 0x8c, 0xda, 0x7e, 0xab, 0x69, 0x1a, 0x72, 0x46, 0xd3, 0x46, 0xa7, 0xf9, 1541 0xad, 0xa8, 0x57, 0xd9, 0xf2, 0x90, 0xe1, 0x76, 0x9b, 0xa6, 0xa1, 0x3c, 0x84, 0xf5, 0x2b, 0x31, 1542 0x99, 0x86, 0xbc, 0xa9, 0x6d, 0x8c, 0x4e, 0xf3, 0x77, 0xa7, 0x62, 0x31, 0x0d, 0x2d, 0xf3, 0xdd, 1543 0xab, 0x5c, 0xec, 0xcd, 0xeb, 0x5c, 0x4c, 0x4f, 0x66, 0x12, 0x72, 0x5a, 0x4f, 0x66, 0xb2, 0xf2, 1544 0x46, 0x79, 0xff, 0xed, 0x79, 0x4e, 0x3a, 0x3b, 0xcf, 0x49, 0x7f, 0x9d, 0xe7, 0xa4, 0x1f, 0x2e, 1545 0x72, 0xb1, 0xb3, 0x8b, 0x5c, 0xec, 0x8f, 0x8b, 0x5c, 0xec, 0xcb, 0x47, 0x5d, 0x87, 0xf5, 0xfc, 1546 0x76, 0xc1, 0x26, 0x6e, 0x71, 0xcf, 0xc1, 0x9e, 0xdd, 0x73, 0xac, 0xe2, 0x51, 0x38, 0x78, 0xe4, 1547 0x75, 0x8e, 0x8b, 0xdf, 0x44, 0x7e, 0x14, 0xda, 0x29, 0xfe, 0xa7, 0xf0, 0xf1, 0xdf, 0x01, 0x00, 1548 0x00, 0xff, 0xff, 0x7f, 0x69, 0x1a, 0x22, 0x97, 0x0c, 0x00, 0x00, 1549 } 1550 1551 func (m *EventSent) Marshal() (dAtA []byte, err error) { 1552 size := m.Size() 1553 dAtA = make([]byte, size) 1554 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 1555 if err != nil { 1556 return nil, err 1557 } 1558 return dAtA[:n], nil 1559 } 1560 1561 func (m *EventSent) MarshalTo(dAtA []byte) (int, error) { 1562 size := m.Size() 1563 return m.MarshalToSizedBuffer(dAtA[:size]) 1564 } 1565 1566 func (m *EventSent) MarshalToSizedBuffer(dAtA []byte) (int, error) { 1567 i := len(dAtA) 1568 _ = i 1569 var l int 1570 _ = l 1571 if len(m.Amount) > 0 { 1572 for iNdEx := len(m.Amount) - 1; iNdEx >= 0; iNdEx-- { 1573 { 1574 size, err := m.Amount[iNdEx].MarshalToSizedBuffer(dAtA[:i]) 1575 if err != nil { 1576 return 0, err 1577 } 1578 i -= size 1579 i = encodeVarintEvent(dAtA, i, uint64(size)) 1580 } 1581 i-- 1582 dAtA[i] = 0x2a 1583 } 1584 } 1585 if len(m.To) > 0 { 1586 i -= len(m.To) 1587 copy(dAtA[i:], m.To) 1588 i = encodeVarintEvent(dAtA, i, uint64(len(m.To))) 1589 i-- 1590 dAtA[i] = 0x22 1591 } 1592 if len(m.From) > 0 { 1593 i -= len(m.From) 1594 copy(dAtA[i:], m.From) 1595 i = encodeVarintEvent(dAtA, i, uint64(len(m.From))) 1596 i-- 1597 dAtA[i] = 0x1a 1598 } 1599 if len(m.Operator) > 0 { 1600 i -= len(m.Operator) 1601 copy(dAtA[i:], m.Operator) 1602 i = encodeVarintEvent(dAtA, i, uint64(len(m.Operator))) 1603 i-- 1604 dAtA[i] = 0x12 1605 } 1606 if len(m.ContractId) > 0 { 1607 i -= len(m.ContractId) 1608 copy(dAtA[i:], m.ContractId) 1609 i = encodeVarintEvent(dAtA, i, uint64(len(m.ContractId))) 1610 i-- 1611 dAtA[i] = 0xa 1612 } 1613 return len(dAtA) - i, nil 1614 } 1615 1616 func (m *EventAuthorizedOperator) Marshal() (dAtA []byte, err error) { 1617 size := m.Size() 1618 dAtA = make([]byte, size) 1619 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 1620 if err != nil { 1621 return nil, err 1622 } 1623 return dAtA[:n], nil 1624 } 1625 1626 func (m *EventAuthorizedOperator) MarshalTo(dAtA []byte) (int, error) { 1627 size := m.Size() 1628 return m.MarshalToSizedBuffer(dAtA[:size]) 1629 } 1630 1631 func (m *EventAuthorizedOperator) MarshalToSizedBuffer(dAtA []byte) (int, error) { 1632 i := len(dAtA) 1633 _ = i 1634 var l int 1635 _ = l 1636 if len(m.Operator) > 0 { 1637 i -= len(m.Operator) 1638 copy(dAtA[i:], m.Operator) 1639 i = encodeVarintEvent(dAtA, i, uint64(len(m.Operator))) 1640 i-- 1641 dAtA[i] = 0x1a 1642 } 1643 if len(m.Holder) > 0 { 1644 i -= len(m.Holder) 1645 copy(dAtA[i:], m.Holder) 1646 i = encodeVarintEvent(dAtA, i, uint64(len(m.Holder))) 1647 i-- 1648 dAtA[i] = 0x12 1649 } 1650 if len(m.ContractId) > 0 { 1651 i -= len(m.ContractId) 1652 copy(dAtA[i:], m.ContractId) 1653 i = encodeVarintEvent(dAtA, i, uint64(len(m.ContractId))) 1654 i-- 1655 dAtA[i] = 0xa 1656 } 1657 return len(dAtA) - i, nil 1658 } 1659 1660 func (m *EventRevokedOperator) Marshal() (dAtA []byte, err error) { 1661 size := m.Size() 1662 dAtA = make([]byte, size) 1663 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 1664 if err != nil { 1665 return nil, err 1666 } 1667 return dAtA[:n], nil 1668 } 1669 1670 func (m *EventRevokedOperator) MarshalTo(dAtA []byte) (int, error) { 1671 size := m.Size() 1672 return m.MarshalToSizedBuffer(dAtA[:size]) 1673 } 1674 1675 func (m *EventRevokedOperator) MarshalToSizedBuffer(dAtA []byte) (int, error) { 1676 i := len(dAtA) 1677 _ = i 1678 var l int 1679 _ = l 1680 if len(m.Operator) > 0 { 1681 i -= len(m.Operator) 1682 copy(dAtA[i:], m.Operator) 1683 i = encodeVarintEvent(dAtA, i, uint64(len(m.Operator))) 1684 i-- 1685 dAtA[i] = 0x1a 1686 } 1687 if len(m.Holder) > 0 { 1688 i -= len(m.Holder) 1689 copy(dAtA[i:], m.Holder) 1690 i = encodeVarintEvent(dAtA, i, uint64(len(m.Holder))) 1691 i-- 1692 dAtA[i] = 0x12 1693 } 1694 if len(m.ContractId) > 0 { 1695 i -= len(m.ContractId) 1696 copy(dAtA[i:], m.ContractId) 1697 i = encodeVarintEvent(dAtA, i, uint64(len(m.ContractId))) 1698 i-- 1699 dAtA[i] = 0xa 1700 } 1701 return len(dAtA) - i, nil 1702 } 1703 1704 func (m *EventCreatedContract) Marshal() (dAtA []byte, err error) { 1705 size := m.Size() 1706 dAtA = make([]byte, size) 1707 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 1708 if err != nil { 1709 return nil, err 1710 } 1711 return dAtA[:n], nil 1712 } 1713 1714 func (m *EventCreatedContract) MarshalTo(dAtA []byte) (int, error) { 1715 size := m.Size() 1716 return m.MarshalToSizedBuffer(dAtA[:size]) 1717 } 1718 1719 func (m *EventCreatedContract) MarshalToSizedBuffer(dAtA []byte) (int, error) { 1720 i := len(dAtA) 1721 _ = i 1722 var l int 1723 _ = l 1724 if len(m.Uri) > 0 { 1725 i -= len(m.Uri) 1726 copy(dAtA[i:], m.Uri) 1727 i = encodeVarintEvent(dAtA, i, uint64(len(m.Uri))) 1728 i-- 1729 dAtA[i] = 0x2a 1730 } 1731 if len(m.Meta) > 0 { 1732 i -= len(m.Meta) 1733 copy(dAtA[i:], m.Meta) 1734 i = encodeVarintEvent(dAtA, i, uint64(len(m.Meta))) 1735 i-- 1736 dAtA[i] = 0x22 1737 } 1738 if len(m.Name) > 0 { 1739 i -= len(m.Name) 1740 copy(dAtA[i:], m.Name) 1741 i = encodeVarintEvent(dAtA, i, uint64(len(m.Name))) 1742 i-- 1743 dAtA[i] = 0x1a 1744 } 1745 if len(m.ContractId) > 0 { 1746 i -= len(m.ContractId) 1747 copy(dAtA[i:], m.ContractId) 1748 i = encodeVarintEvent(dAtA, i, uint64(len(m.ContractId))) 1749 i-- 1750 dAtA[i] = 0x12 1751 } 1752 if len(m.Creator) > 0 { 1753 i -= len(m.Creator) 1754 copy(dAtA[i:], m.Creator) 1755 i = encodeVarintEvent(dAtA, i, uint64(len(m.Creator))) 1756 i-- 1757 dAtA[i] = 0xa 1758 } 1759 return len(dAtA) - i, nil 1760 } 1761 1762 func (m *EventCreatedFTClass) Marshal() (dAtA []byte, err error) { 1763 size := m.Size() 1764 dAtA = make([]byte, size) 1765 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 1766 if err != nil { 1767 return nil, err 1768 } 1769 return dAtA[:n], nil 1770 } 1771 1772 func (m *EventCreatedFTClass) MarshalTo(dAtA []byte) (int, error) { 1773 size := m.Size() 1774 return m.MarshalToSizedBuffer(dAtA[:size]) 1775 } 1776 1777 func (m *EventCreatedFTClass) MarshalToSizedBuffer(dAtA []byte) (int, error) { 1778 i := len(dAtA) 1779 _ = i 1780 var l int 1781 _ = l 1782 if m.Mintable { 1783 i-- 1784 if m.Mintable { 1785 dAtA[i] = 1 1786 } else { 1787 dAtA[i] = 0 1788 } 1789 i-- 1790 dAtA[i] = 0x38 1791 } 1792 if m.Decimals != 0 { 1793 i = encodeVarintEvent(dAtA, i, uint64(m.Decimals)) 1794 i-- 1795 dAtA[i] = 0x30 1796 } 1797 if len(m.Meta) > 0 { 1798 i -= len(m.Meta) 1799 copy(dAtA[i:], m.Meta) 1800 i = encodeVarintEvent(dAtA, i, uint64(len(m.Meta))) 1801 i-- 1802 dAtA[i] = 0x2a 1803 } 1804 if len(m.Name) > 0 { 1805 i -= len(m.Name) 1806 copy(dAtA[i:], m.Name) 1807 i = encodeVarintEvent(dAtA, i, uint64(len(m.Name))) 1808 i-- 1809 dAtA[i] = 0x22 1810 } 1811 if len(m.TokenId) > 0 { 1812 i -= len(m.TokenId) 1813 copy(dAtA[i:], m.TokenId) 1814 i = encodeVarintEvent(dAtA, i, uint64(len(m.TokenId))) 1815 i-- 1816 dAtA[i] = 0x1a 1817 } 1818 if len(m.Operator) > 0 { 1819 i -= len(m.Operator) 1820 copy(dAtA[i:], m.Operator) 1821 i = encodeVarintEvent(dAtA, i, uint64(len(m.Operator))) 1822 i-- 1823 dAtA[i] = 0x12 1824 } 1825 if len(m.ContractId) > 0 { 1826 i -= len(m.ContractId) 1827 copy(dAtA[i:], m.ContractId) 1828 i = encodeVarintEvent(dAtA, i, uint64(len(m.ContractId))) 1829 i-- 1830 dAtA[i] = 0xa 1831 } 1832 return len(dAtA) - i, nil 1833 } 1834 1835 func (m *EventCreatedNFTClass) Marshal() (dAtA []byte, err error) { 1836 size := m.Size() 1837 dAtA = make([]byte, size) 1838 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 1839 if err != nil { 1840 return nil, err 1841 } 1842 return dAtA[:n], nil 1843 } 1844 1845 func (m *EventCreatedNFTClass) MarshalTo(dAtA []byte) (int, error) { 1846 size := m.Size() 1847 return m.MarshalToSizedBuffer(dAtA[:size]) 1848 } 1849 1850 func (m *EventCreatedNFTClass) MarshalToSizedBuffer(dAtA []byte) (int, error) { 1851 i := len(dAtA) 1852 _ = i 1853 var l int 1854 _ = l 1855 if len(m.Meta) > 0 { 1856 i -= len(m.Meta) 1857 copy(dAtA[i:], m.Meta) 1858 i = encodeVarintEvent(dAtA, i, uint64(len(m.Meta))) 1859 i-- 1860 dAtA[i] = 0x2a 1861 } 1862 if len(m.Name) > 0 { 1863 i -= len(m.Name) 1864 copy(dAtA[i:], m.Name) 1865 i = encodeVarintEvent(dAtA, i, uint64(len(m.Name))) 1866 i-- 1867 dAtA[i] = 0x22 1868 } 1869 if len(m.TokenType) > 0 { 1870 i -= len(m.TokenType) 1871 copy(dAtA[i:], m.TokenType) 1872 i = encodeVarintEvent(dAtA, i, uint64(len(m.TokenType))) 1873 i-- 1874 dAtA[i] = 0x1a 1875 } 1876 if len(m.Operator) > 0 { 1877 i -= len(m.Operator) 1878 copy(dAtA[i:], m.Operator) 1879 i = encodeVarintEvent(dAtA, i, uint64(len(m.Operator))) 1880 i-- 1881 dAtA[i] = 0x12 1882 } 1883 if len(m.ContractId) > 0 { 1884 i -= len(m.ContractId) 1885 copy(dAtA[i:], m.ContractId) 1886 i = encodeVarintEvent(dAtA, i, uint64(len(m.ContractId))) 1887 i-- 1888 dAtA[i] = 0xa 1889 } 1890 return len(dAtA) - i, nil 1891 } 1892 1893 func (m *EventGranted) Marshal() (dAtA []byte, err error) { 1894 size := m.Size() 1895 dAtA = make([]byte, size) 1896 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 1897 if err != nil { 1898 return nil, err 1899 } 1900 return dAtA[:n], nil 1901 } 1902 1903 func (m *EventGranted) MarshalTo(dAtA []byte) (int, error) { 1904 size := m.Size() 1905 return m.MarshalToSizedBuffer(dAtA[:size]) 1906 } 1907 1908 func (m *EventGranted) MarshalToSizedBuffer(dAtA []byte) (int, error) { 1909 i := len(dAtA) 1910 _ = i 1911 var l int 1912 _ = l 1913 if m.Permission != 0 { 1914 i = encodeVarintEvent(dAtA, i, uint64(m.Permission)) 1915 i-- 1916 dAtA[i] = 0x20 1917 } 1918 if len(m.Grantee) > 0 { 1919 i -= len(m.Grantee) 1920 copy(dAtA[i:], m.Grantee) 1921 i = encodeVarintEvent(dAtA, i, uint64(len(m.Grantee))) 1922 i-- 1923 dAtA[i] = 0x1a 1924 } 1925 if len(m.Granter) > 0 { 1926 i -= len(m.Granter) 1927 copy(dAtA[i:], m.Granter) 1928 i = encodeVarintEvent(dAtA, i, uint64(len(m.Granter))) 1929 i-- 1930 dAtA[i] = 0x12 1931 } 1932 if len(m.ContractId) > 0 { 1933 i -= len(m.ContractId) 1934 copy(dAtA[i:], m.ContractId) 1935 i = encodeVarintEvent(dAtA, i, uint64(len(m.ContractId))) 1936 i-- 1937 dAtA[i] = 0xa 1938 } 1939 return len(dAtA) - i, nil 1940 } 1941 1942 func (m *EventRenounced) Marshal() (dAtA []byte, err error) { 1943 size := m.Size() 1944 dAtA = make([]byte, size) 1945 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 1946 if err != nil { 1947 return nil, err 1948 } 1949 return dAtA[:n], nil 1950 } 1951 1952 func (m *EventRenounced) MarshalTo(dAtA []byte) (int, error) { 1953 size := m.Size() 1954 return m.MarshalToSizedBuffer(dAtA[:size]) 1955 } 1956 1957 func (m *EventRenounced) MarshalToSizedBuffer(dAtA []byte) (int, error) { 1958 i := len(dAtA) 1959 _ = i 1960 var l int 1961 _ = l 1962 if m.Permission != 0 { 1963 i = encodeVarintEvent(dAtA, i, uint64(m.Permission)) 1964 i-- 1965 dAtA[i] = 0x18 1966 } 1967 if len(m.Grantee) > 0 { 1968 i -= len(m.Grantee) 1969 copy(dAtA[i:], m.Grantee) 1970 i = encodeVarintEvent(dAtA, i, uint64(len(m.Grantee))) 1971 i-- 1972 dAtA[i] = 0x12 1973 } 1974 if len(m.ContractId) > 0 { 1975 i -= len(m.ContractId) 1976 copy(dAtA[i:], m.ContractId) 1977 i = encodeVarintEvent(dAtA, i, uint64(len(m.ContractId))) 1978 i-- 1979 dAtA[i] = 0xa 1980 } 1981 return len(dAtA) - i, nil 1982 } 1983 1984 func (m *EventMintedFT) Marshal() (dAtA []byte, err error) { 1985 size := m.Size() 1986 dAtA = make([]byte, size) 1987 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 1988 if err != nil { 1989 return nil, err 1990 } 1991 return dAtA[:n], nil 1992 } 1993 1994 func (m *EventMintedFT) MarshalTo(dAtA []byte) (int, error) { 1995 size := m.Size() 1996 return m.MarshalToSizedBuffer(dAtA[:size]) 1997 } 1998 1999 func (m *EventMintedFT) MarshalToSizedBuffer(dAtA []byte) (int, error) { 2000 i := len(dAtA) 2001 _ = i 2002 var l int 2003 _ = l 2004 if len(m.Amount) > 0 { 2005 for iNdEx := len(m.Amount) - 1; iNdEx >= 0; iNdEx-- { 2006 { 2007 size, err := m.Amount[iNdEx].MarshalToSizedBuffer(dAtA[:i]) 2008 if err != nil { 2009 return 0, err 2010 } 2011 i -= size 2012 i = encodeVarintEvent(dAtA, i, uint64(size)) 2013 } 2014 i-- 2015 dAtA[i] = 0x22 2016 } 2017 } 2018 if len(m.To) > 0 { 2019 i -= len(m.To) 2020 copy(dAtA[i:], m.To) 2021 i = encodeVarintEvent(dAtA, i, uint64(len(m.To))) 2022 i-- 2023 dAtA[i] = 0x1a 2024 } 2025 if len(m.Operator) > 0 { 2026 i -= len(m.Operator) 2027 copy(dAtA[i:], m.Operator) 2028 i = encodeVarintEvent(dAtA, i, uint64(len(m.Operator))) 2029 i-- 2030 dAtA[i] = 0x12 2031 } 2032 if len(m.ContractId) > 0 { 2033 i -= len(m.ContractId) 2034 copy(dAtA[i:], m.ContractId) 2035 i = encodeVarintEvent(dAtA, i, uint64(len(m.ContractId))) 2036 i-- 2037 dAtA[i] = 0xa 2038 } 2039 return len(dAtA) - i, nil 2040 } 2041 2042 func (m *EventMintedNFT) Marshal() (dAtA []byte, err error) { 2043 size := m.Size() 2044 dAtA = make([]byte, size) 2045 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 2046 if err != nil { 2047 return nil, err 2048 } 2049 return dAtA[:n], nil 2050 } 2051 2052 func (m *EventMintedNFT) MarshalTo(dAtA []byte) (int, error) { 2053 size := m.Size() 2054 return m.MarshalToSizedBuffer(dAtA[:size]) 2055 } 2056 2057 func (m *EventMintedNFT) MarshalToSizedBuffer(dAtA []byte) (int, error) { 2058 i := len(dAtA) 2059 _ = i 2060 var l int 2061 _ = l 2062 if len(m.Tokens) > 0 { 2063 for iNdEx := len(m.Tokens) - 1; iNdEx >= 0; iNdEx-- { 2064 { 2065 size, err := m.Tokens[iNdEx].MarshalToSizedBuffer(dAtA[:i]) 2066 if err != nil { 2067 return 0, err 2068 } 2069 i -= size 2070 i = encodeVarintEvent(dAtA, i, uint64(size)) 2071 } 2072 i-- 2073 dAtA[i] = 0x22 2074 } 2075 } 2076 if len(m.To) > 0 { 2077 i -= len(m.To) 2078 copy(dAtA[i:], m.To) 2079 i = encodeVarintEvent(dAtA, i, uint64(len(m.To))) 2080 i-- 2081 dAtA[i] = 0x1a 2082 } 2083 if len(m.Operator) > 0 { 2084 i -= len(m.Operator) 2085 copy(dAtA[i:], m.Operator) 2086 i = encodeVarintEvent(dAtA, i, uint64(len(m.Operator))) 2087 i-- 2088 dAtA[i] = 0x12 2089 } 2090 if len(m.ContractId) > 0 { 2091 i -= len(m.ContractId) 2092 copy(dAtA[i:], m.ContractId) 2093 i = encodeVarintEvent(dAtA, i, uint64(len(m.ContractId))) 2094 i-- 2095 dAtA[i] = 0xa 2096 } 2097 return len(dAtA) - i, nil 2098 } 2099 2100 func (m *EventBurned) Marshal() (dAtA []byte, err error) { 2101 size := m.Size() 2102 dAtA = make([]byte, size) 2103 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 2104 if err != nil { 2105 return nil, err 2106 } 2107 return dAtA[:n], nil 2108 } 2109 2110 func (m *EventBurned) MarshalTo(dAtA []byte) (int, error) { 2111 size := m.Size() 2112 return m.MarshalToSizedBuffer(dAtA[:size]) 2113 } 2114 2115 func (m *EventBurned) MarshalToSizedBuffer(dAtA []byte) (int, error) { 2116 i := len(dAtA) 2117 _ = i 2118 var l int 2119 _ = l 2120 if len(m.Amount) > 0 { 2121 for iNdEx := len(m.Amount) - 1; iNdEx >= 0; iNdEx-- { 2122 { 2123 size, err := m.Amount[iNdEx].MarshalToSizedBuffer(dAtA[:i]) 2124 if err != nil { 2125 return 0, err 2126 } 2127 i -= size 2128 i = encodeVarintEvent(dAtA, i, uint64(size)) 2129 } 2130 i-- 2131 dAtA[i] = 0x22 2132 } 2133 } 2134 if len(m.From) > 0 { 2135 i -= len(m.From) 2136 copy(dAtA[i:], m.From) 2137 i = encodeVarintEvent(dAtA, i, uint64(len(m.From))) 2138 i-- 2139 dAtA[i] = 0x1a 2140 } 2141 if len(m.Operator) > 0 { 2142 i -= len(m.Operator) 2143 copy(dAtA[i:], m.Operator) 2144 i = encodeVarintEvent(dAtA, i, uint64(len(m.Operator))) 2145 i-- 2146 dAtA[i] = 0x12 2147 } 2148 if len(m.ContractId) > 0 { 2149 i -= len(m.ContractId) 2150 copy(dAtA[i:], m.ContractId) 2151 i = encodeVarintEvent(dAtA, i, uint64(len(m.ContractId))) 2152 i-- 2153 dAtA[i] = 0xa 2154 } 2155 return len(dAtA) - i, nil 2156 } 2157 2158 func (m *EventModifiedContract) Marshal() (dAtA []byte, err error) { 2159 size := m.Size() 2160 dAtA = make([]byte, size) 2161 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 2162 if err != nil { 2163 return nil, err 2164 } 2165 return dAtA[:n], nil 2166 } 2167 2168 func (m *EventModifiedContract) MarshalTo(dAtA []byte) (int, error) { 2169 size := m.Size() 2170 return m.MarshalToSizedBuffer(dAtA[:size]) 2171 } 2172 2173 func (m *EventModifiedContract) MarshalToSizedBuffer(dAtA []byte) (int, error) { 2174 i := len(dAtA) 2175 _ = i 2176 var l int 2177 _ = l 2178 if len(m.Changes) > 0 { 2179 for iNdEx := len(m.Changes) - 1; iNdEx >= 0; iNdEx-- { 2180 { 2181 size, err := m.Changes[iNdEx].MarshalToSizedBuffer(dAtA[:i]) 2182 if err != nil { 2183 return 0, err 2184 } 2185 i -= size 2186 i = encodeVarintEvent(dAtA, i, uint64(size)) 2187 } 2188 i-- 2189 dAtA[i] = 0x1a 2190 } 2191 } 2192 if len(m.Operator) > 0 { 2193 i -= len(m.Operator) 2194 copy(dAtA[i:], m.Operator) 2195 i = encodeVarintEvent(dAtA, i, uint64(len(m.Operator))) 2196 i-- 2197 dAtA[i] = 0x12 2198 } 2199 if len(m.ContractId) > 0 { 2200 i -= len(m.ContractId) 2201 copy(dAtA[i:], m.ContractId) 2202 i = encodeVarintEvent(dAtA, i, uint64(len(m.ContractId))) 2203 i-- 2204 dAtA[i] = 0xa 2205 } 2206 return len(dAtA) - i, nil 2207 } 2208 2209 func (m *EventModifiedTokenClass) Marshal() (dAtA []byte, err error) { 2210 size := m.Size() 2211 dAtA = make([]byte, size) 2212 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 2213 if err != nil { 2214 return nil, err 2215 } 2216 return dAtA[:n], nil 2217 } 2218 2219 func (m *EventModifiedTokenClass) MarshalTo(dAtA []byte) (int, error) { 2220 size := m.Size() 2221 return m.MarshalToSizedBuffer(dAtA[:size]) 2222 } 2223 2224 func (m *EventModifiedTokenClass) MarshalToSizedBuffer(dAtA []byte) (int, error) { 2225 i := len(dAtA) 2226 _ = i 2227 var l int 2228 _ = l 2229 if len(m.TypeName) > 0 { 2230 i -= len(m.TypeName) 2231 copy(dAtA[i:], m.TypeName) 2232 i = encodeVarintEvent(dAtA, i, uint64(len(m.TypeName))) 2233 i-- 2234 dAtA[i] = 0x2a 2235 } 2236 if len(m.Changes) > 0 { 2237 for iNdEx := len(m.Changes) - 1; iNdEx >= 0; iNdEx-- { 2238 { 2239 size, err := m.Changes[iNdEx].MarshalToSizedBuffer(dAtA[:i]) 2240 if err != nil { 2241 return 0, err 2242 } 2243 i -= size 2244 i = encodeVarintEvent(dAtA, i, uint64(size)) 2245 } 2246 i-- 2247 dAtA[i] = 0x22 2248 } 2249 } 2250 if len(m.TokenType) > 0 { 2251 i -= len(m.TokenType) 2252 copy(dAtA[i:], m.TokenType) 2253 i = encodeVarintEvent(dAtA, i, uint64(len(m.TokenType))) 2254 i-- 2255 dAtA[i] = 0x1a 2256 } 2257 if len(m.Operator) > 0 { 2258 i -= len(m.Operator) 2259 copy(dAtA[i:], m.Operator) 2260 i = encodeVarintEvent(dAtA, i, uint64(len(m.Operator))) 2261 i-- 2262 dAtA[i] = 0x12 2263 } 2264 if len(m.ContractId) > 0 { 2265 i -= len(m.ContractId) 2266 copy(dAtA[i:], m.ContractId) 2267 i = encodeVarintEvent(dAtA, i, uint64(len(m.ContractId))) 2268 i-- 2269 dAtA[i] = 0xa 2270 } 2271 return len(dAtA) - i, nil 2272 } 2273 2274 func (m *EventModifiedNFT) Marshal() (dAtA []byte, err error) { 2275 size := m.Size() 2276 dAtA = make([]byte, size) 2277 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 2278 if err != nil { 2279 return nil, err 2280 } 2281 return dAtA[:n], nil 2282 } 2283 2284 func (m *EventModifiedNFT) MarshalTo(dAtA []byte) (int, error) { 2285 size := m.Size() 2286 return m.MarshalToSizedBuffer(dAtA[:size]) 2287 } 2288 2289 func (m *EventModifiedNFT) MarshalToSizedBuffer(dAtA []byte) (int, error) { 2290 i := len(dAtA) 2291 _ = i 2292 var l int 2293 _ = l 2294 if len(m.Changes) > 0 { 2295 for iNdEx := len(m.Changes) - 1; iNdEx >= 0; iNdEx-- { 2296 { 2297 size, err := m.Changes[iNdEx].MarshalToSizedBuffer(dAtA[:i]) 2298 if err != nil { 2299 return 0, err 2300 } 2301 i -= size 2302 i = encodeVarintEvent(dAtA, i, uint64(size)) 2303 } 2304 i-- 2305 dAtA[i] = 0x22 2306 } 2307 } 2308 if len(m.TokenId) > 0 { 2309 i -= len(m.TokenId) 2310 copy(dAtA[i:], m.TokenId) 2311 i = encodeVarintEvent(dAtA, i, uint64(len(m.TokenId))) 2312 i-- 2313 dAtA[i] = 0x1a 2314 } 2315 if len(m.Operator) > 0 { 2316 i -= len(m.Operator) 2317 copy(dAtA[i:], m.Operator) 2318 i = encodeVarintEvent(dAtA, i, uint64(len(m.Operator))) 2319 i-- 2320 dAtA[i] = 0x12 2321 } 2322 if len(m.ContractId) > 0 { 2323 i -= len(m.ContractId) 2324 copy(dAtA[i:], m.ContractId) 2325 i = encodeVarintEvent(dAtA, i, uint64(len(m.ContractId))) 2326 i-- 2327 dAtA[i] = 0xa 2328 } 2329 return len(dAtA) - i, nil 2330 } 2331 2332 func (m *EventAttached) Marshal() (dAtA []byte, err error) { 2333 size := m.Size() 2334 dAtA = make([]byte, size) 2335 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 2336 if err != nil { 2337 return nil, err 2338 } 2339 return dAtA[:n], nil 2340 } 2341 2342 func (m *EventAttached) MarshalTo(dAtA []byte) (int, error) { 2343 size := m.Size() 2344 return m.MarshalToSizedBuffer(dAtA[:size]) 2345 } 2346 2347 func (m *EventAttached) MarshalToSizedBuffer(dAtA []byte) (int, error) { 2348 i := len(dAtA) 2349 _ = i 2350 var l int 2351 _ = l 2352 if len(m.Target) > 0 { 2353 i -= len(m.Target) 2354 copy(dAtA[i:], m.Target) 2355 i = encodeVarintEvent(dAtA, i, uint64(len(m.Target))) 2356 i-- 2357 dAtA[i] = 0x2a 2358 } 2359 if len(m.Subject) > 0 { 2360 i -= len(m.Subject) 2361 copy(dAtA[i:], m.Subject) 2362 i = encodeVarintEvent(dAtA, i, uint64(len(m.Subject))) 2363 i-- 2364 dAtA[i] = 0x22 2365 } 2366 if len(m.Holder) > 0 { 2367 i -= len(m.Holder) 2368 copy(dAtA[i:], m.Holder) 2369 i = encodeVarintEvent(dAtA, i, uint64(len(m.Holder))) 2370 i-- 2371 dAtA[i] = 0x1a 2372 } 2373 if len(m.Operator) > 0 { 2374 i -= len(m.Operator) 2375 copy(dAtA[i:], m.Operator) 2376 i = encodeVarintEvent(dAtA, i, uint64(len(m.Operator))) 2377 i-- 2378 dAtA[i] = 0x12 2379 } 2380 if len(m.ContractId) > 0 { 2381 i -= len(m.ContractId) 2382 copy(dAtA[i:], m.ContractId) 2383 i = encodeVarintEvent(dAtA, i, uint64(len(m.ContractId))) 2384 i-- 2385 dAtA[i] = 0xa 2386 } 2387 return len(dAtA) - i, nil 2388 } 2389 2390 func (m *EventDetached) Marshal() (dAtA []byte, err error) { 2391 size := m.Size() 2392 dAtA = make([]byte, size) 2393 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 2394 if err != nil { 2395 return nil, err 2396 } 2397 return dAtA[:n], nil 2398 } 2399 2400 func (m *EventDetached) MarshalTo(dAtA []byte) (int, error) { 2401 size := m.Size() 2402 return m.MarshalToSizedBuffer(dAtA[:size]) 2403 } 2404 2405 func (m *EventDetached) MarshalToSizedBuffer(dAtA []byte) (int, error) { 2406 i := len(dAtA) 2407 _ = i 2408 var l int 2409 _ = l 2410 if len(m.PreviousParent) > 0 { 2411 i -= len(m.PreviousParent) 2412 copy(dAtA[i:], m.PreviousParent) 2413 i = encodeVarintEvent(dAtA, i, uint64(len(m.PreviousParent))) 2414 i-- 2415 dAtA[i] = 0x2a 2416 } 2417 if len(m.Subject) > 0 { 2418 i -= len(m.Subject) 2419 copy(dAtA[i:], m.Subject) 2420 i = encodeVarintEvent(dAtA, i, uint64(len(m.Subject))) 2421 i-- 2422 dAtA[i] = 0x22 2423 } 2424 if len(m.Holder) > 0 { 2425 i -= len(m.Holder) 2426 copy(dAtA[i:], m.Holder) 2427 i = encodeVarintEvent(dAtA, i, uint64(len(m.Holder))) 2428 i-- 2429 dAtA[i] = 0x1a 2430 } 2431 if len(m.Operator) > 0 { 2432 i -= len(m.Operator) 2433 copy(dAtA[i:], m.Operator) 2434 i = encodeVarintEvent(dAtA, i, uint64(len(m.Operator))) 2435 i-- 2436 dAtA[i] = 0x12 2437 } 2438 if len(m.ContractId) > 0 { 2439 i -= len(m.ContractId) 2440 copy(dAtA[i:], m.ContractId) 2441 i = encodeVarintEvent(dAtA, i, uint64(len(m.ContractId))) 2442 i-- 2443 dAtA[i] = 0xa 2444 } 2445 return len(dAtA) - i, nil 2446 } 2447 2448 func (m *EventOwnerChanged) Marshal() (dAtA []byte, err error) { 2449 size := m.Size() 2450 dAtA = make([]byte, size) 2451 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 2452 if err != nil { 2453 return nil, err 2454 } 2455 return dAtA[:n], nil 2456 } 2457 2458 func (m *EventOwnerChanged) MarshalTo(dAtA []byte) (int, error) { 2459 size := m.Size() 2460 return m.MarshalToSizedBuffer(dAtA[:size]) 2461 } 2462 2463 func (m *EventOwnerChanged) MarshalToSizedBuffer(dAtA []byte) (int, error) { 2464 i := len(dAtA) 2465 _ = i 2466 var l int 2467 _ = l 2468 if len(m.To) > 0 { 2469 i -= len(m.To) 2470 copy(dAtA[i:], m.To) 2471 i = encodeVarintEvent(dAtA, i, uint64(len(m.To))) 2472 i-- 2473 dAtA[i] = 0x22 2474 } 2475 if len(m.From) > 0 { 2476 i -= len(m.From) 2477 copy(dAtA[i:], m.From) 2478 i = encodeVarintEvent(dAtA, i, uint64(len(m.From))) 2479 i-- 2480 dAtA[i] = 0x1a 2481 } 2482 if len(m.TokenId) > 0 { 2483 i -= len(m.TokenId) 2484 copy(dAtA[i:], m.TokenId) 2485 i = encodeVarintEvent(dAtA, i, uint64(len(m.TokenId))) 2486 i-- 2487 dAtA[i] = 0x12 2488 } 2489 if len(m.ContractId) > 0 { 2490 i -= len(m.ContractId) 2491 copy(dAtA[i:], m.ContractId) 2492 i = encodeVarintEvent(dAtA, i, uint64(len(m.ContractId))) 2493 i-- 2494 dAtA[i] = 0xa 2495 } 2496 return len(dAtA) - i, nil 2497 } 2498 2499 func (m *EventRootChanged) Marshal() (dAtA []byte, err error) { 2500 size := m.Size() 2501 dAtA = make([]byte, size) 2502 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 2503 if err != nil { 2504 return nil, err 2505 } 2506 return dAtA[:n], nil 2507 } 2508 2509 func (m *EventRootChanged) MarshalTo(dAtA []byte) (int, error) { 2510 size := m.Size() 2511 return m.MarshalToSizedBuffer(dAtA[:size]) 2512 } 2513 2514 func (m *EventRootChanged) MarshalToSizedBuffer(dAtA []byte) (int, error) { 2515 i := len(dAtA) 2516 _ = i 2517 var l int 2518 _ = l 2519 if len(m.To) > 0 { 2520 i -= len(m.To) 2521 copy(dAtA[i:], m.To) 2522 i = encodeVarintEvent(dAtA, i, uint64(len(m.To))) 2523 i-- 2524 dAtA[i] = 0x22 2525 } 2526 if len(m.From) > 0 { 2527 i -= len(m.From) 2528 copy(dAtA[i:], m.From) 2529 i = encodeVarintEvent(dAtA, i, uint64(len(m.From))) 2530 i-- 2531 dAtA[i] = 0x1a 2532 } 2533 if len(m.TokenId) > 0 { 2534 i -= len(m.TokenId) 2535 copy(dAtA[i:], m.TokenId) 2536 i = encodeVarintEvent(dAtA, i, uint64(len(m.TokenId))) 2537 i-- 2538 dAtA[i] = 0x12 2539 } 2540 if len(m.ContractId) > 0 { 2541 i -= len(m.ContractId) 2542 copy(dAtA[i:], m.ContractId) 2543 i = encodeVarintEvent(dAtA, i, uint64(len(m.ContractId))) 2544 i-- 2545 dAtA[i] = 0xa 2546 } 2547 return len(dAtA) - i, nil 2548 } 2549 2550 func encodeVarintEvent(dAtA []byte, offset int, v uint64) int { 2551 offset -= sovEvent(v) 2552 base := offset 2553 for v >= 1<<7 { 2554 dAtA[offset] = uint8(v&0x7f | 0x80) 2555 v >>= 7 2556 offset++ 2557 } 2558 dAtA[offset] = uint8(v) 2559 return base 2560 } 2561 func (m *EventSent) Size() (n int) { 2562 if m == nil { 2563 return 0 2564 } 2565 var l int 2566 _ = l 2567 l = len(m.ContractId) 2568 if l > 0 { 2569 n += 1 + l + sovEvent(uint64(l)) 2570 } 2571 l = len(m.Operator) 2572 if l > 0 { 2573 n += 1 + l + sovEvent(uint64(l)) 2574 } 2575 l = len(m.From) 2576 if l > 0 { 2577 n += 1 + l + sovEvent(uint64(l)) 2578 } 2579 l = len(m.To) 2580 if l > 0 { 2581 n += 1 + l + sovEvent(uint64(l)) 2582 } 2583 if len(m.Amount) > 0 { 2584 for _, e := range m.Amount { 2585 l = e.Size() 2586 n += 1 + l + sovEvent(uint64(l)) 2587 } 2588 } 2589 return n 2590 } 2591 2592 func (m *EventAuthorizedOperator) Size() (n int) { 2593 if m == nil { 2594 return 0 2595 } 2596 var l int 2597 _ = l 2598 l = len(m.ContractId) 2599 if l > 0 { 2600 n += 1 + l + sovEvent(uint64(l)) 2601 } 2602 l = len(m.Holder) 2603 if l > 0 { 2604 n += 1 + l + sovEvent(uint64(l)) 2605 } 2606 l = len(m.Operator) 2607 if l > 0 { 2608 n += 1 + l + sovEvent(uint64(l)) 2609 } 2610 return n 2611 } 2612 2613 func (m *EventRevokedOperator) Size() (n int) { 2614 if m == nil { 2615 return 0 2616 } 2617 var l int 2618 _ = l 2619 l = len(m.ContractId) 2620 if l > 0 { 2621 n += 1 + l + sovEvent(uint64(l)) 2622 } 2623 l = len(m.Holder) 2624 if l > 0 { 2625 n += 1 + l + sovEvent(uint64(l)) 2626 } 2627 l = len(m.Operator) 2628 if l > 0 { 2629 n += 1 + l + sovEvent(uint64(l)) 2630 } 2631 return n 2632 } 2633 2634 func (m *EventCreatedContract) Size() (n int) { 2635 if m == nil { 2636 return 0 2637 } 2638 var l int 2639 _ = l 2640 l = len(m.Creator) 2641 if l > 0 { 2642 n += 1 + l + sovEvent(uint64(l)) 2643 } 2644 l = len(m.ContractId) 2645 if l > 0 { 2646 n += 1 + l + sovEvent(uint64(l)) 2647 } 2648 l = len(m.Name) 2649 if l > 0 { 2650 n += 1 + l + sovEvent(uint64(l)) 2651 } 2652 l = len(m.Meta) 2653 if l > 0 { 2654 n += 1 + l + sovEvent(uint64(l)) 2655 } 2656 l = len(m.Uri) 2657 if l > 0 { 2658 n += 1 + l + sovEvent(uint64(l)) 2659 } 2660 return n 2661 } 2662 2663 func (m *EventCreatedFTClass) Size() (n int) { 2664 if m == nil { 2665 return 0 2666 } 2667 var l int 2668 _ = l 2669 l = len(m.ContractId) 2670 if l > 0 { 2671 n += 1 + l + sovEvent(uint64(l)) 2672 } 2673 l = len(m.Operator) 2674 if l > 0 { 2675 n += 1 + l + sovEvent(uint64(l)) 2676 } 2677 l = len(m.TokenId) 2678 if l > 0 { 2679 n += 1 + l + sovEvent(uint64(l)) 2680 } 2681 l = len(m.Name) 2682 if l > 0 { 2683 n += 1 + l + sovEvent(uint64(l)) 2684 } 2685 l = len(m.Meta) 2686 if l > 0 { 2687 n += 1 + l + sovEvent(uint64(l)) 2688 } 2689 if m.Decimals != 0 { 2690 n += 1 + sovEvent(uint64(m.Decimals)) 2691 } 2692 if m.Mintable { 2693 n += 2 2694 } 2695 return n 2696 } 2697 2698 func (m *EventCreatedNFTClass) Size() (n int) { 2699 if m == nil { 2700 return 0 2701 } 2702 var l int 2703 _ = l 2704 l = len(m.ContractId) 2705 if l > 0 { 2706 n += 1 + l + sovEvent(uint64(l)) 2707 } 2708 l = len(m.Operator) 2709 if l > 0 { 2710 n += 1 + l + sovEvent(uint64(l)) 2711 } 2712 l = len(m.TokenType) 2713 if l > 0 { 2714 n += 1 + l + sovEvent(uint64(l)) 2715 } 2716 l = len(m.Name) 2717 if l > 0 { 2718 n += 1 + l + sovEvent(uint64(l)) 2719 } 2720 l = len(m.Meta) 2721 if l > 0 { 2722 n += 1 + l + sovEvent(uint64(l)) 2723 } 2724 return n 2725 } 2726 2727 func (m *EventGranted) Size() (n int) { 2728 if m == nil { 2729 return 0 2730 } 2731 var l int 2732 _ = l 2733 l = len(m.ContractId) 2734 if l > 0 { 2735 n += 1 + l + sovEvent(uint64(l)) 2736 } 2737 l = len(m.Granter) 2738 if l > 0 { 2739 n += 1 + l + sovEvent(uint64(l)) 2740 } 2741 l = len(m.Grantee) 2742 if l > 0 { 2743 n += 1 + l + sovEvent(uint64(l)) 2744 } 2745 if m.Permission != 0 { 2746 n += 1 + sovEvent(uint64(m.Permission)) 2747 } 2748 return n 2749 } 2750 2751 func (m *EventRenounced) Size() (n int) { 2752 if m == nil { 2753 return 0 2754 } 2755 var l int 2756 _ = l 2757 l = len(m.ContractId) 2758 if l > 0 { 2759 n += 1 + l + sovEvent(uint64(l)) 2760 } 2761 l = len(m.Grantee) 2762 if l > 0 { 2763 n += 1 + l + sovEvent(uint64(l)) 2764 } 2765 if m.Permission != 0 { 2766 n += 1 + sovEvent(uint64(m.Permission)) 2767 } 2768 return n 2769 } 2770 2771 func (m *EventMintedFT) Size() (n int) { 2772 if m == nil { 2773 return 0 2774 } 2775 var l int 2776 _ = l 2777 l = len(m.ContractId) 2778 if l > 0 { 2779 n += 1 + l + sovEvent(uint64(l)) 2780 } 2781 l = len(m.Operator) 2782 if l > 0 { 2783 n += 1 + l + sovEvent(uint64(l)) 2784 } 2785 l = len(m.To) 2786 if l > 0 { 2787 n += 1 + l + sovEvent(uint64(l)) 2788 } 2789 if len(m.Amount) > 0 { 2790 for _, e := range m.Amount { 2791 l = e.Size() 2792 n += 1 + l + sovEvent(uint64(l)) 2793 } 2794 } 2795 return n 2796 } 2797 2798 func (m *EventMintedNFT) Size() (n int) { 2799 if m == nil { 2800 return 0 2801 } 2802 var l int 2803 _ = l 2804 l = len(m.ContractId) 2805 if l > 0 { 2806 n += 1 + l + sovEvent(uint64(l)) 2807 } 2808 l = len(m.Operator) 2809 if l > 0 { 2810 n += 1 + l + sovEvent(uint64(l)) 2811 } 2812 l = len(m.To) 2813 if l > 0 { 2814 n += 1 + l + sovEvent(uint64(l)) 2815 } 2816 if len(m.Tokens) > 0 { 2817 for _, e := range m.Tokens { 2818 l = e.Size() 2819 n += 1 + l + sovEvent(uint64(l)) 2820 } 2821 } 2822 return n 2823 } 2824 2825 func (m *EventBurned) Size() (n int) { 2826 if m == nil { 2827 return 0 2828 } 2829 var l int 2830 _ = l 2831 l = len(m.ContractId) 2832 if l > 0 { 2833 n += 1 + l + sovEvent(uint64(l)) 2834 } 2835 l = len(m.Operator) 2836 if l > 0 { 2837 n += 1 + l + sovEvent(uint64(l)) 2838 } 2839 l = len(m.From) 2840 if l > 0 { 2841 n += 1 + l + sovEvent(uint64(l)) 2842 } 2843 if len(m.Amount) > 0 { 2844 for _, e := range m.Amount { 2845 l = e.Size() 2846 n += 1 + l + sovEvent(uint64(l)) 2847 } 2848 } 2849 return n 2850 } 2851 2852 func (m *EventModifiedContract) Size() (n int) { 2853 if m == nil { 2854 return 0 2855 } 2856 var l int 2857 _ = l 2858 l = len(m.ContractId) 2859 if l > 0 { 2860 n += 1 + l + sovEvent(uint64(l)) 2861 } 2862 l = len(m.Operator) 2863 if l > 0 { 2864 n += 1 + l + sovEvent(uint64(l)) 2865 } 2866 if len(m.Changes) > 0 { 2867 for _, e := range m.Changes { 2868 l = e.Size() 2869 n += 1 + l + sovEvent(uint64(l)) 2870 } 2871 } 2872 return n 2873 } 2874 2875 func (m *EventModifiedTokenClass) Size() (n int) { 2876 if m == nil { 2877 return 0 2878 } 2879 var l int 2880 _ = l 2881 l = len(m.ContractId) 2882 if l > 0 { 2883 n += 1 + l + sovEvent(uint64(l)) 2884 } 2885 l = len(m.Operator) 2886 if l > 0 { 2887 n += 1 + l + sovEvent(uint64(l)) 2888 } 2889 l = len(m.TokenType) 2890 if l > 0 { 2891 n += 1 + l + sovEvent(uint64(l)) 2892 } 2893 if len(m.Changes) > 0 { 2894 for _, e := range m.Changes { 2895 l = e.Size() 2896 n += 1 + l + sovEvent(uint64(l)) 2897 } 2898 } 2899 l = len(m.TypeName) 2900 if l > 0 { 2901 n += 1 + l + sovEvent(uint64(l)) 2902 } 2903 return n 2904 } 2905 2906 func (m *EventModifiedNFT) Size() (n int) { 2907 if m == nil { 2908 return 0 2909 } 2910 var l int 2911 _ = l 2912 l = len(m.ContractId) 2913 if l > 0 { 2914 n += 1 + l + sovEvent(uint64(l)) 2915 } 2916 l = len(m.Operator) 2917 if l > 0 { 2918 n += 1 + l + sovEvent(uint64(l)) 2919 } 2920 l = len(m.TokenId) 2921 if l > 0 { 2922 n += 1 + l + sovEvent(uint64(l)) 2923 } 2924 if len(m.Changes) > 0 { 2925 for _, e := range m.Changes { 2926 l = e.Size() 2927 n += 1 + l + sovEvent(uint64(l)) 2928 } 2929 } 2930 return n 2931 } 2932 2933 func (m *EventAttached) Size() (n int) { 2934 if m == nil { 2935 return 0 2936 } 2937 var l int 2938 _ = l 2939 l = len(m.ContractId) 2940 if l > 0 { 2941 n += 1 + l + sovEvent(uint64(l)) 2942 } 2943 l = len(m.Operator) 2944 if l > 0 { 2945 n += 1 + l + sovEvent(uint64(l)) 2946 } 2947 l = len(m.Holder) 2948 if l > 0 { 2949 n += 1 + l + sovEvent(uint64(l)) 2950 } 2951 l = len(m.Subject) 2952 if l > 0 { 2953 n += 1 + l + sovEvent(uint64(l)) 2954 } 2955 l = len(m.Target) 2956 if l > 0 { 2957 n += 1 + l + sovEvent(uint64(l)) 2958 } 2959 return n 2960 } 2961 2962 func (m *EventDetached) Size() (n int) { 2963 if m == nil { 2964 return 0 2965 } 2966 var l int 2967 _ = l 2968 l = len(m.ContractId) 2969 if l > 0 { 2970 n += 1 + l + sovEvent(uint64(l)) 2971 } 2972 l = len(m.Operator) 2973 if l > 0 { 2974 n += 1 + l + sovEvent(uint64(l)) 2975 } 2976 l = len(m.Holder) 2977 if l > 0 { 2978 n += 1 + l + sovEvent(uint64(l)) 2979 } 2980 l = len(m.Subject) 2981 if l > 0 { 2982 n += 1 + l + sovEvent(uint64(l)) 2983 } 2984 l = len(m.PreviousParent) 2985 if l > 0 { 2986 n += 1 + l + sovEvent(uint64(l)) 2987 } 2988 return n 2989 } 2990 2991 func (m *EventOwnerChanged) Size() (n int) { 2992 if m == nil { 2993 return 0 2994 } 2995 var l int 2996 _ = l 2997 l = len(m.ContractId) 2998 if l > 0 { 2999 n += 1 + l + sovEvent(uint64(l)) 3000 } 3001 l = len(m.TokenId) 3002 if l > 0 { 3003 n += 1 + l + sovEvent(uint64(l)) 3004 } 3005 l = len(m.From) 3006 if l > 0 { 3007 n += 1 + l + sovEvent(uint64(l)) 3008 } 3009 l = len(m.To) 3010 if l > 0 { 3011 n += 1 + l + sovEvent(uint64(l)) 3012 } 3013 return n 3014 } 3015 3016 func (m *EventRootChanged) Size() (n int) { 3017 if m == nil { 3018 return 0 3019 } 3020 var l int 3021 _ = l 3022 l = len(m.ContractId) 3023 if l > 0 { 3024 n += 1 + l + sovEvent(uint64(l)) 3025 } 3026 l = len(m.TokenId) 3027 if l > 0 { 3028 n += 1 + l + sovEvent(uint64(l)) 3029 } 3030 l = len(m.From) 3031 if l > 0 { 3032 n += 1 + l + sovEvent(uint64(l)) 3033 } 3034 l = len(m.To) 3035 if l > 0 { 3036 n += 1 + l + sovEvent(uint64(l)) 3037 } 3038 return n 3039 } 3040 3041 func sovEvent(x uint64) (n int) { 3042 return (math_bits.Len64(x|1) + 6) / 7 3043 } 3044 func sozEvent(x uint64) (n int) { 3045 return sovEvent(uint64((x << 1) ^ uint64((int64(x) >> 63)))) 3046 } 3047 func (m *EventSent) Unmarshal(dAtA []byte) error { 3048 l := len(dAtA) 3049 iNdEx := 0 3050 for iNdEx < l { 3051 preIndex := iNdEx 3052 var wire uint64 3053 for shift := uint(0); ; shift += 7 { 3054 if shift >= 64 { 3055 return ErrIntOverflowEvent 3056 } 3057 if iNdEx >= l { 3058 return io.ErrUnexpectedEOF 3059 } 3060 b := dAtA[iNdEx] 3061 iNdEx++ 3062 wire |= uint64(b&0x7F) << shift 3063 if b < 0x80 { 3064 break 3065 } 3066 } 3067 fieldNum := int32(wire >> 3) 3068 wireType := int(wire & 0x7) 3069 if wireType == 4 { 3070 return fmt.Errorf("proto: EventSent: wiretype end group for non-group") 3071 } 3072 if fieldNum <= 0 { 3073 return fmt.Errorf("proto: EventSent: illegal tag %d (wire type %d)", fieldNum, wire) 3074 } 3075 switch fieldNum { 3076 case 1: 3077 if wireType != 2 { 3078 return fmt.Errorf("proto: wrong wireType = %d for field ContractId", wireType) 3079 } 3080 var stringLen uint64 3081 for shift := uint(0); ; shift += 7 { 3082 if shift >= 64 { 3083 return ErrIntOverflowEvent 3084 } 3085 if iNdEx >= l { 3086 return io.ErrUnexpectedEOF 3087 } 3088 b := dAtA[iNdEx] 3089 iNdEx++ 3090 stringLen |= uint64(b&0x7F) << shift 3091 if b < 0x80 { 3092 break 3093 } 3094 } 3095 intStringLen := int(stringLen) 3096 if intStringLen < 0 { 3097 return ErrInvalidLengthEvent 3098 } 3099 postIndex := iNdEx + intStringLen 3100 if postIndex < 0 { 3101 return ErrInvalidLengthEvent 3102 } 3103 if postIndex > l { 3104 return io.ErrUnexpectedEOF 3105 } 3106 m.ContractId = string(dAtA[iNdEx:postIndex]) 3107 iNdEx = postIndex 3108 case 2: 3109 if wireType != 2 { 3110 return fmt.Errorf("proto: wrong wireType = %d for field Operator", wireType) 3111 } 3112 var stringLen uint64 3113 for shift := uint(0); ; shift += 7 { 3114 if shift >= 64 { 3115 return ErrIntOverflowEvent 3116 } 3117 if iNdEx >= l { 3118 return io.ErrUnexpectedEOF 3119 } 3120 b := dAtA[iNdEx] 3121 iNdEx++ 3122 stringLen |= uint64(b&0x7F) << shift 3123 if b < 0x80 { 3124 break 3125 } 3126 } 3127 intStringLen := int(stringLen) 3128 if intStringLen < 0 { 3129 return ErrInvalidLengthEvent 3130 } 3131 postIndex := iNdEx + intStringLen 3132 if postIndex < 0 { 3133 return ErrInvalidLengthEvent 3134 } 3135 if postIndex > l { 3136 return io.ErrUnexpectedEOF 3137 } 3138 m.Operator = string(dAtA[iNdEx:postIndex]) 3139 iNdEx = postIndex 3140 case 3: 3141 if wireType != 2 { 3142 return fmt.Errorf("proto: wrong wireType = %d for field From", wireType) 3143 } 3144 var stringLen uint64 3145 for shift := uint(0); ; shift += 7 { 3146 if shift >= 64 { 3147 return ErrIntOverflowEvent 3148 } 3149 if iNdEx >= l { 3150 return io.ErrUnexpectedEOF 3151 } 3152 b := dAtA[iNdEx] 3153 iNdEx++ 3154 stringLen |= uint64(b&0x7F) << shift 3155 if b < 0x80 { 3156 break 3157 } 3158 } 3159 intStringLen := int(stringLen) 3160 if intStringLen < 0 { 3161 return ErrInvalidLengthEvent 3162 } 3163 postIndex := iNdEx + intStringLen 3164 if postIndex < 0 { 3165 return ErrInvalidLengthEvent 3166 } 3167 if postIndex > l { 3168 return io.ErrUnexpectedEOF 3169 } 3170 m.From = string(dAtA[iNdEx:postIndex]) 3171 iNdEx = postIndex 3172 case 4: 3173 if wireType != 2 { 3174 return fmt.Errorf("proto: wrong wireType = %d for field To", wireType) 3175 } 3176 var stringLen uint64 3177 for shift := uint(0); ; shift += 7 { 3178 if shift >= 64 { 3179 return ErrIntOverflowEvent 3180 } 3181 if iNdEx >= l { 3182 return io.ErrUnexpectedEOF 3183 } 3184 b := dAtA[iNdEx] 3185 iNdEx++ 3186 stringLen |= uint64(b&0x7F) << shift 3187 if b < 0x80 { 3188 break 3189 } 3190 } 3191 intStringLen := int(stringLen) 3192 if intStringLen < 0 { 3193 return ErrInvalidLengthEvent 3194 } 3195 postIndex := iNdEx + intStringLen 3196 if postIndex < 0 { 3197 return ErrInvalidLengthEvent 3198 } 3199 if postIndex > l { 3200 return io.ErrUnexpectedEOF 3201 } 3202 m.To = string(dAtA[iNdEx:postIndex]) 3203 iNdEx = postIndex 3204 case 5: 3205 if wireType != 2 { 3206 return fmt.Errorf("proto: wrong wireType = %d for field Amount", wireType) 3207 } 3208 var msglen int 3209 for shift := uint(0); ; shift += 7 { 3210 if shift >= 64 { 3211 return ErrIntOverflowEvent 3212 } 3213 if iNdEx >= l { 3214 return io.ErrUnexpectedEOF 3215 } 3216 b := dAtA[iNdEx] 3217 iNdEx++ 3218 msglen |= int(b&0x7F) << shift 3219 if b < 0x80 { 3220 break 3221 } 3222 } 3223 if msglen < 0 { 3224 return ErrInvalidLengthEvent 3225 } 3226 postIndex := iNdEx + msglen 3227 if postIndex < 0 { 3228 return ErrInvalidLengthEvent 3229 } 3230 if postIndex > l { 3231 return io.ErrUnexpectedEOF 3232 } 3233 m.Amount = append(m.Amount, Coin{}) 3234 if err := m.Amount[len(m.Amount)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 3235 return err 3236 } 3237 iNdEx = postIndex 3238 default: 3239 iNdEx = preIndex 3240 skippy, err := skipEvent(dAtA[iNdEx:]) 3241 if err != nil { 3242 return err 3243 } 3244 if (skippy < 0) || (iNdEx+skippy) < 0 { 3245 return ErrInvalidLengthEvent 3246 } 3247 if (iNdEx + skippy) > l { 3248 return io.ErrUnexpectedEOF 3249 } 3250 iNdEx += skippy 3251 } 3252 } 3253 3254 if iNdEx > l { 3255 return io.ErrUnexpectedEOF 3256 } 3257 return nil 3258 } 3259 func (m *EventAuthorizedOperator) Unmarshal(dAtA []byte) error { 3260 l := len(dAtA) 3261 iNdEx := 0 3262 for iNdEx < l { 3263 preIndex := iNdEx 3264 var wire uint64 3265 for shift := uint(0); ; shift += 7 { 3266 if shift >= 64 { 3267 return ErrIntOverflowEvent 3268 } 3269 if iNdEx >= l { 3270 return io.ErrUnexpectedEOF 3271 } 3272 b := dAtA[iNdEx] 3273 iNdEx++ 3274 wire |= uint64(b&0x7F) << shift 3275 if b < 0x80 { 3276 break 3277 } 3278 } 3279 fieldNum := int32(wire >> 3) 3280 wireType := int(wire & 0x7) 3281 if wireType == 4 { 3282 return fmt.Errorf("proto: EventAuthorizedOperator: wiretype end group for non-group") 3283 } 3284 if fieldNum <= 0 { 3285 return fmt.Errorf("proto: EventAuthorizedOperator: illegal tag %d (wire type %d)", fieldNum, wire) 3286 } 3287 switch fieldNum { 3288 case 1: 3289 if wireType != 2 { 3290 return fmt.Errorf("proto: wrong wireType = %d for field ContractId", wireType) 3291 } 3292 var stringLen uint64 3293 for shift := uint(0); ; shift += 7 { 3294 if shift >= 64 { 3295 return ErrIntOverflowEvent 3296 } 3297 if iNdEx >= l { 3298 return io.ErrUnexpectedEOF 3299 } 3300 b := dAtA[iNdEx] 3301 iNdEx++ 3302 stringLen |= uint64(b&0x7F) << shift 3303 if b < 0x80 { 3304 break 3305 } 3306 } 3307 intStringLen := int(stringLen) 3308 if intStringLen < 0 { 3309 return ErrInvalidLengthEvent 3310 } 3311 postIndex := iNdEx + intStringLen 3312 if postIndex < 0 { 3313 return ErrInvalidLengthEvent 3314 } 3315 if postIndex > l { 3316 return io.ErrUnexpectedEOF 3317 } 3318 m.ContractId = string(dAtA[iNdEx:postIndex]) 3319 iNdEx = postIndex 3320 case 2: 3321 if wireType != 2 { 3322 return fmt.Errorf("proto: wrong wireType = %d for field Holder", wireType) 3323 } 3324 var stringLen uint64 3325 for shift := uint(0); ; shift += 7 { 3326 if shift >= 64 { 3327 return ErrIntOverflowEvent 3328 } 3329 if iNdEx >= l { 3330 return io.ErrUnexpectedEOF 3331 } 3332 b := dAtA[iNdEx] 3333 iNdEx++ 3334 stringLen |= uint64(b&0x7F) << shift 3335 if b < 0x80 { 3336 break 3337 } 3338 } 3339 intStringLen := int(stringLen) 3340 if intStringLen < 0 { 3341 return ErrInvalidLengthEvent 3342 } 3343 postIndex := iNdEx + intStringLen 3344 if postIndex < 0 { 3345 return ErrInvalidLengthEvent 3346 } 3347 if postIndex > l { 3348 return io.ErrUnexpectedEOF 3349 } 3350 m.Holder = string(dAtA[iNdEx:postIndex]) 3351 iNdEx = postIndex 3352 case 3: 3353 if wireType != 2 { 3354 return fmt.Errorf("proto: wrong wireType = %d for field Operator", wireType) 3355 } 3356 var stringLen uint64 3357 for shift := uint(0); ; shift += 7 { 3358 if shift >= 64 { 3359 return ErrIntOverflowEvent 3360 } 3361 if iNdEx >= l { 3362 return io.ErrUnexpectedEOF 3363 } 3364 b := dAtA[iNdEx] 3365 iNdEx++ 3366 stringLen |= uint64(b&0x7F) << shift 3367 if b < 0x80 { 3368 break 3369 } 3370 } 3371 intStringLen := int(stringLen) 3372 if intStringLen < 0 { 3373 return ErrInvalidLengthEvent 3374 } 3375 postIndex := iNdEx + intStringLen 3376 if postIndex < 0 { 3377 return ErrInvalidLengthEvent 3378 } 3379 if postIndex > l { 3380 return io.ErrUnexpectedEOF 3381 } 3382 m.Operator = string(dAtA[iNdEx:postIndex]) 3383 iNdEx = postIndex 3384 default: 3385 iNdEx = preIndex 3386 skippy, err := skipEvent(dAtA[iNdEx:]) 3387 if err != nil { 3388 return err 3389 } 3390 if (skippy < 0) || (iNdEx+skippy) < 0 { 3391 return ErrInvalidLengthEvent 3392 } 3393 if (iNdEx + skippy) > l { 3394 return io.ErrUnexpectedEOF 3395 } 3396 iNdEx += skippy 3397 } 3398 } 3399 3400 if iNdEx > l { 3401 return io.ErrUnexpectedEOF 3402 } 3403 return nil 3404 } 3405 func (m *EventRevokedOperator) Unmarshal(dAtA []byte) error { 3406 l := len(dAtA) 3407 iNdEx := 0 3408 for iNdEx < l { 3409 preIndex := iNdEx 3410 var wire uint64 3411 for shift := uint(0); ; shift += 7 { 3412 if shift >= 64 { 3413 return ErrIntOverflowEvent 3414 } 3415 if iNdEx >= l { 3416 return io.ErrUnexpectedEOF 3417 } 3418 b := dAtA[iNdEx] 3419 iNdEx++ 3420 wire |= uint64(b&0x7F) << shift 3421 if b < 0x80 { 3422 break 3423 } 3424 } 3425 fieldNum := int32(wire >> 3) 3426 wireType := int(wire & 0x7) 3427 if wireType == 4 { 3428 return fmt.Errorf("proto: EventRevokedOperator: wiretype end group for non-group") 3429 } 3430 if fieldNum <= 0 { 3431 return fmt.Errorf("proto: EventRevokedOperator: illegal tag %d (wire type %d)", fieldNum, wire) 3432 } 3433 switch fieldNum { 3434 case 1: 3435 if wireType != 2 { 3436 return fmt.Errorf("proto: wrong wireType = %d for field ContractId", wireType) 3437 } 3438 var stringLen uint64 3439 for shift := uint(0); ; shift += 7 { 3440 if shift >= 64 { 3441 return ErrIntOverflowEvent 3442 } 3443 if iNdEx >= l { 3444 return io.ErrUnexpectedEOF 3445 } 3446 b := dAtA[iNdEx] 3447 iNdEx++ 3448 stringLen |= uint64(b&0x7F) << shift 3449 if b < 0x80 { 3450 break 3451 } 3452 } 3453 intStringLen := int(stringLen) 3454 if intStringLen < 0 { 3455 return ErrInvalidLengthEvent 3456 } 3457 postIndex := iNdEx + intStringLen 3458 if postIndex < 0 { 3459 return ErrInvalidLengthEvent 3460 } 3461 if postIndex > l { 3462 return io.ErrUnexpectedEOF 3463 } 3464 m.ContractId = string(dAtA[iNdEx:postIndex]) 3465 iNdEx = postIndex 3466 case 2: 3467 if wireType != 2 { 3468 return fmt.Errorf("proto: wrong wireType = %d for field Holder", wireType) 3469 } 3470 var stringLen uint64 3471 for shift := uint(0); ; shift += 7 { 3472 if shift >= 64 { 3473 return ErrIntOverflowEvent 3474 } 3475 if iNdEx >= l { 3476 return io.ErrUnexpectedEOF 3477 } 3478 b := dAtA[iNdEx] 3479 iNdEx++ 3480 stringLen |= uint64(b&0x7F) << shift 3481 if b < 0x80 { 3482 break 3483 } 3484 } 3485 intStringLen := int(stringLen) 3486 if intStringLen < 0 { 3487 return ErrInvalidLengthEvent 3488 } 3489 postIndex := iNdEx + intStringLen 3490 if postIndex < 0 { 3491 return ErrInvalidLengthEvent 3492 } 3493 if postIndex > l { 3494 return io.ErrUnexpectedEOF 3495 } 3496 m.Holder = string(dAtA[iNdEx:postIndex]) 3497 iNdEx = postIndex 3498 case 3: 3499 if wireType != 2 { 3500 return fmt.Errorf("proto: wrong wireType = %d for field Operator", wireType) 3501 } 3502 var stringLen uint64 3503 for shift := uint(0); ; shift += 7 { 3504 if shift >= 64 { 3505 return ErrIntOverflowEvent 3506 } 3507 if iNdEx >= l { 3508 return io.ErrUnexpectedEOF 3509 } 3510 b := dAtA[iNdEx] 3511 iNdEx++ 3512 stringLen |= uint64(b&0x7F) << shift 3513 if b < 0x80 { 3514 break 3515 } 3516 } 3517 intStringLen := int(stringLen) 3518 if intStringLen < 0 { 3519 return ErrInvalidLengthEvent 3520 } 3521 postIndex := iNdEx + intStringLen 3522 if postIndex < 0 { 3523 return ErrInvalidLengthEvent 3524 } 3525 if postIndex > l { 3526 return io.ErrUnexpectedEOF 3527 } 3528 m.Operator = string(dAtA[iNdEx:postIndex]) 3529 iNdEx = postIndex 3530 default: 3531 iNdEx = preIndex 3532 skippy, err := skipEvent(dAtA[iNdEx:]) 3533 if err != nil { 3534 return err 3535 } 3536 if (skippy < 0) || (iNdEx+skippy) < 0 { 3537 return ErrInvalidLengthEvent 3538 } 3539 if (iNdEx + skippy) > l { 3540 return io.ErrUnexpectedEOF 3541 } 3542 iNdEx += skippy 3543 } 3544 } 3545 3546 if iNdEx > l { 3547 return io.ErrUnexpectedEOF 3548 } 3549 return nil 3550 } 3551 func (m *EventCreatedContract) Unmarshal(dAtA []byte) error { 3552 l := len(dAtA) 3553 iNdEx := 0 3554 for iNdEx < l { 3555 preIndex := iNdEx 3556 var wire uint64 3557 for shift := uint(0); ; shift += 7 { 3558 if shift >= 64 { 3559 return ErrIntOverflowEvent 3560 } 3561 if iNdEx >= l { 3562 return io.ErrUnexpectedEOF 3563 } 3564 b := dAtA[iNdEx] 3565 iNdEx++ 3566 wire |= uint64(b&0x7F) << shift 3567 if b < 0x80 { 3568 break 3569 } 3570 } 3571 fieldNum := int32(wire >> 3) 3572 wireType := int(wire & 0x7) 3573 if wireType == 4 { 3574 return fmt.Errorf("proto: EventCreatedContract: wiretype end group for non-group") 3575 } 3576 if fieldNum <= 0 { 3577 return fmt.Errorf("proto: EventCreatedContract: illegal tag %d (wire type %d)", fieldNum, wire) 3578 } 3579 switch fieldNum { 3580 case 1: 3581 if wireType != 2 { 3582 return fmt.Errorf("proto: wrong wireType = %d for field Creator", wireType) 3583 } 3584 var stringLen uint64 3585 for shift := uint(0); ; shift += 7 { 3586 if shift >= 64 { 3587 return ErrIntOverflowEvent 3588 } 3589 if iNdEx >= l { 3590 return io.ErrUnexpectedEOF 3591 } 3592 b := dAtA[iNdEx] 3593 iNdEx++ 3594 stringLen |= uint64(b&0x7F) << shift 3595 if b < 0x80 { 3596 break 3597 } 3598 } 3599 intStringLen := int(stringLen) 3600 if intStringLen < 0 { 3601 return ErrInvalidLengthEvent 3602 } 3603 postIndex := iNdEx + intStringLen 3604 if postIndex < 0 { 3605 return ErrInvalidLengthEvent 3606 } 3607 if postIndex > l { 3608 return io.ErrUnexpectedEOF 3609 } 3610 m.Creator = string(dAtA[iNdEx:postIndex]) 3611 iNdEx = postIndex 3612 case 2: 3613 if wireType != 2 { 3614 return fmt.Errorf("proto: wrong wireType = %d for field ContractId", wireType) 3615 } 3616 var stringLen uint64 3617 for shift := uint(0); ; shift += 7 { 3618 if shift >= 64 { 3619 return ErrIntOverflowEvent 3620 } 3621 if iNdEx >= l { 3622 return io.ErrUnexpectedEOF 3623 } 3624 b := dAtA[iNdEx] 3625 iNdEx++ 3626 stringLen |= uint64(b&0x7F) << shift 3627 if b < 0x80 { 3628 break 3629 } 3630 } 3631 intStringLen := int(stringLen) 3632 if intStringLen < 0 { 3633 return ErrInvalidLengthEvent 3634 } 3635 postIndex := iNdEx + intStringLen 3636 if postIndex < 0 { 3637 return ErrInvalidLengthEvent 3638 } 3639 if postIndex > l { 3640 return io.ErrUnexpectedEOF 3641 } 3642 m.ContractId = string(dAtA[iNdEx:postIndex]) 3643 iNdEx = postIndex 3644 case 3: 3645 if wireType != 2 { 3646 return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) 3647 } 3648 var stringLen uint64 3649 for shift := uint(0); ; shift += 7 { 3650 if shift >= 64 { 3651 return ErrIntOverflowEvent 3652 } 3653 if iNdEx >= l { 3654 return io.ErrUnexpectedEOF 3655 } 3656 b := dAtA[iNdEx] 3657 iNdEx++ 3658 stringLen |= uint64(b&0x7F) << shift 3659 if b < 0x80 { 3660 break 3661 } 3662 } 3663 intStringLen := int(stringLen) 3664 if intStringLen < 0 { 3665 return ErrInvalidLengthEvent 3666 } 3667 postIndex := iNdEx + intStringLen 3668 if postIndex < 0 { 3669 return ErrInvalidLengthEvent 3670 } 3671 if postIndex > l { 3672 return io.ErrUnexpectedEOF 3673 } 3674 m.Name = string(dAtA[iNdEx:postIndex]) 3675 iNdEx = postIndex 3676 case 4: 3677 if wireType != 2 { 3678 return fmt.Errorf("proto: wrong wireType = %d for field Meta", wireType) 3679 } 3680 var stringLen uint64 3681 for shift := uint(0); ; shift += 7 { 3682 if shift >= 64 { 3683 return ErrIntOverflowEvent 3684 } 3685 if iNdEx >= l { 3686 return io.ErrUnexpectedEOF 3687 } 3688 b := dAtA[iNdEx] 3689 iNdEx++ 3690 stringLen |= uint64(b&0x7F) << shift 3691 if b < 0x80 { 3692 break 3693 } 3694 } 3695 intStringLen := int(stringLen) 3696 if intStringLen < 0 { 3697 return ErrInvalidLengthEvent 3698 } 3699 postIndex := iNdEx + intStringLen 3700 if postIndex < 0 { 3701 return ErrInvalidLengthEvent 3702 } 3703 if postIndex > l { 3704 return io.ErrUnexpectedEOF 3705 } 3706 m.Meta = string(dAtA[iNdEx:postIndex]) 3707 iNdEx = postIndex 3708 case 5: 3709 if wireType != 2 { 3710 return fmt.Errorf("proto: wrong wireType = %d for field Uri", wireType) 3711 } 3712 var stringLen uint64 3713 for shift := uint(0); ; shift += 7 { 3714 if shift >= 64 { 3715 return ErrIntOverflowEvent 3716 } 3717 if iNdEx >= l { 3718 return io.ErrUnexpectedEOF 3719 } 3720 b := dAtA[iNdEx] 3721 iNdEx++ 3722 stringLen |= uint64(b&0x7F) << shift 3723 if b < 0x80 { 3724 break 3725 } 3726 } 3727 intStringLen := int(stringLen) 3728 if intStringLen < 0 { 3729 return ErrInvalidLengthEvent 3730 } 3731 postIndex := iNdEx + intStringLen 3732 if postIndex < 0 { 3733 return ErrInvalidLengthEvent 3734 } 3735 if postIndex > l { 3736 return io.ErrUnexpectedEOF 3737 } 3738 m.Uri = string(dAtA[iNdEx:postIndex]) 3739 iNdEx = postIndex 3740 default: 3741 iNdEx = preIndex 3742 skippy, err := skipEvent(dAtA[iNdEx:]) 3743 if err != nil { 3744 return err 3745 } 3746 if (skippy < 0) || (iNdEx+skippy) < 0 { 3747 return ErrInvalidLengthEvent 3748 } 3749 if (iNdEx + skippy) > l { 3750 return io.ErrUnexpectedEOF 3751 } 3752 iNdEx += skippy 3753 } 3754 } 3755 3756 if iNdEx > l { 3757 return io.ErrUnexpectedEOF 3758 } 3759 return nil 3760 } 3761 func (m *EventCreatedFTClass) Unmarshal(dAtA []byte) error { 3762 l := len(dAtA) 3763 iNdEx := 0 3764 for iNdEx < l { 3765 preIndex := iNdEx 3766 var wire uint64 3767 for shift := uint(0); ; shift += 7 { 3768 if shift >= 64 { 3769 return ErrIntOverflowEvent 3770 } 3771 if iNdEx >= l { 3772 return io.ErrUnexpectedEOF 3773 } 3774 b := dAtA[iNdEx] 3775 iNdEx++ 3776 wire |= uint64(b&0x7F) << shift 3777 if b < 0x80 { 3778 break 3779 } 3780 } 3781 fieldNum := int32(wire >> 3) 3782 wireType := int(wire & 0x7) 3783 if wireType == 4 { 3784 return fmt.Errorf("proto: EventCreatedFTClass: wiretype end group for non-group") 3785 } 3786 if fieldNum <= 0 { 3787 return fmt.Errorf("proto: EventCreatedFTClass: illegal tag %d (wire type %d)", fieldNum, wire) 3788 } 3789 switch fieldNum { 3790 case 1: 3791 if wireType != 2 { 3792 return fmt.Errorf("proto: wrong wireType = %d for field ContractId", wireType) 3793 } 3794 var stringLen uint64 3795 for shift := uint(0); ; shift += 7 { 3796 if shift >= 64 { 3797 return ErrIntOverflowEvent 3798 } 3799 if iNdEx >= l { 3800 return io.ErrUnexpectedEOF 3801 } 3802 b := dAtA[iNdEx] 3803 iNdEx++ 3804 stringLen |= uint64(b&0x7F) << shift 3805 if b < 0x80 { 3806 break 3807 } 3808 } 3809 intStringLen := int(stringLen) 3810 if intStringLen < 0 { 3811 return ErrInvalidLengthEvent 3812 } 3813 postIndex := iNdEx + intStringLen 3814 if postIndex < 0 { 3815 return ErrInvalidLengthEvent 3816 } 3817 if postIndex > l { 3818 return io.ErrUnexpectedEOF 3819 } 3820 m.ContractId = string(dAtA[iNdEx:postIndex]) 3821 iNdEx = postIndex 3822 case 2: 3823 if wireType != 2 { 3824 return fmt.Errorf("proto: wrong wireType = %d for field Operator", wireType) 3825 } 3826 var stringLen uint64 3827 for shift := uint(0); ; shift += 7 { 3828 if shift >= 64 { 3829 return ErrIntOverflowEvent 3830 } 3831 if iNdEx >= l { 3832 return io.ErrUnexpectedEOF 3833 } 3834 b := dAtA[iNdEx] 3835 iNdEx++ 3836 stringLen |= uint64(b&0x7F) << shift 3837 if b < 0x80 { 3838 break 3839 } 3840 } 3841 intStringLen := int(stringLen) 3842 if intStringLen < 0 { 3843 return ErrInvalidLengthEvent 3844 } 3845 postIndex := iNdEx + intStringLen 3846 if postIndex < 0 { 3847 return ErrInvalidLengthEvent 3848 } 3849 if postIndex > l { 3850 return io.ErrUnexpectedEOF 3851 } 3852 m.Operator = string(dAtA[iNdEx:postIndex]) 3853 iNdEx = postIndex 3854 case 3: 3855 if wireType != 2 { 3856 return fmt.Errorf("proto: wrong wireType = %d for field TokenId", wireType) 3857 } 3858 var stringLen uint64 3859 for shift := uint(0); ; shift += 7 { 3860 if shift >= 64 { 3861 return ErrIntOverflowEvent 3862 } 3863 if iNdEx >= l { 3864 return io.ErrUnexpectedEOF 3865 } 3866 b := dAtA[iNdEx] 3867 iNdEx++ 3868 stringLen |= uint64(b&0x7F) << shift 3869 if b < 0x80 { 3870 break 3871 } 3872 } 3873 intStringLen := int(stringLen) 3874 if intStringLen < 0 { 3875 return ErrInvalidLengthEvent 3876 } 3877 postIndex := iNdEx + intStringLen 3878 if postIndex < 0 { 3879 return ErrInvalidLengthEvent 3880 } 3881 if postIndex > l { 3882 return io.ErrUnexpectedEOF 3883 } 3884 m.TokenId = string(dAtA[iNdEx:postIndex]) 3885 iNdEx = postIndex 3886 case 4: 3887 if wireType != 2 { 3888 return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) 3889 } 3890 var stringLen uint64 3891 for shift := uint(0); ; shift += 7 { 3892 if shift >= 64 { 3893 return ErrIntOverflowEvent 3894 } 3895 if iNdEx >= l { 3896 return io.ErrUnexpectedEOF 3897 } 3898 b := dAtA[iNdEx] 3899 iNdEx++ 3900 stringLen |= uint64(b&0x7F) << shift 3901 if b < 0x80 { 3902 break 3903 } 3904 } 3905 intStringLen := int(stringLen) 3906 if intStringLen < 0 { 3907 return ErrInvalidLengthEvent 3908 } 3909 postIndex := iNdEx + intStringLen 3910 if postIndex < 0 { 3911 return ErrInvalidLengthEvent 3912 } 3913 if postIndex > l { 3914 return io.ErrUnexpectedEOF 3915 } 3916 m.Name = string(dAtA[iNdEx:postIndex]) 3917 iNdEx = postIndex 3918 case 5: 3919 if wireType != 2 { 3920 return fmt.Errorf("proto: wrong wireType = %d for field Meta", wireType) 3921 } 3922 var stringLen uint64 3923 for shift := uint(0); ; shift += 7 { 3924 if shift >= 64 { 3925 return ErrIntOverflowEvent 3926 } 3927 if iNdEx >= l { 3928 return io.ErrUnexpectedEOF 3929 } 3930 b := dAtA[iNdEx] 3931 iNdEx++ 3932 stringLen |= uint64(b&0x7F) << shift 3933 if b < 0x80 { 3934 break 3935 } 3936 } 3937 intStringLen := int(stringLen) 3938 if intStringLen < 0 { 3939 return ErrInvalidLengthEvent 3940 } 3941 postIndex := iNdEx + intStringLen 3942 if postIndex < 0 { 3943 return ErrInvalidLengthEvent 3944 } 3945 if postIndex > l { 3946 return io.ErrUnexpectedEOF 3947 } 3948 m.Meta = string(dAtA[iNdEx:postIndex]) 3949 iNdEx = postIndex 3950 case 6: 3951 if wireType != 0 { 3952 return fmt.Errorf("proto: wrong wireType = %d for field Decimals", wireType) 3953 } 3954 m.Decimals = 0 3955 for shift := uint(0); ; shift += 7 { 3956 if shift >= 64 { 3957 return ErrIntOverflowEvent 3958 } 3959 if iNdEx >= l { 3960 return io.ErrUnexpectedEOF 3961 } 3962 b := dAtA[iNdEx] 3963 iNdEx++ 3964 m.Decimals |= int32(b&0x7F) << shift 3965 if b < 0x80 { 3966 break 3967 } 3968 } 3969 case 7: 3970 if wireType != 0 { 3971 return fmt.Errorf("proto: wrong wireType = %d for field Mintable", wireType) 3972 } 3973 var v int 3974 for shift := uint(0); ; shift += 7 { 3975 if shift >= 64 { 3976 return ErrIntOverflowEvent 3977 } 3978 if iNdEx >= l { 3979 return io.ErrUnexpectedEOF 3980 } 3981 b := dAtA[iNdEx] 3982 iNdEx++ 3983 v |= int(b&0x7F) << shift 3984 if b < 0x80 { 3985 break 3986 } 3987 } 3988 m.Mintable = bool(v != 0) 3989 default: 3990 iNdEx = preIndex 3991 skippy, err := skipEvent(dAtA[iNdEx:]) 3992 if err != nil { 3993 return err 3994 } 3995 if (skippy < 0) || (iNdEx+skippy) < 0 { 3996 return ErrInvalidLengthEvent 3997 } 3998 if (iNdEx + skippy) > l { 3999 return io.ErrUnexpectedEOF 4000 } 4001 iNdEx += skippy 4002 } 4003 } 4004 4005 if iNdEx > l { 4006 return io.ErrUnexpectedEOF 4007 } 4008 return nil 4009 } 4010 func (m *EventCreatedNFTClass) Unmarshal(dAtA []byte) error { 4011 l := len(dAtA) 4012 iNdEx := 0 4013 for iNdEx < l { 4014 preIndex := iNdEx 4015 var wire uint64 4016 for shift := uint(0); ; shift += 7 { 4017 if shift >= 64 { 4018 return ErrIntOverflowEvent 4019 } 4020 if iNdEx >= l { 4021 return io.ErrUnexpectedEOF 4022 } 4023 b := dAtA[iNdEx] 4024 iNdEx++ 4025 wire |= uint64(b&0x7F) << shift 4026 if b < 0x80 { 4027 break 4028 } 4029 } 4030 fieldNum := int32(wire >> 3) 4031 wireType := int(wire & 0x7) 4032 if wireType == 4 { 4033 return fmt.Errorf("proto: EventCreatedNFTClass: wiretype end group for non-group") 4034 } 4035 if fieldNum <= 0 { 4036 return fmt.Errorf("proto: EventCreatedNFTClass: illegal tag %d (wire type %d)", fieldNum, wire) 4037 } 4038 switch fieldNum { 4039 case 1: 4040 if wireType != 2 { 4041 return fmt.Errorf("proto: wrong wireType = %d for field ContractId", wireType) 4042 } 4043 var stringLen uint64 4044 for shift := uint(0); ; shift += 7 { 4045 if shift >= 64 { 4046 return ErrIntOverflowEvent 4047 } 4048 if iNdEx >= l { 4049 return io.ErrUnexpectedEOF 4050 } 4051 b := dAtA[iNdEx] 4052 iNdEx++ 4053 stringLen |= uint64(b&0x7F) << shift 4054 if b < 0x80 { 4055 break 4056 } 4057 } 4058 intStringLen := int(stringLen) 4059 if intStringLen < 0 { 4060 return ErrInvalidLengthEvent 4061 } 4062 postIndex := iNdEx + intStringLen 4063 if postIndex < 0 { 4064 return ErrInvalidLengthEvent 4065 } 4066 if postIndex > l { 4067 return io.ErrUnexpectedEOF 4068 } 4069 m.ContractId = string(dAtA[iNdEx:postIndex]) 4070 iNdEx = postIndex 4071 case 2: 4072 if wireType != 2 { 4073 return fmt.Errorf("proto: wrong wireType = %d for field Operator", wireType) 4074 } 4075 var stringLen uint64 4076 for shift := uint(0); ; shift += 7 { 4077 if shift >= 64 { 4078 return ErrIntOverflowEvent 4079 } 4080 if iNdEx >= l { 4081 return io.ErrUnexpectedEOF 4082 } 4083 b := dAtA[iNdEx] 4084 iNdEx++ 4085 stringLen |= uint64(b&0x7F) << shift 4086 if b < 0x80 { 4087 break 4088 } 4089 } 4090 intStringLen := int(stringLen) 4091 if intStringLen < 0 { 4092 return ErrInvalidLengthEvent 4093 } 4094 postIndex := iNdEx + intStringLen 4095 if postIndex < 0 { 4096 return ErrInvalidLengthEvent 4097 } 4098 if postIndex > l { 4099 return io.ErrUnexpectedEOF 4100 } 4101 m.Operator = string(dAtA[iNdEx:postIndex]) 4102 iNdEx = postIndex 4103 case 3: 4104 if wireType != 2 { 4105 return fmt.Errorf("proto: wrong wireType = %d for field TokenType", wireType) 4106 } 4107 var stringLen uint64 4108 for shift := uint(0); ; shift += 7 { 4109 if shift >= 64 { 4110 return ErrIntOverflowEvent 4111 } 4112 if iNdEx >= l { 4113 return io.ErrUnexpectedEOF 4114 } 4115 b := dAtA[iNdEx] 4116 iNdEx++ 4117 stringLen |= uint64(b&0x7F) << shift 4118 if b < 0x80 { 4119 break 4120 } 4121 } 4122 intStringLen := int(stringLen) 4123 if intStringLen < 0 { 4124 return ErrInvalidLengthEvent 4125 } 4126 postIndex := iNdEx + intStringLen 4127 if postIndex < 0 { 4128 return ErrInvalidLengthEvent 4129 } 4130 if postIndex > l { 4131 return io.ErrUnexpectedEOF 4132 } 4133 m.TokenType = string(dAtA[iNdEx:postIndex]) 4134 iNdEx = postIndex 4135 case 4: 4136 if wireType != 2 { 4137 return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) 4138 } 4139 var stringLen uint64 4140 for shift := uint(0); ; shift += 7 { 4141 if shift >= 64 { 4142 return ErrIntOverflowEvent 4143 } 4144 if iNdEx >= l { 4145 return io.ErrUnexpectedEOF 4146 } 4147 b := dAtA[iNdEx] 4148 iNdEx++ 4149 stringLen |= uint64(b&0x7F) << shift 4150 if b < 0x80 { 4151 break 4152 } 4153 } 4154 intStringLen := int(stringLen) 4155 if intStringLen < 0 { 4156 return ErrInvalidLengthEvent 4157 } 4158 postIndex := iNdEx + intStringLen 4159 if postIndex < 0 { 4160 return ErrInvalidLengthEvent 4161 } 4162 if postIndex > l { 4163 return io.ErrUnexpectedEOF 4164 } 4165 m.Name = string(dAtA[iNdEx:postIndex]) 4166 iNdEx = postIndex 4167 case 5: 4168 if wireType != 2 { 4169 return fmt.Errorf("proto: wrong wireType = %d for field Meta", wireType) 4170 } 4171 var stringLen uint64 4172 for shift := uint(0); ; shift += 7 { 4173 if shift >= 64 { 4174 return ErrIntOverflowEvent 4175 } 4176 if iNdEx >= l { 4177 return io.ErrUnexpectedEOF 4178 } 4179 b := dAtA[iNdEx] 4180 iNdEx++ 4181 stringLen |= uint64(b&0x7F) << shift 4182 if b < 0x80 { 4183 break 4184 } 4185 } 4186 intStringLen := int(stringLen) 4187 if intStringLen < 0 { 4188 return ErrInvalidLengthEvent 4189 } 4190 postIndex := iNdEx + intStringLen 4191 if postIndex < 0 { 4192 return ErrInvalidLengthEvent 4193 } 4194 if postIndex > l { 4195 return io.ErrUnexpectedEOF 4196 } 4197 m.Meta = string(dAtA[iNdEx:postIndex]) 4198 iNdEx = postIndex 4199 default: 4200 iNdEx = preIndex 4201 skippy, err := skipEvent(dAtA[iNdEx:]) 4202 if err != nil { 4203 return err 4204 } 4205 if (skippy < 0) || (iNdEx+skippy) < 0 { 4206 return ErrInvalidLengthEvent 4207 } 4208 if (iNdEx + skippy) > l { 4209 return io.ErrUnexpectedEOF 4210 } 4211 iNdEx += skippy 4212 } 4213 } 4214 4215 if iNdEx > l { 4216 return io.ErrUnexpectedEOF 4217 } 4218 return nil 4219 } 4220 func (m *EventGranted) Unmarshal(dAtA []byte) error { 4221 l := len(dAtA) 4222 iNdEx := 0 4223 for iNdEx < l { 4224 preIndex := iNdEx 4225 var wire uint64 4226 for shift := uint(0); ; shift += 7 { 4227 if shift >= 64 { 4228 return ErrIntOverflowEvent 4229 } 4230 if iNdEx >= l { 4231 return io.ErrUnexpectedEOF 4232 } 4233 b := dAtA[iNdEx] 4234 iNdEx++ 4235 wire |= uint64(b&0x7F) << shift 4236 if b < 0x80 { 4237 break 4238 } 4239 } 4240 fieldNum := int32(wire >> 3) 4241 wireType := int(wire & 0x7) 4242 if wireType == 4 { 4243 return fmt.Errorf("proto: EventGranted: wiretype end group for non-group") 4244 } 4245 if fieldNum <= 0 { 4246 return fmt.Errorf("proto: EventGranted: illegal tag %d (wire type %d)", fieldNum, wire) 4247 } 4248 switch fieldNum { 4249 case 1: 4250 if wireType != 2 { 4251 return fmt.Errorf("proto: wrong wireType = %d for field ContractId", wireType) 4252 } 4253 var stringLen uint64 4254 for shift := uint(0); ; shift += 7 { 4255 if shift >= 64 { 4256 return ErrIntOverflowEvent 4257 } 4258 if iNdEx >= l { 4259 return io.ErrUnexpectedEOF 4260 } 4261 b := dAtA[iNdEx] 4262 iNdEx++ 4263 stringLen |= uint64(b&0x7F) << shift 4264 if b < 0x80 { 4265 break 4266 } 4267 } 4268 intStringLen := int(stringLen) 4269 if intStringLen < 0 { 4270 return ErrInvalidLengthEvent 4271 } 4272 postIndex := iNdEx + intStringLen 4273 if postIndex < 0 { 4274 return ErrInvalidLengthEvent 4275 } 4276 if postIndex > l { 4277 return io.ErrUnexpectedEOF 4278 } 4279 m.ContractId = string(dAtA[iNdEx:postIndex]) 4280 iNdEx = postIndex 4281 case 2: 4282 if wireType != 2 { 4283 return fmt.Errorf("proto: wrong wireType = %d for field Granter", wireType) 4284 } 4285 var stringLen uint64 4286 for shift := uint(0); ; shift += 7 { 4287 if shift >= 64 { 4288 return ErrIntOverflowEvent 4289 } 4290 if iNdEx >= l { 4291 return io.ErrUnexpectedEOF 4292 } 4293 b := dAtA[iNdEx] 4294 iNdEx++ 4295 stringLen |= uint64(b&0x7F) << shift 4296 if b < 0x80 { 4297 break 4298 } 4299 } 4300 intStringLen := int(stringLen) 4301 if intStringLen < 0 { 4302 return ErrInvalidLengthEvent 4303 } 4304 postIndex := iNdEx + intStringLen 4305 if postIndex < 0 { 4306 return ErrInvalidLengthEvent 4307 } 4308 if postIndex > l { 4309 return io.ErrUnexpectedEOF 4310 } 4311 m.Granter = string(dAtA[iNdEx:postIndex]) 4312 iNdEx = postIndex 4313 case 3: 4314 if wireType != 2 { 4315 return fmt.Errorf("proto: wrong wireType = %d for field Grantee", wireType) 4316 } 4317 var stringLen uint64 4318 for shift := uint(0); ; shift += 7 { 4319 if shift >= 64 { 4320 return ErrIntOverflowEvent 4321 } 4322 if iNdEx >= l { 4323 return io.ErrUnexpectedEOF 4324 } 4325 b := dAtA[iNdEx] 4326 iNdEx++ 4327 stringLen |= uint64(b&0x7F) << shift 4328 if b < 0x80 { 4329 break 4330 } 4331 } 4332 intStringLen := int(stringLen) 4333 if intStringLen < 0 { 4334 return ErrInvalidLengthEvent 4335 } 4336 postIndex := iNdEx + intStringLen 4337 if postIndex < 0 { 4338 return ErrInvalidLengthEvent 4339 } 4340 if postIndex > l { 4341 return io.ErrUnexpectedEOF 4342 } 4343 m.Grantee = string(dAtA[iNdEx:postIndex]) 4344 iNdEx = postIndex 4345 case 4: 4346 if wireType != 0 { 4347 return fmt.Errorf("proto: wrong wireType = %d for field Permission", wireType) 4348 } 4349 m.Permission = 0 4350 for shift := uint(0); ; shift += 7 { 4351 if shift >= 64 { 4352 return ErrIntOverflowEvent 4353 } 4354 if iNdEx >= l { 4355 return io.ErrUnexpectedEOF 4356 } 4357 b := dAtA[iNdEx] 4358 iNdEx++ 4359 m.Permission |= Permission(b&0x7F) << shift 4360 if b < 0x80 { 4361 break 4362 } 4363 } 4364 default: 4365 iNdEx = preIndex 4366 skippy, err := skipEvent(dAtA[iNdEx:]) 4367 if err != nil { 4368 return err 4369 } 4370 if (skippy < 0) || (iNdEx+skippy) < 0 { 4371 return ErrInvalidLengthEvent 4372 } 4373 if (iNdEx + skippy) > l { 4374 return io.ErrUnexpectedEOF 4375 } 4376 iNdEx += skippy 4377 } 4378 } 4379 4380 if iNdEx > l { 4381 return io.ErrUnexpectedEOF 4382 } 4383 return nil 4384 } 4385 func (m *EventRenounced) Unmarshal(dAtA []byte) error { 4386 l := len(dAtA) 4387 iNdEx := 0 4388 for iNdEx < l { 4389 preIndex := iNdEx 4390 var wire uint64 4391 for shift := uint(0); ; shift += 7 { 4392 if shift >= 64 { 4393 return ErrIntOverflowEvent 4394 } 4395 if iNdEx >= l { 4396 return io.ErrUnexpectedEOF 4397 } 4398 b := dAtA[iNdEx] 4399 iNdEx++ 4400 wire |= uint64(b&0x7F) << shift 4401 if b < 0x80 { 4402 break 4403 } 4404 } 4405 fieldNum := int32(wire >> 3) 4406 wireType := int(wire & 0x7) 4407 if wireType == 4 { 4408 return fmt.Errorf("proto: EventRenounced: wiretype end group for non-group") 4409 } 4410 if fieldNum <= 0 { 4411 return fmt.Errorf("proto: EventRenounced: illegal tag %d (wire type %d)", fieldNum, wire) 4412 } 4413 switch fieldNum { 4414 case 1: 4415 if wireType != 2 { 4416 return fmt.Errorf("proto: wrong wireType = %d for field ContractId", wireType) 4417 } 4418 var stringLen uint64 4419 for shift := uint(0); ; shift += 7 { 4420 if shift >= 64 { 4421 return ErrIntOverflowEvent 4422 } 4423 if iNdEx >= l { 4424 return io.ErrUnexpectedEOF 4425 } 4426 b := dAtA[iNdEx] 4427 iNdEx++ 4428 stringLen |= uint64(b&0x7F) << shift 4429 if b < 0x80 { 4430 break 4431 } 4432 } 4433 intStringLen := int(stringLen) 4434 if intStringLen < 0 { 4435 return ErrInvalidLengthEvent 4436 } 4437 postIndex := iNdEx + intStringLen 4438 if postIndex < 0 { 4439 return ErrInvalidLengthEvent 4440 } 4441 if postIndex > l { 4442 return io.ErrUnexpectedEOF 4443 } 4444 m.ContractId = string(dAtA[iNdEx:postIndex]) 4445 iNdEx = postIndex 4446 case 2: 4447 if wireType != 2 { 4448 return fmt.Errorf("proto: wrong wireType = %d for field Grantee", wireType) 4449 } 4450 var stringLen uint64 4451 for shift := uint(0); ; shift += 7 { 4452 if shift >= 64 { 4453 return ErrIntOverflowEvent 4454 } 4455 if iNdEx >= l { 4456 return io.ErrUnexpectedEOF 4457 } 4458 b := dAtA[iNdEx] 4459 iNdEx++ 4460 stringLen |= uint64(b&0x7F) << shift 4461 if b < 0x80 { 4462 break 4463 } 4464 } 4465 intStringLen := int(stringLen) 4466 if intStringLen < 0 { 4467 return ErrInvalidLengthEvent 4468 } 4469 postIndex := iNdEx + intStringLen 4470 if postIndex < 0 { 4471 return ErrInvalidLengthEvent 4472 } 4473 if postIndex > l { 4474 return io.ErrUnexpectedEOF 4475 } 4476 m.Grantee = string(dAtA[iNdEx:postIndex]) 4477 iNdEx = postIndex 4478 case 3: 4479 if wireType != 0 { 4480 return fmt.Errorf("proto: wrong wireType = %d for field Permission", wireType) 4481 } 4482 m.Permission = 0 4483 for shift := uint(0); ; shift += 7 { 4484 if shift >= 64 { 4485 return ErrIntOverflowEvent 4486 } 4487 if iNdEx >= l { 4488 return io.ErrUnexpectedEOF 4489 } 4490 b := dAtA[iNdEx] 4491 iNdEx++ 4492 m.Permission |= Permission(b&0x7F) << shift 4493 if b < 0x80 { 4494 break 4495 } 4496 } 4497 default: 4498 iNdEx = preIndex 4499 skippy, err := skipEvent(dAtA[iNdEx:]) 4500 if err != nil { 4501 return err 4502 } 4503 if (skippy < 0) || (iNdEx+skippy) < 0 { 4504 return ErrInvalidLengthEvent 4505 } 4506 if (iNdEx + skippy) > l { 4507 return io.ErrUnexpectedEOF 4508 } 4509 iNdEx += skippy 4510 } 4511 } 4512 4513 if iNdEx > l { 4514 return io.ErrUnexpectedEOF 4515 } 4516 return nil 4517 } 4518 func (m *EventMintedFT) Unmarshal(dAtA []byte) error { 4519 l := len(dAtA) 4520 iNdEx := 0 4521 for iNdEx < l { 4522 preIndex := iNdEx 4523 var wire uint64 4524 for shift := uint(0); ; shift += 7 { 4525 if shift >= 64 { 4526 return ErrIntOverflowEvent 4527 } 4528 if iNdEx >= l { 4529 return io.ErrUnexpectedEOF 4530 } 4531 b := dAtA[iNdEx] 4532 iNdEx++ 4533 wire |= uint64(b&0x7F) << shift 4534 if b < 0x80 { 4535 break 4536 } 4537 } 4538 fieldNum := int32(wire >> 3) 4539 wireType := int(wire & 0x7) 4540 if wireType == 4 { 4541 return fmt.Errorf("proto: EventMintedFT: wiretype end group for non-group") 4542 } 4543 if fieldNum <= 0 { 4544 return fmt.Errorf("proto: EventMintedFT: illegal tag %d (wire type %d)", fieldNum, wire) 4545 } 4546 switch fieldNum { 4547 case 1: 4548 if wireType != 2 { 4549 return fmt.Errorf("proto: wrong wireType = %d for field ContractId", wireType) 4550 } 4551 var stringLen uint64 4552 for shift := uint(0); ; shift += 7 { 4553 if shift >= 64 { 4554 return ErrIntOverflowEvent 4555 } 4556 if iNdEx >= l { 4557 return io.ErrUnexpectedEOF 4558 } 4559 b := dAtA[iNdEx] 4560 iNdEx++ 4561 stringLen |= uint64(b&0x7F) << shift 4562 if b < 0x80 { 4563 break 4564 } 4565 } 4566 intStringLen := int(stringLen) 4567 if intStringLen < 0 { 4568 return ErrInvalidLengthEvent 4569 } 4570 postIndex := iNdEx + intStringLen 4571 if postIndex < 0 { 4572 return ErrInvalidLengthEvent 4573 } 4574 if postIndex > l { 4575 return io.ErrUnexpectedEOF 4576 } 4577 m.ContractId = string(dAtA[iNdEx:postIndex]) 4578 iNdEx = postIndex 4579 case 2: 4580 if wireType != 2 { 4581 return fmt.Errorf("proto: wrong wireType = %d for field Operator", wireType) 4582 } 4583 var stringLen uint64 4584 for shift := uint(0); ; shift += 7 { 4585 if shift >= 64 { 4586 return ErrIntOverflowEvent 4587 } 4588 if iNdEx >= l { 4589 return io.ErrUnexpectedEOF 4590 } 4591 b := dAtA[iNdEx] 4592 iNdEx++ 4593 stringLen |= uint64(b&0x7F) << shift 4594 if b < 0x80 { 4595 break 4596 } 4597 } 4598 intStringLen := int(stringLen) 4599 if intStringLen < 0 { 4600 return ErrInvalidLengthEvent 4601 } 4602 postIndex := iNdEx + intStringLen 4603 if postIndex < 0 { 4604 return ErrInvalidLengthEvent 4605 } 4606 if postIndex > l { 4607 return io.ErrUnexpectedEOF 4608 } 4609 m.Operator = string(dAtA[iNdEx:postIndex]) 4610 iNdEx = postIndex 4611 case 3: 4612 if wireType != 2 { 4613 return fmt.Errorf("proto: wrong wireType = %d for field To", wireType) 4614 } 4615 var stringLen uint64 4616 for shift := uint(0); ; shift += 7 { 4617 if shift >= 64 { 4618 return ErrIntOverflowEvent 4619 } 4620 if iNdEx >= l { 4621 return io.ErrUnexpectedEOF 4622 } 4623 b := dAtA[iNdEx] 4624 iNdEx++ 4625 stringLen |= uint64(b&0x7F) << shift 4626 if b < 0x80 { 4627 break 4628 } 4629 } 4630 intStringLen := int(stringLen) 4631 if intStringLen < 0 { 4632 return ErrInvalidLengthEvent 4633 } 4634 postIndex := iNdEx + intStringLen 4635 if postIndex < 0 { 4636 return ErrInvalidLengthEvent 4637 } 4638 if postIndex > l { 4639 return io.ErrUnexpectedEOF 4640 } 4641 m.To = string(dAtA[iNdEx:postIndex]) 4642 iNdEx = postIndex 4643 case 4: 4644 if wireType != 2 { 4645 return fmt.Errorf("proto: wrong wireType = %d for field Amount", wireType) 4646 } 4647 var msglen int 4648 for shift := uint(0); ; shift += 7 { 4649 if shift >= 64 { 4650 return ErrIntOverflowEvent 4651 } 4652 if iNdEx >= l { 4653 return io.ErrUnexpectedEOF 4654 } 4655 b := dAtA[iNdEx] 4656 iNdEx++ 4657 msglen |= int(b&0x7F) << shift 4658 if b < 0x80 { 4659 break 4660 } 4661 } 4662 if msglen < 0 { 4663 return ErrInvalidLengthEvent 4664 } 4665 postIndex := iNdEx + msglen 4666 if postIndex < 0 { 4667 return ErrInvalidLengthEvent 4668 } 4669 if postIndex > l { 4670 return io.ErrUnexpectedEOF 4671 } 4672 m.Amount = append(m.Amount, Coin{}) 4673 if err := m.Amount[len(m.Amount)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 4674 return err 4675 } 4676 iNdEx = postIndex 4677 default: 4678 iNdEx = preIndex 4679 skippy, err := skipEvent(dAtA[iNdEx:]) 4680 if err != nil { 4681 return err 4682 } 4683 if (skippy < 0) || (iNdEx+skippy) < 0 { 4684 return ErrInvalidLengthEvent 4685 } 4686 if (iNdEx + skippy) > l { 4687 return io.ErrUnexpectedEOF 4688 } 4689 iNdEx += skippy 4690 } 4691 } 4692 4693 if iNdEx > l { 4694 return io.ErrUnexpectedEOF 4695 } 4696 return nil 4697 } 4698 func (m *EventMintedNFT) Unmarshal(dAtA []byte) error { 4699 l := len(dAtA) 4700 iNdEx := 0 4701 for iNdEx < l { 4702 preIndex := iNdEx 4703 var wire uint64 4704 for shift := uint(0); ; shift += 7 { 4705 if shift >= 64 { 4706 return ErrIntOverflowEvent 4707 } 4708 if iNdEx >= l { 4709 return io.ErrUnexpectedEOF 4710 } 4711 b := dAtA[iNdEx] 4712 iNdEx++ 4713 wire |= uint64(b&0x7F) << shift 4714 if b < 0x80 { 4715 break 4716 } 4717 } 4718 fieldNum := int32(wire >> 3) 4719 wireType := int(wire & 0x7) 4720 if wireType == 4 { 4721 return fmt.Errorf("proto: EventMintedNFT: wiretype end group for non-group") 4722 } 4723 if fieldNum <= 0 { 4724 return fmt.Errorf("proto: EventMintedNFT: illegal tag %d (wire type %d)", fieldNum, wire) 4725 } 4726 switch fieldNum { 4727 case 1: 4728 if wireType != 2 { 4729 return fmt.Errorf("proto: wrong wireType = %d for field ContractId", wireType) 4730 } 4731 var stringLen uint64 4732 for shift := uint(0); ; shift += 7 { 4733 if shift >= 64 { 4734 return ErrIntOverflowEvent 4735 } 4736 if iNdEx >= l { 4737 return io.ErrUnexpectedEOF 4738 } 4739 b := dAtA[iNdEx] 4740 iNdEx++ 4741 stringLen |= uint64(b&0x7F) << shift 4742 if b < 0x80 { 4743 break 4744 } 4745 } 4746 intStringLen := int(stringLen) 4747 if intStringLen < 0 { 4748 return ErrInvalidLengthEvent 4749 } 4750 postIndex := iNdEx + intStringLen 4751 if postIndex < 0 { 4752 return ErrInvalidLengthEvent 4753 } 4754 if postIndex > l { 4755 return io.ErrUnexpectedEOF 4756 } 4757 m.ContractId = string(dAtA[iNdEx:postIndex]) 4758 iNdEx = postIndex 4759 case 2: 4760 if wireType != 2 { 4761 return fmt.Errorf("proto: wrong wireType = %d for field Operator", wireType) 4762 } 4763 var stringLen uint64 4764 for shift := uint(0); ; shift += 7 { 4765 if shift >= 64 { 4766 return ErrIntOverflowEvent 4767 } 4768 if iNdEx >= l { 4769 return io.ErrUnexpectedEOF 4770 } 4771 b := dAtA[iNdEx] 4772 iNdEx++ 4773 stringLen |= uint64(b&0x7F) << shift 4774 if b < 0x80 { 4775 break 4776 } 4777 } 4778 intStringLen := int(stringLen) 4779 if intStringLen < 0 { 4780 return ErrInvalidLengthEvent 4781 } 4782 postIndex := iNdEx + intStringLen 4783 if postIndex < 0 { 4784 return ErrInvalidLengthEvent 4785 } 4786 if postIndex > l { 4787 return io.ErrUnexpectedEOF 4788 } 4789 m.Operator = string(dAtA[iNdEx:postIndex]) 4790 iNdEx = postIndex 4791 case 3: 4792 if wireType != 2 { 4793 return fmt.Errorf("proto: wrong wireType = %d for field To", wireType) 4794 } 4795 var stringLen uint64 4796 for shift := uint(0); ; shift += 7 { 4797 if shift >= 64 { 4798 return ErrIntOverflowEvent 4799 } 4800 if iNdEx >= l { 4801 return io.ErrUnexpectedEOF 4802 } 4803 b := dAtA[iNdEx] 4804 iNdEx++ 4805 stringLen |= uint64(b&0x7F) << shift 4806 if b < 0x80 { 4807 break 4808 } 4809 } 4810 intStringLen := int(stringLen) 4811 if intStringLen < 0 { 4812 return ErrInvalidLengthEvent 4813 } 4814 postIndex := iNdEx + intStringLen 4815 if postIndex < 0 { 4816 return ErrInvalidLengthEvent 4817 } 4818 if postIndex > l { 4819 return io.ErrUnexpectedEOF 4820 } 4821 m.To = string(dAtA[iNdEx:postIndex]) 4822 iNdEx = postIndex 4823 case 4: 4824 if wireType != 2 { 4825 return fmt.Errorf("proto: wrong wireType = %d for field Tokens", wireType) 4826 } 4827 var msglen int 4828 for shift := uint(0); ; shift += 7 { 4829 if shift >= 64 { 4830 return ErrIntOverflowEvent 4831 } 4832 if iNdEx >= l { 4833 return io.ErrUnexpectedEOF 4834 } 4835 b := dAtA[iNdEx] 4836 iNdEx++ 4837 msglen |= int(b&0x7F) << shift 4838 if b < 0x80 { 4839 break 4840 } 4841 } 4842 if msglen < 0 { 4843 return ErrInvalidLengthEvent 4844 } 4845 postIndex := iNdEx + msglen 4846 if postIndex < 0 { 4847 return ErrInvalidLengthEvent 4848 } 4849 if postIndex > l { 4850 return io.ErrUnexpectedEOF 4851 } 4852 m.Tokens = append(m.Tokens, NFT{}) 4853 if err := m.Tokens[len(m.Tokens)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 4854 return err 4855 } 4856 iNdEx = postIndex 4857 default: 4858 iNdEx = preIndex 4859 skippy, err := skipEvent(dAtA[iNdEx:]) 4860 if err != nil { 4861 return err 4862 } 4863 if (skippy < 0) || (iNdEx+skippy) < 0 { 4864 return ErrInvalidLengthEvent 4865 } 4866 if (iNdEx + skippy) > l { 4867 return io.ErrUnexpectedEOF 4868 } 4869 iNdEx += skippy 4870 } 4871 } 4872 4873 if iNdEx > l { 4874 return io.ErrUnexpectedEOF 4875 } 4876 return nil 4877 } 4878 func (m *EventBurned) Unmarshal(dAtA []byte) error { 4879 l := len(dAtA) 4880 iNdEx := 0 4881 for iNdEx < l { 4882 preIndex := iNdEx 4883 var wire uint64 4884 for shift := uint(0); ; shift += 7 { 4885 if shift >= 64 { 4886 return ErrIntOverflowEvent 4887 } 4888 if iNdEx >= l { 4889 return io.ErrUnexpectedEOF 4890 } 4891 b := dAtA[iNdEx] 4892 iNdEx++ 4893 wire |= uint64(b&0x7F) << shift 4894 if b < 0x80 { 4895 break 4896 } 4897 } 4898 fieldNum := int32(wire >> 3) 4899 wireType := int(wire & 0x7) 4900 if wireType == 4 { 4901 return fmt.Errorf("proto: EventBurned: wiretype end group for non-group") 4902 } 4903 if fieldNum <= 0 { 4904 return fmt.Errorf("proto: EventBurned: illegal tag %d (wire type %d)", fieldNum, wire) 4905 } 4906 switch fieldNum { 4907 case 1: 4908 if wireType != 2 { 4909 return fmt.Errorf("proto: wrong wireType = %d for field ContractId", wireType) 4910 } 4911 var stringLen uint64 4912 for shift := uint(0); ; shift += 7 { 4913 if shift >= 64 { 4914 return ErrIntOverflowEvent 4915 } 4916 if iNdEx >= l { 4917 return io.ErrUnexpectedEOF 4918 } 4919 b := dAtA[iNdEx] 4920 iNdEx++ 4921 stringLen |= uint64(b&0x7F) << shift 4922 if b < 0x80 { 4923 break 4924 } 4925 } 4926 intStringLen := int(stringLen) 4927 if intStringLen < 0 { 4928 return ErrInvalidLengthEvent 4929 } 4930 postIndex := iNdEx + intStringLen 4931 if postIndex < 0 { 4932 return ErrInvalidLengthEvent 4933 } 4934 if postIndex > l { 4935 return io.ErrUnexpectedEOF 4936 } 4937 m.ContractId = string(dAtA[iNdEx:postIndex]) 4938 iNdEx = postIndex 4939 case 2: 4940 if wireType != 2 { 4941 return fmt.Errorf("proto: wrong wireType = %d for field Operator", wireType) 4942 } 4943 var stringLen uint64 4944 for shift := uint(0); ; shift += 7 { 4945 if shift >= 64 { 4946 return ErrIntOverflowEvent 4947 } 4948 if iNdEx >= l { 4949 return io.ErrUnexpectedEOF 4950 } 4951 b := dAtA[iNdEx] 4952 iNdEx++ 4953 stringLen |= uint64(b&0x7F) << shift 4954 if b < 0x80 { 4955 break 4956 } 4957 } 4958 intStringLen := int(stringLen) 4959 if intStringLen < 0 { 4960 return ErrInvalidLengthEvent 4961 } 4962 postIndex := iNdEx + intStringLen 4963 if postIndex < 0 { 4964 return ErrInvalidLengthEvent 4965 } 4966 if postIndex > l { 4967 return io.ErrUnexpectedEOF 4968 } 4969 m.Operator = string(dAtA[iNdEx:postIndex]) 4970 iNdEx = postIndex 4971 case 3: 4972 if wireType != 2 { 4973 return fmt.Errorf("proto: wrong wireType = %d for field From", wireType) 4974 } 4975 var stringLen uint64 4976 for shift := uint(0); ; shift += 7 { 4977 if shift >= 64 { 4978 return ErrIntOverflowEvent 4979 } 4980 if iNdEx >= l { 4981 return io.ErrUnexpectedEOF 4982 } 4983 b := dAtA[iNdEx] 4984 iNdEx++ 4985 stringLen |= uint64(b&0x7F) << shift 4986 if b < 0x80 { 4987 break 4988 } 4989 } 4990 intStringLen := int(stringLen) 4991 if intStringLen < 0 { 4992 return ErrInvalidLengthEvent 4993 } 4994 postIndex := iNdEx + intStringLen 4995 if postIndex < 0 { 4996 return ErrInvalidLengthEvent 4997 } 4998 if postIndex > l { 4999 return io.ErrUnexpectedEOF 5000 } 5001 m.From = string(dAtA[iNdEx:postIndex]) 5002 iNdEx = postIndex 5003 case 4: 5004 if wireType != 2 { 5005 return fmt.Errorf("proto: wrong wireType = %d for field Amount", wireType) 5006 } 5007 var msglen int 5008 for shift := uint(0); ; shift += 7 { 5009 if shift >= 64 { 5010 return ErrIntOverflowEvent 5011 } 5012 if iNdEx >= l { 5013 return io.ErrUnexpectedEOF 5014 } 5015 b := dAtA[iNdEx] 5016 iNdEx++ 5017 msglen |= int(b&0x7F) << shift 5018 if b < 0x80 { 5019 break 5020 } 5021 } 5022 if msglen < 0 { 5023 return ErrInvalidLengthEvent 5024 } 5025 postIndex := iNdEx + msglen 5026 if postIndex < 0 { 5027 return ErrInvalidLengthEvent 5028 } 5029 if postIndex > l { 5030 return io.ErrUnexpectedEOF 5031 } 5032 m.Amount = append(m.Amount, Coin{}) 5033 if err := m.Amount[len(m.Amount)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 5034 return err 5035 } 5036 iNdEx = postIndex 5037 default: 5038 iNdEx = preIndex 5039 skippy, err := skipEvent(dAtA[iNdEx:]) 5040 if err != nil { 5041 return err 5042 } 5043 if (skippy < 0) || (iNdEx+skippy) < 0 { 5044 return ErrInvalidLengthEvent 5045 } 5046 if (iNdEx + skippy) > l { 5047 return io.ErrUnexpectedEOF 5048 } 5049 iNdEx += skippy 5050 } 5051 } 5052 5053 if iNdEx > l { 5054 return io.ErrUnexpectedEOF 5055 } 5056 return nil 5057 } 5058 func (m *EventModifiedContract) Unmarshal(dAtA []byte) error { 5059 l := len(dAtA) 5060 iNdEx := 0 5061 for iNdEx < l { 5062 preIndex := iNdEx 5063 var wire uint64 5064 for shift := uint(0); ; shift += 7 { 5065 if shift >= 64 { 5066 return ErrIntOverflowEvent 5067 } 5068 if iNdEx >= l { 5069 return io.ErrUnexpectedEOF 5070 } 5071 b := dAtA[iNdEx] 5072 iNdEx++ 5073 wire |= uint64(b&0x7F) << shift 5074 if b < 0x80 { 5075 break 5076 } 5077 } 5078 fieldNum := int32(wire >> 3) 5079 wireType := int(wire & 0x7) 5080 if wireType == 4 { 5081 return fmt.Errorf("proto: EventModifiedContract: wiretype end group for non-group") 5082 } 5083 if fieldNum <= 0 { 5084 return fmt.Errorf("proto: EventModifiedContract: illegal tag %d (wire type %d)", fieldNum, wire) 5085 } 5086 switch fieldNum { 5087 case 1: 5088 if wireType != 2 { 5089 return fmt.Errorf("proto: wrong wireType = %d for field ContractId", wireType) 5090 } 5091 var stringLen uint64 5092 for shift := uint(0); ; shift += 7 { 5093 if shift >= 64 { 5094 return ErrIntOverflowEvent 5095 } 5096 if iNdEx >= l { 5097 return io.ErrUnexpectedEOF 5098 } 5099 b := dAtA[iNdEx] 5100 iNdEx++ 5101 stringLen |= uint64(b&0x7F) << shift 5102 if b < 0x80 { 5103 break 5104 } 5105 } 5106 intStringLen := int(stringLen) 5107 if intStringLen < 0 { 5108 return ErrInvalidLengthEvent 5109 } 5110 postIndex := iNdEx + intStringLen 5111 if postIndex < 0 { 5112 return ErrInvalidLengthEvent 5113 } 5114 if postIndex > l { 5115 return io.ErrUnexpectedEOF 5116 } 5117 m.ContractId = string(dAtA[iNdEx:postIndex]) 5118 iNdEx = postIndex 5119 case 2: 5120 if wireType != 2 { 5121 return fmt.Errorf("proto: wrong wireType = %d for field Operator", wireType) 5122 } 5123 var stringLen uint64 5124 for shift := uint(0); ; shift += 7 { 5125 if shift >= 64 { 5126 return ErrIntOverflowEvent 5127 } 5128 if iNdEx >= l { 5129 return io.ErrUnexpectedEOF 5130 } 5131 b := dAtA[iNdEx] 5132 iNdEx++ 5133 stringLen |= uint64(b&0x7F) << shift 5134 if b < 0x80 { 5135 break 5136 } 5137 } 5138 intStringLen := int(stringLen) 5139 if intStringLen < 0 { 5140 return ErrInvalidLengthEvent 5141 } 5142 postIndex := iNdEx + intStringLen 5143 if postIndex < 0 { 5144 return ErrInvalidLengthEvent 5145 } 5146 if postIndex > l { 5147 return io.ErrUnexpectedEOF 5148 } 5149 m.Operator = string(dAtA[iNdEx:postIndex]) 5150 iNdEx = postIndex 5151 case 3: 5152 if wireType != 2 { 5153 return fmt.Errorf("proto: wrong wireType = %d for field Changes", wireType) 5154 } 5155 var msglen int 5156 for shift := uint(0); ; shift += 7 { 5157 if shift >= 64 { 5158 return ErrIntOverflowEvent 5159 } 5160 if iNdEx >= l { 5161 return io.ErrUnexpectedEOF 5162 } 5163 b := dAtA[iNdEx] 5164 iNdEx++ 5165 msglen |= int(b&0x7F) << shift 5166 if b < 0x80 { 5167 break 5168 } 5169 } 5170 if msglen < 0 { 5171 return ErrInvalidLengthEvent 5172 } 5173 postIndex := iNdEx + msglen 5174 if postIndex < 0 { 5175 return ErrInvalidLengthEvent 5176 } 5177 if postIndex > l { 5178 return io.ErrUnexpectedEOF 5179 } 5180 m.Changes = append(m.Changes, Attribute{}) 5181 if err := m.Changes[len(m.Changes)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 5182 return err 5183 } 5184 iNdEx = postIndex 5185 default: 5186 iNdEx = preIndex 5187 skippy, err := skipEvent(dAtA[iNdEx:]) 5188 if err != nil { 5189 return err 5190 } 5191 if (skippy < 0) || (iNdEx+skippy) < 0 { 5192 return ErrInvalidLengthEvent 5193 } 5194 if (iNdEx + skippy) > l { 5195 return io.ErrUnexpectedEOF 5196 } 5197 iNdEx += skippy 5198 } 5199 } 5200 5201 if iNdEx > l { 5202 return io.ErrUnexpectedEOF 5203 } 5204 return nil 5205 } 5206 func (m *EventModifiedTokenClass) Unmarshal(dAtA []byte) error { 5207 l := len(dAtA) 5208 iNdEx := 0 5209 for iNdEx < l { 5210 preIndex := iNdEx 5211 var wire uint64 5212 for shift := uint(0); ; shift += 7 { 5213 if shift >= 64 { 5214 return ErrIntOverflowEvent 5215 } 5216 if iNdEx >= l { 5217 return io.ErrUnexpectedEOF 5218 } 5219 b := dAtA[iNdEx] 5220 iNdEx++ 5221 wire |= uint64(b&0x7F) << shift 5222 if b < 0x80 { 5223 break 5224 } 5225 } 5226 fieldNum := int32(wire >> 3) 5227 wireType := int(wire & 0x7) 5228 if wireType == 4 { 5229 return fmt.Errorf("proto: EventModifiedTokenClass: wiretype end group for non-group") 5230 } 5231 if fieldNum <= 0 { 5232 return fmt.Errorf("proto: EventModifiedTokenClass: illegal tag %d (wire type %d)", fieldNum, wire) 5233 } 5234 switch fieldNum { 5235 case 1: 5236 if wireType != 2 { 5237 return fmt.Errorf("proto: wrong wireType = %d for field ContractId", wireType) 5238 } 5239 var stringLen uint64 5240 for shift := uint(0); ; shift += 7 { 5241 if shift >= 64 { 5242 return ErrIntOverflowEvent 5243 } 5244 if iNdEx >= l { 5245 return io.ErrUnexpectedEOF 5246 } 5247 b := dAtA[iNdEx] 5248 iNdEx++ 5249 stringLen |= uint64(b&0x7F) << shift 5250 if b < 0x80 { 5251 break 5252 } 5253 } 5254 intStringLen := int(stringLen) 5255 if intStringLen < 0 { 5256 return ErrInvalidLengthEvent 5257 } 5258 postIndex := iNdEx + intStringLen 5259 if postIndex < 0 { 5260 return ErrInvalidLengthEvent 5261 } 5262 if postIndex > l { 5263 return io.ErrUnexpectedEOF 5264 } 5265 m.ContractId = string(dAtA[iNdEx:postIndex]) 5266 iNdEx = postIndex 5267 case 2: 5268 if wireType != 2 { 5269 return fmt.Errorf("proto: wrong wireType = %d for field Operator", wireType) 5270 } 5271 var stringLen uint64 5272 for shift := uint(0); ; shift += 7 { 5273 if shift >= 64 { 5274 return ErrIntOverflowEvent 5275 } 5276 if iNdEx >= l { 5277 return io.ErrUnexpectedEOF 5278 } 5279 b := dAtA[iNdEx] 5280 iNdEx++ 5281 stringLen |= uint64(b&0x7F) << shift 5282 if b < 0x80 { 5283 break 5284 } 5285 } 5286 intStringLen := int(stringLen) 5287 if intStringLen < 0 { 5288 return ErrInvalidLengthEvent 5289 } 5290 postIndex := iNdEx + intStringLen 5291 if postIndex < 0 { 5292 return ErrInvalidLengthEvent 5293 } 5294 if postIndex > l { 5295 return io.ErrUnexpectedEOF 5296 } 5297 m.Operator = string(dAtA[iNdEx:postIndex]) 5298 iNdEx = postIndex 5299 case 3: 5300 if wireType != 2 { 5301 return fmt.Errorf("proto: wrong wireType = %d for field TokenType", wireType) 5302 } 5303 var stringLen uint64 5304 for shift := uint(0); ; shift += 7 { 5305 if shift >= 64 { 5306 return ErrIntOverflowEvent 5307 } 5308 if iNdEx >= l { 5309 return io.ErrUnexpectedEOF 5310 } 5311 b := dAtA[iNdEx] 5312 iNdEx++ 5313 stringLen |= uint64(b&0x7F) << shift 5314 if b < 0x80 { 5315 break 5316 } 5317 } 5318 intStringLen := int(stringLen) 5319 if intStringLen < 0 { 5320 return ErrInvalidLengthEvent 5321 } 5322 postIndex := iNdEx + intStringLen 5323 if postIndex < 0 { 5324 return ErrInvalidLengthEvent 5325 } 5326 if postIndex > l { 5327 return io.ErrUnexpectedEOF 5328 } 5329 m.TokenType = string(dAtA[iNdEx:postIndex]) 5330 iNdEx = postIndex 5331 case 4: 5332 if wireType != 2 { 5333 return fmt.Errorf("proto: wrong wireType = %d for field Changes", wireType) 5334 } 5335 var msglen int 5336 for shift := uint(0); ; shift += 7 { 5337 if shift >= 64 { 5338 return ErrIntOverflowEvent 5339 } 5340 if iNdEx >= l { 5341 return io.ErrUnexpectedEOF 5342 } 5343 b := dAtA[iNdEx] 5344 iNdEx++ 5345 msglen |= int(b&0x7F) << shift 5346 if b < 0x80 { 5347 break 5348 } 5349 } 5350 if msglen < 0 { 5351 return ErrInvalidLengthEvent 5352 } 5353 postIndex := iNdEx + msglen 5354 if postIndex < 0 { 5355 return ErrInvalidLengthEvent 5356 } 5357 if postIndex > l { 5358 return io.ErrUnexpectedEOF 5359 } 5360 m.Changes = append(m.Changes, Attribute{}) 5361 if err := m.Changes[len(m.Changes)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 5362 return err 5363 } 5364 iNdEx = postIndex 5365 case 5: 5366 if wireType != 2 { 5367 return fmt.Errorf("proto: wrong wireType = %d for field TypeName", wireType) 5368 } 5369 var stringLen uint64 5370 for shift := uint(0); ; shift += 7 { 5371 if shift >= 64 { 5372 return ErrIntOverflowEvent 5373 } 5374 if iNdEx >= l { 5375 return io.ErrUnexpectedEOF 5376 } 5377 b := dAtA[iNdEx] 5378 iNdEx++ 5379 stringLen |= uint64(b&0x7F) << shift 5380 if b < 0x80 { 5381 break 5382 } 5383 } 5384 intStringLen := int(stringLen) 5385 if intStringLen < 0 { 5386 return ErrInvalidLengthEvent 5387 } 5388 postIndex := iNdEx + intStringLen 5389 if postIndex < 0 { 5390 return ErrInvalidLengthEvent 5391 } 5392 if postIndex > l { 5393 return io.ErrUnexpectedEOF 5394 } 5395 m.TypeName = string(dAtA[iNdEx:postIndex]) 5396 iNdEx = postIndex 5397 default: 5398 iNdEx = preIndex 5399 skippy, err := skipEvent(dAtA[iNdEx:]) 5400 if err != nil { 5401 return err 5402 } 5403 if (skippy < 0) || (iNdEx+skippy) < 0 { 5404 return ErrInvalidLengthEvent 5405 } 5406 if (iNdEx + skippy) > l { 5407 return io.ErrUnexpectedEOF 5408 } 5409 iNdEx += skippy 5410 } 5411 } 5412 5413 if iNdEx > l { 5414 return io.ErrUnexpectedEOF 5415 } 5416 return nil 5417 } 5418 func (m *EventModifiedNFT) Unmarshal(dAtA []byte) error { 5419 l := len(dAtA) 5420 iNdEx := 0 5421 for iNdEx < l { 5422 preIndex := iNdEx 5423 var wire uint64 5424 for shift := uint(0); ; shift += 7 { 5425 if shift >= 64 { 5426 return ErrIntOverflowEvent 5427 } 5428 if iNdEx >= l { 5429 return io.ErrUnexpectedEOF 5430 } 5431 b := dAtA[iNdEx] 5432 iNdEx++ 5433 wire |= uint64(b&0x7F) << shift 5434 if b < 0x80 { 5435 break 5436 } 5437 } 5438 fieldNum := int32(wire >> 3) 5439 wireType := int(wire & 0x7) 5440 if wireType == 4 { 5441 return fmt.Errorf("proto: EventModifiedNFT: wiretype end group for non-group") 5442 } 5443 if fieldNum <= 0 { 5444 return fmt.Errorf("proto: EventModifiedNFT: illegal tag %d (wire type %d)", fieldNum, wire) 5445 } 5446 switch fieldNum { 5447 case 1: 5448 if wireType != 2 { 5449 return fmt.Errorf("proto: wrong wireType = %d for field ContractId", wireType) 5450 } 5451 var stringLen uint64 5452 for shift := uint(0); ; shift += 7 { 5453 if shift >= 64 { 5454 return ErrIntOverflowEvent 5455 } 5456 if iNdEx >= l { 5457 return io.ErrUnexpectedEOF 5458 } 5459 b := dAtA[iNdEx] 5460 iNdEx++ 5461 stringLen |= uint64(b&0x7F) << shift 5462 if b < 0x80 { 5463 break 5464 } 5465 } 5466 intStringLen := int(stringLen) 5467 if intStringLen < 0 { 5468 return ErrInvalidLengthEvent 5469 } 5470 postIndex := iNdEx + intStringLen 5471 if postIndex < 0 { 5472 return ErrInvalidLengthEvent 5473 } 5474 if postIndex > l { 5475 return io.ErrUnexpectedEOF 5476 } 5477 m.ContractId = string(dAtA[iNdEx:postIndex]) 5478 iNdEx = postIndex 5479 case 2: 5480 if wireType != 2 { 5481 return fmt.Errorf("proto: wrong wireType = %d for field Operator", wireType) 5482 } 5483 var stringLen uint64 5484 for shift := uint(0); ; shift += 7 { 5485 if shift >= 64 { 5486 return ErrIntOverflowEvent 5487 } 5488 if iNdEx >= l { 5489 return io.ErrUnexpectedEOF 5490 } 5491 b := dAtA[iNdEx] 5492 iNdEx++ 5493 stringLen |= uint64(b&0x7F) << shift 5494 if b < 0x80 { 5495 break 5496 } 5497 } 5498 intStringLen := int(stringLen) 5499 if intStringLen < 0 { 5500 return ErrInvalidLengthEvent 5501 } 5502 postIndex := iNdEx + intStringLen 5503 if postIndex < 0 { 5504 return ErrInvalidLengthEvent 5505 } 5506 if postIndex > l { 5507 return io.ErrUnexpectedEOF 5508 } 5509 m.Operator = string(dAtA[iNdEx:postIndex]) 5510 iNdEx = postIndex 5511 case 3: 5512 if wireType != 2 { 5513 return fmt.Errorf("proto: wrong wireType = %d for field TokenId", wireType) 5514 } 5515 var stringLen uint64 5516 for shift := uint(0); ; shift += 7 { 5517 if shift >= 64 { 5518 return ErrIntOverflowEvent 5519 } 5520 if iNdEx >= l { 5521 return io.ErrUnexpectedEOF 5522 } 5523 b := dAtA[iNdEx] 5524 iNdEx++ 5525 stringLen |= uint64(b&0x7F) << shift 5526 if b < 0x80 { 5527 break 5528 } 5529 } 5530 intStringLen := int(stringLen) 5531 if intStringLen < 0 { 5532 return ErrInvalidLengthEvent 5533 } 5534 postIndex := iNdEx + intStringLen 5535 if postIndex < 0 { 5536 return ErrInvalidLengthEvent 5537 } 5538 if postIndex > l { 5539 return io.ErrUnexpectedEOF 5540 } 5541 m.TokenId = string(dAtA[iNdEx:postIndex]) 5542 iNdEx = postIndex 5543 case 4: 5544 if wireType != 2 { 5545 return fmt.Errorf("proto: wrong wireType = %d for field Changes", wireType) 5546 } 5547 var msglen int 5548 for shift := uint(0); ; shift += 7 { 5549 if shift >= 64 { 5550 return ErrIntOverflowEvent 5551 } 5552 if iNdEx >= l { 5553 return io.ErrUnexpectedEOF 5554 } 5555 b := dAtA[iNdEx] 5556 iNdEx++ 5557 msglen |= int(b&0x7F) << shift 5558 if b < 0x80 { 5559 break 5560 } 5561 } 5562 if msglen < 0 { 5563 return ErrInvalidLengthEvent 5564 } 5565 postIndex := iNdEx + msglen 5566 if postIndex < 0 { 5567 return ErrInvalidLengthEvent 5568 } 5569 if postIndex > l { 5570 return io.ErrUnexpectedEOF 5571 } 5572 m.Changes = append(m.Changes, Attribute{}) 5573 if err := m.Changes[len(m.Changes)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 5574 return err 5575 } 5576 iNdEx = postIndex 5577 default: 5578 iNdEx = preIndex 5579 skippy, err := skipEvent(dAtA[iNdEx:]) 5580 if err != nil { 5581 return err 5582 } 5583 if (skippy < 0) || (iNdEx+skippy) < 0 { 5584 return ErrInvalidLengthEvent 5585 } 5586 if (iNdEx + skippy) > l { 5587 return io.ErrUnexpectedEOF 5588 } 5589 iNdEx += skippy 5590 } 5591 } 5592 5593 if iNdEx > l { 5594 return io.ErrUnexpectedEOF 5595 } 5596 return nil 5597 } 5598 func (m *EventAttached) Unmarshal(dAtA []byte) error { 5599 l := len(dAtA) 5600 iNdEx := 0 5601 for iNdEx < l { 5602 preIndex := iNdEx 5603 var wire uint64 5604 for shift := uint(0); ; shift += 7 { 5605 if shift >= 64 { 5606 return ErrIntOverflowEvent 5607 } 5608 if iNdEx >= l { 5609 return io.ErrUnexpectedEOF 5610 } 5611 b := dAtA[iNdEx] 5612 iNdEx++ 5613 wire |= uint64(b&0x7F) << shift 5614 if b < 0x80 { 5615 break 5616 } 5617 } 5618 fieldNum := int32(wire >> 3) 5619 wireType := int(wire & 0x7) 5620 if wireType == 4 { 5621 return fmt.Errorf("proto: EventAttached: wiretype end group for non-group") 5622 } 5623 if fieldNum <= 0 { 5624 return fmt.Errorf("proto: EventAttached: illegal tag %d (wire type %d)", fieldNum, wire) 5625 } 5626 switch fieldNum { 5627 case 1: 5628 if wireType != 2 { 5629 return fmt.Errorf("proto: wrong wireType = %d for field ContractId", wireType) 5630 } 5631 var stringLen uint64 5632 for shift := uint(0); ; shift += 7 { 5633 if shift >= 64 { 5634 return ErrIntOverflowEvent 5635 } 5636 if iNdEx >= l { 5637 return io.ErrUnexpectedEOF 5638 } 5639 b := dAtA[iNdEx] 5640 iNdEx++ 5641 stringLen |= uint64(b&0x7F) << shift 5642 if b < 0x80 { 5643 break 5644 } 5645 } 5646 intStringLen := int(stringLen) 5647 if intStringLen < 0 { 5648 return ErrInvalidLengthEvent 5649 } 5650 postIndex := iNdEx + intStringLen 5651 if postIndex < 0 { 5652 return ErrInvalidLengthEvent 5653 } 5654 if postIndex > l { 5655 return io.ErrUnexpectedEOF 5656 } 5657 m.ContractId = string(dAtA[iNdEx:postIndex]) 5658 iNdEx = postIndex 5659 case 2: 5660 if wireType != 2 { 5661 return fmt.Errorf("proto: wrong wireType = %d for field Operator", wireType) 5662 } 5663 var stringLen uint64 5664 for shift := uint(0); ; shift += 7 { 5665 if shift >= 64 { 5666 return ErrIntOverflowEvent 5667 } 5668 if iNdEx >= l { 5669 return io.ErrUnexpectedEOF 5670 } 5671 b := dAtA[iNdEx] 5672 iNdEx++ 5673 stringLen |= uint64(b&0x7F) << shift 5674 if b < 0x80 { 5675 break 5676 } 5677 } 5678 intStringLen := int(stringLen) 5679 if intStringLen < 0 { 5680 return ErrInvalidLengthEvent 5681 } 5682 postIndex := iNdEx + intStringLen 5683 if postIndex < 0 { 5684 return ErrInvalidLengthEvent 5685 } 5686 if postIndex > l { 5687 return io.ErrUnexpectedEOF 5688 } 5689 m.Operator = string(dAtA[iNdEx:postIndex]) 5690 iNdEx = postIndex 5691 case 3: 5692 if wireType != 2 { 5693 return fmt.Errorf("proto: wrong wireType = %d for field Holder", wireType) 5694 } 5695 var stringLen uint64 5696 for shift := uint(0); ; shift += 7 { 5697 if shift >= 64 { 5698 return ErrIntOverflowEvent 5699 } 5700 if iNdEx >= l { 5701 return io.ErrUnexpectedEOF 5702 } 5703 b := dAtA[iNdEx] 5704 iNdEx++ 5705 stringLen |= uint64(b&0x7F) << shift 5706 if b < 0x80 { 5707 break 5708 } 5709 } 5710 intStringLen := int(stringLen) 5711 if intStringLen < 0 { 5712 return ErrInvalidLengthEvent 5713 } 5714 postIndex := iNdEx + intStringLen 5715 if postIndex < 0 { 5716 return ErrInvalidLengthEvent 5717 } 5718 if postIndex > l { 5719 return io.ErrUnexpectedEOF 5720 } 5721 m.Holder = string(dAtA[iNdEx:postIndex]) 5722 iNdEx = postIndex 5723 case 4: 5724 if wireType != 2 { 5725 return fmt.Errorf("proto: wrong wireType = %d for field Subject", wireType) 5726 } 5727 var stringLen uint64 5728 for shift := uint(0); ; shift += 7 { 5729 if shift >= 64 { 5730 return ErrIntOverflowEvent 5731 } 5732 if iNdEx >= l { 5733 return io.ErrUnexpectedEOF 5734 } 5735 b := dAtA[iNdEx] 5736 iNdEx++ 5737 stringLen |= uint64(b&0x7F) << shift 5738 if b < 0x80 { 5739 break 5740 } 5741 } 5742 intStringLen := int(stringLen) 5743 if intStringLen < 0 { 5744 return ErrInvalidLengthEvent 5745 } 5746 postIndex := iNdEx + intStringLen 5747 if postIndex < 0 { 5748 return ErrInvalidLengthEvent 5749 } 5750 if postIndex > l { 5751 return io.ErrUnexpectedEOF 5752 } 5753 m.Subject = string(dAtA[iNdEx:postIndex]) 5754 iNdEx = postIndex 5755 case 5: 5756 if wireType != 2 { 5757 return fmt.Errorf("proto: wrong wireType = %d for field Target", wireType) 5758 } 5759 var stringLen uint64 5760 for shift := uint(0); ; shift += 7 { 5761 if shift >= 64 { 5762 return ErrIntOverflowEvent 5763 } 5764 if iNdEx >= l { 5765 return io.ErrUnexpectedEOF 5766 } 5767 b := dAtA[iNdEx] 5768 iNdEx++ 5769 stringLen |= uint64(b&0x7F) << shift 5770 if b < 0x80 { 5771 break 5772 } 5773 } 5774 intStringLen := int(stringLen) 5775 if intStringLen < 0 { 5776 return ErrInvalidLengthEvent 5777 } 5778 postIndex := iNdEx + intStringLen 5779 if postIndex < 0 { 5780 return ErrInvalidLengthEvent 5781 } 5782 if postIndex > l { 5783 return io.ErrUnexpectedEOF 5784 } 5785 m.Target = string(dAtA[iNdEx:postIndex]) 5786 iNdEx = postIndex 5787 default: 5788 iNdEx = preIndex 5789 skippy, err := skipEvent(dAtA[iNdEx:]) 5790 if err != nil { 5791 return err 5792 } 5793 if (skippy < 0) || (iNdEx+skippy) < 0 { 5794 return ErrInvalidLengthEvent 5795 } 5796 if (iNdEx + skippy) > l { 5797 return io.ErrUnexpectedEOF 5798 } 5799 iNdEx += skippy 5800 } 5801 } 5802 5803 if iNdEx > l { 5804 return io.ErrUnexpectedEOF 5805 } 5806 return nil 5807 } 5808 func (m *EventDetached) Unmarshal(dAtA []byte) error { 5809 l := len(dAtA) 5810 iNdEx := 0 5811 for iNdEx < l { 5812 preIndex := iNdEx 5813 var wire uint64 5814 for shift := uint(0); ; shift += 7 { 5815 if shift >= 64 { 5816 return ErrIntOverflowEvent 5817 } 5818 if iNdEx >= l { 5819 return io.ErrUnexpectedEOF 5820 } 5821 b := dAtA[iNdEx] 5822 iNdEx++ 5823 wire |= uint64(b&0x7F) << shift 5824 if b < 0x80 { 5825 break 5826 } 5827 } 5828 fieldNum := int32(wire >> 3) 5829 wireType := int(wire & 0x7) 5830 if wireType == 4 { 5831 return fmt.Errorf("proto: EventDetached: wiretype end group for non-group") 5832 } 5833 if fieldNum <= 0 { 5834 return fmt.Errorf("proto: EventDetached: illegal tag %d (wire type %d)", fieldNum, wire) 5835 } 5836 switch fieldNum { 5837 case 1: 5838 if wireType != 2 { 5839 return fmt.Errorf("proto: wrong wireType = %d for field ContractId", wireType) 5840 } 5841 var stringLen uint64 5842 for shift := uint(0); ; shift += 7 { 5843 if shift >= 64 { 5844 return ErrIntOverflowEvent 5845 } 5846 if iNdEx >= l { 5847 return io.ErrUnexpectedEOF 5848 } 5849 b := dAtA[iNdEx] 5850 iNdEx++ 5851 stringLen |= uint64(b&0x7F) << shift 5852 if b < 0x80 { 5853 break 5854 } 5855 } 5856 intStringLen := int(stringLen) 5857 if intStringLen < 0 { 5858 return ErrInvalidLengthEvent 5859 } 5860 postIndex := iNdEx + intStringLen 5861 if postIndex < 0 { 5862 return ErrInvalidLengthEvent 5863 } 5864 if postIndex > l { 5865 return io.ErrUnexpectedEOF 5866 } 5867 m.ContractId = string(dAtA[iNdEx:postIndex]) 5868 iNdEx = postIndex 5869 case 2: 5870 if wireType != 2 { 5871 return fmt.Errorf("proto: wrong wireType = %d for field Operator", wireType) 5872 } 5873 var stringLen uint64 5874 for shift := uint(0); ; shift += 7 { 5875 if shift >= 64 { 5876 return ErrIntOverflowEvent 5877 } 5878 if iNdEx >= l { 5879 return io.ErrUnexpectedEOF 5880 } 5881 b := dAtA[iNdEx] 5882 iNdEx++ 5883 stringLen |= uint64(b&0x7F) << shift 5884 if b < 0x80 { 5885 break 5886 } 5887 } 5888 intStringLen := int(stringLen) 5889 if intStringLen < 0 { 5890 return ErrInvalidLengthEvent 5891 } 5892 postIndex := iNdEx + intStringLen 5893 if postIndex < 0 { 5894 return ErrInvalidLengthEvent 5895 } 5896 if postIndex > l { 5897 return io.ErrUnexpectedEOF 5898 } 5899 m.Operator = string(dAtA[iNdEx:postIndex]) 5900 iNdEx = postIndex 5901 case 3: 5902 if wireType != 2 { 5903 return fmt.Errorf("proto: wrong wireType = %d for field Holder", wireType) 5904 } 5905 var stringLen uint64 5906 for shift := uint(0); ; shift += 7 { 5907 if shift >= 64 { 5908 return ErrIntOverflowEvent 5909 } 5910 if iNdEx >= l { 5911 return io.ErrUnexpectedEOF 5912 } 5913 b := dAtA[iNdEx] 5914 iNdEx++ 5915 stringLen |= uint64(b&0x7F) << shift 5916 if b < 0x80 { 5917 break 5918 } 5919 } 5920 intStringLen := int(stringLen) 5921 if intStringLen < 0 { 5922 return ErrInvalidLengthEvent 5923 } 5924 postIndex := iNdEx + intStringLen 5925 if postIndex < 0 { 5926 return ErrInvalidLengthEvent 5927 } 5928 if postIndex > l { 5929 return io.ErrUnexpectedEOF 5930 } 5931 m.Holder = string(dAtA[iNdEx:postIndex]) 5932 iNdEx = postIndex 5933 case 4: 5934 if wireType != 2 { 5935 return fmt.Errorf("proto: wrong wireType = %d for field Subject", wireType) 5936 } 5937 var stringLen uint64 5938 for shift := uint(0); ; shift += 7 { 5939 if shift >= 64 { 5940 return ErrIntOverflowEvent 5941 } 5942 if iNdEx >= l { 5943 return io.ErrUnexpectedEOF 5944 } 5945 b := dAtA[iNdEx] 5946 iNdEx++ 5947 stringLen |= uint64(b&0x7F) << shift 5948 if b < 0x80 { 5949 break 5950 } 5951 } 5952 intStringLen := int(stringLen) 5953 if intStringLen < 0 { 5954 return ErrInvalidLengthEvent 5955 } 5956 postIndex := iNdEx + intStringLen 5957 if postIndex < 0 { 5958 return ErrInvalidLengthEvent 5959 } 5960 if postIndex > l { 5961 return io.ErrUnexpectedEOF 5962 } 5963 m.Subject = string(dAtA[iNdEx:postIndex]) 5964 iNdEx = postIndex 5965 case 5: 5966 if wireType != 2 { 5967 return fmt.Errorf("proto: wrong wireType = %d for field PreviousParent", wireType) 5968 } 5969 var stringLen uint64 5970 for shift := uint(0); ; shift += 7 { 5971 if shift >= 64 { 5972 return ErrIntOverflowEvent 5973 } 5974 if iNdEx >= l { 5975 return io.ErrUnexpectedEOF 5976 } 5977 b := dAtA[iNdEx] 5978 iNdEx++ 5979 stringLen |= uint64(b&0x7F) << shift 5980 if b < 0x80 { 5981 break 5982 } 5983 } 5984 intStringLen := int(stringLen) 5985 if intStringLen < 0 { 5986 return ErrInvalidLengthEvent 5987 } 5988 postIndex := iNdEx + intStringLen 5989 if postIndex < 0 { 5990 return ErrInvalidLengthEvent 5991 } 5992 if postIndex > l { 5993 return io.ErrUnexpectedEOF 5994 } 5995 m.PreviousParent = string(dAtA[iNdEx:postIndex]) 5996 iNdEx = postIndex 5997 default: 5998 iNdEx = preIndex 5999 skippy, err := skipEvent(dAtA[iNdEx:]) 6000 if err != nil { 6001 return err 6002 } 6003 if (skippy < 0) || (iNdEx+skippy) < 0 { 6004 return ErrInvalidLengthEvent 6005 } 6006 if (iNdEx + skippy) > l { 6007 return io.ErrUnexpectedEOF 6008 } 6009 iNdEx += skippy 6010 } 6011 } 6012 6013 if iNdEx > l { 6014 return io.ErrUnexpectedEOF 6015 } 6016 return nil 6017 } 6018 func (m *EventOwnerChanged) Unmarshal(dAtA []byte) error { 6019 l := len(dAtA) 6020 iNdEx := 0 6021 for iNdEx < l { 6022 preIndex := iNdEx 6023 var wire uint64 6024 for shift := uint(0); ; shift += 7 { 6025 if shift >= 64 { 6026 return ErrIntOverflowEvent 6027 } 6028 if iNdEx >= l { 6029 return io.ErrUnexpectedEOF 6030 } 6031 b := dAtA[iNdEx] 6032 iNdEx++ 6033 wire |= uint64(b&0x7F) << shift 6034 if b < 0x80 { 6035 break 6036 } 6037 } 6038 fieldNum := int32(wire >> 3) 6039 wireType := int(wire & 0x7) 6040 if wireType == 4 { 6041 return fmt.Errorf("proto: EventOwnerChanged: wiretype end group for non-group") 6042 } 6043 if fieldNum <= 0 { 6044 return fmt.Errorf("proto: EventOwnerChanged: illegal tag %d (wire type %d)", fieldNum, wire) 6045 } 6046 switch fieldNum { 6047 case 1: 6048 if wireType != 2 { 6049 return fmt.Errorf("proto: wrong wireType = %d for field ContractId", wireType) 6050 } 6051 var stringLen uint64 6052 for shift := uint(0); ; shift += 7 { 6053 if shift >= 64 { 6054 return ErrIntOverflowEvent 6055 } 6056 if iNdEx >= l { 6057 return io.ErrUnexpectedEOF 6058 } 6059 b := dAtA[iNdEx] 6060 iNdEx++ 6061 stringLen |= uint64(b&0x7F) << shift 6062 if b < 0x80 { 6063 break 6064 } 6065 } 6066 intStringLen := int(stringLen) 6067 if intStringLen < 0 { 6068 return ErrInvalidLengthEvent 6069 } 6070 postIndex := iNdEx + intStringLen 6071 if postIndex < 0 { 6072 return ErrInvalidLengthEvent 6073 } 6074 if postIndex > l { 6075 return io.ErrUnexpectedEOF 6076 } 6077 m.ContractId = string(dAtA[iNdEx:postIndex]) 6078 iNdEx = postIndex 6079 case 2: 6080 if wireType != 2 { 6081 return fmt.Errorf("proto: wrong wireType = %d for field TokenId", wireType) 6082 } 6083 var stringLen uint64 6084 for shift := uint(0); ; shift += 7 { 6085 if shift >= 64 { 6086 return ErrIntOverflowEvent 6087 } 6088 if iNdEx >= l { 6089 return io.ErrUnexpectedEOF 6090 } 6091 b := dAtA[iNdEx] 6092 iNdEx++ 6093 stringLen |= uint64(b&0x7F) << shift 6094 if b < 0x80 { 6095 break 6096 } 6097 } 6098 intStringLen := int(stringLen) 6099 if intStringLen < 0 { 6100 return ErrInvalidLengthEvent 6101 } 6102 postIndex := iNdEx + intStringLen 6103 if postIndex < 0 { 6104 return ErrInvalidLengthEvent 6105 } 6106 if postIndex > l { 6107 return io.ErrUnexpectedEOF 6108 } 6109 m.TokenId = string(dAtA[iNdEx:postIndex]) 6110 iNdEx = postIndex 6111 case 3: 6112 if wireType != 2 { 6113 return fmt.Errorf("proto: wrong wireType = %d for field From", wireType) 6114 } 6115 var stringLen uint64 6116 for shift := uint(0); ; shift += 7 { 6117 if shift >= 64 { 6118 return ErrIntOverflowEvent 6119 } 6120 if iNdEx >= l { 6121 return io.ErrUnexpectedEOF 6122 } 6123 b := dAtA[iNdEx] 6124 iNdEx++ 6125 stringLen |= uint64(b&0x7F) << shift 6126 if b < 0x80 { 6127 break 6128 } 6129 } 6130 intStringLen := int(stringLen) 6131 if intStringLen < 0 { 6132 return ErrInvalidLengthEvent 6133 } 6134 postIndex := iNdEx + intStringLen 6135 if postIndex < 0 { 6136 return ErrInvalidLengthEvent 6137 } 6138 if postIndex > l { 6139 return io.ErrUnexpectedEOF 6140 } 6141 m.From = string(dAtA[iNdEx:postIndex]) 6142 iNdEx = postIndex 6143 case 4: 6144 if wireType != 2 { 6145 return fmt.Errorf("proto: wrong wireType = %d for field To", wireType) 6146 } 6147 var stringLen uint64 6148 for shift := uint(0); ; shift += 7 { 6149 if shift >= 64 { 6150 return ErrIntOverflowEvent 6151 } 6152 if iNdEx >= l { 6153 return io.ErrUnexpectedEOF 6154 } 6155 b := dAtA[iNdEx] 6156 iNdEx++ 6157 stringLen |= uint64(b&0x7F) << shift 6158 if b < 0x80 { 6159 break 6160 } 6161 } 6162 intStringLen := int(stringLen) 6163 if intStringLen < 0 { 6164 return ErrInvalidLengthEvent 6165 } 6166 postIndex := iNdEx + intStringLen 6167 if postIndex < 0 { 6168 return ErrInvalidLengthEvent 6169 } 6170 if postIndex > l { 6171 return io.ErrUnexpectedEOF 6172 } 6173 m.To = string(dAtA[iNdEx:postIndex]) 6174 iNdEx = postIndex 6175 default: 6176 iNdEx = preIndex 6177 skippy, err := skipEvent(dAtA[iNdEx:]) 6178 if err != nil { 6179 return err 6180 } 6181 if (skippy < 0) || (iNdEx+skippy) < 0 { 6182 return ErrInvalidLengthEvent 6183 } 6184 if (iNdEx + skippy) > l { 6185 return io.ErrUnexpectedEOF 6186 } 6187 iNdEx += skippy 6188 } 6189 } 6190 6191 if iNdEx > l { 6192 return io.ErrUnexpectedEOF 6193 } 6194 return nil 6195 } 6196 func (m *EventRootChanged) Unmarshal(dAtA []byte) error { 6197 l := len(dAtA) 6198 iNdEx := 0 6199 for iNdEx < l { 6200 preIndex := iNdEx 6201 var wire uint64 6202 for shift := uint(0); ; shift += 7 { 6203 if shift >= 64 { 6204 return ErrIntOverflowEvent 6205 } 6206 if iNdEx >= l { 6207 return io.ErrUnexpectedEOF 6208 } 6209 b := dAtA[iNdEx] 6210 iNdEx++ 6211 wire |= uint64(b&0x7F) << shift 6212 if b < 0x80 { 6213 break 6214 } 6215 } 6216 fieldNum := int32(wire >> 3) 6217 wireType := int(wire & 0x7) 6218 if wireType == 4 { 6219 return fmt.Errorf("proto: EventRootChanged: wiretype end group for non-group") 6220 } 6221 if fieldNum <= 0 { 6222 return fmt.Errorf("proto: EventRootChanged: illegal tag %d (wire type %d)", fieldNum, wire) 6223 } 6224 switch fieldNum { 6225 case 1: 6226 if wireType != 2 { 6227 return fmt.Errorf("proto: wrong wireType = %d for field ContractId", wireType) 6228 } 6229 var stringLen uint64 6230 for shift := uint(0); ; shift += 7 { 6231 if shift >= 64 { 6232 return ErrIntOverflowEvent 6233 } 6234 if iNdEx >= l { 6235 return io.ErrUnexpectedEOF 6236 } 6237 b := dAtA[iNdEx] 6238 iNdEx++ 6239 stringLen |= uint64(b&0x7F) << shift 6240 if b < 0x80 { 6241 break 6242 } 6243 } 6244 intStringLen := int(stringLen) 6245 if intStringLen < 0 { 6246 return ErrInvalidLengthEvent 6247 } 6248 postIndex := iNdEx + intStringLen 6249 if postIndex < 0 { 6250 return ErrInvalidLengthEvent 6251 } 6252 if postIndex > l { 6253 return io.ErrUnexpectedEOF 6254 } 6255 m.ContractId = string(dAtA[iNdEx:postIndex]) 6256 iNdEx = postIndex 6257 case 2: 6258 if wireType != 2 { 6259 return fmt.Errorf("proto: wrong wireType = %d for field TokenId", wireType) 6260 } 6261 var stringLen uint64 6262 for shift := uint(0); ; shift += 7 { 6263 if shift >= 64 { 6264 return ErrIntOverflowEvent 6265 } 6266 if iNdEx >= l { 6267 return io.ErrUnexpectedEOF 6268 } 6269 b := dAtA[iNdEx] 6270 iNdEx++ 6271 stringLen |= uint64(b&0x7F) << shift 6272 if b < 0x80 { 6273 break 6274 } 6275 } 6276 intStringLen := int(stringLen) 6277 if intStringLen < 0 { 6278 return ErrInvalidLengthEvent 6279 } 6280 postIndex := iNdEx + intStringLen 6281 if postIndex < 0 { 6282 return ErrInvalidLengthEvent 6283 } 6284 if postIndex > l { 6285 return io.ErrUnexpectedEOF 6286 } 6287 m.TokenId = string(dAtA[iNdEx:postIndex]) 6288 iNdEx = postIndex 6289 case 3: 6290 if wireType != 2 { 6291 return fmt.Errorf("proto: wrong wireType = %d for field From", wireType) 6292 } 6293 var stringLen uint64 6294 for shift := uint(0); ; shift += 7 { 6295 if shift >= 64 { 6296 return ErrIntOverflowEvent 6297 } 6298 if iNdEx >= l { 6299 return io.ErrUnexpectedEOF 6300 } 6301 b := dAtA[iNdEx] 6302 iNdEx++ 6303 stringLen |= uint64(b&0x7F) << shift 6304 if b < 0x80 { 6305 break 6306 } 6307 } 6308 intStringLen := int(stringLen) 6309 if intStringLen < 0 { 6310 return ErrInvalidLengthEvent 6311 } 6312 postIndex := iNdEx + intStringLen 6313 if postIndex < 0 { 6314 return ErrInvalidLengthEvent 6315 } 6316 if postIndex > l { 6317 return io.ErrUnexpectedEOF 6318 } 6319 m.From = string(dAtA[iNdEx:postIndex]) 6320 iNdEx = postIndex 6321 case 4: 6322 if wireType != 2 { 6323 return fmt.Errorf("proto: wrong wireType = %d for field To", wireType) 6324 } 6325 var stringLen uint64 6326 for shift := uint(0); ; shift += 7 { 6327 if shift >= 64 { 6328 return ErrIntOverflowEvent 6329 } 6330 if iNdEx >= l { 6331 return io.ErrUnexpectedEOF 6332 } 6333 b := dAtA[iNdEx] 6334 iNdEx++ 6335 stringLen |= uint64(b&0x7F) << shift 6336 if b < 0x80 { 6337 break 6338 } 6339 } 6340 intStringLen := int(stringLen) 6341 if intStringLen < 0 { 6342 return ErrInvalidLengthEvent 6343 } 6344 postIndex := iNdEx + intStringLen 6345 if postIndex < 0 { 6346 return ErrInvalidLengthEvent 6347 } 6348 if postIndex > l { 6349 return io.ErrUnexpectedEOF 6350 } 6351 m.To = string(dAtA[iNdEx:postIndex]) 6352 iNdEx = postIndex 6353 default: 6354 iNdEx = preIndex 6355 skippy, err := skipEvent(dAtA[iNdEx:]) 6356 if err != nil { 6357 return err 6358 } 6359 if (skippy < 0) || (iNdEx+skippy) < 0 { 6360 return ErrInvalidLengthEvent 6361 } 6362 if (iNdEx + skippy) > l { 6363 return io.ErrUnexpectedEOF 6364 } 6365 iNdEx += skippy 6366 } 6367 } 6368 6369 if iNdEx > l { 6370 return io.ErrUnexpectedEOF 6371 } 6372 return nil 6373 } 6374 func skipEvent(dAtA []byte) (n int, err error) { 6375 l := len(dAtA) 6376 iNdEx := 0 6377 depth := 0 6378 for iNdEx < l { 6379 var wire uint64 6380 for shift := uint(0); ; shift += 7 { 6381 if shift >= 64 { 6382 return 0, ErrIntOverflowEvent 6383 } 6384 if iNdEx >= l { 6385 return 0, io.ErrUnexpectedEOF 6386 } 6387 b := dAtA[iNdEx] 6388 iNdEx++ 6389 wire |= (uint64(b) & 0x7F) << shift 6390 if b < 0x80 { 6391 break 6392 } 6393 } 6394 wireType := int(wire & 0x7) 6395 switch wireType { 6396 case 0: 6397 for shift := uint(0); ; shift += 7 { 6398 if shift >= 64 { 6399 return 0, ErrIntOverflowEvent 6400 } 6401 if iNdEx >= l { 6402 return 0, io.ErrUnexpectedEOF 6403 } 6404 iNdEx++ 6405 if dAtA[iNdEx-1] < 0x80 { 6406 break 6407 } 6408 } 6409 case 1: 6410 iNdEx += 8 6411 case 2: 6412 var length int 6413 for shift := uint(0); ; shift += 7 { 6414 if shift >= 64 { 6415 return 0, ErrIntOverflowEvent 6416 } 6417 if iNdEx >= l { 6418 return 0, io.ErrUnexpectedEOF 6419 } 6420 b := dAtA[iNdEx] 6421 iNdEx++ 6422 length |= (int(b) & 0x7F) << shift 6423 if b < 0x80 { 6424 break 6425 } 6426 } 6427 if length < 0 { 6428 return 0, ErrInvalidLengthEvent 6429 } 6430 iNdEx += length 6431 case 3: 6432 depth++ 6433 case 4: 6434 if depth == 0 { 6435 return 0, ErrUnexpectedEndOfGroupEvent 6436 } 6437 depth-- 6438 case 5: 6439 iNdEx += 4 6440 default: 6441 return 0, fmt.Errorf("proto: illegal wireType %d", wireType) 6442 } 6443 if iNdEx < 0 { 6444 return 0, ErrInvalidLengthEvent 6445 } 6446 if depth == 0 { 6447 return iNdEx, nil 6448 } 6449 } 6450 return 0, io.ErrUnexpectedEOF 6451 } 6452 6453 var ( 6454 ErrInvalidLengthEvent = fmt.Errorf("proto: negative length found during unmarshaling") 6455 ErrIntOverflowEvent = fmt.Errorf("proto: integer overflow") 6456 ErrUnexpectedEndOfGroupEvent = fmt.Errorf("proto: unexpected end of group") 6457 )