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

Bump cardano-api, cardano-node #245

Merged
merged 4 commits into from
Jan 21, 2025
Merged

Bump cardano-api, cardano-node #245

merged 4 commits into from
Jan 21, 2025

Conversation

j-mueller
Copy link
Owner

@j-mueller j-mueller commented Dec 10, 2024

  • Update cardano-api to 10.6.0.0
  • Remove all uses of "TxOutDatumInTx" (supplemental datums are not supported anymore)
  • Add Cardano.Api.Extras that has the substituteExecutionUnits function. We need to keep this until it is exported by cardano-api.

@j-mueller
Copy link
Owner Author

Build is broken, I suspect some bounds are wrong on a couple of CHaP packages

@j-mueller j-mueller requested a review from koslambrou January 21, 2025 13:26
Copy link
Collaborator

@koslambrou koslambrou left a comment

Choose a reason for hiding this comment

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

LGTM

@@ -88,7 +87,6 @@ module Convex.CardanoApi.Lenses (

-- * Datums
_TxOutDatumInline,
_TxOutDatumInTx,
_TxOutDatumHash,
Copy link
Collaborator

Choose a reason for hiding this comment

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

Wasn't just TxOutDatumInTx been renamed to TxOutSupplementalDatum? Then, we
should have a prism for it.

@@ -416,16 +407,16 @@ _TxInsCollateralIso = iso from to
[] -> C.TxInsCollateralNone
xs -> C.TxInsCollateral C.alonzoBasedEra xs

_TxMintValue :: (C.IsMaryBasedEra era) => Iso' (TxMintValue BuildTx era) (Value, Map PolicyId (ScriptWitness WitCtxMint era))
_TxMintValue :: forall era build. (C.IsMaryBasedEra era) => Iso' (TxMintValue build era) (Map PolicyId [(C.AssetName, Quantity, BuildTxWith build (ScriptWitness WitCtxMint era))])
Copy link
Collaborator

Choose a reason for hiding this comment

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

Nice, you managed to generalize the BuildTx!

src/optics/lib/Convex/CardanoApi/Lenses.hs Show resolved Hide resolved
@j-mueller j-mueller merged commit 247ae38 into main Jan 21, 2025
4 checks passed
@j-mueller j-mueller deleted the bump-capi branch January 21, 2025 18:51
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