INNER CODE UNIT · Rust

nonce_slot_key

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

pub fn nonce_slot_key(signer_hex: &str) -> Result<String, JsError> {
    Ok(qcore::json::to_hex(&qcore::contract::nonce_slot_key(
        &addr32(signer_hex)?,
    )))
}

#[wasm_bindgen(js_name = scalarSlotKey)]
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 {

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…