-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: clippy and fmt certification pallet
- Loading branch information
abdulhakim2902
committed
Nov 23, 2021
1 parent
958a68c
commit 6f6e596
Showing
3 changed files
with
352 additions
and
354 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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>; | ||
} |
Oops, something went wrong.