UNPKG

@mutants/cardano-tx-builder

Version:

A package that provides utility functions to build and destructure a cardano transaction

19 lines (18 loc) 666 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.organizeOutputs = void 0; /** * @todo * Organize outputs is a way to check outputs and break them out if needed. */ const organizeOutputs = (outputs) => { return outputs; // return outputs.reduce<TxOut[]>((organizedOutputs, output) => { // // Reorganize if there are too many assets. // if (output.value.assets && Object.keys(output.value.assets).length > 1 && getMinUTxOCost(output,)) { // const policies = Object.keys(output.value.assets); // } // return output; // }, []); }; exports.organizeOutputs = organizeOutputs;