Skip to content

Commit

Permalink
Merge pull request #2567 from eqlabs/t00ts/rpc-wrap-up-v06
Browse files Browse the repository at this point in the history
Wrap up JSON RPC v06 re-introduction
  • Loading branch information
t00ts authored Feb 4, 2025
2 parents 24c1ef3 + 7b464ec commit 4bd4d91
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
8 changes: 3 additions & 5 deletions crates/rpc/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -965,17 +965,15 @@ mod tests {
#[case::v0_6_api(
"/rpc/v0_6",
"v06/starknet_api_openrpc.json",
&[
"starknet_estimateMessageFee",
],
&[],
Api::HttpOnly)]
// #[case::v0_6_api_websocket("/ws/rpc/v0_6", "v06/starknet_api_openrpc.json", &[], Api::WebsocketOnly)]
#[case::v0_6_api_websocket("/ws/rpc/v0_6", "v06/starknet_api_openrpc.json", &[], Api::WebsocketOnly)]
#[case::v0_6_trace(
"/rpc/v0_6",
"v06/starknet_trace_api_openrpc.json",
&[],
Api::HttpOnly)]
// #[case::v0_6_trace_websocket("/ws/rpc/v0_6", "v06/starknet_trace_api_openrpc.json", &[], Api::WebsocketOnly)]
#[case::v0_6_trace_websocket("/ws/rpc/v0_6", "v06/starknet_trace_api_openrpc.json", &[], Api::WebsocketOnly)]
#[case::v0_6_write("/rpc/v0_6", "v06/starknet_write_api.json", &[], Api::HttpOnly)]
#[case::v0_6_write_websocket("/ws/rpc/v0_6", "v06/starknet_write_api.json", &[], Api::WebsocketOnly)]
// get_transaction_status is now part of the official spec, so we are phasing it out.
Expand Down
1 change: 1 addition & 0 deletions crates/rpc/src/v06.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ pub fn register_routes() -> RpcRouterBuilder {
.register("starknet_getClassHashAt", crate::method::get_class_hash_at)
.register("starknet_getEvents", crate::method::get_events)
.register("starknet_estimateFee", crate::method::estimate_fee)
.register("starknet_estimateMessageFee", crate::method::estimate_message_fee)
.register("starknet_getNonce", crate::method::get_nonce)
.register("starknet_getStateUpdate", crate::method::get_state_update)
.register("starknet_getStorageAt", crate::method::get_storage_at)
Expand Down

0 comments on commit 4bd4d91

Please sign in to comment.