Documentation ¶
Index ¶
- func BindKey(id string) (key []byte)
- func GetName() string
- func Infos(db dbm.KV, tinfos *ty.TicketInfos) (types.Message, error)
- func Init(name string, sub []byte)
- func Key(id string) (key []byte)
- func List(db dbm.Lister, db2 dbm.KV, tlist *ty.TicketList) (types.Message, error)
- type Action
- func (action *Action) GenesisInit(genesis *ty.TicketGenesis) (*types.Receipt, error)
- func (action *Action) TicketBind(tbind *ty.TicketBind) (*types.Receipt, error)
- func (action *Action) TicketClose(tclose *ty.TicketClose) (*types.Receipt, error)
- func (action *Action) TicketMiner(miner *ty.TicketMiner, index int) (*types.Receipt, error)
- func (action *Action) TicketOpen(topen *ty.TicketOpen) (*types.Receipt, error)
- type DB
- type Ticket
- func (t *Ticket) CheckReceiptExecOk() bool
- func (t *Ticket) CheckTx(tx *types.Transaction, index int) error
- func (t *Ticket) ExecDelLocal_Genesis(payload *ty.TicketGenesis, tx *types.Transaction, ...) (*types.LocalDBSet, error)
- func (t *Ticket) ExecDelLocal_Miner(payload *ty.TicketMiner, tx *types.Transaction, receiptData *types.ReceiptData, ...) (*types.LocalDBSet, error)
- func (t *Ticket) ExecDelLocal_Tbind(payload *ty.TicketBind, tx *types.Transaction, receiptData *types.ReceiptData, ...) (*types.LocalDBSet, error)
- func (t *Ticket) ExecDelLocal_Tclose(payload *ty.TicketClose, tx *types.Transaction, receiptData *types.ReceiptData, ...) (*types.LocalDBSet, error)
- func (t *Ticket) ExecDelLocal_Topen(payload *ty.TicketOpen, tx *types.Transaction, receiptData *types.ReceiptData, ...) (*types.LocalDBSet, error)
- func (t *Ticket) ExecLocal_Genesis(payload *ty.TicketGenesis, tx *types.Transaction, ...) (*types.LocalDBSet, error)
- func (t *Ticket) ExecLocal_Miner(payload *ty.TicketMiner, tx *types.Transaction, receiptData *types.ReceiptData, ...) (*types.LocalDBSet, error)
- func (t *Ticket) ExecLocal_Tbind(payload *ty.TicketBind, tx *types.Transaction, receiptData *types.ReceiptData, ...) (*types.LocalDBSet, error)
- func (t *Ticket) ExecLocal_Tclose(payload *ty.TicketClose, tx *types.Transaction, receiptData *types.ReceiptData, ...) (*types.LocalDBSet, error)
- func (t *Ticket) ExecLocal_Topen(payload *ty.TicketOpen, tx *types.Transaction, receiptData *types.ReceiptData, ...) (*types.LocalDBSet, error)
- func (t *Ticket) Exec_Genesis(payload *ty.TicketGenesis, tx *types.Transaction, index int) (*types.Receipt, error)
- func (t *Ticket) Exec_Miner(payload *ty.TicketMiner, tx *types.Transaction, index int) (*types.Receipt, error)
- func (t *Ticket) Exec_Tbind(payload *ty.TicketBind, tx *types.Transaction, index int) (*types.Receipt, error)
- func (t *Ticket) Exec_Tclose(payload *ty.TicketClose, tx *types.Transaction, index int) (*types.Receipt, error)
- func (t *Ticket) Exec_Topen(payload *ty.TicketOpen, tx *types.Transaction, index int) (*types.Receipt, error)
- func (t *Ticket) GetDriverName() string
- func (ticket *Ticket) GetRandNum(blockHash []byte, blockNum int64) (types.Message, error)
- func (t *Ticket) IsFriend(myexec, writekey []byte, tx *types.Transaction) bool
- func (ticket *Ticket) Query_MinerAddress(param *types.ReqString) (types.Message, error)
- func (ticket *Ticket) Query_MinerSourceList(param *types.ReqString) (types.Message, error)
- func (ticket *Ticket) Query_RandNumHash(param *types.ReqRandHash) (types.Message, error)
- func (ticket *Ticket) Query_TicketInfos(param *pty.TicketInfos) (types.Message, error)
- func (ticket *Ticket) Query_TicketList(param *pty.TicketList) (types.Message, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Action ¶
type Action struct {
// contains filtered or unexported fields
}
Action action type
func (*Action) GenesisInit ¶
GenesisInit init genesis
func (*Action) TicketBind ¶
TicketBind 授权某个地址进行挖矿
func (*Action) TicketClose ¶
TicketClose close tick
func (*Action) TicketMiner ¶
TicketMiner ticket miner
func (*Action) TicketOpen ¶
TicketOpen ticket open
type Ticket ¶
type Ticket struct {
drivers.DriverBase
}
Ticket driver type
func (*Ticket) CheckReceiptExecOk ¶
CheckReceiptExecOk return true to check if receipt ty is ok
func (*Ticket) CheckTx ¶
func (t *Ticket) CheckTx(tx *types.Transaction, index int) error
CheckTx check tx
func (*Ticket) ExecDelLocal_Genesis ¶
func (t *Ticket) ExecDelLocal_Genesis(payload *ty.TicketGenesis, tx *types.Transaction, receiptData *types.ReceiptData, index int) (*types.LocalDBSet, error)
ExecDelLocal_Genesis exec del local genesis
func (*Ticket) ExecDelLocal_Miner ¶
func (t *Ticket) ExecDelLocal_Miner(payload *ty.TicketMiner, tx *types.Transaction, receiptData *types.ReceiptData, index int) (*types.LocalDBSet, error)
ExecDelLocal_Miner exec del local miner
func (*Ticket) ExecDelLocal_Tbind ¶
func (t *Ticket) ExecDelLocal_Tbind(payload *ty.TicketBind, tx *types.Transaction, receiptData *types.ReceiptData, index int) (*types.LocalDBSet, error)
ExecDelLocal_Tbind exec del local bind
func (*Ticket) ExecDelLocal_Tclose ¶
func (t *Ticket) ExecDelLocal_Tclose(payload *ty.TicketClose, tx *types.Transaction, receiptData *types.ReceiptData, index int) (*types.LocalDBSet, error)
ExecDelLocal_Tclose exec del local close
func (*Ticket) ExecDelLocal_Topen ¶
func (t *Ticket) ExecDelLocal_Topen(payload *ty.TicketOpen, tx *types.Transaction, receiptData *types.ReceiptData, index int) (*types.LocalDBSet, error)
ExecDelLocal_Topen exec del local open
func (*Ticket) ExecLocal_Genesis ¶
func (t *Ticket) ExecLocal_Genesis(payload *ty.TicketGenesis, tx *types.Transaction, receiptData *types.ReceiptData, index int) (*types.LocalDBSet, error)
ExecLocal_Genesis exec local genesis
func (*Ticket) ExecLocal_Miner ¶
func (t *Ticket) ExecLocal_Miner(payload *ty.TicketMiner, tx *types.Transaction, receiptData *types.ReceiptData, index int) (*types.LocalDBSet, error)
ExecLocal_Miner exec local miner
func (*Ticket) ExecLocal_Tbind ¶
func (t *Ticket) ExecLocal_Tbind(payload *ty.TicketBind, tx *types.Transaction, receiptData *types.ReceiptData, index int) (*types.LocalDBSet, error)
ExecLocal_Tbind exec local bind
func (*Ticket) ExecLocal_Tclose ¶
func (t *Ticket) ExecLocal_Tclose(payload *ty.TicketClose, tx *types.Transaction, receiptData *types.ReceiptData, index int) (*types.LocalDBSet, error)
ExecLocal_Tclose exec local close
func (*Ticket) ExecLocal_Topen ¶
func (t *Ticket) ExecLocal_Topen(payload *ty.TicketOpen, tx *types.Transaction, receiptData *types.ReceiptData, index int) (*types.LocalDBSet, error)
ExecLocal_Topen exec local open
func (*Ticket) Exec_Genesis ¶
func (t *Ticket) Exec_Genesis(payload *ty.TicketGenesis, tx *types.Transaction, index int) (*types.Receipt, error)
Exec_Genesis exec genesis
func (*Ticket) Exec_Miner ¶
func (t *Ticket) Exec_Miner(payload *ty.TicketMiner, tx *types.Transaction, index int) (*types.Receipt, error)
Exec_Miner exec miner
func (*Ticket) Exec_Tbind ¶
func (t *Ticket) Exec_Tbind(payload *ty.TicketBind, tx *types.Transaction, index int) (*types.Receipt, error)
Exec_Tbind exec bind
func (*Ticket) Exec_Tclose ¶
func (t *Ticket) Exec_Tclose(payload *ty.TicketClose, tx *types.Transaction, index int) (*types.Receipt, error)
Exec_Tclose exec close
func (*Ticket) Exec_Topen ¶
func (t *Ticket) Exec_Topen(payload *ty.TicketOpen, tx *types.Transaction, index int) (*types.Receipt, error)
Exec_Topen exec open
func (*Ticket) GetRandNum ¶
GetRandNum for ticket executor
func (*Ticket) IsFriend ¶
func (t *Ticket) IsFriend(myexec, writekey []byte, tx *types.Transaction) bool
IsFriend check is fri
func (*Ticket) Query_MinerAddress ¶
Query_MinerAddress query miner addr
func (*Ticket) Query_MinerSourceList ¶
Query_MinerSourceList query miner src list
func (*Ticket) Query_RandNumHash ¶
Query_RandNumHash query randnumhash
func (*Ticket) Query_TicketInfos ¶
Query_TicketInfos query tick info
func (*Ticket) Query_TicketList ¶
Query_TicketList query tick list