github.com/s7techlab/cckit@v0.10.5/examples/erc20_service/erc20.pb.go (about) 1 // Code generated by protoc-gen-go. DO NOT EDIT. 2 // versions: 3 // protoc-gen-go v1.27.1 4 // protoc (unknown) 5 // source: erc20_service/erc20.proto 6 7 package erc20_service 8 9 import ( 10 context "context" 11 _ "google.golang.org/genproto/googleapis/api/annotations" 12 grpc "google.golang.org/grpc" 13 codes "google.golang.org/grpc/codes" 14 status "google.golang.org/grpc/status" 15 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 16 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 17 emptypb "google.golang.org/protobuf/types/known/emptypb" 18 reflect "reflect" 19 sync "sync" 20 ) 21 22 const ( 23 // Verify that this generated code is sufficiently up-to-date. 24 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 25 // Verify that runtime/protoimpl is sufficiently up-to-date. 26 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 27 ) 28 29 type NameResponse struct { 30 state protoimpl.MessageState 31 sizeCache protoimpl.SizeCache 32 unknownFields protoimpl.UnknownFields 33 34 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` 35 } 36 37 func (x *NameResponse) Reset() { 38 *x = NameResponse{} 39 if protoimpl.UnsafeEnabled { 40 mi := &file_erc20_service_erc20_proto_msgTypes[0] 41 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 42 ms.StoreMessageInfo(mi) 43 } 44 } 45 46 func (x *NameResponse) String() string { 47 return protoimpl.X.MessageStringOf(x) 48 } 49 50 func (*NameResponse) ProtoMessage() {} 51 52 func (x *NameResponse) ProtoReflect() protoreflect.Message { 53 mi := &file_erc20_service_erc20_proto_msgTypes[0] 54 if protoimpl.UnsafeEnabled && x != nil { 55 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 56 if ms.LoadMessageInfo() == nil { 57 ms.StoreMessageInfo(mi) 58 } 59 return ms 60 } 61 return mi.MessageOf(x) 62 } 63 64 // Deprecated: Use NameResponse.ProtoReflect.Descriptor instead. 65 func (*NameResponse) Descriptor() ([]byte, []int) { 66 return file_erc20_service_erc20_proto_rawDescGZIP(), []int{0} 67 } 68 69 func (x *NameResponse) GetName() string { 70 if x != nil { 71 return x.Name 72 } 73 return "" 74 } 75 76 type SymbolResponse struct { 77 state protoimpl.MessageState 78 sizeCache protoimpl.SizeCache 79 unknownFields protoimpl.UnknownFields 80 81 Symbol string `protobuf:"bytes,1,opt,name=symbol,proto3" json:"symbol,omitempty"` 82 } 83 84 func (x *SymbolResponse) Reset() { 85 *x = SymbolResponse{} 86 if protoimpl.UnsafeEnabled { 87 mi := &file_erc20_service_erc20_proto_msgTypes[1] 88 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 89 ms.StoreMessageInfo(mi) 90 } 91 } 92 93 func (x *SymbolResponse) String() string { 94 return protoimpl.X.MessageStringOf(x) 95 } 96 97 func (*SymbolResponse) ProtoMessage() {} 98 99 func (x *SymbolResponse) ProtoReflect() protoreflect.Message { 100 mi := &file_erc20_service_erc20_proto_msgTypes[1] 101 if protoimpl.UnsafeEnabled && x != nil { 102 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 103 if ms.LoadMessageInfo() == nil { 104 ms.StoreMessageInfo(mi) 105 } 106 return ms 107 } 108 return mi.MessageOf(x) 109 } 110 111 // Deprecated: Use SymbolResponse.ProtoReflect.Descriptor instead. 112 func (*SymbolResponse) Descriptor() ([]byte, []int) { 113 return file_erc20_service_erc20_proto_rawDescGZIP(), []int{1} 114 } 115 116 func (x *SymbolResponse) GetSymbol() string { 117 if x != nil { 118 return x.Symbol 119 } 120 return "" 121 } 122 123 type DecimalsResponse struct { 124 state protoimpl.MessageState 125 sizeCache protoimpl.SizeCache 126 unknownFields protoimpl.UnknownFields 127 128 Decimals uint32 `protobuf:"varint,1,opt,name=decimals,proto3" json:"decimals,omitempty"` 129 } 130 131 func (x *DecimalsResponse) Reset() { 132 *x = DecimalsResponse{} 133 if protoimpl.UnsafeEnabled { 134 mi := &file_erc20_service_erc20_proto_msgTypes[2] 135 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 136 ms.StoreMessageInfo(mi) 137 } 138 } 139 140 func (x *DecimalsResponse) String() string { 141 return protoimpl.X.MessageStringOf(x) 142 } 143 144 func (*DecimalsResponse) ProtoMessage() {} 145 146 func (x *DecimalsResponse) ProtoReflect() protoreflect.Message { 147 mi := &file_erc20_service_erc20_proto_msgTypes[2] 148 if protoimpl.UnsafeEnabled && x != nil { 149 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 150 if ms.LoadMessageInfo() == nil { 151 ms.StoreMessageInfo(mi) 152 } 153 return ms 154 } 155 return mi.MessageOf(x) 156 } 157 158 // Deprecated: Use DecimalsResponse.ProtoReflect.Descriptor instead. 159 func (*DecimalsResponse) Descriptor() ([]byte, []int) { 160 return file_erc20_service_erc20_proto_rawDescGZIP(), []int{2} 161 } 162 163 func (x *DecimalsResponse) GetDecimals() uint32 { 164 if x != nil { 165 return x.Decimals 166 } 167 return 0 168 } 169 170 type TotalSupplyResponse struct { 171 state protoimpl.MessageState 172 sizeCache protoimpl.SizeCache 173 unknownFields protoimpl.UnknownFields 174 175 TotalSupply uint64 `protobuf:"varint,1,opt,name=total_supply,json=totalSupply,proto3" json:"total_supply,omitempty"` 176 } 177 178 func (x *TotalSupplyResponse) Reset() { 179 *x = TotalSupplyResponse{} 180 if protoimpl.UnsafeEnabled { 181 mi := &file_erc20_service_erc20_proto_msgTypes[3] 182 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 183 ms.StoreMessageInfo(mi) 184 } 185 } 186 187 func (x *TotalSupplyResponse) String() string { 188 return protoimpl.X.MessageStringOf(x) 189 } 190 191 func (*TotalSupplyResponse) ProtoMessage() {} 192 193 func (x *TotalSupplyResponse) ProtoReflect() protoreflect.Message { 194 mi := &file_erc20_service_erc20_proto_msgTypes[3] 195 if protoimpl.UnsafeEnabled && x != nil { 196 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 197 if ms.LoadMessageInfo() == nil { 198 ms.StoreMessageInfo(mi) 199 } 200 return ms 201 } 202 return mi.MessageOf(x) 203 } 204 205 // Deprecated: Use TotalSupplyResponse.ProtoReflect.Descriptor instead. 206 func (*TotalSupplyResponse) Descriptor() ([]byte, []int) { 207 return file_erc20_service_erc20_proto_rawDescGZIP(), []int{3} 208 } 209 210 func (x *TotalSupplyResponse) GetTotalSupply() uint64 { 211 if x != nil { 212 return x.TotalSupply 213 } 214 return 0 215 } 216 217 type BalanceOfRequest struct { 218 state protoimpl.MessageState 219 sizeCache protoimpl.SizeCache 220 unknownFields protoimpl.UnknownFields 221 222 Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` 223 } 224 225 func (x *BalanceOfRequest) Reset() { 226 *x = BalanceOfRequest{} 227 if protoimpl.UnsafeEnabled { 228 mi := &file_erc20_service_erc20_proto_msgTypes[4] 229 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 230 ms.StoreMessageInfo(mi) 231 } 232 } 233 234 func (x *BalanceOfRequest) String() string { 235 return protoimpl.X.MessageStringOf(x) 236 } 237 238 func (*BalanceOfRequest) ProtoMessage() {} 239 240 func (x *BalanceOfRequest) ProtoReflect() protoreflect.Message { 241 mi := &file_erc20_service_erc20_proto_msgTypes[4] 242 if protoimpl.UnsafeEnabled && x != nil { 243 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 244 if ms.LoadMessageInfo() == nil { 245 ms.StoreMessageInfo(mi) 246 } 247 return ms 248 } 249 return mi.MessageOf(x) 250 } 251 252 // Deprecated: Use BalanceOfRequest.ProtoReflect.Descriptor instead. 253 func (*BalanceOfRequest) Descriptor() ([]byte, []int) { 254 return file_erc20_service_erc20_proto_rawDescGZIP(), []int{4} 255 } 256 257 func (x *BalanceOfRequest) GetAddress() string { 258 if x != nil { 259 return x.Address 260 } 261 return "" 262 } 263 264 type BalanceOfResponse struct { 265 state protoimpl.MessageState 266 sizeCache protoimpl.SizeCache 267 unknownFields protoimpl.UnknownFields 268 269 Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` 270 Balance uint64 `protobuf:"varint,2,opt,name=balance,proto3" json:"balance,omitempty"` 271 } 272 273 func (x *BalanceOfResponse) Reset() { 274 *x = BalanceOfResponse{} 275 if protoimpl.UnsafeEnabled { 276 mi := &file_erc20_service_erc20_proto_msgTypes[5] 277 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 278 ms.StoreMessageInfo(mi) 279 } 280 } 281 282 func (x *BalanceOfResponse) String() string { 283 return protoimpl.X.MessageStringOf(x) 284 } 285 286 func (*BalanceOfResponse) ProtoMessage() {} 287 288 func (x *BalanceOfResponse) ProtoReflect() protoreflect.Message { 289 mi := &file_erc20_service_erc20_proto_msgTypes[5] 290 if protoimpl.UnsafeEnabled && x != nil { 291 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 292 if ms.LoadMessageInfo() == nil { 293 ms.StoreMessageInfo(mi) 294 } 295 return ms 296 } 297 return mi.MessageOf(x) 298 } 299 300 // Deprecated: Use BalanceOfResponse.ProtoReflect.Descriptor instead. 301 func (*BalanceOfResponse) Descriptor() ([]byte, []int) { 302 return file_erc20_service_erc20_proto_rawDescGZIP(), []int{5} 303 } 304 305 func (x *BalanceOfResponse) GetAddress() string { 306 if x != nil { 307 return x.Address 308 } 309 return "" 310 } 311 312 func (x *BalanceOfResponse) GetBalance() uint64 { 313 if x != nil { 314 return x.Balance 315 } 316 return 0 317 } 318 319 type TransferRequest struct { 320 state protoimpl.MessageState 321 sizeCache protoimpl.SizeCache 322 unknownFields protoimpl.UnknownFields 323 324 RecipientAddress string `protobuf:"bytes,1,opt,name=recipient_address,json=recipientAddress,proto3" json:"recipient_address,omitempty"` 325 Amount uint64 `protobuf:"varint,2,opt,name=amount,proto3" json:"amount,omitempty"` 326 } 327 328 func (x *TransferRequest) Reset() { 329 *x = TransferRequest{} 330 if protoimpl.UnsafeEnabled { 331 mi := &file_erc20_service_erc20_proto_msgTypes[6] 332 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 333 ms.StoreMessageInfo(mi) 334 } 335 } 336 337 func (x *TransferRequest) String() string { 338 return protoimpl.X.MessageStringOf(x) 339 } 340 341 func (*TransferRequest) ProtoMessage() {} 342 343 func (x *TransferRequest) ProtoReflect() protoreflect.Message { 344 mi := &file_erc20_service_erc20_proto_msgTypes[6] 345 if protoimpl.UnsafeEnabled && x != nil { 346 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 347 if ms.LoadMessageInfo() == nil { 348 ms.StoreMessageInfo(mi) 349 } 350 return ms 351 } 352 return mi.MessageOf(x) 353 } 354 355 // Deprecated: Use TransferRequest.ProtoReflect.Descriptor instead. 356 func (*TransferRequest) Descriptor() ([]byte, []int) { 357 return file_erc20_service_erc20_proto_rawDescGZIP(), []int{6} 358 } 359 360 func (x *TransferRequest) GetRecipientAddress() string { 361 if x != nil { 362 return x.RecipientAddress 363 } 364 return "" 365 } 366 367 func (x *TransferRequest) GetAmount() uint64 { 368 if x != nil { 369 return x.Amount 370 } 371 return 0 372 } 373 374 type TransferResponse struct { 375 state protoimpl.MessageState 376 sizeCache protoimpl.SizeCache 377 unknownFields protoimpl.UnknownFields 378 379 SenderAddress string `protobuf:"bytes,1,opt,name=sender_address,json=senderAddress,proto3" json:"sender_address,omitempty"` 380 RecipientAddress string `protobuf:"bytes,2,opt,name=recipient_address,json=recipientAddress,proto3" json:"recipient_address,omitempty"` 381 Amount uint64 `protobuf:"varint,3,opt,name=amount,proto3" json:"amount,omitempty"` 382 } 383 384 func (x *TransferResponse) Reset() { 385 *x = TransferResponse{} 386 if protoimpl.UnsafeEnabled { 387 mi := &file_erc20_service_erc20_proto_msgTypes[7] 388 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 389 ms.StoreMessageInfo(mi) 390 } 391 } 392 393 func (x *TransferResponse) String() string { 394 return protoimpl.X.MessageStringOf(x) 395 } 396 397 func (*TransferResponse) ProtoMessage() {} 398 399 func (x *TransferResponse) ProtoReflect() protoreflect.Message { 400 mi := &file_erc20_service_erc20_proto_msgTypes[7] 401 if protoimpl.UnsafeEnabled && x != nil { 402 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 403 if ms.LoadMessageInfo() == nil { 404 ms.StoreMessageInfo(mi) 405 } 406 return ms 407 } 408 return mi.MessageOf(x) 409 } 410 411 // Deprecated: Use TransferResponse.ProtoReflect.Descriptor instead. 412 func (*TransferResponse) Descriptor() ([]byte, []int) { 413 return file_erc20_service_erc20_proto_rawDescGZIP(), []int{7} 414 } 415 416 func (x *TransferResponse) GetSenderAddress() string { 417 if x != nil { 418 return x.SenderAddress 419 } 420 return "" 421 } 422 423 func (x *TransferResponse) GetRecipientAddress() string { 424 if x != nil { 425 return x.RecipientAddress 426 } 427 return "" 428 } 429 430 func (x *TransferResponse) GetAmount() uint64 { 431 if x != nil { 432 return x.Amount 433 } 434 return 0 435 } 436 437 type AllowanceRequest struct { 438 state protoimpl.MessageState 439 sizeCache protoimpl.SizeCache 440 unknownFields protoimpl.UnknownFields 441 442 SenderAddress string `protobuf:"bytes,1,opt,name=sender_address,json=senderAddress,proto3" json:"sender_address,omitempty"` 443 RecipientAddress string `protobuf:"bytes,2,opt,name=recipient_address,json=recipientAddress,proto3" json:"recipient_address,omitempty"` 444 } 445 446 func (x *AllowanceRequest) Reset() { 447 *x = AllowanceRequest{} 448 if protoimpl.UnsafeEnabled { 449 mi := &file_erc20_service_erc20_proto_msgTypes[8] 450 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 451 ms.StoreMessageInfo(mi) 452 } 453 } 454 455 func (x *AllowanceRequest) String() string { 456 return protoimpl.X.MessageStringOf(x) 457 } 458 459 func (*AllowanceRequest) ProtoMessage() {} 460 461 func (x *AllowanceRequest) ProtoReflect() protoreflect.Message { 462 mi := &file_erc20_service_erc20_proto_msgTypes[8] 463 if protoimpl.UnsafeEnabled && x != nil { 464 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 465 if ms.LoadMessageInfo() == nil { 466 ms.StoreMessageInfo(mi) 467 } 468 return ms 469 } 470 return mi.MessageOf(x) 471 } 472 473 // Deprecated: Use AllowanceRequest.ProtoReflect.Descriptor instead. 474 func (*AllowanceRequest) Descriptor() ([]byte, []int) { 475 return file_erc20_service_erc20_proto_rawDescGZIP(), []int{8} 476 } 477 478 func (x *AllowanceRequest) GetSenderAddress() string { 479 if x != nil { 480 return x.SenderAddress 481 } 482 return "" 483 } 484 485 func (x *AllowanceRequest) GetRecipientAddress() string { 486 if x != nil { 487 return x.RecipientAddress 488 } 489 return "" 490 } 491 492 type AllowanceResponse struct { 493 state protoimpl.MessageState 494 sizeCache protoimpl.SizeCache 495 unknownFields protoimpl.UnknownFields 496 497 SenderAddress string `protobuf:"bytes,1,opt,name=sender_address,json=senderAddress,proto3" json:"sender_address,omitempty"` 498 RecipientAddress string `protobuf:"bytes,2,opt,name=recipient_address,json=recipientAddress,proto3" json:"recipient_address,omitempty"` 499 Amount uint64 `protobuf:"varint,3,opt,name=amount,proto3" json:"amount,omitempty"` 500 } 501 502 func (x *AllowanceResponse) Reset() { 503 *x = AllowanceResponse{} 504 if protoimpl.UnsafeEnabled { 505 mi := &file_erc20_service_erc20_proto_msgTypes[9] 506 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 507 ms.StoreMessageInfo(mi) 508 } 509 } 510 511 func (x *AllowanceResponse) String() string { 512 return protoimpl.X.MessageStringOf(x) 513 } 514 515 func (*AllowanceResponse) ProtoMessage() {} 516 517 func (x *AllowanceResponse) ProtoReflect() protoreflect.Message { 518 mi := &file_erc20_service_erc20_proto_msgTypes[9] 519 if protoimpl.UnsafeEnabled && x != nil { 520 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 521 if ms.LoadMessageInfo() == nil { 522 ms.StoreMessageInfo(mi) 523 } 524 return ms 525 } 526 return mi.MessageOf(x) 527 } 528 529 // Deprecated: Use AllowanceResponse.ProtoReflect.Descriptor instead. 530 func (*AllowanceResponse) Descriptor() ([]byte, []int) { 531 return file_erc20_service_erc20_proto_rawDescGZIP(), []int{9} 532 } 533 534 func (x *AllowanceResponse) GetSenderAddress() string { 535 if x != nil { 536 return x.SenderAddress 537 } 538 return "" 539 } 540 541 func (x *AllowanceResponse) GetRecipientAddress() string { 542 if x != nil { 543 return x.RecipientAddress 544 } 545 return "" 546 } 547 548 func (x *AllowanceResponse) GetAmount() uint64 { 549 if x != nil { 550 return x.Amount 551 } 552 return 0 553 } 554 555 type ApproveRequest struct { 556 state protoimpl.MessageState 557 sizeCache protoimpl.SizeCache 558 unknownFields protoimpl.UnknownFields 559 560 SenderAddress string `protobuf:"bytes,1,opt,name=sender_address,json=senderAddress,proto3" json:"sender_address,omitempty"` 561 RecipientAddress string `protobuf:"bytes,2,opt,name=recipient_address,json=recipientAddress,proto3" json:"recipient_address,omitempty"` 562 Amount uint64 `protobuf:"varint,3,opt,name=amount,proto3" json:"amount,omitempty"` 563 } 564 565 func (x *ApproveRequest) Reset() { 566 *x = ApproveRequest{} 567 if protoimpl.UnsafeEnabled { 568 mi := &file_erc20_service_erc20_proto_msgTypes[10] 569 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 570 ms.StoreMessageInfo(mi) 571 } 572 } 573 574 func (x *ApproveRequest) String() string { 575 return protoimpl.X.MessageStringOf(x) 576 } 577 578 func (*ApproveRequest) ProtoMessage() {} 579 580 func (x *ApproveRequest) ProtoReflect() protoreflect.Message { 581 mi := &file_erc20_service_erc20_proto_msgTypes[10] 582 if protoimpl.UnsafeEnabled && x != nil { 583 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 584 if ms.LoadMessageInfo() == nil { 585 ms.StoreMessageInfo(mi) 586 } 587 return ms 588 } 589 return mi.MessageOf(x) 590 } 591 592 // Deprecated: Use ApproveRequest.ProtoReflect.Descriptor instead. 593 func (*ApproveRequest) Descriptor() ([]byte, []int) { 594 return file_erc20_service_erc20_proto_rawDescGZIP(), []int{10} 595 } 596 597 func (x *ApproveRequest) GetSenderAddress() string { 598 if x != nil { 599 return x.SenderAddress 600 } 601 return "" 602 } 603 604 func (x *ApproveRequest) GetRecipientAddress() string { 605 if x != nil { 606 return x.RecipientAddress 607 } 608 return "" 609 } 610 611 func (x *ApproveRequest) GetAmount() uint64 { 612 if x != nil { 613 return x.Amount 614 } 615 return 0 616 } 617 618 type ApproveResponse struct { 619 state protoimpl.MessageState 620 sizeCache protoimpl.SizeCache 621 unknownFields protoimpl.UnknownFields 622 623 SenderAddress string `protobuf:"bytes,1,opt,name=sender_address,json=senderAddress,proto3" json:"sender_address,omitempty"` 624 RecipientAddress string `protobuf:"bytes,2,opt,name=recipient_address,json=recipientAddress,proto3" json:"recipient_address,omitempty"` 625 Amount uint64 `protobuf:"varint,3,opt,name=amount,proto3" json:"amount,omitempty"` 626 } 627 628 func (x *ApproveResponse) Reset() { 629 *x = ApproveResponse{} 630 if protoimpl.UnsafeEnabled { 631 mi := &file_erc20_service_erc20_proto_msgTypes[11] 632 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 633 ms.StoreMessageInfo(mi) 634 } 635 } 636 637 func (x *ApproveResponse) String() string { 638 return protoimpl.X.MessageStringOf(x) 639 } 640 641 func (*ApproveResponse) ProtoMessage() {} 642 643 func (x *ApproveResponse) ProtoReflect() protoreflect.Message { 644 mi := &file_erc20_service_erc20_proto_msgTypes[11] 645 if protoimpl.UnsafeEnabled && x != nil { 646 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 647 if ms.LoadMessageInfo() == nil { 648 ms.StoreMessageInfo(mi) 649 } 650 return ms 651 } 652 return mi.MessageOf(x) 653 } 654 655 // Deprecated: Use ApproveResponse.ProtoReflect.Descriptor instead. 656 func (*ApproveResponse) Descriptor() ([]byte, []int) { 657 return file_erc20_service_erc20_proto_rawDescGZIP(), []int{11} 658 } 659 660 func (x *ApproveResponse) GetSenderAddress() string { 661 if x != nil { 662 return x.SenderAddress 663 } 664 return "" 665 } 666 667 func (x *ApproveResponse) GetRecipientAddress() string { 668 if x != nil { 669 return x.RecipientAddress 670 } 671 return "" 672 } 673 674 func (x *ApproveResponse) GetAmount() uint64 { 675 if x != nil { 676 return x.Amount 677 } 678 return 0 679 } 680 681 type TransferFromRequest struct { 682 state protoimpl.MessageState 683 sizeCache protoimpl.SizeCache 684 unknownFields protoimpl.UnknownFields 685 686 SenderAddress string `protobuf:"bytes,1,opt,name=sender_address,json=senderAddress,proto3" json:"sender_address,omitempty"` 687 RecipientAddress string `protobuf:"bytes,2,opt,name=recipient_address,json=recipientAddress,proto3" json:"recipient_address,omitempty"` 688 Amount uint64 `protobuf:"varint,3,opt,name=amount,proto3" json:"amount,omitempty"` 689 } 690 691 func (x *TransferFromRequest) Reset() { 692 *x = TransferFromRequest{} 693 if protoimpl.UnsafeEnabled { 694 mi := &file_erc20_service_erc20_proto_msgTypes[12] 695 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 696 ms.StoreMessageInfo(mi) 697 } 698 } 699 700 func (x *TransferFromRequest) String() string { 701 return protoimpl.X.MessageStringOf(x) 702 } 703 704 func (*TransferFromRequest) ProtoMessage() {} 705 706 func (x *TransferFromRequest) ProtoReflect() protoreflect.Message { 707 mi := &file_erc20_service_erc20_proto_msgTypes[12] 708 if protoimpl.UnsafeEnabled && x != nil { 709 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 710 if ms.LoadMessageInfo() == nil { 711 ms.StoreMessageInfo(mi) 712 } 713 return ms 714 } 715 return mi.MessageOf(x) 716 } 717 718 // Deprecated: Use TransferFromRequest.ProtoReflect.Descriptor instead. 719 func (*TransferFromRequest) Descriptor() ([]byte, []int) { 720 return file_erc20_service_erc20_proto_rawDescGZIP(), []int{12} 721 } 722 723 func (x *TransferFromRequest) GetSenderAddress() string { 724 if x != nil { 725 return x.SenderAddress 726 } 727 return "" 728 } 729 730 func (x *TransferFromRequest) GetRecipientAddress() string { 731 if x != nil { 732 return x.RecipientAddress 733 } 734 return "" 735 } 736 737 func (x *TransferFromRequest) GetAmount() uint64 { 738 if x != nil { 739 return x.Amount 740 } 741 return 0 742 } 743 744 type TransferEvent struct { 745 state protoimpl.MessageState 746 sizeCache protoimpl.SizeCache 747 unknownFields protoimpl.UnknownFields 748 749 SenderAddress string `protobuf:"bytes,1,opt,name=sender_address,json=senderAddress,proto3" json:"sender_address,omitempty"` 750 RecipientAddress string `protobuf:"bytes,2,opt,name=recipient_address,json=recipientAddress,proto3" json:"recipient_address,omitempty"` 751 Amount uint64 `protobuf:"varint,3,opt,name=amount,proto3" json:"amount,omitempty"` 752 } 753 754 func (x *TransferEvent) Reset() { 755 *x = TransferEvent{} 756 if protoimpl.UnsafeEnabled { 757 mi := &file_erc20_service_erc20_proto_msgTypes[13] 758 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 759 ms.StoreMessageInfo(mi) 760 } 761 } 762 763 func (x *TransferEvent) String() string { 764 return protoimpl.X.MessageStringOf(x) 765 } 766 767 func (*TransferEvent) ProtoMessage() {} 768 769 func (x *TransferEvent) ProtoReflect() protoreflect.Message { 770 mi := &file_erc20_service_erc20_proto_msgTypes[13] 771 if protoimpl.UnsafeEnabled && x != nil { 772 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 773 if ms.LoadMessageInfo() == nil { 774 ms.StoreMessageInfo(mi) 775 } 776 return ms 777 } 778 return mi.MessageOf(x) 779 } 780 781 // Deprecated: Use TransferEvent.ProtoReflect.Descriptor instead. 782 func (*TransferEvent) Descriptor() ([]byte, []int) { 783 return file_erc20_service_erc20_proto_rawDescGZIP(), []int{13} 784 } 785 786 func (x *TransferEvent) GetSenderAddress() string { 787 if x != nil { 788 return x.SenderAddress 789 } 790 return "" 791 } 792 793 func (x *TransferEvent) GetRecipientAddress() string { 794 if x != nil { 795 return x.RecipientAddress 796 } 797 return "" 798 } 799 800 func (x *TransferEvent) GetAmount() uint64 { 801 if x != nil { 802 return x.Amount 803 } 804 return 0 805 } 806 807 type ApprovalEvent struct { 808 state protoimpl.MessageState 809 sizeCache protoimpl.SizeCache 810 unknownFields protoimpl.UnknownFields 811 812 SenderAddress string `protobuf:"bytes,1,opt,name=sender_address,json=senderAddress,proto3" json:"sender_address,omitempty"` 813 RecipientAddress string `protobuf:"bytes,2,opt,name=recipient_address,json=recipientAddress,proto3" json:"recipient_address,omitempty"` 814 Amount uint64 `protobuf:"varint,3,opt,name=amount,proto3" json:"amount,omitempty"` 815 } 816 817 func (x *ApprovalEvent) Reset() { 818 *x = ApprovalEvent{} 819 if protoimpl.UnsafeEnabled { 820 mi := &file_erc20_service_erc20_proto_msgTypes[14] 821 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 822 ms.StoreMessageInfo(mi) 823 } 824 } 825 826 func (x *ApprovalEvent) String() string { 827 return protoimpl.X.MessageStringOf(x) 828 } 829 830 func (*ApprovalEvent) ProtoMessage() {} 831 832 func (x *ApprovalEvent) ProtoReflect() protoreflect.Message { 833 mi := &file_erc20_service_erc20_proto_msgTypes[14] 834 if protoimpl.UnsafeEnabled && x != nil { 835 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 836 if ms.LoadMessageInfo() == nil { 837 ms.StoreMessageInfo(mi) 838 } 839 return ms 840 } 841 return mi.MessageOf(x) 842 } 843 844 // Deprecated: Use ApprovalEvent.ProtoReflect.Descriptor instead. 845 func (*ApprovalEvent) Descriptor() ([]byte, []int) { 846 return file_erc20_service_erc20_proto_rawDescGZIP(), []int{14} 847 } 848 849 func (x *ApprovalEvent) GetSenderAddress() string { 850 if x != nil { 851 return x.SenderAddress 852 } 853 return "" 854 } 855 856 func (x *ApprovalEvent) GetRecipientAddress() string { 857 if x != nil { 858 return x.RecipientAddress 859 } 860 return "" 861 } 862 863 func (x *ApprovalEvent) GetAmount() uint64 { 864 if x != nil { 865 return x.Amount 866 } 867 return 0 868 } 869 870 var File_erc20_service_erc20_proto protoreflect.FileDescriptor 871 872 var file_erc20_service_erc20_proto_rawDesc = []byte{ 873 0x0a, 0x19, 0x65, 0x72, 0x63, 0x32, 0x30, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2f, 874 0x65, 0x72, 0x63, 0x32, 0x30, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x16, 0x65, 0x78, 0x61, 875 0x6d, 0x70, 0x6c, 0x65, 0x73, 0x2e, 0x65, 0x72, 0x63, 0x32, 0x30, 0x5f, 0x73, 0x65, 0x72, 0x76, 876 0x69, 0x63, 0x65, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 877 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 878 0x6f, 0x1a, 0x1b, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 879 0x75, 0x66, 0x2f, 0x65, 0x6d, 0x70, 0x74, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x22, 880 0x0a, 0x0c, 0x4e, 0x61, 0x6d, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x12, 881 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 882 0x6d, 0x65, 0x22, 0x28, 0x0a, 0x0e, 0x53, 0x79, 0x6d, 0x62, 0x6f, 0x6c, 0x52, 0x65, 0x73, 0x70, 883 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x79, 0x6d, 0x62, 0x6f, 0x6c, 0x18, 0x01, 884 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x79, 0x6d, 0x62, 0x6f, 0x6c, 0x22, 0x2e, 0x0a, 0x10, 885 0x44, 0x65, 0x63, 0x69, 0x6d, 0x61, 0x6c, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 886 0x12, 0x1a, 0x0a, 0x08, 0x64, 0x65, 0x63, 0x69, 0x6d, 0x61, 0x6c, 0x73, 0x18, 0x01, 0x20, 0x01, 887 0x28, 0x0d, 0x52, 0x08, 0x64, 0x65, 0x63, 0x69, 0x6d, 0x61, 0x6c, 0x73, 0x22, 0x38, 0x0a, 0x13, 888 0x54, 0x6f, 0x74, 0x61, 0x6c, 0x53, 0x75, 0x70, 0x70, 0x6c, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 889 0x6e, 0x73, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x73, 0x75, 0x70, 890 0x70, 0x6c, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0b, 0x74, 0x6f, 0x74, 0x61, 0x6c, 891 0x53, 0x75, 0x70, 0x70, 0x6c, 0x79, 0x22, 0x2c, 0x0a, 0x10, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 892 0x65, 0x4f, 0x66, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x64, 893 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, 0x64, 0x64, 894 0x72, 0x65, 0x73, 0x73, 0x22, 0x47, 0x0a, 0x11, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x4f, 895 0x66, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x64, 0x64, 896 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 897 0x65, 0x73, 0x73, 0x12, 0x18, 0x0a, 0x07, 0x62, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x18, 0x02, 898 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, 0x62, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x22, 0x56, 0x0a, 899 0x0f, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 900 0x12, 0x2b, 0x0a, 0x11, 0x72, 0x65, 0x63, 0x69, 0x70, 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x61, 0x64, 901 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x10, 0x72, 0x65, 0x63, 902 0x69, 0x70, 0x69, 0x65, 0x6e, 0x74, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x16, 0x0a, 903 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x06, 0x61, 904 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0x7e, 0x0a, 0x10, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 905 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x25, 0x0a, 0x0e, 0x73, 0x65, 0x6e, 906 0x64, 0x65, 0x72, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 907 0x09, 0x52, 0x0d, 0x73, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 908 0x12, 0x2b, 0x0a, 0x11, 0x72, 0x65, 0x63, 0x69, 0x70, 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x61, 0x64, 909 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x10, 0x72, 0x65, 0x63, 910 0x69, 0x70, 0x69, 0x65, 0x6e, 0x74, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x16, 0x0a, 911 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x06, 0x61, 912 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0x66, 0x0a, 0x10, 0x41, 0x6c, 0x6c, 0x6f, 0x77, 0x61, 0x6e, 913 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x25, 0x0a, 0x0e, 0x73, 0x65, 0x6e, 914 0x64, 0x65, 0x72, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 915 0x09, 0x52, 0x0d, 0x73, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 916 0x12, 0x2b, 0x0a, 0x11, 0x72, 0x65, 0x63, 0x69, 0x70, 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x61, 0x64, 917 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x10, 0x72, 0x65, 0x63, 918 0x69, 0x70, 0x69, 0x65, 0x6e, 0x74, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x22, 0x7f, 0x0a, 919 0x11, 0x41, 0x6c, 0x6c, 0x6f, 0x77, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 920 0x73, 0x65, 0x12, 0x25, 0x0a, 0x0e, 0x73, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x5f, 0x61, 0x64, 0x64, 921 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x73, 0x65, 0x6e, 0x64, 922 0x65, 0x72, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x2b, 0x0a, 0x11, 0x72, 0x65, 0x63, 923 0x69, 0x70, 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x02, 924 0x20, 0x01, 0x28, 0x09, 0x52, 0x10, 0x72, 0x65, 0x63, 0x69, 0x70, 0x69, 0x65, 0x6e, 0x74, 0x41, 925 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 926 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0x7c, 927 0x0a, 0x0e, 0x41, 0x70, 0x70, 0x72, 0x6f, 0x76, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 928 0x12, 0x25, 0x0a, 0x0e, 0x73, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 929 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x73, 0x65, 0x6e, 0x64, 0x65, 0x72, 930 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x2b, 0x0a, 0x11, 0x72, 0x65, 0x63, 0x69, 0x70, 931 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x02, 0x20, 0x01, 932 0x28, 0x09, 0x52, 0x10, 0x72, 0x65, 0x63, 0x69, 0x70, 0x69, 0x65, 0x6e, 0x74, 0x41, 0x64, 0x64, 933 0x72, 0x65, 0x73, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x03, 934 0x20, 0x01, 0x28, 0x04, 0x52, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0x7d, 0x0a, 0x0f, 935 0x41, 0x70, 0x70, 0x72, 0x6f, 0x76, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 936 0x25, 0x0a, 0x0e, 0x73, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 937 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x73, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x41, 938 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x2b, 0x0a, 0x11, 0x72, 0x65, 0x63, 0x69, 0x70, 0x69, 939 0x65, 0x6e, 0x74, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 940 0x09, 0x52, 0x10, 0x72, 0x65, 0x63, 0x69, 0x70, 0x69, 0x65, 0x6e, 0x74, 0x41, 0x64, 0x64, 0x72, 941 0x65, 0x73, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x03, 0x20, 942 0x01, 0x28, 0x04, 0x52, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0x81, 0x01, 0x0a, 0x13, 943 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x46, 0x72, 0x6f, 0x6d, 0x52, 0x65, 0x71, 0x75, 944 0x65, 0x73, 0x74, 0x12, 0x25, 0x0a, 0x0e, 0x73, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x5f, 0x61, 0x64, 945 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x73, 0x65, 0x6e, 946 0x64, 0x65, 0x72, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x2b, 0x0a, 0x11, 0x72, 0x65, 947 0x63, 0x69, 0x70, 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 948 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x10, 0x72, 0x65, 0x63, 0x69, 0x70, 0x69, 0x65, 0x6e, 0x74, 949 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 950 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x22, 951 0x7b, 0x0a, 0x0d, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x45, 0x76, 0x65, 0x6e, 0x74, 952 0x12, 0x25, 0x0a, 0x0e, 0x73, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 953 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x73, 0x65, 0x6e, 0x64, 0x65, 0x72, 954 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x2b, 0x0a, 0x11, 0x72, 0x65, 0x63, 0x69, 0x70, 955 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x02, 0x20, 0x01, 956 0x28, 0x09, 0x52, 0x10, 0x72, 0x65, 0x63, 0x69, 0x70, 0x69, 0x65, 0x6e, 0x74, 0x41, 0x64, 0x64, 957 0x72, 0x65, 0x73, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x03, 958 0x20, 0x01, 0x28, 0x04, 0x52, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0x7b, 0x0a, 0x0d, 959 0x41, 0x70, 0x70, 0x72, 0x6f, 0x76, 0x61, 0x6c, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x25, 0x0a, 960 0x0e, 0x73, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 961 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x73, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x41, 0x64, 0x64, 962 0x72, 0x65, 0x73, 0x73, 0x12, 0x2b, 0x0a, 0x11, 0x72, 0x65, 0x63, 0x69, 0x70, 0x69, 0x65, 0x6e, 963 0x74, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 964 0x10, 0x72, 0x65, 0x63, 0x69, 0x70, 0x69, 0x65, 0x6e, 0x74, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 965 0x73, 0x12, 0x16, 0x0a, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 966 0x04, 0x52, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x32, 0xfc, 0x07, 0x0a, 0x05, 0x45, 0x52, 967 0x43, 0x32, 0x30, 0x12, 0x53, 0x0a, 0x04, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x16, 0x2e, 0x67, 0x6f, 968 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 969 0x70, 0x74, 0x79, 0x1a, 0x24, 0x2e, 0x65, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x73, 0x2e, 0x65, 970 0x72, 0x63, 0x32, 0x30, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x4e, 0x61, 0x6d, 971 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x0d, 0x82, 0xd3, 0xe4, 0x93, 0x02, 972 0x07, 0x12, 0x05, 0x2f, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x59, 0x0a, 0x06, 0x53, 0x79, 0x6d, 0x62, 973 0x6f, 0x6c, 0x12, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 974 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x26, 0x2e, 0x65, 0x78, 0x61, 975 0x6d, 0x70, 0x6c, 0x65, 0x73, 0x2e, 0x65, 0x72, 0x63, 0x32, 0x30, 0x5f, 0x73, 0x65, 0x72, 0x76, 976 0x69, 0x63, 0x65, 0x2e, 0x53, 0x79, 0x6d, 0x62, 0x6f, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 977 0x73, 0x65, 0x22, 0x0f, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x09, 0x12, 0x07, 0x2f, 0x73, 0x79, 0x6d, 978 0x62, 0x6f, 0x6c, 0x12, 0x5f, 0x0a, 0x08, 0x44, 0x65, 0x63, 0x69, 0x6d, 0x61, 0x6c, 0x73, 0x12, 979 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 980 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x28, 0x2e, 0x65, 0x78, 0x61, 0x6d, 0x70, 0x6c, 981 0x65, 0x73, 0x2e, 0x65, 0x72, 0x63, 0x32, 0x30, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 982 0x2e, 0x44, 0x65, 0x63, 0x69, 0x6d, 0x61, 0x6c, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 983 0x65, 0x22, 0x11, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x0b, 0x12, 0x09, 0x2f, 0x64, 0x65, 0x63, 0x69, 984 0x6d, 0x61, 0x6c, 0x73, 0x12, 0x69, 0x0a, 0x0b, 0x54, 0x6f, 0x74, 0x61, 0x6c, 0x53, 0x75, 0x70, 985 0x70, 0x6c, 0x79, 0x12, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 986 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x2b, 0x2e, 0x65, 0x78, 987 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x73, 0x2e, 0x65, 0x72, 0x63, 0x32, 0x30, 0x5f, 0x73, 0x65, 0x72, 988 0x76, 0x69, 0x63, 0x65, 0x2e, 0x54, 0x6f, 0x74, 0x61, 0x6c, 0x53, 0x75, 0x70, 0x70, 0x6c, 0x79, 989 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x15, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x0f, 990 0x12, 0x0d, 0x2f, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x2d, 0x73, 0x75, 0x70, 0x70, 0x6c, 0x79, 0x12, 991 0x7c, 0x0a, 0x09, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x4f, 0x66, 0x12, 0x28, 0x2e, 0x65, 992 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x73, 0x2e, 0x65, 0x72, 0x63, 0x32, 0x30, 0x5f, 0x73, 0x65, 993 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x4f, 0x66, 0x52, 994 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x29, 0x2e, 0x65, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 995 0x73, 0x2e, 0x65, 0x72, 0x63, 0x32, 0x30, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 996 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x4f, 0x66, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 997 0x65, 0x22, 0x1a, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x14, 0x12, 0x12, 0x2f, 0x62, 0x61, 0x6c, 0x61, 998 0x6e, 0x63, 0x65, 0x2f, 0x7b, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x7d, 0x12, 0x70, 0x0a, 999 0x08, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x12, 0x27, 0x2e, 0x65, 0x78, 0x61, 0x6d, 1000 0x70, 0x6c, 0x65, 0x73, 0x2e, 0x65, 0x72, 0x63, 0x32, 0x30, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 1001 0x63, 0x65, 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 1002 0x73, 0x74, 0x1a, 0x28, 0x2e, 0x65, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x73, 0x2e, 0x65, 0x72, 1003 0x63, 0x32, 0x30, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x54, 0x72, 0x61, 0x6e, 1004 0x73, 0x66, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x11, 0x82, 0xd3, 1005 0xe4, 0x93, 0x02, 0x0b, 0x22, 0x09, 0x2f, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x12, 1006 0x99, 0x01, 0x0a, 0x09, 0x41, 0x6c, 0x6c, 0x6f, 0x77, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x28, 0x2e, 1007 0x65, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x73, 0x2e, 0x65, 0x72, 0x63, 0x32, 0x30, 0x5f, 0x73, 1008 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x41, 0x6c, 0x6c, 0x6f, 0x77, 0x61, 0x6e, 0x63, 0x65, 1009 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x29, 0x2e, 0x65, 0x78, 0x61, 0x6d, 0x70, 0x6c, 1010 0x65, 0x73, 0x2e, 0x65, 0x72, 0x63, 0x32, 0x30, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 1011 0x2e, 0x41, 0x6c, 0x6c, 0x6f, 0x77, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 1012 0x73, 0x65, 0x22, 0x37, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x31, 0x12, 0x2f, 0x2f, 0x61, 0x6c, 0x6c, 1013 0x6f, 0x77, 0x61, 0x6e, 0x63, 0x65, 0x2f, 0x7b, 0x73, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x5f, 0x61, 1014 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x7d, 0x2f, 0x7b, 0x72, 0x65, 0x63, 0x69, 0x70, 0x69, 0x65, 1015 0x6e, 0x74, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x7d, 0x12, 0x6c, 0x0a, 0x07, 0x41, 1016 0x70, 0x70, 0x72, 0x6f, 0x76, 0x65, 0x12, 0x26, 0x2e, 0x65, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 1017 0x73, 0x2e, 0x65, 0x72, 0x63, 0x32, 0x30, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 1018 0x41, 0x70, 0x70, 0x72, 0x6f, 0x76, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x27, 1019 0x2e, 0x65, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x73, 0x2e, 0x65, 0x72, 0x63, 0x32, 0x30, 0x5f, 1020 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x41, 0x70, 0x70, 0x72, 0x6f, 0x76, 0x65, 0x52, 1021 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x10, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x0a, 0x22, 1022 0x08, 0x2f, 0x61, 0x70, 0x70, 0x72, 0x6f, 0x76, 0x65, 0x12, 0x7d, 0x0a, 0x0c, 0x54, 0x72, 0x61, 1023 0x6e, 0x73, 0x66, 0x65, 0x72, 0x46, 0x72, 0x6f, 0x6d, 0x12, 0x2b, 0x2e, 0x65, 0x78, 0x61, 0x6d, 1024 0x70, 0x6c, 0x65, 0x73, 0x2e, 0x65, 0x72, 0x63, 0x32, 0x30, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 1025 0x63, 0x65, 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x46, 0x72, 0x6f, 0x6d, 0x52, 1026 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x28, 0x2e, 0x65, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 1027 0x73, 0x2e, 0x65, 0x72, 0x63, 0x32, 0x30, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 1028 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 1029 0x22, 0x16, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x10, 0x22, 0x0e, 0x2f, 0x74, 0x72, 0x61, 0x6e, 0x73, 1030 0x66, 0x65, 0x72, 0x2d, 0x66, 0x72, 0x6f, 0x6d, 0x42, 0x33, 0x5a, 0x31, 0x67, 0x69, 0x74, 0x68, 1031 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x73, 0x37, 0x74, 0x65, 0x63, 0x68, 0x6c, 0x61, 0x62, 1032 0x2f, 0x63, 0x63, 0x6b, 0x69, 0x74, 0x2f, 0x65, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x73, 0x2f, 1033 0x65, 0x72, 0x63, 0x32, 0x30, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x62, 0x06, 0x70, 1034 0x72, 0x6f, 0x74, 0x6f, 0x33, 1035 } 1036 1037 var ( 1038 file_erc20_service_erc20_proto_rawDescOnce sync.Once 1039 file_erc20_service_erc20_proto_rawDescData = file_erc20_service_erc20_proto_rawDesc 1040 ) 1041 1042 func file_erc20_service_erc20_proto_rawDescGZIP() []byte { 1043 file_erc20_service_erc20_proto_rawDescOnce.Do(func() { 1044 file_erc20_service_erc20_proto_rawDescData = protoimpl.X.CompressGZIP(file_erc20_service_erc20_proto_rawDescData) 1045 }) 1046 return file_erc20_service_erc20_proto_rawDescData 1047 } 1048 1049 var file_erc20_service_erc20_proto_msgTypes = make([]protoimpl.MessageInfo, 15) 1050 var file_erc20_service_erc20_proto_goTypes = []interface{}{ 1051 (*NameResponse)(nil), // 0: examples.erc20_service.NameResponse 1052 (*SymbolResponse)(nil), // 1: examples.erc20_service.SymbolResponse 1053 (*DecimalsResponse)(nil), // 2: examples.erc20_service.DecimalsResponse 1054 (*TotalSupplyResponse)(nil), // 3: examples.erc20_service.TotalSupplyResponse 1055 (*BalanceOfRequest)(nil), // 4: examples.erc20_service.BalanceOfRequest 1056 (*BalanceOfResponse)(nil), // 5: examples.erc20_service.BalanceOfResponse 1057 (*TransferRequest)(nil), // 6: examples.erc20_service.TransferRequest 1058 (*TransferResponse)(nil), // 7: examples.erc20_service.TransferResponse 1059 (*AllowanceRequest)(nil), // 8: examples.erc20_service.AllowanceRequest 1060 (*AllowanceResponse)(nil), // 9: examples.erc20_service.AllowanceResponse 1061 (*ApproveRequest)(nil), // 10: examples.erc20_service.ApproveRequest 1062 (*ApproveResponse)(nil), // 11: examples.erc20_service.ApproveResponse 1063 (*TransferFromRequest)(nil), // 12: examples.erc20_service.TransferFromRequest 1064 (*TransferEvent)(nil), // 13: examples.erc20_service.TransferEvent 1065 (*ApprovalEvent)(nil), // 14: examples.erc20_service.ApprovalEvent 1066 (*emptypb.Empty)(nil), // 15: google.protobuf.Empty 1067 } 1068 var file_erc20_service_erc20_proto_depIdxs = []int32{ 1069 15, // 0: examples.erc20_service.ERC20.Name:input_type -> google.protobuf.Empty 1070 15, // 1: examples.erc20_service.ERC20.Symbol:input_type -> google.protobuf.Empty 1071 15, // 2: examples.erc20_service.ERC20.Decimals:input_type -> google.protobuf.Empty 1072 15, // 3: examples.erc20_service.ERC20.TotalSupply:input_type -> google.protobuf.Empty 1073 4, // 4: examples.erc20_service.ERC20.BalanceOf:input_type -> examples.erc20_service.BalanceOfRequest 1074 6, // 5: examples.erc20_service.ERC20.Transfer:input_type -> examples.erc20_service.TransferRequest 1075 8, // 6: examples.erc20_service.ERC20.Allowance:input_type -> examples.erc20_service.AllowanceRequest 1076 10, // 7: examples.erc20_service.ERC20.Approve:input_type -> examples.erc20_service.ApproveRequest 1077 12, // 8: examples.erc20_service.ERC20.TransferFrom:input_type -> examples.erc20_service.TransferFromRequest 1078 0, // 9: examples.erc20_service.ERC20.Name:output_type -> examples.erc20_service.NameResponse 1079 1, // 10: examples.erc20_service.ERC20.Symbol:output_type -> examples.erc20_service.SymbolResponse 1080 2, // 11: examples.erc20_service.ERC20.Decimals:output_type -> examples.erc20_service.DecimalsResponse 1081 3, // 12: examples.erc20_service.ERC20.TotalSupply:output_type -> examples.erc20_service.TotalSupplyResponse 1082 5, // 13: examples.erc20_service.ERC20.BalanceOf:output_type -> examples.erc20_service.BalanceOfResponse 1083 7, // 14: examples.erc20_service.ERC20.Transfer:output_type -> examples.erc20_service.TransferResponse 1084 9, // 15: examples.erc20_service.ERC20.Allowance:output_type -> examples.erc20_service.AllowanceResponse 1085 11, // 16: examples.erc20_service.ERC20.Approve:output_type -> examples.erc20_service.ApproveResponse 1086 7, // 17: examples.erc20_service.ERC20.TransferFrom:output_type -> examples.erc20_service.TransferResponse 1087 9, // [9:18] is the sub-list for method output_type 1088 0, // [0:9] is the sub-list for method input_type 1089 0, // [0:0] is the sub-list for extension type_name 1090 0, // [0:0] is the sub-list for extension extendee 1091 0, // [0:0] is the sub-list for field type_name 1092 } 1093 1094 func init() { file_erc20_service_erc20_proto_init() } 1095 func file_erc20_service_erc20_proto_init() { 1096 if File_erc20_service_erc20_proto != nil { 1097 return 1098 } 1099 if !protoimpl.UnsafeEnabled { 1100 file_erc20_service_erc20_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 1101 switch v := v.(*NameResponse); i { 1102 case 0: 1103 return &v.state 1104 case 1: 1105 return &v.sizeCache 1106 case 2: 1107 return &v.unknownFields 1108 default: 1109 return nil 1110 } 1111 } 1112 file_erc20_service_erc20_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 1113 switch v := v.(*SymbolResponse); i { 1114 case 0: 1115 return &v.state 1116 case 1: 1117 return &v.sizeCache 1118 case 2: 1119 return &v.unknownFields 1120 default: 1121 return nil 1122 } 1123 } 1124 file_erc20_service_erc20_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { 1125 switch v := v.(*DecimalsResponse); i { 1126 case 0: 1127 return &v.state 1128 case 1: 1129 return &v.sizeCache 1130 case 2: 1131 return &v.unknownFields 1132 default: 1133 return nil 1134 } 1135 } 1136 file_erc20_service_erc20_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { 1137 switch v := v.(*TotalSupplyResponse); i { 1138 case 0: 1139 return &v.state 1140 case 1: 1141 return &v.sizeCache 1142 case 2: 1143 return &v.unknownFields 1144 default: 1145 return nil 1146 } 1147 } 1148 file_erc20_service_erc20_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { 1149 switch v := v.(*BalanceOfRequest); i { 1150 case 0: 1151 return &v.state 1152 case 1: 1153 return &v.sizeCache 1154 case 2: 1155 return &v.unknownFields 1156 default: 1157 return nil 1158 } 1159 } 1160 file_erc20_service_erc20_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { 1161 switch v := v.(*BalanceOfResponse); i { 1162 case 0: 1163 return &v.state 1164 case 1: 1165 return &v.sizeCache 1166 case 2: 1167 return &v.unknownFields 1168 default: 1169 return nil 1170 } 1171 } 1172 file_erc20_service_erc20_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { 1173 switch v := v.(*TransferRequest); i { 1174 case 0: 1175 return &v.state 1176 case 1: 1177 return &v.sizeCache 1178 case 2: 1179 return &v.unknownFields 1180 default: 1181 return nil 1182 } 1183 } 1184 file_erc20_service_erc20_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { 1185 switch v := v.(*TransferResponse); i { 1186 case 0: 1187 return &v.state 1188 case 1: 1189 return &v.sizeCache 1190 case 2: 1191 return &v.unknownFields 1192 default: 1193 return nil 1194 } 1195 } 1196 file_erc20_service_erc20_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { 1197 switch v := v.(*AllowanceRequest); i { 1198 case 0: 1199 return &v.state 1200 case 1: 1201 return &v.sizeCache 1202 case 2: 1203 return &v.unknownFields 1204 default: 1205 return nil 1206 } 1207 } 1208 file_erc20_service_erc20_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { 1209 switch v := v.(*AllowanceResponse); i { 1210 case 0: 1211 return &v.state 1212 case 1: 1213 return &v.sizeCache 1214 case 2: 1215 return &v.unknownFields 1216 default: 1217 return nil 1218 } 1219 } 1220 file_erc20_service_erc20_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { 1221 switch v := v.(*ApproveRequest); i { 1222 case 0: 1223 return &v.state 1224 case 1: 1225 return &v.sizeCache 1226 case 2: 1227 return &v.unknownFields 1228 default: 1229 return nil 1230 } 1231 } 1232 file_erc20_service_erc20_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { 1233 switch v := v.(*ApproveResponse); i { 1234 case 0: 1235 return &v.state 1236 case 1: 1237 return &v.sizeCache 1238 case 2: 1239 return &v.unknownFields 1240 default: 1241 return nil 1242 } 1243 } 1244 file_erc20_service_erc20_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { 1245 switch v := v.(*TransferFromRequest); i { 1246 case 0: 1247 return &v.state 1248 case 1: 1249 return &v.sizeCache 1250 case 2: 1251 return &v.unknownFields 1252 default: 1253 return nil 1254 } 1255 } 1256 file_erc20_service_erc20_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { 1257 switch v := v.(*TransferEvent); i { 1258 case 0: 1259 return &v.state 1260 case 1: 1261 return &v.sizeCache 1262 case 2: 1263 return &v.unknownFields 1264 default: 1265 return nil 1266 } 1267 } 1268 file_erc20_service_erc20_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { 1269 switch v := v.(*ApprovalEvent); i { 1270 case 0: 1271 return &v.state 1272 case 1: 1273 return &v.sizeCache 1274 case 2: 1275 return &v.unknownFields 1276 default: 1277 return nil 1278 } 1279 } 1280 } 1281 type x struct{} 1282 out := protoimpl.TypeBuilder{ 1283 File: protoimpl.DescBuilder{ 1284 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 1285 RawDescriptor: file_erc20_service_erc20_proto_rawDesc, 1286 NumEnums: 0, 1287 NumMessages: 15, 1288 NumExtensions: 0, 1289 NumServices: 1, 1290 }, 1291 GoTypes: file_erc20_service_erc20_proto_goTypes, 1292 DependencyIndexes: file_erc20_service_erc20_proto_depIdxs, 1293 MessageInfos: file_erc20_service_erc20_proto_msgTypes, 1294 }.Build() 1295 File_erc20_service_erc20_proto = out.File 1296 file_erc20_service_erc20_proto_rawDesc = nil 1297 file_erc20_service_erc20_proto_goTypes = nil 1298 file_erc20_service_erc20_proto_depIdxs = nil 1299 } 1300 1301 // Reference imports to suppress errors if they are not otherwise used. 1302 var _ context.Context 1303 var _ grpc.ClientConnInterface 1304 1305 // This is a compile-time assertion to ensure that this generated file 1306 // is compatible with the grpc package it is being compiled against. 1307 const _ = grpc.SupportPackageIsVersion6 1308 1309 // ERC20Client is the client API for ERC20 service. 1310 // 1311 // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. 1312 type ERC20Client interface { 1313 // Returns the name of the token. 1314 Name(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*NameResponse, error) 1315 // Returns the symbol of the token, usually a shorter version of the name. 1316 Symbol(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*SymbolResponse, error) 1317 // Returns the number of decimals used to get its user representation. 1318 // For example, if decimals equals 2, a balance of 505 tokens should be displayed to a user as 5,05 (505 / 10 ** 2). 1319 Decimals(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*DecimalsResponse, error) 1320 // Returns the amount of tokens in existence. 1321 TotalSupply(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*TotalSupplyResponse, error) 1322 // Returns the amount of tokens owned by account. 1323 BalanceOf(ctx context.Context, in *BalanceOfRequest, opts ...grpc.CallOption) (*BalanceOfResponse, error) 1324 // Moves amount tokens from the caller’s account to recipient. 1325 // Returns a boolean value indicating whether the operation succeeded. 1326 Transfer(ctx context.Context, in *TransferRequest, opts ...grpc.CallOption) (*TransferResponse, error) 1327 // Returns the remaining number of tokens that spender will be allowed to spend on behalf of owner through transfersender. 1328 // This is zero by default. 1329 Allowance(ctx context.Context, in *AllowanceRequest, opts ...grpc.CallOption) (*AllowanceResponse, error) 1330 // Sets amount as the allowance of spender over the caller’s tokens. 1331 // Emits an ApprovalEvent 1332 Approve(ctx context.Context, in *ApproveRequest, opts ...grpc.CallOption) (*ApproveResponse, error) 1333 // Moves amount tokens from sender to recipient using the allowance mechanism. 1334 // Amount is then deducted from the caller’s allowance. 1335 // Emits TransferEvent 1336 TransferFrom(ctx context.Context, in *TransferFromRequest, opts ...grpc.CallOption) (*TransferResponse, error) 1337 } 1338 1339 type eRC20Client struct { 1340 cc grpc.ClientConnInterface 1341 } 1342 1343 func NewERC20Client(cc grpc.ClientConnInterface) ERC20Client { 1344 return &eRC20Client{cc} 1345 } 1346 1347 func (c *eRC20Client) Name(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*NameResponse, error) { 1348 out := new(NameResponse) 1349 err := c.cc.Invoke(ctx, "/examples.erc20_service.ERC20/Name", in, out, opts...) 1350 if err != nil { 1351 return nil, err 1352 } 1353 return out, nil 1354 } 1355 1356 func (c *eRC20Client) Symbol(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*SymbolResponse, error) { 1357 out := new(SymbolResponse) 1358 err := c.cc.Invoke(ctx, "/examples.erc20_service.ERC20/Symbol", in, out, opts...) 1359 if err != nil { 1360 return nil, err 1361 } 1362 return out, nil 1363 } 1364 1365 func (c *eRC20Client) Decimals(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*DecimalsResponse, error) { 1366 out := new(DecimalsResponse) 1367 err := c.cc.Invoke(ctx, "/examples.erc20_service.ERC20/Decimals", in, out, opts...) 1368 if err != nil { 1369 return nil, err 1370 } 1371 return out, nil 1372 } 1373 1374 func (c *eRC20Client) TotalSupply(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*TotalSupplyResponse, error) { 1375 out := new(TotalSupplyResponse) 1376 err := c.cc.Invoke(ctx, "/examples.erc20_service.ERC20/TotalSupply", in, out, opts...) 1377 if err != nil { 1378 return nil, err 1379 } 1380 return out, nil 1381 } 1382 1383 func (c *eRC20Client) BalanceOf(ctx context.Context, in *BalanceOfRequest, opts ...grpc.CallOption) (*BalanceOfResponse, error) { 1384 out := new(BalanceOfResponse) 1385 err := c.cc.Invoke(ctx, "/examples.erc20_service.ERC20/BalanceOf", in, out, opts...) 1386 if err != nil { 1387 return nil, err 1388 } 1389 return out, nil 1390 } 1391 1392 func (c *eRC20Client) Transfer(ctx context.Context, in *TransferRequest, opts ...grpc.CallOption) (*TransferResponse, error) { 1393 out := new(TransferResponse) 1394 err := c.cc.Invoke(ctx, "/examples.erc20_service.ERC20/Transfer", in, out, opts...) 1395 if err != nil { 1396 return nil, err 1397 } 1398 return out, nil 1399 } 1400 1401 func (c *eRC20Client) Allowance(ctx context.Context, in *AllowanceRequest, opts ...grpc.CallOption) (*AllowanceResponse, error) { 1402 out := new(AllowanceResponse) 1403 err := c.cc.Invoke(ctx, "/examples.erc20_service.ERC20/Allowance", in, out, opts...) 1404 if err != nil { 1405 return nil, err 1406 } 1407 return out, nil 1408 } 1409 1410 func (c *eRC20Client) Approve(ctx context.Context, in *ApproveRequest, opts ...grpc.CallOption) (*ApproveResponse, error) { 1411 out := new(ApproveResponse) 1412 err := c.cc.Invoke(ctx, "/examples.erc20_service.ERC20/Approve", in, out, opts...) 1413 if err != nil { 1414 return nil, err 1415 } 1416 return out, nil 1417 } 1418 1419 func (c *eRC20Client) TransferFrom(ctx context.Context, in *TransferFromRequest, opts ...grpc.CallOption) (*TransferResponse, error) { 1420 out := new(TransferResponse) 1421 err := c.cc.Invoke(ctx, "/examples.erc20_service.ERC20/TransferFrom", in, out, opts...) 1422 if err != nil { 1423 return nil, err 1424 } 1425 return out, nil 1426 } 1427 1428 // ERC20Server is the server API for ERC20 service. 1429 type ERC20Server interface { 1430 // Returns the name of the token. 1431 Name(context.Context, *emptypb.Empty) (*NameResponse, error) 1432 // Returns the symbol of the token, usually a shorter version of the name. 1433 Symbol(context.Context, *emptypb.Empty) (*SymbolResponse, error) 1434 // Returns the number of decimals used to get its user representation. 1435 // For example, if decimals equals 2, a balance of 505 tokens should be displayed to a user as 5,05 (505 / 10 ** 2). 1436 Decimals(context.Context, *emptypb.Empty) (*DecimalsResponse, error) 1437 // Returns the amount of tokens in existence. 1438 TotalSupply(context.Context, *emptypb.Empty) (*TotalSupplyResponse, error) 1439 // Returns the amount of tokens owned by account. 1440 BalanceOf(context.Context, *BalanceOfRequest) (*BalanceOfResponse, error) 1441 // Moves amount tokens from the caller’s account to recipient. 1442 // Returns a boolean value indicating whether the operation succeeded. 1443 Transfer(context.Context, *TransferRequest) (*TransferResponse, error) 1444 // Returns the remaining number of tokens that spender will be allowed to spend on behalf of owner through transfersender. 1445 // This is zero by default. 1446 Allowance(context.Context, *AllowanceRequest) (*AllowanceResponse, error) 1447 // Sets amount as the allowance of spender over the caller’s tokens. 1448 // Emits an ApprovalEvent 1449 Approve(context.Context, *ApproveRequest) (*ApproveResponse, error) 1450 // Moves amount tokens from sender to recipient using the allowance mechanism. 1451 // Amount is then deducted from the caller’s allowance. 1452 // Emits TransferEvent 1453 TransferFrom(context.Context, *TransferFromRequest) (*TransferResponse, error) 1454 } 1455 1456 // UnimplementedERC20Server can be embedded to have forward compatible implementations. 1457 type UnimplementedERC20Server struct { 1458 } 1459 1460 func (*UnimplementedERC20Server) Name(context.Context, *emptypb.Empty) (*NameResponse, error) { 1461 return nil, status.Errorf(codes.Unimplemented, "method Name not implemented") 1462 } 1463 func (*UnimplementedERC20Server) Symbol(context.Context, *emptypb.Empty) (*SymbolResponse, error) { 1464 return nil, status.Errorf(codes.Unimplemented, "method Symbol not implemented") 1465 } 1466 func (*UnimplementedERC20Server) Decimals(context.Context, *emptypb.Empty) (*DecimalsResponse, error) { 1467 return nil, status.Errorf(codes.Unimplemented, "method Decimals not implemented") 1468 } 1469 func (*UnimplementedERC20Server) TotalSupply(context.Context, *emptypb.Empty) (*TotalSupplyResponse, error) { 1470 return nil, status.Errorf(codes.Unimplemented, "method TotalSupply not implemented") 1471 } 1472 func (*UnimplementedERC20Server) BalanceOf(context.Context, *BalanceOfRequest) (*BalanceOfResponse, error) { 1473 return nil, status.Errorf(codes.Unimplemented, "method BalanceOf not implemented") 1474 } 1475 func (*UnimplementedERC20Server) Transfer(context.Context, *TransferRequest) (*TransferResponse, error) { 1476 return nil, status.Errorf(codes.Unimplemented, "method Transfer not implemented") 1477 } 1478 func (*UnimplementedERC20Server) Allowance(context.Context, *AllowanceRequest) (*AllowanceResponse, error) { 1479 return nil, status.Errorf(codes.Unimplemented, "method Allowance not implemented") 1480 } 1481 func (*UnimplementedERC20Server) Approve(context.Context, *ApproveRequest) (*ApproveResponse, error) { 1482 return nil, status.Errorf(codes.Unimplemented, "method Approve not implemented") 1483 } 1484 func (*UnimplementedERC20Server) TransferFrom(context.Context, *TransferFromRequest) (*TransferResponse, error) { 1485 return nil, status.Errorf(codes.Unimplemented, "method TransferFrom not implemented") 1486 } 1487 1488 func RegisterERC20Server(s *grpc.Server, srv ERC20Server) { 1489 s.RegisterService(&_ERC20_serviceDesc, srv) 1490 } 1491 1492 func _ERC20_Name_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1493 in := new(emptypb.Empty) 1494 if err := dec(in); err != nil { 1495 return nil, err 1496 } 1497 if interceptor == nil { 1498 return srv.(ERC20Server).Name(ctx, in) 1499 } 1500 info := &grpc.UnaryServerInfo{ 1501 Server: srv, 1502 FullMethod: "/examples.erc20_service.ERC20/Name", 1503 } 1504 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1505 return srv.(ERC20Server).Name(ctx, req.(*emptypb.Empty)) 1506 } 1507 return interceptor(ctx, in, info, handler) 1508 } 1509 1510 func _ERC20_Symbol_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1511 in := new(emptypb.Empty) 1512 if err := dec(in); err != nil { 1513 return nil, err 1514 } 1515 if interceptor == nil { 1516 return srv.(ERC20Server).Symbol(ctx, in) 1517 } 1518 info := &grpc.UnaryServerInfo{ 1519 Server: srv, 1520 FullMethod: "/examples.erc20_service.ERC20/Symbol", 1521 } 1522 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1523 return srv.(ERC20Server).Symbol(ctx, req.(*emptypb.Empty)) 1524 } 1525 return interceptor(ctx, in, info, handler) 1526 } 1527 1528 func _ERC20_Decimals_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1529 in := new(emptypb.Empty) 1530 if err := dec(in); err != nil { 1531 return nil, err 1532 } 1533 if interceptor == nil { 1534 return srv.(ERC20Server).Decimals(ctx, in) 1535 } 1536 info := &grpc.UnaryServerInfo{ 1537 Server: srv, 1538 FullMethod: "/examples.erc20_service.ERC20/Decimals", 1539 } 1540 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1541 return srv.(ERC20Server).Decimals(ctx, req.(*emptypb.Empty)) 1542 } 1543 return interceptor(ctx, in, info, handler) 1544 } 1545 1546 func _ERC20_TotalSupply_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1547 in := new(emptypb.Empty) 1548 if err := dec(in); err != nil { 1549 return nil, err 1550 } 1551 if interceptor == nil { 1552 return srv.(ERC20Server).TotalSupply(ctx, in) 1553 } 1554 info := &grpc.UnaryServerInfo{ 1555 Server: srv, 1556 FullMethod: "/examples.erc20_service.ERC20/TotalSupply", 1557 } 1558 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1559 return srv.(ERC20Server).TotalSupply(ctx, req.(*emptypb.Empty)) 1560 } 1561 return interceptor(ctx, in, info, handler) 1562 } 1563 1564 func _ERC20_BalanceOf_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1565 in := new(BalanceOfRequest) 1566 if err := dec(in); err != nil { 1567 return nil, err 1568 } 1569 if interceptor == nil { 1570 return srv.(ERC20Server).BalanceOf(ctx, in) 1571 } 1572 info := &grpc.UnaryServerInfo{ 1573 Server: srv, 1574 FullMethod: "/examples.erc20_service.ERC20/BalanceOf", 1575 } 1576 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1577 return srv.(ERC20Server).BalanceOf(ctx, req.(*BalanceOfRequest)) 1578 } 1579 return interceptor(ctx, in, info, handler) 1580 } 1581 1582 func _ERC20_Transfer_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1583 in := new(TransferRequest) 1584 if err := dec(in); err != nil { 1585 return nil, err 1586 } 1587 if interceptor == nil { 1588 return srv.(ERC20Server).Transfer(ctx, in) 1589 } 1590 info := &grpc.UnaryServerInfo{ 1591 Server: srv, 1592 FullMethod: "/examples.erc20_service.ERC20/Transfer", 1593 } 1594 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1595 return srv.(ERC20Server).Transfer(ctx, req.(*TransferRequest)) 1596 } 1597 return interceptor(ctx, in, info, handler) 1598 } 1599 1600 func _ERC20_Allowance_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1601 in := new(AllowanceRequest) 1602 if err := dec(in); err != nil { 1603 return nil, err 1604 } 1605 if interceptor == nil { 1606 return srv.(ERC20Server).Allowance(ctx, in) 1607 } 1608 info := &grpc.UnaryServerInfo{ 1609 Server: srv, 1610 FullMethod: "/examples.erc20_service.ERC20/Allowance", 1611 } 1612 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1613 return srv.(ERC20Server).Allowance(ctx, req.(*AllowanceRequest)) 1614 } 1615 return interceptor(ctx, in, info, handler) 1616 } 1617 1618 func _ERC20_Approve_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1619 in := new(ApproveRequest) 1620 if err := dec(in); err != nil { 1621 return nil, err 1622 } 1623 if interceptor == nil { 1624 return srv.(ERC20Server).Approve(ctx, in) 1625 } 1626 info := &grpc.UnaryServerInfo{ 1627 Server: srv, 1628 FullMethod: "/examples.erc20_service.ERC20/Approve", 1629 } 1630 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1631 return srv.(ERC20Server).Approve(ctx, req.(*ApproveRequest)) 1632 } 1633 return interceptor(ctx, in, info, handler) 1634 } 1635 1636 func _ERC20_TransferFrom_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1637 in := new(TransferFromRequest) 1638 if err := dec(in); err != nil { 1639 return nil, err 1640 } 1641 if interceptor == nil { 1642 return srv.(ERC20Server).TransferFrom(ctx, in) 1643 } 1644 info := &grpc.UnaryServerInfo{ 1645 Server: srv, 1646 FullMethod: "/examples.erc20_service.ERC20/TransferFrom", 1647 } 1648 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1649 return srv.(ERC20Server).TransferFrom(ctx, req.(*TransferFromRequest)) 1650 } 1651 return interceptor(ctx, in, info, handler) 1652 } 1653 1654 var _ERC20_serviceDesc = grpc.ServiceDesc{ 1655 ServiceName: "examples.erc20_service.ERC20", 1656 HandlerType: (*ERC20Server)(nil), 1657 Methods: []grpc.MethodDesc{ 1658 { 1659 MethodName: "Name", 1660 Handler: _ERC20_Name_Handler, 1661 }, 1662 { 1663 MethodName: "Symbol", 1664 Handler: _ERC20_Symbol_Handler, 1665 }, 1666 { 1667 MethodName: "Decimals", 1668 Handler: _ERC20_Decimals_Handler, 1669 }, 1670 { 1671 MethodName: "TotalSupply", 1672 Handler: _ERC20_TotalSupply_Handler, 1673 }, 1674 { 1675 MethodName: "BalanceOf", 1676 Handler: _ERC20_BalanceOf_Handler, 1677 }, 1678 { 1679 MethodName: "Transfer", 1680 Handler: _ERC20_Transfer_Handler, 1681 }, 1682 { 1683 MethodName: "Allowance", 1684 Handler: _ERC20_Allowance_Handler, 1685 }, 1686 { 1687 MethodName: "Approve", 1688 Handler: _ERC20_Approve_Handler, 1689 }, 1690 { 1691 MethodName: "TransferFrom", 1692 Handler: _ERC20_TransferFrom_Handler, 1693 }, 1694 }, 1695 Streams: []grpc.StreamDesc{}, 1696 Metadata: "erc20_service/erc20.proto", 1697 }