TODO 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. priority: immediate
  2. * delete init() rpc
  3. * we don't need this as we will just call initialize automatically on first run.
  4. * split demo() into smaller functions that correspond with rpc requests
  5. * see comments on main.rs
  6. * these are super basic/ dumb right now, we will start small and gradually improve
  7. * make main() into an async daemon
  8. * rpc interface must detach in the background so we can run other
  9. methods
  10. * can use darkfi::util::cli::async_daemonize to be standard with
  11. other binaries, but it's not essential for this demo as we do
  12. not need a config or options rn.
  13. priority: mid
  14. * move schema.rs to darkfi/example
  15. * rename it to dao.rs
  16. * we want to be able to run it like how we run example/tx.rs
  17. * cargo run --example dao
  18. * and it should compile and work
  19. * figure out where to put example()
  20. * we have contract/example_contract
  21. * the contract code can stay put, but where should we run it? the code
  22. * example() which shows the usage is also useful to have.
  23. priority: low
  24. * the things in util.rs are not all utils
  25. * some of them should be moved to other modules eventually
  26. * rename [foo]_contract to just foo
  27. * contract/dao_contract/ is redundant
  28. * we can just have contract/dao