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
Support hashing algorithm - Data Structure Serialization & Identifier Generation
Generation considerations
Support passing in destination folder to generate method in flix-kit, default destination is template directory from exe dir.
Support user passing in flow.json for contract addresses for tx and scripts dependences.
Support emulator network for local development
Template naming
Name template file based on @message title property using all lower case and _ for spaces. If title is not given then use hash of cadence. (not a hard requirement, a place to start)
Note: The two FLIPS identified in this task are still in development, they can change based on development.
Future Plans:
watch process to auto generate templates as cadence developer changes their cadence files them templates would get auto-generated
Re passing flow.json: the CLI is already handling all the parsing of the flow.json, so I would say if you did that it should be the parsed struct that is passed in so it doesn't have to be parsed again. Although, it may mean maintaining types for flow.json in both repos or sharing them which may slow down development. It might be better just to pass some mapping of a simple struct type once you can pull the addresses from CLI and pass the mapping into this library.
Can you explain the emulator piece a bit more? Need more info on that one to digest it.
bthaile
changed the title
Generate flix json
Generate FLIX using Cadence comment header block
Oct 16, 2023
Given a cadence file generate flix json, generate version 1.1.0
Cadence comment block and language support
Inside a Cadence transaction or script
in commentAs a separate JSON file
, optional file1.1.0 considerations
Data Structure Serialization & Identifier Generation
Generation considerations
template
directory from exe dir.Template naming
_
for spaces. If title is not given then use hash of cadence. (not a hard requirement, a place to start)Note: The two FLIPS identified in this task are still in development, they can change based on development.
Future Plans:
watch process to auto generate templates as cadence developer changes their cadence files them templates would get auto-generated
flixkit folder structure for binding generation
├── main.go
├── binding/
│ ├── generator.go
│ └── javascript/
│ └── generator.go
│ └── templates/
│ └── js_template.tpl
└── ...
typescript would get it's own folder as well.
The text was updated successfully, but these errors were encountered: