TODO 799 B

12345678910111213141516171819202122
  1. priority: immediate
  2. * split demo() into smaller functions that correspond with rpc requests
  3. * see comments on main.rs
  4. * these are super basic/ dumb right now, we will start small and gradually improve
  5. we are basically transforming demo.rs into a sequence of commands: create(), mint(), airdrop(), propose(), vote(), exec()
  6. * move schema.rs to darkfi/example
  7. * rename it to dao.rs
  8. * we want to be able to run it like how we run example/tx.rs
  9. * cargo run --example dao
  10. * and it should compile and work
  11. priority: low
  12. * the things in util.rs are not all utils
  13. * some of them should be moved to other modules eventually
  14. * rename [foo]_contract to just foo
  15. * contract/dao_contract/ is redundant
  16. * we can just have contract/dao