Skip to content

Commit

Permalink
chore: remove unused dep obake
Browse files Browse the repository at this point in the history
  • Loading branch information
dandanlen committed Dec 17, 2024
1 parent e1d7fa5 commit 16508c0
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 41 deletions.
22 changes: 0 additions & 22 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
Expand Down
1 change: 0 additions & 1 deletion state-chain/runtime/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
Expand Down
17 changes: 0 additions & 17 deletions state-chain/runtime/src/runtime_apis.rs
Original file line number Diff line number Diff line change
Expand Up @@ -167,33 +167,16 @@ 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<AssetAmount>,
pub output: AssetAmount,
pub network_fee: AssetAmount,
pub ingress_fee: AssetAmount,
pub egress_fee: AssetAmount,
#[obake(cfg(">=2.0"))]
pub broker_fee: AssetAmount,
}

impl From<SimulatedSwapInformation!["1.0.0"]> 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<u8>),
Expand Down

0 comments on commit 16508c0

Please sign in to comment.