diff --git a/auction/src/mock.rs b/auction/src/mock.rs index 57d4d9a9402824c3342e94a4fa366372b47e1d41..267e1bbccbf4a1853d8d6ea1d2080010d896be94 100644 --- a/auction/src/mock.rs +++ b/auction/src/mock.rs @@ -56,8 +56,6 @@ impl system::Trait for Runtime { type Version = (); } -pub type System = system::Module<Runtime>; - pub struct Handler; impl AuctionHandler<AccountId, Balance, BlockNumber, AuctionId> for Handler { diff --git a/oracle/Cargo.toml b/oracle/Cargo.toml index 1c799c2e2ce1fbb5bcff0242eb5407090551ca5b..c846569ede9b53c5e5e976e51ed53ff1c3b0a83f 100644 --- a/oracle/Cargo.toml +++ b/oracle/Cargo.toml @@ -17,7 +17,7 @@ utilities = { package = "orml-utilities", path = "../utilities", default-feature primitives = { git = "https://github.com/paritytech/substrate.git", package = "substrate-primitives", default-features = false } [dev-dependencies] -timestamp = { package = "srml-timestamp", git = "https://github.com/paritytech/substrate.git", default-features = false } +timestamp = { package = "srml-timestamp", git = "https://github.com/paritytech/substrate.git" } [features] @@ -33,5 +33,4 @@ std = [ "traits/std", "utilities/std", "primitives/std", - "timestamp/std", ] diff --git a/oracle/src/operator_provider.rs b/oracle/src/operator_provider.rs index 39be594d3c9fa80a6fc2e39ac44f76b86c560e38..2034d8a2c72b1f6563388ca8dbbd36dcfec69b15 100644 --- a/oracle/src/operator_provider.rs +++ b/oracle/src/operator_provider.rs @@ -7,3 +7,13 @@ pub trait OperatorProvider<AccountId> { // return a list of operators fn operators() -> Vec<AccountId>; } + +impl<AccountId> OperatorProvider<AccountId> for () { + fn can_feed_data(_who: &AccountId) -> bool { + false + } + + fn operators() -> Vec<AccountId> { + Vec::new() + } +}