Skip to content

Commit

Permalink
introduce compatible relayer version
Browse files Browse the repository at this point in the history
  • Loading branch information
svyatonik committed Apr 23, 2024
1 parent f14e95c commit dc65c2e
Show file tree
Hide file tree
Showing 43 changed files with 462 additions and 326 deletions.
408 changes: 205 additions & 203 deletions Cargo.lock

Large diffs are not rendered by default.

22 changes: 11 additions & 11 deletions relay-clients/client-bridge-hub-kusama/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,17 @@ subxt = { version = "0.35.3", default-features = false, features = ["native"] }

# Bridge dependencies

bp-bridge-hub-kusama = { git = "https://github.com/paritytech/polkadot-sdk", branch = "master" }
bp-header-chain = { git = "https://github.com/paritytech/polkadot-sdk", branch = "master" }
bp-messages = { git = "https://github.com/paritytech/polkadot-sdk", branch = "master" }
bp-parachains = { git = "https://github.com/paritytech/polkadot-sdk", branch = "master" }
bp-polkadot = { git = "https://github.com/paritytech/polkadot-sdk", branch = "master" }
bp-polkadot-core = { git = "https://github.com/paritytech/polkadot-sdk", branch = "master" }
bridge-runtime-common = { git = "https://github.com/paritytech/polkadot-sdk", branch = "master" }
relay-substrate-client = { git = "https://github.com/paritytech/polkadot-sdk", branch = "master" }
bp-bridge-hub-kusama = { git = "https://github.com/paritytech/polkadot-sdk", branch = "sv-bridge-relayer-compatibility-tests" }
bp-header-chain = { git = "https://github.com/paritytech/polkadot-sdk", branch = "sv-bridge-relayer-compatibility-tests" }
bp-messages = { git = "https://github.com/paritytech/polkadot-sdk", branch = "sv-bridge-relayer-compatibility-tests" }
bp-parachains = { git = "https://github.com/paritytech/polkadot-sdk", branch = "sv-bridge-relayer-compatibility-tests" }
bp-polkadot = { git = "https://github.com/paritytech/polkadot-sdk", branch = "sv-bridge-relayer-compatibility-tests" }
bp-polkadot-core = { git = "https://github.com/paritytech/polkadot-sdk", branch = "sv-bridge-relayer-compatibility-tests" }
bridge-runtime-common = { git = "https://github.com/paritytech/polkadot-sdk", branch = "sv-bridge-relayer-compatibility-tests" }
relay-substrate-client = { git = "https://github.com/paritytech/polkadot-sdk", branch = "sv-bridge-relayer-compatibility-tests" }

# Substrate Dependencies

