A slightly larger demo of features, (standard) libraries and programming patterns (listed below) in Sui Move, with the theme of an RPG that stores avatars, shops and weapons on-chain.
- Abilities (copy, drop, key, store)
- Asserts, aborts and error codes
- Constants
- Events
- Functions (entry functions, library functions and private functions)
- Generics (including phantom types)
- Module Initializers
- Objects (owned and shared)
- References
- Structs
- Vectors
- Capabilities
- Hot Potato
- Marker types
- One-time witness
- Witness pattern
std::option
-- Optionsstd::string
-- Strings (built on top of vectors)sui::coin
,sui::balance
-- Generic Token APIsui::dynamic_field
-- Dynamic fieldssui::dynamic_object_field
-- dynamic object fieldssui::transfer
-- Transferring and sharing
To run this demo, you will need a recent (0.13+) version of Sui installed -- it has been tested with 0.15.