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

7 lines 408 B
import { JSONParse } from 'json-with-bigint'; import z from 'zod'; import { createMerkleTreeSchema } from '../common/utils/index.js'; const RewardsLeaf = z.tuple([z.coerce.bigint(), z.coerce.bigint()]); const RewardsMerkleTreeSchema = createMerkleTreeSchema(RewardsLeaf); export const parseRewardsTree = (data) => RewardsMerkleTreeSchema.parse(JSONParse(data)); //# sourceMappingURL=parse-rewards-tree.js.map