From 7533846e5572781a20988aca2b46c2f0037e3338 Mon Sep 17 00:00:00 2001 From: Jamie Ford Date: Tue, 12 Nov 2024 15:52:36 +1100 Subject: [PATCH] chore: remove unneeded validate params functions in base rpc api --- .../client/base_rpc_api.rs | 33 ------------------- 1 file changed, 33 deletions(-) diff --git a/engine/src/state_chain_observer/client/base_rpc_api.rs b/engine/src/state_chain_observer/client/base_rpc_api.rs index 7eade20f092..d83bbc241cc 100644 --- a/engine/src/state_chain_observer/client/base_rpc_api.rs +++ b/engine/src/state_chain_observer/client/base_rpc_api.rs @@ -1,5 +1,4 @@ use async_trait::async_trait; -use cf_primitives::BlockNumber; use jsonrpsee::core::client::{ClientT, Subscription, SubscriptionClientT}; use sc_transaction_pool_api::TransactionStatus; use sp_core::{ @@ -168,19 +167,6 @@ pub trait BaseRpcApi { params: Option>, unsub: &str, ) -> RpcResult>>; - - async fn validate_refund_params( - &self, - retry_duration: BlockNumber, - block_hash: Option, - ) -> RpcResult<()>; - - async fn validate_dca_params( - &self, - number_of_chunks: u32, - chunk_interval: u32, - block_hash: Option, - ) -> RpcResult<()>; } pub struct BaseRpcClient { @@ -318,25 +304,6 @@ impl BaseRpcApi for BaseRpcClient RpcResult>> { self.raw_rpc_client.subscribe(sub, Params(params), unsub).await } - - async fn validate_refund_params( - &self, - retry_duration: BlockNumber, - block_hash: Option, - ) -> RpcResult<()> { - self.raw_rpc_client.cf_validate_refund_params(retry_duration, block_hash).await - } - - async fn validate_dca_params( - &self, - number_of_chunks: u32, - chunk_interval: u32, - block_hash: Option, - ) -> RpcResult<()> { - self.raw_rpc_client - .cf_validate_dca_params(number_of_chunks, chunk_interval, block_hash) - .await - } } struct Params(Option>);