migrateToCanonical
HardKAS SDK / artifacts/src / migrateToCanonical
Function: migrateToCanonical()
migrateToCanonical(
v1Artifact):ArtifactPayload
Defined in: packages/artifacts/src/migration.ts:392
Migrates a v1 artifact to canonical format by updating the schema, version, and calculating the contentHash.
Parameters
v1Artifact
The legacy v1 artifact to migrate
Returns
The migrated artifact in canonical format
Deprecated
Use migrateArtifactPayload() instead. This function is retained
for backward compatibility with existing callers.