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

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