use js_sys::JsString;
use wasm_bindgen::prelude::*;
#[wasm_bindgen]
extern "C" {
type InterShardMemory;
#[wasm_bindgen(static_method_of = InterShardMemory, js_name = getLocal)]
fn get_local() -> Option<JsString>;
#[wasm_bindgen(static_method_of = InterShardMemory, js_name = setLocal)]
fn set_local(val: &JsString);
#[wasm_bindgen(static_method_of = InterShardMemory, js_name = getRemote)]
fn get_remote(shard: &JsString) -> Option<JsString>;
}
pub fn get_local() -> Option<JsString> {
InterShardMemory::get_local()
}
pub fn set_local(val: &JsString) {
InterShardMemory::set_local(val)
}
pub fn get_remote(shard: &JsString) -> Option<JsString> {
InterShardMemory::get_remote(shard)
}