diff --git a/pkg/types/flashbot_mevshare.go b/pkg/types/flashbot_mevshare.go index a2564e2..7623810 100644 --- a/pkg/types/flashbot_mevshare.go +++ b/pkg/types/flashbot_mevshare.go @@ -5,7 +5,7 @@ import ( "github.com/ethereum/go-ethereum/common/hexutil" ) -type FlashbotMevshareLog struct { +type SimulatedPrivateMempoolLog struct { // address of the contract that generated the event Address common.Address `json:"address"` // list of topics provided by the contract. @@ -22,9 +22,9 @@ type FlashbotMevShareTxHint struct { } type FlashbotMevshareEvent struct { - Hash common.Hash `json:"hash"` - Logs []FlashbotMevshareLog `json:"logs"` - Txs []FlashbotMevShareTxHint `json:"txs"` - MevGasPrice *hexutil.Big `json:"mevGasPrice,omitempty"` - GasUsed *hexutil.Uint64 `json:"gasUsed,omitempty"` + Hash common.Hash `json:"hash"` + Logs []SimulatedPrivateMempoolLog `json:"logs"` + Txs []FlashbotMevShareTxHint `json:"txs"` + MevGasPrice *hexutil.Big `json:"mevGasPrice,omitempty"` + GasUsed *hexutil.Uint64 `json:"gasUsed,omitempty"` } diff --git a/pkg/types/pendingtx.go b/pkg/types/pendingtx.go index 18c4687..b0a09b9 100644 --- a/pkg/types/pendingtx.go +++ b/pkg/types/pendingtx.go @@ -21,23 +21,24 @@ const ( ) type Message struct { - PendingBlockNumber uint64 `json:"pending_block_number"` - TxHash string `json:"tx_hash"` - SimDebugInfo SimDebugInfo `json:"sim_debug_info"` - InternalTx *CallFrame `json:"internal_txs"` - Prestate *Prestate `json:"prestate_diff"` - BaseFee *big.Int `json:"base_fee"` - CurrentBlockTime uint64 `json:"current_block_time"` - GasFeeCap *big.Int `json:"gas_fee_cap"` - GasPrice *big.Int `json:"gas_price"` - GasTip *big.Int `json:"gas_tip"` - Gas uint64 `json:"gas"` - GasUsed uint64 `json:"gas_used"` - From string `json:"from"` - Nonce uint64 `json:"nonce"` - Source MempoolSource `json:"source"` - Type *big.Int `json:"type"` - FlashbotMevshareEvent *FlashbotMevshareEvent `json:"flashbot_mevshare_event,omitempty"` + PendingBlockNumber uint64 `json:"pending_block_number"` + TxHash string `json:"tx_hash"` + SimDebugInfo SimDebugInfo `json:"sim_debug_info"` + InternalTx *CallFrame `json:"internal_txs"` + Prestate *Prestate `json:"prestate_diff"` + BaseFee *big.Int `json:"base_fee"` + CurrentBlockTime uint64 `json:"current_block_time"` + GasFeeCap *big.Int `json:"gas_fee_cap"` + GasPrice *big.Int `json:"gas_price"` + GasTip *big.Int `json:"gas_tip"` + Gas uint64 `json:"gas"` + GasUsed uint64 `json:"gas_used"` + From string `json:"from"` + Nonce uint64 `json:"nonce"` + Source MempoolSource `json:"source"` + Type *big.Int `json:"type"` + FlashbotMevshareEvent *FlashbotMevshareEvent `json:"flashbot_mevshare_event,omitempty"` + Logs []SimulatedPrivateMempoolLog `json:"logs,omitempty"` } type Prestate struct {