From 04923f19726e73c56ace276b84012197baac7092 Mon Sep 17 00:00:00 2001 From: philip-morlier Date: Tue, 15 Feb 2022 16:54:39 -0800 Subject: [PATCH] Initial commit of changes made to interface in service of pretracer type. --- core/interface.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/interface.go b/core/interface.go index a125e75..beff886 100644 --- a/core/interface.go +++ b/core/interface.go @@ -80,6 +80,10 @@ type TracerResult interface { Result() (interface{}, error) } +type PreTracer interface { + CapturePreStart(from Address, to *Address, input []byte, gas uint64, value *big.Int) +} + type StateDB interface { GetBalance(Address) *big.Int