Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: delete unneeded function #4116

Merged
merged 1 commit into from
Oct 13, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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