UNPKG

kohin-js

Version:

The Kohin JS is a comprehensive developer toolkit designed to integrate Kohin's decentralized insurance system seamlessly into your applications. It enables efficient interaction with Kohin smart contracts and backend APIs, facilitating management and ana

30 lines (29 loc) 676 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.configStore = void 0; class ConfigStore { constructor() { this.rpcUrl = ""; this.envMode = ""; } static getInstance() { if (!ConfigStore.instance) { ConfigStore.instance = new ConfigStore(); } return ConfigStore.instance; } setRpcUrl(url) { this.rpcUrl = url; } getRpcUrl() { return this.rpcUrl; } setEnvMode(mode) { this.envMode = mode; } getEnvMode() { return this.envMode; } } // Export the single instance exports.configStore = ConfigStore.getInstance();