@harmoniclabs/plu-ts-onchain
Version:
An embedded DSL for Cardano smart contracts creation coupled with a library for Cardano transactions, all in Typescript
31 lines (30 loc) • 1.54 kB
TypeScript
import type { PBool } from "../PTypes/PBool.js";
import type { PData } from "../PTypes/PData/PData.js";
import type { PLam } from "../PTypes/PFn/PLam.js";
import type { PUnit } from "../PTypes/PUnit.js";
import type { Term } from "../Term/index.js";
import { V1, V2 } from "../API/index.js";
import type { PDataRepresentable } from "../PType/PDataRepresentable.js";
import { TermFn } from "../PTypes/PFn/PFn.js";
/**
* @deprecated
*
* since plutus v3, all plutus scripts take only the script context as argument
* and redeemer and datum can be extracted from there
*
* it is suggested to use plutus v3 (or higher) to get the best performance out of your contract
*
* also make sure your contract returns a `unit` and no longer a `bool`
*/
export declare function makeValidator(typedValidator: Term<PLam<PDataRepresentable, PLam<PDataRepresentable, PLam<typeof V1.PScriptContext | typeof V2.PScriptContext, PBool>>>>, errorMessage?: string): TermFn<[PData, PData, PData], PUnit>;
/**
* @deprecated
*
* since plutus v3, all plutus scripts take only the script context as argument
* and redeemer and datum can be extracted from there
*
* it is suggested to use plutus v3 (or higher) to get the best performance out of your contract
*
* also make sure your contract returns a `unit` and no longer a `bool`
*/
export declare function makeRedeemerValidator(typedValidator: Term<PLam<PDataRepresentable, PLam<typeof V1.PScriptContext | typeof V2.PScriptContext, PBool>>>, errorMessage?: string): TermFn<[PData, PData], PUnit>;