github.com/palisadeinc/bor@v0.0.0-20230615125219-ab7196213d15/consensus/bor/api/caller.go (about) 1 package api 2 3 import ( 4 "context" 5 6 "github.com/ethereum/go-ethereum/common/hexutil" 7 "github.com/ethereum/go-ethereum/core/state" 8 "github.com/ethereum/go-ethereum/internal/ethapi" 9 "github.com/ethereum/go-ethereum/rpc" 10 ) 11 12 //go:generate mockgen -destination=./caller_mock.go -package=api . Caller 13 type Caller interface { 14 Call(ctx context.Context, args ethapi.TransactionArgs, blockNrOrHash rpc.BlockNumberOrHash, overrides *ethapi.StateOverride) (hexutil.Bytes, error) 15 CallWithState(ctx context.Context, args ethapi.TransactionArgs, blockNrOrHash rpc.BlockNumberOrHash, state *state.StateDB, overrides *ethapi.StateOverride) (hexutil.Bytes, error) 16 }