From 49245dde2373036b313b3a5e2c1c79b366f07fdd Mon Sep 17 00:00:00 2001 From: Svyatoslav Nikolsky Date: Thu, 2 Nov 2023 13:15:30 +0300 Subject: [PATCH] removed unused PARACHAINS_FINALITY_PALLET_NAME constant (#2670) --- relays/client-kusama/src/lib.rs | 1 - relays/client-polkadot/src/lib.rs | 1 - relays/client-rialto/src/lib.rs | 2 -- relays/client-rococo/src/lib.rs | 1 - relays/client-substrate/src/chain.rs | 6 ------ relays/client-westend/src/lib.rs | 1 - relays/client-wococo/src/lib.rs | 1 - 7 files changed, 13 deletions(-) diff --git a/relays/client-kusama/src/lib.rs b/relays/client-kusama/src/lib.rs index 2108f67dc9d81..7fa88959a3c5b 100644 --- a/relays/client-kusama/src/lib.rs +++ b/relays/client-kusama/src/lib.rs @@ -80,7 +80,6 @@ impl ChainWithBalances for Kusama { impl RelayChain for Kusama { const PARAS_PALLET_NAME: &'static str = bp_kusama::PARAS_PALLET_NAME; - const PARACHAINS_FINALITY_PALLET_NAME: &'static str = "BridgeKusamaParachain"; } impl ChainWithTransactions for Kusama { diff --git a/relays/client-polkadot/src/lib.rs b/relays/client-polkadot/src/lib.rs index 4181b6dcff773..d0f7a7cb686d9 100644 --- a/relays/client-polkadot/src/lib.rs +++ b/relays/client-polkadot/src/lib.rs @@ -80,7 +80,6 @@ impl ChainWithBalances for Polkadot { impl RelayChain for Polkadot { const PARAS_PALLET_NAME: &'static str = bp_polkadot::PARAS_PALLET_NAME; - const PARACHAINS_FINALITY_PALLET_NAME: &'static str = "BridgePolkadotParachain"; } impl ChainWithTransactions for Polkadot { diff --git a/relays/client-rialto/src/lib.rs b/relays/client-rialto/src/lib.rs index cc5371612c346..2aa5bd638cc87 100644 --- a/relays/client-rialto/src/lib.rs +++ b/relays/client-rialto/src/lib.rs @@ -61,8 +61,6 @@ impl ChainWithGrandpa for Rialto { impl RelayChain for Rialto { const PARAS_PALLET_NAME: &'static str = bp_rialto::PARAS_PALLET_NAME; - const PARACHAINS_FINALITY_PALLET_NAME: &'static str = - bp_rialto::WITH_RIALTO_BRIDGE_PARAS_PALLET_NAME; } impl ChainWithMessages for Rialto { diff --git a/relays/client-rococo/src/lib.rs b/relays/client-rococo/src/lib.rs index 42e022d1be336..5ac11f1ef7230 100644 --- a/relays/client-rococo/src/lib.rs +++ b/relays/client-rococo/src/lib.rs @@ -80,7 +80,6 @@ impl ChainWithBalances for Rococo { impl RelayChain for Rococo { const PARAS_PALLET_NAME: &'static str = bp_rococo::PARAS_PALLET_NAME; - const PARACHAINS_FINALITY_PALLET_NAME: &'static str = "BridgeRococoParachains"; } impl ChainWithTransactions for Rococo { diff --git a/relays/client-substrate/src/chain.rs b/relays/client-substrate/src/chain.rs index 09742f1058e69..42d1c358c0a34 100644 --- a/relays/client-substrate/src/chain.rs +++ b/relays/client-substrate/src/chain.rs @@ -66,12 +66,6 @@ pub trait Chain: ChainBase + Clone { pub trait RelayChain: Chain { /// Name of the `runtime_parachains::paras` pallet in the runtime of this chain. const PARAS_PALLET_NAME: &'static str; - /// Name of the bridge parachains pallet (used in `construct_runtime` macro call) that is - /// deployed at the **bridged** chain. - /// - /// We assume that all chains that are bridging with this `RelayChain` are using - /// the same name. - const PARACHAINS_FINALITY_PALLET_NAME: &'static str; } /// Substrate-based chain that is using direct GRANDPA finality from minimal relay-client point of diff --git a/relays/client-westend/src/lib.rs b/relays/client-westend/src/lib.rs index 2f987b688a906..8cacffba99134 100644 --- a/relays/client-westend/src/lib.rs +++ b/relays/client-westend/src/lib.rs @@ -74,7 +74,6 @@ impl ChainWithGrandpa for Westend { impl RelayChain for Westend { const PARAS_PALLET_NAME: &'static str = bp_westend::PARAS_PALLET_NAME; - const PARACHAINS_FINALITY_PALLET_NAME: &'static str = "BridgeWestendParachains"; } impl ChainWithBalances for Westend { diff --git a/relays/client-wococo/src/lib.rs b/relays/client-wococo/src/lib.rs index ddf38a5c19d53..bb4e1c0130452 100644 --- a/relays/client-wococo/src/lib.rs +++ b/relays/client-wococo/src/lib.rs @@ -79,7 +79,6 @@ impl ChainWithBalances for Wococo { impl RelayChain for Wococo { const PARAS_PALLET_NAME: &'static str = bp_wococo::PARAS_PALLET_NAME; - const PARACHAINS_FINALITY_PALLET_NAME: &'static str = "BridgeWococoParachains"; } impl ChainWithTransactions for Wococo {