Module 0x2::sui
Coin
use 0x1::option;
use 0x2::balance;
use 0x2::coin;
use 0x2::transfer;
use 0x2::tx_context;
use 0x2::url;
Struct SUI
Name of the coin
struct SUI has drop
Click to open
Fields
Constants
Sender is not @0x0 the system address.
const ENotSystemAddress: u64 = 1;
const EAlreadyMinted: u64 = 0;
The amount of Mist per Sui token based on the fact that mist is 10^-9 of a Sui token
const MIST_PER_SUI: u64 = 1000000000;
The total supply of Sui denominated in Mist (10 Billion * 10^9)
const TOTAL_SUPPLY_MIST: u64 = 10000000000000000000;
The total supply of Sui denominated in whole Sui tokens (10 Billion)
const TOTAL_SUPPLY_SUI: u64 = 10000000000;
Function new
Register the SUI Coin to acquire its Supply. This should be called only once during genesis creation.
fun new(ctx: &mut tx_context::TxContext): balance::Balance<sui::SUI>
Click to open
Implementation
Function transfer
public entry fun transfer(c: coin::Coin<sui::SUI>, recipient: address)
Click to open