Skip to content

Reorganize the RPC's into a single crate #242

@danyalprout

Description

@danyalprout

Description

Right now the RPC extensions and overrides are spread across multiple crates:

  • flashblocks-rpc: Modifications to existing RPC's in the eth namespace to make them aware of the Flashblocks state
  • metering: New RPC's in the base namespace that accept a bundle and return information around the cost to execute
  • transaction-status: New RPC's in the base namespace to retrieve the status around whether a transaction is in the mempool

We should combine all the RPC extensions/modifications into a single crate rpc and end up with:

crates/
    flashblocks/ # responsible for managing the state
    rpc/ # combines all the extensions into one place
      src/
        base/ # dir per namespace
          transaction_status_rpc.rs # server/file per group of RPCs
          metering_rpc.rs
          subscrib_rpc.rs
          traits.rs # all traits and types in top level files
          types.rs
        eth/
          traits.rs
          flashblocks.rs 
        lib.rs
      tests/
        
    runner/
      extentions/
        rpc.rs # wires up the servers/traits

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions