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