ithacaxyz / op-rs

Apache License 2.0
58 stars 6 forks source link

feat(providers): Upstream Transaction Conversion Util #18

Open refcell opened 3 months ago

refcell commented 3 months ago

Description

https://github.com/paradigmxyz/op-rs/pull/15 introduces the InMemoryChainProvider in the kona-providers crate.

Since the Chain state provides blocks and its associated transactions to commit to the internal provider, the types are coerced into kona-derive's TxEnvelope type.

This ticket is to add a utility into reth's rpc-types-compat crate, following discussion here to handle these type conversions.

refcell commented 2 months ago

Updated the issue to make it clear that this should live in reth's rpc-types-compat crate and not elsewhere