2020-09-25 12:12:36 +00:00
|
|
|
package commands
|
|
|
|
|
|
|
|
import (
|
|
|
|
"context"
|
2020-09-26 06:41:34 +00:00
|
|
|
"fmt"
|
|
|
|
|
|
|
|
"github.com/ledgerwatch/turbo-geth/common"
|
|
|
|
"github.com/ledgerwatch/turbo-geth/core/types"
|
|
|
|
"github.com/ledgerwatch/turbo-geth/rpc"
|
2020-09-25 12:12:36 +00:00
|
|
|
)
|
|
|
|
|
2020-09-26 06:41:34 +00:00
|
|
|
// CallParam a parameter for a trace_callMany routine
|
|
|
|
type CallParam struct {
|
|
|
|
_ types.Transaction
|
|
|
|
_ []string
|
|
|
|
}
|
|
|
|
|
|
|
|
// CallParams array of callMany structs
|
|
|
|
type CallParams []CallParam
|
|
|
|
|
2020-10-24 17:03:52 +00:00
|
|
|
// Call implements trace_call.
|
2020-09-26 06:41:34 +00:00
|
|
|
func (api *TraceAPIImpl) Call(ctx context.Context, call CallParam, blockNr rpc.BlockNumber) ([]interface{}, error) {
|
2020-09-25 12:12:36 +00:00
|
|
|
var stub []interface{}
|
2020-09-26 21:01:11 +00:00
|
|
|
return stub, fmt.Errorf(NotImplemented, "trace_call")
|
2020-09-25 12:12:36 +00:00
|
|
|
}
|
|
|
|
|
2020-10-24 17:03:52 +00:00
|
|
|
// CallMany implements trace_callMany.
|
2020-09-26 06:41:34 +00:00
|
|
|
func (api *TraceAPIImpl) CallMany(ctx context.Context, calls CallParams) ([]interface{}, error) {
|
2020-09-25 12:12:36 +00:00
|
|
|
var stub []interface{}
|
2020-09-26 21:01:11 +00:00
|
|
|
return stub, fmt.Errorf(NotImplemented, "trace_callMany")
|
2020-09-25 12:12:36 +00:00
|
|
|
}
|
|
|
|
|
2020-10-24 17:03:52 +00:00
|
|
|
// RawTransaction implements trace_rawTransaction.
|
2020-09-26 06:41:34 +00:00
|
|
|
func (api *TraceAPIImpl) RawTransaction(ctx context.Context, txHash common.Hash, traceTypes []string) ([]interface{}, error) {
|
2020-09-25 12:12:36 +00:00
|
|
|
var stub []interface{}
|
2020-09-26 21:01:11 +00:00
|
|
|
return stub, fmt.Errorf(NotImplemented, "trace_rawTransaction")
|
2020-09-25 12:12:36 +00:00
|
|
|
}
|
|
|
|
|
2020-10-24 17:03:52 +00:00
|
|
|
// ReplayBlockTransactions implements trace_replayBlockTransactions.
|
2020-09-26 06:41:34 +00:00
|
|
|
func (api *TraceAPIImpl) ReplayBlockTransactions(ctx context.Context, blockNr rpc.BlockNumber, traceTypes []string) ([]interface{}, error) {
|
2020-09-25 12:12:36 +00:00
|
|
|
var stub []interface{}
|
2020-09-26 21:01:11 +00:00
|
|
|
return stub, fmt.Errorf(NotImplemented, "trace_replayBlockTransactions")
|
2020-09-25 12:12:36 +00:00
|
|
|
}
|
|
|
|
|
2020-10-24 17:03:52 +00:00
|
|
|
// ReplayTransaction implements trace_replayTransaction.
|
2020-09-26 06:41:34 +00:00
|
|
|
func (api *TraceAPIImpl) ReplayTransaction(ctx context.Context, txHash common.Hash, traceTypes []string) ([]interface{}, error) {
|
2020-09-25 12:12:36 +00:00
|
|
|
var stub []interface{}
|
2020-09-26 21:01:11 +00:00
|
|
|
return stub, fmt.Errorf(NotImplemented, "trace_replayTransaction")
|
2020-09-25 12:12:36 +00:00
|
|
|
}
|