@exromany/lido-csm-sdk
Version:
[](https://github.com/lidofinance/lido-csm-sdk/blob/main/LICENSE.txt) [](h
7 lines • 408 B
JavaScript
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