From 823b5a81c9deaa1ffadd534f503eb8f79f007619 Mon Sep 17 00:00:00 2001 From: datluongductuan Date: Fri, 22 May 2026 15:04:01 +0700 Subject: [PATCH 1/2] feat: extend FlashbotMevShareTxHint with full mev-share tx fields Add From, Value, MaxFeePerGas, MaxPriorityFeePerGas, Nonce, ChainID, AccessList, Gas, Type to match the latest mev-share SSE payload (full hint / TEE-searcher mode). Existing fields unchanged; all new fields are optional pointers with omitempty. --- pkg/types/flashbot_mevshare.go | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/pkg/types/flashbot_mevshare.go b/pkg/types/flashbot_mevshare.go index 7623810..f04293b 100644 --- a/pkg/types/flashbot_mevshare.go +++ b/pkg/types/flashbot_mevshare.go @@ -3,6 +3,7 @@ package types import ( "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/common/hexutil" + gethtypes "github.com/ethereum/go-ethereum/core/types" ) type SimulatedPrivateMempoolLog struct { @@ -15,10 +16,19 @@ type SimulatedPrivateMempoolLog struct { } type FlashbotMevShareTxHint struct { - Hash *common.Hash `json:"hash,omitempty"` - To *common.Address `json:"to,omitempty"` - FunctionSelector *hexutil.Bytes `json:"functionSelector,omitempty"` - CallData *hexutil.Bytes `json:"callData,omitempty"` + Hash *common.Hash `json:"hash,omitempty"` + To *common.Address `json:"to,omitempty"` + FunctionSelector *hexutil.Bytes `json:"functionSelector,omitempty"` + CallData *hexutil.Bytes `json:"callData,omitempty"` + From *common.Address `json:"from,omitempty"` + Value *hexutil.Big `json:"value,omitempty"` + MaxFeePerGas *hexutil.Big `json:"maxFeePerGas,omitempty"` + MaxPriorityFeePerGas *hexutil.Big `json:"maxPriorityFeePerGas,omitempty"` + Nonce *hexutil.Uint64 `json:"nonce,omitempty"` + ChainID *hexutil.Big `json:"chainId,omitempty"` + AccessList *gethtypes.AccessList `json:"accessList,omitempty"` + Gas *hexutil.Uint64 `json:"gas,omitempty"` + Type *hexutil.Uint64 `json:"type,omitempty"` } type FlashbotMevshareEvent struct { From 02e1d100c1f3c9f67840025dd46991f2754884b2 Mon Sep 17 00:00:00 2001 From: datluongductuan Date: Fri, 22 May 2026 15:13:17 +0700 Subject: [PATCH 2/2] chore: gofmt FlashbotMevShareTxHint field alignment Realign struct field tags after adding *gethtypes.AccessList (longer type than the rest) so gci/gofmt CI passes. --- pkg/types/flashbot_mevshare.go | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/pkg/types/flashbot_mevshare.go b/pkg/types/flashbot_mevshare.go index f04293b..c46e671 100644 --- a/pkg/types/flashbot_mevshare.go +++ b/pkg/types/flashbot_mevshare.go @@ -16,19 +16,19 @@ type SimulatedPrivateMempoolLog struct { } type FlashbotMevShareTxHint struct { - Hash *common.Hash `json:"hash,omitempty"` - To *common.Address `json:"to,omitempty"` - FunctionSelector *hexutil.Bytes `json:"functionSelector,omitempty"` - CallData *hexutil.Bytes `json:"callData,omitempty"` - From *common.Address `json:"from,omitempty"` - Value *hexutil.Big `json:"value,omitempty"` - MaxFeePerGas *hexutil.Big `json:"maxFeePerGas,omitempty"` - MaxPriorityFeePerGas *hexutil.Big `json:"maxPriorityFeePerGas,omitempty"` - Nonce *hexutil.Uint64 `json:"nonce,omitempty"` - ChainID *hexutil.Big `json:"chainId,omitempty"` + Hash *common.Hash `json:"hash,omitempty"` + To *common.Address `json:"to,omitempty"` + FunctionSelector *hexutil.Bytes `json:"functionSelector,omitempty"` + CallData *hexutil.Bytes `json:"callData,omitempty"` + From *common.Address `json:"from,omitempty"` + Value *hexutil.Big `json:"value,omitempty"` + MaxFeePerGas *hexutil.Big `json:"maxFeePerGas,omitempty"` + MaxPriorityFeePerGas *hexutil.Big `json:"maxPriorityFeePerGas,omitempty"` + Nonce *hexutil.Uint64 `json:"nonce,omitempty"` + ChainID *hexutil.Big `json:"chainId,omitempty"` AccessList *gethtypes.AccessList `json:"accessList,omitempty"` - Gas *hexutil.Uint64 `json:"gas,omitempty"` - Type *hexutil.Uint64 `json:"type,omitempty"` + Gas *hexutil.Uint64 `json:"gas,omitempty"` + Type *hexutil.Uint64 `json:"type,omitempty"` } type FlashbotMevshareEvent struct {