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

12 lines 387 B
export const parseBatch = (rawBatch, batchIndex) => { const nextBatchIndex = rawBatch & 0xffffffffffffffffffffffffffffffffn; const keysCount = (rawBatch >> 128n) & 0xffffffffffffffffn; const nodeOperatorId = rawBatch >> 192n; return { batchIndex, nodeOperatorId, keysCount, nextBatchIndex, }; }; //# sourceMappingURL=parse-batch.js.map