erigon-pulse/core/vm/tevm_interpreter.go

25 lines
517 B
Go
Raw Normal View History

package vm
// todo: TBD actual TEVM interpreter
// TEVMInterpreter represents an TEVM interpreter
type TEVMInterpreter struct {
*EVMInterpreter
}
type VmType int8
const (
EVMType VmType = 0
TEVMType VmType = 1
)
// NewTEVMInterpreter returns a new instance of the Interpreter.
func NewTEVMInterpreter(evm *EVM, cfg Config) *TEVMInterpreter {
return &TEVMInterpreter{NewEVMInterpreter(evm, cfg)}
}
func NewTEVMInterpreterByVM(vm *VM) *TEVMInterpreter {
return &TEVMInterpreter{NewEVMInterpreterByVM(vm)}
}