You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Convex is a general purpose, programmable decentralised network with global state. As such, there is no inherent limit on the nature of applications that can be built. Here are some of the things that Convex can be used for, and are being actively developed within the Convex community:
8
8
9
+
## Tokensiation
10
+
11
+
Convex offers a uniquely powerful system for the development of tokenised assets and applications. Tokens in Convex usually support the [CAD029](cad/029_fungible/README.md) token standard, which offers multiple advantages over the common ERC20 standard.
12
+
13
+
Tokens can be used for:
14
+
- Payments in the form of stablecoins, flatcoins, nationcoins or other digital curreny types
15
+
- Utility tokens for delivery of decentralised services
16
+
- Reward schemes and bonus programmes
17
+
- Governance of decentralised economic systems, e.g. with stake-weighted voting
18
+
9
19
## NFTs
10
20
11
21
Non-fungible tokens (NFTs) are a powerful mechanism for creating unique virtual items that can be owned, collected traded and utilised in virtual environments such as games. Each NFT has a unique on-chain ID and can be individually addressed, transferred and used within smart contracts.
Copy file name to clipboardExpand all lines: docs/tutorial/convex-lisp/lisp-guide.md
+14-10
Original file line number
Diff line number
Diff line change
@@ -6,35 +6,39 @@ authors: [mikera, helins]
6
6
tags: [convex, developer, lisp]
7
7
---
8
8
9
-
This guide is intended for developers interested in learning about Convex Lisp. We will take you through the basics of the language, all the way through to designing and deploying a simple smart contract!
9
+
This guide is for developers interested in learning the basics of Convex Lisp. We will take you through the basics of the language, all the way through to designing and deploying a simple smart contract!
10
10
11
+
<!--
11
12
## Setup
12
13
13
14
Using the [Sandbox](/sandbox) is the easiest way to experience Convex Lisp. We recommend that you try it out as you go through this guide: It's more fun to get instant feedback and try out new ideas quickly! To do this:
14
15
15
16
- Open the Sandbox (you can create a free, anonymous temporary account with one just one click!)
16
17
- Type example code from this guide into the Sandbox input window as you progress
17
18
- You will see outputs from Convex in the output window. we use `=>` to indicate expected outputs in the examples below.
19
+
-->
18
20
19
21
## Lisp basics
20
22
21
-
Lisp is all about expressions. All code in Lisp is ultimately an expression that can be evaluated to get a resulting value (or maybe an error, if something went wrong...). So let's take a quick tour through the most common types of expressions, and the values that they produce.
22
-
23
-
### Literals
24
-
25
-
The simplest type of expression is a constant literal data value, which evaluates directly to itself!
23
+
A Lisp code is contructed out of expressions, which can be evaluated to get a resulting value (or maybe an error, if something went wrong...). The classic Lisp expression is a list enclosed in parentheses `(...)` where the first element of the list is the function to be called and the following elemenst are the arguments. So to add two numbers with the `+` function you would do something like:
26
24
27
25
```clojure
28
-
1
26
+
(+23)
27
+
=> 5
29
28
```
30
29
31
-
If you type the number `1` in the Sandbox and execute it, the result is the number one itself:
30
+
So let's take a quick tour through the most common types of expressions, and the values that they produce.
31
+
32
+
### Literals
33
+
34
+
The simplest type of expression is a constant literal data value, which evaluates directly to itself! If you type the number `1` in the REPL and execute it, the result is simply the number `1` itself:
32
35
33
36
```clojure
37
+
1
34
38
=> 1
35
39
```
36
40
37
-
Convex can handle double precision floating point numbers as well:
41
+
Convex can handle double precision floating point numbers, which work the same way:
38
42
39
43
```clojure
40
44
1.5
@@ -83,7 +87,7 @@ nil
83
87
=> nil
84
88
```
85
89
86
-
Addresses (which refer to Accounts) can be expressed as a literal starting with `#`. Address literals need not refer to an account that actually exists.
90
+
Addresses (which refer to accounts) can be expressed as a literal starting with `#`. Address literals need not refer to an account that actually exists.
0 commit comments