// Code generated by protoc-gen-go. DO NOT EDIT.
// source: ticket.proto

package types

import (
	fmt "fmt"

	proto "github.com/golang/protobuf/proto"

	math "math"

	types "github.com/33cn/chain33/types"

	context "golang.org/x/net/context"

	grpc "google.golang.org/grpc"
)

// 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.ProtoPackageIsVersion2 // please upgrade the proto package

type Ticket struct {
	TicketId string `protobuf:"bytes,1,opt,name=ticketId,proto3" json:"ticketId,omitempty"`
	// 0 -> 未成熟 1 -> 可挖矿 2 -> 已挖成功 3-> 已关闭
	Status int32 `protobuf:"varint,2,opt,name=status,proto3" json:"status,omitempty"`
	// genesis 创建的私钥比较特殊
	IsGenesis bool `protobuf:"varint,3,opt,name=isGenesis,proto3" json:"isGenesis,omitempty"`
	// 创建时间
	CreateTime int64 `protobuf:"varint,4,opt,name=createTime,proto3" json:"createTime,omitempty"`
	// 挖矿时间
	MinerTime int64 `protobuf:"varint,5,opt,name=minerTime,proto3" json:"minerTime,omitempty"`
	// 挖到的币的数目
	MinerValue   int64  `protobuf:"varint,8,opt,name=minerValue,proto3" json:"minerValue,omitempty"`
	MinerAddress string `protobuf:"bytes,6,opt,name=minerAddress,proto3" json:"minerAddress,omitempty"`
	// return wallet
	ReturnAddress string `protobuf:"bytes,7,opt,name=returnAddress,proto3" json:"returnAddress,omitempty"`
	// miner Price
	Price                int64    `protobuf:"varint,9,opt,name=price,proto3" json:"price,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (m *Ticket) Reset()         { *m = Ticket{} }
func (m *Ticket) String() string { return proto.CompactTextString(m) }
func (*Ticket) ProtoMessage()    {}
func (*Ticket) Descriptor() ([]byte, []int) {
	return fileDescriptor_ticket_258ffe65b0e990fb, []int{0}
}
func (m *Ticket) XXX_Unmarshal(b []byte) error {
	return xxx_messageInfo_Ticket.Unmarshal(m, b)
}
func (m *Ticket) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
	return xxx_messageInfo_Ticket.Marshal(b, m, deterministic)
}
func (dst *Ticket) XXX_Merge(src proto.Message) {
	xxx_messageInfo_Ticket.Merge(dst, src)
}
func (m *Ticket) XXX_Size() int {
	return xxx_messageInfo_Ticket.Size(m)
}
func (m *Ticket) XXX_DiscardUnknown() {
	xxx_messageInfo_Ticket.DiscardUnknown(m)
}

var xxx_messageInfo_Ticket proto.InternalMessageInfo

func (m *Ticket) GetTicketId() string {
	if m != nil {
		return m.TicketId
	}
	return ""
}

func (m *Ticket) GetStatus() int32 {
	if m != nil {
		return m.Status
	}
	return 0
}

func (m *Ticket) GetIsGenesis() bool {
	if m != nil {
		return m.IsGenesis
	}
	return false
}

func (m *Ticket) GetCreateTime() int64 {
	if m != nil {
		return m.CreateTime
	}
	return 0
}

func (m *Ticket) GetMinerTime() int64 {
	if m != nil {
		return m.MinerTime
	}
	return 0
}

func (m *Ticket) GetMinerValue() int64 {
	if m != nil {
		return m.MinerValue
	}
	return 0
}

func (m *Ticket) GetMinerAddress() string {
	if m != nil {
		return m.MinerAddress
	}
	return ""
}

func (m *Ticket) GetReturnAddress() string {
	if m != nil {
		return m.ReturnAddress
	}
	return ""
}

func (m *Ticket) GetPrice() int64 {
	if m != nil {
		return m.Price
	}
	return 0
}

// message for execs.ticket
type TicketAction struct {
	// Types that are valid to be assigned to Value:
	//	*TicketAction_Tbind
	//	*TicketAction_Topen
	//	*TicketAction_Genesis
	//	*TicketAction_Tclose
	//	*TicketAction_Miner
	Value                isTicketAction_Value `protobuf_oneof:"value"`
	Ty                   int32                `protobuf:"varint,10,opt,name=ty,proto3" json:"ty,omitempty"`
	XXX_NoUnkeyedLiteral struct{}             `json:"-"`
	XXX_unrecognized     []byte               `json:"-"`
	XXX_sizecache        int32                `json:"-"`
}

func (m *TicketAction) Reset()         { *m = TicketAction{} }
func (m *TicketAction) String() string { return proto.CompactTextString(m) }
func (*TicketAction) ProtoMessage()    {}
func (*TicketAction) Descriptor() ([]byte, []int) {
	return fileDescriptor_ticket_258ffe65b0e990fb, []int{1}
}
func (m *TicketAction) XXX_Unmarshal(b []byte) error {
	return xxx_messageInfo_TicketAction.Unmarshal(m, b)
}
func (m *TicketAction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
	return xxx_messageInfo_TicketAction.Marshal(b, m, deterministic)
}
func (dst *TicketAction) XXX_Merge(src proto.Message) {
	xxx_messageInfo_TicketAction.Merge(dst, src)
}
func (m *TicketAction) XXX_Size() int {
	return xxx_messageInfo_TicketAction.Size(m)
}
func (m *TicketAction) XXX_DiscardUnknown() {
	xxx_messageInfo_TicketAction.DiscardUnknown(m)
}

var xxx_messageInfo_TicketAction proto.InternalMessageInfo

type isTicketAction_Value interface {
	isTicketAction_Value()
}

type TicketAction_Tbind struct {
	Tbind *TicketBind `protobuf:"bytes,5,opt,name=tbind,proto3,oneof"`
}

type TicketAction_Topen struct {
	Topen *TicketOpen `protobuf:"bytes,1,opt,name=topen,proto3,oneof"`
}

type TicketAction_Genesis struct {
	Genesis *TicketGenesis `protobuf:"bytes,2,opt,name=genesis,proto3,oneof"`
}

type TicketAction_Tclose struct {
	Tclose *TicketClose `protobuf:"bytes,3,opt,name=tclose,proto3,oneof"`
}

type TicketAction_Miner struct {
	Miner *TicketMiner `protobuf:"bytes,4,opt,name=miner,proto3,oneof"`
}

func (*TicketAction_Tbind) isTicketAction_Value() {}

func (*TicketAction_Topen) isTicketAction_Value() {}

func (*TicketAction_Genesis) isTicketAction_Value() {}

func (*TicketAction_Tclose) isTicketAction_Value() {}

func (*TicketAction_Miner) isTicketAction_Value() {}

func (m *TicketAction) GetValue() isTicketAction_Value {
	if m != nil {
		return m.Value
	}
	return nil
}

func (m *TicketAction) GetTbind() *TicketBind {
	if x, ok := m.GetValue().(*TicketAction_Tbind); ok {
		return x.Tbind
	}
	return nil
}

func (m *TicketAction) GetTopen() *TicketOpen {
	if x, ok := m.GetValue().(*TicketAction_Topen); ok {
		return x.Topen
	}
	return nil
}

func (m *TicketAction) GetGenesis() *TicketGenesis {
	if x, ok := m.GetValue().(*TicketAction_Genesis); ok {
		return x.Genesis
	}
	return nil
}

func (m *TicketAction) GetTclose() *TicketClose {
	if x, ok := m.GetValue().(*TicketAction_Tclose); ok {
		return x.Tclose
	}
	return nil
}

func (m *TicketAction) GetMiner() *TicketMiner {
	if x, ok := m.GetValue().(*TicketAction_Miner); ok {
		return x.Miner
	}
	return nil
}

func (m *TicketAction) GetTy() int32 {
	if m != nil {
		return m.Ty
	}
	return 0
}

// XXX_OneofFuncs is for the internal use of the proto package.
func (*TicketAction) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {
	return _TicketAction_OneofMarshaler, _TicketAction_OneofUnmarshaler, _TicketAction_OneofSizer, []interface{}{
		(*TicketAction_Tbind)(nil),
		(*TicketAction_Topen)(nil),
		(*TicketAction_Genesis)(nil),
		(*TicketAction_Tclose)(nil),
		(*TicketAction_Miner)(nil),
	}
}

func _TicketAction_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
	m := msg.(*TicketAction)
	// value
	switch x := m.Value.(type) {
	case *TicketAction_Tbind:
		b.EncodeVarint(5<<3 | proto.WireBytes)
		if err := b.EncodeMessage(x.Tbind); err != nil {
			return err
		}
	case *TicketAction_Topen:
		b.EncodeVarint(1<<3 | proto.WireBytes)
		if err := b.EncodeMessage(x.Topen); err != nil {
			return err
		}
	case *TicketAction_Genesis:
		b.EncodeVarint(2<<3 | proto.WireBytes)
		if err := b.EncodeMessage(x.Genesis); err != nil {
			return err
		}
	case *TicketAction_Tclose:
		b.EncodeVarint(3<<3 | proto.WireBytes)
		if err := b.EncodeMessage(x.Tclose); err != nil {
			return err
		}
	case *TicketAction_Miner:
		b.EncodeVarint(4<<3 | proto.WireBytes)
		if err := b.EncodeMessage(x.Miner); err != nil {
			return err
		}
	case nil:
	default:
		return fmt.Errorf("TicketAction.Value has unexpected type %T", x)
	}
	return nil
}

func _TicketAction_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
	m := msg.(*TicketAction)
	switch tag {
	case 5: // value.tbind
		if wire != proto.WireBytes {
			return true, proto.ErrInternalBadWireType
		}
		msg := new(TicketBind)
		err := b.DecodeMessage(msg)
		m.Value = &TicketAction_Tbind{msg}
		return true, err
	case 1: // value.topen
		if wire != proto.WireBytes {
			return true, proto.ErrInternalBadWireType
		}
		msg := new(TicketOpen)
		err := b.DecodeMessage(msg)
		m.Value = &TicketAction_Topen{msg}
		return true, err
	case 2: // value.genesis
		if wire != proto.WireBytes {
			return true, proto.ErrInternalBadWireType
		}
		msg := new(TicketGenesis)
		err := b.DecodeMessage(msg)
		m.Value = &TicketAction_Genesis{msg}
		return true, err
	case 3: // value.tclose
		if wire != proto.WireBytes {
			return true, proto.ErrInternalBadWireType
		}
		msg := new(TicketClose)
		err := b.DecodeMessage(msg)
		m.Value = &TicketAction_Tclose{msg}
		return true, err
	case 4: // value.miner
		if wire != proto.WireBytes {
			return true, proto.ErrInternalBadWireType
		}
		msg := new(TicketMiner)
		err := b.DecodeMessage(msg)
		m.Value = &TicketAction_Miner{msg}
		return true, err
	default:
		return false, nil
	}
}

func _TicketAction_OneofSizer(msg proto.Message) (n int) {
	m := msg.(*TicketAction)
	// value
	switch x := m.Value.(type) {
	case *TicketAction_Tbind:
		s := proto.Size(x.Tbind)
		n += 1 // tag and wire
		n += proto.SizeVarint(uint64(s))
		n += s
	case *TicketAction_Topen:
		s := proto.Size(x.Topen)
		n += 1 // tag and wire
		n += proto.SizeVarint(uint64(s))
		n += s
	case *TicketAction_Genesis:
		s := proto.Size(x.Genesis)
		n += 1 // tag and wire
		n += proto.SizeVarint(uint64(s))
		n += s
	case *TicketAction_Tclose:
		s := proto.Size(x.Tclose)
		n += 1 // tag and wire
		n += proto.SizeVarint(uint64(s))
		n += s
	case *TicketAction_Miner:
		s := proto.Size(x.Miner)
		n += 1 // tag and wire
		n += proto.SizeVarint(uint64(s))
		n += s
	case nil:
	default:
		panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
	}
	return n
}

type TicketMiner struct {
	Bits     uint32 `protobuf:"varint,1,opt,name=bits,proto3" json:"bits,omitempty"`
	Reward   int64  `protobuf:"varint,2,opt,name=reward,proto3" json:"reward,omitempty"`
	TicketId string `protobuf:"bytes,3,opt,name=ticketId,proto3" json:"ticketId,omitempty"`
	Modify   []byte `protobuf:"bytes,4,opt,name=modify,proto3" json:"modify,omitempty"`
	// 挖到区块时公开
	PrivHash []byte `protobuf:"bytes,5,opt,name=privHash,proto3" json:"privHash,omitempty"`
	// VRF计算得到的hash
	VrfHash []byte `protobuf:"bytes,6,opt,name=vrfHash,proto3" json:"vrfHash,omitempty"`
	// VRF计算得到的proof
	VrfProof             []byte   `protobuf:"bytes,7,opt,name=vrfProof,proto3" json:"vrfProof,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (m *TicketMiner) Reset()         { *m = TicketMiner{} }
func (m *TicketMiner) String() string { return proto.CompactTextString(m) }
func (*TicketMiner) ProtoMessage()    {}
func (*TicketMiner) Descriptor() ([]byte, []int) {
	return fileDescriptor_ticket_258ffe65b0e990fb, []int{2}
}
func (m *TicketMiner) XXX_Unmarshal(b []byte) error {
	return xxx_messageInfo_TicketMiner.Unmarshal(m, b)
}
func (m *TicketMiner) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
	return xxx_messageInfo_TicketMiner.Marshal(b, m, deterministic)
}
func (dst *TicketMiner) XXX_Merge(src proto.Message) {
	xxx_messageInfo_TicketMiner.Merge(dst, src)
}
func (m *TicketMiner) XXX_Size() int {
	return xxx_messageInfo_TicketMiner.Size(m)
}
func (m *TicketMiner) XXX_DiscardUnknown() {
	xxx_messageInfo_TicketMiner.DiscardUnknown(m)
}

