Documentation ¶
Index ¶
- func NewTraceBlock(id []byte, rl module.ReceiptList) module.TraceBlock
- func ToJSON(v interface{}) string
- type BalanceTracer
- func (bt *BalanceTracer) OnBalanceChange(opType module.OpType, from, to module.Address, amount *big.Int) error
- func (bt *BalanceTracer) OnFrameEnter() error
- func (bt *BalanceTracer) OnFrameExit(success bool) error
- func (bt *BalanceTracer) OnTransactionEnd(txIndex int, txHash []byte) error
- func (bt *BalanceTracer) OnTransactionReset() error
- func (bt *BalanceTracer) OnTransactionStart(txIndex int, txHash []byte, isBlockTx bool) error
- func (bt *BalanceTracer) ToJSON(height int64) interface{}
- type Logger
- func (l *Logger) OnBalanceChange(opType module.OpType, from, to module.Address, amount *big.Int)
- func (l *Logger) OnFrameEnter(frameId int)
- func (l *Logger) OnFrameExit(success bool, stepUsed *big.Int)
- func (l *Logger) OnTransactionEnd(txIndex int, txHash []byte, from module.Address, treasury module.Address, ...)
- func (l *Logger) OnTransactionReset()
- func (l *Logger) OnTransactionStart(txIndex int, txHash []byte)
- func (l *Logger) TDebug(a ...interface{})
- func (l *Logger) TDebugf(f string, a ...interface{})
- func (l *Logger) TDebugln(a ...interface{})
- func (l *Logger) TLog(lv module.TraceLevel, a ...interface{})
- func (l *Logger) TLogf(lv module.TraceLevel, f string, a ...interface{})
- func (l *Logger) TLogln(lv module.TraceLevel, a ...interface{})
- func (l *Logger) TPrefix() string
- func (l *Logger) TSystem(a ...interface{})
- func (l *Logger) TSystemf(f string, a ...interface{})
- func (l *Logger) TSystemln(a ...interface{})
- func (l *Logger) TTrace(a ...interface{})
- func (l *Logger) TTracef(f string, a ...interface{})
- func (l *Logger) TTraceln(a ...interface{})
- func (l *Logger) TraceMode() module.TraceMode
- func (l *Logger) WithFields(f log.Fields) log.Logger
- func (l *Logger) WithTPrefix(prefix string) *Logger
- type TxHashReplacer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewTraceBlock ¶ added in v1.2.13
func NewTraceBlock(id []byte, rl module.ReceiptList) module.TraceBlock
Types ¶
type BalanceTracer ¶ added in v1.2.13
type BalanceTracer struct {
// contains filtered or unexported fields
}
func NewBalanceTracer ¶ added in v1.2.13
func NewBalanceTracer(capacity int, thr TxHashReplacer) *BalanceTracer
func (*BalanceTracer) OnBalanceChange ¶ added in v1.2.13
func (*BalanceTracer) OnFrameEnter ¶ added in v1.2.13
func (bt *BalanceTracer) OnFrameEnter() error
func (*BalanceTracer) OnFrameExit ¶ added in v1.2.13
func (bt *BalanceTracer) OnFrameExit(success bool) error
func (*BalanceTracer) OnTransactionEnd ¶ added in v1.2.13
func (bt *BalanceTracer) OnTransactionEnd(txIndex int, txHash []byte) error
func (*BalanceTracer) OnTransactionReset ¶ added in v1.2.13
func (bt *BalanceTracer) OnTransactionReset() error
func (*BalanceTracer) OnTransactionStart ¶ added in v1.2.13
func (bt *BalanceTracer) OnTransactionStart(txIndex int, txHash []byte, isBlockTx bool) error
func (*BalanceTracer) ToJSON ¶ added in v1.2.13
func (bt *BalanceTracer) ToJSON(height int64) interface{}
type Logger ¶
func (*Logger) OnBalanceChange ¶ added in v1.2.13
func (*Logger) OnFrameEnter ¶ added in v1.2.13
func (*Logger) OnFrameExit ¶ added in v1.2.13
func (*Logger) OnTransactionEnd ¶ added in v1.2.13
func (*Logger) OnTransactionReset ¶ added in v1.2.13
func (l *Logger) OnTransactionReset()
func (*Logger) OnTransactionStart ¶ added in v1.2.13
func (*Logger) TLog ¶
func (l *Logger) TLog(lv module.TraceLevel, a ...interface{})
func (*Logger) TLogln ¶
func (l *Logger) TLogln(lv module.TraceLevel, a ...interface{})
func (*Logger) WithTPrefix ¶ added in v1.2.4
type TxHashReplacer ¶ added in v1.2.13
Click to show internal directories.
Click to hide internal directories.