flow-core-contracts
flow-core-contracts copied to clipboard
FEATURE: Add javascript templates package
Issue To Be Solved
We current have a go package for getting transaction templates, but we should also have a javascript package so users of the contracts can import and use the correct versions without having to copy and paste.
Suggest A Solution
- Create a
lib/go/javascript/templatespackage that does a similar thing to thelib/go/templatespackage. - It should use the transactions and scripts in
transactions/as a source of truth, replace the import addresses with user provided addresses, and return the correct transaction texts.
Context
Would like to get this implemented soon because more organizations are using the transactions and scripts.
@MaxStalker You know javascript much better than I do, so feel free to edit this issue with more details when you get to it.
Putting this on ice