cashscript icon indicating copy to clipboard operation
cashscript copied to clipboard

⚖️ Easily write and interact with Bitcoin Cash smart contracts

Results 111 cashscript issues
Sort by recently updated
recently updated
newest added

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...

cashc-compiler
breaking

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...

ecosystem
documentation

@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...

javascript-sdk

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;...

enhancement
cashc-compiler

this makes documentation of the library right inside the code editor possible. we can look at libauth as an example

enhancement
ecosystem

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...

enhancement
cashc-compiler

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...

enhancement
cashc-compiler

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...

enhancement
cashc-compiler

@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...

enhancement
cashc-compiler

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":...

refactor
tests