From 4b742718b2e8dbe239d0151425be4b33bf8d348e Mon Sep 17 00:00:00 2001 From: Clay-Mysten <100217682+Clay-Mysten@users.noreply.github.com> Date: Fri, 11 Mar 2022 10:47:59 -0800 Subject: [PATCH] Create examples.md (#763) * Create examples.md Summarize Sui code samples for easy reference and findability * Update doc/src/explore/examples.md Co-authored-by: Sam Blackshear * Update doc/src/explore/examples.md Co-authored-by: Sam Blackshear * Update doc/src/explore/examples.md Co-authored-by: Sam Blackshear * Update doc/src/explore/examples.md Co-authored-by: Sam Blackshear * Update doc/src/explore/examples.md Co-authored-by: Sam Blackshear * Update doc/src/explore/examples.md Co-authored-by: Sam Blackshear Co-authored-by: Sam Blackshear --- doc/src/explore/examples.md | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 doc/src/explore/examples.md diff --git a/doc/src/explore/examples.md b/doc/src/explore/examples.md new file mode 100644 index 0000000000000..e7919568609a6 --- /dev/null +++ b/doc/src/explore/examples.md @@ -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.