Glow-Lang / glow

The Glow language for Blockchain Decentralized Applications.
https://glow-lang.org
Apache License 2.0
58 stars 8 forks source link

UI schema generation #430

Closed plotnick closed 2 years ago

plotnick commented 2 years ago

Add a new schema compiler pass to generate a JSON blob that allows the UI to present input forms for contract roles, parameters, assets, etc. May be run manually via ./glow pass -S schema schema buy_sig.glow, but is intended to be accessed via the /contacts/schema HTTP endpoint.

Still some TODOs, missing functionality (e.g., simple faucet & transfer actions) and minor issues (e.g., the /contacts part of the HTTP path is now wrongly named, but same-origin nonsense makes fixing this non-trivial) that can be handled in follow-ups.