2020-04-24 14:46:45 -07:00
// Copyright (c) 2019-2020 The Zcash developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or https://www.opensource.org/licenses/mit-license.php .
2018-12-04 12:29:34 -08:00
// Code generated by protoc-gen-go. DO NOT EDIT.
2020-04-24 14:46:45 -07:00
// versions:
2020-05-04 17:11:13 -07:00
// protoc-gen-go v1.22.0
2020-04-24 14:46:45 -07:00
// protoc v3.11.4
2018-12-04 12:29:34 -08:00
// source: service.proto
2019-01-07 11:20:47 -08:00
package walletrpc
2018-12-04 15:21:53 -08:00
2018-12-04 12:29:34 -08:00
import (
2019-12-17 10:57:17 -08:00
context "context"
proto "github.com/golang/protobuf/proto"
2018-12-04 12:29:34 -08:00
grpc "google.golang.org/grpc"
2019-12-17 10:57:17 -08:00
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
2020-04-24 14:46:45 -07:00
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
2018-12-04 12:29:34 -08:00
)
2020-04-24 14:46:45 -07:00
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl . EnforceVersion ( 20 - protoimpl . MinVersion )
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl . EnforceVersion ( protoimpl . MaxVersion - 20 )
)
2018-12-04 12:29:34 -08:00
2020-04-24 14:46:45 -07:00
// This is a compile-time assertion that a sufficiently up-to-date version
// of the legacy proto package is being used.
const _ = proto . ProtoPackageIsVersion4
2018-12-04 12:29:34 -08:00
// A BlockID message contains identifiers to select a block: a height or a
2020-02-26 08:36:55 -08:00
// hash. Specification by hash is not implemented, but may be in the future.
2018-12-04 12:29:34 -08:00
type BlockID struct {
2020-04-24 14:46:45 -07:00
state protoimpl . MessageState
sizeCache protoimpl . SizeCache
unknownFields protoimpl . UnknownFields
2018-12-04 12:29:34 -08:00
2020-04-24 14:46:45 -07:00
Height uint64 ` protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty" `
Hash [ ] byte ` protobuf:"bytes,2,opt,name=hash,proto3" json:"hash,omitempty" `
2018-12-04 12:29:34 -08:00
}
2019-12-17 10:57:17 -08:00
2020-04-24 14:46:45 -07:00
func ( x * BlockID ) Reset ( ) {
* x = BlockID { }
if protoimpl . UnsafeEnabled {
mi := & file_service_proto_msgTypes [ 0 ]
ms := protoimpl . X . MessageStateOf ( protoimpl . Pointer ( x ) )
ms . StoreMessageInfo ( mi )
}
2018-12-04 12:29:34 -08:00
}
2020-04-24 14:46:45 -07:00
func ( x * BlockID ) String ( ) string {
return protoimpl . X . MessageStringOf ( x )
2018-12-04 12:29:34 -08:00
}
2020-04-24 14:46:45 -07:00
func ( * BlockID ) ProtoMessage ( ) { }
func ( x * BlockID ) ProtoReflect ( ) protoreflect . Message {
mi := & file_service_proto_msgTypes [ 0 ]
if protoimpl . UnsafeEnabled && x != nil {
ms := protoimpl . X . MessageStateOf ( protoimpl . Pointer ( x ) )
if ms . LoadMessageInfo ( ) == nil {
ms . StoreMessageInfo ( mi )
}
return ms
}
return mi . MessageOf ( x )
2018-12-04 12:29:34 -08:00
}
2020-04-24 14:46:45 -07:00
// Deprecated: Use BlockID.ProtoReflect.Descriptor instead.
func ( * BlockID ) Descriptor ( ) ( [ ] byte , [ ] int ) {
return file_service_proto_rawDescGZIP ( ) , [ ] int { 0 }
}
2018-12-04 12:29:34 -08:00
2020-04-24 14:46:45 -07:00
func ( x * BlockID ) GetHeight ( ) uint64 {
if x != nil {
return x . Height
2018-12-04 12:29:34 -08:00
}
return 0
}
2020-04-24 14:46:45 -07:00
func ( x * BlockID ) GetHash ( ) [ ] byte {
if x != nil {
return x . Hash
2018-12-04 12:29:34 -08:00
}
return nil
}
2020-02-26 08:36:55 -08:00
// BlockRange specifies a series of blocks from start to end inclusive.
// Both BlockIDs must be heights; specification by hash is not yet supported.
2018-12-04 12:29:34 -08:00
type BlockRange struct {
2020-04-24 14:46:45 -07:00
state protoimpl . MessageState
sizeCache protoimpl . SizeCache
unknownFields protoimpl . UnknownFields
2018-12-04 12:29:34 -08:00
2020-04-24 14:46:45 -07:00
Start * BlockID ` protobuf:"bytes,1,opt,name=start,proto3" json:"start,omitempty" `
End * BlockID ` protobuf:"bytes,2,opt,name=end,proto3" json:"end,omitempty" `
2018-12-04 12:29:34 -08:00
}
2019-12-17 10:57:17 -08:00
2020-04-24 14:46:45 -07:00
func ( x * BlockRange ) Reset ( ) {
* x = BlockRange { }
if protoimpl . UnsafeEnabled {
mi := & file_service_proto_msgTypes [ 1 ]
ms := protoimpl . X . MessageStateOf ( protoimpl . Pointer ( x ) )
ms . StoreMessageInfo ( mi )
}
2018-12-04 12:29:34 -08:00
}
2020-04-24 14:46:45 -07:00
func ( x * BlockRange ) String ( ) string {
return protoimpl . X . MessageStringOf ( x )
2018-12-04 12:29:34 -08:00
}
2020-04-24 14:46:45 -07:00
func ( * BlockRange ) ProtoMessage ( ) { }
func ( x * BlockRange ) ProtoReflect ( ) protoreflect . Message {
mi := & file_service_proto_msgTypes [ 1 ]
if protoimpl . UnsafeEnabled && x != nil {
ms := protoimpl . X . MessageStateOf ( protoimpl . Pointer ( x ) )
if ms . LoadMessageInfo ( ) == nil {
ms . StoreMessageInfo ( mi )
}
return ms
}
return mi . MessageOf ( x )
2018-12-04 12:29:34 -08:00
}
2020-04-24 14:46:45 -07:00
// Deprecated: Use BlockRange.ProtoReflect.Descriptor instead.
func ( * BlockRange ) Descriptor ( ) ( [ ] byte , [ ] int ) {
return file_service_proto_rawDescGZIP ( ) , [ ] int { 1 }
}
2018-12-04 12:29:34 -08:00
2020-04-24 14:46:45 -07:00
func ( x * BlockRange ) GetStart ( ) * BlockID {
if x != nil {
return x . Start
2018-12-04 12:29:34 -08:00
}
return nil
}
2020-04-24 14:46:45 -07:00
func ( x * BlockRange ) GetEnd ( ) * BlockID {
if x != nil {
return x . End
2018-12-04 12:29:34 -08:00
}
return nil
}
// A TxFilter contains the information needed to identify a particular
// transaction: either a block and an index, or a direct transaction hash.
2020-02-26 08:36:55 -08:00
// Currently, only specification by hash is supported.
2018-12-04 12:29:34 -08:00
type TxFilter struct {
2020-04-24 14:46:45 -07:00
state protoimpl . MessageState
sizeCache protoimpl . SizeCache
unknownFields protoimpl . UnknownFields
2018-12-04 12:29:34 -08:00
2020-04-24 14:46:45 -07:00
Block * BlockID ` protobuf:"bytes,1,opt,name=block,proto3" json:"block,omitempty" ` // block identifier, height or hash
Index uint64 ` protobuf:"varint,2,opt,name=index,proto3" json:"index,omitempty" ` // index within the block
Hash [ ] byte ` protobuf:"bytes,3,opt,name=hash,proto3" json:"hash,omitempty" ` // transaction ID (hash, txid)
2018-12-04 12:29:34 -08:00
}
2019-12-17 10:57:17 -08:00
2020-04-24 14:46:45 -07:00
func ( x * TxFilter ) Reset ( ) {
* x = TxFilter { }
if protoimpl . UnsafeEnabled {
mi := & file_service_proto_msgTypes [ 2 ]
ms := protoimpl . X . MessageStateOf ( protoimpl . Pointer ( x ) )
ms . StoreMessageInfo ( mi )
}
2018-12-04 12:29:34 -08:00
}
2020-04-24 14:46:45 -07:00
func ( x * TxFilter ) String ( ) string {
return protoimpl . X . MessageStringOf ( x )
2018-12-04 12:29:34 -08:00
}
2020-04-24 14:46:45 -07:00
func ( * TxFilter ) ProtoMessage ( ) { }
func ( x * TxFilter ) ProtoReflect ( ) protoreflect . Message {
mi := & file_service_proto_msgTypes [ 2 ]
if protoimpl . UnsafeEnabled && x != nil {
ms := protoimpl . X . MessageStateOf ( protoimpl . Pointer ( x ) )
if ms . LoadMessageInfo ( ) == nil {
ms . StoreMessageInfo ( mi )
}
return ms
}
return mi . MessageOf ( x )
2018-12-04 12:29:34 -08:00
}
2020-04-24 14:46:45 -07:00
// Deprecated: Use TxFilter.ProtoReflect.Descriptor instead.
func ( * TxFilter ) Descriptor ( ) ( [ ] byte , [ ] int ) {
return file_service_proto_rawDescGZIP ( ) , [ ] int { 2 }
}
2018-12-04 12:29:34 -08:00
2020-04-24 14:46:45 -07:00
func ( x * TxFilter ) GetBlock ( ) * BlockID {
if x != nil {
return x . Block
2018-12-04 12:29:34 -08:00
}
return nil
}
2020-04-24 14:46:45 -07:00
func ( x * TxFilter ) GetIndex ( ) uint64 {
if x != nil {
return x . Index
2018-12-04 12:29:34 -08:00
}
return 0
}
2020-04-24 14:46:45 -07:00
func ( x * TxFilter ) GetHash ( ) [ ] byte {
if x != nil {
return x . Hash
2018-12-04 12:29:34 -08:00
}
return nil
}
2019-11-27 15:32:26 -08:00
// RawTransaction contains the complete transaction data. It also optionally includes
2020-03-31 12:47:52 -07:00
// the block height in which the transaction was included.
2018-12-04 12:29:34 -08:00
type RawTransaction struct {
2020-04-24 14:46:45 -07:00
state protoimpl . MessageState
sizeCache protoimpl . SizeCache
unknownFields protoimpl . UnknownFields
2018-12-04 12:29:34 -08:00
2020-04-24 14:46:45 -07:00
Data [ ] byte ` protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty" ` // exact data returned by zcash 'getrawtransaction'
Height uint64 ` protobuf:"varint,2,opt,name=height,proto3" json:"height,omitempty" ` // height that the transaction was mined (or -1)
2018-12-04 12:29:34 -08:00
}
2019-12-17 10:57:17 -08:00
2020-04-24 14:46:45 -07:00
func ( x * RawTransaction ) Reset ( ) {
* x = RawTransaction { }
if protoimpl . UnsafeEnabled {
mi := & file_service_proto_msgTypes [ 3 ]
ms := protoimpl . X . MessageStateOf ( protoimpl . Pointer ( x ) )
ms . StoreMessageInfo ( mi )
}
2018-12-04 12:29:34 -08:00
}
2020-04-24 14:46:45 -07:00
func ( x * RawTransaction ) String ( ) string {
return protoimpl . X . MessageStringOf ( x )
2018-12-04 12:29:34 -08:00
}
2020-04-24 14:46:45 -07:00
func ( * RawTransaction ) ProtoMessage ( ) { }
func ( x * RawTransaction ) ProtoReflect ( ) protoreflect . Message {
mi := & file_service_proto_msgTypes [ 3 ]
if protoimpl . UnsafeEnabled && x != nil {
ms := protoimpl . X . MessageStateOf ( protoimpl . Pointer ( x ) )
if ms . LoadMessageInfo ( ) == nil {
ms . StoreMessageInfo ( mi )
}
return ms
}
return mi . MessageOf ( x )
2018-12-04 12:29:34 -08:00
}
2020-04-24 14:46:45 -07:00
// Deprecated: Use RawTransaction.ProtoReflect.Descriptor instead.
func ( * RawTransaction ) Descriptor ( ) ( [ ] byte , [ ] int ) {
return file_service_proto_rawDescGZIP ( ) , [ ] int { 3 }
}
2018-12-04 12:29:34 -08:00
2020-04-24 14:46:45 -07:00
func ( x * RawTransaction ) GetData ( ) [ ] byte {
if x != nil {
return x . Data
2018-12-04 12:29:34 -08:00
}
return nil
}
2020-04-24 14:46:45 -07:00
func ( x * RawTransaction ) GetHeight ( ) uint64 {
if x != nil {
return x . Height
2019-11-27 15:32:26 -08:00
}
return 0
}
2020-02-26 08:36:55 -08:00
// A SendResponse encodes an error code and a string. It is currently used
// only by SendTransaction(). If error code is zero, the operation was
// successful; if non-zero, it and the message specify the failure.
2018-12-04 12:29:34 -08:00
type SendResponse struct {
2020-04-24 14:46:45 -07:00
state protoimpl . MessageState
sizeCache protoimpl . SizeCache
unknownFields protoimpl . UnknownFields
2018-12-04 12:29:34 -08:00
2020-04-24 14:46:45 -07:00
ErrorCode int32 ` protobuf:"varint,1,opt,name=errorCode,proto3" json:"errorCode,omitempty" `
ErrorMessage string ` protobuf:"bytes,2,opt,name=errorMessage,proto3" json:"errorMessage,omitempty" `
2018-12-04 12:29:34 -08:00
}
2019-12-17 10:57:17 -08:00
2020-04-24 14:46:45 -07:00
func ( x * SendResponse ) Reset ( ) {
* x = SendResponse { }
if protoimpl . UnsafeEnabled {
mi := & file_service_proto_msgTypes [ 4 ]
ms := protoimpl . X . MessageStateOf ( protoimpl . Pointer ( x ) )
ms . StoreMessageInfo ( mi )
}
2018-12-04 12:29:34 -08:00
}
2020-04-24 14:46:45 -07:00
func ( x * SendResponse ) String ( ) string {
return protoimpl . X . MessageStringOf ( x )
2018-12-04 12:29:34 -08:00
}
2020-04-24 14:46:45 -07:00
func ( * SendResponse ) ProtoMessage ( ) { }
func ( x * SendResponse ) ProtoReflect ( ) protoreflect . Message {
mi := & file_service_proto_msgTypes [ 4 ]
if protoimpl . UnsafeEnabled && x != nil {
ms := protoimpl . X . MessageStateOf ( protoimpl . Pointer ( x ) )
if ms . LoadMessageInfo ( ) == nil {
ms . StoreMessageInfo ( mi )
}
return ms
}
return mi . MessageOf ( x )
2018-12-04 12:29:34 -08:00
}
2020-04-24 14:46:45 -07:00
// Deprecated: Use SendResponse.ProtoReflect.Descriptor instead.
func ( * SendResponse ) Descriptor ( ) ( [ ] byte , [ ] int ) {
return file_service_proto_rawDescGZIP ( ) , [ ] int { 4 }
}
2018-12-04 12:29:34 -08:00
2020-04-24 14:46:45 -07:00
func ( x * SendResponse ) GetErrorCode ( ) int32 {
if x != nil {
return x . ErrorCode
2018-12-04 12:29:34 -08:00
}
return 0
}
2020-04-24 14:46:45 -07:00
func ( x * SendResponse ) GetErrorMessage ( ) string {
if x != nil {
return x . ErrorMessage
2018-12-04 12:29:34 -08:00
}
return ""
}
2020-02-26 08:36:55 -08:00
// Chainspec is a placeholder to allow specification of a particular chain fork.
2018-12-04 12:29:34 -08:00
type ChainSpec struct {
2020-04-24 14:46:45 -07:00
state protoimpl . MessageState
sizeCache protoimpl . SizeCache
unknownFields protoimpl . UnknownFields
2018-12-04 12:29:34 -08:00
}
2020-04-24 14:46:45 -07:00
func ( x * ChainSpec ) Reset ( ) {
* x = ChainSpec { }
if protoimpl . UnsafeEnabled {
mi := & file_service_proto_msgTypes [ 5 ]
ms := protoimpl . X . MessageStateOf ( protoimpl . Pointer ( x ) )
ms . StoreMessageInfo ( mi )
}
2018-12-04 12:29:34 -08:00
}
2019-12-17 10:57:17 -08:00
2020-04-24 14:46:45 -07:00
func ( x * ChainSpec ) String ( ) string {
return protoimpl . X . MessageStringOf ( x )
2018-12-04 12:29:34 -08:00
}
2020-04-24 14:46:45 -07:00
func ( * ChainSpec ) ProtoMessage ( ) { }
func ( x * ChainSpec ) ProtoReflect ( ) protoreflect . Message {
mi := & file_service_proto_msgTypes [ 5 ]
if protoimpl . UnsafeEnabled && x != nil {
ms := protoimpl . X . MessageStateOf ( protoimpl . Pointer ( x ) )
if ms . LoadMessageInfo ( ) == nil {
ms . StoreMessageInfo ( mi )
}
return ms
}
return mi . MessageOf ( x )
2018-12-04 12:29:34 -08:00
}
2020-04-24 14:46:45 -07:00
// Deprecated: Use ChainSpec.ProtoReflect.Descriptor instead.
func ( * ChainSpec ) Descriptor ( ) ( [ ] byte , [ ] int ) {
return file_service_proto_rawDescGZIP ( ) , [ ] int { 5 }
}
2018-12-04 12:29:34 -08:00
2020-02-26 08:36:55 -08:00
// Empty is for gRPCs that take no arguments, currently only GetLightdInfo.
2019-12-17 10:57:17 -08:00
type Empty struct {
2020-04-24 14:46:45 -07:00
state protoimpl . MessageState
sizeCache protoimpl . SizeCache
unknownFields protoimpl . UnknownFields
2019-12-17 10:57:17 -08:00
}
2020-04-24 14:46:45 -07:00
func ( x * Empty ) Reset ( ) {
* x = Empty { }
if protoimpl . UnsafeEnabled {
mi := & file_service_proto_msgTypes [ 6 ]
ms := protoimpl . X . MessageStateOf ( protoimpl . Pointer ( x ) )
ms . StoreMessageInfo ( mi )
}
2019-12-17 10:57:17 -08:00
}
2020-04-24 14:46:45 -07:00
func ( x * Empty ) String ( ) string {
return protoimpl . X . MessageStringOf ( x )
2019-12-17 10:57:17 -08:00
}
2020-04-24 14:46:45 -07:00
func ( * Empty ) ProtoMessage ( ) { }
func ( x * Empty ) ProtoReflect ( ) protoreflect . Message {
mi := & file_service_proto_msgTypes [ 6 ]
if protoimpl . UnsafeEnabled && x != nil {
ms := protoimpl . X . MessageStateOf ( protoimpl . Pointer ( x ) )
if ms . LoadMessageInfo ( ) == nil {
ms . StoreMessageInfo ( mi )
}
return ms
}
return mi . MessageOf ( x )
2019-12-17 10:57:17 -08:00
}
2020-04-24 14:46:45 -07:00
// Deprecated: Use Empty.ProtoReflect.Descriptor instead.
func ( * Empty ) Descriptor ( ) ( [ ] byte , [ ] int ) {
return file_service_proto_rawDescGZIP ( ) , [ ] int { 6 }
}
2019-12-17 10:57:17 -08:00
2020-03-11 13:56:23 -07:00
// LightdInfo returns various information about this lightwalletd instance
2020-02-26 08:36:55 -08:00
// and the state of the blockchain.
2019-12-17 10:57:17 -08:00
type LightdInfo struct {
2020-04-24 14:46:45 -07:00
state protoimpl . MessageState
sizeCache protoimpl . SizeCache
unknownFields protoimpl . UnknownFields
2019-12-17 10:57:17 -08:00
2020-04-24 14:46:45 -07:00
Version string ` protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty" `
Vendor string ` protobuf:"bytes,2,opt,name=vendor,proto3" json:"vendor,omitempty" `
TaddrSupport bool ` protobuf:"varint,3,opt,name=taddrSupport,proto3" json:"taddrSupport,omitempty" ` // true
ChainName string ` protobuf:"bytes,4,opt,name=chainName,proto3" json:"chainName,omitempty" ` // either "main" or "test"
SaplingActivationHeight uint64 ` protobuf:"varint,5,opt,name=saplingActivationHeight,proto3" json:"saplingActivationHeight,omitempty" ` // depends on mainnet or testnet
ConsensusBranchId string ` protobuf:"bytes,6,opt,name=consensusBranchId,proto3" json:"consensusBranchId,omitempty" ` // protocol identifier, see consensus/upgrades.cpp
BlockHeight uint64 ` protobuf:"varint,7,opt,name=blockHeight,proto3" json:"blockHeight,omitempty" ` // latest block on the best chain
2019-12-17 10:57:17 -08:00
}
2020-04-24 14:46:45 -07:00
func ( x * LightdInfo ) Reset ( ) {
* x = LightdInfo { }
if protoimpl . UnsafeEnabled {
mi := & file_service_proto_msgTypes [ 7 ]
ms := protoimpl . X . MessageStateOf ( protoimpl . Pointer ( x ) )
ms . StoreMessageInfo ( mi )
}
2019-12-17 10:57:17 -08:00
}
2020-04-24 14:46:45 -07:00
func ( x * LightdInfo ) String ( ) string {
return protoimpl . X . MessageStringOf ( x )
2019-12-17 10:57:17 -08:00
}
2020-04-24 14:46:45 -07:00
func ( * LightdInfo ) ProtoMessage ( ) { }
func ( x * LightdInfo ) ProtoReflect ( ) protoreflect . Message {
mi := & file_service_proto_msgTypes [ 7 ]
if protoimpl . UnsafeEnabled && x != nil {
ms := protoimpl . X . MessageStateOf ( protoimpl . Pointer ( x ) )
if ms . LoadMessageInfo ( ) == nil {
ms . StoreMessageInfo ( mi )
}
return ms
}
return mi . MessageOf ( x )
2019-12-17 10:57:17 -08:00
}
2020-04-24 14:46:45 -07:00
// Deprecated: Use LightdInfo.ProtoReflect.Descriptor instead.
func ( * LightdInfo ) Descriptor ( ) ( [ ] byte , [ ] int ) {
return file_service_proto_rawDescGZIP ( ) , [ ] int { 7 }
}
2019-12-17 10:57:17 -08:00
2020-04-24 14:46:45 -07:00
func ( x * LightdInfo ) GetVersion ( ) string {
if x != nil {
return x . Version
2019-12-17 10:57:17 -08:00
}
return ""
}
2020-04-24 14:46:45 -07:00
func ( x * LightdInfo ) GetVendor ( ) string {
if x != nil {
return x . Vendor
2019-12-17 10:57:17 -08:00
}
return ""
}
2020-04-24 14:46:45 -07:00
func ( x * LightdInfo ) GetTaddrSupport ( ) bool {
if x != nil {
return x . TaddrSupport
2019-12-17 10:57:17 -08:00
}
return false
}
2020-04-24 14:46:45 -07:00
func ( x * LightdInfo ) GetChainName ( ) string {
if x != nil {
return x . ChainName
2019-12-17 10:57:17 -08:00
}
return ""
}
2020-04-24 14:46:45 -07:00
func ( x * LightdInfo ) GetSaplingActivationHeight ( ) uint64 {
if x != nil {
return x . SaplingActivationHeight
2019-12-17 10:57:17 -08:00
}
return 0
}
2020-04-24 14:46:45 -07:00
func ( x * LightdInfo ) GetConsensusBranchId ( ) string {
if x != nil {
return x . ConsensusBranchId
2019-12-17 10:57:17 -08:00
}
return ""
}
2020-04-24 14:46:45 -07:00
func ( x * LightdInfo ) GetBlockHeight ( ) uint64 {
if x != nil {
return x . BlockHeight
2019-12-17 10:57:17 -08:00
}
return 0
}
2020-02-26 08:36:55 -08:00
// TransparentAddressBlockFilter restricts the results to the given address
// or block range.
2019-11-27 15:32:26 -08:00
type TransparentAddressBlockFilter struct {
2020-04-24 14:46:45 -07:00
state protoimpl . MessageState
sizeCache protoimpl . SizeCache
unknownFields protoimpl . UnknownFields
2019-11-27 15:32:26 -08:00
2020-04-24 14:46:45 -07:00
Address string ` protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty" ` // t-address
Range * BlockRange ` protobuf:"bytes,2,opt,name=range,proto3" json:"range,omitempty" ` // start, end heights
2019-11-27 15:32:26 -08:00
}
2020-04-24 14:46:45 -07:00
func ( x * TransparentAddressBlockFilter ) Reset ( ) {
* x = TransparentAddressBlockFilter { }
if protoimpl . UnsafeEnabled {
mi := & file_service_proto_msgTypes [ 8 ]
ms := protoimpl . X . MessageStateOf ( protoimpl . Pointer ( x ) )
ms . StoreMessageInfo ( mi )
}
2019-11-27 15:32:26 -08:00
}
2020-04-24 14:46:45 -07:00
func ( x * TransparentAddressBlockFilter ) String ( ) string {
return protoimpl . X . MessageStringOf ( x )
2019-11-27 15:32:26 -08:00
}
2020-04-24 14:46:45 -07:00
func ( * TransparentAddressBlockFilter ) ProtoMessage ( ) { }
func ( x * TransparentAddressBlockFilter ) ProtoReflect ( ) protoreflect . Message {
mi := & file_service_proto_msgTypes [ 8 ]
if protoimpl . UnsafeEnabled && x != nil {
ms := protoimpl . X . MessageStateOf ( protoimpl . Pointer ( x ) )
if ms . LoadMessageInfo ( ) == nil {
ms . StoreMessageInfo ( mi )
}
return ms
}
return mi . MessageOf ( x )
2019-11-27 15:32:26 -08:00
}
2020-04-24 14:46:45 -07:00
// Deprecated: Use TransparentAddressBlockFilter.ProtoReflect.Descriptor instead.
func ( * TransparentAddressBlockFilter ) Descriptor ( ) ( [ ] byte , [ ] int ) {
return file_service_proto_rawDescGZIP ( ) , [ ] int { 8 }
}
2019-11-27 15:32:26 -08:00
2020-04-24 14:46:45 -07:00
func ( x * TransparentAddressBlockFilter ) GetAddress ( ) string {
if x != nil {
return x . Address
2019-11-27 15:32:26 -08:00
}
return ""
}
2020-04-24 14:46:45 -07:00
func ( x * TransparentAddressBlockFilter ) GetRange ( ) * BlockRange {
if x != nil {
return x . Range
2019-11-27 15:32:26 -08:00
}
return nil
}
2020-03-11 13:56:23 -07:00
// Duration is currently used only for testing, so that the Ping rpc
// can simulate a delay, to create many simultaneous connections. Units
// are microseconds.
type Duration struct {
2020-04-24 14:46:45 -07:00
state protoimpl . MessageState
sizeCache protoimpl . SizeCache
unknownFields protoimpl . UnknownFields
2020-03-11 13:56:23 -07:00
2020-04-24 14:46:45 -07:00
IntervalUs int64 ` protobuf:"varint,1,opt,name=intervalUs,proto3" json:"intervalUs,omitempty" `
2020-03-11 13:56:23 -07:00
}
2020-04-24 14:46:45 -07:00
func ( x * Duration ) Reset ( ) {
* x = Duration { }
if protoimpl . UnsafeEnabled {
mi := & file_service_proto_msgTypes [ 9 ]
ms := protoimpl . X . MessageStateOf ( protoimpl . Pointer ( x ) )
ms . StoreMessageInfo ( mi )
}
2020-03-11 13:56:23 -07:00
}
2020-04-24 14:46:45 -07:00
func ( x * Duration ) String ( ) string {
return protoimpl . X . MessageStringOf ( x )
2020-03-11 13:56:23 -07:00
}
2020-04-24 14:46:45 -07:00
func ( * Duration ) ProtoMessage ( ) { }
func ( x * Duration ) ProtoReflect ( ) protoreflect . Message {
mi := & file_service_proto_msgTypes [ 9 ]
if protoimpl . UnsafeEnabled && x != nil {
ms := protoimpl . X . MessageStateOf ( protoimpl . Pointer ( x ) )
if ms . LoadMessageInfo ( ) == nil {
ms . StoreMessageInfo ( mi )
}
return ms
}
return mi . MessageOf ( x )
2020-03-11 13:56:23 -07:00
}
2020-04-24 14:46:45 -07:00
// Deprecated: Use Duration.ProtoReflect.Descriptor instead.
func ( * Duration ) Descriptor ( ) ( [ ] byte , [ ] int ) {
return file_service_proto_rawDescGZIP ( ) , [ ] int { 9 }
}
2020-03-11 13:56:23 -07:00
2020-04-24 14:46:45 -07:00
func ( x * Duration ) GetIntervalUs ( ) int64 {
if x != nil {
return x . IntervalUs
2020-03-11 13:56:23 -07:00
}
return 0
}
// PingResponse is used to indicate concurrency, how many Ping rpcs
// are executing upon entry and upon exit (after the delay).
2020-03-31 12:47:52 -07:00
// This rpc is used for testing only.
2020-03-11 13:56:23 -07:00
type PingResponse struct {
2020-04-24 14:46:45 -07:00
state protoimpl . MessageState
sizeCache protoimpl . SizeCache
unknownFields protoimpl . UnknownFields
2020-03-11 13:56:23 -07:00
2020-04-24 14:46:45 -07:00
Entry int64 ` protobuf:"varint,1,opt,name=entry,proto3" json:"entry,omitempty" `
Exit int64 ` protobuf:"varint,2,opt,name=exit,proto3" json:"exit,omitempty" `
2020-03-11 13:56:23 -07:00
}
2020-04-24 14:46:45 -07:00
func ( x * PingResponse ) Reset ( ) {
* x = PingResponse { }
if protoimpl . UnsafeEnabled {
mi := & file_service_proto_msgTypes [ 10 ]
ms := protoimpl . X . MessageStateOf ( protoimpl . Pointer ( x ) )
ms . StoreMessageInfo ( mi )
2020-03-11 13:56:23 -07:00
}
}
2020-04-24 14:46:45 -07:00
func ( x * PingResponse ) String ( ) string {
return protoimpl . X . MessageStringOf ( x )
2020-03-22 12:18:48 -07:00
}
2020-04-24 14:46:45 -07:00
func ( * PingResponse ) ProtoMessage ( ) { }
2020-03-22 12:18:48 -07:00
2020-04-24 14:46:45 -07:00
func ( x * PingResponse ) ProtoReflect ( ) protoreflect . Message {
mi := & file_service_proto_msgTypes [ 10 ]
if protoimpl . UnsafeEnabled && x != nil {
ms := protoimpl . X . MessageStateOf ( protoimpl . Pointer ( x ) )
if ms . LoadMessageInfo ( ) == nil {
ms . StoreMessageInfo ( mi )
}
return ms
}
return mi . MessageOf ( x )
2020-03-22 12:18:48 -07:00
}
2020-04-24 14:46:45 -07:00
// Deprecated: Use PingResponse.ProtoReflect.Descriptor instead.
func ( * PingResponse ) Descriptor ( ) ( [ ] byte , [ ] int ) {
return file_service_proto_rawDescGZIP ( ) , [ ] int { 10 }
2020-03-22 12:18:48 -07:00
}
2020-04-24 14:46:45 -07:00
func ( x * PingResponse ) GetEntry ( ) int64 {
if x != nil {
return x . Entry
2020-03-22 12:18:48 -07:00
}
return 0
}
2020-04-24 14:46:45 -07:00
func ( x * PingResponse ) GetExit ( ) int64 {
if x != nil {
return x . Exit
2020-03-22 12:18:48 -07:00
}
return 0
}
2020-04-24 14:46:45 -07:00
var File_service_proto protoreflect . FileDescriptor
var file_service_proto_rawDesc = [ ] byte {
0x0a , 0x0d , 0x73 , 0x65 , 0x72 , 0x76 , 0x69 , 0x63 , 0x65 , 0x2e , 0x70 , 0x72 , 0x6f , 0x74 , 0x6f , 0x12 ,
0x15 , 0x63 , 0x61 , 0x73 , 0x68 , 0x2e , 0x7a , 0x2e , 0x77 , 0x61 , 0x6c , 0x6c , 0x65 , 0x74 , 0x2e , 0x73 ,
0x64 , 0x6b , 0x2e , 0x72 , 0x70 , 0x63 , 0x1a , 0x15 , 0x63 , 0x6f , 0x6d , 0x70 , 0x61 , 0x63 , 0x74 , 0x5f ,
0x66 , 0x6f , 0x72 , 0x6d , 0x61 , 0x74 , 0x73 , 0x2e , 0x70 , 0x72 , 0x6f , 0x74 , 0x6f , 0x22 , 0x35 , 0x0a ,
0x07 , 0x42 , 0x6c , 0x6f , 0x63 , 0x6b , 0x49 , 0x44 , 0x12 , 0x16 , 0x0a , 0x06 , 0x68 , 0x65 , 0x69 , 0x67 ,
0x68 , 0x74 , 0x18 , 0x01 , 0x20 , 0x01 , 0x28 , 0x04 , 0x52 , 0x06 , 0x68 , 0x65 , 0x69 , 0x67 , 0x68 , 0x74 ,
0x12 , 0x12 , 0x0a , 0x04 , 0x68 , 0x61 , 0x73 , 0x68 , 0x18 , 0x02 , 0x20 , 0x01 , 0x28 , 0x0c , 0x52 , 0x04 ,
0x68 , 0x61 , 0x73 , 0x68 , 0x22 , 0x74 , 0x0a , 0x0a , 0x42 , 0x6c , 0x6f , 0x63 , 0x6b , 0x52 , 0x61 , 0x6e ,
0x67 , 0x65 , 0x12 , 0x34 , 0x0a , 0x05 , 0x73 , 0x74 , 0x61 , 0x72 , 0x74 , 0x18 , 0x01 , 0x20 , 0x01 , 0x28 ,
0x0b , 0x32 , 0x1e , 0x2e , 0x63 , 0x61 , 0x73 , 0x68 , 0x2e , 0x7a , 0x2e , 0x77 , 0x61 , 0x6c , 0x6c , 0x65 ,
0x74 , 0x2e , 0x73 , 0x64 , 0x6b , 0x2e , 0x72 , 0x70 , 0x63 , 0x2e , 0x42 , 0x6c , 0x6f , 0x63 , 0x6b , 0x49 ,
0x44 , 0x52 , 0x05 , 0x73 , 0x74 , 0x61 , 0x72 , 0x74 , 0x12 , 0x30 , 0x0a , 0x03 , 0x65 , 0x6e , 0x64 , 0x18 ,
0x02 , 0x20 , 0x01 , 0x28 , 0x0b , 0x32 , 0x1e , 0x2e , 0x63 , 0x61 , 0x73 , 0x68 , 0x2e , 0x7a , 0x2e , 0x77 ,
0x61 , 0x6c , 0x6c , 0x65 , 0x74 , 0x2e , 0x73 , 0x64 , 0x6b , 0x2e , 0x72 , 0x70 , 0x63 , 0x2e , 0x42 , 0x6c ,
0x6f , 0x63 , 0x6b , 0x49 , 0x44 , 0x52 , 0x03 , 0x65 , 0x6e , 0x64 , 0x22 , 0x6a , 0x0a , 0x08 , 0x54 , 0x78 ,
0x46 , 0x69 , 0x6c , 0x74 , 0x65 , 0x72 , 0x12 , 0x34 , 0x0a , 0x05 , 0x62 , 0x6c , 0x6f , 0x63 , 0x6b , 0x18 ,
0x01 , 0x20 , 0x01 , 0x28 , 0x0b , 0x32 , 0x1e , 0x2e , 0x63 , 0x61 , 0x73 , 0x68 , 0x2e , 0x7a , 0x2e , 0x77 ,
0x61 , 0x6c , 0x6c , 0x65 , 0x74 , 0x2e , 0x73 , 0x64 , 0x6b , 0x2e , 0x72 , 0x70 , 0x63 , 0x2e , 0x42 , 0x6c ,
0x6f , 0x63 , 0x6b , 0x49 , 0x44 , 0x52 , 0x05 , 0x62 , 0x6c , 0x6f , 0x63 , 0x6b , 0x12 , 0x14 , 0x0a , 0x05 ,
0x69 , 0x6e , 0x64 , 0x65 , 0x78 , 0x18 , 0x02 , 0x20 , 0x01 , 0x28 , 0x04 , 0x52 , 0x05 , 0x69 , 0x6e , 0x64 ,
0x65 , 0x78 , 0x12 , 0x12 , 0x0a , 0x04 , 0x68 , 0x61 , 0x73 , 0x68 , 0x18 , 0x03 , 0x20 , 0x01 , 0x28 , 0x0c ,
0x52 , 0x04 , 0x68 , 0x61 , 0x73 , 0x68 , 0x22 , 0x3c , 0x0a , 0x0e , 0x52 , 0x61 , 0x77 , 0x54 , 0x72 , 0x61 ,
0x6e , 0x73 , 0x61 , 0x63 , 0x74 , 0x69 , 0x6f , 0x6e , 0x12 , 0x12 , 0x0a , 0x04 , 0x64 , 0x61 , 0x74 , 0x61 ,
0x18 , 0x01 , 0x20 , 0x01 , 0x28 , 0x0c , 0x52 , 0x04 , 0x64 , 0x61 , 0x74 , 0x61 , 0x12 , 0x16 , 0x0a , 0x06 ,
0x68 , 0x65 , 0x69 , 0x67 , 0x68 , 0x74 , 0x18 , 0x02 , 0x20 , 0x01 , 0x28 , 0x04 , 0x52 , 0x06 , 0x68 , 0x65 ,
0x69 , 0x67 , 0x68 , 0x74 , 0x22 , 0x50 , 0x0a , 0x0c , 0x53 , 0x65 , 0x6e , 0x64 , 0x52 , 0x65 , 0x73 , 0x70 ,
0x6f , 0x6e , 0x73 , 0x65 , 0x12 , 0x1c , 0x0a , 0x09 , 0x65 , 0x72 , 0x72 , 0x6f , 0x72 , 0x43 , 0x6f , 0x64 ,
0x65 , 0x18 , 0x01 , 0x20 , 0x01 , 0x28 , 0x05 , 0x52 , 0x09 , 0x65 , 0x72 , 0x72 , 0x6f , 0x72 , 0x43 , 0x6f ,
0x64 , 0x65 , 0x12 , 0x22 , 0x0a , 0x0c , 0x65 , 0x72 , 0x72 , 0x6f , 0x72 , 0x4d , 0x65 , 0x73 , 0x73 , 0x61 ,
0x67 , 0x65 , 0x18 , 0x02 , 0x20 , 0x01 , 0x28 , 0x09 , 0x52 , 0x0c , 0x65 , 0x72 , 0x72 , 0x6f , 0x72 , 0x4d ,
0x65 , 0x73 , 0x73 , 0x61 , 0x67 , 0x65 , 0x22 , 0x0b , 0x0a , 0x09 , 0x43 , 0x68 , 0x61 , 0x69 , 0x6e , 0x53 ,
0x70 , 0x65 , 0x63 , 0x22 , 0x07 , 0x0a , 0x05 , 0x45 , 0x6d , 0x70 , 0x74 , 0x79 , 0x22 , 0x8a , 0x02 , 0x0a ,
0x0a , 0x4c , 0x69 , 0x67 , 0x68 , 0x74 , 0x64 , 0x49 , 0x6e , 0x66 , 0x6f , 0x12 , 0x18 , 0x0a , 0x07 , 0x76 ,
0x65 , 0x72 , 0x73 , 0x69 , 0x6f , 0x6e , 0x18 , 0x01 , 0x20 , 0x01 , 0x28 , 0x09 , 0x52 , 0x07 , 0x76 , 0x65 ,
0x72 , 0x73 , 0x69 , 0x6f , 0x6e , 0x12 , 0x16 , 0x0a , 0x06 , 0x76 , 0x65 , 0x6e , 0x64 , 0x6f , 0x72 , 0x18 ,
0x02 , 0x20 , 0x01 , 0x28 , 0x09 , 0x52 , 0x06 , 0x76 , 0x65 , 0x6e , 0x64 , 0x6f , 0x72 , 0x12 , 0x22 , 0x0a ,
0x0c , 0x74 , 0x61 , 0x64 , 0x64 , 0x72 , 0x53 , 0x75 , 0x70 , 0x70 , 0x6f , 0x72 , 0x74 , 0x18 , 0x03 , 0x20 ,
0x01 , 0x28 , 0x08 , 0x52 , 0x0c , 0x74 , 0x61 , 0x64 , 0x64 , 0x72 , 0x53 , 0x75 , 0x70 , 0x70 , 0x6f , 0x72 ,
0x74 , 0x12 , 0x1c , 0x0a , 0x09 , 0x63 , 0x68 , 0x61 , 0x69 , 0x6e , 0x4e , 0x61 , 0x6d , 0x65 , 0x18 , 0x04 ,
0x20 , 0x01 , 0x28 , 0x09 , 0x52 , 0x09 , 0x63 , 0x68 , 0x61 , 0x69 , 0x6e , 0x4e , 0x61 , 0x6d , 0x65 , 0x12 ,
0x38 , 0x0a , 0x17 , 0x73 , 0x61 , 0x70 , 0x6c , 0x69 , 0x6e , 0x67 , 0x41 , 0x63 , 0x74 , 0x69 , 0x76 , 0x61 ,
0x74 , 0x69 , 0x6f , 0x6e , 0x48 , 0x65 , 0x69 , 0x67 , 0x68 , 0x74 , 0x18 , 0x05 , 0x20 , 0x01 , 0x28 , 0x04 ,
0x52 , 0x17 , 0x73 , 0x61 , 0x70 , 0x6c , 0x69 , 0x6e , 0x67 , 0x41 , 0x63 , 0x74 , 0x69 , 0x76 , 0x61 , 0x74 ,
0x69 , 0x6f , 0x6e , 0x48 , 0x65 , 0x69 , 0x67 , 0x68 , 0x74 , 0x12 , 0x2c , 0x0a , 0x11 , 0x63 , 0x6f , 0x6e ,
0x73 , 0x65 , 0x6e , 0x73 , 0x75 , 0x73 , 0x42 , 0x72 , 0x61 , 0x6e , 0x63 , 0x68 , 0x49 , 0x64 , 0x18 , 0x06 ,
0x20 , 0x01 , 0x28 , 0x09 , 0x52 , 0x11 , 0x63 , 0x6f , 0x6e , 0x73 , 0x65 , 0x6e , 0x73 , 0x75 , 0x73 , 0x42 ,
0x72 , 0x61 , 0x6e , 0x63 , 0x68 , 0x49 , 0x64 , 0x12 , 0x20 , 0x0a , 0x0b , 0x62 , 0x6c , 0x6f , 0x63 , 0x6b ,
0x48 , 0x65 , 0x69 , 0x67 , 0x68 , 0x74 , 0x18 , 0x07 , 0x20 , 0x01 , 0x28 , 0x04 , 0x52 , 0x0b , 0x62 , 0x6c ,
0x6f , 0x63 , 0x6b , 0x48 , 0x65 , 0x69 , 0x67 , 0x68 , 0x74 , 0x22 , 0x72 , 0x0a , 0x1d , 0x54 , 0x72 , 0x61 ,
0x6e , 0x73 , 0x70 , 0x61 , 0x72 , 0x65 , 0x6e , 0x74 , 0x41 , 0x64 , 0x64 , 0x72 , 0x65 , 0x73 , 0x73 , 0x42 ,
0x6c , 0x6f , 0x63 , 0x6b , 0x46 , 0x69 , 0x6c , 0x74 , 0x65 , 0x72 , 0x12 , 0x18 , 0x0a , 0x07 , 0x61 , 0x64 ,
0x64 , 0x72 , 0x65 , 0x73 , 0x73 , 0x18 , 0x01 , 0x20 , 0x01 , 0x28 , 0x09 , 0x52 , 0x07 , 0x61 , 0x64 , 0x64 ,
0x72 , 0x65 , 0x73 , 0x73 , 0x12 , 0x37 , 0x0a , 0x05 , 0x72 , 0x61 , 0x6e , 0x67 , 0x65 , 0x18 , 0x02 , 0x20 ,
0x01 , 0x28 , 0x0b , 0x32 , 0x21 , 0x2e , 0x63 , 0x61 , 0x73 , 0x68 , 0x2e , 0x7a , 0x2e , 0x77 , 0x61 , 0x6c ,
0x6c , 0x65 , 0x74 , 0x2e , 0x73 , 0x64 , 0x6b , 0x2e , 0x72 , 0x70 , 0x63 , 0x2e , 0x42 , 0x6c , 0x6f , 0x63 ,
0x6b , 0x52 , 0x61 , 0x6e , 0x67 , 0x65 , 0x52 , 0x05 , 0x72 , 0x61 , 0x6e , 0x67 , 0x65 , 0x22 , 0x2a , 0x0a ,
0x08 , 0x44 , 0x75 , 0x72 , 0x61 , 0x74 , 0x69 , 0x6f , 0x6e , 0x12 , 0x1e , 0x0a , 0x0a , 0x69 , 0x6e , 0x74 ,
0x65 , 0x72 , 0x76 , 0x61 , 0x6c , 0x55 , 0x73 , 0x18 , 0x01 , 0x20 , 0x01 , 0x28 , 0x03 , 0x52 , 0x0a , 0x69 ,
0x6e , 0x74 , 0x65 , 0x72 , 0x76 , 0x61 , 0x6c , 0x55 , 0x73 , 0x22 , 0x38 , 0x0a , 0x0c , 0x50 , 0x69 , 0x6e ,
0x67 , 0x52 , 0x65 , 0x73 , 0x70 , 0x6f , 0x6e , 0x73 , 0x65 , 0x12 , 0x14 , 0x0a , 0x05 , 0x65 , 0x6e , 0x74 ,
0x72 , 0x79 , 0x18 , 0x01 , 0x20 , 0x01 , 0x28 , 0x03 , 0x52 , 0x05 , 0x65 , 0x6e , 0x74 , 0x72 , 0x79 , 0x12 ,
0x12 , 0x0a , 0x04 , 0x65 , 0x78 , 0x69 , 0x74 , 0x18 , 0x02 , 0x20 , 0x01 , 0x28 , 0x03 , 0x52 , 0x04 , 0x65 ,
0x78 , 0x69 , 0x74 , 0x32 , 0xee , 0x05 , 0x0a , 0x11 , 0x43 , 0x6f , 0x6d , 0x70 , 0x61 , 0x63 , 0x74 , 0x54 ,
0x78 , 0x53 , 0x74 , 0x72 , 0x65 , 0x61 , 0x6d , 0x65 , 0x72 , 0x12 , 0x54 , 0x0a , 0x0e , 0x47 , 0x65 , 0x74 ,
0x4c , 0x61 , 0x74 , 0x65 , 0x73 , 0x74 , 0x42 , 0x6c , 0x6f , 0x63 , 0x6b , 0x12 , 0x20 , 0x2e , 0x63 , 0x61 ,
0x73 , 0x68 , 0x2e , 0x7a , 0x2e , 0x77 , 0x61 , 0x6c , 0x6c , 0x65 , 0x74 , 0x2e , 0x73 , 0x64 , 0x6b , 0x2e ,
0x72 , 0x70 , 0x63 , 0x2e , 0x43 , 0x68 , 0x61 , 0x69 , 0x6e , 0x53 , 0x70 , 0x65 , 0x63 , 0x1a , 0x1e , 0x2e ,
0x63 , 0x61 , 0x73 , 0x68 , 0x2e , 0x7a , 0x2e , 0x77 , 0x61 , 0x6c , 0x6c , 0x65 , 0x74 , 0x2e , 0x73 , 0x64 ,
0x6b , 0x2e , 0x72 , 0x70 , 0x63 , 0x2e , 0x42 , 0x6c , 0x6f , 0x63 , 0x6b , 0x49 , 0x44 , 0x22 , 0x00 , 0x12 ,
0x51 , 0x0a , 0x08 , 0x47 , 0x65 , 0x74 , 0x42 , 0x6c , 0x6f , 0x63 , 0x6b , 0x12 , 0x1e , 0x2e , 0x63 , 0x61 ,
0x73 , 0x68 , 0x2e , 0x7a , 0x2e , 0x77 , 0x61 , 0x6c , 0x6c , 0x65 , 0x74 , 0x2e , 0x73 , 0x64 , 0x6b , 0x2e ,
0x72 , 0x70 , 0x63 , 0x2e , 0x42 , 0x6c , 0x6f , 0x63 , 0x6b , 0x49 , 0x44 , 0x1a , 0x23 , 0x2e , 0x63 , 0x61 ,
0x73 , 0x68 , 0x2e , 0x7a , 0x2e , 0x77 , 0x61 , 0x6c , 0x6c , 0x65 , 0x74 , 0x2e , 0x73 , 0x64 , 0x6b , 0x2e ,
0x72 , 0x70 , 0x63 , 0x2e , 0x43 , 0x6f , 0x6d , 0x70 , 0x61 , 0x63 , 0x74 , 0x42 , 0x6c , 0x6f , 0x63 , 0x6b ,
0x22 , 0x00 , 0x12 , 0x5b , 0x0a , 0x0d , 0x47 , 0x65 , 0x74 , 0x42 , 0x6c , 0x6f , 0x63 , 0x6b , 0x52 , 0x61 ,
0x6e , 0x67 , 0x65 , 0x12 , 0x21 , 0x2e , 0x63 , 0x61 , 0x73 , 0x68 , 0x2e , 0x7a , 0x2e , 0x77 , 0x61 , 0x6c ,
0x6c , 0x65 , 0x74 , 0x2e , 0x73 , 0x64 , 0x6b , 0x2e , 0x72 , 0x70 , 0x63 , 0x2e , 0x42 , 0x6c , 0x6f , 0x63 ,
0x6b , 0x52 , 0x61 , 0x6e , 0x67 , 0x65 , 0x1a , 0x23 , 0x2e , 0x63 , 0x61 , 0x73 , 0x68 , 0x2e , 0x7a , 0x2e ,
0x77 , 0x61 , 0x6c , 0x6c , 0x65 , 0x74 , 0x2e , 0x73 , 0x64 , 0x6b , 0x2e , 0x72 , 0x70 , 0x63 , 0x2e , 0x43 ,
0x6f , 0x6d , 0x70 , 0x61 , 0x63 , 0x74 , 0x42 , 0x6c , 0x6f , 0x63 , 0x6b , 0x22 , 0x00 , 0x30 , 0x01 , 0x12 ,
0x5a , 0x0a , 0x0e , 0x47 , 0x65 , 0x74 , 0x54 , 0x72 , 0x61 , 0x6e , 0x73 , 0x61 , 0x63 , 0x74 , 0x69 , 0x6f ,
0x6e , 0x12 , 0x1f , 0x2e , 0x63 , 0x61 , 0x73 , 0x68 , 0x2e , 0x7a , 0x2e , 0x77 , 0x61 , 0x6c , 0x6c , 0x65 ,
0x74 , 0x2e , 0x73 , 0x64 , 0x6b , 0x2e , 0x72 , 0x70 , 0x63 , 0x2e , 0x54 , 0x78 , 0x46 , 0x69 , 0x6c , 0x74 ,
0x65 , 0x72 , 0x1a , 0x25 , 0x2e , 0x63 , 0x61 , 0x73 , 0x68 , 0x2e , 0x7a , 0x2e , 0x77 , 0x61 , 0x6c , 0x6c ,
0x65 , 0x74 , 0x2e , 0x73 , 0x64 , 0x6b , 0x2e , 0x72 , 0x70 , 0x63 , 0x2e , 0x52 , 0x61 , 0x77 , 0x54 , 0x72 ,
0x61 , 0x6e , 0x73 , 0x61 , 0x63 , 0x74 , 0x69 , 0x6f , 0x6e , 0x22 , 0x00 , 0x12 , 0x5f , 0x0a , 0x0f , 0x53 ,
0x65 , 0x6e , 0x64 , 0x54 , 0x72 , 0x61 , 0x6e , 0x73 , 0x61 , 0x63 , 0x74 , 0x69 , 0x6f , 0x6e , 0x12 , 0x25 ,
0x2e , 0x63 , 0x61 , 0x73 , 0x68 , 0x2e , 0x7a , 0x2e , 0x77 , 0x61 , 0x6c , 0x6c , 0x65 , 0x74 , 0x2e , 0x73 ,
0x64 , 0x6b , 0x2e , 0x72 , 0x70 , 0x63 , 0x2e , 0x52 , 0x61 , 0x77 , 0x54 , 0x72 , 0x61 , 0x6e , 0x73 , 0x61 ,
0x63 , 0x74 , 0x69 , 0x6f , 0x6e , 0x1a , 0x23 , 0x2e , 0x63 , 0x61 , 0x73 , 0x68 , 0x2e , 0x7a , 0x2e , 0x77 ,
0x61 , 0x6c , 0x6c , 0x65 , 0x74 , 0x2e , 0x73 , 0x64 , 0x6b , 0x2e , 0x72 , 0x70 , 0x63 , 0x2e , 0x53 , 0x65 ,
0x6e , 0x64 , 0x52 , 0x65 , 0x73 , 0x70 , 0x6f , 0x6e , 0x73 , 0x65 , 0x22 , 0x00 , 0x12 , 0x72 , 0x0a , 0x0f ,
0x47 , 0x65 , 0x74 , 0x41 , 0x64 , 0x64 , 0x72 , 0x65 , 0x73 , 0x73 , 0x54 , 0x78 , 0x69 , 0x64 , 0x73 , 0x12 ,
0x34 , 0x2e , 0x63 , 0x61 , 0x73 , 0x68 , 0x2e , 0x7a , 0x2e , 0x77 , 0x61 , 0x6c , 0x6c , 0x65 , 0x74 , 0x2e ,
0x73 , 0x64 , 0x6b , 0x2e , 0x72 , 0x70 , 0x63 , 0x2e , 0x54 , 0x72 , 0x61 , 0x6e , 0x73 , 0x70 , 0x61 , 0x72 ,
0x65 , 0x6e , 0x74 , 0x41 , 0x64 , 0x64 , 0x72 , 0x65 , 0x73 , 0x73 , 0x42 , 0x6c , 0x6f , 0x63 , 0x6b , 0x46 ,
0x69 , 0x6c , 0x74 , 0x65 , 0x72 , 0x1a , 0x25 , 0x2e , 0x63 , 0x61 , 0x73 , 0x68 , 0x2e , 0x7a , 0x2e , 0x77 ,
0x61 , 0x6c , 0x6c , 0x65 , 0x74 , 0x2e , 0x73 , 0x64 , 0x6b , 0x2e , 0x72 , 0x70 , 0x63 , 0x2e , 0x52 , 0x61 ,
0x77 , 0x54 , 0x72 , 0x61 , 0x6e , 0x73 , 0x61 , 0x63 , 0x74 , 0x69 , 0x6f , 0x6e , 0x22 , 0x00 , 0x30 , 0x01 ,
0x12 , 0x52 , 0x0a , 0x0d , 0x47 , 0x65 , 0x74 , 0x4c , 0x69 , 0x67 , 0x68 , 0x74 , 0x64 , 0x49 , 0x6e , 0x66 ,
0x6f , 0x12 , 0x1c , 0x2e , 0x63 , 0x61 , 0x73 , 0x68 , 0x2e , 0x7a , 0x2e , 0x77 , 0x61 , 0x6c , 0x6c , 0x65 ,
0x74 , 0x2e , 0x73 , 0x64 , 0x6b , 0x2e , 0x72 , 0x70 , 0x63 , 0x2e , 0x45 , 0x6d , 0x70 , 0x74 , 0x79 , 0x1a ,
0x21 , 0x2e , 0x63 , 0x61 , 0x73 , 0x68 , 0x2e , 0x7a , 0x2e , 0x77 , 0x61 , 0x6c , 0x6c , 0x65 , 0x74 , 0x2e ,
0x73 , 0x64 , 0x6b , 0x2e , 0x72 , 0x70 , 0x63 , 0x2e , 0x4c , 0x69 , 0x67 , 0x68 , 0x74 , 0x64 , 0x49 , 0x6e ,
0x66 , 0x6f , 0x22 , 0x00 , 0x12 , 0x4e , 0x0a , 0x04 , 0x50 , 0x69 , 0x6e , 0x67 , 0x12 , 0x1f , 0x2e , 0x63 ,
0x61 , 0x73 , 0x68 , 0x2e , 0x7a , 0x2e , 0x77 , 0x61 , 0x6c , 0x6c , 0x65 , 0x74 , 0x2e , 0x73 , 0x64 , 0x6b ,
0x2e , 0x72 , 0x70 , 0x63 , 0x2e , 0x44 , 0x75 , 0x72 , 0x61 , 0x74 , 0x69 , 0x6f , 0x6e , 0x1a , 0x23 , 0x2e ,
0x63 , 0x61 , 0x73 , 0x68 , 0x2e , 0x7a , 0x2e , 0x77 , 0x61 , 0x6c , 0x6c , 0x65 , 0x74 , 0x2e , 0x73 , 0x64 ,
0x6b , 0x2e , 0x72 , 0x70 , 0x63 , 0x2e , 0x50 , 0x69 , 0x6e , 0x67 , 0x52 , 0x65 , 0x73 , 0x70 , 0x6f , 0x6e ,
0x73 , 0x65 , 0x22 , 0x00 , 0x42 , 0x10 , 0x5a , 0x0b , 0x2e , 0x3b , 0x77 , 0x61 , 0x6c , 0x6c , 0x65 , 0x74 ,
0x72 , 0x70 , 0x63 , 0xba , 0x02 , 0x00 , 0x62 , 0x06 , 0x70 , 0x72 , 0x6f , 0x74 , 0x6f , 0x33 ,
}
var (
file_service_proto_rawDescOnce sync . Once
file_service_proto_rawDescData = file_service_proto_rawDesc
)
2020-03-11 13:56:23 -07:00
2020-04-24 14:46:45 -07:00
func file_service_proto_rawDescGZIP ( ) [ ] byte {
file_service_proto_rawDescOnce . Do ( func ( ) {
file_service_proto_rawDescData = protoimpl . X . CompressGZIP ( file_service_proto_rawDescData )
} )
return file_service_proto_rawDescData
}
var file_service_proto_msgTypes = make ( [ ] protoimpl . MessageInfo , 11 )
var file_service_proto_goTypes = [ ] interface { } {
( * BlockID ) ( nil ) , // 0: cash.z.wallet.sdk.rpc.BlockID
( * BlockRange ) ( nil ) , // 1: cash.z.wallet.sdk.rpc.BlockRange
( * TxFilter ) ( nil ) , // 2: cash.z.wallet.sdk.rpc.TxFilter
( * RawTransaction ) ( nil ) , // 3: cash.z.wallet.sdk.rpc.RawTransaction
( * SendResponse ) ( nil ) , // 4: cash.z.wallet.sdk.rpc.SendResponse
( * ChainSpec ) ( nil ) , // 5: cash.z.wallet.sdk.rpc.ChainSpec
( * Empty ) ( nil ) , // 6: cash.z.wallet.sdk.rpc.Empty
( * LightdInfo ) ( nil ) , // 7: cash.z.wallet.sdk.rpc.LightdInfo
( * TransparentAddressBlockFilter ) ( nil ) , // 8: cash.z.wallet.sdk.rpc.TransparentAddressBlockFilter
( * Duration ) ( nil ) , // 9: cash.z.wallet.sdk.rpc.Duration
( * PingResponse ) ( nil ) , // 10: cash.z.wallet.sdk.rpc.PingResponse
( * CompactBlock ) ( nil ) , // 11: cash.z.wallet.sdk.rpc.CompactBlock
}
var file_service_proto_depIdxs = [ ] int32 {
0 , // 0: cash.z.wallet.sdk.rpc.BlockRange.start:type_name -> cash.z.wallet.sdk.rpc.BlockID
0 , // 1: cash.z.wallet.sdk.rpc.BlockRange.end:type_name -> cash.z.wallet.sdk.rpc.BlockID
0 , // 2: cash.z.wallet.sdk.rpc.TxFilter.block:type_name -> cash.z.wallet.sdk.rpc.BlockID
1 , // 3: cash.z.wallet.sdk.rpc.TransparentAddressBlockFilter.range:type_name -> cash.z.wallet.sdk.rpc.BlockRange
5 , // 4: cash.z.wallet.sdk.rpc.CompactTxStreamer.GetLatestBlock:input_type -> cash.z.wallet.sdk.rpc.ChainSpec
0 , // 5: cash.z.wallet.sdk.rpc.CompactTxStreamer.GetBlock:input_type -> cash.z.wallet.sdk.rpc.BlockID
1 , // 6: cash.z.wallet.sdk.rpc.CompactTxStreamer.GetBlockRange:input_type -> cash.z.wallet.sdk.rpc.BlockRange
2 , // 7: cash.z.wallet.sdk.rpc.CompactTxStreamer.GetTransaction:input_type -> cash.z.wallet.sdk.rpc.TxFilter
3 , // 8: cash.z.wallet.sdk.rpc.CompactTxStreamer.SendTransaction:input_type -> cash.z.wallet.sdk.rpc.RawTransaction
8 , // 9: cash.z.wallet.sdk.rpc.CompactTxStreamer.GetAddressTxids:input_type -> cash.z.wallet.sdk.rpc.TransparentAddressBlockFilter
6 , // 10: cash.z.wallet.sdk.rpc.CompactTxStreamer.GetLightdInfo:input_type -> cash.z.wallet.sdk.rpc.Empty
9 , // 11: cash.z.wallet.sdk.rpc.CompactTxStreamer.Ping:input_type -> cash.z.wallet.sdk.rpc.Duration
0 , // 12: cash.z.wallet.sdk.rpc.CompactTxStreamer.GetLatestBlock:output_type -> cash.z.wallet.sdk.rpc.BlockID
11 , // 13: cash.z.wallet.sdk.rpc.CompactTxStreamer.GetBlock:output_type -> cash.z.wallet.sdk.rpc.CompactBlock
11 , // 14: cash.z.wallet.sdk.rpc.CompactTxStreamer.GetBlockRange:output_type -> cash.z.wallet.sdk.rpc.CompactBlock
3 , // 15: cash.z.wallet.sdk.rpc.CompactTxStreamer.GetTransaction:output_type -> cash.z.wallet.sdk.rpc.RawTransaction
4 , // 16: cash.z.wallet.sdk.rpc.CompactTxStreamer.SendTransaction:output_type -> cash.z.wallet.sdk.rpc.SendResponse
3 , // 17: cash.z.wallet.sdk.rpc.CompactTxStreamer.GetAddressTxids:output_type -> cash.z.wallet.sdk.rpc.RawTransaction
7 , // 18: cash.z.wallet.sdk.rpc.CompactTxStreamer.GetLightdInfo:output_type -> cash.z.wallet.sdk.rpc.LightdInfo
10 , // 19: cash.z.wallet.sdk.rpc.CompactTxStreamer.Ping:output_type -> cash.z.wallet.sdk.rpc.PingResponse
12 , // [12:20] is the sub-list for method output_type
4 , // [4:12] is the sub-list for method input_type
4 , // [4:4] is the sub-list for extension type_name
4 , // [4:4] is the sub-list for extension extendee
0 , // [0:4] is the sub-list for field type_name
}
func init ( ) { file_service_proto_init ( ) }
func file_service_proto_init ( ) {
if File_service_proto != nil {
return
}
file_compact_formats_proto_init ( )
if ! protoimpl . UnsafeEnabled {
file_service_proto_msgTypes [ 0 ] . Exporter = func ( v interface { } , i int ) interface { } {
switch v := v . ( * BlockID ) ; i {
case 0 :
return & v . state
case 1 :
return & v . sizeCache
case 2 :
return & v . unknownFields
default :
return nil
}
}
file_service_proto_msgTypes [ 1 ] . Exporter = func ( v interface { } , i int ) interface { } {
switch v := v . ( * BlockRange ) ; i {
case 0 :
return & v . state
case 1 :
return & v . sizeCache
case 2 :
return & v . unknownFields
default :
return nil
}
}
file_service_proto_msgTypes [ 2 ] . Exporter = func ( v interface { } , i int ) interface { } {
switch v := v . ( * TxFilter ) ; i {
case 0 :
return & v . state
case 1 :
return & v . sizeCache
case 2 :
return & v . unknownFields
default :
return nil
}
}
file_service_proto_msgTypes [ 3 ] . Exporter = func ( v interface { } , i int ) interface { } {
switch v := v . ( * RawTransaction ) ; i {
case 0 :
return & v . state
case 1 :
return & v . sizeCache
case 2 :
return & v . unknownFields
default :
return nil
}
}
file_service_proto_msgTypes [ 4 ] . Exporter = func ( v interface { } , i int ) interface { } {
switch v := v . ( * SendResponse ) ; i {
case 0 :
return & v . state
case 1 :
return & v . sizeCache
case 2 :
return & v . unknownFields
default :
return nil
}
}
file_service_proto_msgTypes [ 5 ] . Exporter = func ( v interface { } , i int ) interface { } {
switch v := v . ( * ChainSpec ) ; i {
case 0 :
return & v . state
case 1 :
return & v . sizeCache
case 2 :
return & v . unknownFields
default :
return nil
}
}
file_service_proto_msgTypes [ 6 ] . Exporter = func ( v interface { } , i int ) interface { } {
switch v := v . ( * Empty ) ; i {
case 0 :
return & v . state
case 1 :
return & v . sizeCache
case 2 :
return & v . unknownFields
default :
return nil
}
}
file_service_proto_msgTypes [ 7 ] . Exporter = func ( v interface { } , i int ) interface { } {
switch v := v . ( * LightdInfo ) ; i {
case 0 :
return & v . state
case 1 :
return & v . sizeCache
case 2 :
return & v . unknownFields
default :
return nil
}
}
file_service_proto_msgTypes [ 8 ] . Exporter = func ( v interface { } , i int ) interface { } {
switch v := v . ( * TransparentAddressBlockFilter ) ; i {
case 0 :
return & v . state
case 1 :
return & v . sizeCache
case 2 :
return & v . unknownFields
default :
return nil
}
}
file_service_proto_msgTypes [ 9 ] . Exporter = func ( v interface { } , i int ) interface { } {
switch v := v . ( * Duration ) ; i {
case 0 :
return & v . state
case 1 :
return & v . sizeCache
case 2 :
return & v . unknownFields
default :
return nil
}
}
file_service_proto_msgTypes [ 10 ] . Exporter = func ( v interface { } , i int ) interface { } {
switch v := v . ( * PingResponse ) ; i {
case 0 :
return & v . state
case 1 :
return & v . sizeCache
case 2 :
return & v . unknownFields
default :
return nil
}
}
}
type x struct { }
out := protoimpl . TypeBuilder {
File : protoimpl . DescBuilder {
GoPackagePath : reflect . TypeOf ( x { } ) . PkgPath ( ) ,
RawDescriptor : file_service_proto_rawDesc ,
NumEnums : 0 ,
NumMessages : 11 ,
NumExtensions : 0 ,
NumServices : 1 ,
} ,
GoTypes : file_service_proto_goTypes ,
DependencyIndexes : file_service_proto_depIdxs ,
MessageInfos : file_service_proto_msgTypes ,
} . Build ( )
File_service_proto = out . File
file_service_proto_rawDesc = nil
file_service_proto_goTypes = nil
file_service_proto_depIdxs = nil
2018-12-04 12:29:34 -08:00
}
// Reference imports to suppress errors if they are not otherwise used.
var _ context . Context
2020-03-19 11:39:48 -07:00
var _ grpc . ClientConnInterface
2018-12-04 12:29:34 -08:00
// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
2020-03-19 11:39:48 -07:00
const _ = grpc . SupportPackageIsVersion6
2018-12-04 12:29:34 -08:00
// CompactTxStreamerClient is the client API for CompactTxStreamer service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type CompactTxStreamerClient interface {
2020-03-31 12:47:52 -07:00
// Return the height of the tip of the best chain
2018-12-04 12:29:34 -08:00
GetLatestBlock ( ctx context . Context , in * ChainSpec , opts ... grpc . CallOption ) ( * BlockID , error )
2020-03-31 12:47:52 -07:00
// Return the compact block corresponding to the given block identifier
2018-12-04 12:29:34 -08:00
GetBlock ( ctx context . Context , in * BlockID , opts ... grpc . CallOption ) ( * CompactBlock , error )
2020-03-31 12:47:52 -07:00
// Return a list of consecutive compact blocks
2018-12-04 12:29:34 -08:00
GetBlockRange ( ctx context . Context , in * BlockRange , opts ... grpc . CallOption ) ( CompactTxStreamer_GetBlockRangeClient , error )
2020-03-31 12:47:52 -07:00
// Return the requested full (not compact) transaction (as from zcashd)
2018-12-04 12:29:34 -08:00
GetTransaction ( ctx context . Context , in * TxFilter , opts ... grpc . CallOption ) ( * RawTransaction , error )
2020-03-31 12:47:52 -07:00
// Submit the given transaction to the zcash network
2018-12-04 12:29:34 -08:00
SendTransaction ( ctx context . Context , in * RawTransaction , opts ... grpc . CallOption ) ( * SendResponse , error )
2020-03-31 12:47:52 -07:00
// Return the txids corresponding to the given t-address within the given block range
2019-11-27 15:32:26 -08:00
GetAddressTxids ( ctx context . Context , in * TransparentAddressBlockFilter , opts ... grpc . CallOption ) ( CompactTxStreamer_GetAddressTxidsClient , error )
2020-03-31 12:47:52 -07:00
// Return information about this lightwalletd instance and the blockchain
2019-12-17 10:57:17 -08:00
GetLightdInfo ( ctx context . Context , in * Empty , opts ... grpc . CallOption ) ( * LightdInfo , error )
2020-03-31 12:47:52 -07:00
// Testing-only
2020-03-11 13:56:23 -07:00
Ping ( ctx context . Context , in * Duration , opts ... grpc . CallOption ) ( * PingResponse , error )
2018-12-04 12:29:34 -08:00
}
type compactTxStreamerClient struct {
2020-03-19 11:39:48 -07:00
cc grpc . ClientConnInterface
2018-12-04 12:29:34 -08:00
}
2020-03-19 11:39:48 -07:00
func NewCompactTxStreamerClient ( cc grpc . ClientConnInterface ) CompactTxStreamerClient {
2018-12-04 12:29:34 -08:00
return & compactTxStreamerClient { cc }
}
func ( c * compactTxStreamerClient ) GetLatestBlock ( ctx context . Context , in * ChainSpec , opts ... grpc . CallOption ) ( * BlockID , error ) {
out := new ( BlockID )
2019-01-07 11:20:47 -08:00
err := c . cc . Invoke ( ctx , "/cash.z.wallet.sdk.rpc.CompactTxStreamer/GetLatestBlock" , in , out , opts ... )
2018-12-04 12:29:34 -08:00
if err != nil {
return nil , err
}
return out , nil
}
func ( c * compactTxStreamerClient ) GetBlock ( ctx context . Context , in * BlockID , opts ... grpc . CallOption ) ( * CompactBlock , error ) {
out := new ( CompactBlock )
2019-01-07 11:20:47 -08:00
err := c . cc . Invoke ( ctx , "/cash.z.wallet.sdk.rpc.CompactTxStreamer/GetBlock" , in , out , opts ... )
2018-12-04 12:29:34 -08:00
if err != nil {
return nil , err
}
return out , nil
}
func ( c * compactTxStreamerClient ) GetBlockRange ( ctx context . Context , in * BlockRange , opts ... grpc . CallOption ) ( CompactTxStreamer_GetBlockRangeClient , error ) {
2019-01-07 11:20:47 -08:00
stream , err := c . cc . NewStream ( ctx , & _CompactTxStreamer_serviceDesc . Streams [ 0 ] , "/cash.z.wallet.sdk.rpc.CompactTxStreamer/GetBlockRange" , opts ... )
2018-12-04 12:29:34 -08:00
if err != nil {
return nil , err
}
x := & compactTxStreamerGetBlockRangeClient { stream }
if err := x . ClientStream . SendMsg ( in ) ; err != nil {
return nil , err
}
if err := x . ClientStream . CloseSend ( ) ; err != nil {
return nil , err
}
return x , nil
}
type CompactTxStreamer_GetBlockRangeClient interface {
Recv ( ) ( * CompactBlock , error )
grpc . ClientStream
}
type compactTxStreamerGetBlockRangeClient struct {
grpc . ClientStream
}
func ( x * compactTxStreamerGetBlockRangeClient ) Recv ( ) ( * CompactBlock , error ) {
m := new ( CompactBlock )
if err := x . ClientStream . RecvMsg ( m ) ; err != nil {
return nil , err
}
return m , nil
}
func ( c * compactTxStreamerClient ) GetTransaction ( ctx context . Context , in * TxFilter , opts ... grpc . CallOption ) ( * RawTransaction , error ) {
out := new ( RawTransaction )
2019-01-07 11:20:47 -08:00
err := c . cc . Invoke ( ctx , "/cash.z.wallet.sdk.rpc.CompactTxStreamer/GetTransaction" , in , out , opts ... )
2018-12-04 12:29:34 -08:00
if err != nil {
return nil , err
}
return out , nil
}
func ( c * compactTxStreamerClient ) SendTransaction ( ctx context . Context , in * RawTransaction , opts ... grpc . CallOption ) ( * SendResponse , error ) {
out := new ( SendResponse )
2019-01-07 11:20:47 -08:00
err := c . cc . Invoke ( ctx , "/cash.z.wallet.sdk.rpc.CompactTxStreamer/SendTransaction" , in , out , opts ... )
2018-12-04 12:29:34 -08:00
if err != nil {
return nil , err
}
return out , nil
}
2019-11-27 15:32:26 -08:00
func ( c * compactTxStreamerClient ) GetAddressTxids ( ctx context . Context , in * TransparentAddressBlockFilter , opts ... grpc . CallOption ) ( CompactTxStreamer_GetAddressTxidsClient , error ) {
stream , err := c . cc . NewStream ( ctx , & _CompactTxStreamer_serviceDesc . Streams [ 1 ] , "/cash.z.wallet.sdk.rpc.CompactTxStreamer/GetAddressTxids" , opts ... )
if err != nil {
return nil , err
}
x := & compactTxStreamerGetAddressTxidsClient { stream }
if err := x . ClientStream . SendMsg ( in ) ; err != nil {
return nil , err
}
if err := x . ClientStream . CloseSend ( ) ; err != nil {
return nil , err
}
return x , nil
}
type CompactTxStreamer_GetAddressTxidsClient interface {
Recv ( ) ( * RawTransaction , error )
grpc . ClientStream
}
type compactTxStreamerGetAddressTxidsClient struct {
grpc . ClientStream
}
func ( x * compactTxStreamerGetAddressTxidsClient ) Recv ( ) ( * RawTransaction , error ) {
m := new ( RawTransaction )
if err := x . ClientStream . RecvMsg ( m ) ; err != nil {
return nil , err
}
return m , nil
}
2019-12-17 10:57:17 -08:00
func ( c * compactTxStreamerClient ) GetLightdInfo ( ctx context . Context , in * Empty , opts ... grpc . CallOption ) ( * LightdInfo , error ) {
out := new ( LightdInfo )
err := c . cc . Invoke ( ctx , "/cash.z.wallet.sdk.rpc.CompactTxStreamer/GetLightdInfo" , in , out , opts ... )
if err != nil {
return nil , err
}
return out , nil
}
2020-03-11 13:56:23 -07:00
func ( c * compactTxStreamerClient ) Ping ( ctx context . Context , in * Duration , opts ... grpc . CallOption ) ( * PingResponse , error ) {
out := new ( PingResponse )
err := c . cc . Invoke ( ctx , "/cash.z.wallet.sdk.rpc.CompactTxStreamer/Ping" , in , out , opts ... )
2020-03-22 12:18:48 -07:00
if err != nil {
return nil , err
}
return out , nil
}
2018-12-04 12:29:34 -08:00
// CompactTxStreamerServer is the server API for CompactTxStreamer service.
type CompactTxStreamerServer interface {
2020-03-31 12:47:52 -07:00
// Return the height of the tip of the best chain
2018-12-04 12:29:34 -08:00
GetLatestBlock ( context . Context , * ChainSpec ) ( * BlockID , error )
2020-03-31 12:47:52 -07:00
// Return the compact block corresponding to the given block identifier
2018-12-04 12:29:34 -08:00
GetBlock ( context . Context , * BlockID ) ( * CompactBlock , error )
2020-03-31 12:47:52 -07:00
// Return a list of consecutive compact blocks
2018-12-04 12:29:34 -08:00
GetBlockRange ( * BlockRange , CompactTxStreamer_GetBlockRangeServer ) error
2020-03-31 12:47:52 -07:00
// Return the requested full (not compact) transaction (as from zcashd)
2018-12-04 12:29:34 -08:00
GetTransaction ( context . Context , * TxFilter ) ( * RawTransaction , error )
2020-03-31 12:47:52 -07:00
// Submit the given transaction to the zcash network
2018-12-04 12:29:34 -08:00
SendTransaction ( context . Context , * RawTransaction ) ( * SendResponse , error )
2020-03-31 12:47:52 -07:00
// Return the txids corresponding to the given t-address within the given block range
2019-11-27 15:32:26 -08:00
GetAddressTxids ( * TransparentAddressBlockFilter , CompactTxStreamer_GetAddressTxidsServer ) error
2020-03-31 12:47:52 -07:00
// Return information about this lightwalletd instance and the blockchain
2019-12-17 10:57:17 -08:00
GetLightdInfo ( context . Context , * Empty ) ( * LightdInfo , error )
2020-03-31 12:47:52 -07:00
// Testing-only
2020-03-11 13:56:23 -07:00
Ping ( context . Context , * Duration ) ( * PingResponse , error )
2019-12-17 10:57:17 -08:00
}
// UnimplementedCompactTxStreamerServer can be embedded to have forward compatible implementations.
type UnimplementedCompactTxStreamerServer struct {
}
2020-04-24 14:46:45 -07:00
func ( * UnimplementedCompactTxStreamerServer ) GetLatestBlock ( context . Context , * ChainSpec ) ( * BlockID , error ) {
2019-12-17 10:57:17 -08:00
return nil , status . Errorf ( codes . Unimplemented , "method GetLatestBlock not implemented" )
}
2020-04-24 14:46:45 -07:00
func ( * UnimplementedCompactTxStreamerServer ) GetBlock ( context . Context , * BlockID ) ( * CompactBlock , error ) {
2019-12-17 10:57:17 -08:00
return nil , status . Errorf ( codes . Unimplemented , "method GetBlock not implemented" )
}
2020-04-24 14:46:45 -07:00
func ( * UnimplementedCompactTxStreamerServer ) GetBlockRange ( * BlockRange , CompactTxStreamer_GetBlockRangeServer ) error {
2019-12-17 10:57:17 -08:00
return status . Errorf ( codes . Unimplemented , "method GetBlockRange not implemented" )
}
2020-04-24 14:46:45 -07:00
func ( * UnimplementedCompactTxStreamerServer ) GetTransaction ( context . Context , * TxFilter ) ( * RawTransaction , error ) {
2019-12-17 10:57:17 -08:00
return nil , status . Errorf ( codes . Unimplemented , "method GetTransaction not implemented" )
}
2020-04-24 14:46:45 -07:00
func ( * UnimplementedCompactTxStreamerServer ) SendTransaction ( context . Context , * RawTransaction ) ( * SendResponse , error ) {
2019-12-17 10:57:17 -08:00
return nil , status . Errorf ( codes . Unimplemented , "method SendTransaction not implemented" )
}
2020-04-24 14:46:45 -07:00
func ( * UnimplementedCompactTxStreamerServer ) GetAddressTxids ( * TransparentAddressBlockFilter , CompactTxStreamer_GetAddressTxidsServer ) error {
2019-11-27 15:32:26 -08:00
return status . Errorf ( codes . Unimplemented , "method GetAddressTxids not implemented" )
}
2020-04-24 14:46:45 -07:00
func ( * UnimplementedCompactTxStreamerServer ) GetLightdInfo ( context . Context , * Empty ) ( * LightdInfo , error ) {
2019-12-17 10:57:17 -08:00
return nil , status . Errorf ( codes . Unimplemented , "method GetLightdInfo not implemented" )
2018-12-04 12:29:34 -08:00
}
2020-04-24 14:46:45 -07:00
func ( * UnimplementedCompactTxStreamerServer ) Ping ( context . Context , * Duration ) ( * PingResponse , error ) {
2020-03-11 13:56:23 -07:00
return nil , status . Errorf ( codes . Unimplemented , "method Ping not implemented" )
2020-03-22 12:18:48 -07:00
}
2018-12-04 12:29:34 -08:00
func RegisterCompactTxStreamerServer ( s * grpc . Server , srv CompactTxStreamerServer ) {
s . RegisterService ( & _CompactTxStreamer_serviceDesc , srv )
}
func _CompactTxStreamer_GetLatestBlock_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( ChainSpec )
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
return srv . ( CompactTxStreamerServer ) . GetLatestBlock ( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
2019-01-07 11:20:47 -08:00
FullMethod : "/cash.z.wallet.sdk.rpc.CompactTxStreamer/GetLatestBlock" ,
2018-12-04 12:29:34 -08:00
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
return srv . ( CompactTxStreamerServer ) . GetLatestBlock ( ctx , req . ( * ChainSpec ) )
}
return interceptor ( ctx , in , info , handler )
}
func _CompactTxStreamer_GetBlock_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( BlockID )
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
return srv . ( CompactTxStreamerServer ) . GetBlock ( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
2019-01-07 11:20:47 -08:00
FullMethod : "/cash.z.wallet.sdk.rpc.CompactTxStreamer/GetBlock" ,
2018-12-04 12:29:34 -08:00
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
return srv . ( CompactTxStreamerServer ) . GetBlock ( ctx , req . ( * BlockID ) )
}
return interceptor ( ctx , in , info , handler )
}
func _CompactTxStreamer_GetBlockRange_Handler ( srv interface { } , stream grpc . ServerStream ) error {
m := new ( BlockRange )
if err := stream . RecvMsg ( m ) ; err != nil {
return err
}
return srv . ( CompactTxStreamerServer ) . GetBlockRange ( m , & compactTxStreamerGetBlockRangeServer { stream } )
}
type CompactTxStreamer_GetBlockRangeServer interface {
Send ( * CompactBlock ) error
grpc . ServerStream
}
type compactTxStreamerGetBlockRangeServer struct {
grpc . ServerStream
}
func ( x * compactTxStreamerGetBlockRangeServer ) Send ( m * CompactBlock ) error {
return x . ServerStream . SendMsg ( m )
}
func _CompactTxStreamer_GetTransaction_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( TxFilter )
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
return srv . ( CompactTxStreamerServer ) . GetTransaction ( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
2019-01-07 11:20:47 -08:00
FullMethod : "/cash.z.wallet.sdk.rpc.CompactTxStreamer/GetTransaction" ,
2018-12-04 12:29:34 -08:00
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
return srv . ( CompactTxStreamerServer ) . GetTransaction ( ctx , req . ( * TxFilter ) )
}
return interceptor ( ctx , in , info , handler )
}
func _CompactTxStreamer_SendTransaction_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( RawTransaction )
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
return srv . ( CompactTxStreamerServer ) . SendTransaction ( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
2019-01-07 11:20:47 -08:00
FullMethod : "/cash.z.wallet.sdk.rpc.CompactTxStreamer/SendTransaction" ,
2018-12-04 12:29:34 -08:00
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
return srv . ( CompactTxStreamerServer ) . SendTransaction ( ctx , req . ( * RawTransaction ) )
}
return interceptor ( ctx , in , info , handler )
}
2019-11-27 15:32:26 -08:00
func _CompactTxStreamer_GetAddressTxids_Handler ( srv interface { } , stream grpc . ServerStream ) error {
m := new ( TransparentAddressBlockFilter )
if err := stream . RecvMsg ( m ) ; err != nil {
return err
}
return srv . ( CompactTxStreamerServer ) . GetAddressTxids ( m , & compactTxStreamerGetAddressTxidsServer { stream } )
}
type CompactTxStreamer_GetAddressTxidsServer interface {
Send ( * RawTransaction ) error
grpc . ServerStream
}
type compactTxStreamerGetAddressTxidsServer struct {
grpc . ServerStream
}
func ( x * compactTxStreamerGetAddressTxidsServer ) Send ( m * RawTransaction ) error {
return x . ServerStream . SendMsg ( m )
}
2019-12-17 10:57:17 -08:00
func _CompactTxStreamer_GetLightdInfo_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( Empty )
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
return srv . ( CompactTxStreamerServer ) . GetLightdInfo ( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
FullMethod : "/cash.z.wallet.sdk.rpc.CompactTxStreamer/GetLightdInfo" ,
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
return srv . ( CompactTxStreamerServer ) . GetLightdInfo ( ctx , req . ( * Empty ) )
}
return interceptor ( ctx , in , info , handler )
}
2020-03-11 13:56:23 -07:00
func _CompactTxStreamer_Ping_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( Duration )
2020-03-22 12:18:48 -07:00
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
return srv . ( CompactTxStreamerServer ) . Ping ( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
FullMethod : "/cash.z.wallet.sdk.rpc.CompactTxStreamer/Ping" ,
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
return srv . ( CompactTxStreamerServer ) . Ping ( ctx , req . ( * Duration ) )
}
return interceptor ( ctx , in , info , handler )
}
2018-12-04 12:29:34 -08:00
var _CompactTxStreamer_serviceDesc = grpc . ServiceDesc {
2019-01-07 11:20:47 -08:00
ServiceName : "cash.z.wallet.sdk.rpc.CompactTxStreamer" ,
2018-12-04 12:29:34 -08:00
HandlerType : ( * CompactTxStreamerServer ) ( nil ) ,
Methods : [ ] grpc . MethodDesc {
{
MethodName : "GetLatestBlock" ,
Handler : _CompactTxStreamer_GetLatestBlock_Handler ,
} ,
{
MethodName : "GetBlock" ,
Handler : _CompactTxStreamer_GetBlock_Handler ,
} ,
{
MethodName : "GetTransaction" ,
Handler : _CompactTxStreamer_GetTransaction_Handler ,
} ,
{
MethodName : "SendTransaction" ,
Handler : _CompactTxStreamer_SendTransaction_Handler ,
} ,
2019-12-17 10:57:17 -08:00
{
MethodName : "GetLightdInfo" ,
Handler : _CompactTxStreamer_GetLightdInfo_Handler ,
} ,
2020-03-11 13:56:23 -07:00
{
MethodName : "Ping" ,
Handler : _CompactTxStreamer_Ping_Handler ,
2020-03-22 12:18:48 -07:00
} ,
2018-12-04 12:29:34 -08:00
} ,
Streams : [ ] grpc . StreamDesc {
{
StreamName : "GetBlockRange" ,
Handler : _CompactTxStreamer_GetBlockRange_Handler ,
ServerStreams : true ,
} ,
2019-11-27 15:32:26 -08:00
{
StreamName : "GetAddressTxids" ,
Handler : _CompactTxStreamer_GetAddressTxids_Handler ,
ServerStreams : true ,
} ,
2018-12-04 12:29:34 -08:00
} ,
Metadata : "service.proto" ,
}