var xxx_messageInfo_TicketMiner proto.InternalMessageInfo

func (m *TicketMiner) GetBits() uint32 {
	if m != nil {
		return m.Bits
	}
	return 0
}

func (m *TicketMiner) GetReward() int64 {
	if m != nil {
		return m.Reward
	}
	return 0
}

func (m *TicketMiner) GetTicketId() string {
	if m != nil {
		return m.TicketId
	}
	return ""
}

func (m *TicketMiner) GetModify() []byte {
	if m != nil {
		return m.Modify
	}
	return nil
}

func (m *TicketMiner) GetPrivHash() []byte {
	if m != nil {
		return m.PrivHash
	}
	return nil
}

func (m *TicketMiner) GetVrfHash() []byte {
	if m != nil {
		return m.VrfHash
	}
	return nil
}

func (m *TicketMiner) GetVrfProof() []byte {
	if m != nil {
		return m.VrfProof
	}
	return nil
}

type TicketMinerOld struct {
	Bits                 uint32   `protobuf:"varint,1,opt,name=bits,proto3" json:"bits,omitempty"`
	Reward               int64    `protobuf:"varint,2,opt,name=reward,proto3" json:"reward,omitempty"`
	TicketId             string   `protobuf:"bytes,3,opt,name=ticketId,proto3" json:"ticketId,omitempty"`
	Modify               []byte   `protobuf:"bytes,4,opt,name=modify,proto3" json:"modify,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (m *TicketMinerOld) Reset()         { *m = TicketMinerOld{} }
func (m *TicketMinerOld) String() string { return proto.CompactTextString(m) }
func (*TicketMinerOld) ProtoMessage()    {}
func (*TicketMinerOld) Descriptor() ([]byte, []int) {
	return fileDescriptor_ticket_258ffe65b0e990fb, []int{3}
}
func (m *TicketMinerOld) XXX_Unmarshal(b []byte) error {
	return xxx_messageInfo_TicketMinerOld.Unmarshal(m, b)
}
func (m *TicketMinerOld) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
	return xxx_messageInfo_TicketMinerOld.Marshal(b, m, deterministic)
}
func (dst *TicketMinerOld) XXX_Merge(src proto.Message) {
	xxx_messageInfo_TicketMinerOld.Merge(dst, src)
}
func (m *TicketMinerOld) XXX_Size() int {
	return xxx_messageInfo_TicketMinerOld.Size(m)
}
func (m *TicketMinerOld) XXX_DiscardUnknown() {
	xxx_messageInfo_TicketMinerOld.DiscardUnknown(m)
}

var xxx_messageInfo_TicketMinerOld proto.InternalMessageInfo

func (m *TicketMinerOld) GetBits() uint32 {
	if m != nil {
		return m.Bits
	}
	return 0
}

func (m *TicketMinerOld) GetReward() int64 {
	if m != nil {
		return m.Reward
	}
	return 0
}

func (m *TicketMinerOld) GetTicketId() string {
	if m != nil {
		return m.TicketId
	}
	return ""
}

func (m *TicketMinerOld) GetModify() []byte {
	if m != nil {
		return m.Modify
	}
	return nil
}

type MinerFlag struct {
	Flag                 int32    `protobuf:"varint,1,opt,name=flag,proto3" json:"flag,omitempty"`
	Reserve              int64    `protobuf:"varint,2,opt,name=reserve,proto3" json:"reserve,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (m *MinerFlag) Reset()         { *m = MinerFlag{} }
func (m *MinerFlag) String() string { return proto.CompactTextString(m) }
func (*MinerFlag) ProtoMessage()    {}
func (*MinerFlag) Descriptor() ([]byte, []int) {
	return fileDescriptor_ticket_258ffe65b0e990fb, []int{4}
}
func (m *MinerFlag) XXX_Unmarshal(b []byte) error {
	return xxx_messageInfo_MinerFlag.Unmarshal(m, b)
}
func (m *MinerFlag) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
	return xxx_messageInfo_MinerFlag.Marshal(b, m, deterministic)
}
func (dst *MinerFlag) XXX_Merge(src proto.Message) {
	xxx_messageInfo_MinerFlag.Merge(dst, src)
}
func (m *MinerFlag) XXX_Size() int {
	return xxx_messageInfo_MinerFlag.Size(m)
}
func (m *MinerFlag) XXX_DiscardUnknown() {
	xxx_messageInfo_MinerFlag.DiscardUnknown(m)
}

