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.

16 lines (15 loc) • 689 B
import type { Hex } from "viem"; /** `MidnightBundlesV2` group cancellation: marks `group` fully consumed if its consumption is at most `maxConsumed`. */ export interface GroupCancellation { /** Offer group id. */ readonly group: Hex; /** Largest current group consumption accepted (uint128); the whole call reverts above it. */ readonly maxConsumed: bigint; } /** `MidnightBundlesV2` collateral transfer: `assets` of the market collateral at `collateralIndex`. */ export interface CollateralTransfer { /** Index of the collateral in the market's `collateralParams`. */ readonly collateralIndex: bigint; /** Collateral assets. */ readonly assets: bigint; }