onflow/flow-core-contracts

FEATURE: Add javascript templates package

Opened this issue · 2 comments

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/templates package that does a similar thing to the lib/go/templates package.
  • 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