|
@@ -4,17 +4,13 @@ use sp_core::H256;
|
|
|
use sp_runtime::{
|
|
|
testing::Header,
|
|
|
traits::{BlakeTwo256, IdentityLookup},
|
|
|
- DispatchResult, Perbill,
|
|
|
+ Perbill,
|
|
|
};
|
|
|
|
|
|
impl_outer_origin! {
|
|
|
pub enum Origin for Test {}
|
|
|
}
|
|
|
|
|
|
-mod membership_mod {
|
|
|
- pub use membership::Event;
|
|
|
-}
|
|
|
-
|
|
|
parameter_types! {
|
|
|
pub const BlockHashCount: u64 = 250;
|
|
|
pub const MaximumBlockWeight: u32 = 1024;
|
|
@@ -73,27 +69,6 @@ impl common::Trait for Test {
|
|
|
type ActorId = u64;
|
|
|
}
|
|
|
|
|
|
-impl membership::Trait for Test {
|
|
|
- type Event = ();
|
|
|
- type DefaultMembershipPrice = DefaultMembershipPrice;
|
|
|
- type WorkingGroup = ();
|
|
|
- type DefaultInitialInvitationBalance = ();
|
|
|
- type StakingAccountNumberLimit = ();
|
|
|
-}
|
|
|
-
|
|
|
-impl common::working_group::WorkingGroupIntegration<Test> for () {
|
|
|
- fn ensure_worker_origin(
|
|
|
- _origin: <Test as frame_system::Trait>::Origin,
|
|
|
- _worker_id: &<Test as common::Trait>::ActorId,
|
|
|
- ) -> DispatchResult {
|
|
|
- unimplemented!();
|
|
|
- }
|
|
|
-
|
|
|
- fn get_leader_member_id() -> Option<<Test as common::Trait>::MemberId> {
|
|
|
- unimplemented!();
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
impl pallet_timestamp::Trait for Test {
|
|
|
type Moment = u64;
|
|
|
type OnTimestampSet = ();
|