@exromany/lido-csm-sdk
Version:
[](https://github.com/lidofinance/lido-csm-sdk/blob/main/LICENSE.txt) [](h
15 lines • 506 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.parseBatch = void 0;
const parseBatch = (rawBatch) => {
const nextBatchIndex = rawBatch & 0xffffffffffffffffffffffffffffffffn;
const keysCount = (rawBatch >> 128n) & 0xffffffffffffffffn;
const nodeOperatorId = rawBatch >> 192n;
return {
nextBatchIndex,
nodeOperatorId,
keysCount: Number(keysCount),
};
};
exports.parseBatch = parseBatch;
//# sourceMappingURL=parse-batch.js.map