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

Deprecate serialiseTxLedgerCddl #5867

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions cabal.project
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,20 @@ packages:
trace-resources
trace-forward

source-repository-package
type: git
location: https://github.com/IntersectMBO/cardano-api.git
tag: 1244e702287daedbde0cffa320d1eb423493321e
subdir: cardano-api
--sha256: 1wjhyliq3qv83m956mvinshd8cbrkyjlcx97s34qxi9cilskn210

source-repository-package
type: git
location: https://github.com/IntersectMBO/cardano-cli.git
tag: 0196f48ebc713072bfb6efb74ef204f638456d78
subdir: cardano-cli
--sha256: 08z15kab32pw9r7ry6z8lakk854dq2ym81cbw8pifibbfihzqd1i

program-options
ghc-options: -Werror

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ import Hedgehog (Property)
import qualified Hedgehog as H
import qualified Hedgehog.Extras.Test.Base as H
import qualified Hedgehog.Extras.Test.File as H
import Cardano.Api.HasTypeProxy (Proxy(..))

hprop_transaction :: Property
hprop_transaction = integrationRetryWorkspace 0 "babbage-transaction" $ \tempAbsBasePath' -> runWithDefaultWatchdog_ $ do
Expand Down Expand Up @@ -86,7 +87,8 @@ hprop_transaction = integrationRetryWorkspace 0 "babbage-transaction" $ \tempAbs
, "--out-file", txbodyFp
]
cddlUnwitnessedTx <- H.readJsonFileOk txbodyFp
apiTx <- H.evalEither $ deserialiseTxLedgerCddl sbe cddlUnwitnessedTx
apiTx <- H.evalEither $ deserialiseFromTextEnvelope (proxyToAsType Proxy :: AsType (Tx BabbageEra))
cddlUnwitnessedTx
let txFee = L.unCoin $ extractTxFee apiTx

-- This is the current calculated fee.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
{
"collateralPercentage": 150,
"committeeMaxTermLength": 200,
"committeeMinSize": 0,
"costModels": {
"PlutusV1": [
205665,
Expand Down Expand Up @@ -582,12 +584,26 @@
1
]
},
"decentralization": null,
"dRepActivity": 100,
"dRepDeposit": 1000000,
"dRepVotingThresholds": {
"committeeNoConfidence": 0,
"committeeNormal": 0.5,
"hardForkInitiation": 0.5,
"motionNoConfidence": 0,
"ppEconomicGroup": 0.5,
"ppGovGroup": 0.5,
"ppNetworkGroup": 0.5,
"ppTechnicalGroup": 0.5,
"treasuryWithdrawal": 0.5,
"updateToConstitution": 0
},
"executionUnitPrices": {
"priceMemory": 5.77e-2,
"priceSteps": 7.21e-5
},
"extraPraosEntropy": null,
"govActionDeposit": 1000000,
"govActionLifetime": 1,
"maxBlockBodySize": 65536,
"maxBlockExecutionUnits": {
"memory": 62000000,
Expand All @@ -601,11 +617,18 @@
},
"maxTxSize": 16384,
"maxValueSize": 5000,
"minFeeRefScriptCostPerByte": 0,
"minPoolCost": 0,
"minUTxOValue": null,
"monetaryExpansion": 0.1,
"poolPledgeInfluence": 0,
"poolRetireMaxEpoch": 18,
"poolVotingThresholds": {
"committeeNoConfidence": 0.5,
"committeeNormal": 0.5,
"hardForkInitiation": 0.5,
"motionNoConfidence": 0.5,
"ppSecurityGroup": 0.5
},
"protocolVersion": {
"major": 10,
"minor": 0
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
{
"collateralPercentage": 150,
"committeeMaxTermLength": 200,
"committeeMinSize": 0,
"costModels": {
"PlutusV1": [
205665,
Expand Down Expand Up @@ -582,12 +584,26 @@
1
]
},
"decentralization": null,
"dRepActivity": 100,
"dRepDeposit": 1000000,
"dRepVotingThresholds": {
"committeeNoConfidence": 0,
"committeeNormal": 0.5,
"hardForkInitiation": 0.5,
"motionNoConfidence": 0,
"ppEconomicGroup": 0.5,
"ppGovGroup": 0.5,
"ppNetworkGroup": 0.5,
"ppTechnicalGroup": 0.5,
"treasuryWithdrawal": 0.5,
"updateToConstitution": 0
},
"executionUnitPrices": {
"priceMemory": 5.77e-2,
"priceSteps": 7.21e-5
},
"extraPraosEntropy": null,
"govActionDeposit": 1000000,
"govActionLifetime": 1,
"maxBlockBodySize": 65536,
"maxBlockExecutionUnits": {
"memory": 62000000,
Expand All @@ -601,11 +617,18 @@
},
"maxTxSize": 16384,
"maxValueSize": 5000,
"minFeeRefScriptCostPerByte": 0,
"minPoolCost": 0,
"minUTxOValue": null,
"monetaryExpansion": 0.1,
"poolPledgeInfluence": 0,
"poolRetireMaxEpoch": 18,
"poolVotingThresholds": {
"committeeNoConfidence": 0.5,
"committeeNormal": 0.5,
"hardForkInitiation": 0.5,
"motionNoConfidence": 0.5,
"ppSecurityGroup": 0.5
},
"protocolVersion": {
"major": 10,
"minor": 0
Expand Down
Loading