func (_Controller *ControllerFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *ControllerOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error) {

	var previousOwnerRule []interface{}
	for _, previousOwnerItem := range previousOwner {
		previousOwnerRule = append(previousOwnerRule, previousOwnerItem)
	}
	var newOwnerRule []interface{}
	for _, newOwnerItem := range newOwner {
		newOwnerRule = append(newOwnerRule, newOwnerItem)
	}

	logs, sub, err := _Controller.contract.WatchLogs(opts, "OwnershipTransferred", previousOwnerRule, newOwnerRule)
	if err != nil {
		return nil, err
	}
	return event.NewSubscription(func(quit <-chan struct{}) error {
		defer sub.Unsubscribe()
		for {
			select {
			case log := <-logs:
				// New log arrived, parse the event and forward to the user
				event := new(ControllerOwnershipTransferred)
				if err := _Controller.contract.UnpackLog(event, "OwnershipTransferred", log); err != nil {
					return err
				}
				event.Raw = log

				select {
				case sink <- event:
				case err := <-sub.Err():
					return err
				case <-quit:
					return nil
				}
			case err := <-sub.Err():
				return err
			case <-quit:
				return nil
			}
		}
	}), nil
}
// WatchOwnershipTransferred is a free log subscription operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0.
//
// Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)


event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)
// WatchOwnershipTransferred is a free log subscription operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0 . // // Solidity : event OwnershipTransferred ( address indexed previousOwner address indexed newOwner )
func (_Controller *ControllerFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *ControllerOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error) {
	var previousOwnerRule []interface{}
	for _, previousOwnerItem := range previousOwner {
		previousOwnerRule = append(previousOwnerRule, previousOwnerItem)
	}
	var newOwnerRule []interface{}
	for _, newOwnerItem := range newOwner {
		newOwnerRule = append(newOwnerRule, newOwnerItem)
	}
	logs, sub, err := _Controller.contract.WatchLogs(opts, "OwnershipTransferred", previousOwnerRule, newOwnerRule)
	if err != nil {
		return nil, err
	}
	return event.NewSubscription(func(quit <-chan struct{}) error {
		defer sub.Unsubscribe()
		for {
			select {
			case log := <-logs:
				event := new(ControllerOwnershipTransferred)
				if err := _Controller.contract.UnpackLog(event, "OwnershipTransferred", log); err != nil {
					return err
				}
				event.Raw = log
				select {
				case sink <- event:
				case err := <-sub.Err():
					return err
				case <-quit:
					return nil
				}
			case err := <-sub.Err():
				return err
			case <-quit:
				return nil
			}
		}
	}), nil
}
func ( _Controller * ControllerFilterer ) WatchOwnershipTransferred ( opts * bind . WatchOpts , sink chan <- * ControllerOwnershipTransferred , previousOwner [ ] common . Address , newOwner [ ] common . Address ) ( event . Subscription , error ) { var previousOwnerRule [ ] interface { } for _ , previousOwnerItem := range previousOwner { previousOwnerRule = append ( previousOwnerRule , previousOwnerItem ) } var newOwnerRule [ ] interface { } for _ , newOwnerItem := range newOwner { newOwnerRule = append ( newOwnerRule , newOwnerItem ) } logs , sub , err := _Controller . contract . WatchLogs ( opts , " " , previousOwnerRule , newOwnerRule ) if err != nil { return nil , err } return event . NewSubscription ( func ( quit <- chan struct { } ) error { defer sub . Unsubscribe ( ) for { select { case log := <- logs : event := new ( ControllerOwnershipTransferred ) if err := _Controller . contract . UnpackLog ( event , " " , log ) ; err != nil { return err } event . Raw = log select { case sink <- event : case err := <- sub . Err ( ) : return err case <- quit : return nil } case err := <- sub . Err ( ) : return err case <- quit : return nil } } } ) , nil }
// New log arrived, parse the event and forward to the user