github.com/igggame/nebulas-go@v2.1.0+incompatible/rpc/pb/rpc.pb.go (about) 1 // Code generated by protoc-gen-gogo. DO NOT EDIT. 2 // source: rpc.proto 3 4 /* 5 Package rpcpb is a generated protocol buffer package. 6 7 It is generated from these files: 8 rpc.proto 9 10 It has these top-level messages: 11 SubscribeRequest 12 SubscribeResponse 13 NonParamsRequest 14 NodeInfoResponse 15 RouteTable 16 GetNebStateResponse 17 AccountsResponse 18 GetAccountStateRequest 19 GetAccountStateResponse 20 CallResponse 21 ByBlockHeightRequest 22 GetDynastyResponse 23 TransactionRequest 24 ContractRequest 25 SendRawTransactionRequest 26 SendTransactionResponse 27 GetBlockByHashRequest 28 GetBlockByHeightRequest 29 GetTransactionByHashRequest 30 GetTransactionByContractRequest 31 BlockResponse 32 TransactionResponse 33 NewAccountRequest 34 NewAccountResponse 35 UnlockAccountRequest 36 UnlockAccountResponse 37 LockAccountRequest 38 LockAccountResponse 39 SignHashRequest 40 SignHashResponse 41 GenerateRandomSeedRequest 42 GenerateRandomSeedResponse 43 SignTransactionPassphraseRequest 44 SignTransactionPassphraseResponse 45 SendTransactionPassphraseRequest 46 GasPriceResponse 47 HashRequest 48 GasResponse 49 EventsResponse 50 Event 51 PprofRequest 52 PprofResponse 53 GetConfigResponse 54 VerifySignatureRequest 55 VerifySignatureResponse 56 GetNRByAddressRequest 57 GetNRHandleRequest 58 GetNRHandleResponse 59 GetNRListByHandleRequest 60 GetNRListResponse 61 NRItem 62 GetDIPListRequest 63 GetDIPListResponse 64 DIPItem 65 */ 66 package rpcpb 67 68 import proto "github.com/gogo/protobuf/proto" 69 import fmt "fmt" 70 import math "math" 71 import _ "google.golang.org/genproto/googleapis/api/annotations" 72 import consensuspb "github.com/nebulasio/go-nebulas/consensus/pb" 73 import nebletpb "github.com/nebulasio/go-nebulas/neblet/pb" 74 75 import ( 76 context "golang.org/x/net/context" 77 grpc "google.golang.org/grpc" 78 ) 79 80 // Reference imports to suppress errors if they are not otherwise used. 81 var _ = proto.Marshal 82 var _ = fmt.Errorf 83 var _ = math.Inf 84 85 // This is a compile-time assertion to ensure that this generated file 86 // is compatible with the proto package it is being compiled against. 87 // A compilation error at this line likely means your copy of the 88 // proto package needs to be updated. 89 const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package 90 91 // Request message of Subscribe rpc 92 type SubscribeRequest struct { 93 Topics []string `protobuf:"bytes,1,rep,name=topics" json:"topics,omitempty"` 94 } 95 96 func (m *SubscribeRequest) Reset() { *m = SubscribeRequest{} } 97 func (m *SubscribeRequest) String() string { return proto.CompactTextString(m) } 98 func (*SubscribeRequest) ProtoMessage() {} 99 func (*SubscribeRequest) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{0} } 100 101 func (m *SubscribeRequest) GetTopics() []string { 102 if m != nil { 103 return m.Topics 104 } 105 return nil 106 } 107 108 // Request message of Subscribe rpc 109 type SubscribeResponse struct { 110 Topic string `protobuf:"bytes,1,opt,name=topic,proto3" json:"topic,omitempty"` 111 Data string `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` 112 } 113 114 func (m *SubscribeResponse) Reset() { *m = SubscribeResponse{} } 115 func (m *SubscribeResponse) String() string { return proto.CompactTextString(m) } 116 func (*SubscribeResponse) ProtoMessage() {} 117 func (*SubscribeResponse) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{1} } 118 119 func (m *SubscribeResponse) GetTopic() string { 120 if m != nil { 121 return m.Topic 122 } 123 return "" 124 } 125 126 func (m *SubscribeResponse) GetData() string { 127 if m != nil { 128 return m.Data 129 } 130 return "" 131 } 132 133 // Request message of non params. 134 type NonParamsRequest struct { 135 } 136 137 func (m *NonParamsRequest) Reset() { *m = NonParamsRequest{} } 138 func (m *NonParamsRequest) String() string { return proto.CompactTextString(m) } 139 func (*NonParamsRequest) ProtoMessage() {} 140 func (*NonParamsRequest) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{2} } 141 142 // Response message of node info. 143 type NodeInfoResponse struct { 144 // the node ID. 145 Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` 146 // the block chainID. 147 ChainId uint32 `protobuf:"varint,2,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"` 148 // coinbase 149 Coinbase string `protobuf:"bytes,3,opt,name=coinbase,proto3" json:"coinbase,omitempty"` 150 // Number of peers currenly connected. 151 PeerCount uint32 `protobuf:"varint,4,opt,name=peer_count,json=peerCount,proto3" json:"peer_count,omitempty"` 152 // the node synchronized status. 153 Synchronized bool `protobuf:"varint,5,opt,name=synchronized,proto3" json:"synchronized,omitempty"` 154 // the node route table bucket size. 155 BucketSize int32 `protobuf:"varint,6,opt,name=bucket_size,json=bucketSize,proto3" json:"bucket_size,omitempty"` 156 // the network protocol version. 157 ProtocolVersion string `protobuf:"bytes,10,opt,name=protocol_version,json=protocolVersion,proto3" json:"protocol_version,omitempty"` 158 RouteTable []*RouteTable `protobuf:"bytes,11,rep,name=route_table,json=routeTable" json:"route_table,omitempty"` 159 } 160 161 func (m *NodeInfoResponse) Reset() { *m = NodeInfoResponse{} } 162 func (m *NodeInfoResponse) String() string { return proto.CompactTextString(m) } 163 func (*NodeInfoResponse) ProtoMessage() {} 164 func (*NodeInfoResponse) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{3} } 165 166 func (m *NodeInfoResponse) GetId() string { 167 if m != nil { 168 return m.Id 169 } 170 return "" 171 } 172 173 func (m *NodeInfoResponse) GetChainId() uint32 { 174 if m != nil { 175 return m.ChainId 176 } 177 return 0 178 } 179 180 func (m *NodeInfoResponse) GetCoinbase() string { 181 if m != nil { 182 return m.Coinbase 183 } 184 return "" 185 } 186 187 func (m *NodeInfoResponse) GetPeerCount() uint32 { 188 if m != nil { 189 return m.PeerCount 190 } 191 return 0 192 } 193 194 func (m *NodeInfoResponse) GetSynchronized() bool { 195 if m != nil { 196 return m.Synchronized 197 } 198 return false 199 } 200 201 func (m *NodeInfoResponse) GetBucketSize() int32 { 202 if m != nil { 203 return m.BucketSize 204 } 205 return 0 206 } 207 208 func (m *NodeInfoResponse) GetProtocolVersion() string { 209 if m != nil { 210 return m.ProtocolVersion 211 } 212 return "" 213 } 214 215 func (m *NodeInfoResponse) GetRouteTable() []*RouteTable { 216 if m != nil { 217 return m.RouteTable 218 } 219 return nil 220 } 221 222 type RouteTable struct { 223 Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` 224 Address []string `protobuf:"bytes,2,rep,name=address" json:"address,omitempty"` 225 } 226 227 func (m *RouteTable) Reset() { *m = RouteTable{} } 228 func (m *RouteTable) String() string { return proto.CompactTextString(m) } 229 func (*RouteTable) ProtoMessage() {} 230 func (*RouteTable) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{4} } 231 232 func (m *RouteTable) GetId() string { 233 if m != nil { 234 return m.Id 235 } 236 return "" 237 } 238 239 func (m *RouteTable) GetAddress() []string { 240 if m != nil { 241 return m.Address 242 } 243 return nil 244 } 245 246 // Response message of GetNebState rpc. 247 type GetNebStateResponse struct { 248 // Block chain id 249 ChainId uint32 `protobuf:"varint,1,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"` 250 // Current neb tail hash 251 Tail string `protobuf:"bytes,2,opt,name=tail,proto3" json:"tail,omitempty"` 252 // Current neb lib hash 253 Lib string `protobuf:"bytes,3,opt,name=lib,proto3" json:"lib,omitempty"` 254 // Current neb tail block height 255 Height uint64 `protobuf:"varint,4,opt,name=height,proto3" json:"height,omitempty"` 256 // The current neb protocol version. 257 ProtocolVersion string `protobuf:"bytes,6,opt,name=protocol_version,json=protocolVersion,proto3" json:"protocol_version,omitempty"` 258 // The peer sync status. 259 Synchronized bool `protobuf:"varint,7,opt,name=synchronized,proto3" json:"synchronized,omitempty"` 260 // neb version 261 Version string `protobuf:"bytes,8,opt,name=version,proto3" json:"version,omitempty"` 262 } 263 264 func (m *GetNebStateResponse) Reset() { *m = GetNebStateResponse{} } 265 func (m *GetNebStateResponse) String() string { return proto.CompactTextString(m) } 266 func (*GetNebStateResponse) ProtoMessage() {} 267 func (*GetNebStateResponse) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{5} } 268 269 func (m *GetNebStateResponse) GetChainId() uint32 { 270 if m != nil { 271 return m.ChainId 272 } 273 return 0 274 } 275 276 func (m *GetNebStateResponse) GetTail() string { 277 if m != nil { 278 return m.Tail 279 } 280 return "" 281 } 282 283 func (m *GetNebStateResponse) GetLib() string { 284 if m != nil { 285 return m.Lib 286 } 287 return "" 288 } 289 290 func (m *GetNebStateResponse) GetHeight() uint64 { 291 if m != nil { 292 return m.Height 293 } 294 return 0 295 } 296 297 func (m *GetNebStateResponse) GetProtocolVersion() string { 298 if m != nil { 299 return m.ProtocolVersion 300 } 301 return "" 302 } 303 304 func (m *GetNebStateResponse) GetSynchronized() bool { 305 if m != nil { 306 return m.Synchronized 307 } 308 return false 309 } 310 311 func (m *GetNebStateResponse) GetVersion() string { 312 if m != nil { 313 return m.Version 314 } 315 return "" 316 } 317 318 // Response message of Accounts rpc. 319 type AccountsResponse struct { 320 // Account list 321 Addresses []string `protobuf:"bytes,1,rep,name=addresses" json:"addresses,omitempty"` 322 } 323 324 func (m *AccountsResponse) Reset() { *m = AccountsResponse{} } 325 func (m *AccountsResponse) String() string { return proto.CompactTextString(m) } 326 func (*AccountsResponse) ProtoMessage() {} 327 func (*AccountsResponse) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{6} } 328 329 func (m *AccountsResponse) GetAddresses() []string { 330 if m != nil { 331 return m.Addresses 332 } 333 return nil 334 } 335 336 // Request message of GetAccountState rpc. 337 type GetAccountStateRequest struct { 338 // Hex string of the account addresss. 339 Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` 340 // block account state with height. If not specified, use 0 as tail height. 341 Height uint64 `protobuf:"varint,2,opt,name=height,proto3" json:"height,omitempty"` 342 } 343 344 func (m *GetAccountStateRequest) Reset() { *m = GetAccountStateRequest{} } 345 func (m *GetAccountStateRequest) String() string { return proto.CompactTextString(m) } 346 func (*GetAccountStateRequest) ProtoMessage() {} 347 func (*GetAccountStateRequest) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{7} } 348 349 func (m *GetAccountStateRequest) GetAddress() string { 350 if m != nil { 351 return m.Address 352 } 353 return "" 354 } 355 356 func (m *GetAccountStateRequest) GetHeight() uint64 { 357 if m != nil { 358 return m.Height 359 } 360 return 0 361 } 362 363 // Response message of GetAccountState rpc. 364 type GetAccountStateResponse struct { 365 // Current balance in unit of 1/(10^18) nas. 366 Balance string `protobuf:"bytes,1,opt,name=balance,proto3" json:"balance,omitempty"` 367 // Current transaction count. 368 Nonce uint64 `protobuf:"varint,2,opt,name=nonce,proto3" json:"nonce,omitempty"` 369 // Account type 370 Type uint32 `protobuf:"varint,3,opt,name=type,proto3" json:"type,omitempty"` 371 // Block height 372 Height uint64 `protobuf:"varint,4,opt,name=height,proto3" json:"height,omitempty"` 373 // Current sender pending tx count 374 Pending uint64 `protobuf:"varint,5,opt,name=pending,proto3" json:"pending,omitempty"` 375 } 376 377 func (m *GetAccountStateResponse) Reset() { *m = GetAccountStateResponse{} } 378 func (m *GetAccountStateResponse) String() string { return proto.CompactTextString(m) } 379 func (*GetAccountStateResponse) ProtoMessage() {} 380 func (*GetAccountStateResponse) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{8} } 381 382 func (m *GetAccountStateResponse) GetBalance() string { 383 if m != nil { 384 return m.Balance 385 } 386 return "" 387 } 388 389 func (m *GetAccountStateResponse) GetNonce() uint64 { 390 if m != nil { 391 return m.Nonce 392 } 393 return 0 394 } 395 396 func (m *GetAccountStateResponse) GetType() uint32 { 397 if m != nil { 398 return m.Type 399 } 400 return 0 401 } 402 403 func (m *GetAccountStateResponse) GetHeight() uint64 { 404 if m != nil { 405 return m.Height 406 } 407 return 0 408 } 409 410 func (m *GetAccountStateResponse) GetPending() uint64 { 411 if m != nil { 412 return m.Pending 413 } 414 return 0 415 } 416 417 // Response message of Call rpc. 418 type CallResponse struct { 419 // result of smart contract method call. 420 Result string `protobuf:"bytes,1,opt,name=result,proto3" json:"result,omitempty"` 421 // execute error 422 ExecuteErr string `protobuf:"bytes,2,opt,name=execute_err,json=executeErr,proto3" json:"execute_err,omitempty"` 423 // estimate gas used 424 EstimateGas string `protobuf:"bytes,3,opt,name=estimate_gas,json=estimateGas,proto3" json:"estimate_gas,omitempty"` 425 } 426 427 func (m *CallResponse) Reset() { *m = CallResponse{} } 428 func (m *CallResponse) String() string { return proto.CompactTextString(m) } 429 func (*CallResponse) ProtoMessage() {} 430 func (*CallResponse) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{9} } 431 432 func (m *CallResponse) GetResult() string { 433 if m != nil { 434 return m.Result 435 } 436 return "" 437 } 438 439 func (m *CallResponse) GetExecuteErr() string { 440 if m != nil { 441 return m.ExecuteErr 442 } 443 return "" 444 } 445 446 func (m *CallResponse) GetEstimateGas() string { 447 if m != nil { 448 return m.EstimateGas 449 } 450 return "" 451 } 452 453 // ByBlockHeightRequest message 454 type ByBlockHeightRequest struct { 455 Height uint64 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"` 456 } 457 458 func (m *ByBlockHeightRequest) Reset() { *m = ByBlockHeightRequest{} } 459 func (m *ByBlockHeightRequest) String() string { return proto.CompactTextString(m) } 460 func (*ByBlockHeightRequest) ProtoMessage() {} 461 func (*ByBlockHeightRequest) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{10} } 462 463 func (m *ByBlockHeightRequest) GetHeight() uint64 { 464 if m != nil { 465 return m.Height 466 } 467 return 0 468 } 469 470 // Response message of GetDynastyRequest rpc 471 type GetDynastyResponse struct { 472 Miners []string `protobuf:"bytes,1,rep,name=miners" json:"miners,omitempty"` 473 } 474 475 func (m *GetDynastyResponse) Reset() { *m = GetDynastyResponse{} } 476 func (m *GetDynastyResponse) String() string { return proto.CompactTextString(m) } 477 func (*GetDynastyResponse) ProtoMessage() {} 478 func (*GetDynastyResponse) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{11} } 479 480 func (m *GetDynastyResponse) GetMiners() []string { 481 if m != nil { 482 return m.Miners 483 } 484 return nil 485 } 486 487 // Request message of SendTransaction rpc. 488 type TransactionRequest struct { 489 // Hex string of the sender account addresss. 490 From string `protobuf:"bytes,1,opt,name=from,proto3" json:"from,omitempty"` 491 // Hex string of the receiver account addresss. 492 To string `protobuf:"bytes,2,opt,name=to,proto3" json:"to,omitempty"` 493 // Amount of value sending with this transaction. 494 Value string `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"` 495 // Transaction nonce. 496 Nonce uint64 `protobuf:"varint,4,opt,name=nonce,proto3" json:"nonce,omitempty"` 497 // gasPrice sending with this transaction. 498 GasPrice string `protobuf:"bytes,5,opt,name=gas_price,json=gasPrice,proto3" json:"gas_price,omitempty"` 499 // gasLimit sending with this transaction. 500 GasLimit string `protobuf:"bytes,6,opt,name=gas_limit,json=gasLimit,proto3" json:"gas_limit,omitempty"` 501 // contract sending with this transaction 502 Contract *ContractRequest `protobuf:"bytes,7,opt,name=contract" json:"contract,omitempty"` 503 // binary data for transaction 504 Binary []byte `protobuf:"bytes,10,opt,name=binary,proto3" json:"binary,omitempty"` 505 // protocol data for transaction 506 Protocol []byte `protobuf:"bytes,11,opt,name=protocol,proto3" json:"protocol,omitempty"` 507 // transaction payload type, enum:binary, deploy, call, protocol 508 Type string `protobuf:"bytes,20,opt,name=type,proto3" json:"type,omitempty"` 509 } 510 511 func (m *TransactionRequest) Reset() { *m = TransactionRequest{} } 512 func (m *TransactionRequest) String() string { return proto.CompactTextString(m) } 513 func (*TransactionRequest) ProtoMessage() {} 514 func (*TransactionRequest) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{12} } 515 516 func (m *TransactionRequest) GetFrom() string { 517 if m != nil { 518 return m.From 519 } 520 return "" 521 } 522 523 func (m *TransactionRequest) GetTo() string { 524 if m != nil { 525 return m.To 526 } 527 return "" 528 } 529 530 func (m *TransactionRequest) GetValue() string { 531 if m != nil { 532 return m.Value 533 } 534 return "" 535 } 536 537 func (m *TransactionRequest) GetNonce() uint64 { 538 if m != nil { 539 return m.Nonce 540 } 541 return 0 542 } 543 544 func (m *TransactionRequest) GetGasPrice() string { 545 if m != nil { 546 return m.GasPrice 547 } 548 return "" 549 } 550 551 func (m *TransactionRequest) GetGasLimit() string { 552 if m != nil { 553 return m.GasLimit 554 } 555 return "" 556 } 557 558 func (m *TransactionRequest) GetContract() *ContractRequest { 559 if m != nil { 560 return m.Contract 561 } 562 return nil 563 } 564 565 func (m *TransactionRequest) GetBinary() []byte { 566 if m != nil { 567 return m.Binary 568 } 569 return nil 570 } 571 572 func (m *TransactionRequest) GetProtocol() []byte { 573 if m != nil { 574 return m.Protocol 575 } 576 return nil 577 } 578 579 func (m *TransactionRequest) GetType() string { 580 if m != nil { 581 return m.Type 582 } 583 return "" 584 } 585 586 type ContractRequest struct { 587 // contract source code. 588 Source string `protobuf:"bytes,1,opt,name=source,proto3" json:"source,omitempty"` 589 // contract source type, support javascript and typescript 590 SourceType string `protobuf:"bytes,2,opt,name=source_type,json=sourceType,proto3" json:"source_type,omitempty"` 591 // call contract function name 592 Function string `protobuf:"bytes,3,opt,name=function,proto3" json:"function,omitempty"` 593 // the params of contract. 594 Args string `protobuf:"bytes,4,opt,name=args,proto3" json:"args,omitempty"` 595 } 596 597 func (m *ContractRequest) Reset() { *m = ContractRequest{} } 598 func (m *ContractRequest) String() string { return proto.CompactTextString(m) } 599 func (*ContractRequest) ProtoMessage() {} 600 func (*ContractRequest) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{13} } 601 602 func (m *ContractRequest) GetSource() string { 603 if m != nil { 604 return m.Source 605 } 606 return "" 607 } 608 609 func (m *ContractRequest) GetSourceType() string { 610 if m != nil { 611 return m.SourceType 612 } 613 return "" 614 } 615 616 func (m *ContractRequest) GetFunction() string { 617 if m != nil { 618 return m.Function 619 } 620 return "" 621 } 622 623 func (m *ContractRequest) GetArgs() string { 624 if m != nil { 625 return m.Args 626 } 627 return "" 628 } 629 630 // Request message of SendRawTransactionRequest rpc. 631 type SendRawTransactionRequest struct { 632 // Signed data of transaction 633 Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` 634 } 635 636 func (m *SendRawTransactionRequest) Reset() { *m = SendRawTransactionRequest{} } 637 func (m *SendRawTransactionRequest) String() string { return proto.CompactTextString(m) } 638 func (*SendRawTransactionRequest) ProtoMessage() {} 639 func (*SendRawTransactionRequest) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{14} } 640 641 func (m *SendRawTransactionRequest) GetData() []byte { 642 if m != nil { 643 return m.Data 644 } 645 return nil 646 } 647 648 // Response message of SendTransaction rpc. 649 type SendTransactionResponse struct { 650 // Hex string of transaction hash. 651 Txhash string `protobuf:"bytes,1,opt,name=txhash,proto3" json:"txhash,omitempty"` 652 // Hex string of contract address if transaction is deploy type 653 ContractAddress string `protobuf:"bytes,2,opt,name=contract_address,json=contractAddress,proto3" json:"contract_address,omitempty"` 654 } 655 656 func (m *SendTransactionResponse) Reset() { *m = SendTransactionResponse{} } 657 func (m *SendTransactionResponse) String() string { return proto.CompactTextString(m) } 658 func (*SendTransactionResponse) ProtoMessage() {} 659 func (*SendTransactionResponse) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{15} } 660 661 func (m *SendTransactionResponse) GetTxhash() string { 662 if m != nil { 663 return m.Txhash 664 } 665 return "" 666 } 667 668 func (m *SendTransactionResponse) GetContractAddress() string { 669 if m != nil { 670 return m.ContractAddress 671 } 672 return "" 673 } 674 675 // Request message of GetBlockByHash rpc. 676 type GetBlockByHashRequest struct { 677 // Hex string of block hash. 678 Hash string `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"` 679 // If true it returns the full transaction objects, if false only the hashes of the transactions. 680 FullFillTransaction bool `protobuf:"varint,2,opt,name=full_fill_transaction,json=fullFillTransaction,proto3" json:"full_fill_transaction,omitempty"` 681 } 682 683 func (m *GetBlockByHashRequest) Reset() { *m = GetBlockByHashRequest{} } 684 func (m *GetBlockByHashRequest) String() string { return proto.CompactTextString(m) } 685 func (*GetBlockByHashRequest) ProtoMessage() {} 686 func (*GetBlockByHashRequest) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{16} } 687 688 func (m *GetBlockByHashRequest) GetHash() string { 689 if m != nil { 690 return m.Hash 691 } 692 return "" 693 } 694 695 func (m *GetBlockByHashRequest) GetFullFillTransaction() bool { 696 if m != nil { 697 return m.FullFillTransaction 698 } 699 return false 700 } 701 702 // Request message of GetBlockByHeight rpc. 703 type GetBlockByHeightRequest struct { 704 // block height. 705 Height uint64 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"` 706 // If true it returns the full transaction objects, if false only the hashes of the transactions. 707 FullFillTransaction bool `protobuf:"varint,2,opt,name=full_fill_transaction,json=fullFillTransaction,proto3" json:"full_fill_transaction,omitempty"` 708 } 709 710 func (m *GetBlockByHeightRequest) Reset() { *m = GetBlockByHeightRequest{} } 711 func (m *GetBlockByHeightRequest) String() string { return proto.CompactTextString(m) } 712 func (*GetBlockByHeightRequest) ProtoMessage() {} 713 func (*GetBlockByHeightRequest) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{17} } 714 715 func (m *GetBlockByHeightRequest) GetHeight() uint64 { 716 if m != nil { 717 return m.Height 718 } 719 return 0 720 } 721 722 func (m *GetBlockByHeightRequest) GetFullFillTransaction() bool { 723 if m != nil { 724 return m.FullFillTransaction 725 } 726 return false 727 } 728 729 // Request message of GetTransactionByHash rpc. 730 type GetTransactionByHashRequest struct { 731 // Hex string of transaction hash. 732 Hash string `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"` 733 } 734 735 func (m *GetTransactionByHashRequest) Reset() { *m = GetTransactionByHashRequest{} } 736 func (m *GetTransactionByHashRequest) String() string { return proto.CompactTextString(m) } 737 func (*GetTransactionByHashRequest) ProtoMessage() {} 738 func (*GetTransactionByHashRequest) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{18} } 739 740 func (m *GetTransactionByHashRequest) GetHash() string { 741 if m != nil { 742 return m.Hash 743 } 744 return "" 745 } 746 747 // Request message of GetTransactionByContract rpc. 748 type GetTransactionByContractRequest struct { 749 // string of contract address. 750 Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` 751 } 752 753 func (m *GetTransactionByContractRequest) Reset() { *m = GetTransactionByContractRequest{} } 754 func (m *GetTransactionByContractRequest) String() string { return proto.CompactTextString(m) } 755 func (*GetTransactionByContractRequest) ProtoMessage() {} 756 func (*GetTransactionByContractRequest) Descriptor() ([]byte, []int) { 757 return fileDescriptorRpc, []int{19} 758 } 759 760 func (m *GetTransactionByContractRequest) GetAddress() string { 761 if m != nil { 762 return m.Address 763 } 764 return "" 765 } 766 767 // Response message of Block. 768 type BlockResponse struct { 769 // Hex string of block hash. 770 Hash string `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"` 771 // Hex string of block parent hash. 772 ParentHash string `protobuf:"bytes,2,opt,name=parent_hash,json=parentHash,proto3" json:"parent_hash,omitempty"` 773 // block height 774 Height uint64 `protobuf:"varint,3,opt,name=height,proto3" json:"height,omitempty"` 775 // block nonce 776 Nonce uint64 `protobuf:"varint,4,opt,name=nonce,proto3" json:"nonce,omitempty"` 777 // Hex string of coinbase address. 778 Coinbase string `protobuf:"bytes,5,opt,name=coinbase,proto3" json:"coinbase,omitempty"` 779 // block timestamp. 780 Timestamp int64 `protobuf:"varint,6,opt,name=timestamp,proto3" json:"timestamp,omitempty"` 781 // block chain id 782 ChainId uint32 `protobuf:"varint,7,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"` 783 // Hex string of state root. 784 StateRoot string `protobuf:"bytes,8,opt,name=state_root,json=stateRoot,proto3" json:"state_root,omitempty"` 785 // Hex string of txs root. 786 TxsRoot string `protobuf:"bytes,9,opt,name=txs_root,json=txsRoot,proto3" json:"txs_root,omitempty"` 787 // Hex string of event root. 788 EventsRoot string `protobuf:"bytes,10,opt,name=events_root,json=eventsRoot,proto3" json:"events_root,omitempty"` 789 // Hex string of consensus root. 790 ConsensusRoot *consensuspb.ConsensusRoot `protobuf:"bytes,11,opt,name=consensus_root,json=consensusRoot" json:"consensus_root,omitempty"` 791 // Miner 792 Miner string `protobuf:"bytes,12,opt,name=miner,proto3" json:"miner,omitempty"` 793 // Random seed 794 RandomSeed string `protobuf:"bytes,13,opt,name=randomSeed,proto3" json:"randomSeed,omitempty"` 795 // Random proof 796 RandomProof string `protobuf:"bytes,14,opt,name=randomProof,proto3" json:"randomProof,omitempty"` 797 // is finaliy 798 IsFinality bool `protobuf:"varint,15,opt,name=is_finality,json=isFinality,proto3" json:"is_finality,omitempty"` 799 // transaction slice 800 Transactions []*TransactionResponse `protobuf:"bytes,100,rep,name=transactions" json:"transactions,omitempty"` 801 } 802 803 func (m *BlockResponse) Reset() { *m = BlockResponse{} } 804 func (m *BlockResponse) String() string { return proto.CompactTextString(m) } 805 func (*BlockResponse) ProtoMessage() {} 806 func (*BlockResponse) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{20} } 807 808 func (m *BlockResponse) GetHash() string { 809 if m != nil { 810 return m.Hash 811 } 812 return "" 813 } 814 815 func (m *BlockResponse) GetParentHash() string { 816 if m != nil { 817 return m.ParentHash 818 } 819 return "" 820 } 821 822 func (m *BlockResponse) GetHeight() uint64 { 823 if m != nil { 824 return m.Height 825 } 826 return 0 827 } 828 829 func (m *BlockResponse) GetNonce() uint64 { 830 if m != nil { 831 return m.Nonce 832 } 833 return 0 834 } 835 836 func (m *BlockResponse) GetCoinbase() string { 837 if m != nil { 838 return m.Coinbase 839 } 840 return "" 841 } 842 843 func (m *BlockResponse) GetTimestamp() int64 { 844 if m != nil { 845 return m.Timestamp 846 } 847 return 0 848 } 849 850 func (m *BlockResponse) GetChainId() uint32 { 851 if m != nil { 852 return m.ChainId 853 } 854 return 0 855 } 856 857 func (m *BlockResponse) GetStateRoot() string { 858 if m != nil { 859 return m.StateRoot 860 } 861 return "" 862 } 863 864 func (m *BlockResponse) GetTxsRoot() string { 865 if m != nil { 866 return m.TxsRoot 867 } 868 return "" 869 } 870 871 func (m *BlockResponse) GetEventsRoot() string { 872 if m != nil { 873 return m.EventsRoot 874 } 875 return "" 876 } 877 878 func (m *BlockResponse) GetConsensusRoot() *consensuspb.ConsensusRoot { 879 if m != nil { 880 return m.ConsensusRoot 881 } 882 return nil 883 } 884 885 func (m *BlockResponse) GetMiner() string { 886 if m != nil { 887 return m.Miner 888 } 889 return "" 890 } 891 892 func (m *BlockResponse) GetRandomSeed() string { 893 if m != nil { 894 return m.RandomSeed 895 } 896 return "" 897 } 898 899 func (m *BlockResponse) GetRandomProof() string { 900 if m != nil { 901 return m.RandomProof 902 } 903 return "" 904 } 905 906 func (m *BlockResponse) GetIsFinality() bool { 907 if m != nil { 908 return m.IsFinality 909 } 910 return false 911 } 912 913 func (m *BlockResponse) GetTransactions() []*TransactionResponse { 914 if m != nil { 915 return m.Transactions 916 } 917 return nil 918 } 919 920 // Response message of TransactionReceipt. 921 type TransactionResponse struct { 922 // Hex string of tx hash. 923 Hash string `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"` 924 ChainId uint32 `protobuf:"varint,2,opt,name=chainId,proto3" json:"chainId,omitempty"` 925 // Hex string of the sender account addresss. 926 From string `protobuf:"bytes,3,opt,name=from,proto3" json:"from,omitempty"` 927 // Hex string of the receiver account addresss. 928 To string `protobuf:"bytes,4,opt,name=to,proto3" json:"to,omitempty"` 929 Value string `protobuf:"bytes,5,opt,name=value,proto3" json:"value,omitempty"` 930 // Transaction nonce. 931 Nonce uint64 `protobuf:"varint,6,opt,name=nonce,proto3" json:"nonce,omitempty"` 932 Timestamp int64 `protobuf:"varint,7,opt,name=timestamp,proto3" json:"timestamp,omitempty"` 933 Type string `protobuf:"bytes,8,opt,name=type,proto3" json:"type,omitempty"` 934 Data []byte `protobuf:"bytes,9,opt,name=data,proto3" json:"data,omitempty"` 935 GasPrice string `protobuf:"bytes,10,opt,name=gas_price,json=gasPrice,proto3" json:"gas_price,omitempty"` 936 GasLimit string `protobuf:"bytes,11,opt,name=gas_limit,json=gasLimit,proto3" json:"gas_limit,omitempty"` 937 ContractAddress string `protobuf:"bytes,12,opt,name=contract_address,json=contractAddress,proto3" json:"contract_address,omitempty"` 938 // transaction status 0 failed, 1 success, 2 pending 939 Status int32 `protobuf:"varint,13,opt,name=status,proto3" json:"status,omitempty"` 940 // transaction gas used 941 GasUsed string `protobuf:"bytes,14,opt,name=gas_used,json=gasUsed,proto3" json:"gas_used,omitempty"` 942 // contract execute error 943 ExecuteError string `protobuf:"bytes,15,opt,name=execute_error,json=executeError,proto3" json:"execute_error,omitempty"` 944 // contract execute result 945 ExecuteResult string `protobuf:"bytes,16,opt,name=execute_result,json=executeResult,proto3" json:"execute_result,omitempty"` 946 // transaction's block height 947 BlockHeight uint64 `protobuf:"varint,17,opt,name=block_height,json=blockHeight,proto3" json:"block_height,omitempty"` 948 } 949 950 func (m *TransactionResponse) Reset() { *m = TransactionResponse{} } 951 func (m *TransactionResponse) String() string { return proto.CompactTextString(m) } 952 func (*TransactionResponse) ProtoMessage() {} 953 func (*TransactionResponse) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{21} } 954 955 func (m *TransactionResponse) GetHash() string { 956 if m != nil { 957 return m.Hash 958 } 959 return "" 960 } 961 962 func (m *TransactionResponse) GetChainId() uint32 { 963 if m != nil { 964 return m.ChainId 965 } 966 return 0 967 } 968 969 func (m *TransactionResponse) GetFrom() string { 970 if m != nil { 971 return m.From 972 } 973 return "" 974 } 975 976 func (m *TransactionResponse) GetTo() string { 977 if m != nil { 978 return m.To 979 } 980 return "" 981 } 982 983 func (m *TransactionResponse) GetValue() string { 984 if m != nil { 985 return m.Value 986 } 987 return "" 988 } 989 990 func (m *TransactionResponse) GetNonce() uint64 { 991 if m != nil { 992 return m.Nonce 993 } 994 return 0 995 } 996 997 func (m *TransactionResponse) GetTimestamp() int64 { 998 if m != nil { 999 return m.Timestamp 1000 } 1001 return 0 1002 } 1003 1004 func (m *TransactionResponse) GetType() string { 1005 if m != nil { 1006 return m.Type 1007 } 1008 return "" 1009 } 1010 1011 func (m *TransactionResponse) GetData() []byte { 1012 if m != nil { 1013 return m.Data 1014 } 1015 return nil 1016 } 1017 1018 func (m *TransactionResponse) GetGasPrice() string { 1019 if m != nil { 1020 return m.GasPrice 1021 } 1022 return "" 1023 } 1024 1025 func (m *TransactionResponse) GetGasLimit() string { 1026 if m != nil { 1027 return m.GasLimit 1028 } 1029 return "" 1030 } 1031 1032 func (m *TransactionResponse) GetContractAddress() string { 1033 if m != nil { 1034 return m.ContractAddress 1035 } 1036 return "" 1037 } 1038 1039 func (m *TransactionResponse) GetStatus() int32 { 1040 if m != nil { 1041 return m.Status 1042 } 1043 return 0 1044 } 1045 1046 func (m *TransactionResponse) GetGasUsed() string { 1047 if m != nil { 1048 return m.GasUsed 1049 } 1050 return "" 1051 } 1052 1053 func (m *TransactionResponse) GetExecuteError() string { 1054 if m != nil { 1055 return m.ExecuteError 1056 } 1057 return "" 1058 } 1059 1060 func (m *TransactionResponse) GetExecuteResult() string { 1061 if m != nil { 1062 return m.ExecuteResult 1063 } 1064 return "" 1065 } 1066 1067 func (m *TransactionResponse) GetBlockHeight() uint64 { 1068 if m != nil { 1069 return m.BlockHeight 1070 } 1071 return 0 1072 } 1073 1074 type NewAccountRequest struct { 1075 Passphrase string `protobuf:"bytes,1,opt,name=passphrase,proto3" json:"passphrase,omitempty"` 1076 } 1077 1078 func (m *NewAccountRequest) Reset() { *m = NewAccountRequest{} } 1079 func (m *NewAccountRequest) String() string { return proto.CompactTextString(m) } 1080 func (*NewAccountRequest) ProtoMessage() {} 1081 func (*NewAccountRequest) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{22} } 1082 1083 func (m *NewAccountRequest) GetPassphrase() string { 1084 if m != nil { 1085 return m.Passphrase 1086 } 1087 return "" 1088 } 1089 1090 type NewAccountResponse struct { 1091 Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` 1092 } 1093 1094 func (m *NewAccountResponse) Reset() { *m = NewAccountResponse{} } 1095 func (m *NewAccountResponse) String() string { return proto.CompactTextString(m) } 1096 func (*NewAccountResponse) ProtoMessage() {} 1097 func (*NewAccountResponse) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{23} } 1098 1099 func (m *NewAccountResponse) GetAddress() string { 1100 if m != nil { 1101 return m.Address 1102 } 1103 return "" 1104 } 1105 1106 type UnlockAccountRequest struct { 1107 Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` 1108 Passphrase string `protobuf:"bytes,2,opt,name=passphrase,proto3" json:"passphrase,omitempty"` 1109 Duration uint64 `protobuf:"varint,3,opt,name=duration,proto3" json:"duration,omitempty"` 1110 } 1111 1112 func (m *UnlockAccountRequest) Reset() { *m = UnlockAccountRequest{} } 1113 func (m *UnlockAccountRequest) String() string { return proto.CompactTextString(m) } 1114 func (*UnlockAccountRequest) ProtoMessage() {} 1115 func (*UnlockAccountRequest) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{24} } 1116 1117 func (m *UnlockAccountRequest) GetAddress() string { 1118 if m != nil { 1119 return m.Address 1120 } 1121 return "" 1122 } 1123 1124 func (m *UnlockAccountRequest) GetPassphrase() string { 1125 if m != nil { 1126 return m.Passphrase 1127 } 1128 return "" 1129 } 1130 1131 func (m *UnlockAccountRequest) GetDuration() uint64 { 1132 if m != nil { 1133 return m.Duration 1134 } 1135 return 0 1136 } 1137 1138 type UnlockAccountResponse struct { 1139 Result bool `protobuf:"varint,1,opt,name=result,proto3" json:"result,omitempty"` 1140 } 1141 1142 func (m *UnlockAccountResponse) Reset() { *m = UnlockAccountResponse{} } 1143 func (m *UnlockAccountResponse) String() string { return proto.CompactTextString(m) } 1144 func (*UnlockAccountResponse) ProtoMessage() {} 1145 func (*UnlockAccountResponse) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{25} } 1146 1147 func (m *UnlockAccountResponse) GetResult() bool { 1148 if m != nil { 1149 return m.Result 1150 } 1151 return false 1152 } 1153 1154 type LockAccountRequest struct { 1155 Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` 1156 } 1157 1158 func (m *LockAccountRequest) Reset() { *m = LockAccountRequest{} } 1159 func (m *LockAccountRequest) String() string { return proto.CompactTextString(m) } 1160 func (*LockAccountRequest) ProtoMessage() {} 1161 func (*LockAccountRequest) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{26} } 1162 1163 func (m *LockAccountRequest) GetAddress() string { 1164 if m != nil { 1165 return m.Address 1166 } 1167 return "" 1168 } 1169 1170 type LockAccountResponse struct { 1171 Result bool `protobuf:"varint,1,opt,name=result,proto3" json:"result,omitempty"` 1172 } 1173 1174 func (m *LockAccountResponse) Reset() { *m = LockAccountResponse{} } 1175 func (m *LockAccountResponse) String() string { return proto.CompactTextString(m) } 1176 func (*LockAccountResponse) ProtoMessage() {} 1177 func (*LockAccountResponse) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{27} } 1178 1179 func (m *LockAccountResponse) GetResult() bool { 1180 if m != nil { 1181 return m.Result 1182 } 1183 return false 1184 } 1185 1186 type SignHashRequest struct { 1187 // sign address 1188 Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` 1189 // sign msg 1190 Hash []byte `protobuf:"bytes,2,opt,name=hash,proto3" json:"hash,omitempty"` 1191 // sign algorithm 1192 Alg uint32 `protobuf:"varint,3,opt,name=alg,proto3" json:"alg,omitempty"` 1193 } 1194 1195 func (m *SignHashRequest) Reset() { *m = SignHashRequest{} } 1196 func (m *SignHashRequest) String() string { return proto.CompactTextString(m) } 1197 func (*SignHashRequest) ProtoMessage() {} 1198 func (*SignHashRequest) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{28} } 1199 1200 func (m *SignHashRequest) GetAddress() string { 1201 if m != nil { 1202 return m.Address 1203 } 1204 return "" 1205 } 1206 1207 func (m *SignHashRequest) GetHash() []byte { 1208 if m != nil { 1209 return m.Hash 1210 } 1211 return nil 1212 } 1213 1214 func (m *SignHashRequest) GetAlg() uint32 { 1215 if m != nil { 1216 return m.Alg 1217 } 1218 return 0 1219 } 1220 1221 type SignHashResponse struct { 1222 Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` 1223 } 1224 1225 func (m *SignHashResponse) Reset() { *m = SignHashResponse{} } 1226 func (m *SignHashResponse) String() string { return proto.CompactTextString(m) } 1227 func (*SignHashResponse) ProtoMessage() {} 1228 func (*SignHashResponse) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{29} } 1229 1230 func (m *SignHashResponse) GetData() []byte { 1231 if m != nil { 1232 return m.Data 1233 } 1234 return nil 1235 } 1236 1237 type GenerateRandomSeedRequest struct { 1238 // miner address 1239 Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` 1240 // parent seed of new block 1241 ParentSeed []byte `protobuf:"bytes,2,opt,name=parent_seed,json=parentSeed,proto3" json:"parent_seed,omitempty"` 1242 // hash of new block's ancestor 1243 AncestorHash []byte `protobuf:"bytes,3,opt,name=ancestor_hash,json=ancestorHash,proto3" json:"ancestor_hash,omitempty"` 1244 } 1245 1246 func (m *GenerateRandomSeedRequest) Reset() { *m = GenerateRandomSeedRequest{} } 1247 func (m *GenerateRandomSeedRequest) String() string { return proto.CompactTextString(m) } 1248 func (*GenerateRandomSeedRequest) ProtoMessage() {} 1249 func (*GenerateRandomSeedRequest) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{30} } 1250 1251 func (m *GenerateRandomSeedRequest) GetAddress() string { 1252 if m != nil { 1253 return m.Address 1254 } 1255 return "" 1256 } 1257 1258 func (m *GenerateRandomSeedRequest) GetParentSeed() []byte { 1259 if m != nil { 1260 return m.ParentSeed 1261 } 1262 return nil 1263 } 1264 1265 func (m *GenerateRandomSeedRequest) GetAncestorHash() []byte { 1266 if m != nil { 1267 return m.AncestorHash 1268 } 1269 return nil 1270 } 1271 1272 type GenerateRandomSeedResponse struct { 1273 VrfSeed []byte `protobuf:"bytes,1,opt,name=vrf_seed,json=vrfSeed,proto3" json:"vrf_seed,omitempty"` 1274 VrfProof []byte `protobuf:"bytes,2,opt,name=vrf_proof,json=vrfProof,proto3" json:"vrf_proof,omitempty"` 1275 } 1276 1277 func (m *GenerateRandomSeedResponse) Reset() { *m = GenerateRandomSeedResponse{} } 1278 func (m *GenerateRandomSeedResponse) String() string { return proto.CompactTextString(m) } 1279 func (*GenerateRandomSeedResponse) ProtoMessage() {} 1280 func (*GenerateRandomSeedResponse) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{31} } 1281 1282 func (m *GenerateRandomSeedResponse) GetVrfSeed() []byte { 1283 if m != nil { 1284 return m.VrfSeed 1285 } 1286 return nil 1287 } 1288 1289 func (m *GenerateRandomSeedResponse) GetVrfProof() []byte { 1290 if m != nil { 1291 return m.VrfProof 1292 } 1293 return nil 1294 } 1295 1296 type SignTransactionPassphraseRequest struct { 1297 // transaction struct 1298 Transaction *TransactionRequest `protobuf:"bytes,1,opt,name=transaction" json:"transaction,omitempty"` 1299 // from account passphrase 1300 Passphrase string `protobuf:"bytes,2,opt,name=passphrase,proto3" json:"passphrase,omitempty"` 1301 } 1302 1303 func (m *SignTransactionPassphraseRequest) Reset() { *m = SignTransactionPassphraseRequest{} } 1304 func (m *SignTransactionPassphraseRequest) String() string { return proto.CompactTextString(m) } 1305 func (*SignTransactionPassphraseRequest) ProtoMessage() {} 1306 func (*SignTransactionPassphraseRequest) Descriptor() ([]byte, []int) { 1307 return fileDescriptorRpc, []int{32} 1308 } 1309 1310 func (m *SignTransactionPassphraseRequest) GetTransaction() *TransactionRequest { 1311 if m != nil { 1312 return m.Transaction 1313 } 1314 return nil 1315 } 1316 1317 func (m *SignTransactionPassphraseRequest) GetPassphrase() string { 1318 if m != nil { 1319 return m.Passphrase 1320 } 1321 return "" 1322 } 1323 1324 type SignTransactionPassphraseResponse struct { 1325 Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` 1326 } 1327 1328 func (m *SignTransactionPassphraseResponse) Reset() { *m = SignTransactionPassphraseResponse{} } 1329 func (m *SignTransactionPassphraseResponse) String() string { return proto.CompactTextString(m) } 1330 func (*SignTransactionPassphraseResponse) ProtoMessage() {} 1331 func (*SignTransactionPassphraseResponse) Descriptor() ([]byte, []int) { 1332 return fileDescriptorRpc, []int{33} 1333 } 1334 1335 func (m *SignTransactionPassphraseResponse) GetData() []byte { 1336 if m != nil { 1337 return m.Data 1338 } 1339 return nil 1340 } 1341 1342 type SendTransactionPassphraseRequest struct { 1343 // transaction struct 1344 Transaction *TransactionRequest `protobuf:"bytes,1,opt,name=transaction" json:"transaction,omitempty"` 1345 // from account passphrase 1346 Passphrase string `protobuf:"bytes,2,opt,name=passphrase,proto3" json:"passphrase,omitempty"` 1347 } 1348 1349 func (m *SendTransactionPassphraseRequest) Reset() { *m = SendTransactionPassphraseRequest{} } 1350 func (m *SendTransactionPassphraseRequest) String() string { return proto.CompactTextString(m) } 1351 func (*SendTransactionPassphraseRequest) ProtoMessage() {} 1352 func (*SendTransactionPassphraseRequest) Descriptor() ([]byte, []int) { 1353 return fileDescriptorRpc, []int{34} 1354 } 1355 1356 func (m *SendTransactionPassphraseRequest) GetTransaction() *TransactionRequest { 1357 if m != nil { 1358 return m.Transaction 1359 } 1360 return nil 1361 } 1362 1363 func (m *SendTransactionPassphraseRequest) GetPassphrase() string { 1364 if m != nil { 1365 return m.Passphrase 1366 } 1367 return "" 1368 } 1369 1370 type GasPriceResponse struct { 1371 GasPrice string `protobuf:"bytes,1,opt,name=gas_price,json=gasPrice,proto3" json:"gas_price,omitempty"` 1372 } 1373 1374 func (m *GasPriceResponse) Reset() { *m = GasPriceResponse{} } 1375 func (m *GasPriceResponse) String() string { return proto.CompactTextString(m) } 1376 func (*GasPriceResponse) ProtoMessage() {} 1377 func (*GasPriceResponse) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{35} } 1378 1379 func (m *GasPriceResponse) GetGasPrice() string { 1380 if m != nil { 1381 return m.GasPrice 1382 } 1383 return "" 1384 } 1385 1386 // Request message of GetTransactionByHash rpc. 1387 type HashRequest struct { 1388 // Hex string of block/transaction hash. 1389 Hash string `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"` 1390 } 1391 1392 func (m *HashRequest) Reset() { *m = HashRequest{} } 1393 func (m *HashRequest) String() string { return proto.CompactTextString(m) } 1394 func (*HashRequest) ProtoMessage() {} 1395 func (*HashRequest) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{36} } 1396 1397 func (m *HashRequest) GetHash() string { 1398 if m != nil { 1399 return m.Hash 1400 } 1401 return "" 1402 } 1403 1404 type GasResponse struct { 1405 Gas string `protobuf:"bytes,1,opt,name=gas,proto3" json:"gas,omitempty"` 1406 Err string `protobuf:"bytes,2,opt,name=err,proto3" json:"err,omitempty"` 1407 } 1408 1409 func (m *GasResponse) Reset() { *m = GasResponse{} } 1410 func (m *GasResponse) String() string { return proto.CompactTextString(m) } 1411 func (*GasResponse) ProtoMessage() {} 1412 func (*GasResponse) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{37} } 1413 1414 func (m *GasResponse) GetGas() string { 1415 if m != nil { 1416 return m.Gas 1417 } 1418 return "" 1419 } 1420 1421 func (m *GasResponse) GetErr() string { 1422 if m != nil { 1423 return m.Err 1424 } 1425 return "" 1426 } 1427 1428 type EventsResponse struct { 1429 Events []*Event `protobuf:"bytes,1,rep,name=events" json:"events,omitempty"` 1430 } 1431 1432 func (m *EventsResponse) Reset() { *m = EventsResponse{} } 1433 func (m *EventsResponse) String() string { return proto.CompactTextString(m) } 1434 func (*EventsResponse) ProtoMessage() {} 1435 func (*EventsResponse) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{38} } 1436 1437 func (m *EventsResponse) GetEvents() []*Event { 1438 if m != nil { 1439 return m.Events 1440 } 1441 return nil 1442 } 1443 1444 type Event struct { 1445 Topic string `protobuf:"bytes,1,opt,name=topic,proto3" json:"topic,omitempty"` 1446 Data string `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` 1447 } 1448 1449 func (m *Event) Reset() { *m = Event{} } 1450 func (m *Event) String() string { return proto.CompactTextString(m) } 1451 func (*Event) ProtoMessage() {} 1452 func (*Event) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{39} } 1453 1454 func (m *Event) GetTopic() string { 1455 if m != nil { 1456 return m.Topic 1457 } 1458 return "" 1459 } 1460 1461 func (m *Event) GetData() string { 1462 if m != nil { 1463 return m.Data 1464 } 1465 return "" 1466 } 1467 1468 type PprofRequest struct { 1469 Listen string `protobuf:"bytes,1,opt,name=listen,proto3" json:"listen,omitempty"` 1470 } 1471 1472 func (m *PprofRequest) Reset() { *m = PprofRequest{} } 1473 func (m *PprofRequest) String() string { return proto.CompactTextString(m) } 1474 func (*PprofRequest) ProtoMessage() {} 1475 func (*PprofRequest) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{40} } 1476 1477 func (m *PprofRequest) GetListen() string { 1478 if m != nil { 1479 return m.Listen 1480 } 1481 return "" 1482 } 1483 1484 type PprofResponse struct { 1485 Result bool `protobuf:"varint,1,opt,name=result,proto3" json:"result,omitempty"` 1486 } 1487 1488 func (m *PprofResponse) Reset() { *m = PprofResponse{} } 1489 func (m *PprofResponse) String() string { return proto.CompactTextString(m) } 1490 func (*PprofResponse) ProtoMessage() {} 1491 func (*PprofResponse) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{41} } 1492 1493 func (m *PprofResponse) GetResult() bool { 1494 if m != nil { 1495 return m.Result 1496 } 1497 return false 1498 } 1499 1500 type GetConfigResponse struct { 1501 // Config 1502 Config *nebletpb.Config `protobuf:"bytes,1,opt,name=config" json:"config,omitempty"` 1503 } 1504 1505 func (m *GetConfigResponse) Reset() { *m = GetConfigResponse{} } 1506 func (m *GetConfigResponse) String() string { return proto.CompactTextString(m) } 1507 func (*GetConfigResponse) ProtoMessage() {} 1508 func (*GetConfigResponse) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{42} } 1509 1510 func (m *GetConfigResponse) GetConfig() *nebletpb.Config { 1511 if m != nil { 1512 return m.Config 1513 } 1514 return nil 1515 } 1516 1517 type VerifySignatureRequest struct { 1518 Msg string `protobuf:"bytes,1,opt,name=msg,proto3" json:"msg,omitempty"` 1519 Signature string `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"` 1520 Address string `protobuf:"bytes,3,opt,name=address,proto3" json:"address,omitempty"` 1521 Alg uint32 `protobuf:"varint,4,opt,name=alg,proto3" json:"alg,omitempty"` 1522 } 1523 1524 func (m *VerifySignatureRequest) Reset() { *m = VerifySignatureRequest{} } 1525 func (m *VerifySignatureRequest) String() string { return proto.CompactTextString(m) } 1526 func (*VerifySignatureRequest) ProtoMessage() {} 1527 func (*VerifySignatureRequest) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{43} } 1528 1529 func (m *VerifySignatureRequest) GetMsg() string { 1530 if m != nil { 1531 return m.Msg 1532 } 1533 return "" 1534 } 1535 1536 func (m *VerifySignatureRequest) GetSignature() string { 1537 if m != nil { 1538 return m.Signature 1539 } 1540 return "" 1541 } 1542 1543 func (m *VerifySignatureRequest) GetAddress() string { 1544 if m != nil { 1545 return m.Address 1546 } 1547 return "" 1548 } 1549 1550 func (m *VerifySignatureRequest) GetAlg() uint32 { 1551 if m != nil { 1552 return m.Alg 1553 } 1554 return 0 1555 } 1556 1557 type VerifySignatureResponse struct { 1558 Result bool `protobuf:"varint,1,opt,name=result,proto3" json:"result,omitempty"` 1559 Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` 1560 } 1561 1562 func (m *VerifySignatureResponse) Reset() { *m = VerifySignatureResponse{} } 1563 func (m *VerifySignatureResponse) String() string { return proto.CompactTextString(m) } 1564 func (*VerifySignatureResponse) ProtoMessage() {} 1565 func (*VerifySignatureResponse) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{44} } 1566 1567 func (m *VerifySignatureResponse) GetResult() bool { 1568 if m != nil { 1569 return m.Result 1570 } 1571 return false 1572 } 1573 1574 func (m *VerifySignatureResponse) GetAddress() string { 1575 if m != nil { 1576 return m.Address 1577 } 1578 return "" 1579 } 1580 1581 type GetNRByAddressRequest struct { 1582 // nr address 1583 Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` 1584 } 1585 1586 func (m *GetNRByAddressRequest) Reset() { *m = GetNRByAddressRequest{} } 1587 func (m *GetNRByAddressRequest) String() string { return proto.CompactTextString(m) } 1588 func (*GetNRByAddressRequest) ProtoMessage() {} 1589 func (*GetNRByAddressRequest) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{45} } 1590 1591 func (m *GetNRByAddressRequest) GetAddress() string { 1592 if m != nil { 1593 return m.Address 1594 } 1595 return "" 1596 } 1597 1598 type GetNRHandleRequest struct { 1599 // start block height of nr calculate interval 1600 Start uint64 `protobuf:"varint,1,opt,name=start,proto3" json:"start,omitempty"` 1601 // end block height of nr calculate interval. If not specified, use 0 as tail height. 1602 End uint64 `protobuf:"varint,2,opt,name=end,proto3" json:"end,omitempty"` 1603 // nr version 1604 Version uint64 `protobuf:"varint,3,opt,name=version,proto3" json:"version,omitempty"` 1605 } 1606 1607 func (m *GetNRHandleRequest) Reset() { *m = GetNRHandleRequest{} } 1608 func (m *GetNRHandleRequest) String() string { return proto.CompactTextString(m) } 1609 func (*GetNRHandleRequest) ProtoMessage() {} 1610 func (*GetNRHandleRequest) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{46} } 1611 1612 func (m *GetNRHandleRequest) GetStart() uint64 { 1613 if m != nil { 1614 return m.Start 1615 } 1616 return 0 1617 } 1618 1619 func (m *GetNRHandleRequest) GetEnd() uint64 { 1620 if m != nil { 1621 return m.End 1622 } 1623 return 0 1624 } 1625 1626 func (m *GetNRHandleRequest) GetVersion() uint64 { 1627 if m != nil { 1628 return m.Version 1629 } 1630 return 0 1631 } 1632 1633 type GetNRHandleResponse struct { 1634 Handle string `protobuf:"bytes,1,opt,name=handle,proto3" json:"handle,omitempty"` 1635 } 1636 1637 func (m *GetNRHandleResponse) Reset() { *m = GetNRHandleResponse{} } 1638 func (m *GetNRHandleResponse) String() string { return proto.CompactTextString(m) } 1639 func (*GetNRHandleResponse) ProtoMessage() {} 1640 func (*GetNRHandleResponse) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{47} } 1641 1642 func (m *GetNRHandleResponse) GetHandle() string { 1643 if m != nil { 1644 return m.Handle 1645 } 1646 return "" 1647 } 1648 1649 type GetNRListByHandleRequest struct { 1650 // nr handle 1651 Handle string `protobuf:"bytes,1,opt,name=handle,proto3" json:"handle,omitempty"` 1652 } 1653 1654 func (m *GetNRListByHandleRequest) Reset() { *m = GetNRListByHandleRequest{} } 1655 func (m *GetNRListByHandleRequest) String() string { return proto.CompactTextString(m) } 1656 func (*GetNRListByHandleRequest) ProtoMessage() {} 1657 func (*GetNRListByHandleRequest) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{48} } 1658 1659 func (m *GetNRListByHandleRequest) GetHandle() string { 1660 if m != nil { 1661 return m.Handle 1662 } 1663 return "" 1664 } 1665 1666 type GetNRListResponse struct { 1667 // nr algorithm version 1668 Version uint64 `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"` 1669 // start block height of nr calculate interval 1670 Start uint64 `protobuf:"varint,2,opt,name=start,proto3" json:"start,omitempty"` 1671 // end block height of nr calculate interval. If not specified, use 0 as tail height. 1672 End uint64 `protobuf:"varint,3,opt,name=end,proto3" json:"end,omitempty"` 1673 // nr data list 1674 Data []*NRItem `protobuf:"bytes,4,rep,name=data" json:"data,omitempty"` 1675 } 1676 1677 func (m *GetNRListResponse) Reset() { *m = GetNRListResponse{} } 1678 func (m *GetNRListResponse) String() string { return proto.CompactTextString(m) } 1679 func (*GetNRListResponse) ProtoMessage() {} 1680 func (*GetNRListResponse) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{49} } 1681 1682 func (m *GetNRListResponse) GetVersion() uint64 { 1683 if m != nil { 1684 return m.Version 1685 } 1686 return 0 1687 } 1688 1689 func (m *GetNRListResponse) GetStart() uint64 { 1690 if m != nil { 1691 return m.Start 1692 } 1693 return 0 1694 } 1695 1696 func (m *GetNRListResponse) GetEnd() uint64 { 1697 if m != nil { 1698 return m.End 1699 } 1700 return 0 1701 } 1702 1703 func (m *GetNRListResponse) GetData() []*NRItem { 1704 if m != nil { 1705 return m.Data 1706 } 1707 return nil 1708 } 1709 1710 type NRItem struct { 1711 // nr address 1712 Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` 1713 // score of nr. 1714 Score string `protobuf:"bytes,2,opt,name=score,proto3" json:"score,omitempty"` 1715 Median string `protobuf:"bytes,3,opt,name=median,proto3" json:"median,omitempty"` 1716 Weight string `protobuf:"bytes,4,opt,name=weight,proto3" json:"weight,omitempty"` 1717 } 1718 1719 func (m *NRItem) Reset() { *m = NRItem{} } 1720 func (m *NRItem) String() string { return proto.CompactTextString(m) } 1721 func (*NRItem) ProtoMessage() {} 1722 func (*NRItem) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{50} } 1723 1724 func (m *NRItem) GetAddress() string { 1725 if m != nil { 1726 return m.Address 1727 } 1728 return "" 1729 } 1730 1731 func (m *NRItem) GetScore() string { 1732 if m != nil { 1733 return m.Score 1734 } 1735 return "" 1736 } 1737 1738 func (m *NRItem) GetMedian() string { 1739 if m != nil { 1740 return m.Median 1741 } 1742 return "" 1743 } 1744 1745 func (m *NRItem) GetWeight() string { 1746 if m != nil { 1747 return m.Weight 1748 } 1749 return "" 1750 } 1751 1752 type GetDIPListRequest struct { 1753 // height 1754 Height uint64 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"` 1755 } 1756 1757 func (m *GetDIPListRequest) Reset() { *m = GetDIPListRequest{} } 1758 func (m *GetDIPListRequest) String() string { return proto.CompactTextString(m) } 1759 func (*GetDIPListRequest) ProtoMessage() {} 1760 func (*GetDIPListRequest) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{51} } 1761 1762 func (m *GetDIPListRequest) GetHeight() uint64 { 1763 if m != nil { 1764 return m.Height 1765 } 1766 return 0 1767 } 1768 1769 type GetDIPListResponse struct { 1770 // dip algorithm version 1771 Version uint64 `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"` 1772 // start block height of dip calculate interval 1773 Start uint64 `protobuf:"varint,2,opt,name=start,proto3" json:"start,omitempty"` 1774 // end block height of dip calculate interval. 1775 End uint64 `protobuf:"varint,3,opt,name=end,proto3" json:"end,omitempty"` 1776 // dip data list 1777 Data []*DIPItem `protobuf:"bytes,4,rep,name=data" json:"data,omitempty"` 1778 } 1779 1780 func (m *GetDIPListResponse) Reset() { *m = GetDIPListResponse{} } 1781 func (m *GetDIPListResponse) String() string { return proto.CompactTextString(m) } 1782 func (*GetDIPListResponse) ProtoMessage() {} 1783 func (*GetDIPListResponse) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{52} } 1784 1785 func (m *GetDIPListResponse) GetVersion() uint64 { 1786 if m != nil { 1787 return m.Version 1788 } 1789 return 0 1790 } 1791 1792 func (m *GetDIPListResponse) GetStart() uint64 { 1793 if m != nil { 1794 return m.Start 1795 } 1796 return 0 1797 } 1798 1799 func (m *GetDIPListResponse) GetEnd() uint64 { 1800 if m != nil { 1801 return m.End 1802 } 1803 return 0 1804 } 1805 1806 func (m *GetDIPListResponse) GetData() []*DIPItem { 1807 if m != nil { 1808 return m.Data 1809 } 1810 return nil 1811 } 1812 1813 type DIPItem struct { 1814 // dip address 1815 Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` 1816 // dip contract address 1817 Contract string `protobuf:"bytes,2,opt,name=contract,proto3" json:"contract,omitempty"` 1818 // value of dip reward. 1819 Value string `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"` 1820 } 1821 1822 func (m *DIPItem) Reset() { *m = DIPItem{} } 1823 func (m *DIPItem) String() string { return proto.CompactTextString(m) } 1824 func (*DIPItem) ProtoMessage() {} 1825 func (*DIPItem) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{53} } 1826 1827 func (m *DIPItem) GetAddress() string { 1828 if m != nil { 1829 return m.Address 1830 } 1831 return "" 1832 } 1833 1834 func (m *DIPItem) GetContract() string { 1835 if m != nil { 1836 return m.Contract 1837 } 1838 return "" 1839 } 1840 1841 func (m *DIPItem) GetValue() string { 1842 if m != nil { 1843 return m.Value 1844 } 1845 return "" 1846 } 1847 1848 func init() { 1849 proto.RegisterType((*SubscribeRequest)(nil), "rpcpb.SubscribeRequest") 1850 proto.RegisterType((*SubscribeResponse)(nil), "rpcpb.SubscribeResponse") 1851 proto.RegisterType((*NonParamsRequest)(nil), "rpcpb.NonParamsRequest") 1852 proto.RegisterType((*NodeInfoResponse)(nil), "rpcpb.NodeInfoResponse") 1853 proto.RegisterType((*RouteTable)(nil), "rpcpb.RouteTable") 1854 proto.RegisterType((*GetNebStateResponse)(nil), "rpcpb.GetNebStateResponse") 1855 proto.RegisterType((*AccountsResponse)(nil), "rpcpb.AccountsResponse") 1856 proto.RegisterType((*GetAccountStateRequest)(nil), "rpcpb.GetAccountStateRequest") 1857 proto.RegisterType((*GetAccountStateResponse)(nil), "rpcpb.GetAccountStateResponse") 1858 proto.RegisterType((*CallResponse)(nil), "rpcpb.CallResponse") 1859 proto.RegisterType((*ByBlockHeightRequest)(nil), "rpcpb.ByBlockHeightRequest") 1860 proto.RegisterType((*GetDynastyResponse)(nil), "rpcpb.GetDynastyResponse") 1861 proto.RegisterType((*TransactionRequest)(nil), "rpcpb.TransactionRequest") 1862 proto.RegisterType((*ContractRequest)(nil), "rpcpb.ContractRequest") 1863 proto.RegisterType((*SendRawTransactionRequest)(nil), "rpcpb.SendRawTransactionRequest") 1864 proto.RegisterType((*SendTransactionResponse)(nil), "rpcpb.SendTransactionResponse") 1865 proto.RegisterType((*GetBlockByHashRequest)(nil), "rpcpb.GetBlockByHashRequest") 1866 proto.RegisterType((*GetBlockByHeightRequest)(nil), "rpcpb.GetBlockByHeightRequest") 1867 proto.RegisterType((*GetTransactionByHashRequest)(nil), "rpcpb.GetTransactionByHashRequest") 1868 proto.RegisterType((*GetTransactionByContractRequest)(nil), "rpcpb.GetTransactionByContractRequest") 1869 proto.RegisterType((*BlockResponse)(nil), "rpcpb.BlockResponse") 1870 proto.RegisterType((*TransactionResponse)(nil), "rpcpb.TransactionResponse") 1871 proto.RegisterType((*NewAccountRequest)(nil), "rpcpb.NewAccountRequest") 1872 proto.RegisterType((*NewAccountResponse)(nil), "rpcpb.NewAccountResponse") 1873 proto.RegisterType((*UnlockAccountRequest)(nil), "rpcpb.UnlockAccountRequest") 1874 proto.RegisterType((*UnlockAccountResponse)(nil), "rpcpb.UnlockAccountResponse") 1875 proto.RegisterType((*LockAccountRequest)(nil), "rpcpb.LockAccountRequest") 1876 proto.RegisterType((*LockAccountResponse)(nil), "rpcpb.LockAccountResponse") 1877 proto.RegisterType((*SignHashRequest)(nil), "rpcpb.SignHashRequest") 1878 proto.RegisterType((*SignHashResponse)(nil), "rpcpb.SignHashResponse") 1879 proto.RegisterType((*GenerateRandomSeedRequest)(nil), "rpcpb.GenerateRandomSeedRequest") 1880 proto.RegisterType((*GenerateRandomSeedResponse)(nil), "rpcpb.GenerateRandomSeedResponse") 1881 proto.RegisterType((*SignTransactionPassphraseRequest)(nil), "rpcpb.SignTransactionPassphraseRequest") 1882 proto.RegisterType((*SignTransactionPassphraseResponse)(nil), "rpcpb.SignTransactionPassphraseResponse") 1883 proto.RegisterType((*SendTransactionPassphraseRequest)(nil), "rpcpb.SendTransactionPassphraseRequest") 1884 proto.RegisterType((*GasPriceResponse)(nil), "rpcpb.GasPriceResponse") 1885 proto.RegisterType((*HashRequest)(nil), "rpcpb.HashRequest") 1886 proto.RegisterType((*GasResponse)(nil), "rpcpb.GasResponse") 1887 proto.RegisterType((*EventsResponse)(nil), "rpcpb.EventsResponse") 1888 proto.RegisterType((*Event)(nil), "rpcpb.Event") 1889 proto.RegisterType((*PprofRequest)(nil), "rpcpb.PprofRequest") 1890 proto.RegisterType((*PprofResponse)(nil), "rpcpb.PprofResponse") 1891 proto.RegisterType((*GetConfigResponse)(nil), "rpcpb.GetConfigResponse") 1892 proto.RegisterType((*VerifySignatureRequest)(nil), "rpcpb.VerifySignatureRequest") 1893 proto.RegisterType((*VerifySignatureResponse)(nil), "rpcpb.VerifySignatureResponse") 1894 proto.RegisterType((*GetNRByAddressRequest)(nil), "rpcpb.GetNRByAddressRequest") 1895 proto.RegisterType((*GetNRHandleRequest)(nil), "rpcpb.GetNRHandleRequest") 1896 proto.RegisterType((*GetNRHandleResponse)(nil), "rpcpb.GetNRHandleResponse") 1897 proto.RegisterType((*GetNRListByHandleRequest)(nil), "rpcpb.GetNRListByHandleRequest") 1898 proto.RegisterType((*GetNRListResponse)(nil), "rpcpb.GetNRListResponse") 1899 proto.RegisterType((*NRItem)(nil), "rpcpb.NRItem") 1900 proto.RegisterType((*GetDIPListRequest)(nil), "rpcpb.GetDIPListRequest") 1901 proto.RegisterType((*GetDIPListResponse)(nil), "rpcpb.GetDIPListResponse") 1902 proto.RegisterType((*DIPItem)(nil), "rpcpb.DIPItem") 1903 } 1904 1905 // Reference imports to suppress errors if they are not otherwise used. 1906 var _ context.Context 1907 var _ grpc.ClientConn 1908 1909 // This is a compile-time assertion to ensure that this generated file 1910 // is compatible with the grpc package it is being compiled against. 1911 const _ = grpc.SupportPackageIsVersion4 1912 1913 // Client API for ApiService service 1914 1915 type ApiServiceClient interface { 1916 // Return the state of the neb. 1917 GetNebState(ctx context.Context, in *NonParamsRequest, opts ...grpc.CallOption) (*GetNebStateResponse, error) 1918 // Return the latest irreversible block. 1919 LatestIrreversibleBlock(ctx context.Context, in *NonParamsRequest, opts ...grpc.CallOption) (*BlockResponse, error) 1920 // Return the state of the account. 1921 GetAccountState(ctx context.Context, in *GetAccountStateRequest, opts ...grpc.CallOption) (*GetAccountStateResponse, error) 1922 // Call transaction 1923 Call(ctx context.Context, in *TransactionRequest, opts ...grpc.CallOption) (*CallResponse, error) 1924 // Submit the signed transaction. 1925 SendRawTransaction(ctx context.Context, in *SendRawTransactionRequest, opts ...grpc.CallOption) (*SendTransactionResponse, error) 1926 // Get block info by the block hash. 1927 GetBlockByHash(ctx context.Context, in *GetBlockByHashRequest, opts ...grpc.CallOption) (*BlockResponse, error) 1928 // Get block info by the block height. 1929 GetBlockByHeight(ctx context.Context, in *GetBlockByHeightRequest, opts ...grpc.CallOption) (*BlockResponse, error) 1930 // Get transactionReceipt info by tansaction hash. 1931 GetTransactionReceipt(ctx context.Context, in *GetTransactionByHashRequest, opts ...grpc.CallOption) (*TransactionResponse, error) 1932 // Get transactionReceipt info by tansaction hash. 1933 GetTransactionByContract(ctx context.Context, in *GetTransactionByContractRequest, opts ...grpc.CallOption) (*TransactionResponse, error) 1934 // Subscribe message 1935 Subscribe(ctx context.Context, in *SubscribeRequest, opts ...grpc.CallOption) (ApiService_SubscribeClient, error) 1936 // Get GasPrice 1937 GetGasPrice(ctx context.Context, in *NonParamsRequest, opts ...grpc.CallOption) (*GasPriceResponse, error) 1938 // EstimateGas 1939 EstimateGas(ctx context.Context, in *TransactionRequest, opts ...grpc.CallOption) (*GasResponse, error) 1940 GetEventsByHash(ctx context.Context, in *HashRequest, opts ...grpc.CallOption) (*EventsResponse, error) 1941 GetDynasty(ctx context.Context, in *ByBlockHeightRequest, opts ...grpc.CallOption) (*GetDynastyResponse, error) 1942 // Verify Signature. 1943 VerifySignature(ctx context.Context, in *VerifySignatureRequest, opts ...grpc.CallOption) (*VerifySignatureResponse, error) 1944 } 1945 1946 type apiServiceClient struct { 1947 cc *grpc.ClientConn 1948 } 1949 1950 func NewApiServiceClient(cc *grpc.ClientConn) ApiServiceClient { 1951 return &apiServiceClient{cc} 1952 } 1953 1954 func (c *apiServiceClient) GetNebState(ctx context.Context, in *NonParamsRequest, opts ...grpc.CallOption) (*GetNebStateResponse, error) { 1955 out := new(GetNebStateResponse) 1956 err := grpc.Invoke(ctx, "/rpcpb.ApiService/GetNebState", in, out, c.cc, opts...) 1957 if err != nil { 1958 return nil, err 1959 } 1960 return out, nil 1961 } 1962 1963 func (c *apiServiceClient) LatestIrreversibleBlock(ctx context.Context, in *NonParamsRequest, opts ...grpc.CallOption) (*BlockResponse, error) { 1964 out := new(BlockResponse) 1965 err := grpc.Invoke(ctx, "/rpcpb.ApiService/LatestIrreversibleBlock", in, out, c.cc, opts...) 1966 if err != nil { 1967 return nil, err 1968 } 1969 return out, nil 1970 } 1971 1972 func (c *apiServiceClient) GetAccountState(ctx context.Context, in *GetAccountStateRequest, opts ...grpc.CallOption) (*GetAccountStateResponse, error) { 1973 out := new(GetAccountStateResponse) 1974 err := grpc.Invoke(ctx, "/rpcpb.ApiService/GetAccountState", in, out, c.cc, opts...) 1975 if err != nil { 1976 return nil, err 1977 } 1978 return out, nil 1979 } 1980 1981 func (c *apiServiceClient) Call(ctx context.Context, in *TransactionRequest, opts ...grpc.CallOption) (*CallResponse, error) { 1982 out := new(CallResponse) 1983 err := grpc.Invoke(ctx, "/rpcpb.ApiService/Call", in, out, c.cc, opts...) 1984 if err != nil { 1985 return nil, err 1986 } 1987 return out, nil 1988 } 1989 1990 func (c *apiServiceClient) SendRawTransaction(ctx context.Context, in *SendRawTransactionRequest, opts ...grpc.CallOption) (*SendTransactionResponse, error) { 1991 out := new(SendTransactionResponse) 1992 err := grpc.Invoke(ctx, "/rpcpb.ApiService/SendRawTransaction", in, out, c.cc, opts...) 1993 if err != nil { 1994 return nil, err 1995 } 1996 return out, nil 1997 } 1998 1999 func (c *apiServiceClient) GetBlockByHash(ctx context.Context, in *GetBlockByHashRequest, opts ...grpc.CallOption) (*BlockResponse, error) { 2000 out := new(BlockResponse) 2001 err := grpc.Invoke(ctx, "/rpcpb.ApiService/GetBlockByHash", in, out, c.cc, opts...) 2002 if err != nil { 2003 return nil, err 2004 } 2005 return out, nil 2006 } 2007 2008 func (c *apiServiceClient) GetBlockByHeight(ctx context.Context, in *GetBlockByHeightRequest, opts ...grpc.CallOption) (*BlockResponse, error) { 2009 out := new(BlockResponse) 2010 err := grpc.Invoke(ctx, "/rpcpb.ApiService/GetBlockByHeight", in, out, c.cc, opts...) 2011 if err != nil { 2012 return nil, err 2013 } 2014 return out, nil 2015 } 2016 2017 func (c *apiServiceClient) GetTransactionReceipt(ctx context.Context, in *GetTransactionByHashRequest, opts ...grpc.CallOption) (*TransactionResponse, error) { 2018 out := new(TransactionResponse) 2019 err := grpc.Invoke(ctx, "/rpcpb.ApiService/GetTransactionReceipt", in, out, c.cc, opts...) 2020 if err != nil { 2021 return nil, err 2022 } 2023 return out, nil 2024 } 2025 2026 func (c *apiServiceClient) GetTransactionByContract(ctx context.Context, in *GetTransactionByContractRequest, opts ...grpc.CallOption) (*TransactionResponse, error) { 2027 out := new(TransactionResponse) 2028 err := grpc.Invoke(ctx, "/rpcpb.ApiService/GetTransactionByContract", in, out, c.cc, opts...) 2029 if err != nil { 2030 return nil, err 2031 } 2032 return out, nil 2033 } 2034 2035 func (c *apiServiceClient) Subscribe(ctx context.Context, in *SubscribeRequest, opts ...grpc.CallOption) (ApiService_SubscribeClient, error) { 2036 stream, err := grpc.NewClientStream(ctx, &_ApiService_serviceDesc.Streams[0], c.cc, "/rpcpb.ApiService/Subscribe", opts...) 2037 if err != nil { 2038 return nil, err 2039 } 2040 x := &apiServiceSubscribeClient{stream} 2041 if err := x.ClientStream.SendMsg(in); err != nil { 2042 return nil, err 2043 } 2044 if err := x.ClientStream.CloseSend(); err != nil { 2045 return nil, err 2046 } 2047 return x, nil 2048 } 2049 2050 type ApiService_SubscribeClient interface { 2051 Recv() (*SubscribeResponse, error) 2052 grpc.ClientStream 2053 } 2054 2055 type apiServiceSubscribeClient struct { 2056 grpc.ClientStream 2057 } 2058 2059 func (x *apiServiceSubscribeClient) Recv() (*SubscribeResponse, error) { 2060 m := new(SubscribeResponse) 2061 if err := x.ClientStream.RecvMsg(m); err != nil { 2062 return nil, err 2063 } 2064 return m, nil 2065 } 2066 2067 func (c *apiServiceClient) GetGasPrice(ctx context.Context, in *NonParamsRequest, opts ...grpc.CallOption) (*GasPriceResponse, error) { 2068 out := new(GasPriceResponse) 2069 err := grpc.Invoke(ctx, "/rpcpb.ApiService/GetGasPrice", in, out, c.cc, opts...) 2070 if err != nil { 2071 return nil, err 2072 } 2073 return out, nil 2074 } 2075 2076 func (c *apiServiceClient) EstimateGas(ctx context.Context, in *TransactionRequest, opts ...grpc.CallOption) (*GasResponse, error) { 2077 out := new(GasResponse) 2078 err := grpc.Invoke(ctx, "/rpcpb.ApiService/EstimateGas", in, out, c.cc, opts...) 2079 if err != nil { 2080 return nil, err 2081 } 2082 return out, nil 2083 } 2084 2085 func (c *apiServiceClient) GetEventsByHash(ctx context.Context, in *HashRequest, opts ...grpc.CallOption) (*EventsResponse, error) { 2086 out := new(EventsResponse) 2087 err := grpc.Invoke(ctx, "/rpcpb.ApiService/GetEventsByHash", in, out, c.cc, opts...) 2088 if err != nil { 2089 return nil, err 2090 } 2091 return out, nil 2092 } 2093 2094 func (c *apiServiceClient) GetDynasty(ctx context.Context, in *ByBlockHeightRequest, opts ...grpc.CallOption) (*GetDynastyResponse, error) { 2095 out := new(GetDynastyResponse) 2096 err := grpc.Invoke(ctx, "/rpcpb.ApiService/GetDynasty", in, out, c.cc, opts...) 2097 if err != nil { 2098 return nil, err 2099 } 2100 return out, nil 2101 } 2102 2103 func (c *apiServiceClient) VerifySignature(ctx context.Context, in *VerifySignatureRequest, opts ...grpc.CallOption) (*VerifySignatureResponse, error) { 2104 out := new(VerifySignatureResponse) 2105 err := grpc.Invoke(ctx, "/rpcpb.ApiService/VerifySignature", in, out, c.cc, opts...) 2106 if err != nil { 2107 return nil, err 2108 } 2109 return out, nil 2110 } 2111 2112 // Server API for ApiService service 2113 2114 type ApiServiceServer interface { 2115 // Return the state of the neb. 2116 GetNebState(context.Context, *NonParamsRequest) (*GetNebStateResponse, error) 2117 // Return the latest irreversible block. 2118 LatestIrreversibleBlock(context.Context, *NonParamsRequest) (*BlockResponse, error) 2119 // Return the state of the account. 2120 GetAccountState(context.Context, *GetAccountStateRequest) (*GetAccountStateResponse, error) 2121 // Call transaction 2122 Call(context.Context, *TransactionRequest) (*CallResponse, error) 2123 // Submit the signed transaction. 2124 SendRawTransaction(context.Context, *SendRawTransactionRequest) (*SendTransactionResponse, error) 2125 // Get block info by the block hash. 2126 GetBlockByHash(context.Context, *GetBlockByHashRequest) (*BlockResponse, error) 2127 // Get block info by the block height. 2128 GetBlockByHeight(context.Context, *GetBlockByHeightRequest) (*BlockResponse, error) 2129 // Get transactionReceipt info by tansaction hash. 2130 GetTransactionReceipt(context.Context, *GetTransactionByHashRequest) (*TransactionResponse, error) 2131 // Get transactionReceipt info by tansaction hash. 2132 GetTransactionByContract(context.Context, *GetTransactionByContractRequest) (*TransactionResponse, error) 2133 // Subscribe message 2134 Subscribe(*SubscribeRequest, ApiService_SubscribeServer) error 2135 // Get GasPrice 2136 GetGasPrice(context.Context, *NonParamsRequest) (*GasPriceResponse, error) 2137 // EstimateGas 2138 EstimateGas(context.Context, *TransactionRequest) (*GasResponse, error) 2139 GetEventsByHash(context.Context, *HashRequest) (*EventsResponse, error) 2140 GetDynasty(context.Context, *ByBlockHeightRequest) (*GetDynastyResponse, error) 2141 // Verify Signature. 2142 VerifySignature(context.Context, *VerifySignatureRequest) (*VerifySignatureResponse, error) 2143 } 2144 2145 func RegisterApiServiceServer(s *grpc.Server, srv ApiServiceServer) { 2146 s.RegisterService(&_ApiService_serviceDesc, srv) 2147 } 2148 2149 func _ApiService_GetNebState_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 2150 in := new(NonParamsRequest) 2151 if err := dec(in); err != nil { 2152 return nil, err 2153 } 2154 if interceptor == nil { 2155 return srv.(ApiServiceServer).GetNebState(ctx, in) 2156 } 2157 info := &grpc.UnaryServerInfo{ 2158 Server: srv, 2159 FullMethod: "/rpcpb.ApiService/GetNebState", 2160 } 2161 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 2162 return srv.(ApiServiceServer).GetNebState(ctx, req.(*NonParamsRequest)) 2163 } 2164 return interceptor(ctx, in, info, handler) 2165 } 2166 2167 func _ApiService_LatestIrreversibleBlock_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 2168 in := new(NonParamsRequest) 2169 if err := dec(in); err != nil { 2170 return nil, err 2171 } 2172 if interceptor == nil { 2173 return srv.(ApiServiceServer).LatestIrreversibleBlock(ctx, in) 2174 } 2175 info := &grpc.UnaryServerInfo{ 2176 Server: srv, 2177 FullMethod: "/rpcpb.ApiService/LatestIrreversibleBlock", 2178 } 2179 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 2180 return srv.(ApiServiceServer).LatestIrreversibleBlock(ctx, req.(*NonParamsRequest)) 2181 } 2182 return interceptor(ctx, in, info, handler) 2183 } 2184 2185 func _ApiService_GetAccountState_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 2186 in := new(GetAccountStateRequest) 2187 if err := dec(in); err != nil { 2188 return nil, err 2189 } 2190 if interceptor == nil { 2191 return srv.(ApiServiceServer).GetAccountState(ctx, in) 2192 } 2193 info := &grpc.UnaryServerInfo{ 2194 Server: srv, 2195 FullMethod: "/rpcpb.ApiService/GetAccountState", 2196 } 2197 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 2198 return srv.(ApiServiceServer).GetAccountState(ctx, req.(*GetAccountStateRequest)) 2199 } 2200 return interceptor(ctx, in, info, handler) 2201 } 2202 2203 func _ApiService_Call_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 2204 in := new(TransactionRequest) 2205 if err := dec(in); err != nil { 2206 return nil, err 2207 } 2208 if interceptor == nil { 2209 return srv.(ApiServiceServer).Call(ctx, in) 2210 } 2211 info := &grpc.UnaryServerInfo{ 2212 Server: srv, 2213 FullMethod: "/rpcpb.ApiService/Call", 2214 } 2215 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 2216 return srv.(ApiServiceServer).Call(ctx, req.(*TransactionRequest)) 2217 } 2218 return interceptor(ctx, in, info, handler) 2219 } 2220 2221 func _ApiService_SendRawTransaction_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 2222 in := new(SendRawTransactionRequest) 2223 if err := dec(in); err != nil { 2224 return nil, err 2225 } 2226 if interceptor == nil { 2227 return srv.(ApiServiceServer).SendRawTransaction(ctx, in) 2228 } 2229 info := &grpc.UnaryServerInfo{ 2230 Server: srv, 2231 FullMethod: "/rpcpb.ApiService/SendRawTransaction", 2232 } 2233 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 2234 return srv.(ApiServiceServer).SendRawTransaction(ctx, req.(*SendRawTransactionRequest)) 2235 } 2236 return interceptor(ctx, in, info, handler) 2237 } 2238 2239 func _ApiService_GetBlockByHash_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 2240 in := new(GetBlockByHashRequest) 2241 if err := dec(in); err != nil { 2242 return nil, err 2243 } 2244 if interceptor == nil { 2245 return srv.(ApiServiceServer).GetBlockByHash(ctx, in) 2246 } 2247 info := &grpc.UnaryServerInfo{ 2248 Server: srv, 2249 FullMethod: "/rpcpb.ApiService/GetBlockByHash", 2250 } 2251 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 2252 return srv.(ApiServiceServer).GetBlockByHash(ctx, req.(*GetBlockByHashRequest)) 2253 } 2254 return interceptor(ctx, in, info, handler) 2255 } 2256 2257 func _ApiService_GetBlockByHeight_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 2258 in := new(GetBlockByHeightRequest) 2259 if err := dec(in); err != nil { 2260 return nil, err 2261 } 2262 if interceptor == nil { 2263 return srv.(ApiServiceServer).GetBlockByHeight(ctx, in) 2264 } 2265 info := &grpc.UnaryServerInfo{ 2266 Server: srv, 2267 FullMethod: "/rpcpb.ApiService/GetBlockByHeight", 2268 } 2269 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 2270 return srv.(ApiServiceServer).GetBlockByHeight(ctx, req.(*GetBlockByHeightRequest)) 2271 } 2272 return interceptor(ctx, in, info, handler) 2273 } 2274 2275 func _ApiService_GetTransactionReceipt_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 2276 in := new(GetTransactionByHashRequest) 2277 if err := dec(in); err != nil { 2278 return nil, err 2279 } 2280 if interceptor == nil { 2281 return srv.(ApiServiceServer).GetTransactionReceipt(ctx, in) 2282 } 2283 info := &grpc.UnaryServerInfo{ 2284 Server: srv, 2285 FullMethod: "/rpcpb.ApiService/GetTransactionReceipt", 2286 } 2287 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 2288 return srv.(ApiServiceServer).GetTransactionReceipt(ctx, req.(*GetTransactionByHashRequest)) 2289 } 2290 return interceptor(ctx, in, info, handler) 2291 } 2292 2293 func _ApiService_GetTransactionByContract_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 2294 in := new(GetTransactionByContractRequest) 2295 if err := dec(in); err != nil { 2296 return nil, err 2297 } 2298 if interceptor == nil { 2299 return srv.(ApiServiceServer).GetTransactionByContract(ctx, in) 2300 } 2301 info := &grpc.UnaryServerInfo{ 2302 Server: srv, 2303 FullMethod: "/rpcpb.ApiService/GetTransactionByContract", 2304 } 2305 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 2306 return srv.(ApiServiceServer).GetTransactionByContract(ctx, req.(*GetTransactionByContractRequest)) 2307 } 2308 return interceptor(ctx, in, info, handler) 2309 } 2310 2311 func _ApiService_Subscribe_Handler(srv interface{}, stream grpc.ServerStream) error { 2312 m := new(SubscribeRequest) 2313 if err := stream.RecvMsg(m); err != nil { 2314 return err 2315 } 2316 return srv.(ApiServiceServer).Subscribe(m, &apiServiceSubscribeServer{stream}) 2317 } 2318 2319 type ApiService_SubscribeServer interface { 2320 Send(*SubscribeResponse) error 2321 grpc.ServerStream 2322 } 2323 2324 type apiServiceSubscribeServer struct { 2325 grpc.ServerStream 2326 } 2327 2328 func (x *apiServiceSubscribeServer) Send(m *SubscribeResponse) error { 2329 return x.ServerStream.SendMsg(m) 2330 } 2331 2332 func _ApiService_GetGasPrice_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 2333 in := new(NonParamsRequest) 2334 if err := dec(in); err != nil { 2335 return nil, err 2336 } 2337 if interceptor == nil { 2338 return srv.(ApiServiceServer).GetGasPrice(ctx, in) 2339 } 2340 info := &grpc.UnaryServerInfo{ 2341 Server: srv, 2342 FullMethod: "/rpcpb.ApiService/GetGasPrice", 2343 } 2344 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 2345 return srv.(ApiServiceServer).GetGasPrice(ctx, req.(*NonParamsRequest)) 2346 } 2347 return interceptor(ctx, in, info, handler) 2348 } 2349 2350 func _ApiService_EstimateGas_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 2351 in := new(TransactionRequest) 2352 if err := dec(in); err != nil { 2353 return nil, err 2354 } 2355 if interceptor == nil { 2356 return srv.(ApiServiceServer).EstimateGas(ctx, in) 2357 } 2358 info := &grpc.UnaryServerInfo{ 2359 Server: srv, 2360 FullMethod: "/rpcpb.ApiService/EstimateGas", 2361 } 2362 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 2363 return srv.(ApiServiceServer).EstimateGas(ctx, req.(*TransactionRequest)) 2364 } 2365 return interceptor(ctx, in, info, handler) 2366 } 2367 2368 func _ApiService_GetEventsByHash_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 2369 in := new(HashRequest) 2370 if err := dec(in); err != nil { 2371 return nil, err 2372 } 2373 if interceptor == nil { 2374 return srv.(ApiServiceServer).GetEventsByHash(ctx, in) 2375 } 2376 info := &grpc.UnaryServerInfo{ 2377 Server: srv, 2378 FullMethod: "/rpcpb.ApiService/GetEventsByHash", 2379 } 2380 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 2381 return srv.(ApiServiceServer).GetEventsByHash(ctx, req.(*HashRequest)) 2382 } 2383 return interceptor(ctx, in, info, handler) 2384 } 2385 2386 func _ApiService_GetDynasty_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 2387 in := new(ByBlockHeightRequest) 2388 if err := dec(in); err != nil { 2389 return nil, err 2390 } 2391 if interceptor == nil { 2392 return srv.(ApiServiceServer).GetDynasty(ctx, in) 2393 } 2394 info := &grpc.UnaryServerInfo{ 2395 Server: srv, 2396 FullMethod: "/rpcpb.ApiService/GetDynasty", 2397 } 2398 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 2399 return srv.(ApiServiceServer).GetDynasty(ctx, req.(*ByBlockHeightRequest)) 2400 } 2401 return interceptor(ctx, in, info, handler) 2402 } 2403 2404 func _ApiService_VerifySignature_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 2405 in := new(VerifySignatureRequest) 2406 if err := dec(in); err != nil { 2407 return nil, err 2408 } 2409 if interceptor == nil { 2410 return srv.(ApiServiceServer).VerifySignature(ctx, in) 2411 } 2412 info := &grpc.UnaryServerInfo{ 2413 Server: srv, 2414 FullMethod: "/rpcpb.ApiService/VerifySignature", 2415 } 2416 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 2417 return srv.(ApiServiceServer).VerifySignature(ctx, req.(*VerifySignatureRequest)) 2418 } 2419 return interceptor(ctx, in, info, handler) 2420 } 2421 2422 var _ApiService_serviceDesc = grpc.ServiceDesc{ 2423 ServiceName: "rpcpb.ApiService", 2424 HandlerType: (*ApiServiceServer)(nil), 2425 Methods: []grpc.MethodDesc{ 2426 { 2427 MethodName: "GetNebState", 2428 Handler: _ApiService_GetNebState_Handler, 2429 }, 2430 { 2431 MethodName: "LatestIrreversibleBlock", 2432 Handler: _ApiService_LatestIrreversibleBlock_Handler, 2433 }, 2434 { 2435 MethodName: "GetAccountState", 2436 Handler: _ApiService_GetAccountState_Handler, 2437 }, 2438 { 2439 MethodName: "Call", 2440 Handler: _ApiService_Call_Handler, 2441 }, 2442 { 2443 MethodName: "SendRawTransaction", 2444 Handler: _ApiService_SendRawTransaction_Handler, 2445 }, 2446 { 2447 MethodName: "GetBlockByHash", 2448 Handler: _ApiService_GetBlockByHash_Handler, 2449 }, 2450 { 2451 MethodName: "GetBlockByHeight", 2452 Handler: _ApiService_GetBlockByHeight_Handler, 2453 }, 2454 { 2455 MethodName: "GetTransactionReceipt", 2456 Handler: _ApiService_GetTransactionReceipt_Handler, 2457 }, 2458 { 2459 MethodName: "GetTransactionByContract", 2460 Handler: _ApiService_GetTransactionByContract_Handler, 2461 }, 2462 { 2463 MethodName: "GetGasPrice", 2464 Handler: _ApiService_GetGasPrice_Handler, 2465 }, 2466 { 2467 MethodName: "EstimateGas", 2468 Handler: _ApiService_EstimateGas_Handler, 2469 }, 2470 { 2471 MethodName: "GetEventsByHash", 2472 Handler: _ApiService_GetEventsByHash_Handler, 2473 }, 2474 { 2475 MethodName: "GetDynasty", 2476 Handler: _ApiService_GetDynasty_Handler, 2477 }, 2478 { 2479 MethodName: "VerifySignature", 2480 Handler: _ApiService_VerifySignature_Handler, 2481 }, 2482 }, 2483 Streams: []grpc.StreamDesc{ 2484 { 2485 StreamName: "Subscribe", 2486 Handler: _ApiService_Subscribe_Handler, 2487 ServerStreams: true, 2488 }, 2489 }, 2490 Metadata: "rpc.proto", 2491 } 2492 2493 // Client API for AdminService service 2494 2495 type AdminServiceClient interface { 2496 // Accounts return account list. 2497 Accounts(ctx context.Context, in *NonParamsRequest, opts ...grpc.CallOption) (*AccountsResponse, error) 2498 // NewAccount create a new account with passphrase 2499 NewAccount(ctx context.Context, in *NewAccountRequest, opts ...grpc.CallOption) (*NewAccountResponse, error) 2500 // UnlockAccount unlock account with passphrase 2501 UnlockAccount(ctx context.Context, in *UnlockAccountRequest, opts ...grpc.CallOption) (*UnlockAccountResponse, error) 2502 // LockAccount lock account 2503 LockAccount(ctx context.Context, in *LockAccountRequest, opts ...grpc.CallOption) (*LockAccountResponse, error) 2504 // Verify, sign, and send the transaction. 2505 SendTransaction(ctx context.Context, in *TransactionRequest, opts ...grpc.CallOption) (*SendTransactionResponse, error) 2506 // Sign sign msg 2507 SignHash(ctx context.Context, in *SignHashRequest, opts ...grpc.CallOption) (*SignHashResponse, error) 2508 GenerateRandomSeed(ctx context.Context, in *GenerateRandomSeedRequest, opts ...grpc.CallOption) (*GenerateRandomSeedResponse, error) 2509 // Sign sign transaction 2510 SignTransactionWithPassphrase(ctx context.Context, in *SignTransactionPassphraseRequest, opts ...grpc.CallOption) (*SignTransactionPassphraseResponse, error) 2511 // SendTransactionWithPassphrase send transaction with passphrase 2512 SendTransactionWithPassphrase(ctx context.Context, in *SendTransactionPassphraseRequest, opts ...grpc.CallOption) (*SendTransactionResponse, error) 2513 StartPprof(ctx context.Context, in *PprofRequest, opts ...grpc.CallOption) (*PprofResponse, error) 2514 // Get Config 2515 GetConfig(ctx context.Context, in *NonParamsRequest, opts ...grpc.CallOption) (*GetConfigResponse, error) 2516 // Return the p2p node info. 2517 NodeInfo(ctx context.Context, in *NonParamsRequest, opts ...grpc.CallOption) (*NodeInfoResponse, error) 2518 } 2519 2520 type adminServiceClient struct { 2521 cc *grpc.ClientConn 2522 } 2523 2524 func NewAdminServiceClient(cc *grpc.ClientConn) AdminServiceClient { 2525 return &adminServiceClient{cc} 2526 } 2527 2528 func (c *adminServiceClient) Accounts(ctx context.Context, in *NonParamsRequest, opts ...grpc.CallOption) (*AccountsResponse, error) { 2529 out := new(AccountsResponse) 2530 err := grpc.Invoke(ctx, "/rpcpb.AdminService/Accounts", in, out, c.cc, opts...) 2531 if err != nil { 2532 return nil, err 2533 } 2534 return out, nil 2535 } 2536 2537 func (c *adminServiceClient) NewAccount(ctx context.Context, in *NewAccountRequest, opts ...grpc.CallOption) (*NewAccountResponse, error) { 2538 out := new(NewAccountResponse) 2539 err := grpc.Invoke(ctx, "/rpcpb.AdminService/NewAccount", in, out, c.cc, opts...) 2540 if err != nil { 2541 return nil, err 2542 } 2543 return out, nil 2544 } 2545 2546 func (c *adminServiceClient) UnlockAccount(ctx context.Context, in *UnlockAccountRequest, opts ...grpc.CallOption) (*UnlockAccountResponse, error) { 2547 out := new(UnlockAccountResponse) 2548 err := grpc.Invoke(ctx, "/rpcpb.AdminService/UnlockAccount", in, out, c.cc, opts...) 2549 if err != nil { 2550 return nil, err 2551 } 2552 return out, nil 2553 } 2554 2555 func (c *adminServiceClient) LockAccount(ctx context.Context, in *LockAccountRequest, opts ...grpc.CallOption) (*LockAccountResponse, error) { 2556 out := new(LockAccountResponse) 2557 err := grpc.Invoke(ctx, "/rpcpb.AdminService/LockAccount", in, out, c.cc, opts...) 2558 if err != nil { 2559 return nil, err 2560 } 2561 return out, nil 2562 } 2563 2564 func (c *adminServiceClient) SendTransaction(ctx context.Context, in *TransactionRequest, opts ...grpc.CallOption) (*SendTransactionResponse, error) { 2565 out := new(SendTransactionResponse) 2566 err := grpc.Invoke(ctx, "/rpcpb.AdminService/SendTransaction", in, out, c.cc, opts...) 2567 if err != nil { 2568 return nil, err 2569 } 2570 return out, nil 2571 } 2572 2573 func (c *adminServiceClient) SignHash(ctx context.Context, in *SignHashRequest, opts ...grpc.CallOption) (*SignHashResponse, error) { 2574 out := new(SignHashResponse) 2575 err := grpc.Invoke(ctx, "/rpcpb.AdminService/SignHash", in, out, c.cc, opts...) 2576 if err != nil { 2577 return nil, err 2578 } 2579 return out, nil 2580 } 2581 2582 func (c *adminServiceClient) GenerateRandomSeed(ctx context.Context, in *GenerateRandomSeedRequest, opts ...grpc.CallOption) (*GenerateRandomSeedResponse, error) { 2583 out := new(GenerateRandomSeedResponse) 2584 err := grpc.Invoke(ctx, "/rpcpb.AdminService/GenerateRandomSeed", in, out, c.cc, opts...) 2585 if err != nil { 2586 return nil, err 2587 } 2588 return out, nil 2589 } 2590 2591 func (c *adminServiceClient) SignTransactionWithPassphrase(ctx context.Context, in *SignTransactionPassphraseRequest, opts ...grpc.CallOption) (*SignTransactionPassphraseResponse, error) { 2592 out := new(SignTransactionPassphraseResponse) 2593 err := grpc.Invoke(ctx, "/rpcpb.AdminService/SignTransactionWithPassphrase", in, out, c.cc, opts...) 2594 if err != nil { 2595 return nil, err 2596 } 2597 return out, nil 2598 } 2599 2600 func (c *adminServiceClient) SendTransactionWithPassphrase(ctx context.Context, in *SendTransactionPassphraseRequest, opts ...grpc.CallOption) (*SendTransactionResponse, error) { 2601 out := new(SendTransactionResponse) 2602 err := grpc.Invoke(ctx, "/rpcpb.AdminService/SendTransactionWithPassphrase", in, out, c.cc, opts...) 2603 if err != nil { 2604 return nil, err 2605 } 2606 return out, nil 2607 } 2608 2609 func (c *adminServiceClient) StartPprof(ctx context.Context, in *PprofRequest, opts ...grpc.CallOption) (*PprofResponse, error) { 2610 out := new(PprofResponse) 2611 err := grpc.Invoke(ctx, "/rpcpb.AdminService/StartPprof", in, out, c.cc, opts...) 2612 if err != nil { 2613 return nil, err 2614 } 2615 return out, nil 2616 } 2617 2618 func (c *adminServiceClient) GetConfig(ctx context.Context, in *NonParamsRequest, opts ...grpc.CallOption) (*GetConfigResponse, error) { 2619 out := new(GetConfigResponse) 2620 err := grpc.Invoke(ctx, "/rpcpb.AdminService/GetConfig", in, out, c.cc, opts...) 2621 if err != nil { 2622 return nil, err 2623 } 2624 return out, nil 2625 } 2626 2627 func (c *adminServiceClient) NodeInfo(ctx context.Context, in *NonParamsRequest, opts ...grpc.CallOption) (*NodeInfoResponse, error) { 2628 out := new(NodeInfoResponse) 2629 err := grpc.Invoke(ctx, "/rpcpb.AdminService/NodeInfo", in, out, c.cc, opts...) 2630 if err != nil { 2631 return nil, err 2632 } 2633 return out, nil 2634 } 2635 2636 // Server API for AdminService service 2637 2638 type AdminServiceServer interface { 2639 // Accounts return account list. 2640 Accounts(context.Context, *NonParamsRequest) (*AccountsResponse, error) 2641 // NewAccount create a new account with passphrase 2642 NewAccount(context.Context, *NewAccountRequest) (*NewAccountResponse, error) 2643 // UnlockAccount unlock account with passphrase 2644 UnlockAccount(context.Context, *UnlockAccountRequest) (*UnlockAccountResponse, error) 2645 // LockAccount lock account 2646 LockAccount(context.Context, *LockAccountRequest) (*LockAccountResponse, error) 2647 // Verify, sign, and send the transaction. 2648 SendTransaction(context.Context, *TransactionRequest) (*SendTransactionResponse, error) 2649 // Sign sign msg 2650 SignHash(context.Context, *SignHashRequest) (*SignHashResponse, error) 2651 GenerateRandomSeed(context.Context, *GenerateRandomSeedRequest) (*GenerateRandomSeedResponse, error) 2652 // Sign sign transaction 2653 SignTransactionWithPassphrase(context.Context, *SignTransactionPassphraseRequest) (*SignTransactionPassphraseResponse, error) 2654 // SendTransactionWithPassphrase send transaction with passphrase 2655 SendTransactionWithPassphrase(context.Context, *SendTransactionPassphraseRequest) (*SendTransactionResponse, error) 2656 StartPprof(context.Context, *PprofRequest) (*PprofResponse, error) 2657 // Get Config 2658 GetConfig(context.Context, *NonParamsRequest) (*GetConfigResponse, error) 2659 // Return the p2p node info. 2660 NodeInfo(context.Context, *NonParamsRequest) (*NodeInfoResponse, error) 2661 } 2662 2663 func RegisterAdminServiceServer(s *grpc.Server, srv AdminServiceServer) { 2664 s.RegisterService(&_AdminService_serviceDesc, srv) 2665 } 2666 2667 func _AdminService_Accounts_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 2668 in := new(NonParamsRequest) 2669 if err := dec(in); err != nil { 2670 return nil, err 2671 } 2672 if interceptor == nil { 2673 return srv.(AdminServiceServer).Accounts(ctx, in) 2674 } 2675 info := &grpc.UnaryServerInfo{ 2676 Server: srv, 2677 FullMethod: "/rpcpb.AdminService/Accounts", 2678 } 2679 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 2680 return srv.(AdminServiceServer).Accounts(ctx, req.(*NonParamsRequest)) 2681 } 2682 return interceptor(ctx, in, info, handler) 2683 } 2684 2685 func _AdminService_NewAccount_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 2686 in := new(NewAccountRequest) 2687 if err := dec(in); err != nil { 2688 return nil, err 2689 } 2690 if interceptor == nil { 2691 return srv.(AdminServiceServer).NewAccount(ctx, in) 2692 } 2693 info := &grpc.UnaryServerInfo{ 2694 Server: srv, 2695 FullMethod: "/rpcpb.AdminService/NewAccount", 2696 } 2697 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 2698 return srv.(AdminServiceServer).NewAccount(ctx, req.(*NewAccountRequest)) 2699 } 2700 return interceptor(ctx, in, info, handler) 2701 } 2702 2703 func _AdminService_UnlockAccount_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 2704 in := new(UnlockAccountRequest) 2705 if err := dec(in); err != nil { 2706 return nil, err 2707 } 2708 if interceptor == nil { 2709 return srv.(AdminServiceServer).UnlockAccount(ctx, in) 2710 } 2711 info := &grpc.UnaryServerInfo{ 2712 Server: srv, 2713 FullMethod: "/rpcpb.AdminService/UnlockAccount", 2714 } 2715 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 2716 return srv.(AdminServiceServer).UnlockAccount(ctx, req.(*UnlockAccountRequest)) 2717 } 2718 return interceptor(ctx, in, info, handler) 2719 } 2720 2721 func _AdminService_LockAccount_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 2722 in := new(LockAccountRequest) 2723 if err := dec(in); err != nil { 2724 return nil, err 2725 } 2726 if interceptor == nil { 2727 return srv.(AdminServiceServer).LockAccount(ctx, in) 2728 } 2729 info := &grpc.UnaryServerInfo{ 2730 Server: srv, 2731 FullMethod: "/rpcpb.AdminService/LockAccount", 2732 } 2733 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 2734 return srv.(AdminServiceServer).LockAccount(ctx, req.(*LockAccountRequest)) 2735 } 2736 return interceptor(ctx, in, info, handler) 2737 } 2738 2739 func _AdminService_SendTransaction_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 2740 in := new(TransactionRequest) 2741 if err := dec(in); err != nil { 2742 return nil, err 2743 } 2744 if interceptor == nil { 2745 return srv.(AdminServiceServer).SendTransaction(ctx, in) 2746 } 2747 info := &grpc.UnaryServerInfo{ 2748 Server: srv, 2749 FullMethod: "/rpcpb.AdminService/SendTransaction", 2750 } 2751 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 2752 return srv.(AdminServiceServer).SendTransaction(ctx, req.(*TransactionRequest)) 2753 } 2754 return interceptor(ctx, in, info, handler) 2755 } 2756 2757 func _AdminService_SignHash_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 2758 in := new(SignHashRequest) 2759 if err := dec(in); err != nil { 2760 return nil, err 2761 } 2762 if interceptor == nil { 2763 return srv.(AdminServiceServer).SignHash(ctx, in) 2764 } 2765 info := &grpc.UnaryServerInfo{ 2766 Server: srv, 2767 FullMethod: "/rpcpb.AdminService/SignHash", 2768 } 2769 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 2770 return srv.(AdminServiceServer).SignHash(ctx, req.(*SignHashRequest)) 2771 } 2772 return interceptor(ctx, in, info, handler) 2773 } 2774 2775 func _AdminService_GenerateRandomSeed_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 2776 in := new(GenerateRandomSeedRequest) 2777 if err := dec(in); err != nil { 2778 return nil, err 2779 } 2780 if interceptor == nil { 2781 return srv.(AdminServiceServer).GenerateRandomSeed(ctx, in) 2782 } 2783 info := &grpc.UnaryServerInfo{ 2784 Server: srv, 2785 FullMethod: "/rpcpb.AdminService/GenerateRandomSeed", 2786 } 2787 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 2788 return srv.(AdminServiceServer).GenerateRandomSeed(ctx, req.(*GenerateRandomSeedRequest)) 2789 } 2790 return interceptor(ctx, in, info, handler) 2791 } 2792 2793 func _AdminService_SignTransactionWithPassphrase_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 2794 in := new(SignTransactionPassphraseRequest) 2795 if err := dec(in); err != nil { 2796 return nil, err 2797 } 2798 if interceptor == nil { 2799 return srv.(AdminServiceServer).SignTransactionWithPassphrase(ctx, in) 2800 } 2801 info := &grpc.UnaryServerInfo{ 2802 Server: srv, 2803 FullMethod: "/rpcpb.AdminService/SignTransactionWithPassphrase", 2804 } 2805 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 2806 return srv.(AdminServiceServer).SignTransactionWithPassphrase(ctx, req.(*SignTransactionPassphraseRequest)) 2807 } 2808 return interceptor(ctx, in, info, handler) 2809 } 2810 2811 func _AdminService_SendTransactionWithPassphrase_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 2812 in := new(SendTransactionPassphraseRequest) 2813 if err := dec(in); err != nil { 2814 return nil, err 2815 } 2816 if interceptor == nil { 2817 return srv.(AdminServiceServer).SendTransactionWithPassphrase(ctx, in) 2818 } 2819 info := &grpc.UnaryServerInfo{ 2820 Server: srv, 2821 FullMethod: "/rpcpb.AdminService/SendTransactionWithPassphrase", 2822 } 2823 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 2824 return srv.(AdminServiceServer).SendTransactionWithPassphrase(ctx, req.(*SendTransactionPassphraseRequest)) 2825 } 2826 return interceptor(ctx, in, info, handler) 2827 } 2828 2829 func _AdminService_StartPprof_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 2830 in := new(PprofRequest) 2831 if err := dec(in); err != nil { 2832 return nil, err 2833 } 2834 if interceptor == nil { 2835 return srv.(AdminServiceServer).StartPprof(ctx, in) 2836 } 2837 info := &grpc.UnaryServerInfo{ 2838 Server: srv, 2839 FullMethod: "/rpcpb.AdminService/StartPprof", 2840 } 2841 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 2842 return srv.(AdminServiceServer).StartPprof(ctx, req.(*PprofRequest)) 2843 } 2844 return interceptor(ctx, in, info, handler) 2845 } 2846 2847 func _AdminService_GetConfig_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 2848 in := new(NonParamsRequest) 2849 if err := dec(in); err != nil { 2850 return nil, err 2851 } 2852 if interceptor == nil { 2853 return srv.(AdminServiceServer).GetConfig(ctx, in) 2854 } 2855 info := &grpc.UnaryServerInfo{ 2856 Server: srv, 2857 FullMethod: "/rpcpb.AdminService/GetConfig", 2858 } 2859 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 2860 return srv.(AdminServiceServer).GetConfig(ctx, req.(*NonParamsRequest)) 2861 } 2862 return interceptor(ctx, in, info, handler) 2863 } 2864 2865 func _AdminService_NodeInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 2866 in := new(NonParamsRequest) 2867 if err := dec(in); err != nil { 2868 return nil, err 2869 } 2870 if interceptor == nil { 2871 return srv.(AdminServiceServer).NodeInfo(ctx, in) 2872 } 2873 info := &grpc.UnaryServerInfo{ 2874 Server: srv, 2875 FullMethod: "/rpcpb.AdminService/NodeInfo", 2876 } 2877 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 2878 return srv.(AdminServiceServer).NodeInfo(ctx, req.(*NonParamsRequest)) 2879 } 2880 return interceptor(ctx, in, info, handler) 2881 } 2882 2883 var _AdminService_serviceDesc = grpc.ServiceDesc{ 2884 ServiceName: "rpcpb.AdminService", 2885 HandlerType: (*AdminServiceServer)(nil), 2886 Methods: []grpc.MethodDesc{ 2887 { 2888 MethodName: "Accounts", 2889 Handler: _AdminService_Accounts_Handler, 2890 }, 2891 { 2892 MethodName: "NewAccount", 2893 Handler: _AdminService_NewAccount_Handler, 2894 }, 2895 { 2896 MethodName: "UnlockAccount", 2897 Handler: _AdminService_UnlockAccount_Handler, 2898 }, 2899 { 2900 MethodName: "LockAccount", 2901 Handler: _AdminService_LockAccount_Handler, 2902 }, 2903 { 2904 MethodName: "SendTransaction", 2905 Handler: _AdminService_SendTransaction_Handler, 2906 }, 2907 { 2908 MethodName: "SignHash", 2909 Handler: _AdminService_SignHash_Handler, 2910 }, 2911 { 2912 MethodName: "GenerateRandomSeed", 2913 Handler: _AdminService_GenerateRandomSeed_Handler, 2914 }, 2915 { 2916 MethodName: "SignTransactionWithPassphrase", 2917 Handler: _AdminService_SignTransactionWithPassphrase_Handler, 2918 }, 2919 { 2920 MethodName: "SendTransactionWithPassphrase", 2921 Handler: _AdminService_SendTransactionWithPassphrase_Handler, 2922 }, 2923 { 2924 MethodName: "StartPprof", 2925 Handler: _AdminService_StartPprof_Handler, 2926 }, 2927 { 2928 MethodName: "GetConfig", 2929 Handler: _AdminService_GetConfig_Handler, 2930 }, 2931 { 2932 MethodName: "NodeInfo", 2933 Handler: _AdminService_NodeInfo_Handler, 2934 }, 2935 }, 2936 Streams: []grpc.StreamDesc{}, 2937 Metadata: "rpc.proto", 2938 } 2939 2940 func init() { proto.RegisterFile("rpc.proto", fileDescriptorRpc) } 2941 2942 var fileDescriptorRpc = []byte{ 2943 // 2732 bytes of a gzipped FileDescriptorProto 2944 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00,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x19, 0xf0, 0xae, 0xcf, 0xa5, 0x5a, 0xd6, 0x0b, 2956 0x83, 0x81, 0x37, 0xd4, 0xeb, 0xe8, 0x43, 0x68, 0x5e, 0x4e, 0xbb, 0xa2, 0x17, 0x79, 0x5d, 0xee, 2957 0xf2, 0x5f, 0x4f, 0xb9, 0x90, 0x64, 0x17, 0x56, 0x65, 0x38, 0xf1, 0x7a, 0xc2, 0x29, 0x1d, 0x55, 2958 0x4e, 0x6a, 0xae, 0xa1, 0xe8, 0x27, 0x70, 0x2b, 0x35, 0x57, 0x4c, 0x94, 0x2d, 0x64, 0x07, 0x56, 2959 0x70, 0xd8, 0x29, 0x1d, 0x95, 0x4e, 0x6a, 0xae, 0x26, 0x08, 0x81, 0x6a, 0x9f, 0x49, 0xe6, 0x94, 2960 0x91, 0x89, 0xdf, 0x94, 0x40, 0xf3, 0x45, 0x18, 0x5c, 0xb0, 0x88, 0x8d, 0x85, 0x51, 0x45, 0xff, 2961 0x52, 0x56, 0xcc, 0x3e, 0x7f, 0x16, 0x0c, 0xc2, 0x58, 0xe4, 0x26, 0x94, 0xbd, 0xbe, 0x91, 0x57, 2962 0xf6, 0xfa, 0x64, 0x1f, 0xd6, 0x7b, 0x23, 0xe6, 0x05, 0x1d, 0xaf, 0x8f, 0x02, 0x37, 0xdc, 0x35, 2963 0xa4, 0x9f, 0xf5, 0x49, 0x0b, 0xd6, 0x7b, 0xa1, 0x17, 0x74, 0x99, 0xe0, 0x4e, 0x05, 0x17, 0xc4, 2964 0x34, 0xb9, 0x0b, 0x30, 0xe1, 0x3c, 0xea, 0xf4, 0xc2, 0x69, 0x20, 0x9d, 0x2a, 0x2e, 0xac, 0x29, 2965 0xce, 0x53, 0xc5, 0x20, 0x14, 0x1a, 0xe2, 0x3a, 0xe8, 0x8d, 0xa2, 0x30, 0xf0, 0x6e, 0x78, 0xdf, 2966 0x59, 0x39, 0x2a, 0x9d, 0xac, 0xbb, 0x19, 0x1e, 0xb9, 0x07, 0xf5, 0xee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40, 0xb0, 0x9e, 2989 0x82, 0x44, 0x2b, 0x9c, 0x40, 0x75, 0x10, 0x85, 0x63, 0xb3, 0x1d, 0xfc, 0x56, 0x17, 0x41, 0x86, 2990 0x66, 0x0f, 0x65, 0x19, 0x2a, 0x07, 0x5f, 0x31, 0x7f, 0x6a, 0x21, 0x40, 0x13, 0x89, 0xdb, 0xab, 2991 0x69, 0xb7, 0xdf, 0x81, 0xda, 0x90, 0x89, 0xce, 0x24, 0xf2, 0x7a, 0x1c, 0x9d, 0x59, 0x73, 0xd7, 2992 0x87, 0x4c, 0x5c, 0x28, 0xda, 0x0e, 0xfa, 0xde, 0xd8, 0x93, 0x26, 0x7e, 0xd5, 0xe0, 0x73, 0x45, 2993 0x93, 0x33, 0x85, 0x35, 0x81, 0x8c, 0x58, 0x4f, 0x62, 0xd0, 0xd6, 0xcf, 0x76, 0xcd, 0xed, 0x7d, 2994 0x6a, 0xd8, 0xc6, 0x66, 0x37, 0x9e, 0xa7, 0x36, 0xdb, 0xf5, 0x02, 0x16, 0x5d, 0x23, 0x2a, 0x34, 2995 0x5c, 0x43, 0x29, 0xdc, 0xb2, 0xf7, 0xc2, 0xa9, 0xe3, 0x48, 0x4c, 0xc7, 0x81, 0xb1, 0x63, 0x6e, 2996 0xe2, 0xf5, 0x84, 0xd3, 0x1b, 0xd8, 0xca, 0x29, 0x51, 0xa2, 0x45, 0x38, 0x8d, 0xe2, 0x70, 0x33, 2997 0x94, 0x3a, 0x69, 0xfd, 0xd5, 0x41, 0x29, 0xe6, 0xa4, 0x35, 0xeb, 0xa5, 0x0a, 0xb2, 0x16, 0xac, 2998 0x0f, 0xa6, 0x01, 0x3a, 0xd9, 0x62, 0xa6, 0xa5, 0x95, 0x6e, 0x16, 0x0d, 0x05, 0xba, 0xac, 0xe6, 2999 0xe2, 0x37, 0x6d, 0xc3, 0xfe, 0x25, 0x0f, 0xfa, 0x2e, 0x7b, 0x55, 0x7c, 0x3c, 0x08, 0xf4, 0x25, 3000 0xd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0x00, 0x8f, 0x27, 0xde, 0x25, 3067 0x8f, 0xae, 0x54, 0xee, 0xf7, 0x0d, 0xd4, 0x53, 0x8d, 0x32, 0xb2, 0x67, 0x0f, 0x27, 0xd7, 0xa8, 3068 0x6c, 0xd9, 0x34, 0xba, 0xa0, 0xab, 0x46, 0xf7, 0xbf, 0xfb, 0xfb, 0x3f, 0xff, 0x58, 0xde, 0x26, 3069 0xb7, 0xda, 0x57, 0x8f, 0xda, 0x53, 0xc1, 0xa3, 0x76, 0xc0, 0xbb, 0x58, 0x8f, 0x90, 0x5f, 0xc2, 3070 0xde, 0x73, 0x26, 0xb9, 0x90, 0xcf, 0xa2, 0x88, 0xa3, 0x97, 0xba, 0x3e, 0xc7, 0x2a, 0x6c, 0xbe, 3071 0xaa, 0x1d, 0x33, 0x90, 0x29, 0xd6, 0xe8, 0x0e, 0x2a, 0xd9, 0x24, 0x8d, 0x58, 0x89, 0xef, 0x75, 3072 0x49, 0x04, 0x5b, 0xb9, 0x7e, 0x14, 0xb9, 0x9b, 0x58, 0x5a, 0xd0, 0xf4, 0x6a, 0x1d, 0xce, 0x1b, 3073 0x36, 0x7a, 0x8e, 0x50, 0x4f, 0x8b, 0xde, 0x8e, 0xf5, 0x30, 0xd3, 0x6f, 0x53, 0xd3, 0x3e, 0x2a, 3074 0x3d, 0x24, 0x17, 0x50, 0x7d, 0xca, 0x7c, 0x9f, 0xcc, 0x7f, 0xa8, 0x5a, 0xdb, 0xb6, 0x31, 0x92, 3075 0x6a, 0x4d, 0x51, 0x07, 0x25, 0x13, 0xba, 0x11, 0x4b, 0xee, 0x31, 0xdf, 0x57, 0x12, 0x6f, 0x80, 3076 0xcc, 0x76, 0x18, 0xc8, 0x91, 0x11, 0x32, 0xb7, 0xf9, 0x10, 0xef, 0x65, 0x4e, 0xb7, 0x81, 0x52, 3077 0xd4, 0x78, 0x40, 0xf7, 0x62, 0x8d, 0x11, 0x7b, 0x95, 0x7a, 0x43, 0x95, 0xee, 0x11, 0x6c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