@harmoniclabs/plu-ts-offchain
Version:
An embedded DSL for Cardano smart contracts creation coupled with a library for Cardano transactions, all in Typescript
14 lines (13 loc) • 793 B
TypeScript
import { ITypedVotingProceduresEntry, IVoter, IVotingProceduresEntry } from "@harmoniclabs/cardano-ledger-ts";
import { IScriptWithRedeemer, ScriptWithRedeemer } from "./ScriptWithRedeemer.js";
export interface ITxBuildVotingProcedure {
votingProcedure: IVotingProceduresEntry;
script?: IScriptWithRedeemer;
}
export interface NormalizedITxBuildVotingProcedure {
votingProcedure: ITypedVotingProceduresEntry;
script?: ScriptWithRedeemer;
}
export declare function eqIVoter(a: IVoter, b: IVoter): boolean;
export declare function normalizeITxBuildVotingProcedure({ votingProcedure, script }: ITxBuildVotingProcedure): NormalizedITxBuildVotingProcedure;
export declare function normalizeVotingProcedureEntry(votingProcedure: IVotingProceduresEntry): ITypedVotingProceduresEntry;