mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2024-12-26 05:27:19 +00:00
40 lines
1.3 KiB
Go
40 lines
1.3 KiB
Go
package commands
|
|
|
|
import (
|
|
"math/big"
|
|
"time"
|
|
|
|
"github.com/holiman/uint256"
|
|
"github.com/ledgerwatch/erigon/common"
|
|
"github.com/ledgerwatch/erigon/core/vm"
|
|
)
|
|
|
|
// Helper implementation of vm.Tracer; since the interface is big and most
|
|
// custom tracers implement just a few of the methods, this is a base struct
|
|
// to avoid lots of empty boilerplate code
|
|
type DefaultTracer struct {
|
|
}
|
|
|
|
func (t *DefaultTracer) CaptureStart(env *vm.EVM, depth int, from common.Address, to common.Address, precompile bool, create bool, calltype vm.CallType, input []byte, gas uint64, value *big.Int, code []byte) {
|
|
}
|
|
|
|
func (t *DefaultTracer) CaptureState(env *vm.EVM, pc uint64, op vm.OpCode, gas, cost uint64, scope *vm.ScopeContext, rData []byte, depth int, err error) {
|
|
}
|
|
|
|
func (t *DefaultTracer) CaptureFault(env *vm.EVM, pc uint64, op vm.OpCode, gas, cost uint64, scope *vm.ScopeContext, depth int, err error) {
|
|
}
|
|
|
|
func (t *DefaultTracer) CaptureEnd(depth int, output []byte, startGas, endGas uint64, d time.Duration, err error) {
|
|
}
|
|
|
|
func (t *DefaultTracer) CaptureSelfDestruct(from common.Address, to common.Address, value *uint256.Int) {
|
|
}
|
|
|
|
func (t *DefaultTracer) CaptureAccountRead(account common.Address) error {
|
|
return nil
|
|
}
|
|
|
|
func (t *DefaultTracer) CaptureAccountWrite(account common.Address) error {
|
|
return nil
|
|
}
|