Event contracts as derivatives