UNPKG

@exromany/lido-csm-sdk

Version:

[![GitHub license](https://img.shields.io/github/license/lidofinance/lido-csm-sdk?color=limegreen)](https://github.com/lidofinance/lido-csm-sdk/blob/main/LICENSE.txt) [![Version npm](https://img.shields.io/npm/v/@lidofinance/lido-csm-sdk?label=version)](h

25 lines 762 B
import { BusRegistry } from './bus-registry.js'; import { CsmSDKCacheable } from './csm-sdk-cacheable.js'; export class CsmSDKModule extends CsmSDKCacheable { constructor(props, name) { super(); Object.defineProperty(this, "core", { enumerable: true, configurable: true, writable: true, value: void 0 }); Object.defineProperty(this, "bus", { enumerable: true, configurable: true, writable: true, value: void 0 }); this.core = props.core; this.bus = (props.bus ?? new BusRegistry()); if (name) { this.bus.register(this, name); } } } //# sourceMappingURL=csm-sdk-module.js.map