var xxx_messageInfo_MinerFlag proto.InternalMessageInfo

func (m *MinerFlag) GetFlag() int32 {
	if m != nil {
		return m.Flag
	}
	return 0
}

func (m *MinerFlag) GetReserve() int64 {
	if m != nil {
		return m.Reserve
	}
	return 0
}

type TicketBind struct {
	MinerAddress         string   `protobuf:"bytes,1,opt,name=minerAddress,proto3" json:"minerAddress,omitempty"`
	ReturnAddress        string   `protobuf:"bytes,2,opt,name=returnAddress,proto3" json:"returnAddress,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (m *TicketBind) Reset()         { *m = TicketBind{} }
func (m *TicketBind) String() string { return proto.CompactTextString(m) }
func (*TicketBind) ProtoMessage()    {}
func (*TicketBind) Descriptor() ([]byte, []int) {
	return fileDescriptor_ticket_258ffe65b0e990fb, []int{5}
}
func (m *TicketBind) XXX_Unmarshal(b []byte) error {
	return xxx_messageInfo_TicketBind.Unmarshal(m, b)
}
func (m *TicketBind) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
	return xxx_messageInfo_TicketBind.Marshal(b, m, deterministic)
}
func (dst *TicketBind) XXX_Merge(src proto.Message) {
	xxx_messageInfo_TicketBind.Merge(dst, src)
}
func (m *TicketBind) XXX_Size() int {
	return xxx_messageInfo_TicketBind.Size(m)
}
func (m *TicketBind) XXX_DiscardUnknown() {
	xxx_messageInfo_TicketBind.DiscardUnknown(m)
}

var xxx_messageInfo_TicketBind proto.InternalMessageInfo

func (m *TicketBind) GetMinerAddress() string {
	if m != nil {
		return m.MinerAddress
	}
	return ""
}

func (m *TicketBind) GetReturnAddress() string {
	if m != nil {
		return m.ReturnAddress
	}
	return ""
}

type TicketOpen struct {
	// 用户挖矿的ticket 地址
	MinerAddress string `protobuf:"bytes,1,opt,name=minerAddress,proto3" json:"minerAddress,omitempty"`
	// 购买ticket的数目
	Count int32 `protobuf:"varint,2,opt,name=count,proto3" json:"count,omitempty"`
	// 币实际存储的地址
	ReturnAddress string `protobuf:"bytes,3,opt,name=returnAddress,proto3" json:"returnAddress,omitempty"`
	// 随机种子
	RandSeed int64 `protobuf:"varint,4,opt,name=randSeed,proto3" json:"randSeed,omitempty"`
	// 购买ticket时公开
	PubHashes            [][]byte `protobuf:"bytes,5,rep,name=pubHashes,proto3" json:"pubHashes,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (m *TicketOpen) Reset()         { *m = TicketOpen{} }
func (m *TicketOpen) String() string { return proto.CompactTextString(m) }
func (*TicketOpen) ProtoMessage()    {}
func (*TicketOpen) Descriptor() ([]byte, []int) {
	return fileDescriptor_ticket_258ffe65b0e990fb, []int{6}
}
func (m *TicketOpen) XXX_Unmarshal(b []byte) error {
	return xxx_messageInfo_TicketOpen.Unmarshal(m, b)
}
func (m *TicketOpen) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
	return xxx_messageInfo_TicketOpen.Marshal(b, m, deterministic)
}
func (dst *TicketOpen) XXX_Merge(src proto.Message) {
	xxx_messageInfo_TicketOpen.Merge(dst, src)
}
func (m *TicketOpen) XXX_Size() int {
	return xxx_messageInfo_TicketOpen.Size(m)
}
func (m *TicketOpen) XXX_DiscardUnknown() {
	xxx_messageInfo_TicketOpen.DiscardUnknown(m)
}

