Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create examples.md #763

Merged
merged 7 commits into from
Mar 11, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions doc/src/explore/examples.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
---
title: Examples of Sui Smart Contracts
---

Find sample Sui smart contract implementations in the [sui_programmability/examples](../../../sui_programmability/examples) directory. Here is a rundown of existing examples.

## Basics

Use the [Basics](../../../sui_programmability/examples/basics) example to explore object creation, update, and exchange.

## DeFi

In the [DeFi](../../../sui_programmability/examples/defi) example, find an atomic swap leveraging an escrow agent that is trusted for liveness, but not safety.

## Fungible Tokens

In the [Fungible Tokens](../../../sui_programmability/examples/fungible_tokens) example, see a token managed by a treasurer trusted for minting and burning for
how (e.g.) a fiat-backed stablecoin would work.

## Games

The [Games](../../../sui_programmability/examples/games) example lets you try out and modify toy games built on top of Sui! These include classic Tic Tac Toe
, rock paper scissors, and various versions of an adventure game (Hero).

## NFTs

In the [NFTs](../../../sui_programmability/examples/nfts) example, browse non-fungible tokens of various types and see NFTs representing assets in a game.