How was the state of New York to pay for the building of the Erie Canal?

Through taxes paid by the people
Through donations from the users of the canal
Through government funding
Through costs associated with using the canal