Contract API init() Initialize the todo contract. setversion() Set a new version for the contract. setadmin() Set a new admin for the contract. createtask() Create a new task. updatemsg() Update the task message. completetask() Mark a task as complete. deletetask() Delete a task.