UNPKG

@zombienet/orchestrator

Version:

ZombieNet aim to be a testing framework for substrate based blockchains, providing a simple cli tool that allow users to spawn and test ephemeral Substrate based networks

31 lines (30 loc) 863 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Client = void 0; exports.getClient = getClient; exports.setClient = setClient; class Client { constructor(configPath, namespace, tmpDir, command, providerName) { this.podMonitorAvailable = false; this.configPath = configPath; this.namespace = namespace; this.debug = true; this.timeout = 30; // secs this.tmpDir = tmpDir; this.localMagicFilepath = `${tmpDir}/finished.txt`; this.command = command; this.providerName = providerName; } } exports.Client = Client; let client; function getClient() { if (!client) throw new Error("Client not initialized"); return client; } function setClient(c) { if (client) throw new Error("Client already initialized"); client = c; }