Skip to content

Commit

Permalink
chore: delete unneeded function (#4116)
Browse files Browse the repository at this point in the history
chore: delete unneeded functions
  • Loading branch information
AlastairHolmes committed Oct 13, 2023
1 parent f61e2f0 commit de9ead3
Showing 1 changed file with 1 addition and 21 deletions.
22 changes: 1 addition & 21 deletions engine/src/state_chain_observer/client/base_rpc_api.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
use async_trait::async_trait;

use cf_amm::{common::Tick, range_orders::Liquidity};
use cf_primitives::Asset;
use jsonrpsee::core::{
client::{ClientT, Subscription, SubscriptionClientT},
RpcResult,
Expand All @@ -11,7 +9,7 @@ use sp_core::{
storage::{StorageData, StorageKey},
Bytes,
};
use sp_runtime::{traits::BlakeTwo256, AccountId32};
use sp_runtime::traits::BlakeTwo256;
use sp_version::RuntimeVersion;
use state_chain_runtime::SignedBlock;

Expand Down Expand Up @@ -130,13 +128,6 @@ pub trait BaseRpcApi {

async fn runtime_version(&self) -> RpcResult<RuntimeVersion>;

async fn pool_minted_positions(
&self,
lp: AccountId32,
asset: Asset,
at: state_chain_runtime::Hash,
) -> RpcResult<Vec<(Tick, Tick, Liquidity)>>;

async fn dry_run(
&self,
extrinsic: Bytes,
Expand Down Expand Up @@ -240,17 +231,6 @@ impl<RawRpcClient: RawRpcApi + Send + Sync> BaseRpcApi for BaseRpcClient<RawRpcC
self.raw_rpc_client.runtime_version(None).await
}

async fn pool_minted_positions(
&self,
_lp: AccountId32,
_asset: Asset,
_at: state_chain_runtime::Hash,
) -> RpcResult<Vec<(Tick, Tick, Liquidity)>> {
// TODO: Add function that gets minted range and limit orders #3082
//self.raw_rpc_client.cf_pool_minted_positions(lp, asset, Some(at)).await
Err(jsonrpsee::core::Error::Custom("Not implemented".to_string()))
}

async fn dry_run(
&self,
extrinsic: Bytes,
Expand Down

0 comments on commit de9ead3

Please sign in to comment.