From 2235060b2aa9b16f167fba90f70dd9c7e56b5c62 Mon Sep 17 00:00:00 2001 From: trantorian <114066155+Trantorian1@users.noreply.github.com> Date: Wed, 15 Jan 2025 15:04:18 +0100 Subject: [PATCH] refactor(rpc): removed redundant v0.8.0 folder --- .../client/rpc/src/versions/v0_8_0/api.rs | 24 ------------------- .../rpc/src/versions/v0_8_0/methods/mod.rs | 2 -- .../src/versions/v0_8_0/methods/read/mod.rs | 1 - 3 files changed, 27 deletions(-) delete mode 100644 crates/madara/client/rpc/src/versions/v0_8_0/api.rs delete mode 100644 crates/madara/client/rpc/src/versions/v0_8_0/methods/mod.rs delete mode 100644 crates/madara/client/rpc/src/versions/v0_8_0/methods/read/mod.rs diff --git a/crates/madara/client/rpc/src/versions/v0_8_0/api.rs b/crates/madara/client/rpc/src/versions/v0_8_0/api.rs deleted file mode 100644 index 41522afba..000000000 --- a/crates/madara/client/rpc/src/versions/v0_8_0/api.rs +++ /dev/null @@ -1,24 +0,0 @@ -use super::methods::read::get_storage_proof; -use jsonrpsee::core::{async_trait, RpcResult}; -use m_proc_macros::versioned_rpc; -use serde::{Deserialize, Serialize}; -use serde_with::serde_as; -use starknet_core::serde::unsigned_field_element::UfeHex; -use starknet_core::types::BlockId; -use starknet_types_core::felt::Felt; - -pub(crate) type NewHead = starknet_types_rpc::BlockHeader; - - -#[async_trait] -impl StarknetReadRpcApiV0_8_0Server for crate::Starknet { - fn get_storage_proof( - &self, - block_id: BlockId, - class_hashes: Option>, - contract_addresses: Option>, - contracts_storage_keys: Option>, - ) -> RpcResult { - get_storage_proof::get_storage_proof(self, block_id, class_hashes, contract_addresses, contracts_storage_keys) - } -} diff --git a/crates/madara/client/rpc/src/versions/v0_8_0/methods/mod.rs b/crates/madara/client/rpc/src/versions/v0_8_0/methods/mod.rs deleted file mode 100644 index 346781a8f..000000000 --- a/crates/madara/client/rpc/src/versions/v0_8_0/methods/mod.rs +++ /dev/null @@ -1,2 +0,0 @@ -pub mod read; -pub mod ws; diff --git a/crates/madara/client/rpc/src/versions/v0_8_0/methods/read/mod.rs b/crates/madara/client/rpc/src/versions/v0_8_0/methods/read/mod.rs deleted file mode 100644 index 972e29cb1..000000000 --- a/crates/madara/client/rpc/src/versions/v0_8_0/methods/read/mod.rs +++ /dev/null @@ -1 +0,0 @@ -pub mod get_storage_proof;