Skip to content

Commit

Permalink
Create examples.md (MystenLabs#763)
Browse files Browse the repository at this point in the history
* Create examples.md

Summarize Sui code samples for easy reference and findability

* Update doc/src/explore/examples.md

Co-authored-by: Sam Blackshear <[email protected]>

* Update doc/src/explore/examples.md

Co-authored-by: Sam Blackshear <[email protected]>

* Update doc/src/explore/examples.md

Co-authored-by: Sam Blackshear <[email protected]>

* Update doc/src/explore/examples.md

Co-authored-by: Sam Blackshear <[email protected]>

* Update doc/src/explore/examples.md

Co-authored-by: Sam Blackshear <[email protected]>

* Update doc/src/explore/examples.md

Co-authored-by: Sam Blackshear <[email protected]>

Co-authored-by: Sam Blackshear <[email protected]>
  • Loading branch information
Clay-Mysten and sblackshear authored Mar 11, 2022
1 parent 6de3ba8 commit 4b74271
Showing 1 changed file with 27 additions and 0 deletions.
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.

0 comments on commit 4b74271

Please sign in to comment.