/** * @import { BytesLike, IntLike } from "@helios-lang/codec-utils" * @import { UplcData } from "@helios-lang/uplc" * @import { Assets, DCert, NetworkParams, PubKeyHash, ScriptHash, StakingAddress, TimeRange, TxBody, TxBodyEncodingConfig, TxId, TxInfo, TxInput, TxOutput, TxOutputId, TxRedeemer, Value } from "../index.js" */ /** * @typedef {{ * encodingConfig?: TxBodyEncodingConfig * inputs: TxInput[] * outputs: TxOutput[] * fee: bigint * firstValidSlot?: number * lastValidSlot?: number * dcerts: DCert[] * withdrawals: [StakingAddress, bigint][] * minted: Assets * scriptDataHash?: number[] * collateral?: TxInput[] * signers: PubKeyHash[] * collateralReturn?: TxOutput * totalCollateral?: bigint * refInputs: TxInput[] * metadataHash?: number[] * }} TxBodyProps */ /** * @param {object} props * @param {TxBodyEncodingConfig} [props.encodingConfig] * @param {TxInput[]} props.inputs * @param {TxOutput[]} props.outputs * @param {bigint} props.fee * @param {number} [props.firstValidSlot] * @param {number} [props.lastValidSlot] * @param {DCert[]} props.dcerts * @param {[StakingAddress, bigint][]} props.withdrawals * @param {Assets} props.minted * @param {number[]} [props.scriptDataHash] * @param {TxInput[]} [props.collateral] * @param {PubKeyHash[]} props.signers * @param {TxOutput} [props.collateralReturn] * @param {bigint} [props.totalCollateral] * @param {TxInput[]} props.refInputs * @param {number[]} [props.metadataHash] * @returns {TxBody} */ export function makeTxBody(props: { encodingConfig?: TxBodyEncodingConfig | undefined; inputs: TxInput[]; outputs: TxOutput[]; fee: bigint; firstValidSlot?: number | undefined; lastValidSlot?: number | undefined; dcerts: DCert[]; withdrawals: [StakingAddress, bigint][]; minted: Assets; scriptDataHash?: number[] | undefined; collateral?: TxInput[] | undefined; signers: PubKeyHash[]; collateralReturn?: TxOutput | undefined; totalCollateral?: bigint | undefined; refInputs: TxInput[]; metadataHash?: number[] | undefined; }): TxBody; /** * @param {BytesLike} bytes * @returns {TxBody} */ export function decodeTxBody(bytes: BytesLike): TxBody; export type TxBodyProps = { encodingConfig?: TxBodyEncodingConfig; inputs: TxInput[]; outputs: TxOutput[]; fee: bigint; firstValidSlot?: number; lastValidSlot?: number; dcerts: DCert[]; withdrawals: [StakingAddress, bigint][]; minted: Assets; scriptDataHash?: number[]; collateral?: TxInput[]; signers: PubKeyHash[]; collateralReturn?: TxOutput; totalCollateral?: bigint; refInputs: TxInput[]; metadataHash?: number[]; }; import type { TxBodyEncodingConfig } from "../index.js"; import type { TxInput } from "../index.js"; import type { TxOutput } from "../index.js"; import type { DCert } from "../index.js"; import type { StakingAddress } from "../index.js"; import type { Assets } from "../index.js"; import type { PubKeyHash } from "../index.js"; import type { TxBody } from "../index.js"; import type { BytesLike } from "@helios-lang/codec-utils"; import type { TxBodyEncodingConfig as TxBodyEncodingConfig_1 } from "../index.js"; import type { TxInput as TxInput_1 } from "../index.js"; import type { TxOutput as TxOutput_1 } from "../index.js"; import type { DCert as DCert_1 } from "../index.js"; import type { StakingAddress as StakingAddress_1 } from "../index.js"; import type { Assets as Assets_1 } from "../index.js"; import type { PubKeyHash as PubKeyHash_1 } from "../index.js"; //# sourceMappingURL=TxBody.d.ts.map