From 533902e37c1772bb246cf95c9419ab38b2462f7a Mon Sep 17 00:00:00 2001 From: Vitaly Drogan Date: Mon, 4 Nov 2024 11:53:23 +0100 Subject: [PATCH] rpctypes: mev share bundle cancellations --- rpctypes/types.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/rpctypes/types.go b/rpctypes/types.go index 1d9ed2a..37b0155 100644 --- a/rpctypes/types.go +++ b/rpctypes/types.go @@ -94,8 +94,11 @@ type RefundConfig struct { } type MevBundleMetadata struct { - // should be set only if we are receiving from Flashbots or other builders - Signer *common.Address `json:"signer,omitempty"` + // Signer should be set by infra that verifies user signatures and not user + Signer *common.Address `json:"signer,omitempty"` + ReplacementNonce *int `json:"replacementNonce,omitempty"` + // Used for cancelling. When true the only thing we care about is signer,replacement_nonce and RawShareBundle::replacement_uuid + Cancelled *bool `json:"cancelled,omitempty"` } type MevSendBundleArgs struct {