-
Notifications
You must be signed in to change notification settings - Fork 722
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
4858: Modify constructBalancedTx to take LedgerEpochInfo r=Jimbo4350 a=Jimbo4350 Modifying `constructBalancedTx` to take `LedgerEpochInfo` instead of `EraHistory mode` makes it significantly easier to use this function with a service such as BlockFrost. Constructing an `LedgerEpochInfo` value can be done with the helper function [fixedEpochInfo](https://github.com/input-output-hk/cardano-base/blob/631cb6cf1fa01ab346233b610a38b3b4cba6e6ab/slotting/src/Cardano/Slotting/EpochInfo/Impl.hs#L16) which requires the slot length and the epoch length. Both of these values can be retrieved from the ShelleyGenesis whereas constructing an `EraHistory mode` value is difficult without using a local node query (which necessitates running a node locally). Co-authored-by: Jordan Millar <[email protected]>
- Loading branch information
Showing
6 changed files
with
28 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters