Skip to content

Commit

Permalink
fix: clippy and fmt certification pallet
Browse files Browse the repository at this point in the history
  • Loading branch information
abdulhakim2902 committed Nov 23, 2021
1 parent 958a68c commit 6f6e596
Show file tree
Hide file tree
Showing 3 changed files with 352 additions and 354 deletions.
48 changes: 24 additions & 24 deletions pallets/certifications/src/interface.rs
Original file line number Diff line number Diff line change
@@ -1,31 +1,31 @@
//use sp_std::prelude::*;

pub trait CertificationInterface<T: frame_system::Config> {
type Error;
type CertificationId;
type Certification;
type CertificationInfo;
type Error;
type CertificationId;
type Certification;
type CertificationInfo;

fn generate_certification_id(
owner_id: &T::AccountId,
certification_count: u64,
) -> Self::CertificationId;
fn generate_certification_id(
owner_id: &T::AccountId,
certification_count: u64,
) -> Self::CertificationId;

fn create_certification(
owner_id: &T::AccountId,
certification: &Self::CertificationInfo,
) -> Result<Self::Certification, Self::Error>;
fn update_certification(
owner_id: &T::AccountId,
certification_id: &Self::CertificationId,
certification: &Self::CertificationInfo,
) -> Result<Self::Certification, Self::Error>;
fn delete_certification(
owner_id: &T::AccountId,
certification_id: &Self::CertificationId,
) -> Result<Self::Certification, Self::Error>;
fn create_certification(
owner_id: &T::AccountId,
certification: &Self::CertificationInfo,
) -> Result<Self::Certification, Self::Error>;
fn update_certification(
owner_id: &T::AccountId,
certification_id: &Self::CertificationId,
certification: &Self::CertificationInfo,
) -> Result<Self::Certification, Self::Error>;
fn delete_certification(
owner_id: &T::AccountId,
certification_id: &Self::CertificationId,
) -> Result<Self::Certification, Self::Error>;

fn certification_count_by_owner(owner_id: &T::AccountId) -> u64;
fn certification_by_id(certification_id: &Self::CertificationId)
-> Option<Self::Certification>;
fn certification_count_by_owner(owner_id: &T::AccountId) -> u64;
fn certification_by_id(certification_id: &Self::CertificationId)
-> Option<Self::Certification>;
}
Loading

0 comments on commit 6f6e596

Please sign in to comment.