Crates.io | clarinet |
lib.rs | clarinet |
version | 0.10.0 |
source | src |
created_at | 2021-03-06 04:51:09.245616 |
updated_at | 2021-06-09 01:53:47.300911 |
description | Clarinet is a clarity runtime packaged as a command line tool, designed to facilitate smart contract understanding, development, testing and deployment. |
homepage | https://github.com/lgalabru/clarinet |
repository | https://github.com/lgalabru/clarinet |
max_upload_size | |
id | 364658 |
size | 16,479,476 |
Clarinet is a clarity runtime packaged as a command line tool, designed to facilitate smart contract understanding, development, testing and deployment.
Clarity is a decidable smart contract language that optimizes for predictability and security, designed by Blockstack. Smart contracts allow developers to encode essential business logic on a blockchain.
Assuming you have a working installation of Rust, Clarinet can be also be installed from Cargo as a crate, or from source.
$ cargo install clarinet --locked
$ git clone git@github.com:lgalabru/clarinet.git
$ cd clarinet
$ cargo install --path . --locked
Not recommended at this point, but you can install an outdated version with:
$ brew install lgalabru/clarinet/clarinet
Feel free to ⭐️ this repo! With 50+ stars, this package becomes eligible to homebrew-core
, and I'll work on the automation to make sure that the brew is always pointing to the latest and greatest version.
Once installed, you can use clarinet to create a new project:
$ clarinet new my-project
$ cd my-project
Clarinet will be maintaining a working directory with the following directory layout:
$ tree .
.
├── Clarinet.toml
├── README.md
├── contracts
│ └── bbtc.clar
├── settings
│ └── Development.toml
│ └── Mocknet.toml
└── tests
└── bbtc_test.ts
New contracts can be added manually, or with the following command:
$ clarinet contract new bbtc
$ clarinet check
$ clarinet test
$ clarinet console
$ clarinet deploy --mocknet