Whenever the county has a contract to receive a grant from the federal or state government, the county can issue grant anticipation notes of up to three years, or for longer specified periods with the approval of the state director of local finance, secured by the funds to be received under the grant. T.C.A. §§ 9-21-701 through 9-21-705.