tokamak-staking-lib
Version:
tokamak staking library
20 lines (19 loc) • 632 B
JavaScript
;
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const layer2_1 = __importDefault(require("./layer2"));
class Layer2s {
constructor() { }
static get(address) {
if (this._contracts.has(address)) {
return this._contracts.get(address);
}
let contract = new layer2_1.default(address);
this._contracts.set(address, contract);
return contract;
}
}
exports.default = Layer2s;
Layer2s._contracts = new Map();