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

16 lines 519 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.parseBatch = void 0; const parseBatch = (rawBatch, batchIndex) => { const nextBatchIndex = rawBatch & 0xffffffffffffffffffffffffffffffffn; const keysCount = (rawBatch >> 128n) & 0xffffffffffffffffn; const nodeOperatorId = rawBatch >> 192n; return { batchIndex, nodeOperatorId, keysCount, nextBatchIndex, }; }; exports.parseBatch = parseBatch; //# sourceMappingURL=parse-batch.js.map