var xxx_messageInfo_TicketOpen proto.InternalMessageInfo

func (m *TicketOpen) GetMinerAddress() string {
	if m != nil {
		return m.MinerAddress
	}
	return ""
}

func (m *TicketOpen) GetCount() int32 {
	if m != nil {
		return m.Count
	}
	return 0
}

func (m *TicketOpen) GetReturnAddress() string {
	if m != nil {
		return m.ReturnAddress
	}
	return ""
}

func (m *TicketOpen) GetRandSeed() int64 {
	if m != nil {
		return m.RandSeed
	}
	return 0
}

func (m *TicketOpen) GetPubHashes() [][]byte {
	if m != nil {
		return m.PubHashes
	}
	return nil
}

type TicketGenesis struct {
	MinerAddress         string   `protobuf:"bytes,1,opt,name=minerAddress,proto3" json:"minerAddress,omitempty"`
	ReturnAddress        string   `protobuf:"bytes,2,opt,name=returnAddress,proto3" json:"returnAddress,omitempty"`
	Count                int32    `protobuf:"varint,3,opt,name=count,proto3" json:"count,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (m *TicketGenesis) Reset()         { *m = TicketGenesis{} }
func (m *TicketGenesis) String() string { return proto.CompactTextString(m) }
func (*TicketGenesis) ProtoMessage()    {}
func (*TicketGenesis) Descriptor() ([]byte, []int) {
	return fileDescriptor_ticket_258ffe65b0e990fb, []int{7}
}
func (m *TicketGenesis) XXX_Unmarshal(b []byte) error {
	return xxx_messageInfo_TicketGenesis.Unmarshal(m, b)
}
func (m *TicketGenesis) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
	return xxx_messageInfo_TicketGenesis.Marshal(b, m, deterministic)
}
func (dst *TicketGenesis) XXX_Merge(src proto.Message) {
	xxx_messageInfo_TicketGenesis.Merge(dst, src)
}
func (m *TicketGenesis) XXX_Size() int {
	return xxx_messageInfo_TicketGenesis.Size(m)
}
func (m *TicketGenesis) XXX_DiscardUnknown() {
	xxx_messageInfo_TicketGenesis.DiscardUnknown(m)
}

var xxx_messageInfo_TicketGenesis proto.InternalMessageInfo

func (m *TicketGenesis) GetMinerAddress() string {
	if m != nil {
		return m.MinerAddress
	}
	return ""
}

func (m *TicketGenesis) GetReturnAddress() string {
	if m != nil {
		return m.ReturnAddress
	}
	return ""
}

func (m *TicketGenesis) GetCount() int32 {
	if m != nil {
		return m.Count
	}
	return 0
}

type TicketClose struct {
	TicketId             []string `protobuf:"bytes,1,rep,name=ticketId,proto3" json:"ticketId,omitempty"`
	MinerAddress         string   `protobuf:"bytes,2,opt,name=minerAddress,proto3" json:"minerAddress,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (m *TicketClose) Reset()         { *m = TicketClose{} }
func (m *TicketClose) String() string { return proto.CompactTextString(m) }
func (*TicketClose) ProtoMessage()    {}
func (*TicketClose) Descriptor() ([]byte, []int) {
	return fileDescriptor_ticket_258ffe65b0e990fb, []int{8}
}
func (m *TicketClose) XXX_Unmarshal(b []byte) error {
	return xxx_messageInfo_TicketClose.Unmarshal(m, b)
}
func (m *TicketClose) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
	return xxx_messageInfo_TicketClose.Marshal(b, m, deterministic)
}
func (dst *TicketClose) XXX_Merge(src proto.Message) {
	xxx_messageInfo_TicketClose.Merge(dst, src)
}
func (m *TicketClose) XXX_Size() int {
	return xxx_messageInfo_TicketClose.Size(m)
}
func (m *TicketClose) XXX_DiscardUnknown() {
	xxx_messageInfo_TicketClose.DiscardUnknown(m)
}

