You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
An idea came to my mind how we could improve the wizard UX. Instead of having a plain code display with a list of contracts to choose from, let's divide the wizard into 3 parts/dialogs:
Display a list of available contracts to choose from in a form of fancy icons - each contract would have its own unique colourful icon, plus a search bar would be available too.
User selects a contract and another dialog opens up with fields to setup the contract (e.g. ticket price for Lottery, min number of participants required, etc.)
Finally a code is generated which user could copy and invoke.
The generated code would be a new contract:
UI creates new contract which uses the user selected one as a composition, e.g. Lottery
it creates init function that initializes the Lottery.init() with the params selected by user
generates additional functions for each Lottery contract function (create_lottery, play_lottery, etc.)
generates hints for each function invoke (as it is now)
Everything would be fully automated, no hardcoding. The only thing we would have to stick with is the init function of the contract so that UI knows where to start from.
The text was updated successfully, but these errors were encountered:
A listing of contracts is better to showcase what are some of the posibilites.
This works well. We have to figure out how to pull network contracts as code, unless we mean to import as an interface.
Maybe we can generate shell methods if its the former using FunctionSpec.
An idea came to my mind how we could improve the wizard UX. Instead of having a plain code display with a list of contracts to choose from, let's divide the wizard into 3 parts/dialogs:
The generated code would be a new contract:
Everything would be fully automated, no hardcoding. The only thing we would have to stick with is the init function of the contract so that UI knows where to start from.
The text was updated successfully, but these errors were encountered: