Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterTicketServer(s *grpc.Server, srv TicketServer)
- type MinerFlag
- func (*MinerFlag) Descriptor() ([]byte, []int)
- func (m *MinerFlag) GetFlag() int32
- func (m *MinerFlag) GetReserve() int64
- func (*MinerFlag) ProtoMessage()
- func (m *MinerFlag) Reset()
- func (m *MinerFlag) String() string
- func (m *MinerFlag) XXX_DiscardUnknown()
- func (m *MinerFlag) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MinerFlag) XXX_Merge(src proto.Message)
- func (m *MinerFlag) XXX_Size() int
- func (m *MinerFlag) XXX_Unmarshal(b []byte) error
- type ReceiptTicket
- func (*ReceiptTicket) Descriptor() ([]byte, []int)
- func (m *ReceiptTicket) GetAddr() string
- func (m *ReceiptTicket) GetPrevStatus() int32
- func (m *ReceiptTicket) GetStatus() int32
- func (m *ReceiptTicket) GetTicketId() string
- func (*ReceiptTicket) ProtoMessage()
- func (m *ReceiptTicket) Reset()
- func (m *ReceiptTicket) String() string
- func (m *ReceiptTicket) XXX_DiscardUnknown()
- func (m *ReceiptTicket) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ReceiptTicket) XXX_Merge(src proto.Message)
- func (m *ReceiptTicket) XXX_Size() int
- func (m *ReceiptTicket) XXX_Unmarshal(b []byte) error
- type ReceiptTicketBind
- func (*ReceiptTicketBind) Descriptor() ([]byte, []int)
- func (m *ReceiptTicketBind) GetNewMinerAddress() string
- func (m *ReceiptTicketBind) GetOldMinerAddress() string
- func (m *ReceiptTicketBind) GetReturnAddress() string
- func (*ReceiptTicketBind) ProtoMessage()
- func (m *ReceiptTicketBind) Reset()
- func (m *ReceiptTicketBind) String() string
- func (m *ReceiptTicketBind) XXX_DiscardUnknown()
- func (m *ReceiptTicketBind) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ReceiptTicketBind) XXX_Merge(src proto.Message)
- func (m *ReceiptTicketBind) XXX_Size() int
- func (m *ReceiptTicketBind) XXX_Unmarshal(b []byte) error
- type ReplyBindMiner
- func (*ReplyBindMiner) Descriptor() ([]byte, []int)
- func (m *ReplyBindMiner) GetTxHex() string
- func (*ReplyBindMiner) ProtoMessage()
- func (m *ReplyBindMiner) Reset()
- func (m *ReplyBindMiner) String() string
- func (m *ReplyBindMiner) XXX_DiscardUnknown()
- func (m *ReplyBindMiner) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ReplyBindMiner) XXX_Merge(src proto.Message)
- func (m *ReplyBindMiner) XXX_Size() int
- func (m *ReplyBindMiner) XXX_Unmarshal(b []byte) error
- type ReplyTicketList
- func (*ReplyTicketList) Descriptor() ([]byte, []int)
- func (m *ReplyTicketList) GetTickets() []*Ticket
- func (*ReplyTicketList) ProtoMessage()
- func (m *ReplyTicketList) Reset()
- func (m *ReplyTicketList) String() string
- func (m *ReplyTicketList) XXX_DiscardUnknown()
- func (m *ReplyTicketList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ReplyTicketList) XXX_Merge(src proto.Message)
- func (m *ReplyTicketList) XXX_Size() int
- func (m *ReplyTicketList) XXX_Unmarshal(b []byte) error
- type ReplyWalletTickets
- func (*ReplyWalletTickets) Descriptor() ([]byte, []int)
- func (m *ReplyWalletTickets) GetPrivkeys() [][]byte
- func (m *ReplyWalletTickets) GetTickets() []*Ticket
- func (*ReplyWalletTickets) ProtoMessage()
- func (m *ReplyWalletTickets) Reset()
- func (m *ReplyWalletTickets) String() string
- func (m *ReplyWalletTickets) XXX_DiscardUnknown()
- func (m *ReplyWalletTickets) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ReplyWalletTickets) XXX_Merge(src proto.Message)
- func (m *ReplyWalletTickets) XXX_Size() int
- func (m *ReplyWalletTickets) XXX_Unmarshal(b []byte) error
- type ReqBindMiner
- func (*ReqBindMiner) Descriptor() ([]byte, []int)
- func (m *ReqBindMiner) GetAmount() int64
- func (m *ReqBindMiner) GetBindAddr() string
- func (m *ReqBindMiner) GetCheckBalance() bool
- func (m *ReqBindMiner) GetOriginAddr() string
- func (*ReqBindMiner) ProtoMessage()
- func (m *ReqBindMiner) Reset()
- func (m *ReqBindMiner) String() string
- func (m *ReqBindMiner) XXX_DiscardUnknown()
- func (m *ReqBindMiner) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ReqBindMiner) XXX_Merge(src proto.Message)
- func (m *ReqBindMiner) XXX_Size() int
- func (m *ReqBindMiner) XXX_Unmarshal(b []byte) error
- type Ticket
- func (*Ticket) Descriptor() ([]byte, []int)
- func (m *Ticket) GetCreateTime() int64
- func (m *Ticket) GetIsGenesis() bool
- func (m *Ticket) GetMinerAddress() string
- func (m *Ticket) GetMinerTime() int64
- func (m *Ticket) GetMinerValue() int64
- func (m *Ticket) GetPrice() int64
- func (m *Ticket) GetReturnAddress() string
- func (m *Ticket) GetStatus() int32
- func (m *Ticket) GetTicketId() string
- func (*Ticket) ProtoMessage()
- func (m *Ticket) Reset()
- func (m *Ticket) String() string
- func (m *Ticket) XXX_DiscardUnknown()
- func (m *Ticket) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Ticket) XXX_Merge(src proto.Message)
- func (m *Ticket) XXX_Size() int
- func (m *Ticket) XXX_Unmarshal(b []byte) error
- type TicketAction
- func (*TicketAction) Descriptor() ([]byte, []int)
- func (m *TicketAction) GetGenesis() *TicketGenesis
- func (m *TicketAction) GetMiner() *TicketMiner
- func (m *TicketAction) GetTbind() *TicketBind
- func (m *TicketAction) GetTclose() *TicketClose
- func (m *TicketAction) GetTopen() *TicketOpen
- func (m *TicketAction) GetTy() int32
- func (m *TicketAction) GetValue() isTicketAction_Value
- func (*TicketAction) ProtoMessage()
- func (m *TicketAction) Reset()
- func (m *TicketAction) String() string
- func (m *TicketAction) XXX_DiscardUnknown()
- func (m *TicketAction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *TicketAction) XXX_Merge(src proto.Message)
- func (*TicketAction) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, ...)
- func (m *TicketAction) XXX_Size() int
- func (m *TicketAction) XXX_Unmarshal(b []byte) error
- type TicketAction_Genesis
- type TicketAction_Miner
- type TicketAction_Tbind
- type TicketAction_Tclose
- type TicketAction_Topen
- type TicketBind
- func (*TicketBind) Descriptor() ([]byte, []int)
- func (m *TicketBind) GetMinerAddress() string
- func (m *TicketBind) GetReturnAddress() string
- func (*TicketBind) ProtoMessage()
- func (m *TicketBind) Reset()
- func (m *TicketBind) String() string
- func (m *TicketBind) XXX_DiscardUnknown()
- func (m *TicketBind) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *TicketBind) XXX_Merge(src proto.Message)
- func (m *TicketBind) XXX_Size() int
- func (m *TicketBind) XXX_Unmarshal(b []byte) error
- type TicketClient
- type TicketClose
- func (*TicketClose) Descriptor() ([]byte, []int)
- func (m *TicketClose) GetMinerAddress() string
- func (m *TicketClose) GetTicketId() []string
- func (*TicketClose) ProtoMessage()
- func (m *TicketClose) Reset()
- func (m *TicketClose) String() string
- func (m *TicketClose) XXX_DiscardUnknown()
- func (m *TicketClose) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *TicketClose) XXX_Merge(src proto.Message)
- func (m *TicketClose) XXX_Size() int
- func (m *TicketClose) XXX_Unmarshal(b []byte) error
- type TicketGenesis
- func (*TicketGenesis) Descriptor() ([]byte, []int)
- func (m *TicketGenesis) GetCount() int32
- func (m *TicketGenesis) GetMinerAddress() string
- func (m *TicketGenesis) GetReturnAddress() string
- func (*TicketGenesis) ProtoMessage()
- func (m *TicketGenesis) Reset()
- func (m *TicketGenesis) String() string
- func (m *TicketGenesis) XXX_DiscardUnknown()
- func (m *TicketGenesis) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *TicketGenesis) XXX_Merge(src proto.Message)
- func (m *TicketGenesis) XXX_Size() int
- func (m *TicketGenesis) XXX_Unmarshal(b []byte) error
- type TicketInfos
- func (*TicketInfos) Descriptor() ([]byte, []int)
- func (m *TicketInfos) GetTicketIds() []string
- func (*TicketInfos) ProtoMessage()
- func (m *TicketInfos) Reset()
- func (m *TicketInfos) String() string
- func (m *TicketInfos) XXX_DiscardUnknown()
- func (m *TicketInfos) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *TicketInfos) XXX_Merge(src proto.Message)
- func (m *TicketInfos) XXX_Size() int
- func (m *TicketInfos) XXX_Unmarshal(b []byte) error
- type TicketList
- func (*TicketList) Descriptor() ([]byte, []int)
- func (m *TicketList) GetAddr() string
- func (m *TicketList) GetStatus() int32
- func (*TicketList) ProtoMessage()
- func (m *TicketList) Reset()
- func (m *TicketList) String() string
- func (m *TicketList) XXX_DiscardUnknown()
- func (m *TicketList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *TicketList) XXX_Merge(src proto.Message)
- func (m *TicketList) XXX_Size() int
- func (m *TicketList) XXX_Unmarshal(b []byte) error
- type TicketMiner
- func (*TicketMiner) Descriptor() ([]byte, []int)
- func (m *TicketMiner) GetBits() uint32
- func (m *TicketMiner) GetModify() []byte
- func (m *TicketMiner) GetPrivHash() []byte
- func (m *TicketMiner) GetReward() int64
- func (m *TicketMiner) GetTicketId() string
- func (m *TicketMiner) GetVrfHash() []byte
- func (m *TicketMiner) GetVrfProof() []byte
- func (*TicketMiner) ProtoMessage()
- func (m *TicketMiner) Reset()
- func (m *TicketMiner) String() string
- func (m *TicketMiner) XXX_DiscardUnknown()
- func (m *TicketMiner) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *TicketMiner) XXX_Merge(src proto.Message)
- func (m *TicketMiner) XXX_Size() int
- func (m *TicketMiner) XXX_Unmarshal(b []byte) error
- type TicketMinerOld
- func (*TicketMinerOld) Descriptor() ([]byte, []int)
- func (m *TicketMinerOld) GetBits() uint32
- func (m *TicketMinerOld) GetModify() []byte
- func (m *TicketMinerOld) GetReward() int64
- func (m *TicketMinerOld) GetTicketId() string
- func (*TicketMinerOld) ProtoMessage()
- func (m *TicketMinerOld) Reset()
- func (m *TicketMinerOld) String() string
- func (m *TicketMinerOld) XXX_DiscardUnknown()
- func (m *TicketMinerOld) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *TicketMinerOld) XXX_Merge(src proto.Message)
- func (m *TicketMinerOld) XXX_Size() int
- func (m *TicketMinerOld) XXX_Unmarshal(b []byte) error
- type TicketOpen
- func (*TicketOpen) Descriptor() ([]byte, []int)
- func (m *TicketOpen) GetCount() int32
- func (m *TicketOpen) GetMinerAddress() string
- func (m *TicketOpen) GetPubHashes() [][]byte
- func (m *TicketOpen) GetRandSeed() int64
- func (m *TicketOpen) GetReturnAddress() string
- func (*TicketOpen) ProtoMessage()
- func (m *TicketOpen) Reset()
- func (m *TicketOpen) String() string
- func (m *TicketOpen) XXX_DiscardUnknown()
- func (m *TicketOpen) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *TicketOpen) XXX_Merge(src proto.Message)
- func (m *TicketOpen) XXX_Size() int
- func (m *TicketOpen) XXX_Unmarshal(b []byte) error
- type TicketServer
- type TicketType
Constants ¶
View Source
const ( //TyLogNewTicket new ticket log type TyLogNewTicket = 111 // TyLogCloseTicket close ticket log type TyLogCloseTicket = 112 // TyLogMinerTicket miner ticket log type TyLogMinerTicket = 113 // TyLogTicketBind bind ticket log type TyLogTicketBind = 114 )
View Source
const ( // TicketActionGenesis action type TicketActionGenesis = 11 // TicketActionOpen action type TicketActionOpen = 12 // TicketActionClose action type TicketActionClose = 13 // TicketActionList action type TicketActionList = 14 //读的接口不直接经过transaction // TicketActionInfos action type TicketActionInfos = 15 //读的接口不直接经过transaction // TicketActionMiner action miner TicketActionMiner = 16 // TicketActionBind action bind TicketActionBind = 17 )
ticket
View Source
const TicketCountOpenOnce = 1000
TicketCountOpenOnce count open once
View Source
const TicketOldParts = 3
TicketOldParts old tick type
Variables ¶
View Source
var ( // ErrNoTicket error type ErrNoTicket = errors.New("ErrNoTicket") // ErrTicketCount error type ErrTicketCount = errors.New("ErrTicketCount") // ErrTime error type ErrTime = errors.New("ErrTime") // ErrTicketClosed err type ErrTicketClosed = errors.New("ErrTicketClosed") // ErrEmptyMinerTx err type ErrEmptyMinerTx = errors.New("ErrEmptyMinerTx") // ErrMinerNotPermit err type ErrMinerNotPermit = errors.New("ErrMinerNotPermit") // ErrMinerAddr err type ErrMinerAddr = errors.New("ErrMinerAddr") // ErrModify err type ErrModify = errors.New("ErrModify") // ErrMinerTx err type ErrMinerTx = errors.New("ErrMinerTx") // ErrNoVrf err type ErrNoVrf = errors.New("ErrNoVrf") // ErrVrfVerify err type ErrVrfVerify = errors.New("ErrVrfVerify") )
View Source
var ErrOpenTicketPubHash = errors.New("ErrOpenTicketPubHash")
ErrOpenTicketPubHash err type
View Source
var TicketX = "ticket"
TicketX dapp name
Functions ¶
func RegisterTicketServer ¶
func RegisterTicketServer(s *grpc.Server, srv TicketServer)
Types ¶
type MinerFlag ¶
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 (*MinerFlag) Descriptor ¶
func (*MinerFlag) GetReserve ¶
func (*MinerFlag) ProtoMessage ¶
func (*MinerFlag) ProtoMessage()
func (*MinerFlag) XXX_DiscardUnknown ¶
func (m *MinerFlag) XXX_DiscardUnknown()
func (*MinerFlag) XXX_Marshal ¶
func (*MinerFlag) XXX_Unmarshal ¶
type ReceiptTicket ¶
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 (*ReceiptTicket) Descriptor ¶
func (*ReceiptTicket) Descriptor() ([]byte, []int)
func (*ReceiptTicket) GetAddr ¶
func (m *ReceiptTicket) GetAddr() string
func (*ReceiptTicket) GetPrevStatus ¶
func (m *ReceiptTicket) GetPrevStatus() int32
func (*ReceiptTicket) GetStatus ¶
func (m *ReceiptTicket) GetStatus() int32
func (*ReceiptTicket) GetTicketId ¶
func (m *ReceiptTicket) GetTicketId() string
func (*ReceiptTicket) ProtoMessage ¶
func (*ReceiptTicket) ProtoMessage()
func (*ReceiptTicket) Reset ¶
func (m *ReceiptTicket) Reset()
func (*ReceiptTicket) String ¶
func (m *ReceiptTicket) String() string
func (*ReceiptTicket) XXX_DiscardUnknown ¶
func (m *ReceiptTicket) XXX_DiscardUnknown()
func (*ReceiptTicket) XXX_Marshal ¶
func (m *ReceiptTicket) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ReceiptTicket) XXX_Merge ¶
func (m *ReceiptTicket) XXX_Merge(src proto.Message)
func (*ReceiptTicket) XXX_Size ¶
func (m *ReceiptTicket) XXX_Size() int
func (*ReceiptTicket) XXX_Unmarshal ¶
func (m *ReceiptTicket) XXX_Unmarshal(b []byte) error
type ReceiptTicketBind ¶
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 (*ReceiptTicketBind) Descriptor ¶
func (*ReceiptTicketBind) Descriptor() ([]byte, []int)
func (*ReceiptTicketBind) GetNewMinerAddress ¶
func (m *ReceiptTicketBind) GetNewMinerAddress() string
func (*ReceiptTicketBind) GetOldMinerAddress ¶
func (m *ReceiptTicketBind) GetOldMinerAddress() string
func (*ReceiptTicketBind) GetReturnAddress ¶
func (m *ReceiptTicketBind) GetReturnAddress() string
func (*ReceiptTicketBind) ProtoMessage ¶
func (*ReceiptTicketBind) ProtoMessage()
func (*ReceiptTicketBind) Reset ¶
func (m *ReceiptTicketBind) Reset()
func (*ReceiptTicketBind) String ¶
func (m *ReceiptTicketBind) String() string
func (*ReceiptTicketBind) XXX_DiscardUnknown ¶
func (m *ReceiptTicketBind) XXX_DiscardUnknown()
func (*ReceiptTicketBind) XXX_Marshal ¶
func (m *ReceiptTicketBind) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ReceiptTicketBind) XXX_Merge ¶
func (m *ReceiptTicketBind) XXX_Merge(src proto.Message)
func (*ReceiptTicketBind) XXX_Size ¶
func (m *ReceiptTicketBind) XXX_Size() int
func (*ReceiptTicketBind) XXX_Unmarshal ¶
func (m *ReceiptTicketBind) XXX_Unmarshal(b []byte) error
type ReplyBindMiner ¶
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 (*ReplyBindMiner) Descriptor ¶
func (*ReplyBindMiner) Descriptor() ([]byte, []int)
func (*ReplyBindMiner) GetTxHex ¶
func (m *ReplyBindMiner) GetTxHex() string
func (*ReplyBindMiner) ProtoMessage ¶
func (*ReplyBindMiner) ProtoMessage()
func (*ReplyBindMiner) Reset ¶
func (m *ReplyBindMiner) Reset()
func (*ReplyBindMiner) String ¶
func (m *ReplyBindMiner) String() string
func (*ReplyBindMiner) XXX_DiscardUnknown ¶
func (m *ReplyBindMiner) XXX_DiscardUnknown()
func (*ReplyBindMiner) XXX_Marshal ¶
func (m *ReplyBindMiner) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ReplyBindMiner) XXX_Merge ¶
func (m *ReplyBindMiner) XXX_Merge(src proto.Message)
func (*ReplyBindMiner) XXX_Size ¶
func (m *ReplyBindMiner) XXX_Size() int
func (*ReplyBindMiner) XXX_Unmarshal ¶
func (m *ReplyBindMiner) XXX_Unmarshal(b []byte) error
type ReplyTicketList ¶
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 (*ReplyTicketList) Descriptor ¶
func (*ReplyTicketList) Descriptor() ([]byte, []int)
func (*ReplyTicketList) GetTickets ¶
func (m *ReplyTicketList) GetTickets() []*Ticket
func (*ReplyTicketList) ProtoMessage ¶
func (*ReplyTicketList) ProtoMessage()
func (*ReplyTicketList) Reset ¶
func (m *ReplyTicketList) Reset()
func (*ReplyTicketList) String ¶
func (m *ReplyTicketList) String() string
func (*ReplyTicketList) XXX_DiscardUnknown ¶
func (m *ReplyTicketList) XXX_DiscardUnknown()
func (*ReplyTicketList) XXX_Marshal ¶
func (m *ReplyTicketList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ReplyTicketList) XXX_Merge ¶
func (m *ReplyTicketList) XXX_Merge(src proto.Message)
func (*ReplyTicketList) XXX_Size ¶
func (m *ReplyTicketList) XXX_Size() int
func (*ReplyTicketList) XXX_Unmarshal ¶
func (m *ReplyTicketList) XXX_Unmarshal(b []byte) error
type ReplyWalletTickets ¶
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 (*ReplyWalletTickets) Descriptor ¶
func (*ReplyWalletTickets) Descriptor() ([]byte, []int)
func (*ReplyWalletTickets) GetPrivkeys ¶
func (m *ReplyWalletTickets) GetPrivkeys() [][]byte
func (*ReplyWalletTickets) GetTickets ¶
func (m *ReplyWalletTickets) GetTickets() []*Ticket
func (*ReplyWalletTickets) ProtoMessage ¶
func (*ReplyWalletTickets) ProtoMessage()
func (*ReplyWalletTickets) Reset ¶
func (m *ReplyWalletTickets) Reset()
func (*ReplyWalletTickets) String ¶
func (m *ReplyWalletTickets) String() string
func (*ReplyWalletTickets) XXX_DiscardUnknown ¶
func (m *ReplyWalletTickets) XXX_DiscardUnknown()
func (*ReplyWalletTickets) XXX_Marshal ¶
func (m *ReplyWalletTickets) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ReplyWalletTickets) XXX_Merge ¶
func (m *ReplyWalletTickets) XXX_Merge(src proto.Message)
func (*ReplyWalletTickets) XXX_Size ¶
func (m *ReplyWalletTickets) XXX_Size() int
func (*ReplyWalletTickets) XXX_Unmarshal ¶
func (m *ReplyWalletTickets) XXX_Unmarshal(b []byte) error
type ReqBindMiner ¶
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 (*ReqBindMiner) Descriptor ¶
func (*ReqBindMiner) Descriptor() ([]byte, []int)
func (*ReqBindMiner) GetAmount ¶
func (m *ReqBindMiner) GetAmount() int64
func (*ReqBindMiner) GetBindAddr ¶
func (m *ReqBindMiner) GetBindAddr() string
func (*ReqBindMiner) GetCheckBalance ¶
func (m *ReqBindMiner) GetCheckBalance() bool
func (*ReqBindMiner) GetOriginAddr ¶
func (m *ReqBindMiner) GetOriginAddr() string
func (*ReqBindMiner) ProtoMessage ¶
func (*ReqBindMiner) ProtoMessage()
func (*ReqBindMiner) Reset ¶
func (m *ReqBindMiner) Reset()
func (*ReqBindMiner) String ¶
func (m *ReqBindMiner) String() string
func (*ReqBindMiner) XXX_DiscardUnknown ¶
func (m *ReqBindMiner) XXX_DiscardUnknown()
func (*ReqBindMiner) XXX_Marshal ¶
func (m *ReqBindMiner) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ReqBindMiner) XXX_Merge ¶
func (m *ReqBindMiner) XXX_Merge(src proto.Message)
func (*ReqBindMiner) XXX_Size ¶
func (m *ReqBindMiner) XXX_Size() int
func (*ReqBindMiner) XXX_Unmarshal ¶
func (m *ReqBindMiner) XXX_Unmarshal(b []byte) error
type Ticket ¶
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 (*Ticket) Descriptor ¶
func (*Ticket) GetCreateTime ¶
func (*Ticket) GetIsGenesis ¶
func (*Ticket) GetMinerAddress ¶
func (*Ticket) GetMinerTime ¶
func (*Ticket) GetMinerValue ¶
func (*Ticket) GetReturnAddress ¶
func (*Ticket) GetTicketId ¶
func (*Ticket) ProtoMessage ¶
func (*Ticket) ProtoMessage()
func (*Ticket) XXX_DiscardUnknown ¶
func (m *Ticket) XXX_DiscardUnknown()
func (*Ticket) XXX_Marshal ¶
func (*Ticket) XXX_Unmarshal ¶
type TicketAction ¶
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:"-"` }
message for execs.ticket
func (*TicketAction) Descriptor ¶
func (*TicketAction) Descriptor() ([]byte, []int)
func (*TicketAction) GetGenesis ¶
func (m *TicketAction) GetGenesis() *TicketGenesis
func (*TicketAction) GetMiner ¶
func (m *TicketAction) GetMiner() *TicketMiner
func (*TicketAction) GetTbind ¶
func (m *TicketAction) GetTbind() *TicketBind
func (*TicketAction) GetTclose ¶
func (m *TicketAction) GetTclose() *TicketClose
func (*TicketAction) GetTopen ¶
func (m *TicketAction) GetTopen() *TicketOpen
func (*TicketAction) GetTy ¶
func (m *TicketAction) GetTy() int32
func (*TicketAction) GetValue ¶
func (m *TicketAction) GetValue() isTicketAction_Value
func (*TicketAction) ProtoMessage ¶
func (*TicketAction) ProtoMessage()
func (*TicketAction) Reset ¶
func (m *TicketAction) Reset()
func (*TicketAction) String ¶
func (m *TicketAction) String() string
func (*TicketAction) XXX_DiscardUnknown ¶
func (m *TicketAction) XXX_DiscardUnknown()
func (*TicketAction) XXX_Marshal ¶
func (m *TicketAction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*TicketAction) XXX_Merge ¶
func (m *TicketAction) XXX_Merge(src proto.Message)
func (*TicketAction) XXX_OneofFuncs ¶
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{})
XXX_OneofFuncs is for the internal use of the proto package.
func (*TicketAction) XXX_Size ¶
func (m *TicketAction) XXX_Size() int
func (*TicketAction) XXX_Unmarshal ¶
func (m *TicketAction) XXX_Unmarshal(b []byte) error
type TicketAction_Genesis ¶
type TicketAction_Genesis struct {
Genesis *TicketGenesis `protobuf:"bytes,2,opt,name=genesis,proto3,oneof"`
}
type TicketAction_Miner ¶
type TicketAction_Miner struct {
Miner *TicketMiner `protobuf:"bytes,4,opt,name=miner,proto3,oneof"`
}
type TicketAction_Tbind ¶
type TicketAction_Tbind struct {
Tbind *TicketBind `protobuf:"bytes,5,opt,name=tbind,proto3,oneof"`
}
type TicketAction_Tclose ¶
type TicketAction_Tclose struct {
Tclose *TicketClose `protobuf:"bytes,3,opt,name=tclose,proto3,oneof"`
}
type TicketAction_Topen ¶
type TicketAction_Topen struct {
Topen *TicketOpen `protobuf:"bytes,1,opt,name=topen,proto3,oneof"`
}
type TicketBind ¶
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 (*TicketBind) Descriptor ¶
func (*TicketBind) Descriptor() ([]byte, []int)
func (*TicketBind) GetMinerAddress ¶
func (m *TicketBind) GetMinerAddress() string
func (*TicketBind) GetReturnAddress ¶
func (m *TicketBind) GetReturnAddress() string
func (*TicketBind) ProtoMessage ¶
func (*TicketBind) ProtoMessage()
func (*TicketBind) Reset ¶
func (m *TicketBind) Reset()
func (*TicketBind) String ¶
func (m *TicketBind) String() string
func (*TicketBind) XXX_DiscardUnknown ¶
func (m *TicketBind) XXX_DiscardUnknown()
func (*TicketBind) XXX_Marshal ¶
func (m *TicketBind) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*TicketBind) XXX_Merge ¶
func (m *TicketBind) XXX_Merge(src proto.Message)
func (*TicketBind) XXX_Size ¶
func (m *TicketBind) XXX_Size() int
func (*TicketBind) XXX_Unmarshal ¶
func (m *TicketBind) XXX_Unmarshal(b []byte) error
type TicketClient ¶
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) }
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.
func NewTicketClient ¶
func NewTicketClient(cc *grpc.ClientConn) TicketClient
type TicketClose ¶
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 (*TicketClose) Descriptor ¶
func (*TicketClose) Descriptor() ([]byte, []int)
func (*TicketClose) GetMinerAddress ¶
func (m *TicketClose) GetMinerAddress() string
func (*TicketClose) GetTicketId ¶
func (m *TicketClose) GetTicketId() []string
func (*TicketClose) ProtoMessage ¶
func (*TicketClose) ProtoMessage()
func (*TicketClose) Reset ¶
func (m *TicketClose) Reset()
func (*TicketClose) String ¶
func (m *TicketClose) String() string
func (*TicketClose) XXX_DiscardUnknown ¶
func (m *TicketClose) XXX_DiscardUnknown()
func (*TicketClose) XXX_Marshal ¶
func (m *TicketClose) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*TicketClose) XXX_Merge ¶
func (m *TicketClose) XXX_Merge(src proto.Message)
func (*TicketClose) XXX_Size ¶
func (m *TicketClose) XXX_Size() int
func (*TicketClose) XXX_Unmarshal ¶
func (m *TicketClose) XXX_Unmarshal(b []byte) error
type TicketGenesis ¶
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 (*TicketGenesis) Descriptor ¶
func (*TicketGenesis) Descriptor() ([]byte, []int)
func (*TicketGenesis) GetCount ¶
func (m *TicketGenesis) GetCount() int32
func (*TicketGenesis) GetMinerAddress ¶
func (m *TicketGenesis) GetMinerAddress() string
func (*TicketGenesis) GetReturnAddress ¶
func (m *TicketGenesis) GetReturnAddress() string
func (*TicketGenesis) ProtoMessage ¶
func (*TicketGenesis) ProtoMessage()
func (*TicketGenesis) Reset ¶
func (m *TicketGenesis) Reset()
func (*TicketGenesis) String ¶
func (m *TicketGenesis) String() string
func (*TicketGenesis) XXX_DiscardUnknown ¶
func (m *TicketGenesis) XXX_DiscardUnknown()
func (*TicketGenesis) XXX_Marshal ¶
func (m *TicketGenesis) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*TicketGenesis) XXX_Merge ¶
func (m *TicketGenesis) XXX_Merge(src proto.Message)
func (*TicketGenesis) XXX_Size ¶
func (m *TicketGenesis) XXX_Size() int
func (*TicketGenesis) XXX_Unmarshal ¶
func (m *TicketGenesis) XXX_Unmarshal(b []byte) error
type TicketInfos ¶
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 (*TicketInfos) Descriptor ¶
func (*TicketInfos) Descriptor() ([]byte, []int)
func (*TicketInfos) GetTicketIds ¶
func (m *TicketInfos) GetTicketIds() []string
func (*TicketInfos) ProtoMessage ¶
func (*TicketInfos) ProtoMessage()
func (*TicketInfos) Reset ¶
func (m *TicketInfos) Reset()
func (*TicketInfos) String ¶
func (m *TicketInfos) String() string
func (*TicketInfos) XXX_DiscardUnknown ¶
func (m *TicketInfos) XXX_DiscardUnknown()
func (*TicketInfos) XXX_Marshal ¶
func (m *TicketInfos) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*TicketInfos) XXX_Merge ¶
func (m *TicketInfos) XXX_Merge(src proto.Message)
func (*TicketInfos) XXX_Size ¶
func (m *TicketInfos) XXX_Size() int
func (*TicketInfos) XXX_Unmarshal ¶
func (m *TicketInfos) XXX_Unmarshal(b []byte) error
type TicketList ¶
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 (*TicketList) Descriptor ¶
func (*TicketList) Descriptor() ([]byte, []int)
func (*TicketList) GetAddr ¶
func (m *TicketList) GetAddr() string
func (*TicketList) GetStatus ¶
func (m *TicketList) GetStatus() int32
func (*TicketList) ProtoMessage ¶
func (*TicketList) ProtoMessage()
func (*TicketList) Reset ¶
func (m *TicketList) Reset()
func (*TicketList) String ¶
func (m *TicketList) String() string
func (*TicketList) XXX_DiscardUnknown ¶
func (m *TicketList) XXX_DiscardUnknown()
func (*TicketList) XXX_Marshal ¶
func (m *TicketList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*TicketList) XXX_Merge ¶
func (m *TicketList) XXX_Merge(src proto.Message)
func (*TicketList) XXX_Size ¶
func (m *TicketList) XXX_Size() int
func (*TicketList) XXX_Unmarshal ¶
func (m *TicketList) XXX_Unmarshal(b []byte) error
type TicketMiner ¶
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 (*TicketMiner) Descriptor ¶
func (*TicketMiner) Descriptor() ([]byte, []int)
func (*TicketMiner) GetBits ¶
func (m *TicketMiner) GetBits() uint32
func (*TicketMiner) GetModify ¶
func (m *TicketMiner) GetModify() []byte
func (*TicketMiner) GetPrivHash ¶
func (m *TicketMiner) GetPrivHash() []byte
func (*TicketMiner) GetReward ¶
func (m *TicketMiner) GetReward() int64
func (*TicketMiner) GetTicketId ¶
func (m *TicketMiner) GetTicketId() string
func (*TicketMiner) GetVrfHash ¶
func (m *TicketMiner) GetVrfHash() []byte
func (*TicketMiner) GetVrfProof ¶
func (m *TicketMiner) GetVrfProof() []byte
func (*TicketMiner) ProtoMessage ¶
func (*TicketMiner) ProtoMessage()
func (*TicketMiner) Reset ¶
func (m *TicketMiner) Reset()
func (*TicketMiner) String ¶
func (m *TicketMiner) String() string
func (*TicketMiner) XXX_DiscardUnknown ¶
func (m *TicketMiner) XXX_DiscardUnknown()
func (*TicketMiner) XXX_Marshal ¶
func (m *TicketMiner) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*TicketMiner) XXX_Merge ¶
func (m *TicketMiner) XXX_Merge(src proto.Message)
func (*TicketMiner) XXX_Size ¶
func (m *TicketMiner) XXX_Size() int
func (*TicketMiner) XXX_Unmarshal ¶
func (m *TicketMiner) XXX_Unmarshal(b []byte) error
type TicketMinerOld ¶
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 (*TicketMinerOld) Descriptor ¶
func (*TicketMinerOld) Descriptor() ([]byte, []int)
func (*TicketMinerOld) GetBits ¶
func (m *TicketMinerOld) GetBits() uint32
func (*TicketMinerOld) GetModify ¶
func (m *TicketMinerOld) GetModify() []byte
func (*TicketMinerOld) GetReward ¶
func (m *TicketMinerOld) GetReward() int64
func (*TicketMinerOld) GetTicketId ¶
func (m *TicketMinerOld) GetTicketId() string
func (*TicketMinerOld) ProtoMessage ¶
func (*TicketMinerOld) ProtoMessage()
func (*TicketMinerOld) Reset ¶
func (m *TicketMinerOld) Reset()
func (*TicketMinerOld) String ¶
func (m *TicketMinerOld) String() string
func (*TicketMinerOld) XXX_DiscardUnknown ¶
func (m *TicketMinerOld) XXX_DiscardUnknown()
func (*TicketMinerOld) XXX_Marshal ¶
func (m *TicketMinerOld) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*TicketMinerOld) XXX_Merge ¶
func (m *TicketMinerOld) XXX_Merge(src proto.Message)
func (*TicketMinerOld) XXX_Size ¶
func (m *TicketMinerOld) XXX_Size() int
func (*TicketMinerOld) XXX_Unmarshal ¶
func (m *TicketMinerOld) XXX_Unmarshal(b []byte) error
type TicketOpen ¶
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 (*TicketOpen) Descriptor ¶
func (*TicketOpen) Descriptor() ([]byte, []int)
func (*TicketOpen) GetCount ¶
func (m *TicketOpen) GetCount() int32
func (*TicketOpen) GetMinerAddress ¶
func (m *TicketOpen) GetMinerAddress() string
func (*TicketOpen) GetPubHashes ¶
func (m *TicketOpen) GetPubHashes() [][]byte
func (*TicketOpen) GetRandSeed ¶
func (m *TicketOpen) GetRandSeed() int64
func (*TicketOpen) GetReturnAddress ¶
func (m *TicketOpen) GetReturnAddress() string
func (*TicketOpen) ProtoMessage ¶
func (*TicketOpen) ProtoMessage()
func (*TicketOpen) Reset ¶
func (m *TicketOpen) Reset()
func (*TicketOpen) String ¶
func (m *TicketOpen) String() string
func (*TicketOpen) XXX_DiscardUnknown ¶
func (m *TicketOpen) XXX_DiscardUnknown()
func (*TicketOpen) XXX_Marshal ¶
func (m *TicketOpen) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*TicketOpen) XXX_Merge ¶
func (m *TicketOpen) XXX_Merge(src proto.Message)
func (*TicketOpen) XXX_Size ¶
func (m *TicketOpen) XXX_Size() int
func (*TicketOpen) XXX_Unmarshal ¶
func (m *TicketOpen) XXX_Unmarshal(b []byte) error
type TicketServer ¶
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) }
TicketServer is the server API for Ticket service.
type TicketType ¶
type TicketType struct {
types.ExecTypeBase
}
TicketType ticket exec type
func (TicketType) Amount ¶
func (ticket TicketType) Amount(tx *types.Transaction) (int64, error)
Amount get amount
func (*TicketType) GetLogMap ¶
func (ticket *TicketType) GetLogMap() map[int64]*types.LogInfo
GetLogMap get log map
func (*TicketType) GetPayload ¶
func (ticket *TicketType) GetPayload() types.Message
GetPayload get payload
func (*TicketType) GetTypeMap ¶
func (ticket *TicketType) GetTypeMap() map[string]int32
GetTypeMap get type map
Click to show internal directories.
Click to hide internal directories.