@@ -12,8 +12,8 @@ extern crate alloc;
1212use alloc:: collections:: BTreeMap ;
1313use alloc:: string:: String ;
1414use authority_selection_inherents:: {
15- AuthoritySelectionInputs , CommitteeMember , PermissionedCandidateDataError ,
16- RegistrationDataError , StakeError , select_authorities, validate_permissioned_candidate_data,
15+ AuthoritySelectionInputs , PermissionedCandidateDataError , RegistrationDataError , StakeError ,
16+ select_authorities, validate_permissioned_candidate_data,
1717} ;
1818use frame_support:: dynamic_params:: { dynamic_pallet_params, dynamic_params} ;
1919use frame_support:: genesis_builder_helper:: { build_state, get_preset} ;
@@ -30,6 +30,7 @@ use frame_system::EnsureRoot;
3030use opaque:: SessionKeys ;
3131use pallet_block_producer_metadata;
3232use pallet_grandpa:: AuthorityId as GrandpaId ;
33+ use pallet_session_validator_management:: CommitteeMemberOf ;
3334use pallet_transaction_payment:: { ConstFeeMultiplier , FungibleAdapter , Multiplier } ;
3435use parity_scale_codec:: { Decode , DecodeWithMemTracking , Encode , MaxEncodedLen } ;
3536use scale_info:: TypeInfo ;
@@ -58,6 +59,7 @@ use sp_runtime::{
5859 } ,
5960 transaction_validity:: { TransactionSource , TransactionValidity } ,
6061} ;
62+ use sp_session_validator_management:: CommitteeMember ;
6163use sp_sidechain:: SidechainStatus ;
6264use sp_std:: prelude:: * ;
6365use sp_version:: RuntimeVersion ;
@@ -351,13 +353,12 @@ impl pallet_session_validator_management::Config for Runtime {
351353 type AuthorityKeys = SessionKeys ;
352354 type AuthoritySelectionInputs = AuthoritySelectionInputs ;
353355 type WeightInfo = pallet_session_validator_management:: weights:: SubstrateWeight < Runtime > ;
354- type CommitteeMember = CommitteeMember < CrossChainPublic , SessionKeys > ;
355356 type MainChainScriptsOrigin = EnsureRoot < Self :: AccountId > ;
356357
357358 fn select_authorities (
358359 input : AuthoritySelectionInputs ,
359360 sidechain_epoch : ScEpochNumber ,
360- ) -> Option < BoundedVec < Self :: CommitteeMember , Self :: MaxValidators > > {
361+ ) -> Option < BoundedVec < CommitteeMemberOf < Self > , Self :: MaxValidators > > {
361362 select_authorities :: < sidechain_domain:: cross_chain_app:: Public , SessionKeys , MaxValidators > (
362363 Sidechain :: genesis_utxo ( ) ,
363364 input,
@@ -1088,10 +1089,11 @@ impl_runtime_apis! {
10881089 }
10891090 }
10901091
1091- #[ api_version( 2 ) ]
1092+ #[ api_version( 3 ) ]
10921093 impl sp_session_validator_management:: SessionValidatorManagementApi <
10931094 Block ,
1094- CommitteeMember <CrossChainPublic , SessionKeys >,
1095+ CrossChainPublic ,
1096+ SessionKeys ,
10951097 AuthoritySelectionInputs ,
10961098 sidechain_domain:: ScEpochNumber
10971099 > for Runtime {
0 commit comments