Skip to main content

CovenantTransitionFactSchema

HardKAS SDK


HardKAS SDK / artifacts/src / CovenantTransitionFactSchema

Variable: CovenantTransitionFactSchema

const CovenantTransitionFactSchema: ZodObject<{ artifactSha256: ZodString; contentHash: ZodOptional<ZodString>; contractName: ZodString; covenantId: ZodString; draftArtifactId: ZodOptional<ZodString>; entrypoint: ZodString; hardkasVersion: ZodString; hashVersion: ZodUnion<[ZodNumber, ZodString]>; networkId: ZodEnum<["mainnet", "testnet-10", "testnet-11", "testnet-12", "simnet", "simnet-1", "devnet", "simulated", "igra"]>; nextState: ZodOptional<ZodRecord<ZodString, ZodUnknown>>; planArtifactId: ZodString; policy: ZodOptional<ZodString>; previousState: ZodOptional<ZodRecord<ZodString, ZodUnknown>>; schema: ZodLiteral<"hardkas.covenantTransitionFact.v1">; spentOutpoint: ZodObject<{ index: ZodNumber; transactionId: ZodString; }, "strip", ZodTypeAny, { index?: number; transactionId?: string; }, { index?: number; transactionId?: string; }>; successorAmountSompi: ZodOptional<ZodString>; successorOutpoint: ZodOptional<ZodObject<{ index: ZodNumber; transactionId: ZodString; }, "strip", ZodTypeAny, { index?: number; transactionId?: string; }, { index?: number; transactionId?: string; }>>; timestamp: ZodString; txId: ZodString; validation: ZodObject<{ diagnostic: ZodOptional<ZodString>; scriptVmPassed: ZodOptional<ZodBoolean>; structuralPassed: ZodBoolean; vmStatus: ZodOptional<ZodString>; }, "strip", ZodTypeAny, { diagnostic?: string; scriptVmPassed?: boolean; structuralPassed?: boolean; vmStatus?: string; }, { diagnostic?: string; scriptVmPassed?: boolean; structuralPassed?: boolean; vmStatus?: string; }>; }, "strip", ZodTypeAny, { artifactSha256?: string; contentHash?: string; contractName?: string; covenantId?: string; draftArtifactId?: string; entrypoint?: string; hardkasVersion?: string; hashVersion?: string | number; networkId?: "simnet" | "mainnet" | "testnet-10" | "testnet-11" | "testnet-12" | "simnet-1" | "devnet" | "simulated" | "igra"; nextState?: Record<string, unknown>; planArtifactId?: string; policy?: string; previousState?: Record<string, unknown>; schema?: "hardkas.covenantTransitionFact.v1"; spentOutpoint?: { index?: number; transactionId?: string; }; successorAmountSompi?: string; successorOutpoint?: { index?: number; transactionId?: string; }; timestamp?: string; txId?: string; validation?: { diagnostic?: string; scriptVmPassed?: boolean; structuralPassed?: boolean; vmStatus?: string; }; }, { artifactSha256?: string; contentHash?: string; contractName?: string; covenantId?: string; draftArtifactId?: string; entrypoint?: string; hardkasVersion?: string; hashVersion?: string | number; networkId?: "simnet" | "mainnet" | "testnet-10" | "testnet-11" | "testnet-12" | "simnet-1" | "devnet" | "simulated" | "igra"; nextState?: Record<string, unknown>; planArtifactId?: string; policy?: string; previousState?: Record<string, unknown>; schema?: "hardkas.covenantTransitionFact.v1"; spentOutpoint?: { index?: number; transactionId?: string; }; successorAmountSompi?: string; successorOutpoint?: { index?: number; transactionId?: string; }; timestamp?: string; txId?: string; validation?: { diagnostic?: string; scriptVmPassed?: boolean; structuralPassed?: boolean; vmStatus?: string; }; }>

Defined in: packages/artifacts/src/schemas.ts:1737

hardkas.covenantTransitionFact.v1 Immutable fact capturing the full context of a covenant transition: identity, contract ABI, entrypoint, state before/after, consumed/successor outpoints, plan, and validation results.