ticket

package
v0.0.0-...-3606b63 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2019 License: BSD-3-Clause Imports: 3 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 (
	// 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) Descriptor() ([]byte, []int)

func (*Ticket) GetCreateTime

func (m *Ticket) GetCreateTime() int64

func (*Ticket) GetIsGenesis

func (m *Ticket) GetIsGenesis() bool

func (*Ticket) GetMinerAddress

func (m *Ticket) GetMinerAddress() string

func (*Ticket) GetMinerTime

func (m *Ticket) GetMinerTime() int64

func (*Ticket) GetMinerValue

func (m *Ticket) GetMinerValue() int64

func (*Ticket) GetPrice

func (m *Ticket) GetPrice() int64

func (*Ticket) GetReturnAddress

func (m *Ticket) GetReturnAddress() string

func (*Ticket) GetStatus

func (m *Ticket) GetStatus() int32

func (*Ticket) GetTicketId

func (m *Ticket) GetTicketId() string

func (*Ticket) ProtoMessage

func (*Ticket) ProtoMessage()

func (*Ticket) Reset

func (m *Ticket) Reset()

func (*Ticket) String

func (m *Ticket) String() string

func (*Ticket) XXX_DiscardUnknown

func (m *Ticket) XXX_DiscardUnknown()

func (*Ticket) XXX_Marshal

func (m *Ticket) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Ticket) XXX_Merge

func (dst *Ticket) XXX_Merge(src proto.Message)

func (*Ticket) XXX_Size

func (m *Ticket) XXX_Size() int

func (*Ticket) XXX_Unmarshal

func (m *Ticket) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

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