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
Copy file name to clipboardExpand all lines: gitlab-pages/docs/syntax/contracts/contracts.md
+67-1
Original file line number
Diff line number
Diff line change
@@ -7,10 +7,76 @@ import Syntax from '@theme/Syntax';
7
7
8
8
Smart contracts are programs that run on a blockchain.
9
9
For an overview of how smart contracts work on Tezos, see [An introduction to smart contracts](https://docs.tezos.com/smart-contracts) on docs.tezos.com.
10
-
For an example LIGO contract, see [Quickstart](../../tutorials/getting-started) or load one of the templates in the [Online IDE](https://ide.ligolang.org/).
11
10
12
11
For the data type that represents a contract, see [Contracts](../../data-types/contracts-type).
13
12
13
+
## Example contract
14
+
15
+
This example contract stores an integer and provides two entrypoints that allow callers to add to that integer or subtract from that integer.
16
+
The code includes automated tests for the contract that are not part of the contract itself; for more information about tests, see [Testing](../../testing).
For more examples of contracts, see [Quickstart](../../tutorials/getting-started) or load one of the templates in the [Online IDE](https://ide.ligolang.org/).
0 commit comments