From 16508c0b3b9879c67871eaeaf22fdd84f0d92537 Mon Sep 17 00:00:00 2001 From: Daniel Date: Tue, 17 Dec 2024 12:00:02 +0100 Subject: [PATCH] chore: remove unused dep obake --- Cargo.lock | 22 ---------------------- Cargo.toml | 1 - state-chain/runtime/Cargo.toml | 1 - state-chain/runtime/src/runtime_apis.rs | 17 ----------------- 4 files changed, 41 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 7aa50d534c..ce7a552f08 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -7649,27 +7649,6 @@ dependencies = [ "syn 2.0.89", ] -[[package]] -name = "obake" -version = "1.0.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c016d34f5be5713bfcaa23668b736865921606c2ddff17e158f0815e4cde091b" -dependencies = [ - "obake_macros", -] - -[[package]] -name = "obake_macros" -version = "1.0.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "47056b8eb01b867a9fdc29f69c05799b9eafb50f73e440cafe624949e27cc7dc" -dependencies = [ - "proc-macro2", - "quote", - "semver 1.0.23", - "syn 1.0.109", -] - [[package]] name = "object" version = "0.30.4" @@ -13281,7 +13260,6 @@ dependencies = [ "hex-literal", "log", "nanorand", - "obake", "pallet-aura", "pallet-authorship", "pallet-cf-account-roles", diff --git a/Cargo.toml b/Cargo.toml index 88556d7241..23d510d46f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -161,7 +161,6 @@ web3 = { version = "0.19" } x25519-dalek = { version = "2.0" } zeroize = { version = "1.7.0" } zmq = { git = "https://github.com/chainflip-io/rust-zmq.git", tag = "chainflip-v0.9.2+1" } -obake = { version = "1.0.5" } # PolkadotSdk Pallets pallet-aura = { git = "https://github.com/chainflip-io/polkadot-sdk.git", tag = "chainflip-substrate-1.15.2+2", default-features = false } diff --git a/state-chain/runtime/Cargo.toml b/state-chain/runtime/Cargo.toml index b2bd00b643..d12cf11c2e 100644 --- a/state-chain/runtime/Cargo.toml +++ b/state-chain/runtime/Cargo.toml @@ -24,7 +24,6 @@ nanorand = { workspace = true, features = ["wyrand"] } serde = { workspace = true, features = ["derive", "alloc"] } ethabi = { workspace = true } bitvec = { workspace = true } -obake = { workspace = true } # Chainflip local dependencies cf-amm = { workspace = true } diff --git a/state-chain/runtime/src/runtime_apis.rs b/state-chain/runtime/src/runtime_apis.rs index 5d27a8f3bc..2b4a4eab9c 100644 --- a/state-chain/runtime/src/runtime_apis.rs +++ b/state-chain/runtime/src/runtime_apis.rs @@ -167,9 +167,6 @@ pub struct BrokerInfo { } /// Struct that represents the estimated output of a Swap. -#[obake::versioned] -#[obake(version("1.0.0"))] -#[obake(version("2.0.0"))] #[derive(Encode, Decode, TypeInfo)] pub struct SimulatedSwapInformation { pub intermediary: Option, @@ -177,23 +174,9 @@ pub struct SimulatedSwapInformation { pub network_fee: AssetAmount, pub ingress_fee: AssetAmount, pub egress_fee: AssetAmount, - #[obake(cfg(">=2.0"))] pub broker_fee: AssetAmount, } -impl From for SimulatedSwapInformation { - fn from(value: SimulatedSwapInformation!["1.0.0"]) -> Self { - Self { - intermediary: value.intermediary, - output: value.output, - network_fee: value.network_fee, - ingress_fee: value.ingress_fee, - egress_fee: value.egress_fee, - broker_fee: Default::default(), - } - } -} - #[derive(Debug, Decode, Encode, TypeInfo)] pub enum DispatchErrorWithMessage { Module(Vec),