UNPKG

@morpho-org/midnight-sdk

Version:

Viem-based package for Morpho Midnight that exports protocol utilities, fetch helpers, and Midnight API utilities under a dedicated API subpath.

5 lines (4 loc) • 279 B
/** @internal Returns whether `value` is a positive power of two. */ export declare function isPowerOfTwo(value: number): boolean; /** @internal Returns the smallest power of two greater than or equal to `value`. */ export declare function nextPowerOfTwo(value: number): number;