1214 lines
48 KiB
Go
1214 lines
48 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// source: service.proto
|
|
|
|
package walletrpc
|
|
|
|
import (
|
|
context "context"
|
|
fmt "fmt"
|
|
proto "github.com/golang/protobuf/proto"
|
|
grpc "google.golang.org/grpc"
|
|
codes "google.golang.org/grpc/codes"
|
|
status "google.golang.org/grpc/status"
|
|
math "math"
|
|
)
|
|
|
|
// Reference imports to suppress errors if they are not otherwise used.
|
|
var _ = proto.Marshal
|
|
var _ = fmt.Errorf
|
|
var _ = math.Inf
|
|
|
|
// This is a compile-time assertion to ensure that this generated file
|
|
// is compatible with the proto package it is being compiled against.
|
|
// A compilation error at this line likely means your copy of the
|
|
// proto package needs to be updated.
|
|
const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
|
|
|
|
// A BlockID message contains identifiers to select a block: a height or a
|
|
// hash. Specification by hash is not implemented, but may be in the future.
|
|
type BlockID struct {
|
|
Height uint64 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"`
|
|
Hash []byte `protobuf:"bytes,2,opt,name=hash,proto3" json:"hash,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *BlockID) Reset() { *m = BlockID{} }
|
|
func (m *BlockID) String() string { return proto.CompactTextString(m) }
|
|
func (*BlockID) ProtoMessage() {}
|
|
func (*BlockID) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_a0b84a42fa06f626, []int{0}
|
|
}
|
|
|
|
func (m *BlockID) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_BlockID.Unmarshal(m, b)
|
|
}
|
|
func (m *BlockID) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_BlockID.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *BlockID) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_BlockID.Merge(m, src)
|
|
}
|
|
func (m *BlockID) XXX_Size() int {
|
|
return xxx_messageInfo_BlockID.Size(m)
|
|
}
|
|
func (m *BlockID) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_BlockID.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_BlockID proto.InternalMessageInfo
|
|
|
|
func (m *BlockID) GetHeight() uint64 {
|
|
if m != nil {
|
|
return m.Height
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *BlockID) GetHash() []byte {
|
|
if m != nil {
|
|
return m.Hash
|
|
}
|
|
return nil
|
|
}
|
|
|
|
// BlockRange specifies a series of blocks from start to end inclusive.
|
|
// Both BlockIDs must be heights; specification by hash is not yet supported.
|
|
type BlockRange struct {
|
|
Start *BlockID `protobuf:"bytes,1,opt,name=start,proto3" json:"start,omitempty"`
|
|
End *BlockID `protobuf:"bytes,2,opt,name=end,proto3" json:"end,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *BlockRange) Reset() { *m = BlockRange{} }
|
|
func (m *BlockRange) String() string { return proto.CompactTextString(m) }
|
|
func (*BlockRange) ProtoMessage() {}
|
|
func (*BlockRange) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_a0b84a42fa06f626, []int{1}
|
|
}
|
|
|
|
func (m *BlockRange) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_BlockRange.Unmarshal(m, b)
|
|
}
|
|
func (m *BlockRange) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_BlockRange.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *BlockRange) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_BlockRange.Merge(m, src)
|
|
}
|
|
func (m *BlockRange) XXX_Size() int {
|
|
return xxx_messageInfo_BlockRange.Size(m)
|
|
}
|
|
func (m *BlockRange) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_BlockRange.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_BlockRange proto.InternalMessageInfo
|
|
|
|
func (m *BlockRange) GetStart() *BlockID {
|
|
if m != nil {
|
|
return m.Start
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *BlockRange) GetEnd() *BlockID {
|
|
if m != nil {
|
|
return m.End
|
|
}
|
|
return nil
|
|
}
|
|
|
|
// A TxFilter contains the information needed to identify a particular
|
|
// transaction: either a block and an index, or a direct transaction hash.
|
|
// Currently, only specification by hash is supported.
|
|
type TxFilter struct {
|
|
Block *BlockID `protobuf:"bytes,1,opt,name=block,proto3" json:"block,omitempty"`
|
|
Index uint64 `protobuf:"varint,2,opt,name=index,proto3" json:"index,omitempty"`
|
|
Hash []byte `protobuf:"bytes,3,opt,name=hash,proto3" json:"hash,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *TxFilter) Reset() { *m = TxFilter{} }
|
|
func (m *TxFilter) String() string { return proto.CompactTextString(m) }
|
|
func (*TxFilter) ProtoMessage() {}
|
|
func (*TxFilter) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_a0b84a42fa06f626, []int{2}
|
|
}
|
|
|
|
func (m *TxFilter) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_TxFilter.Unmarshal(m, b)
|
|
}
|
|
func (m *TxFilter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_TxFilter.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *TxFilter) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_TxFilter.Merge(m, src)
|
|
}
|
|
func (m *TxFilter) XXX_Size() int {
|
|
return xxx_messageInfo_TxFilter.Size(m)
|
|
}
|
|
func (m *TxFilter) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_TxFilter.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_TxFilter proto.InternalMessageInfo
|
|
|
|
func (m *TxFilter) GetBlock() *BlockID {
|
|
if m != nil {
|
|
return m.Block
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *TxFilter) GetIndex() uint64 {
|
|
if m != nil {
|
|
return m.Index
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *TxFilter) GetHash() []byte {
|
|
if m != nil {
|
|
return m.Hash
|
|
}
|
|
return nil
|
|
}
|
|
|
|
// RawTransaction contains the complete transaction data. It also optionally includes
|
|
// the block height in which the transaction was included.
|
|
type RawTransaction struct {
|
|
Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
|
|
Height uint64 `protobuf:"varint,2,opt,name=height,proto3" json:"height,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *RawTransaction) Reset() { *m = RawTransaction{} }
|
|
func (m *RawTransaction) String() string { return proto.CompactTextString(m) }
|
|
func (*RawTransaction) ProtoMessage() {}
|
|
func (*RawTransaction) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_a0b84a42fa06f626, []int{3}
|
|
}
|
|
|
|
func (m *RawTransaction) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_RawTransaction.Unmarshal(m, b)
|
|
}
|
|
func (m *RawTransaction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_RawTransaction.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *RawTransaction) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_RawTransaction.Merge(m, src)
|
|
}
|
|
func (m *RawTransaction) XXX_Size() int {
|
|
return xxx_messageInfo_RawTransaction.Size(m)
|
|
}
|
|
func (m *RawTransaction) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_RawTransaction.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_RawTransaction proto.InternalMessageInfo
|
|
|
|
func (m *RawTransaction) GetData() []byte {
|
|
if m != nil {
|
|
return m.Data
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *RawTransaction) GetHeight() uint64 {
|
|
if m != nil {
|
|
return m.Height
|
|
}
|
|
return 0
|
|
}
|
|
|
|
// 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.
|
|
type SendResponse struct {
|
|
ErrorCode int32 `protobuf:"varint,1,opt,name=errorCode,proto3" json:"errorCode,omitempty"`
|
|
ErrorMessage string `protobuf:"bytes,2,opt,name=errorMessage,proto3" json:"errorMessage,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *SendResponse) Reset() { *m = SendResponse{} }
|
|
func (m *SendResponse) String() string { return proto.CompactTextString(m) }
|
|
func (*SendResponse) ProtoMessage() {}
|
|
func (*SendResponse) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_a0b84a42fa06f626, []int{4}
|
|
}
|
|
|
|
func (m *SendResponse) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_SendResponse.Unmarshal(m, b)
|
|
}
|
|
func (m *SendResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_SendResponse.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *SendResponse) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_SendResponse.Merge(m, src)
|
|
}
|
|
func (m *SendResponse) XXX_Size() int {
|
|
return xxx_messageInfo_SendResponse.Size(m)
|
|
}
|
|
func (m *SendResponse) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_SendResponse.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_SendResponse proto.InternalMessageInfo
|
|
|
|
func (m *SendResponse) GetErrorCode() int32 {
|
|
if m != nil {
|
|
return m.ErrorCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *SendResponse) GetErrorMessage() string {
|
|
if m != nil {
|
|
return m.ErrorMessage
|
|
}
|
|
return ""
|
|
}
|
|
|
|
// Chainspec is a placeholder to allow specification of a particular chain fork.
|
|
type ChainSpec struct {
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *ChainSpec) Reset() { *m = ChainSpec{} }
|
|
func (m *ChainSpec) String() string { return proto.CompactTextString(m) }
|
|
func (*ChainSpec) ProtoMessage() {}
|
|
func (*ChainSpec) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_a0b84a42fa06f626, []int{5}
|
|
}
|
|
|
|
func (m *ChainSpec) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_ChainSpec.Unmarshal(m, b)
|
|
}
|
|
func (m *ChainSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_ChainSpec.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *ChainSpec) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_ChainSpec.Merge(m, src)
|
|
}
|
|
func (m *ChainSpec) XXX_Size() int {
|
|
return xxx_messageInfo_ChainSpec.Size(m)
|
|
}
|
|
func (m *ChainSpec) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_ChainSpec.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_ChainSpec proto.InternalMessageInfo
|
|
|
|
// Empty is for gRPCs that take no arguments, currently only GetLightdInfo.
|
|
type Empty struct {
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *Empty) Reset() { *m = Empty{} }
|
|
func (m *Empty) String() string { return proto.CompactTextString(m) }
|
|
func (*Empty) ProtoMessage() {}
|
|
func (*Empty) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_a0b84a42fa06f626, []int{6}
|
|
}
|
|
|
|
func (m *Empty) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_Empty.Unmarshal(m, b)
|
|
}
|
|
func (m *Empty) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_Empty.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *Empty) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_Empty.Merge(m, src)
|
|
}
|
|
func (m *Empty) XXX_Size() int {
|
|
return xxx_messageInfo_Empty.Size(m)
|
|
}
|
|
func (m *Empty) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_Empty.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_Empty proto.InternalMessageInfo
|
|
|
|
// LightdInfo returns various information about this lightwalletd instance
|
|
// and the state of the blockchain.
|
|
type LightdInfo struct {
|
|
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"`
|
|
ChainName string `protobuf:"bytes,4,opt,name=chainName,proto3" json:"chainName,omitempty"`
|
|
SaplingActivationHeight uint64 `protobuf:"varint,5,opt,name=saplingActivationHeight,proto3" json:"saplingActivationHeight,omitempty"`
|
|
ConsensusBranchId string `protobuf:"bytes,6,opt,name=consensusBranchId,proto3" json:"consensusBranchId,omitempty"`
|
|
BlockHeight uint64 `protobuf:"varint,7,opt,name=blockHeight,proto3" json:"blockHeight,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *LightdInfo) Reset() { *m = LightdInfo{} }
|
|
func (m *LightdInfo) String() string { return proto.CompactTextString(m) }
|
|
func (*LightdInfo) ProtoMessage() {}
|
|
func (*LightdInfo) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_a0b84a42fa06f626, []int{7}
|
|
}
|
|
|
|
func (m *LightdInfo) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_LightdInfo.Unmarshal(m, b)
|
|
}
|
|
func (m *LightdInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_LightdInfo.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *LightdInfo) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_LightdInfo.Merge(m, src)
|
|
}
|
|
func (m *LightdInfo) XXX_Size() int {
|
|
return xxx_messageInfo_LightdInfo.Size(m)
|
|
}
|
|
func (m *LightdInfo) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_LightdInfo.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_LightdInfo proto.InternalMessageInfo
|
|
|
|
func (m *LightdInfo) GetVersion() string {
|
|
if m != nil {
|
|
return m.Version
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *LightdInfo) GetVendor() string {
|
|
if m != nil {
|
|
return m.Vendor
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *LightdInfo) GetTaddrSupport() bool {
|
|
if m != nil {
|
|
return m.TaddrSupport
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (m *LightdInfo) GetChainName() string {
|
|
if m != nil {
|
|
return m.ChainName
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *LightdInfo) GetSaplingActivationHeight() uint64 {
|
|
if m != nil {
|
|
return m.SaplingActivationHeight
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *LightdInfo) GetConsensusBranchId() string {
|
|
if m != nil {
|
|
return m.ConsensusBranchId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *LightdInfo) GetBlockHeight() uint64 {
|
|
if m != nil {
|
|
return m.BlockHeight
|
|
}
|
|
return 0
|
|
}
|
|
|
|
// TransparentAddressBlockFilter restricts the results to the given address
|
|
// or block range.
|
|
type TransparentAddressBlockFilter struct {
|
|
Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
|
|
Range *BlockRange `protobuf:"bytes,2,opt,name=range,proto3" json:"range,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *TransparentAddressBlockFilter) Reset() { *m = TransparentAddressBlockFilter{} }
|
|
func (m *TransparentAddressBlockFilter) String() string { return proto.CompactTextString(m) }
|
|
func (*TransparentAddressBlockFilter) ProtoMessage() {}
|
|
func (*TransparentAddressBlockFilter) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_a0b84a42fa06f626, []int{8}
|
|
}
|
|
|
|
func (m *TransparentAddressBlockFilter) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_TransparentAddressBlockFilter.Unmarshal(m, b)
|
|
}
|
|
func (m *TransparentAddressBlockFilter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_TransparentAddressBlockFilter.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *TransparentAddressBlockFilter) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_TransparentAddressBlockFilter.Merge(m, src)
|
|
}
|
|
func (m *TransparentAddressBlockFilter) XXX_Size() int {
|
|
return xxx_messageInfo_TransparentAddressBlockFilter.Size(m)
|
|
}
|
|
func (m *TransparentAddressBlockFilter) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_TransparentAddressBlockFilter.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_TransparentAddressBlockFilter proto.InternalMessageInfo
|
|
|
|
func (m *TransparentAddressBlockFilter) GetAddress() string {
|
|
if m != nil {
|
|
return m.Address
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *TransparentAddressBlockFilter) GetRange() *BlockRange {
|
|
if m != nil {
|
|
return m.Range
|
|
}
|
|
return nil
|
|
}
|
|
|
|
// 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 {
|
|
IntervalUs int64 `protobuf:"varint,1,opt,name=intervalUs,proto3" json:"intervalUs,omitempty"`
|
|
type EvilLightwalletdState struct {
|
|
StartHeight int32 `protobuf:"varint,1,opt,name=startHeight,proto3" json:"startHeight,omitempty"`
|
|
SaplingActivation int32 `protobuf:"varint,2,opt,name=saplingActivation,proto3" json:"saplingActivation,omitempty"`
|
|
BranchID string `protobuf:"bytes,3,opt,name=branchID,proto3" json:"branchID,omitempty"`
|
|
ChainName string `protobuf:"bytes,4,opt,name=chainName,proto3" json:"chainName,omitempty"`
|
|
Blocks []string `protobuf:"bytes,5,rep,name=blocks,proto3" json:"blocks,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *Duration) Reset() { *m = Duration{} }
|
|
func (m *Duration) String() string { return proto.CompactTextString(m) }
|
|
func (*Duration) ProtoMessage() {}
|
|
func (*Duration) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_a0b84a42fa06f626, []int{9}
|
|
func (m *EvilLightwalletdState) Reset() { *m = EvilLightwalletdState{} }
|
|
func (m *EvilLightwalletdState) String() string { return proto.CompactTextString(m) }
|
|
func (*EvilLightwalletdState) ProtoMessage() {}
|
|
func (*EvilLightwalletdState) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_a0b84a42fa06f626, []int{10}
|
|
}
|
|
|
|
func (m *Duration) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_Duration.Unmarshal(m, b)
|
|
func (m *EvilLightwalletdState) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_EvilLightwalletdState.Unmarshal(m, b)
|
|
}
|
|
func (m *Duration) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_Duration.Marshal(b, m, deterministic)
|
|
func (m *EvilLightwalletdState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_EvilLightwalletdState.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *Duration) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_Duration.Merge(m, src)
|
|
func (m *EvilLightwalletdState) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_EvilLightwalletdState.Merge(m, src)
|
|
}
|
|
func (m *Duration) XXX_Size() int {
|
|
return xxx_messageInfo_Duration.Size(m)
|
|
func (m *EvilLightwalletdState) XXX_Size() int {
|
|
return xxx_messageInfo_EvilLightwalletdState.Size(m)
|
|
}
|
|
func (m *Duration) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_Duration.DiscardUnknown(m)
|
|
func (m *EvilLightwalletdState) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_EvilLightwalletdState.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_Duration proto.InternalMessageInfo
|
|
var xxx_messageInfo_EvilLightwalletdState proto.InternalMessageInfo
|
|
|
|
func (m *Duration) GetIntervalUs() int64 {
|
|
func (m *EvilLightwalletdState) GetStartHeight() int32 {
|
|
if m != nil {
|
|
return m.IntervalUs
|
|
return m.StartHeight
|
|
}
|
|
return 0
|
|
}
|
|
|
|
// PingResponse is used to indicate concurrency, how many Ping rpcs
|
|
// are executing upon entry and upon exit (after the delay).
|
|
// This rpc is used for testing only.
|
|
type PingResponse struct {
|
|
Entry int64 `protobuf:"varint,1,opt,name=entry,proto3" json:"entry,omitempty"`
|
|
Exit int64 `protobuf:"varint,2,opt,name=exit,proto3" json:"exit,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
func (m *EvilLightwalletdState) GetSaplingActivation() int32 {
|
|
if m != nil {
|
|
return m.SaplingActivation
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *PingResponse) Reset() { *m = PingResponse{} }
|
|
func (m *PingResponse) String() string { return proto.CompactTextString(m) }
|
|
func (*PingResponse) ProtoMessage() {}
|
|
func (*PingResponse) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_a0b84a42fa06f626, []int{10}
|
|
func (m *EvilLightwalletdState) GetBranchID() string {
|
|
if m != nil {
|
|
return m.BranchID
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *PingResponse) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_PingResponse.Unmarshal(m, b)
|
|
}
|
|
func (m *PingResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_PingResponse.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *PingResponse) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_PingResponse.Merge(m, src)
|
|
}
|
|
func (m *PingResponse) XXX_Size() int {
|
|
return xxx_messageInfo_PingResponse.Size(m)
|
|
}
|
|
func (m *PingResponse) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_PingResponse.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_PingResponse proto.InternalMessageInfo
|
|
|
|
func (m *PingResponse) GetEntry() int64 {
|
|
func (m *EvilLightwalletdState) GetChainName() string {
|
|
if m != nil {
|
|
return m.Entry
|
|
return m.ChainName
|
|
}
|
|
return 0
|
|
return ""
|
|
}
|
|
|
|
func (m *PingResponse) GetExit() int64 {
|
|
func (m *EvilLightwalletdState) GetBlocks() []string {
|
|
if m != nil {
|
|
return m.Exit
|
|
return m.Blocks
|
|
}
|
|
return 0
|
|
return nil
|
|
}
|
|
|
|
func init() {
|
|
proto.RegisterType((*BlockID)(nil), "cash.z.wallet.sdk.rpc.BlockID")
|
|
proto.RegisterType((*BlockRange)(nil), "cash.z.wallet.sdk.rpc.BlockRange")
|
|
proto.RegisterType((*TxFilter)(nil), "cash.z.wallet.sdk.rpc.TxFilter")
|
|
proto.RegisterType((*RawTransaction)(nil), "cash.z.wallet.sdk.rpc.RawTransaction")
|
|
proto.RegisterType((*SendResponse)(nil), "cash.z.wallet.sdk.rpc.SendResponse")
|
|
proto.RegisterType((*ChainSpec)(nil), "cash.z.wallet.sdk.rpc.ChainSpec")
|
|
proto.RegisterType((*Empty)(nil), "cash.z.wallet.sdk.rpc.Empty")
|
|
proto.RegisterType((*LightdInfo)(nil), "cash.z.wallet.sdk.rpc.LightdInfo")
|
|
proto.RegisterType((*TransparentAddressBlockFilter)(nil), "cash.z.wallet.sdk.rpc.TransparentAddressBlockFilter")
|
|
proto.RegisterType((*Duration)(nil), "cash.z.wallet.sdk.rpc.Duration")
|
|
proto.RegisterType((*PingResponse)(nil), "cash.z.wallet.sdk.rpc.PingResponse")
|
|
proto.RegisterType((*EvilLightwalletdState)(nil), "cash.z.wallet.sdk.rpc.EvilLightwalletdState")
|
|
}
|
|
|
|
func init() {
|
|
proto.RegisterFile("service.proto", fileDescriptor_a0b84a42fa06f626)
|
|
}
|
|
|
|
var fileDescriptor_a0b84a42fa06f626 = []byte{
|
|
// 708 bytes of a gzipped FileDescriptorProto
|
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x55, 0x5f, 0x4f, 0x13, 0x41,
|
|
0x10, 0xef, 0xbf, 0xa3, 0xed, 0x50, 0x20, 0x6c, 0x40, 0x9b, 0x06, 0xb1, 0xae, 0x31, 0x21, 0xc6,
|
|
0x34, 0x04, 0x31, 0xf2, 0xe0, 0x0b, 0x7f, 0x14, 0x49, 0x90, 0xe0, 0xb6, 0xbe, 0xe0, 0x03, 0x59,
|
|
0xee, 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0xff, 0x51, 0xd7, 0x0e, 0xcd,
|
|
0xe8, 0x07, 0x00, 0x00,
|
|
}
|
|
|
|
// 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
|
|
|
|
// 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 {
|
|
// Return the height of the tip of the best chain
|
|
GetLatestBlock(ctx context.Context, in *ChainSpec, opts ...grpc.CallOption) (*BlockID, error)
|
|
// Return the compact block corresponding to the given block identifier
|
|
GetBlock(ctx context.Context, in *BlockID, opts ...grpc.CallOption) (*CompactBlock, error)
|
|
// Return a list of consecutive compact blocks
|
|
GetBlockRange(ctx context.Context, in *BlockRange, opts ...grpc.CallOption) (CompactTxStreamer_GetBlockRangeClient, error)
|
|
// Return the requested full (not compact) transaction (as from zcashd)
|
|
GetTransaction(ctx context.Context, in *TxFilter, opts ...grpc.CallOption) (*RawTransaction, error)
|
|
// Submit the given transaction to the zcash network
|
|
SendTransaction(ctx context.Context, in *RawTransaction, opts ...grpc.CallOption) (*SendResponse, error)
|
|
// Return the txids corresponding to the given t-address within the given block range
|
|
GetAddressTxids(ctx context.Context, in *TransparentAddressBlockFilter, opts ...grpc.CallOption) (CompactTxStreamer_GetAddressTxidsClient, error)
|
|
// Return information about this lightwalletd instance and the blockchain
|
|
GetLightdInfo(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*LightdInfo, error)
|
|
// Testing-only
|
|
Ping(ctx context.Context, in *Duration, opts ...grpc.CallOption) (*PingResponse, error)
|
|
// Evil
|
|
EvilGetIncomingTransactions(ctx context.Context, in *Empty, opts ...grpc.CallOption) (CompactTxStreamer_EvilGetIncomingTransactionsClient, error)
|
|
EvilSetState(ctx context.Context, in *EvilLightwalletdState, opts ...grpc.CallOption) (*Empty, error)
|
|
}
|
|
|
|
type compactTxStreamerClient struct {
|
|
cc grpc.ClientConnInterface
|
|
}
|
|
|
|
func NewCompactTxStreamerClient(cc grpc.ClientConnInterface) CompactTxStreamerClient {
|
|
return &compactTxStreamerClient{cc}
|
|
}
|
|
|
|
func (c *compactTxStreamerClient) GetLatestBlock(ctx context.Context, in *ChainSpec, opts ...grpc.CallOption) (*BlockID, error) {
|
|
out := new(BlockID)
|
|
err := c.cc.Invoke(ctx, "/cash.z.wallet.sdk.rpc.CompactTxStreamer/GetLatestBlock", in, out, opts...)
|
|
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)
|
|
err := c.cc.Invoke(ctx, "/cash.z.wallet.sdk.rpc.CompactTxStreamer/GetBlock", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *compactTxStreamerClient) GetBlockRange(ctx context.Context, in *BlockRange, opts ...grpc.CallOption) (CompactTxStreamer_GetBlockRangeClient, error) {
|
|
stream, err := c.cc.NewStream(ctx, &_CompactTxStreamer_serviceDesc.Streams[0], "/cash.z.wallet.sdk.rpc.CompactTxStreamer/GetBlockRange", opts...)
|
|
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)
|
|
err := c.cc.Invoke(ctx, "/cash.z.wallet.sdk.rpc.CompactTxStreamer/GetTransaction", in, out, opts...)
|
|
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)
|
|
err := c.cc.Invoke(ctx, "/cash.z.wallet.sdk.rpc.CompactTxStreamer/SendTransaction", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
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
|
|
}
|
|
|
|
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
|
|
}
|
|
|
|
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...)
|
|
func (c *compactTxStreamerClient) EvilGetIncomingTransactions(ctx context.Context, in *Empty, opts ...grpc.CallOption) (CompactTxStreamer_EvilGetIncomingTransactionsClient, error) {
|
|
stream, err := c.cc.NewStream(ctx, &_CompactTxStreamer_serviceDesc.Streams[2], "/cash.z.wallet.sdk.rpc.CompactTxStreamer/EvilGetIncomingTransactions", opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
x := &compactTxStreamerEvilGetIncomingTransactionsClient{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_EvilGetIncomingTransactionsClient interface {
|
|
Recv() (*RawTransaction, error)
|
|
grpc.ClientStream
|
|
}
|
|
|
|
type compactTxStreamerEvilGetIncomingTransactionsClient struct {
|
|
grpc.ClientStream
|
|
}
|
|
|
|
func (x *compactTxStreamerEvilGetIncomingTransactionsClient) Recv() (*RawTransaction, error) {
|
|
m := new(RawTransaction)
|
|
if err := x.ClientStream.RecvMsg(m); err != nil {
|
|
return nil, err
|
|
}
|
|
return m, nil
|
|
}
|
|
|
|
func (c *compactTxStreamerClient) EvilSetState(ctx context.Context, in *EvilLightwalletdState, opts ...grpc.CallOption) (*Empty, error) {
|
|
out := new(Empty)
|
|
err := c.cc.Invoke(ctx, "/cash.z.wallet.sdk.rpc.CompactTxStreamer/EvilSetState", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
// CompactTxStreamerServer is the server API for CompactTxStreamer service.
|
|
type CompactTxStreamerServer interface {
|
|
// Return the height of the tip of the best chain
|
|
GetLatestBlock(context.Context, *ChainSpec) (*BlockID, error)
|
|
// Return the compact block corresponding to the given block identifier
|
|
GetBlock(context.Context, *BlockID) (*CompactBlock, error)
|
|
// Return a list of consecutive compact blocks
|
|
GetBlockRange(*BlockRange, CompactTxStreamer_GetBlockRangeServer) error
|
|
// Return the requested full (not compact) transaction (as from zcashd)
|
|
GetTransaction(context.Context, *TxFilter) (*RawTransaction, error)
|
|
// Submit the given transaction to the zcash network
|
|
SendTransaction(context.Context, *RawTransaction) (*SendResponse, error)
|
|
// Return the txids corresponding to the given t-address within the given block range
|
|
GetAddressTxids(*TransparentAddressBlockFilter, CompactTxStreamer_GetAddressTxidsServer) error
|
|
// Return information about this lightwalletd instance and the blockchain
|
|
GetLightdInfo(context.Context, *Empty) (*LightdInfo, error)
|
|
// Testing-only
|
|
Ping(context.Context, *Duration) (*PingResponse, error)
|
|
// Evil
|
|
EvilGetIncomingTransactions(*Empty, CompactTxStreamer_EvilGetIncomingTransactionsServer) error
|
|
EvilSetState(context.Context, *EvilLightwalletdState) (*Empty, error)
|
|
}
|
|
|
|
// UnimplementedCompactTxStreamerServer can be embedded to have forward compatible implementations.
|
|
type UnimplementedCompactTxStreamerServer struct {
|
|
}
|
|
|
|
func (*UnimplementedCompactTxStreamerServer) GetLatestBlock(ctx context.Context, req *ChainSpec) (*BlockID, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method GetLatestBlock not implemented")
|
|
}
|
|
func (*UnimplementedCompactTxStreamerServer) GetBlock(ctx context.Context, req *BlockID) (*CompactBlock, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method GetBlock not implemented")
|
|
}
|
|
func (*UnimplementedCompactTxStreamerServer) GetBlockRange(req *BlockRange, srv CompactTxStreamer_GetBlockRangeServer) error {
|
|
return status.Errorf(codes.Unimplemented, "method GetBlockRange not implemented")
|
|
}
|
|
func (*UnimplementedCompactTxStreamerServer) GetTransaction(ctx context.Context, req *TxFilter) (*RawTransaction, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method GetTransaction not implemented")
|
|
}
|
|
func (*UnimplementedCompactTxStreamerServer) SendTransaction(ctx context.Context, req *RawTransaction) (*SendResponse, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method SendTransaction not implemented")
|
|
}
|
|
func (*UnimplementedCompactTxStreamerServer) GetAddressTxids(req *TransparentAddressBlockFilter, srv CompactTxStreamer_GetAddressTxidsServer) error {
|
|
return status.Errorf(codes.Unimplemented, "method GetAddressTxids not implemented")
|
|
}
|
|
func (*UnimplementedCompactTxStreamerServer) GetLightdInfo(ctx context.Context, req *Empty) (*LightdInfo, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method GetLightdInfo not implemented")
|
|
}
|
|
func (*UnimplementedCompactTxStreamerServer) Ping(ctx context.Context, req *Duration) (*PingResponse, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method Ping not implemented")
|
|
func (*UnimplementedCompactTxStreamerServer) EvilGetIncomingTransactions(req *Empty, srv CompactTxStreamer_EvilGetIncomingTransactionsServer) error {
|
|
return status.Errorf(codes.Unimplemented, "method EvilGetIncomingTransactions not implemented")
|
|
}
|
|
func (*UnimplementedCompactTxStreamerServer) EvilSetState(ctx context.Context, req *EvilLightwalletdState) (*Empty, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method EvilSetState not implemented")
|
|
}
|
|
|
|
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,
|
|
FullMethod: "/cash.z.wallet.sdk.rpc.CompactTxStreamer/GetLatestBlock",
|
|
}
|
|
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,
|
|
FullMethod: "/cash.z.wallet.sdk.rpc.CompactTxStreamer/GetBlock",
|
|
}
|
|
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,
|
|
FullMethod: "/cash.z.wallet.sdk.rpc.CompactTxStreamer/GetTransaction",
|
|
}
|
|
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,
|
|
FullMethod: "/cash.z.wallet.sdk.rpc.CompactTxStreamer/SendTransaction",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(CompactTxStreamerServer).SendTransaction(ctx, req.(*RawTransaction))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
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)
|
|
}
|
|
|
|
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)
|
|
}
|
|
|
|
func _CompactTxStreamer_Ping_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(Duration)
|
|
func _CompactTxStreamer_EvilGetIncomingTransactions_Handler(srv interface{}, stream grpc.ServerStream) error {
|
|
m := new(Empty)
|
|
if err := stream.RecvMsg(m); err != nil {
|
|
return err
|
|
}
|
|
return srv.(CompactTxStreamerServer).EvilGetIncomingTransactions(m, &compactTxStreamerEvilGetIncomingTransactionsServer{stream})
|
|
}
|
|
|
|
type CompactTxStreamer_EvilGetIncomingTransactionsServer interface {
|
|
Send(*RawTransaction) error
|
|
grpc.ServerStream
|
|
}
|
|
|
|
type compactTxStreamerEvilGetIncomingTransactionsServer struct {
|
|
grpc.ServerStream
|
|
}
|
|
|
|
func (x *compactTxStreamerEvilGetIncomingTransactionsServer) Send(m *RawTransaction) error {
|
|
return x.ServerStream.SendMsg(m)
|
|
}
|
|
|
|
func _CompactTxStreamer_EvilSetState_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(EvilLightwalletdState)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(CompactTxStreamerServer).Ping(ctx, in)
|
|
return srv.(CompactTxStreamerServer).EvilSetState(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/cash.z.wallet.sdk.rpc.CompactTxStreamer/Ping",
|
|
FullMethod: "/cash.z.wallet.sdk.rpc.CompactTxStreamer/EvilSetState",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(CompactTxStreamerServer).Ping(ctx, req.(*Duration))
|
|
return srv.(CompactTxStreamerServer).EvilSetState(ctx, req.(*EvilLightwalletdState))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
var _CompactTxStreamer_serviceDesc = grpc.ServiceDesc{
|
|
ServiceName: "cash.z.wallet.sdk.rpc.CompactTxStreamer",
|
|
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,
|
|
},
|
|
{
|
|
MethodName: "GetLightdInfo",
|
|
Handler: _CompactTxStreamer_GetLightdInfo_Handler,
|
|
},
|
|
{
|
|
MethodName: "Ping",
|
|
Handler: _CompactTxStreamer_Ping_Handler,
|
|
MethodName: "EvilSetState",
|
|
Handler: _CompactTxStreamer_EvilSetState_Handler,
|
|
},
|
|
},
|
|
Streams: []grpc.StreamDesc{
|
|
{
|
|
StreamName: "GetBlockRange",
|
|
Handler: _CompactTxStreamer_GetBlockRange_Handler,
|
|
ServerStreams: true,
|
|
},
|
|
{
|
|
StreamName: "GetAddressTxids",
|
|
Handler: _CompactTxStreamer_GetAddressTxids_Handler,
|
|
ServerStreams: true,
|
|
},
|
|
{
|
|
StreamName: "EvilGetIncomingTransactions",
|
|
Handler: _CompactTxStreamer_EvilGetIncomingTransactions_Handler,
|
|
ServerStreams: true,
|
|
},
|
|
},
|
|
Metadata: "service.proto",
|
|
}
|