Evolution SDK

Language.ts

Language overview


Table of contents


utils

CDDLSchema

Signature

export declare const CDDLSchema: Schema.Literal<[0n, 1n, 2n]>

FromCDDL

Signature

export declare const FromCDDL: Schema.transform<
  Schema.Literal<[0n, 1n, 2n]>,
  Schema.SchemaClass<"PlutusV1" | "PlutusV2" | "PlutusV3", "PlutusV1" | "PlutusV2" | "PlutusV3", never>
>

Language

Plutus languages supported in cost models.

CDDL: language = 0 / 1 / 2 ; plutus_v1 / plutus_v2 / plutus_v3

Signature

export declare const Language: Schema.Literal<["PlutusV1", "PlutusV2", "PlutusV3"]>

Added in v2.0.0

Language (type alias)

Signature

export type Language = typeof Language.Type

arbitrary

Signature

export declare const arbitrary: FastCheck.Arbitrary<"PlutusV1" | "PlutusV2" | "PlutusV3">

fromCDDL

Signature

export declare const fromCDDL: (tag: 0n | 1n | 2n) => Language

toCDDL

Signature

export declare const toCDDL: (lang: Language) => bigint