UNPKG

@symbioticfi/relay-stats-ts

Version:

TypeScript library for deriving validator sets from Symbiotic network contracts

16 lines 907 B
import type { Hex } from 'viem'; export type BlockTagPreference = 'finalized' | 'latest'; export declare const blockTagFromFinality: (finalized: boolean) => BlockTagPreference; export declare const bigintToBytes: (value: bigint, size: number) => Uint8Array; export declare const bigintToBytes32: (value: bigint) => Uint8Array; export declare const bytesToBigint: (bytes: Uint8Array) => bigint; export declare const bytesToLimbs: (bytes: Uint8Array, limbSize: number) => readonly bigint[]; export declare const sortHexAsc: <T extends { key: Hex; }>(items: readonly T[]) => T[]; export declare const clampWithinBuffer: (value: bigint, buffer: bigint, lowerBound: bigint, upperBound: bigint) => bigint; export declare const toBlockRange: (fromEstimate: bigint, toEstimate: bigint, buffer: bigint, highestBlock: bigint) => { fromBlock: bigint; toBlock: bigint; }; //# sourceMappingURL=utils.d.ts.map