Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New initial distributions with datums and reference scripts #383

Merged
merged 15 commits into from
Mar 20, 2024

Conversation

mmontin
Copy link
Collaborator

@mmontin mmontin commented Mar 14, 2024

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:

  • paying to a script
  • attaching datums to initial utxos
  • attaching reference scripts to initial utxos

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.

@mmontin mmontin marked this pull request as ready for review March 19, 2024 14:25
@mmontin mmontin requested a review from florentc March 19, 2024 14:25
Copy link
Member

@florentc florentc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed during meeting.

@mmontin mmontin merged commit c064a94 into main Mar 20, 2024
6 checks passed
@mmontin mmontin deleted the new-initial-distributions branch March 20, 2024 13:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants