tweag / cooked-validators

MIT License
39 stars 11 forks source link

Add a balancing UTxOs skeleton option #355

Closed florentc closed 1 year ago

florentc commented 1 year ago

Problem

Sometimes, there are pubkey UTxOs that we don't want to spend until we need them as inputs or reference inputs later. Currently, balancing does not care which UTxOs of the balancing wallet it spends. Example situation: information stored on a pubkey UTxO made official with an NFT

Remediation

A new option in TxOpts to control which UTxOs are safe to spend for balancing.

The ideal and conceptually elegant solution

Use a UtxoSearch as the option.

Why it is inconvenient

Tackling these would have a significant impact on the existing codebase for a small convenience feature.

The pragmatic proposed solution