Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: OpTransactionRequest #215

Merged
merged 3 commits into from
Nov 1, 2024
Merged

feat: OpTransactionRequest #215

merged 3 commits into from
Nov 1, 2024

Conversation

klkvr
Copy link
Member

@klkvr klkvr commented Nov 1, 2024

Motivation

Closes #27

To be able to replace UnsingedTx and TxEnvelope on Optimism network with op-consensus types, we need a op-specific tx builder.

Solution

Add OpTransactionBuilder which is a wrapper around TransactionBuilder. It intentionally does not have any direct methods allowing to set EIP-4844 fields, however they can still be set through AsMut or during deserialization.

When building typed transaction, eip-4844 transactions are getting converted to eip-1559

PR Checklist

  • Added Tests
  • Added Documentation
  • Breaking changes

@klkvr
Copy link
Member Author

klkvr commented Nov 1, 2024

Removing op-alloy-rpc-types crate from no-std checks, will re-add in #205 which will have alloy-rs/alloy#1602

@klkvr klkvr added this pull request to the merge queue Nov 1, 2024
Merged via the queue into main with commit b52866d Nov 1, 2024
19 checks passed
@klkvr klkvr deleted the klkvr/op-tx-request branch November 1, 2024 16:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feature] Impl TransactionBuilder::complete_type for Optimism
2 participants