Skip to content
Français

ArtifactIdentity

import type { ArtifactIdentity } from "@elie-laloum/outpost";
  • nameRequired
    string
    Contract name, nonempty and at most 1024 characters. A read requires the same name.
  • versionRequired
    string
    Contract version you choose, nonempty and at most 1024 characters. A read requires the same version, so change it when the format changes.
  • encodingRequired
    "json" | "binary"
    json for a defineJsonArtifact() contract, binary for a defineBinaryArtifact() contract. A read requires the same encoding.
export interface ArtifactIdentity {
  readonly name: string;
  readonly version: string;
  readonly encoding: "json" | "binary";
}