var xxx_messageInfo_TicketClose proto.InternalMessageInfo

func (m *TicketClose) GetTicketId() []string {
	if m != nil {
		return m.TicketId
	}
	return nil
}

func (m *TicketClose) GetMinerAddress() string {
	if m != nil {
		return m.MinerAddress
	}
	return ""
}

type TicketList struct {
	Addr                 string   `protobuf:"bytes,1,opt,name=addr,proto3" json:"addr,omitempty"`
	Status               int32    `protobuf:"varint,3,opt,name=status,proto3" json:"status,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (m *TicketList) Reset()         { *m = TicketList{} }
func (m *TicketList) String() string { return proto.CompactTextString(m) }
func (*TicketList) ProtoMessage()    {}
func (*TicketList) Descriptor() ([]byte, []int) {
	return fileDescriptor_ticket_258ffe65b0e990fb, []int{9}
}
func (m *TicketList) XXX_Unmarshal(b []byte) error {
	return xxx_messageInfo_TicketList.Unmarshal(m, b)
}
func (m *TicketList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
	return xxx_messageInfo_TicketList.Marshal(b, m, deterministic)
}
func (dst *TicketList) XXX_Merge(src proto.Message) {
	xxx_messageInfo_TicketList.Merge(dst, src)
}
func (m *TicketList) XXX_Size() int {
	return xxx_messageInfo_TicketList.Size(m)
}
func (m *TicketList) XXX_DiscardUnknown() {
	xxx_messageInfo_TicketList.DiscardUnknown(m)
}

var xxx_messageInfo_TicketList proto.InternalMessageInfo

func (m *TicketList) GetAddr() string {
	if m != nil {
		return m.Addr
	}
	return ""
}

func (m *TicketList) GetStatus() int32 {
	if m != nil {
		return m.Status
	}
	return 0
}

type TicketInfos struct {
	TicketIds            []string `protobuf:"bytes,1,rep,name=ticketIds,proto3" json:"ticketIds,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (m *TicketInfos) Reset()         { *m = TicketInfos{} }
func (m *TicketInfos) String() string { return proto.CompactTextString(m) }
func (*TicketInfos) ProtoMessage()    {}
func (*TicketInfos) Descriptor() ([]byte, []int) {
	return fileDescriptor_ticket_258ffe65b0e990fb, []int{10}
}
func (m *TicketInfos) XXX_Unmarshal(b []byte) error {
	return xxx_messageInfo_TicketInfos.Unmarshal(m, b)
}
func (m *TicketInfos) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
	return xxx_messageInfo_TicketInfos.Marshal(b, m, deterministic)
}
func (dst *TicketInfos) XXX_Merge(src proto.Message) {
	xxx_messageInfo_TicketInfos.Merge(dst, src)
}
func (m *TicketInfos) XXX_Size() int {
	return xxx_messageInfo_TicketInfos.Size(m)
}
func (m *TicketInfos) XXX_DiscardUnknown() {
	xxx_messageInfo_TicketInfos.DiscardUnknown(m)
}

var xxx_messageInfo_TicketInfos proto.InternalMessageInfo

func (m *TicketInfos) GetTicketIds() []string {
	if m != nil {
		return m.TicketIds
	}
	return nil
}

type ReplyTicketList struct {
	Tickets              []*Ticket `protobuf:"bytes,1,rep,name=tickets,proto3" json:"tickets,omitempty"`
	XXX_NoUnkeyedLiteral struct{}  `json:"-"`
	XXX_unrecognized     []byte    `json:"-"`
	XXX_sizecache        int32     `json:"-"`
}

func (m *ReplyTicketList) Reset()         { *m = ReplyTicketList{} }
func (m *ReplyTicketList) String() string { return proto.CompactTextString(m) }
func (*ReplyTicketList) ProtoMessage()    {}
func (*ReplyTicketList) Descriptor() ([]byte, []int) {
	return fileDescriptor_ticket_258ffe65b0e990fb, []int{11}
}
func (m *ReplyTicketList) XXX_Unmarshal(b []byte) error {
	return xxx_messageInfo_ReplyTicketList.Unmarshal(m, b)
}
func (m *ReplyTicketList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
	return xxx_messageInfo_ReplyTicketList.Marshal(b, m, deterministic)
}
func (dst *ReplyTicketList) XXX_Merge(src proto.Message) {
	xxx_messageInfo_ReplyTicketList.Merge(dst, src)
}
func (m *ReplyTicketList) XXX_Size() int {
	return xxx_messageInfo_ReplyTicketList.Size(m)
}
func (m *ReplyTicketList) XXX_DiscardUnknown() {
	xxx_messageInfo_ReplyTicketList.DiscardUnknown(m)
}

