executor

package
v1.69.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 31, 2024 License: BSD-3-Clause Imports: 9 Imported by: 4

Documentation

Overview

Package executor coins执行器

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetName

func GetName() string

GetName return name string

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

func (c *Coins) CheckReceiptExecOk() bool

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

func (c *Coins) GetAddrReciver(addr *types.ReqAddr) (types.Message, error)

GetAddrReciver get address reciver by address

func (*Coins) GetDriverName

func (c *Coins) GetDriverName() string

GetDriverName get drive name

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

func (c *Coins) Query_GetAddrReciver(in *types.ReqAddr) (types.Message, error)

Query_GetAddrReciver query of get address reciver

func (*Coins) Query_GetAddrTxsCount

func (c *Coins) Query_GetAddrTxsCount(in *types.ReqKey) (types.Message, error)

Query_GetAddrTxsCount query count of txs in the address

func (*Coins) Query_GetPrefixCount

func (c *Coins) Query_GetPrefixCount(in *types.ReqKey) (types.Message, error)

Query_GetPrefixCount query key counts in the prefix

func (*Coins) Query_GetTxsByAddr

func (c *Coins) Query_GetTxsByAddr(in *types.ReqAddr) (types.Message, error)

Query_GetTxsByAddr query get txs by address

func (*Coins) Query_GetTxsFeeByAddr added in v1.65.3

func (c *Coins) Query_GetTxsFeeByAddr(in *types.ReqAddr) (types.Message, error)

Query_GetTxsFeeByAddr query get txs fee by address

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL