cashscript
cashscript copied to clipboard
⚖️ Easily write and interact with Bitcoin Cash smart contracts
When debugging, it would be nice if errors like `Unused variable prefix at Line 71, Column 8` ... could be a warnings instead of compilation error. This allows for more...
It would be userful to know the opcode count as an indicator of much the contract needs to be simplified ``` Warning: Your contract's opcount is over the limit of...
We probably want to have a stand-alone repo for the testing suite There's some issues with the current setup: - ~~The initial lockfile is using a currently invalid cashscript version~~...
For walletConnect signing with `SIGHASH_UTXOS`, users need access to the transactions' sourceOutputs. It is easy to generate sourceOutputs with the `transactionBuilder.inputs` but `transactionBuilder.inputs` is currently a private property. ```js //...
when using `yarn create vue` to initialize a default vue-vite app, cashscript import is broken. first I ran into `Uncaught TypeError: class heritage import_events.EventEmitter is not an object or null`...
`tx.age` uses the `nSequence` field of the current **UTXO**, that's why I suggest changing `tx.` to something that signals that its a UTXO property. https://github.com/bitcoin/bips/blob/master/bip-0112.mediawiki Alternative names are `this.activeInputAge`, `this.age`...
this is the implementation of the snippets I post on telegram. Types are a bit different because I make a fallback if "any" is passed. this is needed if the...
When using `SignatureAlgorithm.ECDSA` in `SignatureTemplate` as a parameter in a smart contract, the resulting signature length is 71 bytes. However when calculating the fees internally the transaction it replaces a...
Hello, This is a formal request for approval from CashScript regarding the May 2025 upgrade of Bitcoin Cash (BCH). "CHIP-2021-05 VM Limits: Targeted Virtual Machine Limits" and "CHIP-2024-07 BigInt: High-Precision...