var xxx_messageInfo_ReplyTicketList proto.InternalMessageInfo

func (m *ReplyTicketList) GetTickets() []*Ticket {
	if m != nil {
		return m.Tickets
	}
	return nil
}

type ReplyWalletTickets struct {
	Tickets              []*Ticket `protobuf:"bytes,1,rep,name=tickets,proto3" json:"tickets,omitempty"`
	Privkeys             [][]byte  `protobuf:"bytes,2,rep,name=privkeys,proto3" json:"privkeys,omitempty"`
	XXX_NoUnkeyedLiteral struct{}  `json:"-"`
	XXX_unrecognized     []byte    `json:"-"`
	XXX_sizecache        int32     `json:"-"`
}

func (m *ReplyWalletTickets) Reset()         { *m = ReplyWalletTickets{} }
func (m *ReplyWalletTickets) String() string { return proto.CompactTextString(m) }
func (*ReplyWalletTickets) ProtoMessage()    {}
func (*ReplyWalletTickets) Descriptor() ([]byte, []int) {
	return fileDescriptor_ticket_258ffe65b0e990fb, []int{12}
}
func (m *ReplyWalletTickets) XXX_Unmarshal(b []byte) error {
	return xxx_messageInfo_ReplyWalletTickets.Unmarshal(m, b)
}
func (m *ReplyWalletTickets) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
	return xxx_messageInfo_ReplyWalletTickets.Marshal(b, m, deterministic)
}
func (dst *ReplyWalletTickets) XXX_Merge(src proto.Message) {
	xxx_messageInfo_ReplyWalletTickets.Merge(dst, src)
}
func (m *ReplyWalletTickets) XXX_Size() int {
	return xxx_messageInfo_ReplyWalletTickets.Size(m)
}
func (m *ReplyWalletTickets) XXX_DiscardUnknown() {
	xxx_messageInfo_ReplyWalletTickets.DiscardUnknown(m)
}

var xxx_messageInfo_ReplyWalletTickets proto.InternalMessageInfo

func (m *ReplyWalletTickets) GetTickets() []*Ticket {
	if m != nil {
		return m.Tickets
	}
	return nil
}

func (m *ReplyWalletTickets) GetPrivkeys() [][]byte {
	if m != nil {
		return m.Privkeys
	}
	return nil
}

type ReceiptTicket struct {
	TicketId             string   `protobuf:"bytes,1,opt,name=ticketId,proto3" json:"ticketId,omitempty"`
	Status               int32    `protobuf:"varint,2,opt,name=status,proto3" json:"status,omitempty"`
	PrevStatus           int32    `protobuf:"varint,3,opt,name=prevStatus,proto3" json:"prevStatus,omitempty"`
	Addr                 string   `protobuf:"bytes,4,opt,name=addr,proto3" json:"addr,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (m *ReceiptTicket) Reset()         { *m = ReceiptTicket{} }
func (m *ReceiptTicket) String() string { return proto.CompactTextString(m) }
func (*ReceiptTicket) ProtoMessage()    {}
func (*ReceiptTicket) Descriptor() ([]byte, []int) {
	return fileDescriptor_ticket_258ffe65b0e990fb, []int{13}
}
func (m *ReceiptTicket) XXX_Unmarshal(b []byte) error {
	return xxx_messageInfo_ReceiptTicket.Unmarshal(m, b)
}
func (m *ReceiptTicket) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
	return xxx_messageInfo_ReceiptTicket.Marshal(b, m, deterministic)
}
func (dst *ReceiptTicket) XXX_Merge(src proto.Message) {
	xxx_messageInfo_ReceiptTicket.Merge(dst, src)
}
func (m *ReceiptTicket) XXX_Size() int {
	return xxx_messageInfo_ReceiptTicket.Size(m)
}
func (m *ReceiptTicket) XXX_DiscardUnknown() {
	xxx_messageInfo_ReceiptTicket.DiscardUnknown(m)
}

var xxx_messageInfo_ReceiptTicket proto.InternalMessageInfo

func (m *ReceiptTicket) GetTicketId() string {
	if m != nil {
		return m.TicketId
	}
	return ""
}

func (m *ReceiptTicket) GetStatus() int32 {
	if m != nil {
		return m.Status
	}
	return 0
}

func (m *ReceiptTicket) GetPrevStatus() int32 {
	if m != nil {
		return m.PrevStatus
	}
	return 0
}

func (m *ReceiptTicket) GetAddr() string {
	if m != nil {
		return m.Addr
	}
	return ""
}

type ReceiptTicketBind struct {
	OldMinerAddress      string   `protobuf:"bytes,1,opt,name=oldMinerAddress,proto3" json:"oldMinerAddress,omitempty"`
	NewMinerAddress      string   `protobuf:"bytes,2,opt,name=newMinerAddress,proto3" json:"newMinerAddress,omitempty"`
	ReturnAddress        string   `protobuf:"bytes,3,opt,name=returnAddress,proto3" json:"returnAddress,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (m *ReceiptTicketBind) Reset()         { *m = ReceiptTicketBind{} }
func (m *ReceiptTicketBind) String() string { return proto.CompactTextString(m) }
func (*ReceiptTicketBind) ProtoMessage()    {}
func (*ReceiptTicketBind) Descriptor() ([]byte, []int) {
	return fileDescriptor_ticket_258ffe65b0e990fb, []int{14}
}
func (m *ReceiptTicketBind) XXX_Unmarshal(b []byte) error {
	return xxx_messageInfo_ReceiptTicketBind.Unmarshal(m, b)
}
func (m *ReceiptTicketBind) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
	return xxx_messageInfo_ReceiptTicketBind.Marshal(b, m, deterministic)
}
func (dst *ReceiptTicketBind) XXX_Merge(src proto.Message) {
	xxx_messageInfo_ReceiptTicketBind.Merge(dst, src)
}
func (m *ReceiptTicketBind) XXX_Size() int {
	return xxx_messageInfo_ReceiptTicketBind.Size(m)
}
func (m *ReceiptTicketBind) XXX_DiscardUnknown() {
	xxx_messageInfo_ReceiptTicketBind.DiscardUnknown(m)
}

