From a6ca4702089bf250648834172d33246c899dbf0a Mon Sep 17 00:00:00 2001 From: philip-morlier Date: Thu, 2 Sep 2021 16:19:55 -0700 Subject: [PATCH] updated memory interface --- core/interface.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/core/interface.go b/core/interface.go index 6ed305c..4c38dfc 100644 --- a/core/interface.go +++ b/core/interface.go @@ -66,7 +66,6 @@ type TracerResult interface { CaptureState(pc uint64, op OpCode, gas, cost uint64, scope ScopeContext, rData []byte, depth int, err error) CaptureFault(pc uint64, op OpCode, gas, cost uint64, scope ScopeContext, depth int, err error) CaptureEnd(output []byte, gasUsed uint64, t time.Duration, err error) - Result() interface{} } type ScopeContext interface { @@ -75,8 +74,10 @@ type ScopeContext interface { Contract() Contract } +//will need a wrapper for scopecontext - in geth sc has fields of m s c, not methods, wrapper will need to go in wrappers.go, if there are private objects wrappers need to be in same package + type Memory interface { - GetCopy() []byte + GetCopy(int64, int64) []byte Len() int } @@ -136,3 +137,5 @@ type Logger interface { type PluginLoader interface{ Lookup(name string, validate func(interface{}) bool) []interface{} } + +