@harmoniclabs/plu-ts-onchain
Version:
An embedded DSL for Cardano smart contracts creation coupled with a library for Cardano transactions, all in Typescript
21 lines (20 loc) • 698 B
TypeScript
import { IRFunc } from "../../../IRNodes/IRFunc.js";
import { LettedSetEntry } from "../../../IRNodes/IRLetted.js";
import { IRTerm } from "../../../IRTerm.js";
type ScopedLettedTerms = {
maxScope: IRFunc | undefined;
group: LettedSetEntry[];
};
export declare function groupByScope(letteds: LettedSetEntry[]): ScopedLettedTerms[];
/**
*
* @param _term
* @returns {number | undefined}
* a `number` if the `_term` param is open;
* represents the debuijn index an `IRVar` would have
* in order to point to the smallest scope that fulfills the term;
*
* `undefined` if the term is closed
*/
export declare function _getMinUnboundDbn(_term: IRTerm): number | undefined;
export {};