Documentation ¶
Index ¶
- Constants
- Variables
- 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 (dst *Ticket) XXX_Merge(src proto.Message)
- func (m *Ticket) XXX_Size() int
- func (m *Ticket) XXX_Unmarshal(b []byte) error
Constants ¶
View Source
const ( // StatusNewTicket new ticket status StatusNewTicket = 1 // StatusMinerTicket Miner ticket status StatusMinerTicket = 2 // StatusCloseTicket Close ticket status StatusCloseTicket = 3 )
Variables ¶
View Source
var ( // TicketPrefix ticket prefix TicketPrefix = []byte("mavl-ticket-") )
Functions ¶
This section is empty.
Types ¶
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 ¶
Click to show internal directories.
Click to hide internal directories.