github.com/Finschia/finschia-sdk@v0.48.1/x/token/event.pb.go (about) 1 // Code generated by protoc-gen-gogo. DO NOT EDIT. 2 // source: lbm/token/v1/event.proto 3 4 package token 5 6 import ( 7 fmt "fmt" 8 github_com_Finschia_finschia_sdk_types "github.com/Finschia/finschia-sdk/types" 9 _ "github.com/gogo/protobuf/gogoproto" 10 proto "github.com/gogo/protobuf/proto" 11 io "io" 12 math "math" 13 math_bits "math/bits" 14 ) 15 16 // Reference imports to suppress errors if they are not otherwise used. 17 var _ = proto.Marshal 18 var _ = fmt.Errorf 19 var _ = math.Inf 20 21 // This is a compile-time assertion to ensure that this generated file 22 // is compatible with the proto package it is being compiled against. 23 // A compilation error at this line likely means your copy of the 24 // proto package needs to be updated. 25 const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package 26 27 // AttributeKey enumerates the valid attribute keys on x/token. 28 type AttributeKey int32 29 30 const ( 31 AttributeKeyUnspecified AttributeKey = 0 32 AttributeKeyName AttributeKey = 1 33 AttributeKeyMeta AttributeKey = 3 34 // deprecated: use ATTRIBUTE_KEY_URI 35 AttributeKeyImageURI AttributeKey = 8 36 AttributeKeyURI AttributeKey = 15 37 ) 38 39 var AttributeKey_name = map[int32]string{ 40 0: "ATTRIBUTE_KEY_UNSPECIFIED", 41 1: "ATTRIBUTE_KEY_NAME", 42 3: "ATTRIBUTE_KEY_META", 43 8: "ATTRIBUTE_KEY_IMG_URI", 44 15: "ATTRIBUTE_KEY_URI", 45 } 46 47 var AttributeKey_value = map[string]int32{ 48 "ATTRIBUTE_KEY_UNSPECIFIED": 0, 49 "ATTRIBUTE_KEY_NAME": 1, 50 "ATTRIBUTE_KEY_META": 3, 51 "ATTRIBUTE_KEY_IMG_URI": 8, 52 "ATTRIBUTE_KEY_URI": 15, 53 } 54 55 func (AttributeKey) EnumDescriptor() ([]byte, []int) { 56 return fileDescriptor_d7505f4c4cdec18e, []int{0} 57 } 58 59 // EventSent is emitted when tokens are transferred. 60 // 61 // Since: 0.46.0 (finschia) 62 type EventSent struct { 63 // contract id associated with the contract. 64 ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` 65 // address which triggered the send. 66 Operator string `protobuf:"bytes,2,opt,name=operator,proto3" json:"operator,omitempty"` 67 // holder whose tokens were sent. 68 From string `protobuf:"bytes,3,opt,name=from,proto3" json:"from,omitempty"` 69 // recipient of the tokens 70 To string `protobuf:"bytes,4,opt,name=to,proto3" json:"to,omitempty"` 71 // number of tokens sent. 72 Amount github_com_Finschia_finschia_sdk_types.Int `protobuf:"bytes,5,opt,name=amount,proto3,customtype=github.com/Finschia/finschia-sdk/types.Int" json:"amount"` 73 } 74 75 func (m *EventSent) Reset() { *m = EventSent{} } 76 func (m *EventSent) String() string { return proto.CompactTextString(m) } 77 func (*EventSent) ProtoMessage() {} 78 func (*EventSent) Descriptor() ([]byte, []int) { 79 return fileDescriptor_d7505f4c4cdec18e, []int{0} 80 } 81 func (m *EventSent) XXX_Unmarshal(b []byte) error { 82 return m.Unmarshal(b) 83 } 84 func (m *EventSent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 85 if deterministic { 86 return xxx_messageInfo_EventSent.Marshal(b, m, deterministic) 87 } else { 88 b = b[:cap(b)] 89 n, err := m.MarshalToSizedBuffer(b) 90 if err != nil { 91 return nil, err 92 } 93 return b[:n], nil 94 } 95 } 96 func (m *EventSent) XXX_Merge(src proto.Message) { 97 xxx_messageInfo_EventSent.Merge(m, src) 98 } 99 func (m *EventSent) XXX_Size() int { 100 return m.Size() 101 } 102 func (m *EventSent) XXX_DiscardUnknown() { 103 xxx_messageInfo_EventSent.DiscardUnknown(m) 104 } 105 106 var xxx_messageInfo_EventSent proto.InternalMessageInfo 107 108 func (m *EventSent) GetContractId() string { 109 if m != nil { 110 return m.ContractId 111 } 112 return "" 113 } 114 115 func (m *EventSent) GetOperator() string { 116 if m != nil { 117 return m.Operator 118 } 119 return "" 120 } 121 122 func (m *EventSent) GetFrom() string { 123 if m != nil { 124 return m.From 125 } 126 return "" 127 } 128 129 func (m *EventSent) GetTo() string { 130 if m != nil { 131 return m.To 132 } 133 return "" 134 } 135 136 // EventAuthorizedOperator is emitted when a holder authorizes an operator to manipulate its tokens. 137 // 138 // Since: 0.46.0 (finschia) 139 type EventAuthorizedOperator struct { 140 // contract id associated with the contract. 141 ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` 142 // address of a holder which authorized the `operator` address as an operator. 143 Holder string `protobuf:"bytes,2,opt,name=holder,proto3" json:"holder,omitempty"` 144 // address which became an operator of `holder`. 145 Operator string `protobuf:"bytes,3,opt,name=operator,proto3" json:"operator,omitempty"` 146 } 147 148 func (m *EventAuthorizedOperator) Reset() { *m = EventAuthorizedOperator{} } 149 func (m *EventAuthorizedOperator) String() string { return proto.CompactTextString(m) } 150 func (*EventAuthorizedOperator) ProtoMessage() {} 151 func (*EventAuthorizedOperator) Descriptor() ([]byte, []int) { 152 return fileDescriptor_d7505f4c4cdec18e, []int{1} 153 } 154 func (m *EventAuthorizedOperator) XXX_Unmarshal(b []byte) error { 155 return m.Unmarshal(b) 156 } 157 func (m *EventAuthorizedOperator) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 158 if deterministic { 159 return xxx_messageInfo_EventAuthorizedOperator.Marshal(b, m, deterministic) 160 } else { 161 b = b[:cap(b)] 162 n, err := m.MarshalToSizedBuffer(b) 163 if err != nil { 164 return nil, err 165 } 166 return b[:n], nil 167 } 168 } 169 func (m *EventAuthorizedOperator) XXX_Merge(src proto.Message) { 170 xxx_messageInfo_EventAuthorizedOperator.Merge(m, src) 171 } 172 func (m *EventAuthorizedOperator) XXX_Size() int { 173 return m.Size() 174 } 175 func (m *EventAuthorizedOperator) XXX_DiscardUnknown() { 176 xxx_messageInfo_EventAuthorizedOperator.DiscardUnknown(m) 177 } 178 179 var xxx_messageInfo_EventAuthorizedOperator proto.InternalMessageInfo 180 181 func (m *EventAuthorizedOperator) GetContractId() string { 182 if m != nil { 183 return m.ContractId 184 } 185 return "" 186 } 187 188 func (m *EventAuthorizedOperator) GetHolder() string { 189 if m != nil { 190 return m.Holder 191 } 192 return "" 193 } 194 195 func (m *EventAuthorizedOperator) GetOperator() string { 196 if m != nil { 197 return m.Operator 198 } 199 return "" 200 } 201 202 // EventRevokedOperator is emitted when an authorization is revoked. 203 // 204 // Since: 0.46.0 (finschia) 205 type EventRevokedOperator struct { 206 // contract id associated with the contract. 207 ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` 208 // address of a holder which revoked the `operator` address as an operator. 209 Holder string `protobuf:"bytes,2,opt,name=holder,proto3" json:"holder,omitempty"` 210 // address which was revoked as an operator of `holder`. 211 Operator string `protobuf:"bytes,3,opt,name=operator,proto3" json:"operator,omitempty"` 212 } 213 214 func (m *EventRevokedOperator) Reset() { *m = EventRevokedOperator{} } 215 func (m *EventRevokedOperator) String() string { return proto.CompactTextString(m) } 216 func (*EventRevokedOperator) ProtoMessage() {} 217 func (*EventRevokedOperator) Descriptor() ([]byte, []int) { 218 return fileDescriptor_d7505f4c4cdec18e, []int{2} 219 } 220 func (m *EventRevokedOperator) XXX_Unmarshal(b []byte) error { 221 return m.Unmarshal(b) 222 } 223 func (m *EventRevokedOperator) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 224 if deterministic { 225 return xxx_messageInfo_EventRevokedOperator.Marshal(b, m, deterministic) 226 } else { 227 b = b[:cap(b)] 228 n, err := m.MarshalToSizedBuffer(b) 229 if err != nil { 230 return nil, err 231 } 232 return b[:n], nil 233 } 234 } 235 func (m *EventRevokedOperator) XXX_Merge(src proto.Message) { 236 xxx_messageInfo_EventRevokedOperator.Merge(m, src) 237 } 238 func (m *EventRevokedOperator) XXX_Size() int { 239 return m.Size() 240 } 241 func (m *EventRevokedOperator) XXX_DiscardUnknown() { 242 xxx_messageInfo_EventRevokedOperator.DiscardUnknown(m) 243 } 244 245 var xxx_messageInfo_EventRevokedOperator proto.InternalMessageInfo 246 247 func (m *EventRevokedOperator) GetContractId() string { 248 if m != nil { 249 return m.ContractId 250 } 251 return "" 252 } 253 254 func (m *EventRevokedOperator) GetHolder() string { 255 if m != nil { 256 return m.Holder 257 } 258 return "" 259 } 260 261 func (m *EventRevokedOperator) GetOperator() string { 262 if m != nil { 263 return m.Operator 264 } 265 return "" 266 } 267 268 // EventIssued is emitted when a new contract is created. 269 // 270 // Since: 0.46.0 (finschia) 271 type EventIssued struct { 272 // address which created the contract. 273 Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` 274 // contract id associated with the contract. 275 ContractId string `protobuf:"bytes,2,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` 276 // name defines the human-readable name of the contract. 277 Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` 278 // symbol is an abbreviated name for contract. 279 Symbol string `protobuf:"bytes,4,opt,name=symbol,proto3" json:"symbol,omitempty"` 280 // uri is an uri for the resource of the contract stored off chain. 281 Uri string `protobuf:"bytes,5,opt,name=uri,proto3" json:"uri,omitempty"` 282 // meta is a brief description of contract. 283 Meta string `protobuf:"bytes,6,opt,name=meta,proto3" json:"meta,omitempty"` 284 // decimals is the number of decimals which one must divide the amount by to get its user representation. 285 Decimals int32 `protobuf:"varint,7,opt,name=decimals,proto3" json:"decimals,omitempty"` 286 // mintable represents whether the token is allowed to mint. 287 Mintable bool `protobuf:"varint,8,opt,name=mintable,proto3" json:"mintable,omitempty"` 288 } 289 290 func (m *EventIssued) Reset() { *m = EventIssued{} } 291 func (m *EventIssued) String() string { return proto.CompactTextString(m) } 292 func (*EventIssued) ProtoMessage() {} 293 func (*EventIssued) Descriptor() ([]byte, []int) { 294 return fileDescriptor_d7505f4c4cdec18e, []int{3} 295 } 296 func (m *EventIssued) XXX_Unmarshal(b []byte) error { 297 return m.Unmarshal(b) 298 } 299 func (m *EventIssued) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 300 if deterministic { 301 return xxx_messageInfo_EventIssued.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 *EventIssued) XXX_Merge(src proto.Message) { 312 xxx_messageInfo_EventIssued.Merge(m, src) 313 } 314 func (m *EventIssued) XXX_Size() int { 315 return m.Size() 316 } 317 func (m *EventIssued) XXX_DiscardUnknown() { 318 xxx_messageInfo_EventIssued.DiscardUnknown(m) 319 } 320 321 var xxx_messageInfo_EventIssued proto.InternalMessageInfo 322 323 func (m *EventIssued) GetCreator() string { 324 if m != nil { 325 return m.Creator 326 } 327 return "" 328 } 329 330 func (m *EventIssued) GetContractId() string { 331 if m != nil { 332 return m.ContractId 333 } 334 return "" 335 } 336 337 func (m *EventIssued) GetName() string { 338 if m != nil { 339 return m.Name 340 } 341 return "" 342 } 343 344 func (m *EventIssued) GetSymbol() string { 345 if m != nil { 346 return m.Symbol 347 } 348 return "" 349 } 350 351 func (m *EventIssued) GetUri() string { 352 if m != nil { 353 return m.Uri 354 } 355 return "" 356 } 357 358 func (m *EventIssued) GetMeta() string { 359 if m != nil { 360 return m.Meta 361 } 362 return "" 363 } 364 365 func (m *EventIssued) GetDecimals() int32 { 366 if m != nil { 367 return m.Decimals 368 } 369 return 0 370 } 371 372 func (m *EventIssued) GetMintable() bool { 373 if m != nil { 374 return m.Mintable 375 } 376 return false 377 } 378 379 // EventGranted is emitted when a granter grants its permission to a grantee. 380 // 381 // Info: `granter` would be empty if the permission is granted by an issuance. 382 // 383 // Since: 0.46.0 (finschia) 384 type EventGranted struct { 385 // contract id associated with the contract. 386 ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` 387 // address which granted the permission to `grantee`. 388 // it would be empty where the event is triggered by the issuance. 389 Granter string `protobuf:"bytes,2,opt,name=granter,proto3" json:"granter,omitempty"` 390 // address of the grantee. 391 Grantee string `protobuf:"bytes,3,opt,name=grantee,proto3" json:"grantee,omitempty"` 392 // permission on the contract. 393 Permission Permission `protobuf:"varint,4,opt,name=permission,proto3,enum=lbm.token.v1.Permission" json:"permission,omitempty"` 394 } 395 396 func (m *EventGranted) Reset() { *m = EventGranted{} } 397 func (m *EventGranted) String() string { return proto.CompactTextString(m) } 398 func (*EventGranted) ProtoMessage() {} 399 func (*EventGranted) Descriptor() ([]byte, []int) { 400 return fileDescriptor_d7505f4c4cdec18e, []int{4} 401 } 402 func (m *EventGranted) XXX_Unmarshal(b []byte) error { 403 return m.Unmarshal(b) 404 } 405 func (m *EventGranted) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 406 if deterministic { 407 return xxx_messageInfo_EventGranted.Marshal(b, m, deterministic) 408 } else { 409 b = b[:cap(b)] 410 n, err := m.MarshalToSizedBuffer(b) 411 if err != nil { 412 return nil, err 413 } 414 return b[:n], nil 415 } 416 } 417 func (m *EventGranted) XXX_Merge(src proto.Message) { 418 xxx_messageInfo_EventGranted.Merge(m, src) 419 } 420 func (m *EventGranted) XXX_Size() int { 421 return m.Size() 422 } 423 func (m *EventGranted) XXX_DiscardUnknown() { 424 xxx_messageInfo_EventGranted.DiscardUnknown(m) 425 } 426 427 var xxx_messageInfo_EventGranted proto.InternalMessageInfo 428 429 func (m *EventGranted) GetContractId() string { 430 if m != nil { 431 return m.ContractId 432 } 433 return "" 434 } 435 436 func (m *EventGranted) GetGranter() string { 437 if m != nil { 438 return m.Granter 439 } 440 return "" 441 } 442 443 func (m *EventGranted) GetGrantee() string { 444 if m != nil { 445 return m.Grantee 446 } 447 return "" 448 } 449 450 func (m *EventGranted) GetPermission() Permission { 451 if m != nil { 452 return m.Permission 453 } 454 return PermissionUnspecified 455 } 456 457 // EventRenounced is emitted when a grantee renounces its permission. 458 // 459 // Since: 0.46.0 (finschia) 460 type EventRenounced struct { 461 // contract id associated with the contract. 462 ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` 463 // address of the grantee which abandons its grant. 464 Grantee string `protobuf:"bytes,2,opt,name=grantee,proto3" json:"grantee,omitempty"` 465 // permission on the contract. 466 Permission Permission `protobuf:"varint,3,opt,name=permission,proto3,enum=lbm.token.v1.Permission" json:"permission,omitempty"` 467 } 468 469 func (m *EventRenounced) Reset() { *m = EventRenounced{} } 470 func (m *EventRenounced) String() string { return proto.CompactTextString(m) } 471 func (*EventRenounced) ProtoMessage() {} 472 func (*EventRenounced) Descriptor() ([]byte, []int) { 473 return fileDescriptor_d7505f4c4cdec18e, []int{5} 474 } 475 func (m *EventRenounced) XXX_Unmarshal(b []byte) error { 476 return m.Unmarshal(b) 477 } 478 func (m *EventRenounced) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 479 if deterministic { 480 return xxx_messageInfo_EventRenounced.Marshal(b, m, deterministic) 481 } else { 482 b = b[:cap(b)] 483 n, err := m.MarshalToSizedBuffer(b) 484 if err != nil { 485 return nil, err 486 } 487 return b[:n], nil 488 } 489 } 490 func (m *EventRenounced) XXX_Merge(src proto.Message) { 491 xxx_messageInfo_EventRenounced.Merge(m, src) 492 } 493 func (m *EventRenounced) XXX_Size() int { 494 return m.Size() 495 } 496 func (m *EventRenounced) XXX_DiscardUnknown() { 497 xxx_messageInfo_EventRenounced.DiscardUnknown(m) 498 } 499 500 var xxx_messageInfo_EventRenounced proto.InternalMessageInfo 501 502 func (m *EventRenounced) GetContractId() string { 503 if m != nil { 504 return m.ContractId 505 } 506 return "" 507 } 508 509 func (m *EventRenounced) GetGrantee() string { 510 if m != nil { 511 return m.Grantee 512 } 513 return "" 514 } 515 516 func (m *EventRenounced) GetPermission() Permission { 517 if m != nil { 518 return m.Permission 519 } 520 return PermissionUnspecified 521 } 522 523 // EventMinted is emitted when tokens are minted. 524 // 525 // Since: 0.46.0 (finschia) 526 type EventMinted struct { 527 // contract id associated with the contract. 528 ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` 529 // address which triggered the mint. 530 Operator string `protobuf:"bytes,2,opt,name=operator,proto3" json:"operator,omitempty"` 531 // recipient of the tokens. 532 To string `protobuf:"bytes,3,opt,name=to,proto3" json:"to,omitempty"` 533 // number of tokens minted. 534 Amount github_com_Finschia_finschia_sdk_types.Int `protobuf:"bytes,4,opt,name=amount,proto3,customtype=github.com/Finschia/finschia-sdk/types.Int" json:"amount"` 535 } 536 537 func (m *EventMinted) Reset() { *m = EventMinted{} } 538 func (m *EventMinted) String() string { return proto.CompactTextString(m) } 539 func (*EventMinted) ProtoMessage() {} 540 func (*EventMinted) Descriptor() ([]byte, []int) { 541 return fileDescriptor_d7505f4c4cdec18e, []int{6} 542 } 543 func (m *EventMinted) XXX_Unmarshal(b []byte) error { 544 return m.Unmarshal(b) 545 } 546 func (m *EventMinted) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 547 if deterministic { 548 return xxx_messageInfo_EventMinted.Marshal(b, m, deterministic) 549 } else { 550 b = b[:cap(b)] 551 n, err := m.MarshalToSizedBuffer(b) 552 if err != nil { 553 return nil, err 554 } 555 return b[:n], nil 556 } 557 } 558 func (m *EventMinted) XXX_Merge(src proto.Message) { 559 xxx_messageInfo_EventMinted.Merge(m, src) 560 } 561 func (m *EventMinted) XXX_Size() int { 562 return m.Size() 563 } 564 func (m *EventMinted) XXX_DiscardUnknown() { 565 xxx_messageInfo_EventMinted.DiscardUnknown(m) 566 } 567 568 var xxx_messageInfo_EventMinted proto.InternalMessageInfo 569 570 func (m *EventMinted) GetContractId() string { 571 if m != nil { 572 return m.ContractId 573 } 574 return "" 575 } 576 577 func (m *EventMinted) GetOperator() string { 578 if m != nil { 579 return m.Operator 580 } 581 return "" 582 } 583 584 func (m *EventMinted) GetTo() string { 585 if m != nil { 586 return m.To 587 } 588 return "" 589 } 590 591 // EventBurned is emitted when tokens are burnt. 592 // 593 // Since: 0.46.0 (finschia) 594 type EventBurned struct { 595 // contract id associated with the contract. 596 ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` 597 // address which triggered the burn. 598 Operator string `protobuf:"bytes,2,opt,name=operator,proto3" json:"operator,omitempty"` 599 // holder whose tokens were burned. 600 From string `protobuf:"bytes,3,opt,name=from,proto3" json:"from,omitempty"` 601 // number of tokens burned. 602 Amount github_com_Finschia_finschia_sdk_types.Int `protobuf:"bytes,4,opt,name=amount,proto3,customtype=github.com/Finschia/finschia-sdk/types.Int" json:"amount"` 603 } 604 605 func (m *EventBurned) Reset() { *m = EventBurned{} } 606 func (m *EventBurned) String() string { return proto.CompactTextString(m) } 607 func (*EventBurned) ProtoMessage() {} 608 func (*EventBurned) Descriptor() ([]byte, []int) { 609 return fileDescriptor_d7505f4c4cdec18e, []int{7} 610 } 611 func (m *EventBurned) XXX_Unmarshal(b []byte) error { 612 return m.Unmarshal(b) 613 } 614 func (m *EventBurned) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 615 if deterministic { 616 return xxx_messageInfo_EventBurned.Marshal(b, m, deterministic) 617 } else { 618 b = b[:cap(b)] 619 n, err := m.MarshalToSizedBuffer(b) 620 if err != nil { 621 return nil, err 622 } 623 return b[:n], nil 624 } 625 } 626 func (m *EventBurned) XXX_Merge(src proto.Message) { 627 xxx_messageInfo_EventBurned.Merge(m, src) 628 } 629 func (m *EventBurned) XXX_Size() int { 630 return m.Size() 631 } 632 func (m *EventBurned) XXX_DiscardUnknown() { 633 xxx_messageInfo_EventBurned.DiscardUnknown(m) 634 } 635 636 var xxx_messageInfo_EventBurned proto.InternalMessageInfo 637 638 func (m *EventBurned) GetContractId() string { 639 if m != nil { 640 return m.ContractId 641 } 642 return "" 643 } 644 645 func (m *EventBurned) GetOperator() string { 646 if m != nil { 647 return m.Operator 648 } 649 return "" 650 } 651 652 func (m *EventBurned) GetFrom() string { 653 if m != nil { 654 return m.From 655 } 656 return "" 657 } 658 659 // EventModified is emitted when the information of a contract is modified. 660 // 661 // Since: 0.46.0 (finschia) 662 type EventModified struct { 663 // contract id associated with the contract. 664 ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` 665 // address which triggered the modify. 666 Operator string `protobuf:"bytes,2,opt,name=operator,proto3" json:"operator,omitempty"` 667 // changes on the metadata of the class. 668 // possible attribute keys are same as those of MsgModify. 669 // deprecated "img_uri" has been replaced by "uri" in the events. 670 Changes []Attribute `protobuf:"bytes,3,rep,name=changes,proto3" json:"changes"` 671 } 672 673 func (m *EventModified) Reset() { *m = EventModified{} } 674 func (m *EventModified) String() string { return proto.CompactTextString(m) } 675 func (*EventModified) ProtoMessage() {} 676 func (*EventModified) Descriptor() ([]byte, []int) { 677 return fileDescriptor_d7505f4c4cdec18e, []int{8} 678 } 679 func (m *EventModified) XXX_Unmarshal(b []byte) error { 680 return m.Unmarshal(b) 681 } 682 func (m *EventModified) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 683 if deterministic { 684 return xxx_messageInfo_EventModified.Marshal(b, m, deterministic) 685 } else { 686 b = b[:cap(b)] 687 n, err := m.MarshalToSizedBuffer(b) 688 if err != nil { 689 return nil, err 690 } 691 return b[:n], nil 692 } 693 } 694 func (m *EventModified) XXX_Merge(src proto.Message) { 695 xxx_messageInfo_EventModified.Merge(m, src) 696 } 697 func (m *EventModified) XXX_Size() int { 698 return m.Size() 699 } 700 func (m *EventModified) XXX_DiscardUnknown() { 701 xxx_messageInfo_EventModified.DiscardUnknown(m) 702 } 703 704 var xxx_messageInfo_EventModified proto.InternalMessageInfo 705 706 func (m *EventModified) GetContractId() string { 707 if m != nil { 708 return m.ContractId 709 } 710 return "" 711 } 712 713 func (m *EventModified) GetOperator() string { 714 if m != nil { 715 return m.Operator 716 } 717 return "" 718 } 719 720 func (m *EventModified) GetChanges() []Attribute { 721 if m != nil { 722 return m.Changes 723 } 724 return nil 725 } 726 727 func init() { 728 proto.RegisterEnum("lbm.token.v1.AttributeKey", AttributeKey_name, AttributeKey_value) 729 proto.RegisterType((*EventSent)(nil), "lbm.token.v1.EventSent") 730 proto.RegisterType((*EventAuthorizedOperator)(nil), "lbm.token.v1.EventAuthorizedOperator") 731 proto.RegisterType((*EventRevokedOperator)(nil), "lbm.token.v1.EventRevokedOperator") 732 proto.RegisterType((*EventIssued)(nil), "lbm.token.v1.EventIssued") 733 proto.RegisterType((*EventGranted)(nil), "lbm.token.v1.EventGranted") 734 proto.RegisterType((*EventRenounced)(nil), "lbm.token.v1.EventRenounced") 735 proto.RegisterType((*EventMinted)(nil), "lbm.token.v1.EventMinted") 736 proto.RegisterType((*EventBurned)(nil), "lbm.token.v1.EventBurned") 737 proto.RegisterType((*EventModified)(nil), "lbm.token.v1.EventModified") 738 } 739 740 func init() { proto.RegisterFile("lbm/token/v1/event.proto", fileDescriptor_d7505f4c4cdec18e) } 741 742 var fileDescriptor_d7505f4c4cdec18e = []byte{ 743 // 743 bytes of a gzipped FileDescriptorProto 744 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x55, 0xcd, 0x6e, 0xd3, 0x4c, 745 0x14, 0x8d, 0x63, 0x37, 0x71, 0xa7, 0xfd, 0x52, 0x7f, 0x26, 0x50, 0x63, 0x24, 0xd7, 0xf2, 0x2a, 746 0xaa, 0x20, 0x51, 0xdb, 0x05, 0x88, 0x5d, 0x02, 0x69, 0x65, 0xaa, 0x94, 0xca, 0x4d, 0x16, 0xb0, 747 0x89, 0xfc, 0x33, 0x4d, 0xac, 0xc4, 0x33, 0x91, 0x3d, 0x8e, 0x28, 0xfb, 0x4a, 0x28, 0x2b, 0x5e, 748 0x20, 0xab, 0x22, 0x84, 0x78, 0x02, 0x1e, 0xa1, 0xcb, 0x8a, 0x15, 0x62, 0x51, 0xa1, 0xf6, 0x45, 749 0x90, 0xc7, 0x71, 0x88, 0xdb, 0x8a, 0x52, 0x15, 0x76, 0xf7, 0xce, 0x39, 0xd7, 0xf7, 0x9c, 0xb9, 750 0xba, 0x1e, 0x20, 0xf5, 0x2d, 0xaf, 0x42, 0x70, 0x0f, 0xa2, 0xca, 0x70, 0xad, 0x02, 0x87, 0x10, 751 0x91, 0xf2, 0xc0, 0xc7, 0x04, 0x8b, 0x8b, 0x7d, 0xcb, 0x2b, 0x53, 0xa4, 0x3c, 0x5c, 0x93, 0x8b, 752 0x1d, 0xdc, 0xc1, 0x14, 0xa8, 0x44, 0x51, 0xcc, 0x91, 0xd3, 0xd5, 0x31, 0x99, 0x22, 0xda, 0x17, 753 0x06, 0xcc, 0xd7, 0xa3, 0xaf, 0xed, 0x41, 0x44, 0xc4, 0x15, 0xb0, 0x60, 0x63, 0x44, 0x7c, 0xd3, 754 0x26, 0x6d, 0xd7, 0x91, 0x18, 0x95, 0x29, 0xcd, 0x1b, 0x20, 0x39, 0xd2, 0x1d, 0x51, 0x06, 0x3c, 755 0x1e, 0x40, 0xdf, 0x24, 0xd8, 0x97, 0xb2, 0x14, 0x9d, 0xe6, 0xa2, 0x08, 0xb8, 0x7d, 0x1f, 0x7b, 756 0x12, 0x4b, 0xcf, 0x69, 0x2c, 0x16, 0x40, 0x96, 0x60, 0x89, 0xa3, 0x27, 0x59, 0x82, 0xc5, 0x17, 757 0x20, 0x67, 0x7a, 0x38, 0x44, 0x44, 0x9a, 0x8b, 0xce, 0x6a, 0xeb, 0xc7, 0xa7, 0x2b, 0x99, 0xef, 758 0xa7, 0x2b, 0xab, 0x1d, 0x97, 0x74, 0x43, 0xab, 0x6c, 0x63, 0xaf, 0xb2, 0xe9, 0xa2, 0xc0, 0xee, 759 0xba, 0x66, 0x65, 0x7f, 0x12, 0x3c, 0x0a, 0x9c, 0x5e, 0x85, 0x1c, 0x0c, 0x60, 0x50, 0xd6, 0x11, 760 0x31, 0x26, 0x5f, 0xd0, 0x10, 0x58, 0xa6, 0xca, 0xab, 0x21, 0xe9, 0x62, 0xdf, 0x7d, 0x0b, 0x9d, 761 0x97, 0x89, 0x94, 0x6b, 0x7d, 0xdc, 0x03, 0xb9, 0x2e, 0xee, 0x3b, 0x30, 0x71, 0x31, 0xc9, 0x52, 762 0xfe, 0xd8, 0xb4, 0x3f, 0xad, 0x07, 0x8a, 0xb4, 0x9f, 0x01, 0x87, 0xb8, 0xf7, 0xaf, 0x9b, 0x7d, 763 0x65, 0xc0, 0x02, 0xed, 0xa6, 0x07, 0x41, 0x08, 0x1d, 0x51, 0x02, 0x79, 0xdb, 0x87, 0x94, 0x1a, 764 0x37, 0x48, 0xd2, 0x8b, 0xed, 0xb3, 0x97, 0xda, 0x8b, 0x80, 0x43, 0xa6, 0x07, 0x93, 0xb9, 0x44, 765 0x71, 0x24, 0x29, 0x38, 0xf0, 0x2c, 0xdc, 0x9f, 0xcc, 0x66, 0x92, 0x89, 0x02, 0x60, 0x43, 0xdf, 766 0x8d, 0x87, 0x63, 0x44, 0x61, 0x54, 0xed, 0x41, 0x62, 0x4a, 0xb9, 0xb8, 0x3a, 0x8a, 0x23, 0xe1, 767 0x0e, 0xb4, 0x5d, 0xcf, 0xec, 0x07, 0x52, 0x5e, 0x65, 0x4a, 0x73, 0xc6, 0x34, 0x8f, 0x30, 0xcf, 768 0x45, 0xc4, 0xb4, 0xfa, 0x50, 0xe2, 0x55, 0xa6, 0xc4, 0x1b, 0xd3, 0x5c, 0x1b, 0x33, 0x60, 0x91, 769 0x9a, 0xda, 0xf2, 0x4d, 0x44, 0xa0, 0x73, 0xfd, 0xd5, 0x49, 0x20, 0xdf, 0xa1, 0xdc, 0xe4, 0xee, 770 0x92, 0xf4, 0x17, 0x92, 0x18, 0x4b, 0x52, 0xf1, 0x09, 0x00, 0x03, 0xe8, 0x7b, 0x6e, 0x10, 0xb8, 771 0x18, 0x51, 0x7f, 0x85, 0x75, 0xa9, 0x3c, 0xbb, 0x25, 0xe5, 0xdd, 0x29, 0x6e, 0xcc, 0x70, 0xb5, 772 0x43, 0x06, 0x14, 0x26, 0x23, 0x46, 0x38, 0x44, 0xf6, 0x8d, 0x14, 0xc2, 0xb4, 0xc2, 0x8b, 0x3a, 773 0xd8, 0x1b, 0xe8, 0xf8, 0x98, 0x0c, 0xbf, 0xe1, 0xfe, 0xd9, 0x35, 0xfd, 0x6e, 0x2d, 0xe3, 0x15, 774 0x64, 0xaf, 0x58, 0x41, 0xee, 0xd6, 0x2b, 0xf8, 0x39, 0x11, 0x5a, 0x0b, 0x7d, 0x74, 0x5b, 0xa1, 775 0x57, 0xfd, 0x3f, 0xfe, 0xa6, 0xd8, 0x43, 0x06, 0xfc, 0x17, 0xdf, 0x2a, 0x76, 0xdc, 0x7d, 0xf7, 776 0xb6, 0x72, 0x1f, 0x83, 0xbc, 0xdd, 0x35, 0x51, 0x07, 0x06, 0x12, 0xab, 0xb2, 0xa5, 0x85, 0xf5, 777 0xe5, 0xf4, 0x6c, 0xab, 0x84, 0xf8, 0xae, 0x15, 0x12, 0x58, 0xe3, 0x22, 0xd1, 0x46, 0xc2, 0x5e, 778 0x3d, 0xca, 0x82, 0xc5, 0x29, 0xb8, 0x0d, 0x0f, 0xc4, 0xa7, 0xe0, 0x7e, 0xb5, 0xd9, 0x34, 0xf4, 779 0x5a, 0xab, 0x59, 0x6f, 0x6f, 0xd7, 0x5f, 0xb5, 0x5b, 0x3b, 0x7b, 0xbb, 0xf5, 0x67, 0xfa, 0xa6, 780 0x5e, 0x7f, 0x2e, 0x64, 0xe4, 0x07, 0xa3, 0xb1, 0xba, 0x3c, 0x5b, 0xd0, 0x42, 0xc1, 0x00, 0xda, 781 0xb1, 0x85, 0x87, 0x40, 0x4c, 0xd7, 0xee, 0x54, 0x1b, 0x75, 0x81, 0x91, 0x8b, 0xa3, 0xb1, 0x2a, 782 0xcc, 0x16, 0xed, 0x44, 0x6b, 0x7f, 0x89, 0xdd, 0xa8, 0x37, 0xab, 0x02, 0x7b, 0x99, 0xdd, 0x88, 783 0xd6, 0x7c, 0x03, 0xdc, 0x4d, 0xb3, 0xf5, 0xc6, 0x56, 0xbb, 0x65, 0xe8, 0x02, 0x2f, 0x4b, 0xa3, 784 0xb1, 0x5a, 0x9c, 0x2d, 0xd0, 0x3d, 0xb3, 0x03, 0x5b, 0x86, 0x2e, 0xae, 0x82, 0xff, 0x2f, 0x98, 785 0x31, 0x74, 0x61, 0x49, 0xbe, 0x33, 0x1a, 0xab, 0x4b, 0x29, 0x13, 0x86, 0x2e, 0xf3, 0xef, 0x8e, 786 0x94, 0xcc, 0xa7, 0x0f, 0x4a, 0x46, 0xe3, 0xf8, 0xac, 0x90, 0xd5, 0x38, 0x9e, 0x13, 0xf2, 0x1a, 787 0xc7, 0xcf, 0x0b, 0x85, 0x5a, 0xed, 0xf8, 0x4c, 0x61, 0x4e, 0xce, 0x14, 0xe6, 0xc7, 0x99, 0xc2, 788 0xbc, 0x3f, 0x57, 0x32, 0x27, 0xe7, 0x4a, 0xe6, 0xdb, 0xb9, 0x92, 0x79, 0x5d, 0xba, 0x76, 0xf6, 789 0x6f, 0xe2, 0x27, 0xce, 0xca, 0xd1, 0x37, 0x6e, 0xe3, 0x67, 0x00, 0x00, 0x00, 0xff, 0xff, 0x64, 790 0x9d, 0xef, 0xa0, 0x3d, 0x07, 0x00, 0x00, 791 } 792 793 func (m *EventSent) Marshal() (dAtA []byte, err error) { 794 size := m.Size() 795 dAtA = make([]byte, size) 796 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 797 if err != nil { 798 return nil, err 799 } 800 return dAtA[:n], nil 801 } 802 803 func (m *EventSent) MarshalTo(dAtA []byte) (int, error) { 804 size := m.Size() 805 return m.MarshalToSizedBuffer(dAtA[:size]) 806 } 807 808 func (m *EventSent) MarshalToSizedBuffer(dAtA []byte) (int, error) { 809 i := len(dAtA) 810 _ = i 811 var l int 812 _ = l 813 { 814 size := m.Amount.Size() 815 i -= size 816 if _, err := m.Amount.MarshalTo(dAtA[i:]); err != nil { 817 return 0, err 818 } 819 i = encodeVarintEvent(dAtA, i, uint64(size)) 820 } 821 i-- 822 dAtA[i] = 0x2a 823 if len(m.To) > 0 { 824 i -= len(m.To) 825 copy(dAtA[i:], m.To) 826 i = encodeVarintEvent(dAtA, i, uint64(len(m.To))) 827 i-- 828 dAtA[i] = 0x22 829 } 830 if len(m.From) > 0 { 831 i -= len(m.From) 832 copy(dAtA[i:], m.From) 833 i = encodeVarintEvent(dAtA, i, uint64(len(m.From))) 834 i-- 835 dAtA[i] = 0x1a 836 } 837 if len(m.Operator) > 0 { 838 i -= len(m.Operator) 839 copy(dAtA[i:], m.Operator) 840 i = encodeVarintEvent(dAtA, i, uint64(len(m.Operator))) 841 i-- 842 dAtA[i] = 0x12 843 } 844 if len(m.ContractId) > 0 { 845 i -= len(m.ContractId) 846 copy(dAtA[i:], m.ContractId) 847 i = encodeVarintEvent(dAtA, i, uint64(len(m.ContractId))) 848 i-- 849 dAtA[i] = 0xa 850 } 851 return len(dAtA) - i, nil 852 } 853 854 func (m *EventAuthorizedOperator) Marshal() (dAtA []byte, err error) { 855 size := m.Size() 856 dAtA = make([]byte, size) 857 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 858 if err != nil { 859 return nil, err 860 } 861 return dAtA[:n], nil 862 } 863 864 func (m *EventAuthorizedOperator) MarshalTo(dAtA []byte) (int, error) { 865 size := m.Size() 866 return m.MarshalToSizedBuffer(dAtA[:size]) 867 } 868 869 func (m *EventAuthorizedOperator) MarshalToSizedBuffer(dAtA []byte) (int, error) { 870 i := len(dAtA) 871 _ = i 872 var l int 873 _ = l 874 if len(m.Operator) > 0 { 875 i -= len(m.Operator) 876 copy(dAtA[i:], m.Operator) 877 i = encodeVarintEvent(dAtA, i, uint64(len(m.Operator))) 878 i-- 879 dAtA[i] = 0x1a 880 } 881 if len(m.Holder) > 0 { 882 i -= len(m.Holder) 883 copy(dAtA[i:], m.Holder) 884 i = encodeVarintEvent(dAtA, i, uint64(len(m.Holder))) 885 i-- 886 dAtA[i] = 0x12 887 } 888 if len(m.ContractId) > 0 { 889 i -= len(m.ContractId) 890 copy(dAtA[i:], m.ContractId) 891 i = encodeVarintEvent(dAtA, i, uint64(len(m.ContractId))) 892 i-- 893 dAtA[i] = 0xa 894 } 895 return len(dAtA) - i, nil 896 } 897 898 func (m *EventRevokedOperator) Marshal() (dAtA []byte, err error) { 899 size := m.Size() 900 dAtA = make([]byte, size) 901 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 902 if err != nil { 903 return nil, err 904 } 905 return dAtA[:n], nil 906 } 907 908 func (m *EventRevokedOperator) MarshalTo(dAtA []byte) (int, error) { 909 size := m.Size() 910 return m.MarshalToSizedBuffer(dAtA[:size]) 911 } 912 913 func (m *EventRevokedOperator) MarshalToSizedBuffer(dAtA []byte) (int, error) { 914 i := len(dAtA) 915 _ = i 916 var l int 917 _ = l 918 if len(m.Operator) > 0 { 919 i -= len(m.Operator) 920 copy(dAtA[i:], m.Operator) 921 i = encodeVarintEvent(dAtA, i, uint64(len(m.Operator))) 922 i-- 923 dAtA[i] = 0x1a 924 } 925 if len(m.Holder) > 0 { 926 i -= len(m.Holder) 927 copy(dAtA[i:], m.Holder) 928 i = encodeVarintEvent(dAtA, i, uint64(len(m.Holder))) 929 i-- 930 dAtA[i] = 0x12 931 } 932 if len(m.ContractId) > 0 { 933 i -= len(m.ContractId) 934 copy(dAtA[i:], m.ContractId) 935 i = encodeVarintEvent(dAtA, i, uint64(len(m.ContractId))) 936 i-- 937 dAtA[i] = 0xa 938 } 939 return len(dAtA) - i, nil 940 } 941 942 func (m *EventIssued) Marshal() (dAtA []byte, err error) { 943 size := m.Size() 944 dAtA = make([]byte, size) 945 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 946 if err != nil { 947 return nil, err 948 } 949 return dAtA[:n], nil 950 } 951 952 func (m *EventIssued) MarshalTo(dAtA []byte) (int, error) { 953 size := m.Size() 954 return m.MarshalToSizedBuffer(dAtA[:size]) 955 } 956 957 func (m *EventIssued) MarshalToSizedBuffer(dAtA []byte) (int, error) { 958 i := len(dAtA) 959 _ = i 960 var l int 961 _ = l 962 if m.Mintable { 963 i-- 964 if m.Mintable { 965 dAtA[i] = 1 966 } else { 967 dAtA[i] = 0 968 } 969 i-- 970 dAtA[i] = 0x40 971 } 972 if m.Decimals != 0 { 973 i = encodeVarintEvent(dAtA, i, uint64(m.Decimals)) 974 i-- 975 dAtA[i] = 0x38 976 } 977 if len(m.Meta) > 0 { 978 i -= len(m.Meta) 979 copy(dAtA[i:], m.Meta) 980 i = encodeVarintEvent(dAtA, i, uint64(len(m.Meta))) 981 i-- 982 dAtA[i] = 0x32 983 } 984 if len(m.Uri) > 0 { 985 i -= len(m.Uri) 986 copy(dAtA[i:], m.Uri) 987 i = encodeVarintEvent(dAtA, i, uint64(len(m.Uri))) 988 i-- 989 dAtA[i] = 0x2a 990 } 991 if len(m.Symbol) > 0 { 992 i -= len(m.Symbol) 993 copy(dAtA[i:], m.Symbol) 994 i = encodeVarintEvent(dAtA, i, uint64(len(m.Symbol))) 995 i-- 996 dAtA[i] = 0x22 997 } 998 if len(m.Name) > 0 { 999 i -= len(m.Name) 1000 copy(dAtA[i:], m.Name) 1001 i = encodeVarintEvent(dAtA, i, uint64(len(m.Name))) 1002 i-- 1003 dAtA[i] = 0x1a 1004 } 1005 if len(m.ContractId) > 0 { 1006 i -= len(m.ContractId) 1007 copy(dAtA[i:], m.ContractId) 1008 i = encodeVarintEvent(dAtA, i, uint64(len(m.ContractId))) 1009 i-- 1010 dAtA[i] = 0x12 1011 } 1012 if len(m.Creator) > 0 { 1013 i -= len(m.Creator) 1014 copy(dAtA[i:], m.Creator) 1015 i = encodeVarintEvent(dAtA, i, uint64(len(m.Creator))) 1016 i-- 1017 dAtA[i] = 0xa 1018 } 1019 return len(dAtA) - i, nil 1020 } 1021 1022 func (m *EventGranted) Marshal() (dAtA []byte, err error) { 1023 size := m.Size() 1024 dAtA = make([]byte, size) 1025 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 1026 if err != nil { 1027 return nil, err 1028 } 1029 return dAtA[:n], nil 1030 } 1031 1032 func (m *EventGranted) MarshalTo(dAtA []byte) (int, error) { 1033 size := m.Size() 1034 return m.MarshalToSizedBuffer(dAtA[:size]) 1035 } 1036 1037 func (m *EventGranted) MarshalToSizedBuffer(dAtA []byte) (int, error) { 1038 i := len(dAtA) 1039 _ = i 1040 var l int 1041 _ = l 1042 if m.Permission != 0 { 1043 i = encodeVarintEvent(dAtA, i, uint64(m.Permission)) 1044 i-- 1045 dAtA[i] = 0x20 1046 } 1047 if len(m.Grantee) > 0 { 1048 i -= len(m.Grantee) 1049 copy(dAtA[i:], m.Grantee) 1050 i = encodeVarintEvent(dAtA, i, uint64(len(m.Grantee))) 1051 i-- 1052 dAtA[i] = 0x1a 1053 } 1054 if len(m.Granter) > 0 { 1055 i -= len(m.Granter) 1056 copy(dAtA[i:], m.Granter) 1057 i = encodeVarintEvent(dAtA, i, uint64(len(m.Granter))) 1058 i-- 1059 dAtA[i] = 0x12 1060 } 1061 if len(m.ContractId) > 0 { 1062 i -= len(m.ContractId) 1063 copy(dAtA[i:], m.ContractId) 1064 i = encodeVarintEvent(dAtA, i, uint64(len(m.ContractId))) 1065 i-- 1066 dAtA[i] = 0xa 1067 } 1068 return len(dAtA) - i, nil 1069 } 1070 1071 func (m *EventRenounced) Marshal() (dAtA []byte, err error) { 1072 size := m.Size() 1073 dAtA = make([]byte, size) 1074 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 1075 if err != nil { 1076 return nil, err 1077 } 1078 return dAtA[:n], nil 1079 } 1080 1081 func (m *EventRenounced) MarshalTo(dAtA []byte) (int, error) { 1082 size := m.Size() 1083 return m.MarshalToSizedBuffer(dAtA[:size]) 1084 } 1085 1086 func (m *EventRenounced) MarshalToSizedBuffer(dAtA []byte) (int, error) { 1087 i := len(dAtA) 1088 _ = i 1089 var l int 1090 _ = l 1091 if m.Permission != 0 { 1092 i = encodeVarintEvent(dAtA, i, uint64(m.Permission)) 1093 i-- 1094 dAtA[i] = 0x18 1095 } 1096 if len(m.Grantee) > 0 { 1097 i -= len(m.Grantee) 1098 copy(dAtA[i:], m.Grantee) 1099 i = encodeVarintEvent(dAtA, i, uint64(len(m.Grantee))) 1100 i-- 1101 dAtA[i] = 0x12 1102 } 1103 if len(m.ContractId) > 0 { 1104 i -= len(m.ContractId) 1105 copy(dAtA[i:], m.ContractId) 1106 i = encodeVarintEvent(dAtA, i, uint64(len(m.ContractId))) 1107 i-- 1108 dAtA[i] = 0xa 1109 } 1110 return len(dAtA) - i, nil 1111 } 1112 1113 func (m *EventMinted) Marshal() (dAtA []byte, err error) { 1114 size := m.Size() 1115 dAtA = make([]byte, size) 1116 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 1117 if err != nil { 1118 return nil, err 1119 } 1120 return dAtA[:n], nil 1121 } 1122 1123 func (m *EventMinted) MarshalTo(dAtA []byte) (int, error) { 1124 size := m.Size() 1125 return m.MarshalToSizedBuffer(dAtA[:size]) 1126 } 1127 1128 func (m *EventMinted) MarshalToSizedBuffer(dAtA []byte) (int, error) { 1129 i := len(dAtA) 1130 _ = i 1131 var l int 1132 _ = l 1133 { 1134 size := m.Amount.Size() 1135 i -= size 1136 if _, err := m.Amount.MarshalTo(dAtA[i:]); err != nil { 1137 return 0, err 1138 } 1139 i = encodeVarintEvent(dAtA, i, uint64(size)) 1140 } 1141 i-- 1142 dAtA[i] = 0x22 1143 if len(m.To) > 0 { 1144 i -= len(m.To) 1145 copy(dAtA[i:], m.To) 1146 i = encodeVarintEvent(dAtA, i, uint64(len(m.To))) 1147 i-- 1148 dAtA[i] = 0x1a 1149 } 1150 if len(m.Operator) > 0 { 1151 i -= len(m.Operator) 1152 copy(dAtA[i:], m.Operator) 1153 i = encodeVarintEvent(dAtA, i, uint64(len(m.Operator))) 1154 i-- 1155 dAtA[i] = 0x12 1156 } 1157 if len(m.ContractId) > 0 { 1158 i -= len(m.ContractId) 1159 copy(dAtA[i:], m.ContractId) 1160 i = encodeVarintEvent(dAtA, i, uint64(len(m.ContractId))) 1161 i-- 1162 dAtA[i] = 0xa 1163 } 1164 return len(dAtA) - i, nil 1165 } 1166 1167 func (m *EventBurned) Marshal() (dAtA []byte, err error) { 1168 size := m.Size() 1169 dAtA = make([]byte, size) 1170 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 1171 if err != nil { 1172 return nil, err 1173 } 1174 return dAtA[:n], nil 1175 } 1176 1177 func (m *EventBurned) MarshalTo(dAtA []byte) (int, error) { 1178 size := m.Size() 1179 return m.MarshalToSizedBuffer(dAtA[:size]) 1180 } 1181 1182 func (m *EventBurned) MarshalToSizedBuffer(dAtA []byte) (int, error) { 1183 i := len(dAtA) 1184 _ = i 1185 var l int 1186 _ = l 1187 { 1188 size := m.Amount.Size() 1189 i -= size 1190 if _, err := m.Amount.MarshalTo(dAtA[i:]); err != nil { 1191 return 0, err 1192 } 1193 i = encodeVarintEvent(dAtA, i, uint64(size)) 1194 } 1195 i-- 1196 dAtA[i] = 0x22 1197 if len(m.From) > 0 { 1198 i -= len(m.From) 1199 copy(dAtA[i:], m.From) 1200 i = encodeVarintEvent(dAtA, i, uint64(len(m.From))) 1201 i-- 1202 dAtA[i] = 0x1a 1203 } 1204 if len(m.Operator) > 0 { 1205 i -= len(m.Operator) 1206 copy(dAtA[i:], m.Operator) 1207 i = encodeVarintEvent(dAtA, i, uint64(len(m.Operator))) 1208 i-- 1209 dAtA[i] = 0x12 1210 } 1211 if len(m.ContractId) > 0 { 1212 i -= len(m.ContractId) 1213 copy(dAtA[i:], m.ContractId) 1214 i = encodeVarintEvent(dAtA, i, uint64(len(m.ContractId))) 1215 i-- 1216 dAtA[i] = 0xa 1217 } 1218 return len(dAtA) - i, nil 1219 } 1220 1221 func (m *EventModified) Marshal() (dAtA []byte, err error) { 1222 size := m.Size() 1223 dAtA = make([]byte, size) 1224 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 1225 if err != nil { 1226 return nil, err 1227 } 1228 return dAtA[:n], nil 1229 } 1230 1231 func (m *EventModified) MarshalTo(dAtA []byte) (int, error) { 1232 size := m.Size() 1233 return m.MarshalToSizedBuffer(dAtA[:size]) 1234 } 1235 1236 func (m *EventModified) MarshalToSizedBuffer(dAtA []byte) (int, error) { 1237 i := len(dAtA) 1238 _ = i 1239 var l int 1240 _ = l 1241 if len(m.Changes) > 0 { 1242 for iNdEx := len(m.Changes) - 1; iNdEx >= 0; iNdEx-- { 1243 { 1244 size, err := m.Changes[iNdEx].MarshalToSizedBuffer(dAtA[:i]) 1245 if err != nil { 1246 return 0, err 1247 } 1248 i -= size 1249 i = encodeVarintEvent(dAtA, i, uint64(size)) 1250 } 1251 i-- 1252 dAtA[i] = 0x1a 1253 } 1254 } 1255 if len(m.Operator) > 0 { 1256 i -= len(m.Operator) 1257 copy(dAtA[i:], m.Operator) 1258 i = encodeVarintEvent(dAtA, i, uint64(len(m.Operator))) 1259 i-- 1260 dAtA[i] = 0x12 1261 } 1262 if len(m.ContractId) > 0 { 1263 i -= len(m.ContractId) 1264 copy(dAtA[i:], m.ContractId) 1265 i = encodeVarintEvent(dAtA, i, uint64(len(m.ContractId))) 1266 i-- 1267 dAtA[i] = 0xa 1268 } 1269 return len(dAtA) - i, nil 1270 } 1271 1272 func encodeVarintEvent(dAtA []byte, offset int, v uint64) int { 1273 offset -= sovEvent(v) 1274 base := offset 1275 for v >= 1<<7 { 1276 dAtA[offset] = uint8(v&0x7f | 0x80) 1277 v >>= 7 1278 offset++ 1279 } 1280 dAtA[offset] = uint8(v) 1281 return base 1282 } 1283 func (m *EventSent) Size() (n int) { 1284 if m == nil { 1285 return 0 1286 } 1287 var l int 1288 _ = l 1289 l = len(m.ContractId) 1290 if l > 0 { 1291 n += 1 + l + sovEvent(uint64(l)) 1292 } 1293 l = len(m.Operator) 1294 if l > 0 { 1295 n += 1 + l + sovEvent(uint64(l)) 1296 } 1297 l = len(m.From) 1298 if l > 0 { 1299 n += 1 + l + sovEvent(uint64(l)) 1300 } 1301 l = len(m.To) 1302 if l > 0 { 1303 n += 1 + l + sovEvent(uint64(l)) 1304 } 1305 l = m.Amount.Size() 1306 n += 1 + l + sovEvent(uint64(l)) 1307 return n 1308 } 1309 1310 func (m *EventAuthorizedOperator) Size() (n int) { 1311 if m == nil { 1312 return 0 1313 } 1314 var l int 1315 _ = l 1316 l = len(m.ContractId) 1317 if l > 0 { 1318 n += 1 + l + sovEvent(uint64(l)) 1319 } 1320 l = len(m.Holder) 1321 if l > 0 { 1322 n += 1 + l + sovEvent(uint64(l)) 1323 } 1324 l = len(m.Operator) 1325 if l > 0 { 1326 n += 1 + l + sovEvent(uint64(l)) 1327 } 1328 return n 1329 } 1330 1331 func (m *EventRevokedOperator) Size() (n int) { 1332 if m == nil { 1333 return 0 1334 } 1335 var l int 1336 _ = l 1337 l = len(m.ContractId) 1338 if l > 0 { 1339 n += 1 + l + sovEvent(uint64(l)) 1340 } 1341 l = len(m.Holder) 1342 if l > 0 { 1343 n += 1 + l + sovEvent(uint64(l)) 1344 } 1345 l = len(m.Operator) 1346 if l > 0 { 1347 n += 1 + l + sovEvent(uint64(l)) 1348 } 1349 return n 1350 } 1351 1352 func (m *EventIssued) Size() (n int) { 1353 if m == nil { 1354 return 0 1355 } 1356 var l int 1357 _ = l 1358 l = len(m.Creator) 1359 if l > 0 { 1360 n += 1 + l + sovEvent(uint64(l)) 1361 } 1362 l = len(m.ContractId) 1363 if l > 0 { 1364 n += 1 + l + sovEvent(uint64(l)) 1365 } 1366 l = len(m.Name) 1367 if l > 0 { 1368 n += 1 + l + sovEvent(uint64(l)) 1369 } 1370 l = len(m.Symbol) 1371 if l > 0 { 1372 n += 1 + l + sovEvent(uint64(l)) 1373 } 1374 l = len(m.Uri) 1375 if l > 0 { 1376 n += 1 + l + sovEvent(uint64(l)) 1377 } 1378 l = len(m.Meta) 1379 if l > 0 { 1380 n += 1 + l + sovEvent(uint64(l)) 1381 } 1382 if m.Decimals != 0 { 1383 n += 1 + sovEvent(uint64(m.Decimals)) 1384 } 1385 if m.Mintable { 1386 n += 2 1387 } 1388 return n 1389 } 1390 1391 func (m *EventGranted) Size() (n int) { 1392 if m == nil { 1393 return 0 1394 } 1395 var l int 1396 _ = l 1397 l = len(m.ContractId) 1398 if l > 0 { 1399 n += 1 + l + sovEvent(uint64(l)) 1400 } 1401 l = len(m.Granter) 1402 if l > 0 { 1403 n += 1 + l + sovEvent(uint64(l)) 1404 } 1405 l = len(m.Grantee) 1406 if l > 0 { 1407 n += 1 + l + sovEvent(uint64(l)) 1408 } 1409 if m.Permission != 0 { 1410 n += 1 + sovEvent(uint64(m.Permission)) 1411 } 1412 return n 1413 } 1414 1415 func (m *EventRenounced) Size() (n int) { 1416 if m == nil { 1417 return 0 1418 } 1419 var l int 1420 _ = l 1421 l = len(m.ContractId) 1422 if l > 0 { 1423 n += 1 + l + sovEvent(uint64(l)) 1424 } 1425 l = len(m.Grantee) 1426 if l > 0 { 1427 n += 1 + l + sovEvent(uint64(l)) 1428 } 1429 if m.Permission != 0 { 1430 n += 1 + sovEvent(uint64(m.Permission)) 1431 } 1432 return n 1433 } 1434 1435 func (m *EventMinted) Size() (n int) { 1436 if m == nil { 1437 return 0 1438 } 1439 var l int 1440 _ = l 1441 l = len(m.ContractId) 1442 if l > 0 { 1443 n += 1 + l + sovEvent(uint64(l)) 1444 } 1445 l = len(m.Operator) 1446 if l > 0 { 1447 n += 1 + l + sovEvent(uint64(l)) 1448 } 1449 l = len(m.To) 1450 if l > 0 { 1451 n += 1 + l + sovEvent(uint64(l)) 1452 } 1453 l = m.Amount.Size() 1454 n += 1 + l + sovEvent(uint64(l)) 1455 return n 1456 } 1457 1458 func (m *EventBurned) Size() (n int) { 1459 if m == nil { 1460 return 0 1461 } 1462 var l int 1463 _ = l 1464 l = len(m.ContractId) 1465 if l > 0 { 1466 n += 1 + l + sovEvent(uint64(l)) 1467 } 1468 l = len(m.Operator) 1469 if l > 0 { 1470 n += 1 + l + sovEvent(uint64(l)) 1471 } 1472 l = len(m.From) 1473 if l > 0 { 1474 n += 1 + l + sovEvent(uint64(l)) 1475 } 1476 l = m.Amount.Size() 1477 n += 1 + l + sovEvent(uint64(l)) 1478 return n 1479 } 1480 1481 func (m *EventModified) Size() (n int) { 1482 if m == nil { 1483 return 0 1484 } 1485 var l int 1486 _ = l 1487 l = len(m.ContractId) 1488 if l > 0 { 1489 n += 1 + l + sovEvent(uint64(l)) 1490 } 1491 l = len(m.Operator) 1492 if l > 0 { 1493 n += 1 + l + sovEvent(uint64(l)) 1494 } 1495 if len(m.Changes) > 0 { 1496 for _, e := range m.Changes { 1497 l = e.Size() 1498 n += 1 + l + sovEvent(uint64(l)) 1499 } 1500 } 1501 return n 1502 } 1503 1504 func sovEvent(x uint64) (n int) { 1505 return (math_bits.Len64(x|1) + 6) / 7 1506 } 1507 func sozEvent(x uint64) (n int) { 1508 return sovEvent(uint64((x << 1) ^ uint64((int64(x) >> 63)))) 1509 } 1510 func (m *EventSent) Unmarshal(dAtA []byte) error { 1511 l := len(dAtA) 1512 iNdEx := 0 1513 for iNdEx < l { 1514 preIndex := iNdEx 1515 var wire uint64 1516 for shift := uint(0); ; shift += 7 { 1517 if shift >= 64 { 1518 return ErrIntOverflowEvent 1519 } 1520 if iNdEx >= l { 1521 return io.ErrUnexpectedEOF 1522 } 1523 b := dAtA[iNdEx] 1524 iNdEx++ 1525 wire |= uint64(b&0x7F) << shift 1526 if b < 0x80 { 1527 break 1528 } 1529 } 1530 fieldNum := int32(wire >> 3) 1531 wireType := int(wire & 0x7) 1532 if wireType == 4 { 1533 return fmt.Errorf("proto: EventSent: wiretype end group for non-group") 1534 } 1535 if fieldNum <= 0 { 1536 return fmt.Errorf("proto: EventSent: illegal tag %d (wire type %d)", fieldNum, wire) 1537 } 1538 switch fieldNum { 1539 case 1: 1540 if wireType != 2 { 1541 return fmt.Errorf("proto: wrong wireType = %d for field ContractId", wireType) 1542 } 1543 var stringLen uint64 1544 for shift := uint(0); ; shift += 7 { 1545 if shift >= 64 { 1546 return ErrIntOverflowEvent 1547 } 1548 if iNdEx >= l { 1549 return io.ErrUnexpectedEOF 1550 } 1551 b := dAtA[iNdEx] 1552 iNdEx++ 1553 stringLen |= uint64(b&0x7F) << shift 1554 if b < 0x80 { 1555 break 1556 } 1557 } 1558 intStringLen := int(stringLen) 1559 if intStringLen < 0 { 1560 return ErrInvalidLengthEvent 1561 } 1562 postIndex := iNdEx + intStringLen 1563 if postIndex < 0 { 1564 return ErrInvalidLengthEvent 1565 } 1566 if postIndex > l { 1567 return io.ErrUnexpectedEOF 1568 } 1569 m.ContractId = string(dAtA[iNdEx:postIndex]) 1570 iNdEx = postIndex 1571 case 2: 1572 if wireType != 2 { 1573 return fmt.Errorf("proto: wrong wireType = %d for field Operator", wireType) 1574 } 1575 var stringLen uint64 1576 for shift := uint(0); ; shift += 7 { 1577 if shift >= 64 { 1578 return ErrIntOverflowEvent 1579 } 1580 if iNdEx >= l { 1581 return io.ErrUnexpectedEOF 1582 } 1583 b := dAtA[iNdEx] 1584 iNdEx++ 1585 stringLen |= uint64(b&0x7F) << shift 1586 if b < 0x80 { 1587 break 1588 } 1589 } 1590 intStringLen := int(stringLen) 1591 if intStringLen < 0 { 1592 return ErrInvalidLengthEvent 1593 } 1594 postIndex := iNdEx + intStringLen 1595 if postIndex < 0 { 1596 return ErrInvalidLengthEvent 1597 } 1598 if postIndex > l { 1599 return io.ErrUnexpectedEOF 1600 } 1601 m.Operator = string(dAtA[iNdEx:postIndex]) 1602 iNdEx = postIndex 1603 case 3: 1604 if wireType != 2 { 1605 return fmt.Errorf("proto: wrong wireType = %d for field From", wireType) 1606 } 1607 var stringLen uint64 1608 for shift := uint(0); ; shift += 7 { 1609 if shift >= 64 { 1610 return ErrIntOverflowEvent 1611 } 1612 if iNdEx >= l { 1613 return io.ErrUnexpectedEOF 1614 } 1615 b := dAtA[iNdEx] 1616 iNdEx++ 1617 stringLen |= uint64(b&0x7F) << shift 1618 if b < 0x80 { 1619 break 1620 } 1621 } 1622 intStringLen := int(stringLen) 1623 if intStringLen < 0 { 1624 return ErrInvalidLengthEvent 1625 } 1626 postIndex := iNdEx + intStringLen 1627 if postIndex < 0 { 1628 return ErrInvalidLengthEvent 1629 } 1630 if postIndex > l { 1631 return io.ErrUnexpectedEOF 1632 } 1633 m.From = string(dAtA[iNdEx:postIndex]) 1634 iNdEx = postIndex 1635 case 4: 1636 if wireType != 2 { 1637 return fmt.Errorf("proto: wrong wireType = %d for field To", wireType) 1638 } 1639 var stringLen uint64 1640 for shift := uint(0); ; shift += 7 { 1641 if shift >= 64 { 1642 return ErrIntOverflowEvent 1643 } 1644 if iNdEx >= l { 1645 return io.ErrUnexpectedEOF 1646 } 1647 b := dAtA[iNdEx] 1648 iNdEx++ 1649 stringLen |= uint64(b&0x7F) << shift 1650 if b < 0x80 { 1651 break 1652 } 1653 } 1654 intStringLen := int(stringLen) 1655 if intStringLen < 0 { 1656 return ErrInvalidLengthEvent 1657 } 1658 postIndex := iNdEx + intStringLen 1659 if postIndex < 0 { 1660 return ErrInvalidLengthEvent 1661 } 1662 if postIndex > l { 1663 return io.ErrUnexpectedEOF 1664 } 1665 m.To = string(dAtA[iNdEx:postIndex]) 1666 iNdEx = postIndex 1667 case 5: 1668 if wireType != 2 { 1669 return fmt.Errorf("proto: wrong wireType = %d for field Amount", wireType) 1670 } 1671 var stringLen uint64 1672 for shift := uint(0); ; shift += 7 { 1673 if shift >= 64 { 1674 return ErrIntOverflowEvent 1675 } 1676 if iNdEx >= l { 1677 return io.ErrUnexpectedEOF 1678 } 1679 b := dAtA[iNdEx] 1680 iNdEx++ 1681 stringLen |= uint64(b&0x7F) << shift 1682 if b < 0x80 { 1683 break 1684 } 1685 } 1686 intStringLen := int(stringLen) 1687 if intStringLen < 0 { 1688 return ErrInvalidLengthEvent 1689 } 1690 postIndex := iNdEx + intStringLen 1691 if postIndex < 0 { 1692 return ErrInvalidLengthEvent 1693 } 1694 if postIndex > l { 1695 return io.ErrUnexpectedEOF 1696 } 1697 if err := m.Amount.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 1698 return err 1699 } 1700 iNdEx = postIndex 1701 default: 1702 iNdEx = preIndex 1703 skippy, err := skipEvent(dAtA[iNdEx:]) 1704 if err != nil { 1705 return err 1706 } 1707 if (skippy < 0) || (iNdEx+skippy) < 0 { 1708 return ErrInvalidLengthEvent 1709 } 1710 if (iNdEx + skippy) > l { 1711 return io.ErrUnexpectedEOF 1712 } 1713 iNdEx += skippy 1714 } 1715 } 1716 1717 if iNdEx > l { 1718 return io.ErrUnexpectedEOF 1719 } 1720 return nil 1721 } 1722 func (m *EventAuthorizedOperator) Unmarshal(dAtA []byte) error { 1723 l := len(dAtA) 1724 iNdEx := 0 1725 for iNdEx < l { 1726 preIndex := iNdEx 1727 var wire uint64 1728 for shift := uint(0); ; shift += 7 { 1729 if shift >= 64 { 1730 return ErrIntOverflowEvent 1731 } 1732 if iNdEx >= l { 1733 return io.ErrUnexpectedEOF 1734 } 1735 b := dAtA[iNdEx] 1736 iNdEx++ 1737 wire |= uint64(b&0x7F) << shift 1738 if b < 0x80 { 1739 break 1740 } 1741 } 1742 fieldNum := int32(wire >> 3) 1743 wireType := int(wire & 0x7) 1744 if wireType == 4 { 1745 return fmt.Errorf("proto: EventAuthorizedOperator: wiretype end group for non-group") 1746 } 1747 if fieldNum <= 0 { 1748 return fmt.Errorf("proto: EventAuthorizedOperator: illegal tag %d (wire type %d)", fieldNum, wire) 1749 } 1750 switch fieldNum { 1751 case 1: 1752 if wireType != 2 { 1753 return fmt.Errorf("proto: wrong wireType = %d for field ContractId", wireType) 1754 } 1755 var stringLen uint64 1756 for shift := uint(0); ; shift += 7 { 1757 if shift >= 64 { 1758 return ErrIntOverflowEvent 1759 } 1760 if iNdEx >= l { 1761 return io.ErrUnexpectedEOF 1762 } 1763 b := dAtA[iNdEx] 1764 iNdEx++ 1765 stringLen |= uint64(b&0x7F) << shift 1766 if b < 0x80 { 1767 break 1768 } 1769 } 1770 intStringLen := int(stringLen) 1771 if intStringLen < 0 { 1772 return ErrInvalidLengthEvent 1773 } 1774 postIndex := iNdEx + intStringLen 1775 if postIndex < 0 { 1776 return ErrInvalidLengthEvent 1777 } 1778 if postIndex > l { 1779 return io.ErrUnexpectedEOF 1780 } 1781 m.ContractId = string(dAtA[iNdEx:postIndex]) 1782 iNdEx = postIndex 1783 case 2: 1784 if wireType != 2 { 1785 return fmt.Errorf("proto: wrong wireType = %d for field Holder", wireType) 1786 } 1787 var stringLen uint64 1788 for shift := uint(0); ; shift += 7 { 1789 if shift >= 64 { 1790 return ErrIntOverflowEvent 1791 } 1792 if iNdEx >= l { 1793 return io.ErrUnexpectedEOF 1794 } 1795 b := dAtA[iNdEx] 1796 iNdEx++ 1797 stringLen |= uint64(b&0x7F) << shift 1798 if b < 0x80 { 1799 break 1800 } 1801 } 1802 intStringLen := int(stringLen) 1803 if intStringLen < 0 { 1804 return ErrInvalidLengthEvent 1805 } 1806 postIndex := iNdEx + intStringLen 1807 if postIndex < 0 { 1808 return ErrInvalidLengthEvent 1809 } 1810 if postIndex > l { 1811 return io.ErrUnexpectedEOF 1812 } 1813 m.Holder = string(dAtA[iNdEx:postIndex]) 1814 iNdEx = postIndex 1815 case 3: 1816 if wireType != 2 { 1817 return fmt.Errorf("proto: wrong wireType = %d for field Operator", wireType) 1818 } 1819 var stringLen uint64 1820 for shift := uint(0); ; shift += 7 { 1821 if shift >= 64 { 1822 return ErrIntOverflowEvent 1823 } 1824 if iNdEx >= l { 1825 return io.ErrUnexpectedEOF 1826 } 1827 b := dAtA[iNdEx] 1828 iNdEx++ 1829 stringLen |= uint64(b&0x7F) << shift 1830 if b < 0x80 { 1831 break 1832 } 1833 } 1834 intStringLen := int(stringLen) 1835 if intStringLen < 0 { 1836 return ErrInvalidLengthEvent 1837 } 1838 postIndex := iNdEx + intStringLen 1839 if postIndex < 0 { 1840 return ErrInvalidLengthEvent 1841 } 1842 if postIndex > l { 1843 return io.ErrUnexpectedEOF 1844 } 1845 m.Operator = string(dAtA[iNdEx:postIndex]) 1846 iNdEx = postIndex 1847 default: 1848 iNdEx = preIndex 1849 skippy, err := skipEvent(dAtA[iNdEx:]) 1850 if err != nil { 1851 return err 1852 } 1853 if (skippy < 0) || (iNdEx+skippy) < 0 { 1854 return ErrInvalidLengthEvent 1855 } 1856 if (iNdEx + skippy) > l { 1857 return io.ErrUnexpectedEOF 1858 } 1859 iNdEx += skippy 1860 } 1861 } 1862 1863 if iNdEx > l { 1864 return io.ErrUnexpectedEOF 1865 } 1866 return nil 1867 } 1868 func (m *EventRevokedOperator) Unmarshal(dAtA []byte) error { 1869 l := len(dAtA) 1870 iNdEx := 0 1871 for iNdEx < l { 1872 preIndex := iNdEx 1873 var wire uint64 1874 for shift := uint(0); ; shift += 7 { 1875 if shift >= 64 { 1876 return ErrIntOverflowEvent 1877 } 1878 if iNdEx >= l { 1879 return io.ErrUnexpectedEOF 1880 } 1881 b := dAtA[iNdEx] 1882 iNdEx++ 1883 wire |= uint64(b&0x7F) << shift 1884 if b < 0x80 { 1885 break 1886 } 1887 } 1888 fieldNum := int32(wire >> 3) 1889 wireType := int(wire & 0x7) 1890 if wireType == 4 { 1891 return fmt.Errorf("proto: EventRevokedOperator: wiretype end group for non-group") 1892 } 1893 if fieldNum <= 0 { 1894 return fmt.Errorf("proto: EventRevokedOperator: illegal tag %d (wire type %d)", fieldNum, wire) 1895 } 1896 switch fieldNum { 1897 case 1: 1898 if wireType != 2 { 1899 return fmt.Errorf("proto: wrong wireType = %d for field ContractId", wireType) 1900 } 1901 var stringLen uint64 1902 for shift := uint(0); ; shift += 7 { 1903 if shift >= 64 { 1904 return ErrIntOverflowEvent 1905 } 1906 if iNdEx >= l { 1907 return io.ErrUnexpectedEOF 1908 } 1909 b := dAtA[iNdEx] 1910 iNdEx++ 1911 stringLen |= uint64(b&0x7F) << shift 1912 if b < 0x80 { 1913 break 1914 } 1915 } 1916 intStringLen := int(stringLen) 1917 if intStringLen < 0 { 1918 return ErrInvalidLengthEvent 1919 } 1920 postIndex := iNdEx + intStringLen 1921 if postIndex < 0 { 1922 return ErrInvalidLengthEvent 1923 } 1924 if postIndex > l { 1925 return io.ErrUnexpectedEOF 1926 } 1927 m.ContractId = string(dAtA[iNdEx:postIndex]) 1928 iNdEx = postIndex 1929 case 2: 1930 if wireType != 2 { 1931 return fmt.Errorf("proto: wrong wireType = %d for field Holder", wireType) 1932 } 1933 var stringLen uint64 1934 for shift := uint(0); ; shift += 7 { 1935 if shift >= 64 { 1936 return ErrIntOverflowEvent 1937 } 1938 if iNdEx >= l { 1939 return io.ErrUnexpectedEOF 1940 } 1941 b := dAtA[iNdEx] 1942 iNdEx++ 1943 stringLen |= uint64(b&0x7F) << shift 1944 if b < 0x80 { 1945 break 1946 } 1947 } 1948 intStringLen := int(stringLen) 1949 if intStringLen < 0 { 1950 return ErrInvalidLengthEvent 1951 } 1952 postIndex := iNdEx + intStringLen 1953 if postIndex < 0 { 1954 return ErrInvalidLengthEvent 1955 } 1956 if postIndex > l { 1957 return io.ErrUnexpectedEOF 1958 } 1959 m.Holder = string(dAtA[iNdEx:postIndex]) 1960 iNdEx = postIndex 1961 case 3: 1962 if wireType != 2 { 1963 return fmt.Errorf("proto: wrong wireType = %d for field Operator", wireType) 1964 } 1965 var stringLen uint64 1966 for shift := uint(0); ; shift += 7 { 1967 if shift >= 64 { 1968 return ErrIntOverflowEvent 1969 } 1970 if iNdEx >= l { 1971 return io.ErrUnexpectedEOF 1972 } 1973 b := dAtA[iNdEx] 1974 iNdEx++ 1975 stringLen |= uint64(b&0x7F) << shift 1976 if b < 0x80 { 1977 break 1978 } 1979 } 1980 intStringLen := int(stringLen) 1981 if intStringLen < 0 { 1982 return ErrInvalidLengthEvent 1983 } 1984 postIndex := iNdEx + intStringLen 1985 if postIndex < 0 { 1986 return ErrInvalidLengthEvent 1987 } 1988 if postIndex > l { 1989 return io.ErrUnexpectedEOF 1990 } 1991 m.Operator = string(dAtA[iNdEx:postIndex]) 1992 iNdEx = postIndex 1993 default: 1994 iNdEx = preIndex 1995 skippy, err := skipEvent(dAtA[iNdEx:]) 1996 if err != nil { 1997 return err 1998 } 1999 if (skippy < 0) || (iNdEx+skippy) < 0 { 2000 return ErrInvalidLengthEvent 2001 } 2002 if (iNdEx + skippy) > l { 2003 return io.ErrUnexpectedEOF 2004 } 2005 iNdEx += skippy 2006 } 2007 } 2008 2009 if iNdEx > l { 2010 return io.ErrUnexpectedEOF 2011 } 2012 return nil 2013 } 2014 func (m *EventIssued) Unmarshal(dAtA []byte) error { 2015 l := len(dAtA) 2016 iNdEx := 0 2017 for iNdEx < l { 2018 preIndex := iNdEx 2019 var wire uint64 2020 for shift := uint(0); ; shift += 7 { 2021 if shift >= 64 { 2022 return ErrIntOverflowEvent 2023 } 2024 if iNdEx >= l { 2025 return io.ErrUnexpectedEOF 2026 } 2027 b := dAtA[iNdEx] 2028 iNdEx++ 2029 wire |= uint64(b&0x7F) << shift 2030 if b < 0x80 { 2031 break 2032 } 2033 } 2034 fieldNum := int32(wire >> 3) 2035 wireType := int(wire & 0x7) 2036 if wireType == 4 { 2037 return fmt.Errorf("proto: EventIssued: wiretype end group for non-group") 2038 } 2039 if fieldNum <= 0 { 2040 return fmt.Errorf("proto: EventIssued: illegal tag %d (wire type %d)", fieldNum, wire) 2041 } 2042 switch fieldNum { 2043 case 1: 2044 if wireType != 2 { 2045 return fmt.Errorf("proto: wrong wireType = %d for field Creator", wireType) 2046 } 2047 var stringLen uint64 2048 for shift := uint(0); ; shift += 7 { 2049 if shift >= 64 { 2050 return ErrIntOverflowEvent 2051 } 2052 if iNdEx >= l { 2053 return io.ErrUnexpectedEOF 2054 } 2055 b := dAtA[iNdEx] 2056 iNdEx++ 2057 stringLen |= uint64(b&0x7F) << shift 2058 if b < 0x80 { 2059 break 2060 } 2061 } 2062 intStringLen := int(stringLen) 2063 if intStringLen < 0 { 2064 return ErrInvalidLengthEvent 2065 } 2066 postIndex := iNdEx + intStringLen 2067 if postIndex < 0 { 2068 return ErrInvalidLengthEvent 2069 } 2070 if postIndex > l { 2071 return io.ErrUnexpectedEOF 2072 } 2073 m.Creator = string(dAtA[iNdEx:postIndex]) 2074 iNdEx = postIndex 2075 case 2: 2076 if wireType != 2 { 2077 return fmt.Errorf("proto: wrong wireType = %d for field ContractId", wireType) 2078 } 2079 var stringLen uint64 2080 for shift := uint(0); ; shift += 7 { 2081 if shift >= 64 { 2082 return ErrIntOverflowEvent 2083 } 2084 if iNdEx >= l { 2085 return io.ErrUnexpectedEOF 2086 } 2087 b := dAtA[iNdEx] 2088 iNdEx++ 2089 stringLen |= uint64(b&0x7F) << shift 2090 if b < 0x80 { 2091 break 2092 } 2093 } 2094 intStringLen := int(stringLen) 2095 if intStringLen < 0 { 2096 return ErrInvalidLengthEvent 2097 } 2098 postIndex := iNdEx + intStringLen 2099 if postIndex < 0 { 2100 return ErrInvalidLengthEvent 2101 } 2102 if postIndex > l { 2103 return io.ErrUnexpectedEOF 2104 } 2105 m.ContractId = string(dAtA[iNdEx:postIndex]) 2106 iNdEx = postIndex 2107 case 3: 2108 if wireType != 2 { 2109 return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) 2110 } 2111 var stringLen uint64 2112 for shift := uint(0); ; shift += 7 { 2113 if shift >= 64 { 2114 return ErrIntOverflowEvent 2115 } 2116 if iNdEx >= l { 2117 return io.ErrUnexpectedEOF 2118 } 2119 b := dAtA[iNdEx] 2120 iNdEx++ 2121 stringLen |= uint64(b&0x7F) << shift 2122 if b < 0x80 { 2123 break 2124 } 2125 } 2126 intStringLen := int(stringLen) 2127 if intStringLen < 0 { 2128 return ErrInvalidLengthEvent 2129 } 2130 postIndex := iNdEx + intStringLen 2131 if postIndex < 0 { 2132 return ErrInvalidLengthEvent 2133 } 2134 if postIndex > l { 2135 return io.ErrUnexpectedEOF 2136 } 2137 m.Name = string(dAtA[iNdEx:postIndex]) 2138 iNdEx = postIndex 2139 case 4: 2140 if wireType != 2 { 2141 return fmt.Errorf("proto: wrong wireType = %d for field Symbol", wireType) 2142 } 2143 var stringLen uint64 2144 for shift := uint(0); ; shift += 7 { 2145 if shift >= 64 { 2146 return ErrIntOverflowEvent 2147 } 2148 if iNdEx >= l { 2149 return io.ErrUnexpectedEOF 2150 } 2151 b := dAtA[iNdEx] 2152 iNdEx++ 2153 stringLen |= uint64(b&0x7F) << shift 2154 if b < 0x80 { 2155 break 2156 } 2157 } 2158 intStringLen := int(stringLen) 2159 if intStringLen < 0 { 2160 return ErrInvalidLengthEvent 2161 } 2162 postIndex := iNdEx + intStringLen 2163 if postIndex < 0 { 2164 return ErrInvalidLengthEvent 2165 } 2166 if postIndex > l { 2167 return io.ErrUnexpectedEOF 2168 } 2169 m.Symbol = string(dAtA[iNdEx:postIndex]) 2170 iNdEx = postIndex 2171 case 5: 2172 if wireType != 2 { 2173 return fmt.Errorf("proto: wrong wireType = %d for field Uri", wireType) 2174 } 2175 var stringLen uint64 2176 for shift := uint(0); ; shift += 7 { 2177 if shift >= 64 { 2178 return ErrIntOverflowEvent 2179 } 2180 if iNdEx >= l { 2181 return io.ErrUnexpectedEOF 2182 } 2183 b := dAtA[iNdEx] 2184 iNdEx++ 2185 stringLen |= uint64(b&0x7F) << shift 2186 if b < 0x80 { 2187 break 2188 } 2189 } 2190 intStringLen := int(stringLen) 2191 if intStringLen < 0 { 2192 return ErrInvalidLengthEvent 2193 } 2194 postIndex := iNdEx + intStringLen 2195 if postIndex < 0 { 2196 return ErrInvalidLengthEvent 2197 } 2198 if postIndex > l { 2199 return io.ErrUnexpectedEOF 2200 } 2201 m.Uri = string(dAtA[iNdEx:postIndex]) 2202 iNdEx = postIndex 2203 case 6: 2204 if wireType != 2 { 2205 return fmt.Errorf("proto: wrong wireType = %d for field Meta", wireType) 2206 } 2207 var stringLen uint64 2208 for shift := uint(0); ; shift += 7 { 2209 if shift >= 64 { 2210 return ErrIntOverflowEvent 2211 } 2212 if iNdEx >= l { 2213 return io.ErrUnexpectedEOF 2214 } 2215 b := dAtA[iNdEx] 2216 iNdEx++ 2217 stringLen |= uint64(b&0x7F) << shift 2218 if b < 0x80 { 2219 break 2220 } 2221 } 2222 intStringLen := int(stringLen) 2223 if intStringLen < 0 { 2224 return ErrInvalidLengthEvent 2225 } 2226 postIndex := iNdEx + intStringLen 2227 if postIndex < 0 { 2228 return ErrInvalidLengthEvent 2229 } 2230 if postIndex > l { 2231 return io.ErrUnexpectedEOF 2232 } 2233 m.Meta = string(dAtA[iNdEx:postIndex]) 2234 iNdEx = postIndex 2235 case 7: 2236 if wireType != 0 { 2237 return fmt.Errorf("proto: wrong wireType = %d for field Decimals", wireType) 2238 } 2239 m.Decimals = 0 2240 for shift := uint(0); ; shift += 7 { 2241 if shift >= 64 { 2242 return ErrIntOverflowEvent 2243 } 2244 if iNdEx >= l { 2245 return io.ErrUnexpectedEOF 2246 } 2247 b := dAtA[iNdEx] 2248 iNdEx++ 2249 m.Decimals |= int32(b&0x7F) << shift 2250 if b < 0x80 { 2251 break 2252 } 2253 } 2254 case 8: 2255 if wireType != 0 { 2256 return fmt.Errorf("proto: wrong wireType = %d for field Mintable", wireType) 2257 } 2258 var v int 2259 for shift := uint(0); ; shift += 7 { 2260 if shift >= 64 { 2261 return ErrIntOverflowEvent 2262 } 2263 if iNdEx >= l { 2264 return io.ErrUnexpectedEOF 2265 } 2266 b := dAtA[iNdEx] 2267 iNdEx++ 2268 v |= int(b&0x7F) << shift 2269 if b < 0x80 { 2270 break 2271 } 2272 } 2273 m.Mintable = bool(v != 0) 2274 default: 2275 iNdEx = preIndex 2276 skippy, err := skipEvent(dAtA[iNdEx:]) 2277 if err != nil { 2278 return err 2279 } 2280 if (skippy < 0) || (iNdEx+skippy) < 0 { 2281 return ErrInvalidLengthEvent 2282 } 2283 if (iNdEx + skippy) > l { 2284 return io.ErrUnexpectedEOF 2285 } 2286 iNdEx += skippy 2287 } 2288 } 2289 2290 if iNdEx > l { 2291 return io.ErrUnexpectedEOF 2292 } 2293 return nil 2294 } 2295 func (m *EventGranted) Unmarshal(dAtA []byte) error { 2296 l := len(dAtA) 2297 iNdEx := 0 2298 for iNdEx < l { 2299 preIndex := iNdEx 2300 var wire uint64 2301 for shift := uint(0); ; shift += 7 { 2302 if shift >= 64 { 2303 return ErrIntOverflowEvent 2304 } 2305 if iNdEx >= l { 2306 return io.ErrUnexpectedEOF 2307 } 2308 b := dAtA[iNdEx] 2309 iNdEx++ 2310 wire |= uint64(b&0x7F) << shift 2311 if b < 0x80 { 2312 break 2313 } 2314 } 2315 fieldNum := int32(wire >> 3) 2316 wireType := int(wire & 0x7) 2317 if wireType == 4 { 2318 return fmt.Errorf("proto: EventGranted: wiretype end group for non-group") 2319 } 2320 if fieldNum <= 0 { 2321 return fmt.Errorf("proto: EventGranted: illegal tag %d (wire type %d)", fieldNum, wire) 2322 } 2323 switch fieldNum { 2324 case 1: 2325 if wireType != 2 { 2326 return fmt.Errorf("proto: wrong wireType = %d for field ContractId", wireType) 2327 } 2328 var stringLen uint64 2329 for shift := uint(0); ; shift += 7 { 2330 if shift >= 64 { 2331 return ErrIntOverflowEvent 2332 } 2333 if iNdEx >= l { 2334 return io.ErrUnexpectedEOF 2335 } 2336 b := dAtA[iNdEx] 2337 iNdEx++ 2338 stringLen |= uint64(b&0x7F) << shift 2339 if b < 0x80 { 2340 break 2341 } 2342 } 2343 intStringLen := int(stringLen) 2344 if intStringLen < 0 { 2345 return ErrInvalidLengthEvent 2346 } 2347 postIndex := iNdEx + intStringLen 2348 if postIndex < 0 { 2349 return ErrInvalidLengthEvent 2350 } 2351 if postIndex > l { 2352 return io.ErrUnexpectedEOF 2353 } 2354 m.ContractId = string(dAtA[iNdEx:postIndex]) 2355 iNdEx = postIndex 2356 case 2: 2357 if wireType != 2 { 2358 return fmt.Errorf("proto: wrong wireType = %d for field Granter", wireType) 2359 } 2360 var stringLen uint64 2361 for shift := uint(0); ; shift += 7 { 2362 if shift >= 64 { 2363 return ErrIntOverflowEvent 2364 } 2365 if iNdEx >= l { 2366 return io.ErrUnexpectedEOF 2367 } 2368 b := dAtA[iNdEx] 2369 iNdEx++ 2370 stringLen |= uint64(b&0x7F) << shift 2371 if b < 0x80 { 2372 break 2373 } 2374 } 2375 intStringLen := int(stringLen) 2376 if intStringLen < 0 { 2377 return ErrInvalidLengthEvent 2378 } 2379 postIndex := iNdEx + intStringLen 2380 if postIndex < 0 { 2381 return ErrInvalidLengthEvent 2382 } 2383 if postIndex > l { 2384 return io.ErrUnexpectedEOF 2385 } 2386 m.Granter = string(dAtA[iNdEx:postIndex]) 2387 iNdEx = postIndex 2388 case 3: 2389 if wireType != 2 { 2390 return fmt.Errorf("proto: wrong wireType = %d for field Grantee", wireType) 2391 } 2392 var stringLen uint64 2393 for shift := uint(0); ; shift += 7 { 2394 if shift >= 64 { 2395 return ErrIntOverflowEvent 2396 } 2397 if iNdEx >= l { 2398 return io.ErrUnexpectedEOF 2399 } 2400 b := dAtA[iNdEx] 2401 iNdEx++ 2402 stringLen |= uint64(b&0x7F) << shift 2403 if b < 0x80 { 2404 break 2405 } 2406 } 2407 intStringLen := int(stringLen) 2408 if intStringLen < 0 { 2409 return ErrInvalidLengthEvent 2410 } 2411 postIndex := iNdEx + intStringLen 2412 if postIndex < 0 { 2413 return ErrInvalidLengthEvent 2414 } 2415 if postIndex > l { 2416 return io.ErrUnexpectedEOF 2417 } 2418 m.Grantee = string(dAtA[iNdEx:postIndex]) 2419 iNdEx = postIndex 2420 case 4: 2421 if wireType != 0 { 2422 return fmt.Errorf("proto: wrong wireType = %d for field Permission", wireType) 2423 } 2424 m.Permission = 0 2425 for shift := uint(0); ; shift += 7 { 2426 if shift >= 64 { 2427 return ErrIntOverflowEvent 2428 } 2429 if iNdEx >= l { 2430 return io.ErrUnexpectedEOF 2431 } 2432 b := dAtA[iNdEx] 2433 iNdEx++ 2434 m.Permission |= Permission(b&0x7F) << shift 2435 if b < 0x80 { 2436 break 2437 } 2438 } 2439 default: 2440 iNdEx = preIndex 2441 skippy, err := skipEvent(dAtA[iNdEx:]) 2442 if err != nil { 2443 return err 2444 } 2445 if (skippy < 0) || (iNdEx+skippy) < 0 { 2446 return ErrInvalidLengthEvent 2447 } 2448 if (iNdEx + skippy) > l { 2449 return io.ErrUnexpectedEOF 2450 } 2451 iNdEx += skippy 2452 } 2453 } 2454 2455 if iNdEx > l { 2456 return io.ErrUnexpectedEOF 2457 } 2458 return nil 2459 } 2460 func (m *EventRenounced) Unmarshal(dAtA []byte) error { 2461 l := len(dAtA) 2462 iNdEx := 0 2463 for iNdEx < l { 2464 preIndex := iNdEx 2465 var wire uint64 2466 for shift := uint(0); ; shift += 7 { 2467 if shift >= 64 { 2468 return ErrIntOverflowEvent 2469 } 2470 if iNdEx >= l { 2471 return io.ErrUnexpectedEOF 2472 } 2473 b := dAtA[iNdEx] 2474 iNdEx++ 2475 wire |= uint64(b&0x7F) << shift 2476 if b < 0x80 { 2477 break 2478 } 2479 } 2480 fieldNum := int32(wire >> 3) 2481 wireType := int(wire & 0x7) 2482 if wireType == 4 { 2483 return fmt.Errorf("proto: EventRenounced: wiretype end group for non-group") 2484 } 2485 if fieldNum <= 0 { 2486 return fmt.Errorf("proto: EventRenounced: illegal tag %d (wire type %d)", fieldNum, wire) 2487 } 2488 switch fieldNum { 2489 case 1: 2490 if wireType != 2 { 2491 return fmt.Errorf("proto: wrong wireType = %d for field ContractId", wireType) 2492 } 2493 var stringLen uint64 2494 for shift := uint(0); ; shift += 7 { 2495 if shift >= 64 { 2496 return ErrIntOverflowEvent 2497 } 2498 if iNdEx >= l { 2499 return io.ErrUnexpectedEOF 2500 } 2501 b := dAtA[iNdEx] 2502 iNdEx++ 2503 stringLen |= uint64(b&0x7F) << shift 2504 if b < 0x80 { 2505 break 2506 } 2507 } 2508 intStringLen := int(stringLen) 2509 if intStringLen < 0 { 2510 return ErrInvalidLengthEvent 2511 } 2512 postIndex := iNdEx + intStringLen 2513 if postIndex < 0 { 2514 return ErrInvalidLengthEvent 2515 } 2516 if postIndex > l { 2517 return io.ErrUnexpectedEOF 2518 } 2519 m.ContractId = string(dAtA[iNdEx:postIndex]) 2520 iNdEx = postIndex 2521 case 2: 2522 if wireType != 2 { 2523 return fmt.Errorf("proto: wrong wireType = %d for field Grantee", wireType) 2524 } 2525 var stringLen uint64 2526 for shift := uint(0); ; shift += 7 { 2527 if shift >= 64 { 2528 return ErrIntOverflowEvent 2529 } 2530 if iNdEx >= l { 2531 return io.ErrUnexpectedEOF 2532 } 2533 b := dAtA[iNdEx] 2534 iNdEx++ 2535 stringLen |= uint64(b&0x7F) << shift 2536 if b < 0x80 { 2537 break 2538 } 2539 } 2540 intStringLen := int(stringLen) 2541 if intStringLen < 0 { 2542 return ErrInvalidLengthEvent 2543 } 2544 postIndex := iNdEx + intStringLen 2545 if postIndex < 0 { 2546 return ErrInvalidLengthEvent 2547 } 2548 if postIndex > l { 2549 return io.ErrUnexpectedEOF 2550 } 2551 m.Grantee = string(dAtA[iNdEx:postIndex]) 2552 iNdEx = postIndex 2553 case 3: 2554 if wireType != 0 { 2555 return fmt.Errorf("proto: wrong wireType = %d for field Permission", wireType) 2556 } 2557 m.Permission = 0 2558 for shift := uint(0); ; shift += 7 { 2559 if shift >= 64 { 2560 return ErrIntOverflowEvent 2561 } 2562 if iNdEx >= l { 2563 return io.ErrUnexpectedEOF 2564 } 2565 b := dAtA[iNdEx] 2566 iNdEx++ 2567 m.Permission |= Permission(b&0x7F) << shift 2568 if b < 0x80 { 2569 break 2570 } 2571 } 2572 default: 2573 iNdEx = preIndex 2574 skippy, err := skipEvent(dAtA[iNdEx:]) 2575 if err != nil { 2576 return err 2577 } 2578 if (skippy < 0) || (iNdEx+skippy) < 0 { 2579 return ErrInvalidLengthEvent 2580 } 2581 if (iNdEx + skippy) > l { 2582 return io.ErrUnexpectedEOF 2583 } 2584 iNdEx += skippy 2585 } 2586 } 2587 2588 if iNdEx > l { 2589 return io.ErrUnexpectedEOF 2590 } 2591 return nil 2592 } 2593 func (m *EventMinted) Unmarshal(dAtA []byte) error { 2594 l := len(dAtA) 2595 iNdEx := 0 2596 for iNdEx < l { 2597 preIndex := iNdEx 2598 var wire uint64 2599 for shift := uint(0); ; shift += 7 { 2600 if shift >= 64 { 2601 return ErrIntOverflowEvent 2602 } 2603 if iNdEx >= l { 2604 return io.ErrUnexpectedEOF 2605 } 2606 b := dAtA[iNdEx] 2607 iNdEx++ 2608 wire |= uint64(b&0x7F) << shift 2609 if b < 0x80 { 2610 break 2611 } 2612 } 2613 fieldNum := int32(wire >> 3) 2614 wireType := int(wire & 0x7) 2615 if wireType == 4 { 2616 return fmt.Errorf("proto: EventMinted: wiretype end group for non-group") 2617 } 2618 if fieldNum <= 0 { 2619 return fmt.Errorf("proto: EventMinted: illegal tag %d (wire type %d)", fieldNum, wire) 2620 } 2621 switch fieldNum { 2622 case 1: 2623 if wireType != 2 { 2624 return fmt.Errorf("proto: wrong wireType = %d for field ContractId", wireType) 2625 } 2626 var stringLen uint64 2627 for shift := uint(0); ; shift += 7 { 2628 if shift >= 64 { 2629 return ErrIntOverflowEvent 2630 } 2631 if iNdEx >= l { 2632 return io.ErrUnexpectedEOF 2633 } 2634 b := dAtA[iNdEx] 2635 iNdEx++ 2636 stringLen |= uint64(b&0x7F) << shift 2637 if b < 0x80 { 2638 break 2639 } 2640 } 2641 intStringLen := int(stringLen) 2642 if intStringLen < 0 { 2643 return ErrInvalidLengthEvent 2644 } 2645 postIndex := iNdEx + intStringLen 2646 if postIndex < 0 { 2647 return ErrInvalidLengthEvent 2648 } 2649 if postIndex > l { 2650 return io.ErrUnexpectedEOF 2651 } 2652 m.ContractId = string(dAtA[iNdEx:postIndex]) 2653 iNdEx = postIndex 2654 case 2: 2655 if wireType != 2 { 2656 return fmt.Errorf("proto: wrong wireType = %d for field Operator", wireType) 2657 } 2658 var stringLen uint64 2659 for shift := uint(0); ; shift += 7 { 2660 if shift >= 64 { 2661 return ErrIntOverflowEvent 2662 } 2663 if iNdEx >= l { 2664 return io.ErrUnexpectedEOF 2665 } 2666 b := dAtA[iNdEx] 2667 iNdEx++ 2668 stringLen |= uint64(b&0x7F) << shift 2669 if b < 0x80 { 2670 break 2671 } 2672 } 2673 intStringLen := int(stringLen) 2674 if intStringLen < 0 { 2675 return ErrInvalidLengthEvent 2676 } 2677 postIndex := iNdEx + intStringLen 2678 if postIndex < 0 { 2679 return ErrInvalidLengthEvent 2680 } 2681 if postIndex > l { 2682 return io.ErrUnexpectedEOF 2683 } 2684 m.Operator = string(dAtA[iNdEx:postIndex]) 2685 iNdEx = postIndex 2686 case 3: 2687 if wireType != 2 { 2688 return fmt.Errorf("proto: wrong wireType = %d for field To", wireType) 2689 } 2690 var stringLen uint64 2691 for shift := uint(0); ; shift += 7 { 2692 if shift >= 64 { 2693 return ErrIntOverflowEvent 2694 } 2695 if iNdEx >= l { 2696 return io.ErrUnexpectedEOF 2697 } 2698 b := dAtA[iNdEx] 2699 iNdEx++ 2700 stringLen |= uint64(b&0x7F) << shift 2701 if b < 0x80 { 2702 break 2703 } 2704 } 2705 intStringLen := int(stringLen) 2706 if intStringLen < 0 { 2707 return ErrInvalidLengthEvent 2708 } 2709 postIndex := iNdEx + intStringLen 2710 if postIndex < 0 { 2711 return ErrInvalidLengthEvent 2712 } 2713 if postIndex > l { 2714 return io.ErrUnexpectedEOF 2715 } 2716 m.To = string(dAtA[iNdEx:postIndex]) 2717 iNdEx = postIndex 2718 case 4: 2719 if wireType != 2 { 2720 return fmt.Errorf("proto: wrong wireType = %d for field Amount", wireType) 2721 } 2722 var stringLen uint64 2723 for shift := uint(0); ; shift += 7 { 2724 if shift >= 64 { 2725 return ErrIntOverflowEvent 2726 } 2727 if iNdEx >= l { 2728 return io.ErrUnexpectedEOF 2729 } 2730 b := dAtA[iNdEx] 2731 iNdEx++ 2732 stringLen |= uint64(b&0x7F) << shift 2733 if b < 0x80 { 2734 break 2735 } 2736 } 2737 intStringLen := int(stringLen) 2738 if intStringLen < 0 { 2739 return ErrInvalidLengthEvent 2740 } 2741 postIndex := iNdEx + intStringLen 2742 if postIndex < 0 { 2743 return ErrInvalidLengthEvent 2744 } 2745 if postIndex > l { 2746 return io.ErrUnexpectedEOF 2747 } 2748 if err := m.Amount.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 2749 return err 2750 } 2751 iNdEx = postIndex 2752 default: 2753 iNdEx = preIndex 2754 skippy, err := skipEvent(dAtA[iNdEx:]) 2755 if err != nil { 2756 return err 2757 } 2758 if (skippy < 0) || (iNdEx+skippy) < 0 { 2759 return ErrInvalidLengthEvent 2760 } 2761 if (iNdEx + skippy) > l { 2762 return io.ErrUnexpectedEOF 2763 } 2764 iNdEx += skippy 2765 } 2766 } 2767 2768 if iNdEx > l { 2769 return io.ErrUnexpectedEOF 2770 } 2771 return nil 2772 } 2773 func (m *EventBurned) Unmarshal(dAtA []byte) error { 2774 l := len(dAtA) 2775 iNdEx := 0 2776 for iNdEx < l { 2777 preIndex := iNdEx 2778 var wire uint64 2779 for shift := uint(0); ; shift += 7 { 2780 if shift >= 64 { 2781 return ErrIntOverflowEvent 2782 } 2783 if iNdEx >= l { 2784 return io.ErrUnexpectedEOF 2785 } 2786 b := dAtA[iNdEx] 2787 iNdEx++ 2788 wire |= uint64(b&0x7F) << shift 2789 if b < 0x80 { 2790 break 2791 } 2792 } 2793 fieldNum := int32(wire >> 3) 2794 wireType := int(wire & 0x7) 2795 if wireType == 4 { 2796 return fmt.Errorf("proto: EventBurned: wiretype end group for non-group") 2797 } 2798 if fieldNum <= 0 { 2799 return fmt.Errorf("proto: EventBurned: illegal tag %d (wire type %d)", fieldNum, wire) 2800 } 2801 switch fieldNum { 2802 case 1: 2803 if wireType != 2 { 2804 return fmt.Errorf("proto: wrong wireType = %d for field ContractId", wireType) 2805 } 2806 var stringLen uint64 2807 for shift := uint(0); ; shift += 7 { 2808 if shift >= 64 { 2809 return ErrIntOverflowEvent 2810 } 2811 if iNdEx >= l { 2812 return io.ErrUnexpectedEOF 2813 } 2814 b := dAtA[iNdEx] 2815 iNdEx++ 2816 stringLen |= uint64(b&0x7F) << shift 2817 if b < 0x80 { 2818 break 2819 } 2820 } 2821 intStringLen := int(stringLen) 2822 if intStringLen < 0 { 2823 return ErrInvalidLengthEvent 2824 } 2825 postIndex := iNdEx + intStringLen 2826 if postIndex < 0 { 2827 return ErrInvalidLengthEvent 2828 } 2829 if postIndex > l { 2830 return io.ErrUnexpectedEOF 2831 } 2832 m.ContractId = string(dAtA[iNdEx:postIndex]) 2833 iNdEx = postIndex 2834 case 2: 2835 if wireType != 2 { 2836 return fmt.Errorf("proto: wrong wireType = %d for field Operator", wireType) 2837 } 2838 var stringLen uint64 2839 for shift := uint(0); ; shift += 7 { 2840 if shift >= 64 { 2841 return ErrIntOverflowEvent 2842 } 2843 if iNdEx >= l { 2844 return io.ErrUnexpectedEOF 2845 } 2846 b := dAtA[iNdEx] 2847 iNdEx++ 2848 stringLen |= uint64(b&0x7F) << shift 2849 if b < 0x80 { 2850 break 2851 } 2852 } 2853 intStringLen := int(stringLen) 2854 if intStringLen < 0 { 2855 return ErrInvalidLengthEvent 2856 } 2857 postIndex := iNdEx + intStringLen 2858 if postIndex < 0 { 2859 return ErrInvalidLengthEvent 2860 } 2861 if postIndex > l { 2862 return io.ErrUnexpectedEOF 2863 } 2864 m.Operator = string(dAtA[iNdEx:postIndex]) 2865 iNdEx = postIndex 2866 case 3: 2867 if wireType != 2 { 2868 return fmt.Errorf("proto: wrong wireType = %d for field From", wireType) 2869 } 2870 var stringLen uint64 2871 for shift := uint(0); ; shift += 7 { 2872 if shift >= 64 { 2873 return ErrIntOverflowEvent 2874 } 2875 if iNdEx >= l { 2876 return io.ErrUnexpectedEOF 2877 } 2878 b := dAtA[iNdEx] 2879 iNdEx++ 2880 stringLen |= uint64(b&0x7F) << shift 2881 if b < 0x80 { 2882 break 2883 } 2884 } 2885 intStringLen := int(stringLen) 2886 if intStringLen < 0 { 2887 return ErrInvalidLengthEvent 2888 } 2889 postIndex := iNdEx + intStringLen 2890 if postIndex < 0 { 2891 return ErrInvalidLengthEvent 2892 } 2893 if postIndex > l { 2894 return io.ErrUnexpectedEOF 2895 } 2896 m.From = string(dAtA[iNdEx:postIndex]) 2897 iNdEx = postIndex 2898 case 4: 2899 if wireType != 2 { 2900 return fmt.Errorf("proto: wrong wireType = %d for field Amount", wireType) 2901 } 2902 var stringLen uint64 2903 for shift := uint(0); ; shift += 7 { 2904 if shift >= 64 { 2905 return ErrIntOverflowEvent 2906 } 2907 if iNdEx >= l { 2908 return io.ErrUnexpectedEOF 2909 } 2910 b := dAtA[iNdEx] 2911 iNdEx++ 2912 stringLen |= uint64(b&0x7F) << shift 2913 if b < 0x80 { 2914 break 2915 } 2916 } 2917 intStringLen := int(stringLen) 2918 if intStringLen < 0 { 2919 return ErrInvalidLengthEvent 2920 } 2921 postIndex := iNdEx + intStringLen 2922 if postIndex < 0 { 2923 return ErrInvalidLengthEvent 2924 } 2925 if postIndex > l { 2926 return io.ErrUnexpectedEOF 2927 } 2928 if err := m.Amount.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 2929 return err 2930 } 2931 iNdEx = postIndex 2932 default: 2933 iNdEx = preIndex 2934 skippy, err := skipEvent(dAtA[iNdEx:]) 2935 if err != nil { 2936 return err 2937 } 2938 if (skippy < 0) || (iNdEx+skippy) < 0 { 2939 return ErrInvalidLengthEvent 2940 } 2941 if (iNdEx + skippy) > l { 2942 return io.ErrUnexpectedEOF 2943 } 2944 iNdEx += skippy 2945 } 2946 } 2947 2948 if iNdEx > l { 2949 return io.ErrUnexpectedEOF 2950 } 2951 return nil 2952 } 2953 func (m *EventModified) Unmarshal(dAtA []byte) error { 2954 l := len(dAtA) 2955 iNdEx := 0 2956 for iNdEx < l { 2957 preIndex := iNdEx 2958 var wire uint64 2959 for shift := uint(0); ; shift += 7 { 2960 if shift >= 64 { 2961 return ErrIntOverflowEvent 2962 } 2963 if iNdEx >= l { 2964 return io.ErrUnexpectedEOF 2965 } 2966 b := dAtA[iNdEx] 2967 iNdEx++ 2968 wire |= uint64(b&0x7F) << shift 2969 if b < 0x80 { 2970 break 2971 } 2972 } 2973 fieldNum := int32(wire >> 3) 2974 wireType := int(wire & 0x7) 2975 if wireType == 4 { 2976 return fmt.Errorf("proto: EventModified: wiretype end group for non-group") 2977 } 2978 if fieldNum <= 0 { 2979 return fmt.Errorf("proto: EventModified: illegal tag %d (wire type %d)", fieldNum, wire) 2980 } 2981 switch fieldNum { 2982 case 1: 2983 if wireType != 2 { 2984 return fmt.Errorf("proto: wrong wireType = %d for field ContractId", wireType) 2985 } 2986 var stringLen uint64 2987 for shift := uint(0); ; shift += 7 { 2988 if shift >= 64 { 2989 return ErrIntOverflowEvent 2990 } 2991 if iNdEx >= l { 2992 return io.ErrUnexpectedEOF 2993 } 2994 b := dAtA[iNdEx] 2995 iNdEx++ 2996 stringLen |= uint64(b&0x7F) << shift 2997 if b < 0x80 { 2998 break 2999 } 3000 } 3001 intStringLen := int(stringLen) 3002 if intStringLen < 0 { 3003 return ErrInvalidLengthEvent 3004 } 3005 postIndex := iNdEx + intStringLen 3006 if postIndex < 0 { 3007 return ErrInvalidLengthEvent 3008 } 3009 if postIndex > l { 3010 return io.ErrUnexpectedEOF 3011 } 3012 m.ContractId = string(dAtA[iNdEx:postIndex]) 3013 iNdEx = postIndex 3014 case 2: 3015 if wireType != 2 { 3016 return fmt.Errorf("proto: wrong wireType = %d for field Operator", wireType) 3017 } 3018 var stringLen uint64 3019 for shift := uint(0); ; shift += 7 { 3020 if shift >= 64 { 3021 return ErrIntOverflowEvent 3022 } 3023 if iNdEx >= l { 3024 return io.ErrUnexpectedEOF 3025 } 3026 b := dAtA[iNdEx] 3027 iNdEx++ 3028 stringLen |= uint64(b&0x7F) << shift 3029 if b < 0x80 { 3030 break 3031 } 3032 } 3033 intStringLen := int(stringLen) 3034 if intStringLen < 0 { 3035 return ErrInvalidLengthEvent 3036 } 3037 postIndex := iNdEx + intStringLen 3038 if postIndex < 0 { 3039 return ErrInvalidLengthEvent 3040 } 3041 if postIndex > l { 3042 return io.ErrUnexpectedEOF 3043 } 3044 m.Operator = string(dAtA[iNdEx:postIndex]) 3045 iNdEx = postIndex 3046 case 3: 3047 if wireType != 2 { 3048 return fmt.Errorf("proto: wrong wireType = %d for field Changes", wireType) 3049 } 3050 var msglen int 3051 for shift := uint(0); ; shift += 7 { 3052 if shift >= 64 { 3053 return ErrIntOverflowEvent 3054 } 3055 if iNdEx >= l { 3056 return io.ErrUnexpectedEOF 3057 } 3058 b := dAtA[iNdEx] 3059 iNdEx++ 3060 msglen |= int(b&0x7F) << shift 3061 if b < 0x80 { 3062 break 3063 } 3064 } 3065 if msglen < 0 { 3066 return ErrInvalidLengthEvent 3067 } 3068 postIndex := iNdEx + msglen 3069 if postIndex < 0 { 3070 return ErrInvalidLengthEvent 3071 } 3072 if postIndex > l { 3073 return io.ErrUnexpectedEOF 3074 } 3075 m.Changes = append(m.Changes, Attribute{}) 3076 if err := m.Changes[len(m.Changes)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 3077 return err 3078 } 3079 iNdEx = postIndex 3080 default: 3081 iNdEx = preIndex 3082 skippy, err := skipEvent(dAtA[iNdEx:]) 3083 if err != nil { 3084 return err 3085 } 3086 if (skippy < 0) || (iNdEx+skippy) < 0 { 3087 return ErrInvalidLengthEvent 3088 } 3089 if (iNdEx + skippy) > l { 3090 return io.ErrUnexpectedEOF 3091 } 3092 iNdEx += skippy 3093 } 3094 } 3095 3096 if iNdEx > l { 3097 return io.ErrUnexpectedEOF 3098 } 3099 return nil 3100 } 3101 func skipEvent(dAtA []byte) (n int, err error) { 3102 l := len(dAtA) 3103 iNdEx := 0 3104 depth := 0 3105 for iNdEx < l { 3106 var wire uint64 3107 for shift := uint(0); ; shift += 7 { 3108 if shift >= 64 { 3109 return 0, ErrIntOverflowEvent 3110 } 3111 if iNdEx >= l { 3112 return 0, io.ErrUnexpectedEOF 3113 } 3114 b := dAtA[iNdEx] 3115 iNdEx++ 3116 wire |= (uint64(b) & 0x7F) << shift 3117 if b < 0x80 { 3118 break 3119 } 3120 } 3121 wireType := int(wire & 0x7) 3122 switch wireType { 3123 case 0: 3124 for shift := uint(0); ; shift += 7 { 3125 if shift >= 64 { 3126 return 0, ErrIntOverflowEvent 3127 } 3128 if iNdEx >= l { 3129 return 0, io.ErrUnexpectedEOF 3130 } 3131 iNdEx++ 3132 if dAtA[iNdEx-1] < 0x80 { 3133 break 3134 } 3135 } 3136 case 1: 3137 iNdEx += 8 3138 case 2: 3139 var length int 3140 for shift := uint(0); ; shift += 7 { 3141 if shift >= 64 { 3142 return 0, ErrIntOverflowEvent 3143 } 3144 if iNdEx >= l { 3145 return 0, io.ErrUnexpectedEOF 3146 } 3147 b := dAtA[iNdEx] 3148 iNdEx++ 3149 length |= (int(b) & 0x7F) << shift 3150 if b < 0x80 { 3151 break 3152 } 3153 } 3154 if length < 0 { 3155 return 0, ErrInvalidLengthEvent 3156 } 3157 iNdEx += length 3158 case 3: 3159 depth++ 3160 case 4: 3161 if depth == 0 { 3162 return 0, ErrUnexpectedEndOfGroupEvent 3163 } 3164 depth-- 3165 case 5: 3166 iNdEx += 4 3167 default: 3168 return 0, fmt.Errorf("proto: illegal wireType %d", wireType) 3169 } 3170 if iNdEx < 0 { 3171 return 0, ErrInvalidLengthEvent 3172 } 3173 if depth == 0 { 3174 return iNdEx, nil 3175 } 3176 } 3177 return 0, io.ErrUnexpectedEOF 3178 } 3179 3180 var ( 3181 ErrInvalidLengthEvent = fmt.Errorf("proto: negative length found during unmarshaling") 3182 ErrIntOverflowEvent = fmt.Errorf("proto: integer overflow") 3183 ErrUnexpectedEndOfGroupEvent = fmt.Errorf("proto: unexpected end of group") 3184 )