Skip to content

Conversation

@Jimbo4350
Copy link
Contributor

Changelog

- description: |
    Experimental api propagation

  type:
   - compatible     
   - refactoring   

Context

Additional context for the PR goes here. If the PR fixes a particular issue please provide a link to the issue.

How to trust this PR

Highlight important bits of the PR that will make the review faster. If there are commands the reviewer can run to observe the new behavior, describe them.

Checklist

  • Commit sequence broadly makes sense and commits have useful messages
  • New tests are added if needed and existing tests are updated. See Running tests for more details
  • Self-reviewed the diff

@Jimbo4350 Jimbo4350 changed the title Experimental api propagation 2025-05-28 Do not merge: Experimental api propagation 2025-05-28 May 28, 2025
@Jimbo4350 Jimbo4350 changed the title Do not merge: Experimental api propagation 2025-05-28 WIP: Experimental api propagation 2025-05-28 May 28, 2025
@Jimbo4350 Jimbo4350 force-pushed the jordan/experimental-api-propagation-20250528 branch 2 times, most recently from 647a31a to 8d9105b Compare June 2, 2025 13:33
@Jimbo4350 Jimbo4350 force-pushed the jordan/experimental-api-propagation-20250528 branch from e6af8fe to b5d9817 Compare June 2, 2025 13:56
@Jimbo4350 Jimbo4350 changed the title WIP: Experimental api propagation 2025-05-28 Experimental api propagation 2025-05-28 Jun 2, 2025
@Jimbo4350 Jimbo4350 force-pushed the jordan/experimental-api-propagation-20250528 branch from 2eccab0 to 3bcd66c Compare June 2, 2025 14:02
@Jimbo4350 Jimbo4350 force-pushed the jordan/experimental-api-propagation-20250528 branch from 3bcd66c to b4ebdbc Compare June 2, 2025 15:00
@Jimbo4350 Jimbo4350 force-pushed the jordan/experimental-api-propagation-20250528 branch from b4ebdbc to 8a6462a Compare June 2, 2025 15:12

import Data.Text (Text)

toTxOutInAnyEra
Copy link
Contributor

Choose a reason for hiding this comment

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

Regarding the name, isn't that the other way around? If input-output-hk/cardano-node-wiki#74 gets accepted, this should be called: txOutInAnyEraToTxOut or fromTxOutInAnyEra.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It's poorly named but I want to wait till after 74 gets adopted before making the change.

noteInputFile
"test/cardano-cli-golden/files/input/shelley/transaction-calculate-min-fee/protocol-params.json"
txBodyFile <- noteInputFile "test/cardano-cli-golden/files/input/shelley/tx/txbody"
"test/cardano-cli-test/files/input/calculate-min-fee/flags-protocol-params-preview.json"
Copy link
Contributor

Choose a reason for hiding this comment

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

cardano-cli-test file used in golden tests. Breaks hydra.

Copy link
Contributor

@carbolymer carbolymer left a comment

Choose a reason for hiding this comment

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

@Jimbo4350 Jimbo4350 force-pushed the jordan/experimental-api-propagation-20250528 branch 4 times, most recently from 15fec33 to 7cc587e Compare June 2, 2025 20:12
, outFile
} = do
let sbe = convert eon -- TODO: Conway era - update vote creation related function to take ConwayEraOnwards
let sbe = convert era -- TODO: Conway era - update vote creation related function to take ConwayEraOnwards
Copy link
Contributor

Choose a reason for hiding this comment

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

careateVotingProcedure is accepting ConwayEraOnwards already so convert = id here AFAIU

Copy link
Contributor Author

Choose a reason for hiding this comment

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

era here is the experimental Era era

["--output-json", "--out-file"] -> do
jsonOnDisk :: Aeson.Value <- H.readJsonFileOk outFileFp
H.diff jsonOnDisk (==) (Aeson.object ["fee" .= (2050100 :: Int)])
H.diff jsonOnDisk (==) (Aeson.object ["fee" .= (247473 :: Int)])
Copy link
Contributor

Choose a reason for hiding this comment

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

Why the fee has changed?

Copy link
Contributor Author

@Jimbo4350 Jimbo4350 Jun 3, 2025

Choose a reason for hiding this comment

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

I am using a Conway era transaction now. Previously it was Babbage.

Copy link
Contributor

@carbolymer carbolymer left a comment

Choose a reason for hiding this comment

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

Nice 👍🏻 It's looking cleaner.

@Jimbo4350 Jimbo4350 force-pushed the jordan/experimental-api-propagation-20250528 branch from 7cc587e to 84c1bb0 Compare June 3, 2025 20:14
@Jimbo4350 Jimbo4350 enabled auto-merge June 3, 2025 20:15
@Jimbo4350 Jimbo4350 added this pull request to the merge queue Jun 3, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Jun 4, 2025
@palas palas added this pull request to the merge queue Jun 4, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to no response for status checks Jun 4, 2025
@palas palas added this pull request to the merge queue Jun 4, 2025
Merged via the queue into master with commit 5452add Jun 4, 2025
25 checks passed
@palas palas deleted the jordan/experimental-api-propagation-20250528 branch June 4, 2025 04:16
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.

5 participants