tweag / cooked-validators

MIT License
39 stars 11 forks source link

New initial distributions with datums and reference scripts #383

Closed mmontin closed 8 months ago

mmontin commented 8 months ago

This PR introduces a richer initial distribution. The old initial distribution would only allow for Wallet to possess utxos containing values. The new initial distribution is extended to welcome any kind of initial payments. In particular, this includes:

The old helper to generate an initial distribution from wallets and values still exists, as this is the main use case. However, these new features would allow for instance to initialize oracles or have pre-existing reference scripts to be used when spending said scripts.

In addition, this PR introduces a module Cooked.Validators which contains dummy validators and associated datum types to be used in testing or redirecting outputs.