executor

package
v1.68.4 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2023 License: BSD-3-Clause Imports: 14 Imported by: 0

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 Coinsx

type Coinsx struct {
	drivers.DriverBase
}

Coins defines coins

func (*Coinsx) CheckReceiptExecOk

func (c *Coinsx) CheckReceiptExecOk() bool

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

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

GetAddrReciver get address reciver by address

func (*Coinsx) GetDriverName

func (c *Coinsx) GetDriverName() string

GetDriverName get drive name

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

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

Query_GetAddrReciver query of get address reciver

func (*Coinsx) Query_GetAddrTxsCount

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

Query_GetAddrTxsCount query count of txs in the address

func (*Coinsx) Query_GetManagerStatus

func (c *Coinsx) Query_GetManagerStatus(in *types.ReqNil) (types.Message, error)

func (*Coinsx) Query_GetPrefixCount

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

Query_GetPrefixCount query key counts in the prefix

func (*Coinsx) Query_GetTxsByAddr

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

Query_GetTxsByAddr query get txs by address

Jump to

Keyboard shortcuts

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