Skip to content

Commit

Permalink
chore: revert IGasBundleEst
Browse files Browse the repository at this point in the history
  • Loading branch information
datluongductuan committed Jun 18, 2024
1 parent 0634df7 commit 16952b1
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions pkg/mev/pkg.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import (
"github.com/ethereum/go-ethereum/common/hexutil"
"github.com/ethereum/go-ethereum/core/types"

Check failure on line 16 in pkg/mev/pkg.go

View workflow job for this annotation

GitHub Actions / Run golangci-lint

File is not `gofumpt`-ed (gofumpt)
"github.com/flashbots/mev-share-node/mevshare"

Check failure on line 17 in pkg/mev/pkg.go

View workflow job for this annotation

GitHub Actions / Run golangci-lint

File is not `gci`-ed with --skip-generated -s standard -s default (gci)
"github.com/ethereum/go-ethereum/ethclient/gethclient"

Check failure on line 18 in pkg/mev/pkg.go

View workflow job for this annotation

GitHub Actions / Run golangci-lint

File is not `gci`-ed with --skip-generated -s standard -s default (gci)
)

type BundleSenderType int
Expand Down Expand Up @@ -77,9 +78,18 @@ type IBundleSender interface {
) error
SimulateBundle(ctx context.Context, blockNumber uint64, txs ...*types.Transaction) (SendBundleResponse, error)
GetSenderType() BundleSenderType
GetBundleStats(
ctx context.Context, blockNumber uint64, bundleHash common.Hash,
) (GetBundleStatsResponse, error)
}

type IGasBundleEstimator interface {
// EstimateBundleGas is used to estimate the gas for a bundle of transactions
// Note that this method is expected only works with custom ethereum node which
// supports estimate bundles gas via CallMsgs,
// and using eth_estimateGasBundle method.
EstimateBundleGas(
ctx context.Context,
messages []ethereum.CallMsg,
overrides *map[common.Address]gethclient.OverrideAccount,
) ([]uint64, error)
}

var (
Expand Down

0 comments on commit 16952b1

Please sign in to comment.