Such trust agreement or resolution may pledge or assign, in whole or in part, the revenues and other moneys derived or to be derived by the city or town from its electric department or system and any contract or other rights to receive the same, whether then existing or thereafter coming into existence and whether then held or thereafter acquired by the city or town, and the proceeds thereof, but