sp-core = { git = "https://github.com/paritytech/polkadot-sdk", branch = "master" }
sp-runtime = { git = "https://github.com/paritytech/polkadot-sdk", branch = "master" }
sp-weights = { git = "https://github.com/paritytech/polkadot-sdk", branch = "master" }
sp-core = { git = "https://github.com/paritytech/polkadot-sdk", branch = "sv-bridge-relayer-compatibility-tests" }
sp-runtime = { git = "https://github.com/paritytech/polkadot-sdk", branch = "sv-bridge-relayer-compatibility-tests" }
sp-weights = { git = "https://github.com/paritytech/polkadot-sdk", branch = "sv-bridge-relayer-compatibility-tests" }
4 changes: 4 additions & 0 deletions relay-clients/client-bridge-hub-kusama/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ impl Chain for BridgeHubKusama {
const NAME: &'static str = "BridgeHubKusama";
const BEST_FINALIZED_HEADER_ID_METHOD: &'static str =
bp_bridge_hub_kusama::BEST_FINALIZED_BRIDGE_HUB_KUSAMA_HEADER_METHOD;
const WITH_CHAIN_COMPATIBLE_FINALITY_RELAYER_VERSION_METHOD: &'static str =
bp_bridge_hub_kusama::BRIDGE_HUB_KUSAMA_FINALITY_COMPATIBLE_RELAYER_VERSION;
const AVERAGE_BLOCK_INTERVAL: Duration = AVERAGE_BLOCK_INTERVAL;

type SignedBlock = bp_bridge_hub_kusama::SignedBlock;
Expand Down Expand Up @@ -115,6 +117,8 @@ impl ChainWithMessages for BridgeHubKusama {
const WITH_CHAIN_RELAYERS_PALLET_NAME: Option<&'static str> =
Some(bp_bridge_hub_kusama::WITH_BRIDGE_HUB_KUSAMA_RELAYERS_PALLET_NAME);

const WITH_CHAIN_COMPATIBLE_MESSAGES_RELAYER_VERSION_METHOD: &'static str =
bp_bridge_hub_kusama::FROM_BRIDGE_HUB_KUSAMA_MESSAGES_COMPATIBLE_RELAYER_VERSION;
const TO_CHAIN_MESSAGE_DETAILS_METHOD: &'static str =
bp_bridge_hub_kusama::TO_BRIDGE_HUB_KUSAMA_MESSAGE_DETAILS_METHOD;
const FROM_CHAIN_MESSAGE_DETAILS_METHOD: &'static str =
Expand Down
26 changes: 13 additions & 13 deletions relay-clients/client-bridge-hub-polkadot/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,19 +16,19 @@ subxt = { version = "0.35.3", default-features = false, features = ["native"] }

# Bridge dependencies

bp-bridge-hub-polkadot = { git = "https://github.com/paritytech/polkadot-sdk", branch = "master" }
bp-header-chain = { git = "https://github.com/paritytech/polkadot-sdk", branch = "master" }
bp-messages = { git = "https://github.com/paritytech/polkadot-sdk", branch = "master" }
bp-parachains = { git = "https://github.com/paritytech/polkadot-sdk", branch = "master" }
bp-polkadot = { git = "https://github.com/paritytech/polkadot-sdk", branch = "master" }
bp-polkadot-core = { git = "https://github.com/paritytech/polkadot-sdk", branch = "master" }
bp-kusama = { git = "https://github.com/paritytech/polkadot-sdk", branch = "master" }
bp-runtime = { git = "https://github.com/paritytech/polkadot-sdk", branch = "master" }
bridge-runtime-common = { git = "https://github.com/paritytech/polkadot-sdk", branch = "master" }
relay-substrate-client = { git = "https://github.com/paritytech/polkadot-sdk", branch = "master" }
bp-bridge-hub-polkadot = { git = "https://github.com/paritytech/polkadot-sdk", branch = "sv-bridge-relayer-compatibility-tests" }
bp-header-chain = { git = "https://github.com/paritytech/polkadot-sdk", branch = "sv-bridge-relayer-compatibility-tests" }
bp-messages = { git = "https://github.com/paritytech/polkadot-sdk", branch = "sv-bridge-relayer-compatibility-tests" }
bp-parachains = { git = "https://github.com/paritytech/polkadot-sdk", branch = "sv-bridge-relayer-compatibility-tests" }
bp-polkadot = { git = "https://github.com/paritytech/polkadot-sdk", branch = "sv-bridge-relayer-compatibility-tests" }
bp-polkadot-core = { git = "https://github.com/paritytech/polkadot-sdk", branch = "sv-bridge-relayer-compatibility-tests" }
bp-kusama = { git = "https://github.com/paritytech/polkadot-sdk", branch = "sv-bridge-relayer-compatibility-tests" }
bp-runtime = { git = "https://github.com/paritytech/polkadot-sdk", branch = "sv-bridge-relayer-compatibility-tests" }
bridge-runtime-common = { git = "https://github.com/paritytech/polkadot-sdk", branch = "sv-bridge-relayer-compatibility-tests" }
relay-substrate-client = { git = "https://github.com/paritytech/polkadot-sdk", branch = "sv-bridge-relayer-compatibility-tests" }

# Substrate Dependencies

sp-core = { git = "https://github.com/paritytech/polkadot-sdk", branch = "master" }
sp-runtime = { git = "https://github.com/paritytech/polkadot-sdk", branch = "master" }
sp-weights = { git = "https://github.com/paritytech/polkadot-sdk", branch = "master" }
sp-core = { git = "https://github.com/paritytech/polkadot-sdk", branch = "sv-bridge-relayer-compatibility-tests" }
sp-runtime = { git = "https://github.com/paritytech/polkadot-sdk", branch = "sv-bridge-relayer-compatibility-tests" }
sp-weights = { git = "https://github.com/paritytech/polkadot-sdk", branch = "sv-bridge-relayer-compatibility-tests" }
4 changes: 4 additions & 0 deletions relay-clients/client-bridge-hub-polkadot/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ impl Chain for BridgeHubPolkadot {
const NAME: &'static str = "BridgeHubPolkadot";
const BEST_FINALIZED_HEADER_ID_METHOD: &'static str =
bp_bridge_hub_polkadot::BEST_FINALIZED_BRIDGE_HUB_POLKADOT_HEADER_METHOD;
const WITH_CHAIN_COMPATIBLE_FINALITY_RELAYER_VERSION_METHOD: &'static str =
bp_bridge_hub_polkadot::BRIDGE_HUB_POLKADOT_FINALITY_COMPATIBLE_RELAYER_VERSION;
const AVERAGE_BLOCK_INTERVAL: Duration = AVERAGE_BLOCK_INTERVAL;

type SignedBlock = bp_bridge_hub_polkadot::SignedBlock;
Expand Down Expand Up @@ -119,6 +121,8 @@ impl ChainWithMessages for BridgeHubPolkadot {
const WITH_CHAIN_RELAYERS_PALLET_NAME: Option<&'static str> =
Some(bp_bridge_hub_polkadot::WITH_BRIDGE_HUB_POLKADOT_RELAYERS_PALLET_NAME);

const WITH_CHAIN_COMPATIBLE_MESSAGES_RELAYER_VERSION_METHOD: &'static str =
bp_bridge_hub_polkadot::FROM_BRIDGE_HUB_POLKADOT_MESSAGES_COMPATIBLE_RELAYER_VERSION;
const TO_CHAIN_MESSAGE_DETAILS_METHOD: &'static str =
bp_bridge_hub_polkadot::TO_BRIDGE_HUB_POLKADOT_MESSAGE_DETAILS_METHOD;
const FROM_CHAIN_MESSAGE_DETAILS_METHOD: &'static str =
Expand Down
22 changes: 11 additions & 11 deletions relay-clients/client-bridge-hub-rococo/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,18 +16,18 @@ subxt = { version = "0.35.3", default-features = false, features = ["native"] }

# Bridge dependencies

bp-bridge-hub-rococo = { git = "https://github.com/paritytech/polkadot-sdk", branch = "master" }
bp-header-chain = { git = "https://github.com/paritytech/polkadot-sdk", branch = "master" }
bp-messages = { git = "https://github.com/paritytech/polkadot-sdk", branch = "master" }
bp-parachains = { git = "https://github.com/paritytech/polkadot-sdk", branch = "master" }
bp-polkadot-core = { git = "https://github.com/paritytech/polkadot-sdk", branch = "master" }
bp-runtime = { git = "https://github.com/paritytech/polkadot-sdk", branch = "master" }
bp-bridge-hub-rococo = { git = "https://github.com/paritytech/polkadot-sdk", branch = "sv-bridge-relayer-compatibility-tests" }
bp-header-chain = { git = "https://github.com/paritytech/polkadot-sdk", branch = "sv-bridge-relayer-compatibility-tests" }
bp-messages = { git = "https://github.com/paritytech/polkadot-sdk", branch = "sv-bridge-relayer-compatibility-tests" }
bp-parachains = { git = "https://github.com/paritytech/polkadot-sdk", branch = "sv-bridge-relayer-compatibility-tests" }
bp-polkadot-core = { git = "https://github.com/paritytech/polkadot-sdk", branch = "sv-bridge-relayer-compatibility-tests" }
bp-runtime = { git = "https://github.com/paritytech/polkadot-sdk", branch = "sv-bridge-relayer-compatibility-tests" }

bridge-runtime-common = { git = "https://github.com/paritytech/polkadot-sdk", branch = "master" }
relay-substrate-client = { git = "https://github.com/paritytech/polkadot-sdk", branch = "master" }
bridge-runtime-common = { git = "https://github.com/paritytech/polkadot-sdk", branch = "sv-bridge-relayer-compatibility-tests" }
relay-substrate-client = { git = "https://github.com/paritytech/polkadot-sdk", branch = "sv-bridge-relayer-compatibility-tests" }

# Substrate Dependencies

sp-core = { git = "https://github.com/paritytech/polkadot-sdk", branch = "master" }
sp-runtime = { git = "https://github.com/paritytech/polkadot-sdk", branch = "master" }
sp-weights = { git = "https://github.com/paritytech/polkadot-sdk", branch = "master" }
sp-core = { git = "https://github.com/paritytech/polkadot-sdk", branch = "sv-bridge-relayer-compatibility-tests" }
sp-runtime = { git = "https://github.com/paritytech/polkadot-sdk", branch = "sv-bridge-relayer-compatibility-tests" }
sp-weights = { git = "https://github.com/paritytech/polkadot-sdk", branch = "sv-bridge-relayer-compatibility-tests" }
4 changes: 4 additions & 0 deletions relay-clients/client-bridge-hub-rococo/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ impl Chain for BridgeHubRococo {
const NAME: &'static str = "BridgeHubRococo";
const BEST_FINALIZED_HEADER_ID_METHOD: &'static str =
bp_bridge_hub_rococo::BEST_FINALIZED_BRIDGE_HUB_ROCOCO_HEADER_METHOD;
const WITH_CHAIN_COMPATIBLE_FINALITY_RELAYER_VERSION_METHOD: &'static str =
bp_bridge_hub_rococo::BRIDGE_HUB_ROCOCO_FINALITY_COMPATIBLE_RELAYER_VERSION;
const AVERAGE_BLOCK_INTERVAL: Duration = AVERAGE_BLOCK_INTERVAL;

type SignedBlock = bp_bridge_hub_rococo::SignedBlock;
Expand Down Expand Up @@ -117,6 +119,8 @@ impl ChainWithMessages for BridgeHubRococo {
const WITH_CHAIN_RELAYERS_PALLET_NAME: Option<&'static str> =
Some(bp_bridge_hub_rococo::WITH_BRIDGE_HUB_ROCOCO_RELAYERS_PALLET_NAME);

const WITH_CHAIN_COMPATIBLE_MESSAGES_RELAYER_VERSION_METHOD: &'static str =
bp_bridge_hub_rococo::FROM_BRIDGE_HUB_ROCOCO_MESSAGES_COMPATIBLE_RELAYER_VERSION;
const TO_CHAIN_MESSAGE_DETAILS_METHOD: &'static str =
bp_bridge_hub_rococo::TO_BRIDGE_HUB_ROCOCO_MESSAGE_DETAILS_METHOD;
const FROM_CHAIN_MESSAGE_DETAILS_METHOD: &'static str =
Expand Down
26 changes: 13 additions & 13 deletions relay-clients/client-bridge-hub-westend/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,22 +16,22 @@ subxt = { version = "0.35.3", default-features = false, features = ["native"] }

# Bridge dependencies

bp-bridge-hub-westend = { git = "https://github.com/paritytech/polkadot-sdk", branch = "master" }
bp-header-chain = { git = "https://github.com/paritytech/polkadot-sdk", branch = "master" }
bp-messages = { git = "https://github.com/paritytech/polkadot-sdk", branch = "master" }
bp-parachains = { git = "https://github.com/paritytech/polkadot-sdk", branch = "master" }
bp-polkadot-core = { git = "https://github.com/paritytech/polkadot-sdk", branch = "master" }
bp-rococo = { git = "https://github.com/paritytech/polkadot-sdk", branch = "master" }
bp-bridge-hub-westend = { git = "https://github.com/paritytech/polkadot-sdk", branch = "sv-bridge-relayer-compatibility-tests" }
bp-header-chain = { git = "https://github.com/paritytech/polkadot-sdk", branch = "sv-bridge-relayer-compatibility-tests" }
bp-messages = { git = "https://github.com/paritytech/polkadot-sdk", branch = "sv-bridge-relayer-compatibility-tests" }
bp-parachains = { git = "https://github.com/paritytech/polkadot-sdk", branch = "sv-bridge-relayer-compatibility-tests" }
bp-polkadot-core = { git = "https://github.com/paritytech/polkadot-sdk", branch = "sv-bridge-relayer-compatibility-tests" }
bp-rococo = { git = "https://github.com/paritytech/polkadot-sdk", branch = "sv-bridge-relayer-compatibility-tests" }

bridge-runtime-common = { git = "https://github.com/paritytech/polkadot-sdk", branch = "master" }
relay-substrate-client = { git = "https://github.com/paritytech/polkadot-sdk", branch = "master" }
bridge-runtime-common = { git = "https://github.com/paritytech/polkadot-sdk", branch = "sv-bridge-relayer-compatibility-tests" }
relay-substrate-client = { git = "https://github.com/paritytech/polkadot-sdk", branch = "sv-bridge-relayer-compatibility-tests" }

# Substrate Dependencies

sp-core = { git = "https://github.com/paritytech/polkadot-sdk", branch = "master" }
sp-runtime = { git = "https://github.com/paritytech/polkadot-sdk", branch = "master" }
sp-weights = { git = "https://github.com/paritytech/polkadot-sdk", branch = "master" }
sp-core = { git = "https://github.com/paritytech/polkadot-sdk", branch = "sv-bridge-relayer-compatibility-tests" }
sp-runtime = { git = "https://github.com/paritytech/polkadot-sdk", branch = "sv-bridge-relayer-compatibility-tests" }
sp-weights = { git = "https://github.com/paritytech/polkadot-sdk", branch = "sv-bridge-relayer-compatibility-tests" }

[dev-dependencies]
bp-runtime = { git = "https://github.com/paritytech/polkadot-sdk", branch = "master" }
sp-consensus-grandpa = { git = "https://github.com/paritytech/polkadot-sdk", branch = "master" }
bp-runtime = { git = "https://github.com/paritytech/polkadot-sdk", branch = "sv-bridge-relayer-compatibility-tests" }
sp-consensus-grandpa = { git = "https://github.com/paritytech/polkadot-sdk", branch = "sv-bridge-relayer-compatibility-tests" }
4 changes: 4 additions & 0 deletions relay-clients/client-bridge-hub-westend/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ impl Chain for BridgeHubWestend {
const NAME: &'static str = "BridgeHubWestend";
const BEST_FINALIZED_HEADER_ID_METHOD: &'static str =
bp_bridge_hub_westend::BEST_FINALIZED_BRIDGE_HUB_WESTEND_HEADER_METHOD;
const WITH_CHAIN_COMPATIBLE_FINALITY_RELAYER_VERSION_METHOD: &'static str =
bp_bridge_hub_westend::BRIDGE_HUB_WESTEND_FINALITY_COMPATIBLE_RELAYER_VERSION;
const AVERAGE_BLOCK_INTERVAL: Duration = AVERAGE_BLOCK_INTERVAL;

type SignedBlock = bp_bridge_hub_westend::SignedBlock;
Expand Down Expand Up @@ -115,6 +117,8 @@ impl ChainWithMessages for BridgeHubWestend {
const WITH_CHAIN_RELAYERS_PALLET_NAME: Option<&'static str> =
Some(bp_bridge_hub_westend::WITH_BRIDGE_HUB_WESTEND_RELAYERS_PALLET_NAME);

const WITH_CHAIN_COMPATIBLE_MESSAGES_RELAYER_VERSION_METHOD: &'static str =
bp_bridge_hub_westend::FROM_BRIDGE_HUB_WESTEND_MESSAGES_COMPATIBLE_RELAYER_VERSION;
const TO_CHAIN_MESSAGE_DETAILS_METHOD: &'static str =
bp_bridge_hub_westend::TO_BRIDGE_HUB_WESTEND_MESSAGE_DETAILS_METHOD;
const FROM_CHAIN_MESSAGE_DETAILS_METHOD: &'static str =
Expand Down
20 changes: 10 additions & 10 deletions relay-clients/client-kusama/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,17 @@ subxt = { version = "0.35.3", default-features = false, features = ["native"] }

# Bridge dependencies

bp-kusama = { git = "https://github.com/paritytech/polkadot-sdk", branch = "master" }
bp-polkadot-core = { git = "https://github.com/paritytech/polkadot-sdk", branch = "master" }
bp-runtime = { git = "https://github.com/paritytech/polkadot-sdk", branch = "master" }
bp-kusama = { git = "https://github.com/paritytech/polkadot-sdk", branch = "sv-bridge-relayer-compatibility-tests" }
bp-polkadot-core = { git = "https://github.com/paritytech/polkadot-sdk", branch = "sv-bridge-relayer-compatibility-tests" }
bp-runtime = { git = "https://github.com/paritytech/polkadot-sdk", branch = "sv-bridge-relayer-compatibility-tests" }

relay-substrate-client = { git = "https://github.com/paritytech/polkadot-sdk", branch = "master" }
relay-utils = { git = "https://github.com/paritytech/polkadot-sdk", branch = "master" }
relay-substrate-client = { git = "https://github.com/paritytech/polkadot-sdk", branch = "sv-bridge-relayer-compatibility-tests" }
relay-utils = { git = "https://github.com/paritytech/polkadot-sdk", branch = "sv-bridge-relayer-compatibility-tests" }

# Substrate Dependencies

sp-consensus-grandpa = { git = "https://github.com/paritytech/polkadot-sdk", branch = "master" }
sp-core = { git = "https://github.com/paritytech/polkadot-sdk", branch = "master" }
sp-runtime = { git = "https://github.com/paritytech/polkadot-sdk", branch = "master" }
sp-session = { git = "https://github.com/paritytech/polkadot-sdk", branch = "master" }
sp-weights = { git = "https://github.com/paritytech/polkadot-sdk", branch = "master" }
sp-consensus-grandpa = { git = "https://github.com/paritytech/polkadot-sdk", branch = "sv-bridge-relayer-compatibility-tests" }
sp-core = { git = "https://github.com/paritytech/polkadot-sdk", branch = "sv-bridge-relayer-compatibility-tests" }
sp-runtime = { git = "https://github.com/paritytech/polkadot-sdk", branch = "sv-bridge-relayer-compatibility-tests" }
sp-session = { git = "https://github.com/paritytech/polkadot-sdk", branch = "sv-bridge-relayer-compatibility-tests" }
sp-weights = { git = "https://github.com/paritytech/polkadot-sdk", branch = "sv-bridge-relayer-compatibility-tests" }
2 changes: 2 additions & 0 deletions relay-clients/client-kusama/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@ impl Chain for Kusama {
const NAME: &'static str = "Kusama";
const BEST_FINALIZED_HEADER_ID_METHOD: &'static str =
bp_kusama::BEST_FINALIZED_KUSAMA_HEADER_METHOD;
const WITH_CHAIN_COMPATIBLE_FINALITY_RELAYER_VERSION_METHOD: &'static str =
bp_kusama::KUSAMA_FINALITY_COMPATIBLE_RELAYER_VERSION;
const AVERAGE_BLOCK_INTERVAL: Duration = Duration::from_secs(6);

type SignedBlock = bp_kusama::SignedBlock;
Expand Down
Loading

0 comments on commit dc65c2e

Please sign in to comment.