1256 lines
44 KiB
Go
1256 lines
44 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// source: service.proto
|
|
|
|
package walletrpc
|
|
|
|
import (
|
|
fmt "fmt"
|
|
proto "github.com/golang/protobuf/proto"
|
|
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"`
|
|
GitCommit string `protobuf:"bytes,8,opt,name=gitCommit,proto3" json:"gitCommit,omitempty"`
|
|
Branch string `protobuf:"bytes,9,opt,name=branch,proto3" json:"branch,omitempty"`
|
|
BuildDate string `protobuf:"bytes,10,opt,name=buildDate,proto3" json:"buildDate,omitempty"`
|
|
BuildUser string `protobuf:"bytes,11,opt,name=buildUser,proto3" json:"buildUser,omitempty"`
|
|
EstimatedHeight uint64 `protobuf:"varint,12,opt,name=estimatedHeight,proto3" json:"estimatedHeight,omitempty"`
|
|
ZcashdBuild string `protobuf:"bytes,13,opt,name=zcashdBuild,proto3" json:"zcashdBuild,omitempty"`
|
|
ZcashdSubversion string `protobuf:"bytes,14,opt,name=zcashdSubversion,proto3" json:"zcashdSubversion,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
|
|
}
|
|
|
|
func (m *LightdInfo) GetGitCommit() string {
|
|
if m != nil {
|
|
return m.GitCommit
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *LightdInfo) GetBranch() string {
|
|
if m != nil {
|
|
return m.Branch
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *LightdInfo) GetBuildDate() string {
|
|
if m != nil {
|
|
return m.BuildDate
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *LightdInfo) GetBuildUser() string {
|
|
if m != nil {
|
|
return m.BuildUser
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *LightdInfo) GetEstimatedHeight() uint64 {
|
|
if m != nil {
|
|
return m.EstimatedHeight
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *LightdInfo) GetZcashdBuild() string {
|
|
if m != nil {
|
|
return m.ZcashdBuild
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *LightdInfo) GetZcashdSubversion() string {
|
|
if m != nil {
|
|
return m.ZcashdSubversion
|
|
}
|
|
return ""
|
|
}
|
|
|
|
// 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"`
|
|
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 *Duration) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_Duration.Unmarshal(m, b)
|
|
}
|
|
func (m *Duration) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_Duration.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *Duration) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_Duration.Merge(m, src)
|
|
}
|
|
func (m *Duration) XXX_Size() int {
|
|
return xxx_messageInfo_Duration.Size(m)
|
|
}
|
|
func (m *Duration) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_Duration.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_Duration proto.InternalMessageInfo
|
|
|
|
func (m *Duration) GetIntervalUs() int64 {
|
|
if m != nil {
|
|
return m.IntervalUs
|
|
}
|
|
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 *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 *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 {
|
|
if m != nil {
|
|
return m.Entry
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *PingResponse) GetExit() int64 {
|
|
if m != nil {
|
|
return m.Exit
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type Address struct {
|
|
Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *Address) Reset() { *m = Address{} }
|
|
func (m *Address) String() string { return proto.CompactTextString(m) }
|
|
func (*Address) ProtoMessage() {}
|
|
func (*Address) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_a0b84a42fa06f626, []int{11}
|
|
}
|
|
|
|
func (m *Address) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_Address.Unmarshal(m, b)
|
|
}
|
|
func (m *Address) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_Address.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *Address) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_Address.Merge(m, src)
|
|
}
|
|
func (m *Address) XXX_Size() int {
|
|
return xxx_messageInfo_Address.Size(m)
|
|
}
|
|
func (m *Address) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_Address.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_Address proto.InternalMessageInfo
|
|
|
|
func (m *Address) GetAddress() string {
|
|
if m != nil {
|
|
return m.Address
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type AddressList struct {
|
|
Addresses []string `protobuf:"bytes,1,rep,name=addresses,proto3" json:"addresses,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *AddressList) Reset() { *m = AddressList{} }
|
|
func (m *AddressList) String() string { return proto.CompactTextString(m) }
|
|
func (*AddressList) ProtoMessage() {}
|
|
func (*AddressList) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_a0b84a42fa06f626, []int{12}
|
|
}
|
|
|
|
func (m *AddressList) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_AddressList.Unmarshal(m, b)
|
|
}
|
|
func (m *AddressList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_AddressList.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *AddressList) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_AddressList.Merge(m, src)
|
|
}
|
|
func (m *AddressList) XXX_Size() int {
|
|
return xxx_messageInfo_AddressList.Size(m)
|
|
}
|
|
func (m *AddressList) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_AddressList.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_AddressList proto.InternalMessageInfo
|
|
|
|
func (m *AddressList) GetAddresses() []string {
|
|
if m != nil {
|
|
return m.Addresses
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type Balance struct {
|
|
ValueZat int64 `protobuf:"varint,1,opt,name=valueZat,proto3" json:"valueZat,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *Balance) Reset() { *m = Balance{} }
|
|
func (m *Balance) String() string { return proto.CompactTextString(m) }
|
|
func (*Balance) ProtoMessage() {}
|
|
func (*Balance) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_a0b84a42fa06f626, []int{13}
|
|
}
|
|
|
|
func (m *Balance) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_Balance.Unmarshal(m, b)
|
|
}
|
|
func (m *Balance) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_Balance.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *Balance) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_Balance.Merge(m, src)
|
|
}
|
|
func (m *Balance) XXX_Size() int {
|
|
return xxx_messageInfo_Balance.Size(m)
|
|
}
|
|
func (m *Balance) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_Balance.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_Balance proto.InternalMessageInfo
|
|
|
|
func (m *Balance) GetValueZat() int64 {
|
|
if m != nil {
|
|
return m.ValueZat
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type Exclude struct {
|
|
Txid [][]byte `protobuf:"bytes,1,rep,name=txid,proto3" json:"txid,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *Exclude) Reset() { *m = Exclude{} }
|
|
func (m *Exclude) String() string { return proto.CompactTextString(m) }
|
|
func (*Exclude) ProtoMessage() {}
|
|
func (*Exclude) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_a0b84a42fa06f626, []int{14}
|
|
}
|
|
|
|
func (m *Exclude) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_Exclude.Unmarshal(m, b)
|
|
}
|
|
func (m *Exclude) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_Exclude.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *Exclude) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_Exclude.Merge(m, src)
|
|
}
|
|
func (m *Exclude) XXX_Size() int {
|
|
return xxx_messageInfo_Exclude.Size(m)
|
|
}
|
|
func (m *Exclude) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_Exclude.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_Exclude proto.InternalMessageInfo
|
|
|
|
func (m *Exclude) GetTxid() [][]byte {
|
|
if m != nil {
|
|
return m.Txid
|
|
}
|
|
return nil
|
|
}
|
|
|
|
// The TreeState is derived from the Zcash z_gettreestate rpc.
|
|
type TreeState struct {
|
|
Network string `protobuf:"bytes,1,opt,name=network,proto3" json:"network,omitempty"`
|
|
Height uint64 `protobuf:"varint,2,opt,name=height,proto3" json:"height,omitempty"`
|
|
Hash string `protobuf:"bytes,3,opt,name=hash,proto3" json:"hash,omitempty"`
|
|
Time uint32 `protobuf:"varint,4,opt,name=time,proto3" json:"time,omitempty"`
|
|
SaplingTree string `protobuf:"bytes,5,opt,name=saplingTree,proto3" json:"saplingTree,omitempty"`
|
|
OrchardTree string `protobuf:"bytes,6,opt,name=orchardTree,proto3" json:"orchardTree,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *TreeState) Reset() { *m = TreeState{} }
|
|
func (m *TreeState) String() string { return proto.CompactTextString(m) }
|
|
func (*TreeState) ProtoMessage() {}
|
|
func (*TreeState) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_a0b84a42fa06f626, []int{15}
|
|
}
|
|
|
|
func (m *TreeState) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_TreeState.Unmarshal(m, b)
|
|
}
|
|
func (m *TreeState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_TreeState.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *TreeState) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_TreeState.Merge(m, src)
|
|
}
|
|
func (m *TreeState) XXX_Size() int {
|
|
return xxx_messageInfo_TreeState.Size(m)
|
|
}
|
|
func (m *TreeState) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_TreeState.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_TreeState proto.InternalMessageInfo
|
|
|
|
func (m *TreeState) GetNetwork() string {
|
|
if m != nil {
|
|
return m.Network
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *TreeState) GetHeight() uint64 {
|
|
if m != nil {
|
|
return m.Height
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *TreeState) GetHash() string {
|
|
if m != nil {
|
|
return m.Hash
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *TreeState) GetTime() uint32 {
|
|
if m != nil {
|
|
return m.Time
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *TreeState) GetSaplingTree() string {
|
|
if m != nil {
|
|
return m.SaplingTree
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *TreeState) GetOrchardTree() string {
|
|
if m != nil {
|
|
return m.OrchardTree
|
|
}
|
|
return ""
|
|
}
|
|
|
|
// Results are sorted by height, which makes it easy to issue another
|
|
// request that picks up from where the previous left off.
|
|
type GetAddressUtxosArg struct {
|
|
Addresses []string `protobuf:"bytes,1,rep,name=addresses,proto3" json:"addresses,omitempty"`
|
|
StartHeight uint64 `protobuf:"varint,2,opt,name=startHeight,proto3" json:"startHeight,omitempty"`
|
|
MaxEntries uint32 `protobuf:"varint,3,opt,name=maxEntries,proto3" json:"maxEntries,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *GetAddressUtxosArg) Reset() { *m = GetAddressUtxosArg{} }
|
|
func (m *GetAddressUtxosArg) String() string { return proto.CompactTextString(m) }
|
|
func (*GetAddressUtxosArg) ProtoMessage() {}
|
|
func (*GetAddressUtxosArg) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_a0b84a42fa06f626, []int{16}
|
|
}
|
|
|
|
func (m *GetAddressUtxosArg) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_GetAddressUtxosArg.Unmarshal(m, b)
|
|
}
|
|
func (m *GetAddressUtxosArg) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_GetAddressUtxosArg.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *GetAddressUtxosArg) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_GetAddressUtxosArg.Merge(m, src)
|
|
}
|
|
func (m *GetAddressUtxosArg) XXX_Size() int {
|
|
return xxx_messageInfo_GetAddressUtxosArg.Size(m)
|
|
}
|
|
func (m *GetAddressUtxosArg) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_GetAddressUtxosArg.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_GetAddressUtxosArg proto.InternalMessageInfo
|
|
|
|
func (m *GetAddressUtxosArg) GetAddresses() []string {
|
|
if m != nil {
|
|
return m.Addresses
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *GetAddressUtxosArg) GetStartHeight() uint64 {
|
|
if m != nil {
|
|
return m.StartHeight
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *GetAddressUtxosArg) GetMaxEntries() uint32 {
|
|
if m != nil {
|
|
return m.MaxEntries
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type GetAddressUtxosReply struct {
|
|
Address string `protobuf:"bytes,6,opt,name=address,proto3" json:"address,omitempty"`
|
|
Txid []byte `protobuf:"bytes,1,opt,name=txid,proto3" json:"txid,omitempty"`
|
|
Index int32 `protobuf:"varint,2,opt,name=index,proto3" json:"index,omitempty"`
|
|
Script []byte `protobuf:"bytes,3,opt,name=script,proto3" json:"script,omitempty"`
|
|
ValueZat int64 `protobuf:"varint,4,opt,name=valueZat,proto3" json:"valueZat,omitempty"`
|
|
Height uint64 `protobuf:"varint,5,opt,name=height,proto3" json:"height,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *GetAddressUtxosReply) Reset() { *m = GetAddressUtxosReply{} }
|
|
func (m *GetAddressUtxosReply) String() string { return proto.CompactTextString(m) }
|
|
func (*GetAddressUtxosReply) ProtoMessage() {}
|
|
func (*GetAddressUtxosReply) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_a0b84a42fa06f626, []int{17}
|
|
}
|
|
|
|
func (m *GetAddressUtxosReply) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_GetAddressUtxosReply.Unmarshal(m, b)
|
|
}
|
|
func (m *GetAddressUtxosReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_GetAddressUtxosReply.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *GetAddressUtxosReply) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_GetAddressUtxosReply.Merge(m, src)
|
|
}
|
|
func (m *GetAddressUtxosReply) XXX_Size() int {
|
|
return xxx_messageInfo_GetAddressUtxosReply.Size(m)
|
|
}
|
|
func (m *GetAddressUtxosReply) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_GetAddressUtxosReply.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_GetAddressUtxosReply proto.InternalMessageInfo
|
|
|
|
func (m *GetAddressUtxosReply) GetAddress() string {
|
|
if m != nil {
|
|
return m.Address
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *GetAddressUtxosReply) GetTxid() []byte {
|
|
if m != nil {
|
|
return m.Txid
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *GetAddressUtxosReply) GetIndex() int32 {
|
|
if m != nil {
|
|
return m.Index
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *GetAddressUtxosReply) GetScript() []byte {
|
|
if m != nil {
|
|
return m.Script
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *GetAddressUtxosReply) GetValueZat() int64 {
|
|
if m != nil {
|
|
return m.ValueZat
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *GetAddressUtxosReply) GetHeight() uint64 {
|
|
if m != nil {
|
|
return m.Height
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type GetAddressUtxosReplyList struct {
|
|
AddressUtxos []*GetAddressUtxosReply `protobuf:"bytes,1,rep,name=addressUtxos,proto3" json:"addressUtxos,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *GetAddressUtxosReplyList) Reset() { *m = GetAddressUtxosReplyList{} }
|
|
func (m *GetAddressUtxosReplyList) String() string { return proto.CompactTextString(m) }
|
|
func (*GetAddressUtxosReplyList) ProtoMessage() {}
|
|
func (*GetAddressUtxosReplyList) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_a0b84a42fa06f626, []int{18}
|
|
}
|
|
|
|
func (m *GetAddressUtxosReplyList) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_GetAddressUtxosReplyList.Unmarshal(m, b)
|
|
}
|
|
func (m *GetAddressUtxosReplyList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_GetAddressUtxosReplyList.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *GetAddressUtxosReplyList) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_GetAddressUtxosReplyList.Merge(m, src)
|
|
}
|
|
func (m *GetAddressUtxosReplyList) XXX_Size() int {
|
|
return xxx_messageInfo_GetAddressUtxosReplyList.Size(m)
|
|
}
|
|
func (m *GetAddressUtxosReplyList) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_GetAddressUtxosReplyList.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_GetAddressUtxosReplyList proto.InternalMessageInfo
|
|
|
|
func (m *GetAddressUtxosReplyList) GetAddressUtxos() []*GetAddressUtxosReply {
|
|
if m != nil {
|
|
return m.AddressUtxos
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type PriceRequest struct {
|
|
// List of timestamps(in sec) at which the price is being requested
|
|
Timestamp uint64 `protobuf:"varint,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
|
|
// 3 letter currency-code
|
|
Currency string `protobuf:"bytes,2,opt,name=currency,proto3" json:"currency,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *PriceRequest) Reset() { *m = PriceRequest{} }
|
|
func (m *PriceRequest) String() string { return proto.CompactTextString(m) }
|
|
func (*PriceRequest) ProtoMessage() {}
|
|
func (*PriceRequest) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_a0b84a42fa06f626, []int{19}
|
|
}
|
|
|
|
func (m *PriceRequest) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_PriceRequest.Unmarshal(m, b)
|
|
}
|
|
func (m *PriceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_PriceRequest.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *PriceRequest) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_PriceRequest.Merge(m, src)
|
|
}
|
|
func (m *PriceRequest) XXX_Size() int {
|
|
return xxx_messageInfo_PriceRequest.Size(m)
|
|
}
|
|
func (m *PriceRequest) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_PriceRequest.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_PriceRequest proto.InternalMessageInfo
|
|
|
|
func (m *PriceRequest) GetTimestamp() uint64 {
|
|
if m != nil {
|
|
return m.Timestamp
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *PriceRequest) GetCurrency() string {
|
|
if m != nil {
|
|
return m.Currency
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type PriceResponse struct {
|
|
// Timestamp at which this price quote was fetched. Note, this may not be the same
|
|
// as the request timestamp, but the server will respond with the closest timestamp that it has/can fetch
|
|
Timestamp int64 `protobuf:"varint,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
|
|
// 3-letter currency code, matching the request
|
|
Currency string `protobuf:"bytes,2,opt,name=currency,proto3" json:"currency,omitempty"`
|
|
// price of ZEC
|
|
Price float64 `protobuf:"fixed64,3,opt,name=price,proto3" json:"price,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *PriceResponse) Reset() { *m = PriceResponse{} }
|
|
func (m *PriceResponse) String() string { return proto.CompactTextString(m) }
|
|
func (*PriceResponse) ProtoMessage() {}
|
|
func (*PriceResponse) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_a0b84a42fa06f626, []int{20}
|
|
}
|
|
|
|
func (m *PriceResponse) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_PriceResponse.Unmarshal(m, b)
|
|
}
|
|
func (m *PriceResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_PriceResponse.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *PriceResponse) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_PriceResponse.Merge(m, src)
|
|
}
|
|
func (m *PriceResponse) XXX_Size() int {
|
|
return xxx_messageInfo_PriceResponse.Size(m)
|
|
}
|
|
func (m *PriceResponse) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_PriceResponse.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_PriceResponse proto.InternalMessageInfo
|
|
|
|
func (m *PriceResponse) GetTimestamp() int64 {
|
|
if m != nil {
|
|
return m.Timestamp
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *PriceResponse) GetCurrency() string {
|
|
if m != nil {
|
|
return m.Currency
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *PriceResponse) GetPrice() float64 {
|
|
if m != nil {
|
|
return m.Price
|
|
}
|
|
return 0
|
|
}
|
|
|
|
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((*Address)(nil), "cash.z.wallet.sdk.rpc.Address")
|
|
proto.RegisterType((*AddressList)(nil), "cash.z.wallet.sdk.rpc.AddressList")
|
|
proto.RegisterType((*Balance)(nil), "cash.z.wallet.sdk.rpc.Balance")
|
|
proto.RegisterType((*Exclude)(nil), "cash.z.wallet.sdk.rpc.Exclude")
|
|
proto.RegisterType((*TreeState)(nil), "cash.z.wallet.sdk.rpc.TreeState")
|
|
proto.RegisterType((*GetAddressUtxosArg)(nil), "cash.z.wallet.sdk.rpc.GetAddressUtxosArg")
|
|
proto.RegisterType((*GetAddressUtxosReply)(nil), "cash.z.wallet.sdk.rpc.GetAddressUtxosReply")
|
|
proto.RegisterType((*GetAddressUtxosReplyList)(nil), "cash.z.wallet.sdk.rpc.GetAddressUtxosReplyList")
|
|
proto.RegisterType((*PriceRequest)(nil), "cash.z.wallet.sdk.rpc.PriceRequest")
|
|
proto.RegisterType((*PriceResponse)(nil), "cash.z.wallet.sdk.rpc.PriceResponse")
|
|
}
|
|
|
|
func init() { proto.RegisterFile("service.proto", fileDescriptor_a0b84a42fa06f626) }
|
|
|
|
var fileDescriptor_a0b84a42fa06f626 = []byte{
|
|
// 1270 bytes of a gzipped FileDescriptorProto
|
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x57, 0x6d, 0x6f, 0x13, 0xc7,
|
|
0x13, 0xb7, 0x71, 0x1c, 0xc7, 0x63, 0x87, 0x87, 0x15, 0xf0, 0x3f, 0xf9, 0x0f, 0x34, 0x5d, 0x8a,
|
|
0x94, 0x42, 0x65, 0x10, 0xa5, 0x2a, 0x2f, 0xfa, 0x26, 0x09, 0x69, 0x40, 0x02, 0x4a, 0x37, 0xe6,
|
|
0x4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