erc20-wizard
Version:
CLI for creating and deploying ERC20 tokens on Ethereum network.
27 lines (26 loc) • 959 B
JavaScript
;
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const configstore_1 = __importDefault(require("configstore"));
const config_1 = require("../constants/config");
class ConfigurationService {
constructor() {
this.get = () => {
return {
infura: {
projectId: this.configStore.get(config_1.configKeys.infuraProjectId),
},
};
};
this.set = (infuraProjectId) => {
this.configStore.set(config_1.configKeys.infuraProjectId, infuraProjectId);
};
this.clear = () => {
this.configStore.clear();
};
this.configStore = new configstore_1.default(config_1.configKeys.configProjectName);
}
}
exports.ConfigurationService = ConfigurationService;