
CashScript is a high-level programming language for smart contracts on Bitcoin Cash. Maintained by @RoscoKalis and @GeukensMathieu
Joined December 2022
- Tweets150
- Following20
- Followers828
- Likes294
Replying to @Lightswarm
Thank you for the significant contribution to this release Jerry 🫡💪
v0.14.0: ✨ Reusable functions, globals, and imports ✨
xitter.cf/CashScriptBCH/status/2…
Make sure to join our Telegram channel to keep up with active development, and let us know what you build with functions! 👇
t.me/CashScriptBCH
v0.14.0 contains a number of breaking changes, so please refer to the migration guide below 👇
cashscript.org/docs/releases…
These are just the highlights, but there's much more in this release, including new optimisations, faster compilation for large contracts and the new 'unused' modifier. For the full list of changes, please refer to the release notes 👇
cashscript.org/docs/releases…
5/ Safer testing
The MockNetworkProvider now validates every transaction against the BCH VM, using the real locking bytecode of the spent UTXOs. So invalid transactions fail in your tests, not when you broadcast them.
4/ Debugging with stack traces
Our debugging tools fully support user-defined functions. When a require fails inside a function, you get the exact file and line that failed, plus a stack trace of the calls that led there.
3/ Imports
Functions and constants can now live in separate files and be imported, even from npm packages. This opens the door to shared CashScript libraries.
Here's the contract from 1/ with its helpers moved into a library file. It compiles to the exact same bytecode.
2/ Global constants
No more magic numbers or extra constructor arguments for fixed values. Declare constants at the top level of your file, with arithmetic and concatenation evaluated at compile time.
1/ Reusable functions
We teased them last release, and here they are! Define functions at the top level of your file, with one, multiple or no return values.
The compiler uses BCH's native OP_DEFINE/OP_INVOKE from the Layla upgrade, or inlines them when that's smaller.
CashScript v0.14.0 was just released! What's new?
🧩 Reusable functions
📌 Global constants
📚 Imports & shareable libraries
🐞 Stack traces when debugging
🛡️ Safer transaction testing
CashScript retweeted
DeFi is happening on Bitcoin Cash/ $BCH!
@RoscoKalis
Our latest episode is here. Forks and Reunions.
As always, there is no time limit and this is another epic installment. Grab some snacks and get stuck in.
The guests are none other than
@cculianu is the creator of Fulcrum, an efficient privacy-preserving SPV client and a pro science carnivore.
@stevethurmond is the most ardent advocate for Cash Stamps and believes Bitcoin was designed as a peer-to-peer electronic cash system and actively promotes Bitcoin Cash as fulfilling that vision
There are also a host of other guests that drop in during this marathon.
They discuss
👑The Evolution of Bitcoin Cash bitcoin-cash:native
👑The Problem with IOU Systems like Lightning
👑The Changing Culture of Bitcoin Cash
👑The Difficulty of Recreating bitcoin:native's Genesis
👑The End of Crypto-Friendly Spaces in Europe
youtube.com/live/SJkwCaQLRuc…
We just upgraded the developer experience for all CashScript developers, whether you prefer the playground or a code editor.
The playground and VS Code extension now feature full compilation results and show you any compile errors immediately. 🫡🚀
We've just released a big new update to the CashScript Playground! It now supports v0.13 as well as 0.12 with a compiler selector, and it features full highlighting, autocomplete and hover hints. 🥳
BLISS Bonus Content #1: Rosco's CashScript Workshop!
Learn about programming in BCH with @CashScriptBCH in this masterclass from @RoscoKalis. Recorded on the last day of BLISS, but wasn't broadcast on the livestream.
Tune in and get building!
v0.13.0: ✨ Loops, P2S and shift operators ✨
xitter.cf/CashScriptBCH/status/2…
While v0.13 was a big release, we have even more coming up in our upcoming releases, including reusable functions.
Stay tuned for more on that, and make sure to join our Telegram channel to keep up with active development! 👇
t.me/CashScriptBCH
v0.13.0 contains a number of breaking changes, so please refer to the migrations guide below 👇
cashscript.org/docs/releases…
These are just the highlights, but there are many more great new updates in this version, including contract fingerprinting. For the full list of changes, please refer to the release notes 👇
cashscript.org/docs/releases…
















