From 8d9d1e3db3c311cd2ef2bc4bbc9b98adb7670f49 Mon Sep 17 00:00:00 2001 From: Alex Graebe Date: Thu, 16 Apr 2020 14:58:36 -0700 Subject: [PATCH] Adding use cases, fixing links, update folder names --- _core/smart/overview.md | 14 ++++++++++++-- _core/smart/tutorial-counter.md | 2 +- _core/smart/tutorial.md | 6 +++--- 3 files changed, 16 insertions(+), 6 deletions(-) diff --git a/_core/smart/overview.md b/_core/smart/overview.md index ca647e76..b28b90b9 100644 --- a/_core/smart/overview.md +++ b/_core/smart/overview.md @@ -6,7 +6,7 @@ permalink: /:collection/:path.html # Introduction to Clarity {:.no_toc} -Clarity is a smart contracting language for use with the Stacks 2.0 Blockchain. It supports programmatic control over digital assets and unlocks interesting capabilities for decentralized applications. Note that not every application requires smart contracts. +Clarity is a smart contracting language for use with the Stacks 2.0 Blockchain. It supports programmatic control over digital assets. * TOC {:toc} @@ -19,6 +19,16 @@ In Nick Szabo's metaphor, the vending machine is the smart contract. The buyer a If you are new to smart contracts concepts, you should read a good general explanation first. +## Use cases + +Not every decentralized application requires smart contracts, but Clarity unlocks interesting capabilities for decentralized applications. Examples of interesting use cases include, but are not limited to: + +* Access control (e.g. pay to access) +* Non-fungible and fungible tokens +* Business model templates (e.g. subscriptions) +* App Chains +* Decentralized Autonomous Organizations + ## Language design Clarity is a list processing (LISP) language and differs from most other smart contract languages in two essential ways: @@ -42,4 +52,4 @@ Note some of the key Clarity language rules and limitations: ## Learning Clarity -You can try a [Hello World tutorial](tutorial-counter.html) or jump right into the [language reference](clarityRef.html). \ No newline at end of file +You can try a [Hello World tutorial](tutorial.html) or jump right into the [language reference](clarityRef.html). \ No newline at end of file diff --git a/_core/smart/tutorial-counter.md b/_core/smart/tutorial-counter.md index 1e8df2cf..a144ed75 100644 --- a/_core/smart/tutorial-counter.md +++ b/_core/smart/tutorial-counter.md @@ -37,7 +37,7 @@ In this step, you initialize a starter project with additional counter tutorial ```bash ? Template - one of [hello-world, counter]: counter - ? Project name: (clarity-counter-project) + ? Project name: (clarity-counter) ``` Finally, the project dependencies are installed and your project is ready for development. Because you already completed the Hello World tutorial, the project structure is familiar to you. The main difference is that we have additional tests for a new counter smart contract. diff --git a/_core/smart/tutorial.md b/_core/smart/tutorial.md index df48e7f4..75b7cb74 100644 --- a/_core/smart/tutorial.md +++ b/_core/smart/tutorial.md @@ -44,15 +44,15 @@ In this step, you initialize a starter project for Clarity development: ```bash ? Template - one of [hello-world, counter]: (hello-world) - ? Project name: (clarity-hello-world-project) + ? Project name: (clarity-hello-world) ``` Finally, the project dependencies are installed and your project is ready for development. -3. The project is located in a new folder, `clarity-hello-world-project` by default. Jump into the folder and have a look at the file structure: +3. The project is located in a new folder, `clarity-hello-world` by default. Jump into the folder and have a look at the file structure: ```bash - cd clarity-hello-world-project + cd clarity-hello-world ls ```