Skip to main content

CompileOptions

export type CompileOptions = {
  allValidatorHashTypes: Record<string, ScriptHashType>
  allValidatorIndices??: Record<string, number>
  debug??: boolean
  dependsOnOwnHash??: boolean
  excludeUserFuncs??: Set<string>
  hashDependencies: Record<string, string>
  isTestnet: boolean
  onCompileUserFunc??: (props: {
    alt??: {
      cborHex: string
      ir??: string
      sourceMap??: UplcSourceMapJsonSafe
    }
    cborHex: string
    ir??: string
    name: string
    plutusVersion: PlutusVersion
    sourceMap??: UplcSourceMapJsonSafe
  }) => void
  optimize: boolean
  ownHash??: string
  parameters??: Record<string, UplcData>
}