UNPKG

@helios-lang/compiler

Version:

Helios is a Domain Specific Language that compiles to Plutus-Core (i.e. Cardano on-chain validator scripts). Helios is a non-Haskell alternative to Plutus. With this library you can compile Helios scripts and build Cardano transactions, all you need to bu

12 lines 607 B
/** * @param {string} s * @returns {s is ScriptPurpose} */ export function isValidScriptPurpose(s: string): s is ScriptPurpose; /** * @typedef {(typeof SCRIPT_PURPOSES) extends ReadonlyArray<infer T> ? T : never} ScriptPurpose */ export const SCRIPT_PURPOSES: readonly ["spending", "minting", "staking", "module", "testing", "mixed"]; export const anyScriptPurpose: import("@helios-lang/compiler-utils").TokenMatcher<import("@helios-lang/compiler-utils").Word>; export type ScriptPurpose = (typeof SCRIPT_PURPOSES) extends ReadonlyArray<infer T> ? T : never; //# sourceMappingURL=ScriptPurpose.d.ts.map