pathfinder
pathfinder copied to clipboard
Implement a way to pass RPC version information to RPC handlers
Currently, the RPC handlers have the following signature:
async fn handler(context: RpcContext, input: impl serde::Deserialize) -> impl SerializeForVersion;
This doesn't allow the handlers to react differently based on the RPC version. Instead it should be more like:
async fn handler(context: RpcContext, version: RpcVersion, input: impl serde::Deserialize) -> impl SerializeForVersion;
This is needed before moving on to https://github.com/eqlabs/pathfinder/issues/2047.