cashscript
cashscript copied to clipboard
⚖️ Easily write and interact with Bitcoin Cash smart contracts
Before the re-targeted VM Limits on Bitcoin Cash, there was both the Opcode-count and the bytesize limit to take into account. With the removal of the 201 opcode limit, we...
the article 'Smart Contracts on Ethereum, Bitcoin and Bitcoin Cash.' was written in 2019 and is linked in the readme we might want to take the time to update it...
@mainnet-pat mentioned an issue on telegram (https://t.me/bch_compilers/8024) > hm it is not trivial in context of multicontract spend to figure out the tx size > it is like for each...
Solidity has it now we would have to do ```solidity int someVar = 5; if(condition){ someVar = 6; } ``` or ```solidity int someVar = 5; if(condition) someVar = 6;...
this makes documentation of the library right inside the code editor possible. we can look at libauth as an example
Multiple people have started to describe their tx-shapes for each function inside the .cash file an example of this is CashStarter by @SayoshiNakamario : https://github.com/SayoshiNakamario/CashStarter/blob/main/CashStarter.cash @jimtendo wrote: > But, the...
Rosco floated the idea that perhaps we could add syntactic sugar for the activeInput: `this.input` (or `this.activeInput`) for `tx.inputs[this.activeInputIndex] ` which would simplify common syntax and to potentially do something...
Currently in CashScript there is no way to define global constants. This feature has also been requested by @dagurval >one thing I’ve missed is defining (global) constants. > >I can...
@jimtendo started a convestion on telegram (https://t.me/bch_compilers/7955) to ask > Might it be feasible in future to have some kind of `compileScript ` function that allows CashScript to compile a...
Jest isn't the fastest testing framework and we have quite a lot of tests for CahsScript. Jest also has bad ESM support, so our testing command looks like this `"test":...