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

15 lines 506 B
"use strict"; 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