@nori-zk/mina-token-bridge
Version:
A Mina zk-program contract allowing users to mint tokens on Nori Bridge.
26 lines • 633 B
JavaScript
export class LocalStorageSim {
constructor() {
this.store = {};
}
getItem(key) {
return this.store[key] ?? null;
}
setItem(key, value) {
this.store[key] = value;
}
removeItem(key) {
delete this.store[key];
}
clear() {
this.store = {};
}
key(index) {
return Object.keys(this.store)[index] ?? null;
}
get length() {
return Object.keys(this.store).length;
}
}
/*(global as any).window = (global as any).window || {};
(global as any).window.localStorage = new LocalStorageSim();*/
//# sourceMappingURL=localStorageSim.js.map