var xxx_messageInfo_ReceiptTicketBind proto.InternalMessageInfo

func (m *ReceiptTicketBind) GetOldMinerAddress() string {
	if m != nil {
		return m.OldMinerAddress
	}
	return ""
}

func (m *ReceiptTicketBind) GetNewMinerAddress() string {
	if m != nil {
		return m.NewMinerAddress
	}
	return ""
}

func (m *ReceiptTicketBind) GetReturnAddress() string {
	if m != nil {
		return m.ReturnAddress
	}
	return ""
}

type ReqBindMiner struct {
	BindAddr             string   `protobuf:"bytes,1,opt,name=bindAddr,proto3" json:"bindAddr,omitempty"`
	OriginAddr           string   `protobuf:"bytes,2,opt,name=originAddr,proto3" json:"originAddr,omitempty"`
	Amount               int64    `protobuf:"varint,3,opt,name=amount,proto3" json:"amount,omitempty"`
	CheckBalance         bool     `protobuf:"varint,4,opt,name=checkBalance,proto3" json:"checkBalance,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (m *ReqBindMiner) Reset()         { *m = ReqBindMiner{} }
func (m *ReqBindMiner) String() string { return proto.CompactTextString(m) }
func (*ReqBindMiner) ProtoMessage()    {}
func (*ReqBindMiner) Descriptor() ([]byte, []int) {
	return fileDescriptor_ticket_258ffe65b0e990fb, []int{15}
}
func (m *ReqBindMiner) XXX_Unmarshal(b []byte) error {
	return xxx_messageInfo_ReqBindMiner.Unmarshal(m, b)
}
func (m *ReqBindMiner) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
	return xxx_messageInfo_ReqBindMiner.Marshal(b, m, deterministic)
}
func (dst *ReqBindMiner) XXX_Merge(src proto.Message) {
	xxx_messageInfo_ReqBindMiner.Merge(dst, src)
}
func (m *ReqBindMiner) XXX_Size() int {
	return xxx_messageInfo_ReqBindMiner.Size(m)
}
func (m *ReqBindMiner) XXX_DiscardUnknown() {
	xxx_messageInfo_ReqBindMiner.DiscardUnknown(m)
}

var xxx_messageInfo_ReqBindMiner proto.InternalMessageInfo

func (m *ReqBindMiner) GetBindAddr() string {
	if m != nil {
		return m.BindAddr
	}
	return ""
}

func (m *ReqBindMiner) GetOriginAddr() string {
	if m != nil {
		return m.OriginAddr
	}
	return ""
}

func (m *ReqBindMiner) GetAmount() int64 {
	if m != nil {
		return m.Amount
	}
	return 0
}

func (m *ReqBindMiner) GetCheckBalance() bool {
	if m != nil {
		return m.CheckBalance
	}
	return false
}

type ReplyBindMiner struct {
	TxHex                string   `protobuf:"bytes,1,opt,name=txHex,proto3" json:"txHex,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (m *ReplyBindMiner) Reset()         { *m = ReplyBindMiner{} }
func (m *ReplyBindMiner) String() string { return proto.CompactTextString(m) }
func (*ReplyBindMiner) ProtoMessage()    {}
func (*ReplyBindMiner) Descriptor() ([]byte, []int) {
	return fileDescriptor_ticket_258ffe65b0e990fb, []int{16}
}
func (m *ReplyBindMiner) XXX_Unmarshal(b []byte) error {
	return xxx_messageInfo_ReplyBindMiner.Unmarshal(m, b)
}
func (m *ReplyBindMiner) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
	return xxx_messageInfo_ReplyBindMiner.Marshal(b, m, deterministic)
}
func (dst *ReplyBindMiner) XXX_Merge(src proto.Message) {
	xxx_messageInfo_ReplyBindMiner.Merge(dst, src)
}
func (m *ReplyBindMiner) XXX_Size() int {
	return xxx_messageInfo_ReplyBindMiner.Size(m)
}
func (m *ReplyBindMiner) XXX_DiscardUnknown() {
	xxx_messageInfo_ReplyBindMiner.DiscardUnknown(m)
}

var xxx_messageInfo_ReplyBindMiner proto.InternalMessageInfo

func (m *ReplyBindMiner) GetTxHex() string {
	if m != nil {
		return m.TxHex
	}
	return ""
}

func init() {
	proto.RegisterType((*Ticket)(nil), "types.Ticket")
	proto.RegisterType((*TicketAction)(nil), "types.TicketAction")
	proto.RegisterType((*TicketMiner)(nil), "types.TicketMiner")
	proto.RegisterType((*TicketMinerOld)(nil), "types.TicketMinerOld")
	proto.RegisterType((*MinerFlag)(nil), "types.MinerFlag")
	proto.RegisterType((*TicketBind)(nil), "types.TicketBind")
	proto.RegisterType((*TicketOpen)(nil), "types.TicketOpen")
	proto.RegisterType((*TicketGenesis)(nil), "types.TicketGenesis")
	proto.RegisterType((*TicketClose)(nil), "types.TicketClose")
	proto.RegisterType((*TicketList)(nil), "types.TicketList")
	proto.RegisterType((*TicketInfos)(nil), "types.TicketInfos")
	proto.RegisterType((*ReplyTicketList)(nil), "types.ReplyTicketList")
	proto.RegisterType((*ReplyWalletTickets)(nil), "types.ReplyWalletTickets")
	proto.RegisterType((*ReceiptTicket)(nil), "types.ReceiptTicket")
	proto.RegisterType((*ReceiptTicketBind)(nil), "types.ReceiptTicketBind")
	proto.RegisterType((*ReqBindMiner)(nil), "types.ReqBindMiner")
	proto.RegisterType((*ReplyBindMiner)(nil), "types.ReplyBindMiner")
}

// Reference imports to suppress errors if they are not otherwise used.
var _ context.Context
var _ grpc.ClientConn

// 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.SupportPackageIsVersion4

