Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

cashc

Package Overview
Dependencies
Maintainers
1
Versions
61
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cashc

Compile Cash Contracts to Bitcoin Cash Script or artifacts

  • 0.1.1-beta
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
394
decreased by-12.25%
Maintainers
1
Weekly downloads
 
Created
Source

CashScript Compiler (cashc)

Build Status Coverage Status NPM Version NPM Monthly Downloads NPM License

CashScript is a high level language enabling basic smart contract functionality on Bitcoin Cash. While these cash contracts are less powerful than Ethereum's smart contracts, CashScript was in many ways inspired by Ethereum's development ecosystem. Ethereum has always had one of the most accessible development ecosystems in terms of tooling, and with CashScript we want to bring that accessibility to Bitcoin Cash.


cashc can be used as an npm package, or as a standalone CLI tool. The npm package exposes functionality that is used to build libraries on top of cashc, and should not be used for other purposes. If you do want to build your own library on top of cashc, a full documentation is forthcoming, but if you want to integrate Cash Contracts into JavaScript or TypeScript projects, you should use the CashScript JavaScript SDK instead.

The rest of this README focuses on the standalone cashc CLI tool, which is used to compile Cash Contract files (.cash) into .json artifact files. These artifacts can be imported and used by any of the CashScript SDKs (the only existing SDK at the moment is the JavaScript SDK).

Installation

You can use npm to install the cashc command line tool gloablly.

npm install -g cashc

Usage

The cashc CLI tool can be used to compile .cash files to JSON artifact files.

Usage: cashc [options] [source_file]

Options:
  --output, -o  Specify a file to output the generated artifact.
                                                             [string] [required]
  --help        Show help                                              [boolean]
  --version     Show version number                                    [boolean]

The CashScript Language

CashScript is a high-level language that allows you to write cash contracts in a straightforward and familiar way. It is inspired by Ethereum's Solidity, but it is not the same, and cash contracts work very differently from Ethereum's smart contracts. See the Language Documentation for more information on the language itself.

Keywords

FAQs

Package last updated on 21 Jul 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc