All official bonds provided for in this chapter shall be in the form prescribed by law for official bonds of county officers except that the obligee named in such bond shall be the irrigation district.