Skip to content

Move ExtendedTxEnvelope and impls to reth-primitives-traits #16091

Closed
@mattsse

Description

@mattsse

Describe the feature

we have this in an example crate

/// A [`SignedTransaction`] implementation that combines two different transaction types.
///
/// This is intended to be used to extend existing presets, for example the ethereum or optstack
/// transaction types.
///
/// Note: The other transaction type variants must not overlap with the builtin one, transaction
/// types must be unique.
#[derive(Debug, Clone, serde::Serialize, serde::Deserialize, Hash, Eq, PartialEq)]
pub enum ExtendedTxEnvelope<BuiltIn, Other> {

we can promote this to the reth-primitives-trait crate entirely.

TODO

  • move type to reth-primitives-traits/extended.rs
  • adhere to all feature gates

Additional context

No response

Metadata

Metadata

Assignees

Labels

A-sdkRelated to reth's use as a libraryC-enhancementNew feature or request

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions