-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(dart/catalyst_cardano_serialization)!: Implement tiered fee calc…
…ulation for reference scripts (#871) * fix(dart/catalyst_cardano_serialization): update inputs to Set for CDDL alignment and change referenceInputs for reference script fee calculation * feat(catalyst_cardano_serialization): add length getter to the Script's classes for reference script fee calculation * feat(catalyst_cardano_serialization): Implement tiered fee calculation for reference scripts * Replace LinearFee with TieredFee to support tiered fee calculation for transactions that consider reference scripts. * Rename the minNoScriptFee() method to minFee() for clarity. * Make the script constructors private and add a fromHex(String cborHex) factory constructor for PlutusScripts. * Add tests for the length property of scripts, which also validates the fromHex factory constructor. * Add tests for fee calculation with reference scripts. * Add a ReferenceScriptSizeLimitExceededException class for handling errors when the reference script size limit is exceeded. * fix(catalyst_cardano_serialization): add missing fields (multiplier, sizeIncrement, maxRefScriptSize) to props for equality * fix(catalyst_cardano): resolve compilation errors in dependent packages caused by catalyst_cardano_serialization changes --------- Co-authored-by: Steven Johnson <[email protected]> Co-authored-by: Dominik Toton <[email protected]>
- Loading branch information
1 parent
626476a
commit 28cb3c5
Showing
18 changed files
with
868 additions
and
108 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
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
Oops, something went wrong.