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

make TxOut a type family #2077

Merged
merged 1 commit into from
Jan 5, 2021
Merged

make TxOut a type family #2077

merged 1 commit into from
Jan 5, 2021

Conversation

JaredCorduan
Copy link
Contributor

The type TxOut will change for alonzo (it will include a Maybe DataHash), and this PR prepares the way.

Note: before this can be merged, I need to re-enable the ApplyBlock (MaryEra c) instance and figure out why the constraint NoThunks (CompactForm (Cardano.Ledger.Mary.Value.Value c)) is now missing.

Copy link
Contributor

@nc6 nc6 left a comment

Choose a reason for hiding this comment

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

Looks good aside from things we discussed.

withdrawals = unWdrl $ getField @"wdrls" txb
UTxO u'' = eval (dom (txinsScript (getField @"inputs" txb) u) ◁ u)
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't understand what's going on here!

Copy link
Contributor

Choose a reason for hiding this comment

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

OK, looks like domain restriction has some weird return-type polymorphism going on!

) =>
HasField "address" (TxOut era) (Addr c)
where
getField (TxOut a _) = a
Copy link
Contributor

Choose a reason for hiding this comment

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

Add one of these for compact address

The type TxOut will change for alonzo (it will include a Maybe DataHash)
@nc6 nc6 merged commit f47953f into master Jan 5, 2021
@iohk-bors iohk-bors bot deleted the jc/make-txout-a-type-family branch January 5, 2021 08: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