Skip to content

Commit

Permalink
feat: add support for non-fixed participant sets
Browse files Browse the repository at this point in the history
  • Loading branch information
shekohex committed Jan 10, 2024
1 parent c7fc287 commit 5d973f2
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions primitives/src/jobs/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,18 @@ pub enum JobType<AccountId> {
ZkSaaSPhaseTwo(ZkSaaSPhaseTwoJobType),
}

/// Represents the different kinds of participants
#[derive(PartialEq, Eq, Encode, Decode, RuntimeDebug, TypeInfo, Clone)]
#[cfg_attr(feature = "std", derive(Serialize, Deserialize))]
pub enum Participants<AccountId> {
/// A Predefined set of participants
Predefined(Vec<AccountId>),
/// Any participant with a specific role type for the given job type
Any,
/// ???
LeaderElection,
}

/// Enum representing different types of data sources.
#[derive(PartialEq, Eq, Encode, Decode, RuntimeDebug, TypeInfo, Clone)]
#[cfg_attr(feature = "std", derive(Serialize, Deserialize))]
Expand Down

0 comments on commit 5d973f2

Please sign in to comment.