Documentation ¶
Overview ¶
Package executor coins执行器
Index ¶
- func GetName() string
- func Init(name string, sub []byte)
- type Coins
- func (c *Coins) CheckReceiptExecOk() bool
- func (c *Coins) CheckTx(tx *types.Transaction, index int) error
- func (c *Coins) ExecDelLocal_Transfer(transfer *types.AssetsTransfer, tx *types.Transaction, ...) (*types.LocalDBSet, error)
- func (c *Coins) ExecDelLocal_TransferToExec(transfer *types.AssetsTransferToExec, tx *types.Transaction, ...) (*types.LocalDBSet, error)
- func (c *Coins) ExecDelLocal_Withdraw(withdraw *types.AssetsWithdraw, tx *types.Transaction, ...) (*types.LocalDBSet, error)
- func (c *Coins) ExecLocal_Genesis(gen *types.AssetsGenesis, tx *types.Transaction, receipt *types.ReceiptData, ...) (*types.LocalDBSet, error)
- func (c *Coins) ExecLocal_Transfer(transfer *types.AssetsTransfer, tx *types.Transaction, ...) (*types.LocalDBSet, error)
- func (c *Coins) ExecLocal_TransferToExec(transfer *types.AssetsTransferToExec, tx *types.Transaction, ...) (*types.LocalDBSet, error)
- func (c *Coins) ExecLocal_Withdraw(withdraw *types.AssetsWithdraw, tx *types.Transaction, ...) (*types.LocalDBSet, error)
- func (c *Coins) Exec_Genesis(genesis *types.AssetsGenesis, tx *types.Transaction, index int) (*types.Receipt, error)
- func (c *Coins) Exec_Transfer(transfer *types.AssetsTransfer, tx *types.Transaction, index int) (*types.Receipt, error)
- func (c *Coins) Exec_TransferToExec(transfer *types.AssetsTransferToExec, tx *types.Transaction, index int) (*types.Receipt, error)
- func (c *Coins) Exec_Withdraw(withdraw *types.AssetsWithdraw, tx *types.Transaction, index int) (*types.Receipt, error)
- func (c *Coins) GetAddrReciver(addr *types.ReqAddr) (types.Message, error)
- func (c *Coins) GetDriverName() string
- func (c *Coins) IsFriend(myexec, writekey []byte, othertx *types.Transaction) bool
- func (c *Coins) Query_GetAddrReciver(in *types.ReqAddr) (types.Message, error)
- func (c *Coins) Query_GetAddrTxsCount(in *types.ReqKey) (types.Message, error)
- func (c *Coins) Query_GetPrefixCount(in *types.ReqKey) (types.Message, error)
- func (c *Coins) Query_GetTxsByAddr(in *types.ReqAddr) (types.Message, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Coins ¶
type Coins struct {
drivers.DriverBase
}
Coins defines coins
func (*Coins) CheckReceiptExecOk ¶
CheckReceiptExecOk return true to check if receipt ty is ok
func (*Coins) CheckTx ¶
func (c *Coins) CheckTx(tx *types.Transaction, index int) error
CheckTx check transaction amount 必须不能为负数
func (*Coins) ExecDelLocal_Transfer ¶
func (c *Coins) ExecDelLocal_Transfer(transfer *types.AssetsTransfer, tx *types.Transaction, receipt *types.ReceiptData, index int) (*types.LocalDBSet, error)
ExecDelLocal_Transfer delete transfer of local exec
func (*Coins) ExecDelLocal_TransferToExec ¶
func (c *Coins) ExecDelLocal_TransferToExec(transfer *types.AssetsTransferToExec, tx *types.Transaction, receipt *types.ReceiptData, index int) (*types.LocalDBSet, error)
ExecDelLocal_TransferToExec delete transfer of local exec to exec
func (*Coins) ExecDelLocal_Withdraw ¶
func (c *Coins) ExecDelLocal_Withdraw(withdraw *types.AssetsWithdraw, tx *types.Transaction, receipt *types.ReceiptData, index int) (*types.LocalDBSet, error)
ExecDelLocal_Withdraw delete withdraw of local exec
func (*Coins) ExecLocal_Genesis ¶
func (c *Coins) ExecLocal_Genesis(gen *types.AssetsGenesis, tx *types.Transaction, receipt *types.ReceiptData, index int) (*types.LocalDBSet, error)
ExecLocal_Genesis Genesis of local exec
func (*Coins) ExecLocal_Transfer ¶
func (c *Coins) ExecLocal_Transfer(transfer *types.AssetsTransfer, tx *types.Transaction, receipt *types.ReceiptData, index int) (*types.LocalDBSet, error)
ExecLocal_Transfer transfer of local exec
func (*Coins) ExecLocal_TransferToExec ¶
func (c *Coins) ExecLocal_TransferToExec(transfer *types.AssetsTransferToExec, tx *types.Transaction, receipt *types.ReceiptData, index int) (*types.LocalDBSet, error)
ExecLocal_TransferToExec transfer of local exec to exec
func (*Coins) ExecLocal_Withdraw ¶
func (c *Coins) ExecLocal_Withdraw(withdraw *types.AssetsWithdraw, tx *types.Transaction, receipt *types.ReceiptData, index int) (*types.LocalDBSet, error)
ExecLocal_Withdraw withdraw local exec
func (*Coins) Exec_Genesis ¶
func (c *Coins) Exec_Genesis(genesis *types.AssetsGenesis, tx *types.Transaction, index int) (*types.Receipt, error)
Exec_Genesis genesis of exec
func (*Coins) Exec_Transfer ¶
func (c *Coins) Exec_Transfer(transfer *types.AssetsTransfer, tx *types.Transaction, index int) (*types.Receipt, error)
Exec_Transfer transfer of exec
func (*Coins) Exec_TransferToExec ¶
func (c *Coins) Exec_TransferToExec(transfer *types.AssetsTransferToExec, tx *types.Transaction, index int) (*types.Receipt, error)
Exec_TransferToExec the transfer to exec address
func (*Coins) Exec_Withdraw ¶
func (c *Coins) Exec_Withdraw(withdraw *types.AssetsWithdraw, tx *types.Transaction, index int) (*types.Receipt, error)
Exec_Withdraw withdraw exec
func (*Coins) GetAddrReciver ¶
GetAddrReciver get address reciver by address
func (*Coins) IsFriend ¶
func (c *Coins) IsFriend(myexec, writekey []byte, othertx *types.Transaction) bool
IsFriend coins contract the mining transaction that runs the ticket contract
func (*Coins) Query_GetAddrReciver ¶
Query_GetAddrReciver query of get address reciver
func (*Coins) Query_GetAddrTxsCount ¶
Query_GetAddrTxsCount query count of txs in the address
func (*Coins) Query_GetPrefixCount ¶
Query_GetPrefixCount query key counts in the prefix