@@ -128,16 +128,14 @@ pub mod pallet {
128
128
#[ pallet:: event]
129
129
#[ pallet:: generate_deposit( pub ( super ) fn deposit_event) ]
130
130
pub enum Event < T : Config > {
131
- /// Created Bounty [Bounty Id]
132
- CreatedBounty ( T :: BountyId ) ,
133
- /// Updated Bounty [Bounty Id]
134
- UpdatedBounty ( T :: BountyId ) ,
135
- /// Added bounty contributor to the chain [Bounty Id]
136
- AddedContributor ( T :: BountyId ) ,
137
- /// Completed bounty and badges assigned to the contributors [Bounty Id]
138
- CompletedBounty ( T :: BountyId ) ,
139
- /// Bounty closed due to deadline meet.
140
- ClosedBounty ( T :: BountyId ) ,
131
+ /// Created Bounty [Community Id, Bounty Id]
132
+ CreatedBounty ( T :: CommunityId , T :: BountyId ) ,
133
+ /// Updated Bounty [Community Id, Bounty Id]
134
+ UpdatedBounty ( T :: CommunityId , T :: BountyId ) ,
135
+ /// Completed bounty and badges assigned to the contributors [Community Id, Bounty Id]
136
+ CompletedBounty ( T :: CommunityId , T :: BountyId ) ,
137
+ /// Bounty closed due to deadline meet [Community Id, Bounty Id]
138
+ ClosedBounty ( T :: CommunityId , T :: BountyId ) ,
141
139
}
142
140
143
141
#[ pallet:: error]
@@ -186,7 +184,7 @@ pub mod pallet {
186
184
187
185
bounty. status = BountyStatus :: Completed ;
188
186
189
- Self :: deposit_event ( Event :: ClosedBounty ( bounty_id) ) ;
187
+ Self :: deposit_event ( Event :: ClosedBounty ( community_id , bounty_id) ) ;
190
188
191
189
Ok ( ( ) )
192
190
} ,
@@ -294,7 +292,7 @@ pub mod pallet {
294
292
bounty. participants = participants;
295
293
bounty. status = BountyStatus :: WorkInProgress ;
296
294
297
- Self :: deposit_event ( Event :: UpdatedBounty ( bounty_id) ) ;
295
+ Self :: deposit_event ( Event :: UpdatedBounty ( community_id , bounty_id) ) ;
298
296
Ok ( ( ) )
299
297
} )
300
298
}
@@ -376,7 +374,7 @@ pub mod pallet {
376
374
}
377
375
bounty. contributors = bounty_contributors;
378
376
379
- Self :: deposit_event ( Event :: CompletedBounty ( bounty_id) ) ;
377
+ Self :: deposit_event ( Event :: CompletedBounty ( community_id , bounty_id) ) ;
380
378
Ok ( ( ) )
381
379
} )
382
380
}
@@ -427,7 +425,7 @@ impl<T: Config> Pallet<T> {
427
425
let next_id = bounty_id. increment ( ) ;
428
426
NextBountyId :: < T > :: insert ( community_id, next_id) ;
429
427
430
- Self :: deposit_event ( Event :: CreatedBounty ( bounty_id) ) ;
428
+ Self :: deposit_event ( Event :: CreatedBounty ( community_id , bounty_id) ) ;
431
429
432
430
Ok ( ( ) . into ( ) )
433
431
}
0 commit comments