Skip to content
This repository has been archived by the owner on Oct 11, 2023. It is now read-only.

Commit

Permalink
More fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
dastanbeksamatov committed Aug 15, 2023
1 parent 953b74d commit 444d62f
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 49 deletions.
16 changes: 0 additions & 16 deletions Cargo.lock

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

2 changes: 0 additions & 2 deletions node/src/chain_spec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,6 @@ fn endowed_accounts() -> Vec<AccountId> {
});

vec![
// Sudo account
get_account_id_from_seed::<sr25519::Public>("Alice"),
// Regular (unused) accounts
get_account_id_from_seed::<sr25519::Public>("Ferdie"),
get_account_id_from_seed::<sr25519::Public>("Ferdie//stash"),
Expand Down
6 changes: 0 additions & 6 deletions runtime/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ pallet-aura = { default-features = false, git = "https://github.com/paritytech/s
pallet-balances = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" }
frame-support = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" }
pallet-grandpa = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" }
pallet-session = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" }
pallet-sudo = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" }
pallet-utility = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" }
frame-system = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" }
Expand Down Expand Up @@ -78,7 +77,6 @@ pallet-bridge-grandpa = { git = "https://github.com/freeverseio/parity-bridges-c
pallet-bridge-messages = { git = "https://github.com/freeverseio/parity-bridges-common.git", branch = "polkadot-v1.0.0", default-features = false }
pallet-bridge-parachains = { git = "https://github.com/freeverseio/parity-bridges-common.git", branch = "polkadot-v1.0.0", default-features = false }
pallet-bridge-relayers = { git = "https://github.com/freeverseio/parity-bridges-common.git", branch = "polkadot-v1.0.0", default-features = false }
pallet-shift-session-manager = { git = "https://github.com/freeverseio/parity-bridges-common.git", branch = "polkadot-v1.0.0", default-features = false }
pallet-xcm-bridge-hub-router = { git = "https://github.com/freeverseio/parity-bridges-common.git", branch = "polkadot-v1.0.0", default-features = false }

[build-dependencies]
Expand Down Expand Up @@ -143,15 +141,13 @@ std = [
"pallet-bridge-messages/std",
"pallet-bridge-parachains/std",
"pallet-bridge-relayers/std",
"pallet-shift-session-manager/std",
"pallet-xcm-bridge-hub-router/std",
# Polkadot
"pallet-xcm/std",
"xcm-builder/std",
"xcm/std",
"xcm-executor/std",
# Consensus
"pallet-session/std",
]
runtime-benchmarks = [
"frame-benchmarking/runtime-benchmarks",
Expand Down Expand Up @@ -191,8 +187,6 @@ try-runtime = [
"pallet-bridge-messages/try-runtime",
"pallet-bridge-parachains/try-runtime",
"pallet-bridge-relayers/try-runtime",
"pallet-session/try-runtime",
"pallet-shift-session-manager/try-runtime",
"pallet-utility/try-runtime",
"pallet-xcm/try-runtime",
"pallet-xcm-bridge-hub-router/try-runtime",
Expand Down
26 changes: 1 addition & 25 deletions runtime/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -266,26 +266,6 @@ impl pallet_sudo::Config for Runtime {
type WeightInfo = pallet_sudo::weights::SubstrateWeight<Runtime>;
}

parameter_types! {
/// Authorities are changing every 5 minutes.
pub const Period: BlockNumber = bp_evochain::SESSION_LENGTH;
pub const Offset: BlockNumber = 0;
pub const RelayerStakeReserveId: [u8; 8] = *b"brdgrlrs";
}

impl pallet_session::Config for Runtime {
type RuntimeEvent = RuntimeEvent;
type ValidatorId = <Self as frame_system::Config>::AccountId;
type ValidatorIdOf = ();
type ShouldEndSession = pallet_session::PeriodicSessions<Period, Offset>;
type NextSessionRotation = pallet_session::PeriodicSessions<Period, Offset>;
type SessionManager = pallet_shift_session_manager::Pallet<Runtime>;
type SessionHandler = <SessionKeys as OpaqueKeys>::KeyTypeIdProviders;
type Keys = SessionKeys;
// TODO: update me (https://github.com/paritytech/parity-bridges-common/issues/78)
type WeightInfo = ();
}

impl pallet_bridge_relayers::Config for Runtime {
type RuntimeEvent = RuntimeEvent;
type Reward = Balance;
Expand All @@ -295,7 +275,7 @@ impl pallet_bridge_relayers::Config for Runtime {
AccountId,
BlockNumber,
Balances,
RelayerStakeReserveId,
(),
ConstU64<1_000>,
ConstU64<8>,
>;
Expand All @@ -320,8 +300,6 @@ parameter_types! {
/// Instance of the messages pallet used to relay messages to/from Rialto chain.
pub type WithRialtoMessagesInstance = ();

impl pallet_shift_session_manager::Config for Runtime {}

impl pallet_bridge_messages::Config<WithRialtoMessagesInstance> for Runtime {
type RuntimeEvent = RuntimeEvent;
type WeightInfo = weights::RialtoMessagesWeightInfo<Runtime>;
Expand Down Expand Up @@ -441,9 +419,7 @@ construct_runtime!(
TransactionPayment: pallet_transaction_payment,

// Consensus support.
Session: pallet_session,
Grandpa: pallet_grandpa,
ShifSessionManager: pallet_shift_session_manager,

// Rialto Bridges support.
BridgeRelayers: pallet_bridge_relayers,
Expand Down

0 comments on commit 444d62f

Please sign in to comment.