Merge pull request #13 from openrelayxyz/feature/pretracer

Initial commit of changes made to interface in service of pretracer t…
This commit is contained in:
Philip Morlier 2022-02-24 15:43:02 -08:00 committed by GitHub
commit a0bb001dd1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -80,6 +80,10 @@ type TracerResult interface {
Result() (interface{}, error) Result() (interface{}, error)
} }
type PreTracer interface {
CapturePreStart(from Address, to *Address, input []byte, gas uint64, value *big.Int)
}
type StateDB interface { type StateDB interface {
GetBalance(Address) *big.Int GetBalance(Address) *big.Int