Clarity Smart Contract Language


Clarity of Mind Foreword Introduction

Using Clarinet

The Clarinet workflow will be introduced by working through a series of example projects. Since it is a command line tool, you need to have some familiarity with CLIs (command-line interfaces). Still, all commands will be carefully explained so you can type along and take notes. Our IDE of choice is Visual Studio Code, an open source code editor with a large following and tons of extensions to choose from. The official Clarity language support extension is called Clarity for Visual Studio Code. We suggest you install it alongside with the Rainbow Brackets extension for the best experience.

The chapters focusing on projects contain a good amount of screenshots and step by step explanations to make it easy to follow for beginning developers and people who are new to using Visual Studio Code itself. Full project source files are also made available on GitHub. The link can be found at the end of each chapter and in the links and resources section.

From this point, it is assumed that you already successfully installed Clarinet and that it is available in your system PATH (that is to say, typing clarinet in your Terminal emulator runs Clarinet). If you do not yet have it installed, head over to the introductory chapter on installing tools. You can verify Clarinet is installed properly by running clarinet --version in your favourite Terminal emulator.

% clarinet --version
clarinet-cli 1.0.2