import type { ConflictReason } from './conflict-reason'; import type { HexEncodedString } from '../utils/hex-encoding'; import type { LedgerInclusionState } from './ledger-inclusion-state'; /** * Response from the metadata endpoint. */ export interface IBlockMetadata { /** * The block id. */ blockId: HexEncodedString; /** * The parent block ids. */ parents: HexEncodedString[]; /** * Is the block solid. */ isSolid: boolean; /** * Is the block referenced by a milestone. */ referencedByMilestoneIndex?: number; /** * Is this block a valid milestone. */ milestoneIndex?: number; /** * The ledger inclusion state. */ ledgerInclusionState?: LedgerInclusionState; /** * The conflict reason. */ conflictReason?: ConflictReason; /** * Should the block be promoted. */ shouldPromote?: boolean; /** * Should the block be reattached. */ shouldReattach?: boolean; }