ticket

package
v0.0.0-...-3c905e5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 24, 2023 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

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) Descriptor() ([]byte, []int)

Deprecated: Use Ticket.ProtoReflect.Descriptor instead.

func (*Ticket) GetCreateTime

func (x *Ticket) GetCreateTime() int64

func (*Ticket) GetIsGenesis

func (x *Ticket) GetIsGenesis() bool

func (*Ticket) GetMinerAddress

func (x *Ticket) GetMinerAddress() string

func (*Ticket) GetMinerTime

func (x *Ticket) GetMinerTime() int64

func (*Ticket) GetMinerValue

func (x *Ticket) GetMinerValue() int64

func (*Ticket) GetPrice

func (x *Ticket) GetPrice() int64

func (*Ticket) GetReturnAddress

func (x *Ticket) GetReturnAddress() string

func (*Ticket) GetStatus

func (x *Ticket) GetStatus() int32

func (*Ticket) GetTicketId

func (x *Ticket) GetTicketId() string

func (*Ticket) ProtoMessage

func (*Ticket) ProtoMessage()

func (*Ticket) ProtoReflect

func (x *Ticket) ProtoReflect() protoreflect.Message

func (*Ticket) Reset

func (x *Ticket) Reset()

func (*Ticket) String

func (x *Ticket) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL