@@ -291,6 +291,14 @@ pub mod pallet {
291291 BountyCanceled { index : BountyIndex } ,
292292 /// A bounty expiry is extended.
293293 BountyExtended { index : BountyIndex } ,
294+ /// A bounty is approved.
295+ BountyApproved { index : BountyIndex } ,
296+ /// A bounty curator is proposed.
297+ CuratorProposed { bounty_id : BountyIndex , curator : T :: AccountId } ,
298+ /// A bounty curator is unassigned.
299+ CuratorUnassigned { bounty_id : BountyIndex } ,
300+ /// A bounty curator is accepted.
301+ CuratorAccepted { bounty_id : BountyIndex , curator : T :: AccountId } ,
294302 }
295303
296304 /// Number of bounty proposals that have been made.
@@ -375,10 +383,12 @@ pub mod pallet {
375383
376384 Ok ( ( ) )
377385 } ) ?;
386+
387+ Self :: deposit_event ( Event :: < T , I > :: BountyApproved { index : bounty_id } ) ;
378388 Ok ( ( ) )
379389 }
380390
381- /// Assign a curator to a funded bounty.
391+ /// Propose a curator to a funded bounty.
382392 ///
383393 /// May only be called from `T::SpendOrigin`.
384394 ///
@@ -408,9 +418,11 @@ pub mod pallet {
408418
409419 ensure ! ( fee < bounty. value, Error :: <T , I >:: InvalidFee ) ;
410420
411- bounty. status = BountyStatus :: CuratorProposed { curator } ;
421+ bounty. status = BountyStatus :: CuratorProposed { curator : curator . clone ( ) } ;
412422 bounty. fee = fee;
413423
424+ Self :: deposit_event ( Event :: < T , I > :: CuratorProposed { bounty_id, curator } ) ;
425+
414426 Ok ( ( ) )
415427 } ) ?;
416428 Ok ( ( ) )
@@ -508,6 +520,8 @@ pub mod pallet {
508520 bounty. status = BountyStatus :: Funded ;
509521 Ok ( ( ) )
510522 } ) ?;
523+
524+ Self :: deposit_event ( Event :: < T , I > :: CuratorUnassigned { bounty_id } ) ;
511525 Ok ( ( ) )
512526 }
513527
@@ -542,6 +556,10 @@ pub mod pallet {
542556 bounty. status =
543557 BountyStatus :: Active { curator : curator. clone ( ) , update_due } ;
544558
559+ Self :: deposit_event ( Event :: < T , I > :: CuratorAccepted {
560+ bounty_id,
561+ curator : signer,
562+ } ) ;
545563 Ok ( ( ) )
546564 } ,
547565 _ => Err ( Error :: < T , I > :: UnexpectedStatus . into ( ) ) ,
0 commit comments