@harmoniclabs/plu-ts-onchain
Version:
An embedded DSL for Cardano smart contracts creation coupled with a library for Cardano transactions, all in Typescript
15 lines (14 loc) • 689 B
TypeScript
import { PString, TermFn, PBool } from "../../../PTypes/index.js";
import { Term } from "../../../Term/index.js";
import { PappArg } from "../../pappArg.js";
import { TermBS } from "./TermBS.js";
import { TermBool } from "./TermBool.js";
import { BaseUtilityTermExtension } from "./BaseUtilityTerm.js";
export type TermStr = Term<PString> & BaseUtilityTermExtension & {
readonly utf8Encoded: TermBS;
readonly pconcat: TermFn<[PString], PString>;
readonly concat: (other: PappArg<PString>) => TermStr;
readonly peq: TermFn<[PString], PBool>;
readonly eq: (other: PappArg<PString>) => TermBool;
};
export declare function addPStringMethods(term: Term<PString>): TermStr;