@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.
15 lines (14 loc) • 683 B
TypeScript
import { type OfferStruct } from "../offers/index.js";
/** @internal Empty protocol offer struct used for Merkle padding. */
export declare const EMPTY_OFFER_STRUCT: OfferStruct;
/** @internal Returns whether an address value is the zero address. */
export declare function isZeroAddress(value: string): boolean;
/**
* @internal Returns whether an offer struct is the protocol empty offer.
*
* Tree padding may carry the empty offer's derived default group, while payload
* decoding only treats the canonical zero-group empty struct as padding.
*/
export declare function isEmptyOfferStruct(offer: OfferStruct, options?: {
readonly allowDefaultGroup?: boolean;
}): boolean;