lib.rs 392 B

123456789101112131415
  1. // Ensure we're `no_std` when compiling for Wasm.
  2. #![cfg_attr(not(feature = "std"), no_std)]
  3. pub mod council;
  4. pub mod election;
  5. pub mod election_params;
  6. mod sealed_vote;
  7. mod stake;
  8. mod mock;
  9. //TODO: Convert errors to the Substrate decl_error! macro.
  10. /// Result with string error message. This exists for backward compatibility purpose.
  11. pub type DispatchResult = Result<(), &'static str>;