dojoengine/dojo

[sozo] make `sozo dev` great again

Opened this issue · 0 comments

This task it to create sozo dev <OPTIONS> and make it great again.

Problem

Common full stack dev flow is.

  1. Write contracts
  2. Write client
  3. Change contracts

If models/systems change in contracts, sozo build --typescript has to be run again, along with migration happening.

This is fine- but we can do better...

Solution

sozo dev <OPTIONS>

Running this command we could pass the following options:

--bindings OPTION (generates new bindings if systems/models change)
--migration OPTION (migrates when anything changes)
--testing OPTION (reruns tests)

This will then watch for file changes in the contracts directory and regenerate the bindings automatically.