Open bthaile opened 1 year ago
I'm not sure TS or JS bindings should be generated in this library. I'm wondering if this should be a separate lib (maybe even a TS lib).
Go has the ability to parse the program and get out information from it so i think go is the right choixe here. The code should also support generating go bindings.
@chasefleming I was thinking this flixkit-go would be all things flix.
generating binding files
Also, my thinking was that flow-cli is already bringing in this lib to do flix stuff.
Given a interactive template (flix) need to create binding files. Task should address local development.
In current Cadence vs code project structure, bindings files can be generated to "bindings" folder by default. For CLI configuration user passes in "Cadence" folder and all transactions and scripts will be discovered and templates generated to "templates" directory and binding generated to "bindings" folder.
Tasks:
Sub Tasks:
Note:
Reference: Cadut uses handlebar templates to generate javascript files.
Binding should have a hash template interface (arguments) and verify the hash has not changed at runtime.
Example javascript binding that uses a URL to flix