Skip to content

Latest commit

 

History

History
29 lines (16 loc) · 1.48 KB

examples.md

File metadata and controls

29 lines (16 loc) · 1.48 KB
title
Examples of Sui Smart Contracts

Find sample Sui smart contract implementations in the sui_programmability/examples directory. Also see examples.sui.io for a feature-by-feature guide to Sui Move.

Here is a rundown of existing examples in the Sui repository.

Basics

In the Basics example, explore object creation, update, and exchange.

DeFi

In the DeFi example, find an atomic swap leveraging an escrow agent that is trusted for liveness, but not safety.

Fungible Tokens

In the 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

In the Games example, 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 example, browse non-fungible tokens of various types and see NFTs representing assets in a game.