From 25ccdcb744e88c38a19a5701b13d9811432836de Mon Sep 17 00:00:00 2001 From: Jonathan Oppenheimer Date: Thu, 9 Jul 2026 21:14:24 +0000 Subject: [PATCH 1/2] chore: export TraceTx --- eth/tracers/api.libevm.go | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 eth/tracers/api.libevm.go diff --git a/eth/tracers/api.libevm.go b/eth/tracers/api.libevm.go new file mode 100644 index 000000000000..c680f25559f8 --- /dev/null +++ b/eth/tracers/api.libevm.go @@ -0,0 +1,30 @@ +// Copyright 2026 the libevm authors. +// +// The libevm additions to go-ethereum are free software: you can redistribute +// them and/or modify them under the terms of the GNU Lesser General Public License +// as published by the Free Software Foundation, either version 3 of the License, +// or (at your option) any later version. +// +// The libevm additions are distributed in the hope that they will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser +// General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public License +// along with the go-ethereum library. If not, see +// . + +package tracers + +import ( + "context" + + "github.com/ava-labs/libevm/core" + "github.com/ava-labs/libevm/core/state" + "github.com/ava-labs/libevm/core/vm" +) + +// TraceTx exports [API.traceTx]. +func TraceTx(api *API, ctx context.Context, message *core.Message, txctx *Context, vmctx vm.BlockContext, statedb *state.StateDB, config *TraceConfig) (interface{}, error) { + return api.traceTx(ctx, message, txctx, vmctx, statedb, config) +} From b01f9ada7d62532df64d18004ed0d8bc0e990cbb Mon Sep 17 00:00:00 2001 From: Jonathan Oppenheimer Date: Tue, 14 Jul 2026 19:35:22 +0000 Subject: [PATCH 2/2] chore: change export --- eth/tracers/api.libevm.go | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/eth/tracers/api.libevm.go b/eth/tracers/api.libevm.go index c680f25559f8..8cacc2c23c58 100644 --- a/eth/tracers/api.libevm.go +++ b/eth/tracers/api.libevm.go @@ -16,15 +16,5 @@ package tracers -import ( - "context" - - "github.com/ava-labs/libevm/core" - "github.com/ava-labs/libevm/core/state" - "github.com/ava-labs/libevm/core/vm" -) - -// TraceTx exports [API.traceTx]. -func TraceTx(api *API, ctx context.Context, message *core.Message, txctx *Context, vmctx vm.BlockContext, statedb *state.StateDB, config *TraceConfig) (interface{}, error) { - return api.traceTx(ctx, message, txctx, vmctx, statedb, config) -} +// DefaultTraceTimeout exports [defaultTraceTimeout]. +const DefaultTraceTimeout = defaultTraceTimeout