// TicketClient is the client API for Ticket service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type TicketClient interface {
	// 创建绑定挖矿
	CreateBindMiner(ctx context.Context, in *ReqBindMiner, opts ...grpc.CallOption) (*ReplyBindMiner, error)
	// 查询钱包票数
	GetTicketCount(ctx context.Context, in *types.ReqNil, opts ...grpc.CallOption) (*types.Int64, error)
	// Miner
	// 设置自动挖矿
	SetAutoMining(ctx context.Context, in *MinerFlag, opts ...grpc.CallOption) (*types.Reply, error)
}

type ticketClient struct {
	cc *grpc.ClientConn
}

func NewTicketClient(cc *grpc.ClientConn) TicketClient {
	return &ticketClient{cc}
}

func (c *ticketClient) CreateBindMiner(ctx context.Context, in *ReqBindMiner, opts ...grpc.CallOption) (*ReplyBindMiner, error) {
	out := new(ReplyBindMiner)
	err := c.cc.Invoke(ctx, "/types.ticket/CreateBindMiner", in, out, opts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *ticketClient) GetTicketCount(ctx context.Context, in *types.ReqNil, opts ...grpc.CallOption) (*types.Int64, error) {
	out := new(types.Int64)
	err := c.cc.Invoke(ctx, "/types.ticket/GetTicketCount", in, out, opts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *ticketClient) SetAutoMining(ctx context.Context, in *MinerFlag, opts ...grpc.CallOption) (*types.Reply, error) {
	out := new(types.Reply)
	err := c.cc.Invoke(ctx, "/types.ticket/SetAutoMining", in, out, opts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

// TicketServer is the server API for Ticket service.
type TicketServer interface {
	// 创建绑定挖矿
	CreateBindMiner(context.Context, *ReqBindMiner) (*ReplyBindMiner, error)
	// 查询钱包票数
	GetTicketCount(context.Context, *types.ReqNil) (*types.Int64, error)
	// Miner
	// 设置自动挖矿
	SetAutoMining(context.Context, *MinerFlag) (*types.Reply, error)
}

func RegisterTicketServer(s *grpc.Server, srv TicketServer) {
	s.RegisterService(&_Ticket_serviceDesc, srv)
}

func _Ticket_CreateBindMiner_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(ReqBindMiner)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(TicketServer).CreateBindMiner(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: "/types.ticket/CreateBindMiner",
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(TicketServer).CreateBindMiner(ctx, req.(*ReqBindMiner))
	}
	return interceptor(ctx, in, info, handler)
}

func _Ticket_GetTicketCount_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(types.ReqNil)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(TicketServer).GetTicketCount(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: "/types.ticket/GetTicketCount",
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(TicketServer).GetTicketCount(ctx, req.(*types.ReqNil))
	}
	return interceptor(ctx, in, info, handler)
}

func _Ticket_SetAutoMining_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(MinerFlag)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(TicketServer).SetAutoMining(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: "/types.ticket/SetAutoMining",
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(TicketServer).SetAutoMining(ctx, req.(*MinerFlag))
	}
	return interceptor(ctx, in, info, handler)
}

var _Ticket_serviceDesc = grpc.ServiceDesc{
	ServiceName: "types.ticket",
	HandlerType: (*TicketServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "CreateBindMiner",
			Handler:    _Ticket_CreateBindMiner_Handler,
		},
		{
			MethodName: "GetTicketCount",
			Handler:    _Ticket_GetTicketCount_Handler,
		},
		{
			MethodName: "SetAutoMining",
			Handler:    _Ticket_SetAutoMining_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "ticket.proto",
}

func init() { proto.RegisterFile("ticket.proto", fileDescriptor_ticket_258ffe65b0e990fb) }

var fileDescriptor_ticket_258ffe65b0e990fb = []byte{
	// 877 bytes of a gzipped FileDescriptorProto
	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x56, 0xdd, 0x6e, 0xeb, 0x44,
	0x10, 0x8e, 0xed, 0x3a, 0x49, 0xa7, 0x4e, 0xcb, 0x59, 0x0a, 0xb2, 0x22, 0x74, 0x14, 0xad, 0x10,
	0x84, 0x1f, 0x15, 0x28, 0x08, 0x01, 0x37, 0xa8, 0xad, 0xc4, 0x49, 0x25, 0xc2, 0x41, 0xdb, 0xa3,
	0x83, 0xb8, 0x74, 0xed, 0x4d, 0xce, 0xaa, 0xce, 0xda, 0xac, 0x37, 0xe9, 0xc9, 0x0b, 0x20, 0x71,
	0xc1, 0x3d, 0x4f, 0xc0, 0x1d, 0xcf, 0xc0, 0xab, 0xa1, 0x1d, 0xaf, 0xff, 0x92, 0x5e, 0x54, 0x02,
	0xee, 0xf2, 0xcd, 0x7c, 0xe3, 0x99, 0xf9, 0x76, 0x66, 0x37, 0x10, 0x68, 0x11, 0xdf, 0x71, 0x7d,
	0x96, 0xab, 0x4c, 0x67, 0xc4, 0xd7, 0xdb, 0x9c, 0x17, 0xe3, 0x20, 0xce, 0x56, 0xab, 0x4c, 0x96,
	0x46, 0xfa, 0x87, 0x0b, 0xfd, 0x17, 0xc8, 0x22, 0x63, 0x18, 0x96, 0xfc, 0xeb, 0x24, 0x74, 0x26,
	0xce, 0xf4, 0x90, 0xd5, 0x98, 0xbc, 0x0d, 0xfd, 0x42, 0x47, 0x7a, 0x5d, 0x84, 0xee, 0xc4, 0x99,
	0xfa, 0xcc, 0x22, 0xf2, 0x0e, 0x1c, 0x8a, 0xe2, 0x19, 0x97, 0xbc, 0x10, 0x45, 0xe8, 0x4d, 0x9c,
	0xe9, 0x90, 0x35, 0x06, 0xf2, 0x14, 0x20, 0x56, 0x3c, 0xd2, 0xfc, 0x85, 0x58, 0xf1, 0xf0, 0x60,
	0xe2, 0x4c, 0x3d, 0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