INNER CODE UNIT · Rust

scalar_slot_key

Quantova/QCore.js · src/lib.rs:223

pub fn scalar_slot_key(slot: u64) -> String {
    qcore::json::to_hex(&qcore::contract::scalar_slot_key(slot))
}

#[wasm_bindgen(js_name = tokenDecimalsSlot)]
pub fn token_decimals_slot() -> u64 {
    qcore::contract::TOKEN_DECIMALS_SLOT
}

#[wasm_bindgen(js_name = tokenSymbolSlot)]
pub fn token_symbol_slot() -> u64 {
    qcore::contract::TOKEN_SYMBOL_SLOT
}

#[wasm_bindgen(js_name = packSymbol)]
pub fn pack_symbol(symbol: &str) -> u64 {
    qcore::contract::pack_symbol(symbol)
}

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…