Documentation ¶
Index ¶
- Constants
- Variables
- type Ticket
- func (*Ticket) Descriptor() ([]byte, []int)deprecated
- func (x *Ticket) GetCreateTime() int64
- func (x *Ticket) GetIsGenesis() bool
- func (x *Ticket) GetMinerAddress() string
- func (x *Ticket) GetMinerTime() int64
- func (x *Ticket) GetMinerValue() int64
- func (x *Ticket) GetPrice() int64
- func (x *Ticket) GetReturnAddress() string
- func (x *Ticket) GetStatus() int32
- func (x *Ticket) GetTicketId() string
- func (*Ticket) ProtoMessage()
- func (x *Ticket) ProtoReflect() protoreflect.Message
- func (x *Ticket) Reset()
- func (x *Ticket) String() string
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 File_ticket_chain_proto protoreflect.FileDescriptor
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"` // contains filtered or unexported fields }
func (*Ticket) Descriptor
deprecated
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) ProtoReflect ¶
func (x *Ticket) ProtoReflect() protoreflect.Message
Click to show internal directories.
Click to hide internal directories.