Skip to content

Latest commit

 

History

History
26 lines (15 loc) · 1.33 KB

examples.md

File metadata and controls

26 lines (15 loc) · 1.33 KB
title
Examples of Sui Smart Contracts

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

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.