burst-whale-watch
Version:
An account watcher for Burstcoin
21 lines • 526 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
class Collector {
constructor(store) {
this.store = store;
}
start() {
this.onStart();
}
stop() {
this.onStop();
}
update(fieldName, data) {
const fieldState = this.store.get()[fieldName];
this.store.update(() => ({
[fieldName]: Object.assign(Object.assign({}, fieldState), data)
}));
}
}
exports.Collector = Collector;
//# sourceMappingURL=collector.js.map