docs

Plug-and-Play Documentation

docs.sh — Copy-paste snippets
[ _ ][ 🗗 ][ X ]

Your GitHub repository is your most important DevRel blog. Tested configs, copy-paste ready.

--tool@Sui Move CLI

Sui uses Move language with object-centric model for parallel transaction execution.

install
cargo install --locked --git https://github.com/MystenLabs/sui.git --branch mainnet sui
move
module counter::counter {
    use sui::object::{Self, UID};
    use sui::tx_context::TxContext;

    struct Counter has key {
        id: UID,
        count: u64,
    }

    public fun increment(c: &mut Counter) {
        c.count = c.count + 1;
    }
}