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

We might also want to add a `BchdGrpcNetworkProvider` I experimented with the BCHD grpc years ago, i used the library `@improbable-eng/grpc-web` back then but now `grpc-web` seems to be the...

javascript-sdk

Consider exporting the `gatherUtxos` utils function and maybe a variant to `gatherTokenUtxos` Because it's often useful to have the user add input Utxos up to a certain amount, both for...

javascript-sdk

I mainly envision usage for byte-enums, which can provide byte values with clear semantic value: ```solidity enum identifiers { BaseContract = 0x00, SidecarContract = 0x01, DaoContract = 0x02, AuctionContract =...

This issue is mainly just brainstorming about the type system for CashScript ### tokenCategory example consider the following example ```solidity bytes tokenCategoryResultInput0 = tx.inputs[0].tokenCategory; bytes32 tokenCategoryInput0, bytes capabilityInput0 = tokenCategoryResultInput0.split(32)...

An Array type for CashScript have been a long-standing idea. Rosco in Sept 2019 discussion: > This is my thought. I guess I'll want to support arrays at some point...

cashc-compiler

When trying to check cashscript's bundle size on bundlephobia, we run into an error. ![CleanShot 2024-12-17 at 12 01 50@2x](https://github.com/user-attachments/assets/3124518d-3642-416c-af22-163d5a31570e)

Consider making `provider` in `Contract` options required, the `provider` needs to be passed in explicitly for the `TransactionBuilder` class anyways, best to be explicit in both cases IMO

javascript-sdk
breaking

There is a [bounded loops proposal](https://github.com/bitjson/bch-loops) for BCH. It would be good to consider the possible syntax this would translate to in CashScript. The bounded loops construction enables indefinite loops,...

cashc-compiler

By having adapters in their own package they could be versioned separately from the main branch it would also avoid all adapters and their dependencies being part of the source...

ecosystem