Documentation ¶
Overview ¶
Package executor coins执行器
Index ¶
- func GetName() string
- func Init(name string, cfg *types.Chain33Config, sub []byte)
- func InitExecType()
- 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(tx *types.Transaction, receipt *types.ReceiptData, index int) (dbSet *types.LocalDBSet, err 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)
- func (c *Coins) Query_GetTxsFeeByAddr(in *types.ReqAddr) (types.Message, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Init ¶
func Init(name string, cfg *types.Chain33Config, sub []byte)
Init defines a register function
func InitExecType ¶
func InitExecType()
InitExecType the initialization process is relatively heavyweight, lots of reflect, so it's global
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 ¶ added in v1.65.3
func (c *Coins) ExecLocal(tx *types.Transaction, receipt *types.ReceiptData, index int) (dbSet *types.LocalDBSet, err error)
ExecLocal exec local
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
func (*Coins) Query_GetTxsByAddr ¶
Query_GetTxsByAddr query get txs by address