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.

9 lines (8 loc) • 625 B
import type { Client } from "viem"; import type { DeploylessFetchParameters, MidnightCallParameters } from "./types.js"; /** @internal Extracts viem call parameters from Midnight fetch inputs. */ export declare const callParameters: (params: MidnightCallParameters) => MidnightCallParameters; /** @internal Returns the configured deployless mode, defaulting to enabled. */ export declare const shouldUseDeployless: (params: DeploylessFetchParameters) => "force" | boolean; /** @internal Returns the RPC chain id and rejects configured-chain drift. */ export declare const resolveChainId: (client: Client) => Promise<number>;