11# Clarinet
22
3+ [ ![ CI] ( https://github.com/stx-labs/clarinet/actions/workflows/ci.yaml/badge.svg )] ( https://github.com/stx-labs/clarinet/actions/workflows/ci.yaml )
4+ [ ![ Release] ( https://img.shields.io/github/v/release/stx-labs/clarinet )] ( https://github.com/stx-labs/clarinet/releases/latest )
5+ [ ![ npm] ( https://img.shields.io/npm/v/@stacks/clarinet-sdk )] ( https://www.npmjs.com/package/@stacks/clarinet-sdk )
6+ [ ![ License: GPL v3] ( https://img.shields.io/badge/License-GPLv3-blue.svg )] ( https://www.gnu.org/licenses/gpl-3.0 )
7+ [ ![ VS Marketplace] ( https://img.shields.io/visual-studio-marketplace/v/stackslabs.clarity-stacks?label=VSCode )] ( https://marketplace.visualstudio.com/items?itemName=stackslabs.clarity-stacks )
8+
39Clarinet is the fastest way to build, test, and deploy smart contracts on the Stacks blockchain. It
410gives you a local devnet, REPL, testing framework, and debugging tools to ship high-quality Clarity
511code with confidence.
612
7- - 🧑💻 ** Leverage a powerful CLI** Create new projects, manage your smart contracts and their
13+ - 🧑💻 ** Leverage a powerful CLI: ** Create new projects, manage your smart contracts and their
814 dependencies using clarinet requirements, and interact with your code through the built-in REPL.
915
10- - 🧪 ** Write unit tests with the SDK** Use the Clarinet SDK to write unit tests in a familiar JS
16+ - 🧪 ** Write unit tests with the SDK: ** Use the Clarinet SDK to write unit tests in a familiar JS
1117 environment and validate contract behavior.
1218
13- - 🛠️ ** Run a private blockchain environment** Spin up a local devnet with nodes, miners, and APIs so
19+ - 🛠️ ** Run a private blockchain environment: ** Spin up a local devnet with nodes, miners, and APIs so
1420 you can test and integrate your code.
1521
16- - 🔍 ** VSCode extension** : Linter , step by step debugger, helps writing smart contracts
17- ( autocompletion, documentation etc)
22+ - 🔍 ** Enhance your editor with the VSCode extension: ** Get linting , step-by- step debugging,
23+ autocompletion, and documentation as you write smart contracts.
1824
1925---
2026
21- ### Documentation
27+ ## Documentation
2228
2329- [ Clarinet CLI] ( https://docs.stacks.co/clarinet )
2430- [ Clarinet JS SDK and testing framework] ( https://docs.stacks.co/clarinet/testing-with-clarinet-sdk )
2531
2632---
2733
28- ### Quickstart
34+ ## Quickstart
2935
3036``` bash
3137# Install Clarinet
@@ -76,14 +82,14 @@ clarinet console
7682(contract-call? .counter get-count tx-sender)
7783```
7884
79- ### Contributing
85+ ## Contributing
8086
8187Contributions are welcome and appreciated. The following sections provide information on how you can
8288contribute to Clarinet.
8389
84- #### Prerequisites
90+ ### Prerequisites
8591
86- Before contributing to Clarinet, you need the following tools.
92+ Before contributing to Clarinet, you need the following tools.
8793Although it will work with older versions, the team always tries to keep up with the latest versions
8894of Rust and Node.js (LTS) tooling.
8995
@@ -92,13 +98,13 @@ of Rust and Node.js (LTS) tooling.
9298- Node (>=v24.4.1)
9399- NPM (>=11.5.2)
94100
95- #### Guide
101+ ### Guide
96102
97103This repo follows the [ Conventional Commit] ( https://www.conventionalcommits.org/en/v1.0.0/#summary )
98104specification when writing commit messages.
99105
100106** Note:** These conventions are helpful for any commit message, but all PR end up being merged with
101- "squash and merge", giving an other chance to refine the commit messages.
107+ "squash and merge", giving another chance to refine the commit messages.
102108
103109To start contributing, fork this repo and open a new branch:
104110
@@ -108,40 +114,40 @@ To start contributing, fork this repo and open a new branch:
108114 git checkout -b < my-branch>
109115 ```
110116
111- ##### Contributing to the CLI
117+ #### Contributing to the CLI
112118
1131191 . After making your changes, ensure the following:
114120 - ` cargo build ` runs successfully.
115121 - ` cargo tst ` runs successfully.
116- - ` cargo tst ` is an alias declared in ` ./cargo/config ` , it runs
122+ - ` cargo tst ` is an alias declared in ` ./. cargo/config.toml ` , it runs
117123 [ cargo-nextest] ( https://crates.io/crates/cargo-nextest )
118124 - You have formatted your code with ` cargo fmt-stacks `
119- - All functional tests in the ` examples ` directory pass.
125+ - All functional tests in the ` components/clarinet-cli/ examples` directory pass.
120126 ``` bash
121- for testdir in $( ls examples) ; do
122- pushd examples/${testdir}
123- ../../target/debug/clarinet check .
127+ for testdir in $( ls components/clarinet-cli/ examples) ; do
128+ pushd components/clarinet-cli/ examples/${testdir}
129+ ../../../../ target/debug/clarinet check .
124130 popd
125131 done
126132 ```
1271331. Submit a pull request against the ` main` branch for review.
128134
129- # #### Contributing to the JS SDK
135+ # ### Contributing to the JS SDK
130136
131137For VSCode users, we recommend opening the following workspace
132138` ./components/clarinet-sdk/clarinet-sdk.code-workspace` . It' s set up so that rust-analyzer uses the
133139Wasm target.
134140
135141The SDK is divided between the Rust lib compiled to Wasm `./components/clarinet-sdk-wasm` and a TS
136- wrapper around it: `./components/clarinet-sdk-wasm `.
142+ wrapper around it: `./components/clarinet-sdk`.
137143
1381441. Compile the Wasm package with `npm run build:sdk-wasm`
1391451. Compile the SDK with `npm run build:sdk`
1401461. Test with `npm test`
141147
142- Learn more in the [SDK Readme .md](./components/clarinet-sdk/README.md).
148+ Learn more in the [SDK README .md](./components/clarinet-sdk/README.md).
143149
144- ### Code of Conduct
150+ ## Code of Conduct
145151
146152Please read our [Code of conduct](../../../.github/blob/main/CODE_OF_CONDUCT.md) since we expect
147153project participants to adhere to it.
0 commit comments