// 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 . // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.25.0 // protoc v3.11.0 // source: darkside.proto package walletrpc import ( context "context" proto "github.com/golang/protobuf/proto" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" ) 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) ) // This is a compile-time assertion that a sufficiently up-to-date version // of the legacy proto package is being used. const _ = proto.ProtoPackageIsVersion4 type DarksideMetaState struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields SaplingActivation int32 `protobuf:"varint,1,opt,name=saplingActivation,proto3" json:"saplingActivation,omitempty"` BranchID string `protobuf:"bytes,2,opt,name=branchID,proto3" json:"branchID,omitempty"` ChainName string `protobuf:"bytes,3,opt,name=chainName,proto3" json:"chainName,omitempty"` } func (x *DarksideMetaState) Reset() { *x = DarksideMetaState{} if protoimpl.UnsafeEnabled { mi := &file_darkside_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *DarksideMetaState) String() string { return protoimpl.X.MessageStringOf(x) } func (*DarksideMetaState) ProtoMessage() {} func (x *DarksideMetaState) ProtoReflect() protoreflect.Message { mi := &file_darkside_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) } // Deprecated: Use DarksideMetaState.ProtoReflect.Descriptor instead. func (*DarksideMetaState) Descriptor() ([]byte, []int) { return file_darkside_proto_rawDescGZIP(), []int{0} } func (x *DarksideMetaState) GetSaplingActivation() int32 { if x != nil { return x.SaplingActivation } return 0 } func (x *DarksideMetaState) GetBranchID() string { if x != nil { return x.BranchID } return "" } func (x *DarksideMetaState) GetChainName() string { if x != nil { return x.ChainName } return "" } // A block is a hex-encoded string. type DarksideBlock struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields Block string `protobuf:"bytes,1,opt,name=block,proto3" json:"block,omitempty"` } func (x *DarksideBlock) Reset() { *x = DarksideBlock{} if protoimpl.UnsafeEnabled { mi := &file_darkside_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *DarksideBlock) String() string { return protoimpl.X.MessageStringOf(x) } func (*DarksideBlock) ProtoMessage() {} func (x *DarksideBlock) ProtoReflect() protoreflect.Message { mi := &file_darkside_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) } // Deprecated: Use DarksideBlock.ProtoReflect.Descriptor instead. func (*DarksideBlock) Descriptor() ([]byte, []int) { return file_darkside_proto_rawDescGZIP(), []int{1} } func (x *DarksideBlock) GetBlock() string { if x != nil { return x.Block } return "" } // DarksideBlocksURL is typically something like: // https://raw.githubusercontent.com/zcash-hackworks/darksidewalletd-test-data/master/basic-reorg/before-reorg.txt type DarksideBlocksURL struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"` } func (x *DarksideBlocksURL) Reset() { *x = DarksideBlocksURL{} if protoimpl.UnsafeEnabled { mi := &file_darkside_proto_msgTypes[2] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *DarksideBlocksURL) String() string { return protoimpl.X.MessageStringOf(x) } func (*DarksideBlocksURL) ProtoMessage() {} func (x *DarksideBlocksURL) ProtoReflect() protoreflect.Message { mi := &file_darkside_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) } // Deprecated: Use DarksideBlocksURL.ProtoReflect.Descriptor instead. func (*DarksideBlocksURL) Descriptor() ([]byte, []int) { return file_darkside_proto_rawDescGZIP(), []int{2} } func (x *DarksideBlocksURL) GetUrl() string { if x != nil { return x.Url } return "" } // DarksideTransactionsURL refers to an HTTP source that contains a list // of hex-encoded transactions, one per line, that are to be associated // with the given height (fake-mined into the block at that height) type DarksideTransactionsURL struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields Height int32 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"` Url string `protobuf:"bytes,2,opt,name=url,proto3" json:"url,omitempty"` } func (x *DarksideTransactionsURL) Reset() { *x = DarksideTransactionsURL{} if protoimpl.UnsafeEnabled { mi := &file_darkside_proto_msgTypes[3] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *DarksideTransactionsURL) String() string { return protoimpl.X.MessageStringOf(x) } func (*DarksideTransactionsURL) ProtoMessage() {} func (x *DarksideTransactionsURL) ProtoReflect() protoreflect.Message { mi := &file_darkside_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) } // Deprecated: Use DarksideTransactionsURL.ProtoReflect.Descriptor instead. func (*DarksideTransactionsURL) Descriptor() ([]byte, []int) { return file_darkside_proto_rawDescGZIP(), []int{3} } func (x *DarksideTransactionsURL) GetHeight() int32 { if x != nil { return x.Height } return 0 } func (x *DarksideTransactionsURL) GetUrl() string { if x != nil { return x.Url } return "" } type DarksideHeight struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields Height int32 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"` } func (x *DarksideHeight) Reset() { *x = DarksideHeight{} if protoimpl.UnsafeEnabled { mi := &file_darkside_proto_msgTypes[4] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *DarksideHeight) String() string { return protoimpl.X.MessageStringOf(x) } func (*DarksideHeight) ProtoMessage() {} func (x *DarksideHeight) ProtoReflect() protoreflect.Message { mi := &file_darkside_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) } // Deprecated: Use DarksideHeight.ProtoReflect.Descriptor instead. func (*DarksideHeight) Descriptor() ([]byte, []int) { return file_darkside_proto_rawDescGZIP(), []int{4} } func (x *DarksideHeight) GetHeight() int32 { if x != nil { return x.Height } return 0 } type DarksideEmptyBlocks struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields Height int32 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"` Nonce int32 `protobuf:"varint,2,opt,name=nonce,proto3" json:"nonce,omitempty"` Count int32 `protobuf:"varint,3,opt,name=count,proto3" json:"count,omitempty"` } func (x *DarksideEmptyBlocks) Reset() { *x = DarksideEmptyBlocks{} if protoimpl.UnsafeEnabled { mi := &file_darkside_proto_msgTypes[5] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *DarksideEmptyBlocks) String() string { return protoimpl.X.MessageStringOf(x) } func (*DarksideEmptyBlocks) ProtoMessage() {} func (x *DarksideEmptyBlocks) ProtoReflect() protoreflect.Message { mi := &file_darkside_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) } // Deprecated: Use DarksideEmptyBlocks.ProtoReflect.Descriptor instead. func (*DarksideEmptyBlocks) Descriptor() ([]byte, []int) { return file_darkside_proto_rawDescGZIP(), []int{5} } func (x *DarksideEmptyBlocks) GetHeight() int32 { if x != nil { return x.Height } return 0 } func (x *DarksideEmptyBlocks) GetNonce() int32 { if x != nil { return x.Nonce } return 0 } func (x *DarksideEmptyBlocks) GetCount() int32 { if x != nil { return x.Count } return 0 } var File_darkside_proto protoreflect.FileDescriptor var file_darkside_proto_rawDesc = []byte{ 0x0a, 0x0e, 0x64, 0x61, 0x72, 0x6b, 0x73, 0x69, 0x64, 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, 0x0d, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x7b, 0x0a, 0x11, 0x44, 0x61, 0x72, 0x6b, 0x73, 0x69, 0x64, 0x65, 0x4d, 0x65, 0x74, 0x61, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x2c, 0x0a, 0x11, 0x73, 0x61, 0x70, 0x6c, 0x69, 0x6e, 0x67, 0x41, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x11, 0x73, 0x61, 0x70, 0x6c, 0x69, 0x6e, 0x67, 0x41, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1a, 0x0a, 0x08, 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x49, 0x44, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x49, 0x44, 0x12, 0x1c, 0x0a, 0x09, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x4e, 0x61, 0x6d, 0x65, 0x22, 0x25, 0x0a, 0x0d, 0x44, 0x61, 0x72, 0x6b, 0x73, 0x69, 0x64, 0x65, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x12, 0x14, 0x0a, 0x05, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x22, 0x25, 0x0a, 0x11, 0x44, 0x61, 0x72, 0x6b, 0x73, 0x69, 0x64, 0x65, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x73, 0x55, 0x52, 0x4c, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x72, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x72, 0x6c, 0x22, 0x43, 0x0a, 0x17, 0x44, 0x61, 0x72, 0x6b, 0x73, 0x69, 0x64, 0x65, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x55, 0x52, 0x4c, 0x12, 0x16, 0x0a, 0x06, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x72, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x72, 0x6c, 0x22, 0x28, 0x0a, 0x0e, 0x44, 0x61, 0x72, 0x6b, 0x73, 0x69, 0x64, 0x65, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x22, 0x59, 0x0a, 0x13, 0x44, 0x61, 0x72, 0x6b, 0x73, 0x69, 0x64, 0x65, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x6e, 0x6f, 0x6e, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x6e, 0x6f, 0x6e, 0x63, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x32, 0xda, 0x06, 0x0a, 0x10, 0x44, 0x61, 0x72, 0x6b, 0x73, 0x69, 0x64, 0x65, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x65, 0x72, 0x12, 0x51, 0x0a, 0x05, 0x52, 0x65, 0x73, 0x65, 0x74, 0x12, 0x28, 0x2e, 0x63, 0x61, 0x73, 0x68, 0x2e, 0x7a, 0x2e, 0x77, 0x61, 0x6c, 0x6c, 0x65, 0x74, 0x2e, 0x73, 0x64, 0x6b, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x44, 0x61, 0x72, 0x6b, 0x73, 0x69, 0x64, 0x65, 0x4d, 0x65, 0x74, 0x61, 0x53, 0x74, 0x61, 0x74, 0x65, 0x1a, 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, 0x22, 0x00, 0x12, 0x5b, 0x0a, 0x11, 0x53, 0x74, 0x61, 0x67, 0x65, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x73, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x12, 0x24, 0x2e, 0x63, 0x61, 0x73, 0x68, 0x2e, 0x7a, 0x2e, 0x77, 0x61, 0x6c, 0x6c, 0x65, 0x74, 0x2e, 0x73, 0x64, 0x6b, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x44, 0x61, 0x72, 0x6b, 0x73, 0x69, 0x64, 0x65, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x1a, 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, 0x22, 0x00, 0x28, 0x01, 0x12, 0x57, 0x0a, 0x0b, 0x53, 0x74, 0x61, 0x67, 0x65, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x73, 0x12, 0x28, 0x2e, 0x63, 0x61, 0x73, 0x68, 0x2e, 0x7a, 0x2e, 0x77, 0x61, 0x6c, 0x6c, 0x65, 0x74, 0x2e, 0x73, 0x64, 0x6b, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x44, 0x61, 0x72, 0x6b, 0x73, 0x69, 0x64, 0x65, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x73, 0x55, 0x52, 0x4c, 0x1a, 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, 0x22, 0x00, 0x12, 0x5f, 0x0a, 0x11, 0x53, 0x74, 0x61, 0x67, 0x65, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x73, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x12, 0x2a, 0x2e, 0x63, 0x61, 0x73, 0x68, 0x2e, 0x7a, 0x2e, 0x77, 0x61, 0x6c, 0x6c, 0x65, 0x74, 0x2e, 0x73, 0x64, 0x6b, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x44, 0x61, 0x72, 0x6b, 0x73, 0x69, 0x64, 0x65, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x73, 0x1a, 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, 0x22, 0x00, 0x12, 0x62, 0x0a, 0x17, 0x53, 0x74, 0x61, 0x67, 0x65, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 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, 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, 0x22, 0x00, 0x28, 0x01, 0x12, 0x63, 0x0a, 0x11, 0x53, 0x74, 0x61, 0x67, 0x65, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x2e, 0x2e, 0x63, 0x61, 0x73, 0x68, 0x2e, 0x7a, 0x2e, 0x77, 0x61, 0x6c, 0x6c, 0x65, 0x74, 0x2e, 0x73, 0x64, 0x6b, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x44, 0x61, 0x72, 0x6b, 0x73, 0x69, 0x64, 0x65, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x55, 0x52, 0x4c, 0x1a, 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, 0x22, 0x00, 0x12, 0x54, 0x0a, 0x0b, 0x41, 0x70, 0x70, 0x6c, 0x79, 0x53, 0x74, 0x61, 0x67, 0x65, 0x64, 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, 0x44, 0x61, 0x72, 0x6b, 0x73, 0x69, 0x64, 0x65, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x1a, 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, 0x22, 0x00, 0x12, 0x62, 0x0a, 0x17, 0x47, 0x65, 0x74, 0x49, 0x6e, 0x63, 0x6f, 0x6d, 0x69, 0x6e, 0x67, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 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, 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, 0x59, 0x0a, 0x19, 0x43, 0x6c, 0x65, 0x61, 0x72, 0x49, 0x6e, 0x63, 0x6f, 0x6d, 0x69, 0x6e, 0x67, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 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, 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, 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_darkside_proto_rawDescOnce sync.Once file_darkside_proto_rawDescData = file_darkside_proto_rawDesc ) func file_darkside_proto_rawDescGZIP() []byte { file_darkside_proto_rawDescOnce.Do(func() { file_darkside_proto_rawDescData = protoimpl.X.CompressGZIP(file_darkside_proto_rawDescData) }) return file_darkside_proto_rawDescData } var file_darkside_proto_msgTypes = make([]protoimpl.MessageInfo, 6) var file_darkside_proto_goTypes = []interface{}{ (*DarksideMetaState)(nil), // 0: cash.z.wallet.sdk.rpc.DarksideMetaState (*DarksideBlock)(nil), // 1: cash.z.wallet.sdk.rpc.DarksideBlock (*DarksideBlocksURL)(nil), // 2: cash.z.wallet.sdk.rpc.DarksideBlocksURL (*DarksideTransactionsURL)(nil), // 3: cash.z.wallet.sdk.rpc.DarksideTransactionsURL (*DarksideHeight)(nil), // 4: cash.z.wallet.sdk.rpc.DarksideHeight (*DarksideEmptyBlocks)(nil), // 5: cash.z.wallet.sdk.rpc.DarksideEmptyBlocks (*RawTransaction)(nil), // 6: cash.z.wallet.sdk.rpc.RawTransaction (*Empty)(nil), // 7: cash.z.wallet.sdk.rpc.Empty } var file_darkside_proto_depIdxs = []int32{ 0, // 0: cash.z.wallet.sdk.rpc.DarksideStreamer.Reset:input_type -> cash.z.wallet.sdk.rpc.DarksideMetaState 1, // 1: cash.z.wallet.sdk.rpc.DarksideStreamer.StageBlocksStream:input_type -> cash.z.wallet.sdk.rpc.DarksideBlock 2, // 2: cash.z.wallet.sdk.rpc.DarksideStreamer.StageBlocks:input_type -> cash.z.wallet.sdk.rpc.DarksideBlocksURL 5, // 3: cash.z.wallet.sdk.rpc.DarksideStreamer.StageBlocksCreate:input_type -> cash.z.wallet.sdk.rpc.DarksideEmptyBlocks 6, // 4: cash.z.wallet.sdk.rpc.DarksideStreamer.StageTransactionsStream:input_type -> cash.z.wallet.sdk.rpc.RawTransaction 3, // 5: cash.z.wallet.sdk.rpc.DarksideStreamer.StageTransactions:input_type -> cash.z.wallet.sdk.rpc.DarksideTransactionsURL 4, // 6: cash.z.wallet.sdk.rpc.DarksideStreamer.ApplyStaged:input_type -> cash.z.wallet.sdk.rpc.DarksideHeight 7, // 7: cash.z.wallet.sdk.rpc.DarksideStreamer.GetIncomingTransactions:input_type -> cash.z.wallet.sdk.rpc.Empty 7, // 8: cash.z.wallet.sdk.rpc.DarksideStreamer.ClearIncomingTransactions:input_type -> cash.z.wallet.sdk.rpc.Empty 7, // 9: cash.z.wallet.sdk.rpc.DarksideStreamer.Reset:output_type -> cash.z.wallet.sdk.rpc.Empty 7, // 10: cash.z.wallet.sdk.rpc.DarksideStreamer.StageBlocksStream:output_type -> cash.z.wallet.sdk.rpc.Empty 7, // 11: cash.z.wallet.sdk.rpc.DarksideStreamer.StageBlocks:output_type -> cash.z.wallet.sdk.rpc.Empty 7, // 12: cash.z.wallet.sdk.rpc.DarksideStreamer.StageBlocksCreate:output_type -> cash.z.wallet.sdk.rpc.Empty 7, // 13: cash.z.wallet.sdk.rpc.DarksideStreamer.StageTransactionsStream:output_type -> cash.z.wallet.sdk.rpc.Empty 7, // 14: cash.z.wallet.sdk.rpc.DarksideStreamer.StageTransactions:output_type -> cash.z.wallet.sdk.rpc.Empty 7, // 15: cash.z.wallet.sdk.rpc.DarksideStreamer.ApplyStaged:output_type -> cash.z.wallet.sdk.rpc.Empty 6, // 16: cash.z.wallet.sdk.rpc.DarksideStreamer.GetIncomingTransactions:output_type -> cash.z.wallet.sdk.rpc.RawTransaction 7, // 17: cash.z.wallet.sdk.rpc.DarksideStreamer.ClearIncomingTransactions:output_type -> cash.z.wallet.sdk.rpc.Empty 9, // [9:18] is the sub-list for method output_type 0, // [0:9] is the sub-list for method input_type 0, // [0:0] is the sub-list for extension type_name 0, // [0:0] is the sub-list for extension extendee 0, // [0:0] is the sub-list for field type_name } func init() { file_darkside_proto_init() } func file_darkside_proto_init() { if File_darkside_proto != nil { return } file_service_proto_init() if !protoimpl.UnsafeEnabled { file_darkside_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*DarksideMetaState); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_darkside_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*DarksideBlock); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_darkside_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*DarksideBlocksURL); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_darkside_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*DarksideTransactionsURL); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_darkside_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*DarksideHeight); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_darkside_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*DarksideEmptyBlocks); 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_darkside_proto_rawDesc, NumEnums: 0, NumMessages: 6, NumExtensions: 0, NumServices: 1, }, GoTypes: file_darkside_proto_goTypes, DependencyIndexes: file_darkside_proto_depIdxs, MessageInfos: file_darkside_proto_msgTypes, }.Build() File_darkside_proto = out.File file_darkside_proto_rawDesc = nil file_darkside_proto_goTypes = nil file_darkside_proto_depIdxs = nil } // Reference imports to suppress errors if they are not otherwise used. var _ context.Context var _ grpc.ClientConnInterface // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. const _ = grpc.SupportPackageIsVersion6 // DarksideStreamerClient is the client API for DarksideStreamer service. // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. type DarksideStreamerClient interface { // Reset reverts all darksidewalletd state (active block range, latest height, // staged blocks and transactions) and lightwalletd state (cache) to empty, // the same as the initial state. This occurs synchronously and instantaneously; // no reorg happens in lightwalletd. This is good to do before each independent // test so that no state leaks from one test to another. // Also sets (some of) the values returned by GetLightdInfo(). The Sapling // activation height specified here must be where the block range starts. Reset(ctx context.Context, in *DarksideMetaState, opts ...grpc.CallOption) (*Empty, error) // StageBlocksStream accepts a list of blocks and saves them into the blocks // staging area until ApplyStaged() is called; there is no immediate effect on // the mock zcashd. Blocks are hex-encoded. Order is important, see ApplyStaged. StageBlocksStream(ctx context.Context, opts ...grpc.CallOption) (DarksideStreamer_StageBlocksStreamClient, error) // StageBlocks is the same as StageBlocksStream() except the blocks are fetched // from the given URL. Blocks are one per line, hex-encoded (not JSON). StageBlocks(ctx context.Context, in *DarksideBlocksURL, opts ...grpc.CallOption) (*Empty, error) // StageBlocksCreate is like the previous two, except it creates 'count' // empty blocks at consecutive heights starting at height 'height'. The // 'nonce' is part of the header, so it contributes to the block hash; this // lets you create identical blocks (same transactions and height), but with // different hashes. StageBlocksCreate(ctx context.Context, in *DarksideEmptyBlocks, opts ...grpc.CallOption) (*Empty, error) // StageTransactionsStream stores the given transaction-height pairs in the // staging area until ApplyStaged() is called. Note that these transactions // are not returned by the production GetTransaction() gRPC until they // appear in a "mined" block (contained in the active blockchain presented // by the mock zcashd). StageTransactionsStream(ctx context.Context, opts ...grpc.CallOption) (DarksideStreamer_StageTransactionsStreamClient, error) // StageTransactions is the same except the transactions are fetched from // the given url. They are all staged into the block at the given height. // Staging transactions to different heights requires multiple calls. StageTransactions(ctx context.Context, in *DarksideTransactionsURL, opts ...grpc.CallOption) (*Empty, error) // ApplyStaged iterates the list of blocks that were staged by the // StageBlocks*() gRPCs, in the order they were staged, and "merges" each // into the active, working blocks list that the mock zcashd is presenting // to lightwalletd. Even as each block is applied, the active list can't // have gaps; if the active block range is 1000-1006, and the staged block // range is 1003-1004, the resulting range is 1000-1004, with 1000-1002 // unchanged, blocks 1003-1004 from the new range, and 1005-1006 dropped. // // After merging all blocks, ApplyStaged() appends staged transactions (in // the order received) into each one's corresponding (by height) block // The staging area is then cleared. // // The argument specifies the latest block height that mock zcashd reports // (i.e. what's returned by GetLatestBlock). Note that ApplyStaged() can // also be used to simply advance the latest block height presented by mock // zcashd. That is, there doesn't need to be anything in the staging area. ApplyStaged(ctx context.Context, in *DarksideHeight, opts ...grpc.CallOption) (*Empty, error) // Calls to the production gRPC SendTransaction() store the transaction in // a separate area (not the staging area); this method returns all transactions // in this separate area, which is then cleared. The height returned // with each transaction is -1 (invalid) since these transactions haven't // been mined yet. The intention is that the transactions returned here can // then, for example, be given to StageTransactions() to get them "mined" // into a specified block on the next ApplyStaged(). GetIncomingTransactions(ctx context.Context, in *Empty, opts ...grpc.CallOption) (DarksideStreamer_GetIncomingTransactionsClient, error) // Clear the incoming transaction pool. ClearIncomingTransactions(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Empty, error) } type darksideStreamerClient struct { cc grpc.ClientConnInterface } func NewDarksideStreamerClient(cc grpc.ClientConnInterface) DarksideStreamerClient { return &darksideStreamerClient{cc} } func (c *darksideStreamerClient) Reset(ctx context.Context, in *DarksideMetaState, opts ...grpc.CallOption) (*Empty, error) { out := new(Empty) err := c.cc.Invoke(ctx, "/cash.z.wallet.sdk.rpc.DarksideStreamer/Reset", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *darksideStreamerClient) StageBlocksStream(ctx context.Context, opts ...grpc.CallOption) (DarksideStreamer_StageBlocksStreamClient, error) { stream, err := c.cc.NewStream(ctx, &_DarksideStreamer_serviceDesc.Streams[0], "/cash.z.wallet.sdk.rpc.DarksideStreamer/StageBlocksStream", opts...) if err != nil { return nil, err } x := &darksideStreamerStageBlocksStreamClient{stream} return x, nil } type DarksideStreamer_StageBlocksStreamClient interface { Send(*DarksideBlock) error CloseAndRecv() (*Empty, error) grpc.ClientStream } type darksideStreamerStageBlocksStreamClient struct { grpc.ClientStream } func (x *darksideStreamerStageBlocksStreamClient) Send(m *DarksideBlock) error { return x.ClientStream.SendMsg(m) } func (x *darksideStreamerStageBlocksStreamClient) CloseAndRecv() (*Empty, error) { if err := x.ClientStream.CloseSend(); err != nil { return nil, err } m := new(Empty) if err := x.ClientStream.RecvMsg(m); err != nil { return nil, err } return m, nil } func (c *darksideStreamerClient) StageBlocks(ctx context.Context, in *DarksideBlocksURL, opts ...grpc.CallOption) (*Empty, error) { out := new(Empty) err := c.cc.Invoke(ctx, "/cash.z.wallet.sdk.rpc.DarksideStreamer/StageBlocks", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *darksideStreamerClient) StageBlocksCreate(ctx context.Context, in *DarksideEmptyBlocks, opts ...grpc.CallOption) (*Empty, error) { out := new(Empty) err := c.cc.Invoke(ctx, "/cash.z.wallet.sdk.rpc.DarksideStreamer/StageBlocksCreate", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *darksideStreamerClient) StageTransactionsStream(ctx context.Context, opts ...grpc.CallOption) (DarksideStreamer_StageTransactionsStreamClient, error) { stream, err := c.cc.NewStream(ctx, &_DarksideStreamer_serviceDesc.Streams[1], "/cash.z.wallet.sdk.rpc.DarksideStreamer/StageTransactionsStream", opts...) if err != nil { return nil, err } x := &darksideStreamerStageTransactionsStreamClient{stream} return x, nil } type DarksideStreamer_StageTransactionsStreamClient interface { Send(*RawTransaction) error CloseAndRecv() (*Empty, error) grpc.ClientStream } type darksideStreamerStageTransactionsStreamClient struct { grpc.ClientStream } func (x *darksideStreamerStageTransactionsStreamClient) Send(m *RawTransaction) error { return x.ClientStream.SendMsg(m) } func (x *darksideStreamerStageTransactionsStreamClient) CloseAndRecv() (*Empty, error) { if err := x.ClientStream.CloseSend(); err != nil { return nil, err } m := new(Empty) if err := x.ClientStream.RecvMsg(m); err != nil { return nil, err } return m, nil } func (c *darksideStreamerClient) StageTransactions(ctx context.Context, in *DarksideTransactionsURL, opts ...grpc.CallOption) (*Empty, error) { out := new(Empty) err := c.cc.Invoke(ctx, "/cash.z.wallet.sdk.rpc.DarksideStreamer/StageTransactions", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *darksideStreamerClient) ApplyStaged(ctx context.Context, in *DarksideHeight, opts ...grpc.CallOption) (*Empty, error) { out := new(Empty) err := c.cc.Invoke(ctx, "/cash.z.wallet.sdk.rpc.DarksideStreamer/ApplyStaged", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *darksideStreamerClient) GetIncomingTransactions(ctx context.Context, in *Empty, opts ...grpc.CallOption) (DarksideStreamer_GetIncomingTransactionsClient, error) { stream, err := c.cc.NewStream(ctx, &_DarksideStreamer_serviceDesc.Streams[2], "/cash.z.wallet.sdk.rpc.DarksideStreamer/GetIncomingTransactions", opts...) if err != nil { return nil, err } x := &darksideStreamerGetIncomingTransactionsClient{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 DarksideStreamer_GetIncomingTransactionsClient interface { Recv() (*RawTransaction, error) grpc.ClientStream } type darksideStreamerGetIncomingTransactionsClient struct { grpc.ClientStream } func (x *darksideStreamerGetIncomingTransactionsClient) Recv() (*RawTransaction, error) { m := new(RawTransaction) if err := x.ClientStream.RecvMsg(m); err != nil { return nil, err } return m, nil } func (c *darksideStreamerClient) ClearIncomingTransactions(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Empty, error) { out := new(Empty) err := c.cc.Invoke(ctx, "/cash.z.wallet.sdk.rpc.DarksideStreamer/ClearIncomingTransactions", in, out, opts...) if err != nil { return nil, err } return out, nil } // DarksideStreamerServer is the server API for DarksideStreamer service. type DarksideStreamerServer interface { // Reset reverts all darksidewalletd state (active block range, latest height, // staged blocks and transactions) and lightwalletd state (cache) to empty, // the same as the initial state. This occurs synchronously and instantaneously; // no reorg happens in lightwalletd. This is good to do before each independent // test so that no state leaks from one test to another. // Also sets (some of) the values returned by GetLightdInfo(). The Sapling // activation height specified here must be where the block range starts. Reset(context.Context, *DarksideMetaState) (*Empty, error) // StageBlocksStream accepts a list of blocks and saves them into the blocks // staging area until ApplyStaged() is called; there is no immediate effect on // the mock zcashd. Blocks are hex-encoded. Order is important, see ApplyStaged. StageBlocksStream(DarksideStreamer_StageBlocksStreamServer) error // StageBlocks is the same as StageBlocksStream() except the blocks are fetched // from the given URL. Blocks are one per line, hex-encoded (not JSON). StageBlocks(context.Context, *DarksideBlocksURL) (*Empty, error) // StageBlocksCreate is like the previous two, except it creates 'count' // empty blocks at consecutive heights starting at height 'height'. The // 'nonce' is part of the header, so it contributes to the block hash; this // lets you create identical blocks (same transactions and height), but with // different hashes. StageBlocksCreate(context.Context, *DarksideEmptyBlocks) (*Empty, error) // StageTransactionsStream stores the given transaction-height pairs in the // staging area until ApplyStaged() is called. Note that these transactions // are not returned by the production GetTransaction() gRPC until they // appear in a "mined" block (contained in the active blockchain presented // by the mock zcashd). StageTransactionsStream(DarksideStreamer_StageTransactionsStreamServer) error // StageTransactions is the same except the transactions are fetched from // the given url. They are all staged into the block at the given height. // Staging transactions to different heights requires multiple calls. StageTransactions(context.Context, *DarksideTransactionsURL) (*Empty, error) // ApplyStaged iterates the list of blocks that were staged by the // StageBlocks*() gRPCs, in the order they were staged, and "merges" each // into the active, working blocks list that the mock zcashd is presenting // to lightwalletd. Even as each block is applied, the active list can't // have gaps; if the active block range is 1000-1006, and the staged block // range is 1003-1004, the resulting range is 1000-1004, with 1000-1002 // unchanged, blocks 1003-1004 from the new range, and 1005-1006 dropped. // // After merging all blocks, ApplyStaged() appends staged transactions (in // the order received) into each one's corresponding (by height) block // The staging area is then cleared. // // The argument specifies the latest block height that mock zcashd reports // (i.e. what's returned by GetLatestBlock). Note that ApplyStaged() can // also be used to simply advance the latest block height presented by mock // zcashd. That is, there doesn't need to be anything in the staging area. ApplyStaged(context.Context, *DarksideHeight) (*Empty, error) // Calls to the production gRPC SendTransaction() store the transaction in // a separate area (not the staging area); this method returns all transactions // in this separate area, which is then cleared. The height returned // with each transaction is -1 (invalid) since these transactions haven't // been mined yet. The intention is that the transactions returned here can // then, for example, be given to StageTransactions() to get them "mined" // into a specified block on the next ApplyStaged(). GetIncomingTransactions(*Empty, DarksideStreamer_GetIncomingTransactionsServer) error // Clear the incoming transaction pool. ClearIncomingTransactions(context.Context, *Empty) (*Empty, error) } // UnimplementedDarksideStreamerServer can be embedded to have forward compatible implementations. type UnimplementedDarksideStreamerServer struct { } func (*UnimplementedDarksideStreamerServer) Reset(context.Context, *DarksideMetaState) (*Empty, error) { return nil, status.Errorf(codes.Unimplemented, "method Reset not implemented") } func (*UnimplementedDarksideStreamerServer) StageBlocksStream(DarksideStreamer_StageBlocksStreamServer) error { return status.Errorf(codes.Unimplemented, "method StageBlocksStream not implemented") } func (*UnimplementedDarksideStreamerServer) StageBlocks(context.Context, *DarksideBlocksURL) (*Empty, error) { return nil, status.Errorf(codes.Unimplemented, "method StageBlocks not implemented") } func (*UnimplementedDarksideStreamerServer) StageBlocksCreate(context.Context, *DarksideEmptyBlocks) (*Empty, error) { return nil, status.Errorf(codes.Unimplemented, "method StageBlocksCreate not implemented") } func (*UnimplementedDarksideStreamerServer) StageTransactionsStream(DarksideStreamer_StageTransactionsStreamServer) error { return status.Errorf(codes.Unimplemented, "method StageTransactionsStream not implemented") } func (*UnimplementedDarksideStreamerServer) StageTransactions(context.Context, *DarksideTransactionsURL) (*Empty, error) { return nil, status.Errorf(codes.Unimplemented, "method StageTransactions not implemented") } func (*UnimplementedDarksideStreamerServer) ApplyStaged(context.Context, *DarksideHeight) (*Empty, error) { return nil, status.Errorf(codes.Unimplemented, "method ApplyStaged not implemented") } func (*UnimplementedDarksideStreamerServer) GetIncomingTransactions(*Empty, DarksideStreamer_GetIncomingTransactionsServer) error { return status.Errorf(codes.Unimplemented, "method GetIncomingTransactions not implemented") } func (*UnimplementedDarksideStreamerServer) ClearIncomingTransactions(context.Context, *Empty) (*Empty, error) { return nil, status.Errorf(codes.Unimplemented, "method ClearIncomingTransactions not implemented") } func RegisterDarksideStreamerServer(s *grpc.Server, srv DarksideStreamerServer) { s.RegisterService(&_DarksideStreamer_serviceDesc, srv) } func _DarksideStreamer_Reset_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(DarksideMetaState) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(DarksideStreamerServer).Reset(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/cash.z.wallet.sdk.rpc.DarksideStreamer/Reset", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(DarksideStreamerServer).Reset(ctx, req.(*DarksideMetaState)) } return interceptor(ctx, in, info, handler) } func _DarksideStreamer_StageBlocksStream_Handler(srv interface{}, stream grpc.ServerStream) error { return srv.(DarksideStreamerServer).StageBlocksStream(&darksideStreamerStageBlocksStreamServer{stream}) } type DarksideStreamer_StageBlocksStreamServer interface { SendAndClose(*Empty) error Recv() (*DarksideBlock, error) grpc.ServerStream } type darksideStreamerStageBlocksStreamServer struct { grpc.ServerStream } func (x *darksideStreamerStageBlocksStreamServer) SendAndClose(m *Empty) error { return x.ServerStream.SendMsg(m) } func (x *darksideStreamerStageBlocksStreamServer) Recv() (*DarksideBlock, error) { m := new(DarksideBlock) if err := x.ServerStream.RecvMsg(m); err != nil { return nil, err } return m, nil } func _DarksideStreamer_StageBlocks_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(DarksideBlocksURL) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(DarksideStreamerServer).StageBlocks(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/cash.z.wallet.sdk.rpc.DarksideStreamer/StageBlocks", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(DarksideStreamerServer).StageBlocks(ctx, req.(*DarksideBlocksURL)) } return interceptor(ctx, in, info, handler) } func _DarksideStreamer_StageBlocksCreate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(DarksideEmptyBlocks) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(DarksideStreamerServer).StageBlocksCreate(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/cash.z.wallet.sdk.rpc.DarksideStreamer/StageBlocksCreate", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(DarksideStreamerServer).StageBlocksCreate(ctx, req.(*DarksideEmptyBlocks)) } return interceptor(ctx, in, info, handler) } func _DarksideStreamer_StageTransactionsStream_Handler(srv interface{}, stream grpc.ServerStream) error { return srv.(DarksideStreamerServer).StageTransactionsStream(&darksideStreamerStageTransactionsStreamServer{stream}) } type DarksideStreamer_StageTransactionsStreamServer interface { SendAndClose(*Empty) error Recv() (*RawTransaction, error) grpc.ServerStream } type darksideStreamerStageTransactionsStreamServer struct { grpc.ServerStream } func (x *darksideStreamerStageTransactionsStreamServer) SendAndClose(m *Empty) error { return x.ServerStream.SendMsg(m) } func (x *darksideStreamerStageTransactionsStreamServer) Recv() (*RawTransaction, error) { m := new(RawTransaction) if err := x.ServerStream.RecvMsg(m); err != nil { return nil, err } return m, nil } func _DarksideStreamer_StageTransactions_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(DarksideTransactionsURL) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(DarksideStreamerServer).StageTransactions(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/cash.z.wallet.sdk.rpc.DarksideStreamer/StageTransactions", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(DarksideStreamerServer).StageTransactions(ctx, req.(*DarksideTransactionsURL)) } return interceptor(ctx, in, info, handler) } func _DarksideStreamer_ApplyStaged_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(DarksideHeight) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(DarksideStreamerServer).ApplyStaged(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/cash.z.wallet.sdk.rpc.DarksideStreamer/ApplyStaged", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(DarksideStreamerServer).ApplyStaged(ctx, req.(*DarksideHeight)) } return interceptor(ctx, in, info, handler) } func _DarksideStreamer_GetIncomingTransactions_Handler(srv interface{}, stream grpc.ServerStream) error { m := new(Empty) if err := stream.RecvMsg(m); err != nil { return err } return srv.(DarksideStreamerServer).GetIncomingTransactions(m, &darksideStreamerGetIncomingTransactionsServer{stream}) } type DarksideStreamer_GetIncomingTransactionsServer interface { Send(*RawTransaction) error grpc.ServerStream } type darksideStreamerGetIncomingTransactionsServer struct { grpc.ServerStream } func (x *darksideStreamerGetIncomingTransactionsServer) Send(m *RawTransaction) error { return x.ServerStream.SendMsg(m) } func _DarksideStreamer_ClearIncomingTransactions_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.(DarksideStreamerServer).ClearIncomingTransactions(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/cash.z.wallet.sdk.rpc.DarksideStreamer/ClearIncomingTransactions", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(DarksideStreamerServer).ClearIncomingTransactions(ctx, req.(*Empty)) } return interceptor(ctx, in, info, handler) } var _DarksideStreamer_serviceDesc = grpc.ServiceDesc{ ServiceName: "cash.z.wallet.sdk.rpc.DarksideStreamer", HandlerType: (*DarksideStreamerServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Reset", Handler: _DarksideStreamer_Reset_Handler, }, { MethodName: "StageBlocks", Handler: _DarksideStreamer_StageBlocks_Handler, }, { MethodName: "StageBlocksCreate", Handler: _DarksideStreamer_StageBlocksCreate_Handler, }, { MethodName: "StageTransactions", Handler: _DarksideStreamer_StageTransactions_Handler, }, { MethodName: "ApplyStaged", Handler: _DarksideStreamer_ApplyStaged_Handler, }, { MethodName: "ClearIncomingTransactions", Handler: _DarksideStreamer_ClearIncomingTransactions_Handler, }, }, Streams: []grpc.StreamDesc{ { StreamName: "StageBlocksStream", Handler: _DarksideStreamer_StageBlocksStream_Handler, ClientStreams: true, }, { StreamName: "StageTransactionsStream", Handler: _DarksideStreamer_StageTransactionsStream_Handler, ClientStreams: true, }, { StreamName: "GetIncomingTransactions", Handler: _DarksideStreamer_GetIncomingTransactions_Handler, ServerStreams: true, }, }, Metadata: "darkside.proto", }