/** * Constructs a `TxOutput` instance using an `Address`, a `Value`, an optional `Datum`, and optional `UplcProgram` reference script. * @template {SpendingCredential} [SC=SpendingCredential] * @param {Address | ShelleyAddressLike} address * @param {ValueLike} value * @param {TxOutputDatum | undefined} datum * @param {UplcProgram | undefined} refScript - plutus v2 script for now * @returns {TxOutput} */ export function makeTxOutput(address: Address | ShelleyAddressLike, value: ValueLike, datum?: TxOutputDatum | undefined, refScript?: UplcProgram | undefined, encodingConfig?: TxOutputEncodingConfig): TxOutput; /** * TODO: save the fact that it is an Object or Tuple representation, so that reserializing leads to the same bytes (and thus the same tx hash) * @param {BytesLike} bytes * @returns {TxOutput} */ export function decodeTxOutput(bytes: BytesLike): TxOutput; /** * @param {BytesLike} bytes * @returns {boolean} */ export function isValidTxOutputCbor(bytes: BytesLike): boolean; /** * @param {boolean} mainnet * @param {UplcData} data * @param {TxOutputEncodingConfig} encodingConfig * @returns {TxOutput} */ export function convertUplcDataToTxOutput(mainnet: boolean, data: UplcData, encodingConfig?: TxOutputEncodingConfig): TxOutput; /** * @import { BytesLike } from "@helios-lang/codec-utils" * @import { ConstrData, UplcData, UplcProgram } from "@helios-lang/uplc" * @import { Address, NetworkParams, ShelleyAddressLike, SpendingCredential, TxOutput, TxOutputDatum, TxOutputEncodingConfig, Value, ValueLike } from "../index.js" */ /** * @type {TxOutputEncodingConfig} */ export const DEFAULT_TX_OUTPUT_ENCODING_CONFIG: TxOutputEncodingConfig; import type { SpendingCredential } from "../index.js"; import type { Address } from "../index.js"; import type { ShelleyAddressLike } from "../index.js"; import type { ValueLike } from "../index.js"; import type { TxOutputDatum } from "../index.js"; import type { UplcProgram } from "@helios-lang/uplc"; import type { TxOutputEncodingConfig } from "../index.js"; import type { TxOutput } from "../index.js"; import type { BytesLike } from "@helios-lang/codec-utils"; import type { UplcData } from "@helios-lang/uplc"; //# sourceMappingURL=TxOutput.d.ts.map