reth icon indicating copy to clipboard operation
reth copied to clipboard

Extract db-api::models to a standalone crate

Open mattsse opened this issue 1 year ago • 0 comments

Describe the feature

we're using some types declared in db-api::models

https://github.com/paradigmxyz/reth/blob/6c76845ce06f9a2c7d9539cef523a38059ad7260/crates/storage/db-api/src/models/mod.rs#L14-L24

in other parts of the codebase such as storage-api

it'd be nice if this were possible without depending on db-api, e.g:

https://github.com/paradigmxyz/reth/blob/6c76845ce06f9a2c7d9539cef523a38059ad7260/crates/storage/storage-api/Cargo.toml#L18-L18

https://github.com/paradigmxyz/reth/blob/6c76845ce06f9a2c7d9539cef523a38059ad7260/crates/storage/storage-api/src/account.rs#L2-L2

TODO

  • extract models to db-types or db-models and update deps, db-api would then depend on -types

Additional context

No response

mattsse avatar Aug 05 '24 10:08 mattsse