Skip to content

Commit

Permalink
feat: add OpPooledTransaction (#341)
Browse files Browse the repository at this point in the history
## Motivation

We need a type that represents a pooled transaction, this cannot include
deposit transactions

## Solution

Implemented `OpPooledTransaction`, which is like `OpTxEnvelope` but
without the deposit variant.

## PR Checklist

- [ ] Added Tests
- [ ] Added Documentation
- [ ] Breaking changes

---------

Co-authored-by: Matthias Seitz <[email protected]>
  • Loading branch information
Rjected and mattsse authored Dec 14, 2024
1 parent 8e70622 commit f7c5270
Show file tree
Hide file tree
Showing 3 changed files with 528 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/consensus/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ pub use receipt::{OpDepositReceipt, OpDepositReceiptWithBloom, OpReceiptEnvelope
mod transaction;
pub use transaction::{
DepositSourceDomain, DepositSourceDomainIdentifier, DepositTransaction, L1InfoDepositSource,
OpTxEnvelope, OpTxType, OpTypedTransaction, TxDeposit, UpgradeDepositSource, UserDepositSource,
DEPOSIT_TX_TYPE_ID,
OpPooledTransaction, OpTxEnvelope, OpTxType, OpTypedTransaction, TxDeposit,
UpgradeDepositSource, UserDepositSource, DEPOSIT_TX_TYPE_ID,
};

pub mod eip1559;
Expand Down
3 changes: 3 additions & 0 deletions crates/consensus/src/transaction/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ pub use envelope::OpTxEnvelope;
mod typed;
pub use typed::OpTypedTransaction;

mod pooled;
pub use pooled::OpPooledTransaction;

mod source;
pub use source::{
DepositSourceDomain, DepositSourceDomainIdentifier, L1InfoDepositSource, UpgradeDepositSource,
Expand Down
Loading

0 comments on commit f7c5270

Please sign in to comment.