UNPKG

@harmoniclabs/plu-ts-onchain

Version:

An embedded DSL for Cardano smart contracts creation coupled with a library for Cardano transactions, all in Typescript

484 lines 1.37 MB
export * from "./Address/PAddress.js"; export * from "./Address/PCredential.js"; export * from "./Address/PStakingCredential.js"; export * from "./Interval/PExtended.js"; export * from "./Interval/PBound.js"; export * from "./Interval/PInterval.js"; export * from "./PDCert/index.js"; export * from "./PubKey/PPubKey.js"; export * from "./PubKey/PPubKeyHash.js"; export * from "./ScriptsHashes/PDatumHash.js"; export * from "./ScriptsHashes/PScriptHash.js"; export * from "./ScriptsHashes/PValidatorHash.js"; export * from "./Time/index.js"; export * from "./Value/PCurrencySymbol.js"; export * from "./Value/PTokenName.js"; export * from "./Value/PValue/index.js"; export declare const V1: Readonly<{ readonly PScriptContext: import("../../index.js").PStruct<{ PScriptContext: { tx: import("../../index.js").StructT<{ PTxInfo: { inputs: [import("../../index.js").PrimType.List, import("../../index.js").StructT<{ PTxInInfo: { utxoRef: import("../../index.js").StructT<{ PTxOutRef: { id: import("../../index.js").StructT<{ PTxId: { txId: [import("../../index.js").PrimType.BS]; }; }, import("../../index.js").Methods>; index: [import("../../index.js").PrimType.Int]; }; }, import("../../index.js").Methods>; resolved: import("../../index.js").StructT<{ PTxOut: { address: import("../../index.js").StructT<{ PAddress: { credential: import("../../index.js").StructT<{ PPubKeyCredential: { pkh: [import("../../index.js").PrimType.Alias, [import("../../index.js").PrimType.BS], import("../../index.js").Methods]; }; PScriptCredential: { valHash: [import("../../index.js").PrimType.Alias, [import("../../index.js").PrimType.BS], import("../../index.js").Methods]; }; }, { hash: import("../../index.js").Term<import("../../index.js").PLam<import("../../index.js").PStruct<{ PPubKeyCredential: { pkh: [import("../../index.js").PrimType.Alias, [import("../../index.js").PrimType.BS], import("../../index.js").Methods]; }; PScriptCredential: { valHash: [import("../../index.js").PrimType.Alias, [import("../../index.js").PrimType.BS], import("../../index.js").Methods]; }; }, {}>, import("../../index.js").PByteString>> & { $: (input: import("../../index.js").PappArg<import("../../index.js").PStruct<{ PPubKeyCredential: { pkh: [import("../../index.js").PrimType.Alias, [import("../../index.js").PrimType.BS], import("../../index.js").Methods]; }; PScriptCredential: { valHash: [import("../../index.js").PrimType.Alias, [import("../../index.js").PrimType.BS], import("../../index.js").Methods]; }; }, {}>>) => import("../../index.js").UtilityTermOf<import("../../index.js").PByteString>; }; }>; stakingCredential: import("../../index.js").StructT<{ Just: { val: import("../../index.js").StructT<{ PStakingHash: { _0: import("../../index.js").StructT<{ PPubKeyCredential: { pkh: [import("../../index.js").PrimType.Alias, [import("../../index.js").PrimType.BS], import("../../index.js").Methods]; }; PScriptCredential: { valHash: [import("../../index.js").PrimType.Alias, [import("../../index.js").PrimType.BS], import("../../index.js").Methods]; }; }, { hash: import("../../index.js").Term<import("../../index.js").PLam<import("../../index.js").PStruct<{ PPubKeyCredential: { pkh: [import("../../index.js").PrimType.Alias, [import("../../index.js").PrimType.BS], import("../../index.js").Methods]; }; PScriptCredential: { valHash: [import("../../index.js").PrimType.Alias, [import("../../index.js").PrimType.BS], import("../../index.js").Methods]; }; }, {}>, import("../../index.js").PByteString>> & { $: (input: import("../../index.js").PappArg<import("../../index.js").PStruct<{ PPubKeyCredential: { pkh: [import("../../index.js").PrimType.Alias, [import("../../index.js").PrimType.BS], import("../../index.js").Methods]; }; PScriptCredential: { valHash: [import("../../index.js").PrimType.Alias, [import("../../index.js").PrimType.BS], import("../../index.js").Methods]; }; }, {}>>) => import("../../index.js").UtilityTermOf<import("../../index.js").PByteString>; }; }>; }; PStakingPtr: { _0: [import("../../index.js").PrimType.Int]; _1: [import("../../index.js").PrimType.Int]; _2: [import("../../index.js").PrimType.Int]; }; }, import("../../index.js").Methods>; }; Nothing: {}; }, { unwrap: import("../../index.js").Term<import("../../index.js").PLam<import("../../index.js").PStruct<{ Just: { val: import("../../index.js").StructT<{ PStakingHash: { _0: import("../../index.js").StructT<{ PPubKeyCredential: { pkh: [import("../../index.js").PrimType.Alias, [import("../../index.js").PrimType.BS], import("../../index.js").Methods]; }; PScriptCredential: { valHash: [import("../../index.js").PrimType.Alias, [import("../../index.js").PrimType.BS], import("../../index.js").Methods]; }; }, { hash: import("../../index.js").Term<import("../../index.js").PLam<import("../../index.js").PStruct<{ PPubKeyCredential: { pkh: [import("../../index.js").PrimType.Alias, [import("../../index.js").PrimType.BS], import("../../index.js").Methods]; }; PScriptCredential: { valHash: [import("../../index.js").PrimType.Alias, [import("../../index.js").PrimType.BS], import("../../index.js").Methods]; }; }, {}>, import("../../index.js").PByteString>> & { $: (input: import("../../index.js").PappArg<import("../../index.js").PStruct<{ PPubKeyCredential: { pkh: [import("../../index.js").PrimType.Alias, [import("../../index.js").PrimType.BS], import("../../index.js").Methods]; }; PScriptCredential: { valHash: [import("../../index.js").PrimType.Alias, [import("../../index.js").PrimType.BS], import("../../index.js").Methods]; }; }, {}>>) => import("../../index.js").UtilityTermOf<import("../../index.js").PByteString>; }; }>; }; PStakingPtr: { _0: [import("../../index.js").PrimType.Int]; _1: [import("../../index.js").PrimType.Int]; _2: [import("../../index.js").PrimType.Int]; }; }, import("../../index.js").Methods>; }; Nothing: {}; }, {}>, import("../../index.js").PStruct<{ PStakingHash: { _0: import("../../index.js").StructT<{ PPubKeyCredential: { pkh: [import("../../index.js").PrimType.Alias, [import("../../index.js").PrimType.BS], import("../../index.js").Methods]; }; PScriptCredential: { valHash: [import("../../index.js").PrimType.Alias, [import("../../index.js").PrimType.BS], import("../../index.js").Methods]; }; }, { hash: import("../../index.js").Term<import("../../index.js").PLam<import("../../index.js").PStruct<{ PPubKeyCredential: { pkh: [import("../../index.js").PrimType.Alias, [import("../../index.js").PrimType.BS], import("../../index.js").Methods]; }; PScriptCredential: { valHash: [import("../../index.js").PrimType.Alias, [import("../../index.js").PrimType.BS], import("../../index.js").Methods]; }; }, {}>, import("../../index.js").PByteString>> & { $: (input: import("../../index.js").PappArg<import("../../index.js").PStruct<{ PPubKeyCredential: { pkh: [import("../../index.js").PrimType.Alias, [import("../../index.js").PrimType.BS], import("../../index.js").Methods]; }; PScriptCredential: { valHash: [import("../../index.js").PrimType.Alias, [import("../../index.js").PrimType.BS], import("../../index.js").Methods]; }; }, {}>>) => import("../../index.js").UtilityTermOf<import("../../index.js").PByteString>; }; }>; }; PStakingPtr: { _0: [import("../../index.js").PrimType.Int]; _1: [import("../../index.js").PrimType.Int]; _2: [import("../../index.js").PrimType.Int]; }; }, import("../../index.js").Methods>>> & { $: (input: import("../../index.js").PappArg<import("../../index.js").PStruct<{ Just: { val: import("../../index.js").StructT<{ PStakingHash: { _0: import("../../index.js").StructT<{ PPubKeyCredential: { pkh: [import("../../index.js").PrimType.Alias, [import("../../index.js").PrimType.BS], import("../../index.js").Methods]; }; PScriptCredential: { valHash: [import("../../index.js").PrimType.Alias, [import("../../index.js").PrimType.BS], import("../../index.js").Methods]; }; }, { hash: import("../../index.js").Term<import("../../index.js").PLam<import("../../index.js").PStruct<{ PPubKeyCredential: { pkh: [import("../../index.js").PrimType.Alias, [import("../../index.js").PrimType.BS], import("../../index.js").Methods]; }; PScriptCredential: { valHash: [import("../../index.js").PrimType.Alias, [import("../../index.js").PrimType.BS], import("../../index.js").Methods]; }; }, {}>, import("../../index.js").PByteString>> & { $: (input: import("../../index.js").PappArg<import("../../index.js").PStruct<{ PPubKeyCredential: { pkh: [import("../../index.js").PrimType.Alias, [import("../../index.js").PrimType.BS], import("../../index.js").Methods]; }; PScriptCredential: { valHash: [import("../../index.js").PrimType.Alias, [import("../../index.js").PrimType.BS], import("../../index.js").Methods]; }; }, {}>>) => import("../../index.js").UtilityTermOf<import("../../index.js").PByteString>; }; }>; }; PStakingPtr: { _0: [import("../../index.js").PrimType.Int]; _1: [import("../../index.js").PrimType.Int]; _2: [import("../../index.js").PrimType.Int]; }; }, import("../../index.js").Methods>; }; Nothing: {}; }, {}>>) => import("../../index.js").UtilityTermOf<import("../../index.js").PStruct<{ PStakingHash: { _0: import("../../index.js").StructT<{ PPubKeyCredential: { pkh: [import("../../index.js").PrimType.Alias, [import("../../index.js").PrimType.BS], import("../../index.js").Methods]; }; PScriptCredential: { valHash: [import("../../index.js").PrimType.Alias, [import("../../index.js").PrimType.BS], import("../../index.js").Methods]; }; }, { hash: import("../../index.js").Term<import("../../index.js").PLam<import("../../index.js").PStruct<{ PPubKeyCredential: { pkh: [import("../../index.js").PrimType.Alias, [import("../../index.js").PrimType.BS], import("../../index.js").Methods]; }; PScriptCredential: { valHash: [import("../../index.js").PrimType.Alias, [import("../../index.js").PrimType.BS], import("../../index.js").Methods]; }; }, {}>, import("../../index.js").PByteString>> & { $: (input: import("../../index.js").PappArg<import("../../index.js").PStruct<{ PPubKeyCredential: { pkh: [import("../../index.js").PrimType.Alias, [import("../../index.js").PrimType.BS], import("../../index.js").Methods]; }; PScriptCredential: { valHash: [import("../../index.js").PrimType.Alias, [import("../../index.js").PrimType.BS], import("../../index.js").Methods]; }; }, {}>>) => import("../../index.js").UtilityTermOf<import("../../index.js").PByteString>; }; }>; }; PStakingPtr: { _0: [import("../../index.js").PrimType.Int]; _1: [import("../../index.js").PrimType.Int]; _2: [import("../../index.js").PrimType.Int]; }; }, import("../../index.js").Methods>>; }; default: import("../../index.js").Term<import("../../index.js").PLam<import("../../index.js").PStruct<{ Just: { val: import("../../index.js").StructT<{ PStakingHash: { _0: import("../../index.js").StructT<{ PPubKeyCredential: { pkh: [import("../../index.js").PrimType.Alias, [import("../../index.js").PrimType.BS], import("../../index.js").Methods]; }; PScriptCredential: { valHash: [import("../../index.js").PrimType.Alias, [import("../../index.js").PrimType.BS], import("../../index.js").Methods]; }; }, { hash: import("../../index.js").Term<import("../../index.js").PLam<import("../../index.js").PStruct<{ PPubKeyCredential: { pkh: [import("../../index.js").PrimType.Alias, [import("../../index.js").PrimType.BS], import("../../index.js").Methods]; }; PScriptCredential: { valHash: [import("../../index.js").PrimType.Alias, [import("../../index.js").PrimType.BS], import("../../index.js").Methods]; }; }, {}>, import("../../index.js").PByteString>> & { $: (input: import("../../index.js").PappArg<import("../../index.js").PStruct<{ PPubKeyCredential: { pkh: [import("../../index.js").PrimType.Alias, [import("../../index.js").PrimType.BS], import("../../index.js").Methods]; }; PScriptCredential: { valHash: [import("../../index.js").PrimType.Alias, [import("../../index.js").PrimType.BS], import("../../index.js").Methods]; }; }, {}>>) => import("../../index.js").UtilityTermOf<import("../../index.js").PByteString>; }; }>; }; PStakingPtr: { _0: [import("../../index.js").PrimType.Int]; _1: [import("../../index.js").PrimType.Int]; _2: [import("../../index.js").PrimType.Int]; }; }, import("../../index.js").Methods>; }; Nothing: {}; }, {}>, import("../../index.js").PLam<import("../../index.js").PStruct<{ PStakingHash: { _0: import("../../index.js").StructT<{ PPubKeyCredential: { pkh: [import("../../index.js").PrimType.Alias, [import("../../index.js").PrimType.BS], import("../../index.js").Methods]; }; PScriptCredential: { valHash: [import("../../index.js").PrimType.Alias, [import("../../index.js").PrimType.BS], import("../../index.js").Methods]; }; }, { hash: import("../../index.js").Term<import("../../index.js").PLam<import("../../index.js").PStruct<{ PPubKeyCredential: { pkh: [import("../../index.js").PrimType.Alias, [import("../../index.js").PrimType.BS], import("../../index.js").Methods]; }; PScriptCredential: { valHash: [import("../../index.js").PrimType.Alias, [import("../../index.js").PrimType.BS], import("../../index.js").Methods]; }; }, {}>, import("../../index.js").PByteString>> & { $: (input: import("../../index.js").PappArg<import("../../index.js").PStruct<{ PPubKeyCredential: { pkh: [import("../../index.js").PrimType.Alias, [import("../../index.js").PrimType.BS], import("../../index.js").Methods]; }; PScriptCredential: { valHash: [import("../../index.js").PrimType.Alias, [import("../../index.js").PrimType.BS], import("../../index.js").Methods]; }; }, {}>>) => import("../../index.js").UtilityTermOf<import("../../index.js").PByteString>; }; }>; }; PStakingPtr: { _0: [import("../../index.js").PrimType.Int]; _1: [import("../../index.js").PrimType.Int]; _2: [import("../../index.js").PrimType.Int]; }; }, import("../../index.js").Methods>, import("../../index.js").PStruct<{ PStakingHash: { _0: import("../../index.js").StructT<{ PPubKeyCredential: { pkh: [import("../../index.js").PrimType.Alias, [import("../../index.js").PrimType.BS], import("../../index.js").Methods]; }; PScriptCredential: { valHash: [import("../../index.js").PrimType.Alias, [import("../../index.js").PrimType.BS], import("../../index.js").Methods]; }; }, { hash: import("../../index.js").Term<import("../../index.js").PLam<import("../../index.js").PStruct<{ PPubKeyCredential: { pkh: [import("../../index.js").PrimType.Alias, [import("../../index.js").PrimType.BS], import("../../index.js").Methods]; }; PScriptCredential: { valHash: [import("../../index.js").PrimType.Alias, [import("../../index.js").PrimType.BS], import("../../index.js").Methods]; }; }, {}>, import("../../index.js").PByteString>> & { $: (input: import("../../index.js").PappArg<import("../../index.js").PStruct<{ PPubKeyCredential: { pkh: [import("../../index.js").PrimType.Alias, [import("../../index.js").PrimType.BS], import("../../index.js").Methods]; }; PScriptCredential: { valHash: [import("../../index.js").PrimType.Alias, [import("../../index.js").PrimType.BS], import("../../index.js").Methods]; }; }, {}>>) => import("../../index.js").UtilityTermOf<import("../../index.js").PByteString>; }; }>; }; PStakingPtr: { _0: [import("../../index.js").PrimType.Int]; _1: [import("../../index.js").PrimType.Int]; _2: [import("../../index.js").PrimType.Int]; }; }, import("../../index.js").Methods>>>> & { $: (input: import("../../index.js").PappArg<import("../../index.js").PStruct<{ Just: { val: import("../../index.js").StructT<{ PStakingHash: { _0: import("../../index.js").StructT<{ PPubKeyCredential: { pkh: [import("../../index.js").PrimType.Alias, [import("../../index.js").PrimType.BS], import("../../index.js").Methods]; }; PScriptCredential: { valHash: [import("../../index.js").PrimType.Alias, [import("../../index.js").PrimType.BS], import("../../index.js").Methods]; }; }, { hash: import("../../index.js").Term<import("../../index.js").PLam<import("../../index.js").PStruct<{ PPubKeyCredential: { pkh: [import("../../index.js").PrimType.Alias, [import("../../index.js").PrimType.BS], import("../../index.js").Methods]; }; PScriptCredential: { valHash: [import("../../index.js").PrimType.Alias, [import("../../index.js").PrimType.BS], import("../../index.js").Methods]; }; }, {}>, import("../../index.js").PByteString>> & { $: (input: import("../../index.js").PappArg<import("../../index.js").PStruct<{ PPubKeyCredential: { pkh: [import("../../index.js").PrimType.Alias, [import("../../index.js").PrimType.BS], import("../../index.js").Methods]; }; PScriptCredential: { valHash: [import("../../index.js").PrimType.Alias, [import("../../index.js").PrimType.BS], import("../../index.js").Methods]; }; }, {}>>) => import("../../index.js").UtilityTermOf<import("../../index.js").PByteString>; }; }>; }; PStakingPtr: { _0: [import("../../index.js").PrimType.Int]; _1: [import("../../index.js").PrimType.Int]; _2: [import("../../index.js").PrimType.Int]; }; }, import("../../index.js").Methods>; }; Nothing: {}; }, {}>>) => import("../../index.js").Term<import("../../index.js").PLam<import("../../index.js").PStruct<{ PStakingHash: { _0: import("../../index.js").StructT<{ PPubKeyCredential: { pkh: [import("../../index.js").PrimType.Alias, [import("../../index.js").PrimType.BS], import("../../index.js").Methods]; }; PScriptCredential: { valHash: [import("../../index.js").PrimType.Alias, [import("../../index.js").PrimType.BS], import("../../index.js").Methods]; }; }, { hash: import("../../index.js").Term<import("../../index.js").PLam<import("../../index.js").PStruct<{ PPubKeyCredential: { pkh: [import("../../index.js").PrimType.Alias, [import("../../index.js").PrimType.BS], import("../../index.js").Methods]; }; PScriptCredential: { valHash: [import("../../index.js").PrimType.Alias, [import("../../index.js").PrimType.BS], import("../../index.js").Methods]; }; }, {}>, import("../../index.js").PByteString>> & { $: (input: import("../../index.js").PappArg<import("../../index.js").PStruct<{ PPubKeyCredential: { pkh: [import("../../index.js").PrimType.Alias, [import("../../index.js").PrimType.BS], import("../../index.js").Methods]; }; PScriptCredential: { valHash: [import("../../index.js").PrimType.Alias, [import("../../index.js").PrimType.BS], import("../../index.js").Methods]; }; }, {}>>) => import("../../index.js").UtilityTermOf<import("../../index.js").PByteString>; }; }>; }; PStakingPtr: { _0: [import("../../index.js").PrimType.Int]; _1: [import("../../index.js").PrimType.Int]; _2: [import("../../index.js").PrimType.Int]; }; }, import("../../index.js").Methods>, import("../../index.js").PStruct<{ PStakingHash: { _0: import("../../index.js").StructT<{ PPubKeyCredential: { pkh: [import("../../index.js").PrimType.Alias, [import("../../index.js").PrimType.BS], import("../../index.js").Methods]; }; PScriptCredential: { valHash: [import("../../index.js").PrimType.Alias, [import("../../index.js").PrimType.BS], import("../../index.js").Methods]; }; }, { hash: import("../../index.js").Term<import("../../index.js").PLam<import("../../index.js").PStruct<{ PPubKeyCredential: { pkh: [import("../../index.js").PrimType.Alias, [import("../../index.js").PrimType.BS], import("../../index.js").Methods]; }; PScriptCredential: { valHash: [import("../../index.js").PrimType.Alias, [import("../../index.js").PrimType.BS], import("../../index.js").Methods]; }; }, {}>, import("../../index.js").PByteString>> & { $: (input: import("../../index.js").PappArg<import("../../index.js").PStruct<{ PPubKeyCredential: { pkh: [import("../../index.js").PrimType.Alias, [import("../../index.js").PrimType.BS], import("../../index.js").Methods]; }; PScriptCredential: { valHash: [import("../../index.js").PrimType.Alias, [import("../../index.js").PrimType.BS], import("../../index.js").Methods]; }; }, {}>>) => import("../../index.js").UtilityTermOf<import("../../index.js").PByteString>; }; }>; }; PStakingPtr: { _0: [import("../../index.js").PrimType.Int]; _1: [import("../../index.js").PrimType.Int]; _2: [import("../../index.js").PrimType.Int]; }; }, import("../../index.js").Methods>>> & { $: (input: import("../../index.js").PappArg<import("../../index.js").PStruct<{ PStakingHash: { _0: import("../../index.js").StructT<{ PPubKeyCredential: { pkh: [import("../../index.js").PrimType.Alias, [import("../../index.js").PrimType.BS], import("../../index.js").Methods]; }; PScriptCredential: { valHash: [import("../../index.js").PrimType.Alias, [import("../../index.js").PrimType.BS], import("../../index.js").Methods]; }; }, { hash: import("../../index.js").Term<import("../../index.js").PLam<import("../../index.js").PStruct<{ PPubKeyCredential: { pkh: [import("../../index.js").PrimType.Alias, [import("../../index.js").PrimType.BS], import("../../index.js").Methods]; }; PScriptCredential: { valHash: [import("../../index.js").Pr