Skip to content
Snippets Groups Projects
Commit b964168d authored by Éloïs's avatar Éloïs
Browse files

doc certification events

parent 4dd569c3
No related branches found
No related tags found
1 merge request!9upgrade substrate to monthly-2022-01
...@@ -210,6 +210,7 @@ pub mod pallet { ...@@ -210,6 +210,7 @@ pub mod pallet {
#[pallet::generate_deposit(pub(super) fn deposit_event)] #[pallet::generate_deposit(pub(super) fn deposit_event)]
pub enum Event<T: Config<I>, I: 'static = ()> { pub enum Event<T: Config<I>, I: 'static = ()> {
/// New certification /// New certification
/// [issuer, issuer_issued_count, receiver, receiver_received_count]
NewCert { NewCert {
issuer: T::IdtyIndex, issuer: T::IdtyIndex,
issuer_issued_count: u8, issuer_issued_count: u8,
...@@ -217,6 +218,7 @@ pub mod pallet { ...@@ -217,6 +218,7 @@ pub mod pallet {
receiver_received_count: u32, receiver_received_count: u32,
}, },
/// Removed certification /// Removed certification
/// [issuer, issuer_issued_count, receiver, receiver_received_count, expiration]
RemovedCert { RemovedCert {
issuer: T::IdtyIndex, issuer: T::IdtyIndex,
issuer_issued_count: u8, issuer_issued_count: u8,
...@@ -225,6 +227,7 @@ pub mod pallet { ...@@ -225,6 +227,7 @@ pub mod pallet {
expiration: bool, expiration: bool,
}, },
/// Renewed certification /// Renewed certification
/// [issuer, receiver]
RenewedCert { RenewedCert {
issuer: T::IdtyIndex, issuer: T::IdtyIndex,
receiver: T::IdtyIndex, receiver: T::IdtyIndex,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment