Be very careful.
There are different ways this could be structured. If you sign something without getting advice you may find that you are locked in to selling.
These are generally called option agreements. Usually the purchase of the option (ie the developer in this case) will want an...