Skip to content

v0.3.2

Choose a tag to compare

@rkalis rkalis released this 31 Jan 16:20
· 670 commits to master since this release

cashc compiler

  • ✨ Add OutputNullData(bytes[] chunks), an output type to enforce OP_RETURN outputs.
  • 🐚 CLI improvements
    • The --output|-o flag is now optional, if it is omitted or manually set to -, the artifact will be written to stdout rather than a file.
    • Add --asm|-A flag that outputs only Script in ASM format instead of a full JSON artifact.
    • Add --hex|-h flag that outputs only Script in hex format instead of a full JSON artifact.
    • Add --args|-a flag that allows you to specify constructor arguments that are added to the generated bytecode.
      • ⚠️ The CLI does not perform type checking on these arguments, so it is recommended to use the CashScript SDK for type safety.
  • 🐛 Fix a compilation bug that allowed compilation of "unverified covenants" (#56).
  • 🐛 Fix a compilation bug that allowed compilation of OutputP2PKH(...) without new keyword (#57).

CashScript SDK

  • 🌐 Browser support! You can now use CashScript inside web projects. Filesystem-based functionality such as compilation from file are not supported due to the nature of web, so CashScript files have to be read in a different way (e.g. Fetch API) and then passed into the CashScript SDK.
  • 👛 Add minChange to transaction options. If this minChange is not reached, the change will be added to the transaction fee instead.

https://twitter.com/RoscoKalis/status/1223280232343515136