Documentation ¶
Index ¶
- func GeHashReciverKV(hashlockID []byte, information *pty.Hashlockquery) *types.KeyValue
- func GetHashReciver(db dbm.KVDB, hashlockID []byte) (*pty.Hashlockquery, error)
- func GetName() string
- func Init(name string, sub []byte)
- func Key(id []byte) (key []byte)
- func NewHashlockquery() *pty.Hashlockquery
- func SetHashReciver(db dbm.KVDB, hashlockID []byte, information *pty.Hashlockquery) error
- func UpdateHashReciver(cachedb dbm.KVDB, hashlockID []byte, information pty.Hashlockquery) (*types.KeyValue, error)
- type Action
- type DB
- type Hashlock
- func (h *Hashlock) CheckReceiptExecOk() bool
- func (h *Hashlock) CheckTx(tx *types.Transaction, index int) error
- func (h *Hashlock) ExecDelLocal_Hlock(hlock *pty.HashlockLock, tx *types.Transaction, receipt *types.ReceiptData, ...) (*types.LocalDBSet, error)
- func (h *Hashlock) ExecDelLocal_Hsend(hsend *pty.HashlockSend, tx *types.Transaction, receipt *types.ReceiptData, ...) (*types.LocalDBSet, error)
- func (h *Hashlock) ExecDelLocal_Hunlock(hunlock *pty.HashlockUnlock, tx *types.Transaction, receipt *types.ReceiptData, ...) (*types.LocalDBSet, error)
- func (h *Hashlock) ExecLocal_Hlock(hlock *pty.HashlockLock, tx *types.Transaction, receipt *types.ReceiptData, ...) (*types.LocalDBSet, error)
- func (h *Hashlock) ExecLocal_Hsend(hsend *pty.HashlockSend, tx *types.Transaction, receipt *types.ReceiptData, ...) (*types.LocalDBSet, error)
- func (h *Hashlock) ExecLocal_Hunlock(hunlock *pty.HashlockUnlock, tx *types.Transaction, receipt *types.ReceiptData, ...) (*types.LocalDBSet, error)
- func (h *Hashlock) Exec_Hlock(hlock *pty.HashlockLock, tx *types.Transaction, index int) (*types.Receipt, error)
- func (h *Hashlock) Exec_Hsend(transfer *pty.HashlockSend, tx *types.Transaction, index int) (*types.Receipt, error)
- func (h *Hashlock) Exec_Hunlock(transfer *pty.HashlockUnlock, tx *types.Transaction, index int) (*types.Receipt, error)
- func (h *Hashlock) GetDriverName() string
- func (n *Hashlock) GetTxsByHashlockID(hashlockID []byte, differTime int64) (types.Message, error)
- func (h *Hashlock) Query_GetHashlocKById(in []byte) (types.Message, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GeHashReciverKV ¶
func GeHashReciverKV(hashlockID []byte, information *pty.Hashlockquery) *types.KeyValue
GeHashReciverKV gen KV
func GetHashReciver ¶
GetHashReciver get hashlock
func NewHashlockquery ¶
func NewHashlockquery() *pty.Hashlockquery
NewHashlockquery gen query instance
func SetHashReciver ¶
SetHashReciver save hashlock
func UpdateHashReciver ¶
func UpdateHashReciver(cachedb dbm.KVDB, hashlockID []byte, information pty.Hashlockquery) (*types.KeyValue, error)
UpdateHashReciver update status for hashlock
Types ¶
type Action ¶
type Action struct {
// contains filtered or unexported fields
}
Action def
func NewAction ¶
func NewAction(h *Hashlock, tx *types.Transaction, execaddr string) *Action
NewAction gen action instance
func (*Action) Hashlocklock ¶
Hashlocklock Action
func (*Action) Hashlocksend ¶
Hashlocksend Action
func (*Action) Hashlockunlock ¶
Hashlockunlock Action
type DB ¶
DB struct
type Hashlock ¶
type Hashlock struct {
drivers.DriverBase
}
Hashlock driver
func (*Hashlock) CheckReceiptExecOk ¶
CheckReceiptExecOk return true to check if receipt ty is ok
func (*Hashlock) CheckTx ¶
func (h *Hashlock) CheckTx(tx *types.Transaction, index int) error
CheckTx nil
func (*Hashlock) ExecDelLocal_Hlock ¶
func (h *Hashlock) ExecDelLocal_Hlock(hlock *pty.HashlockLock, tx *types.Transaction, receipt *types.ReceiptData, index int) (*types.LocalDBSet, error)
ExecDelLocal_Hlock Action
func (*Hashlock) ExecDelLocal_Hsend ¶
func (h *Hashlock) ExecDelLocal_Hsend(hsend *pty.HashlockSend, tx *types.Transaction, receipt *types.ReceiptData, index int) (*types.LocalDBSet, error)
ExecDelLocal_Hsend Action
func (*Hashlock) ExecDelLocal_Hunlock ¶
func (h *Hashlock) ExecDelLocal_Hunlock(hunlock *pty.HashlockUnlock, tx *types.Transaction, receipt *types.ReceiptData, index int) (*types.LocalDBSet, error)
ExecDelLocal_Hunlock Action
func (*Hashlock) ExecLocal_Hlock ¶
func (h *Hashlock) ExecLocal_Hlock(hlock *pty.HashlockLock, tx *types.Transaction, receipt *types.ReceiptData, index int) (*types.LocalDBSet, error)
ExecLocal_Hlock Action
func (*Hashlock) ExecLocal_Hsend ¶
func (h *Hashlock) ExecLocal_Hsend(hsend *pty.HashlockSend, tx *types.Transaction, receipt *types.ReceiptData, index int) (*types.LocalDBSet, error)
ExecLocal_Hsend Action
func (*Hashlock) ExecLocal_Hunlock ¶
func (h *Hashlock) ExecLocal_Hunlock(hunlock *pty.HashlockUnlock, tx *types.Transaction, receipt *types.ReceiptData, index int) (*types.LocalDBSet, error)
ExecLocal_Hunlock Action
func (*Hashlock) Exec_Hlock ¶
func (h *Hashlock) Exec_Hlock(hlock *pty.HashlockLock, tx *types.Transaction, index int) (*types.Receipt, error)
Exec_Hlock Action
func (*Hashlock) Exec_Hsend ¶
func (h *Hashlock) Exec_Hsend(transfer *pty.HashlockSend, tx *types.Transaction, index int) (*types.Receipt, error)
Exec_Hsend Action
func (*Hashlock) Exec_Hunlock ¶
func (h *Hashlock) Exec_Hunlock(transfer *pty.HashlockUnlock, tx *types.Transaction, index int) (*types.Receipt, error)
Exec_Hunlock Action
func (*Hashlock) GetTxsByHashlockID ¶
GetTxsByHashlockID get hashlock record
Click to show internal directories.
Click to hide internal directories.