sui
Installation
SKILL.md
Sui L1 Development
What You Probably Got Wrong
Sui Move is NOT Aptos Move
Sui forked Move from Diem and fundamentally changed the storage model. If you learned Move from Aptos, unlearn these things:
| Concept | Aptos Move | Sui Move |
|---|---|---|
| Storage model | Global storage (move_to, borrow_global) |
Object-centric (objects have UIDs) |
| Resource location | Stored under account addresses | Objects exist independently with ownership |
| Transfer | coin::transfer(from, to) with signer |
transfer::transfer(obj, recipient) |
| Entry functions | public entry fun f(signer: &signer) |
public entry fun f(ctx: &mut TxContext) |
| Object identity | No native concept | Every object has sui::object::UID |
| Standard library | aptos_framework |
sui (at 0x2) |
| Coin type | aptos_framework::coin::Coin<T> |
sui::coin::Coin<T> |
| Init function | init_module(signer: &signer) |
fun init(ctx: &mut TxContext) |