From 45a2c209ff83276ab3da5c33987f91f5051e9525 Mon Sep 17 00:00:00 2001 From: Mateusz Galazyn Date: Thu, 22 Aug 2024 14:38:38 +0200 Subject: [PATCH] Add test --- cardano-cli/cardano-cli.cabal | 3 + .../Cli/Shelley/Transaction/BuildEstimate.hs | 158 +++++ .../buildEstimateProtocolParams.json | 671 ++++++++++++++++++ .../transaction/coldAlwaysTrueMint.plutus | 5 + .../transaction/initColdLockScriptDatum.json | 90 +++ cardano-cli/tx.raw | 5 + 6 files changed, 932 insertions(+) create mode 100644 cardano-cli/test/cardano-cli-test/Test/Cli/Shelley/Transaction/BuildEstimate.hs create mode 100644 cardano-cli/test/cardano-cli-test/files/input/shelley/transaction/buildEstimateProtocolParams.json create mode 100644 cardano-cli/test/cardano-cli-test/files/input/shelley/transaction/coldAlwaysTrueMint.plutus create mode 100644 cardano-cli/test/cardano-cli-test/files/input/shelley/transaction/initColdLockScriptDatum.json create mode 100644 cardano-cli/tx.raw diff --git a/cardano-cli/cardano-cli.cabal b/cardano-cli/cardano-cli.cabal index 71f6aa0dfa..f989f5219b 100644 --- a/cardano-cli/cardano-cli.cabal +++ b/cardano-cli/cardano-cli.cabal @@ -323,6 +323,8 @@ test-suite cardano-cli-test filepath, hedgehog, hedgehog-extras ^>=0.6.1.0, + lens, + lens-aeson, regex-tdfa, tasty, tasty-hedgehog, @@ -350,6 +352,7 @@ test-suite cardano-cli-test Test.Cli.Shelley.Run.Hash Test.Cli.Shelley.Run.Query Test.Cli.Shelley.Transaction.Build + Test.Cli.Shelley.Transaction.BuildEstimate Test.Cli.VerificationKey ghc-options: diff --git a/cardano-cli/test/cardano-cli-test/Test/Cli/Shelley/Transaction/BuildEstimate.hs b/cardano-cli/test/cardano-cli-test/Test/Cli/Shelley/Transaction/BuildEstimate.hs new file mode 100644 index 0000000000..ee1b4045f3 --- /dev/null +++ b/cardano-cli/test/cardano-cli-test/Test/Cli/Shelley/Transaction/BuildEstimate.hs @@ -0,0 +1,158 @@ +{-# LANGUAGE TypeApplications #-} + +module Test.Cli.Shelley.Transaction.BuildEstimate where + +import Control.Lens ((^?)) +import Data.Aeson as A +import qualified Data.Aeson.Lens as A +import GHC.Exts (IsString (..)) +import System.FilePath (()) + +import Test.Cardano.CLI.Util + +import Hedgehog +import qualified Hedgehog as H +import qualified Hedgehog.Extras as H + +inputDir :: FilePath +inputDir = "test/cardano-cli-test/files/input/shelley/transaction" + +txIn :: String +txIn = "e7b75bc29c8de752774771810a52fbd55444940c1b8bd04359aeb0f026c866ba#1" + +policyId :: IsString s => s +policyId = "e2b715a86bee4f14fef84081217f9e2646893a7d60a38af69e0aa572" + +asset :: IsString s => s +asset = "4964656e74697479204e4654" + +coldLockScriptAddr :: IsString s => s +coldLockScriptAddr = "addr_test1wr3tw9dgd0hy7987lpqgzgtlncnydzf604s28zhknc922uskgmccs" + +changeAddress :: String +changeAddress = "addr_test1vrz966ll936u04ge6ehg8vv3uc3nm8gg0we9xkm86m8k7pcryd6en" + +hprop_conway_transaction_build_estimate_mint_balance_manual :: Property +hprop_conway_transaction_build_estimate_mint_balance_manual = propertyOnce $ H.moduleWorkspace "tmp" $ \tempDir -> do + txFile <- H.noteTempFile tempDir "tx.traw" + _ <- + execCardanoCLI + [ "conway" + , "transaction" + , "build-estimate" + , "--tx-in" + , txIn + , "--tx-in-collateral" + , txIn + , "--mint" + , "1 " <> policyId <> "." <> asset + , "--tx-out" + , -- here we manually add 1 nft to the output + coldLockScriptAddr <> "+5000000+1 " <> policyId <> "." <> asset + , "--tx-out-inline-datum-file" + , inputDir "initColdLockScriptDatum.json" + , "--change-address" + , changeAddress + , "--mint-script-file" + , inputDir "coldAlwaysTrueMint.plutus" + , "--mint-redeemer-value" + , "{}" + , "--out-file" + , txFile + , "--shelley-key-witnesses" + , "1" + , "--total-utxo-value" + , "100000000" + , "--mint-execution-units" + , "(1,1)" + , "--protocol-params-file" + , inputDir "buildEstimateProtocolParams.json" + ] + + stdout <- + H.noteM $ + execCardanoCLI + ["debug", "transaction", "view", "--tx-file", txFile] + + res <- H.leftFail $ A.eitherDecode @A.Value (fromString stdout) + outputs <- H.nothingFail $ res ^? A.key "outputs" . A._Array + let outputsWithMintedAsset = + foldl + ( \acc o -> + if o ^? A.key "address" . A._String == Just coldLockScriptAddr + && o + ^? A.key "amount" + . A.key ("policy " <> policyId) + . A.key ("asset " <> asset) + . A._Number + == Just 1 + then o : acc + else acc + ) + [] + outputs + H.note_ $ "Check for NFT at output " <> coldLockScriptAddr + length outputsWithMintedAsset === 1 + +hprop_conway_transaction_build_estimate_mint_balance_auto :: Property +hprop_conway_transaction_build_estimate_mint_balance_auto = propertyOnce $ H.moduleWorkspace "tmp" $ \tempDir -> do + txFile <- H.noteTempFile tempDir "tx.traw" + _ <- + execCardanoCLI + [ "conway" + , "transaction" + , "build-estimate" + , "--tx-in" + , txIn + , "--tx-in-collateral" + , txIn + , "--mint" + , "1 " <> policyId <> "." <> asset + , "--tx-out" + , -- there is no NFT in this output - autobalance this + coldLockScriptAddr <> "+5000000" + , "--tx-out-inline-datum-file" + , inputDir "initColdLockScriptDatum.json" + , "--change-address" + , changeAddress + , "--mint-script-file" + , inputDir "coldAlwaysTrueMint.plutus" + , "--mint-redeemer-value" + , "{}" + , "--out-file" + , txFile + , "--shelley-key-witnesses" + , "1" + , "--total-utxo-value" + , "100000000" + , "--mint-execution-units" + , "(1,1)" + , "--protocol-params-file" + , inputDir "buildEstimateProtocolParams.json" + ] + + stdout <- + H.noteM $ + execCardanoCLI + ["debug", "transaction", "view", "--tx-file", txFile] + + res <- H.leftFail $ A.eitherDecode @A.Value (fromString stdout) + outputs <- H.nothingFail $ res ^? A.key "outputs" . A._Array + let outputsWithMintedAsset = + foldl + ( \acc o -> + if o ^? A.key "address" . A._String == Just coldLockScriptAddr + && o + ^? A.key "amount" + . A.key ("policy " <> policyId) + . A.key ("asset " <> asset) + . A._Number + == Just 1 + then o : acc + else acc + ) + [] + outputs + H.note_ $ "Check for NFT at output " <> coldLockScriptAddr + length outputsWithMintedAsset === 1 + H.failure diff --git a/cardano-cli/test/cardano-cli-test/files/input/shelley/transaction/buildEstimateProtocolParams.json b/cardano-cli/test/cardano-cli-test/files/input/shelley/transaction/buildEstimateProtocolParams.json new file mode 100644 index 0000000000..f4389997cf --- /dev/null +++ b/cardano-cli/test/cardano-cli-test/files/input/shelley/transaction/buildEstimateProtocolParams.json @@ -0,0 +1,671 @@ +{ + "collateralPercentage": 150, + "committeeMaxTermLength": 5000000, + "committeeMinSize": 0, + "costModels": { + "PlutusV1": [ + 197209, + 0, + 1, + 1, + 396231, + 621, + 0, + 1, + 150000, + 1000, + 0, + 1, + 150000, + 32, + 2477736, + 29175, + 4, + 29773, + 100, + 29773, + 100, + 29773, + 100, + 29773, + 100, + 29773, + 100, + 29773, + 100, + 100, + 100, + 29773, + 100, + 150000, + 32, + 150000, + 32, + 150000, + 32, + 150000, + 1000, + 0, + 1, + 150000, + 32, + 150000, + 1000, + 0, + 8, + 148000, + 425507, + 118, + 0, + 1, + 1, + 150000, + 1000, + 0, + 8, + 150000, + 112536, + 247, + 1, + 150000, + 10000, + 1, + 136542, + 1326, + 1, + 1000, + 150000, + 1000, + 1, + 150000, + 32, + 150000, + 32, + 150000, + 32, + 1, + 1, + 150000, + 1, + 150000, + 4, + 103599, + 248, + 1, + 103599, + 248, + 1, + 145276, + 1366, + 1, + 179690, + 497, + 1, + 150000, + 32, + 150000, + 32, + 150000, + 32, + 150000, + 32, + 150000, + 32, + 150000, + 32, + 148000, + 425507, + 118, + 0, + 1, + 1, + 61516, + 11218, + 0, + 1, + 150000, + 32, + 148000, + 425507, + 118, + 0, + 1, + 1, + 148000, + 425507, + 118, + 0, + 1, + 1, + 2477736, + 29175, + 4, + 0, + 82363, + 4, + 150000, + 5000, + 0, + 1, + 150000, + 32, + 197209, + 0, + 1, + 1, + 150000, + 32, + 150000, + 32, + 150000, + 32, + 150000, + 32, + 150000, + 32, + 150000, + 32, + 150000, + 32, + 3345831, + 1, + 1 + ], + "PlutusV2": [ + 205665, + 812, + 1, + 1, + 1000, + 571, + 0, + 1, + 1000, + 24177, + 4, + 1, + 1000, + 32, + 117366, + 10475, + 4, + 23000, + 100, + 23000, + 100, + 23000, + 100, + 23000, + 100, + 23000, + 100, + 23000, + 100, + 100, + 100, + 23000, + 100, + 19537, + 32, + 175354, + 32, + 46417, + 4, + 221973, + 511, + 0, + 1, + 89141, + 32, + 497525, + 14068, + 4, + 2, + 196500, + 453240, + 220, + 0, + 1, + 1, + 1000, + 28662, + 4, + 2, + 245000, + 216773, + 62, + 1, + 1060367, + 12586, + 1, + 208512, + 421, + 1, + 187000, + 1000, + 52998, + 1, + 80436, + 32, + 43249, + 32, + 1000, + 32, + 80556, + 1, + 57667, + 4, + 1000, + 10, + 197145, + 156, + 1, + 197145, + 156, + 1, + 204924, + 473, + 1, + 208896, + 511, + 1, + 52467, + 32, + 64832, + 32, + 65493, + 32, + 22558, + 32, + 16563, + 32, + 76511, + 32, + 196500, + 453240, + 220, + 0, + 1, + 1, + 69522, + 11687, + 0, + 1, + 60091, + 32, + 196500, + 453240, + 220, + 0, + 1, + 1, + 196500, + 453240, + 220, + 0, + 1, + 1, + 1159724, + 392670, + 0, + 2, + 806990, + 30482, + 4, + 1927926, + 82523, + 4, + 265318, + 0, + 4, + 0, + 85931, + 32, + 205665, + 812, + 1, + 1, + 41182, + 32, + 212342, + 32, + 31220, + 32, + 32696, + 32, + 43357, + 32, + 32247, + 32, + 38314, + 32, + 35892428, + 10, + 9462713, + 1021, + 10, + 38887044, + 32947, + 10, + 9223372036854775807, + 9223372036854775807, + 9223372036854775807, + 9223372036854775807, + 9223372036854775807, + 9223372036854775807, + 9223372036854775807, + 9223372036854775807, + 9223372036854775807, + 9223372036854775807 + ], + "PlutusV3": [ + 100788, + 420, + 1, + 1, + 1000, + 173, + 0, + 1, + 1000, + 59957, + 4, + 1, + 11183, + 32, + 201305, + 8356, + 4, + 16000, + 100, + 16000, + 100, + 16000, + 100, + 16000, + 100, + 16000, + 100, + 16000, + 100, + 100, + 100, + 16000, + 100, + 94375, + 32, + 132994, + 32, + 61462, + 4, + 72010, + 178, + 0, + 1, + 22151, + 32, + 91189, + 769, + 4, + 2, + 85848, + 123203, + 7305, + -900, + 1716, + 549, + 57, + 85848, + 0, + 1, + 1, + 1000, + 42921, + 4, + 2, + 24548, + 29498, + 38, + 1, + 898148, + 27279, + 1, + 51775, + 558, + 1, + 39184, + 1000, + 60594, + 1, + 141895, + 32, + 83150, + 32, + 15299, + 32, + 76049, + 1, + 13169, + 4, + 22100, + 10, + 28999, + 74, + 1, + 28999, + 74, + 1, + 43285, + 552, + 1, + 44749, + 541, + 1, + 33852, + 32, + 68246, + 32, + 72362, + 32, + 7243, + 32, + 7391, + 32, + 11546, + 32, + 85848, + 123203, + 7305, + -900, + 1716, + 549, + 57, + 85848, + 0, + 1, + 90434, + 519, + 0, + 1, + 74433, + 32, + 85848, + 123203, + 7305, + -900, + 1716, + 549, + 57, + 85848, + 0, + 1, + 1, + 85848, + 123203, + 7305, + -900, + 1716, + 549, + 57, + 85848, + 0, + 1, + 955506, + 213312, + 0, + 2, + 270652, + 22588, + 4, + 1457325, + 64566, + 4, + 20467, + 1, + 4, + 0, + 141992, + 32, + 100788, + 420, + 1, + 1, + 81663, + 32, + 59498, + 32, + 20142, + 32, + 24588, + 32, + 20744, + 32, + 25933, + 32, + 24623, + 32, + 43053543, + 10, + 53384111, + 14333, + 10, + 43574283, + 26308, + 10, + 16000, + 100, + 16000, + 100, + 962335, + 18, + 2780678, + 6, + 442008, + 1, + 52538055, + 3756, + 18, + 267929, + 18, + 76433006, + 8868, + 18, + 52948122, + 18, + 1995836, + 36, + 3227919, + 12, + 901022, + 1, + 166917843, + 4307, + 36, + 284546, + 36, + 158221314, + 26549, + 36, + 74698472, + 36, + 333849714, + 1, + 254006273, + 72, + 2174038, + 72, + 2261318, + 64571, + 4, + 207616, + 8310, + 4, + 1293828, + 28716, + 63, + 0, + 1, + 1006041, + 43623, + 251, + 0, + 1 + ] + }, + "dRepActivity": 20, + "dRepDeposit": 2000000, + "dRepVotingThresholds": { + "committeeNoConfidence": 0.51, + "committeeNormal": 0.51, + "hardForkInitiation": 0.51, + "motionNoConfidence": 0.51, + "ppEconomicGroup": 0.51, + "ppGovGroup": 0.51, + "ppNetworkGroup": 0.51, + "ppTechnicalGroup": 0.51, + "treasuryWithdrawal": 0.51, + "updateToConstitution": 0.51 + }, + "executionUnitPrices": { + "priceMemory": 5.77e-2, + "priceSteps": 7.21e-5 + }, + "govActionDeposit": 1000000000, + "govActionLifetime": 100, + "maxBlockBodySize": 65536, + "maxBlockExecutionUnits": { + "memory": 80000000, + "steps": 40000000000 + }, + "maxBlockHeaderSize": 1100, + "maxCollateralInputs": 3, + "maxTxExecutionUnits": { + "memory": 16000000, + "steps": 10000000000 + }, + "maxTxSize": 16384, + "maxValueSize": 5000, + "minFeeRefScriptCostPerByte": 0, + "minPoolCost": 0, + "monetaryExpansion": 0.1, + "poolPledgeInfluence": 0, + "poolRetireMaxEpoch": 18, + "poolVotingThresholds": { + "committeeNoConfidence": 0.51, + "committeeNormal": 0.51, + "hardForkInitiation": 0.51, + "motionNoConfidence": 0.51, + "ppSecurityGroup": 0.51 + }, + "protocolVersion": { + "major": 9, + "minor": 0 + }, + "stakeAddressDeposit": 0, + "stakePoolDeposit": 0, + "stakePoolTargetNum": 100, + "treasuryCut": 0.1, + "txFeeFixed": 155381, + "txFeePerByte": 44, + "utxoCostPerByte": 4310 +} \ No newline at end of file diff --git a/cardano-cli/test/cardano-cli-test/files/input/shelley/transaction/coldAlwaysTrueMint.plutus b/cardano-cli/test/cardano-cli-test/files/input/shelley/transaction/coldAlwaysTrueMint.plutus new file mode 100644 index 0000000000..11e473002d --- /dev/null +++ b/cardano-cli/test/cardano-cli-test/files/input/shelley/transaction/coldAlwaysTrueMint.plutus @@ -0,0 +1,5 @@ +{ + "type": "PlutusScriptV3", + "description": "", + "cborHex": "590b2c590b29010100323232323232323232232498c8c8c954ccd5cd19b874800000844c8c8c8c8c8c8c8ca002646464aa666ae68cdc3a4000004226464646464646464646464646464646466666666666646664664664444444444444445001010807c03a01b00c805c02a013008803c01a00b004801c00a00230013574202860026ae8404cc0908c8c8c954ccd5cd19b87480000084600260406ae84006600a6ae84d5d1000844c0b52401035054310035573c0046aae74004dd5000998120009aba1011232323255333573466e1d20000021132328009919192a999ab9a3370e900000108c004c08cd5d0800ccc0848c8c8c954ccd5cd19b874800000846002604e6ae8400422aa666ae68cdc3a40040042265003375a6ae8400a6eb4d5d0800cdd69aba1357440023574400222606a9201035054310035573c0046aae74004dd50009aba135744002113031491035054310035573c0046aae74004dd51aba100398039aba10029919192a999ab9a3370e900000108c0004554ccd5cd19b87480080084600a6eb8d5d080084554ccd5cd19b8748010008460066ae840042260629201035054310035573c0046aae74004dd51aba10019980f3ae357426ae880046ae88004d5d1000889816249035054310035573c0046aae74004dd50009bad3574201e60026ae84038c004c005d69981100b1aba100c33301501975a6ae8402cc8c8c954ccd5cd19b874800000846002646464aa666ae68cdc3a4000004230013302b75a6ae8400660546ae84d5d1000844c0b5241035054310035573c0046aae74004dd51aba10019919192a999ab9a3370e900000108c004cc0add69aba100198151aba13574400211302d4901035054310035573c0046aae74004dd51aba13574400211302a4901035054310035573c0046aae74004dd51aba100a3302275c6ae84024ccc0548c8c8c954ccd5cd19b8748000008460066eb8d5d080084554ccd5cd19b874800800846012603c6ae8400422aa666ae68cdc3a400800423007301d357420021155333573466e1d2006002118009bad35742003301a357426ae8800422aa666ae68cdc3a40100042300b301c357420021155333573466e1d200a002118029bad357420033018357426ae880042260569201035054310035573c0046aae74004dd50008119aba1008330010233574200e6eb8d5d080319980a80c1980a81311919192a999ab9a3370e900000108c0084554ccd5cd19b87480080084600822aa666ae68cdc3a40080042300011302b491035054310035573c0046aae74004dd50009aba1005330220143574200860046ae8400cc008d5d09aba2003301475c602aeb4d5d10009aba2001357440026ae88004d5d10009aba2001357440026ae88004d5d10009aba2001357440026ae88004d5d10009aba20011130174901035054310035573c0046aae74004dd51aba10099aba10089919192a999ab9a3370e900000108c00cdd71aba100108aa999ab9a3370e900100108c024c028d5d0800ccc01c04cd5d09aba200108aa999ab9a3370e900200108c01cc024d5d080084554ccd5cd19b8748018008460026eb4d5d0800cc018d5d09aba200108aa999ab9a3370e900400108c02cc020d5d080084554ccd5cd19b87480280084600a6eb4d5d0800cc010d5d09aba200108980ba481035054310035573c0046aae74004dd51aba135744010232323255333573466e1d200000211328009bad35742005300a3574200332323255333573466e1d200000211328049980600d9aba10029aba1001998063ae357426ae880046ae880044554ccd5cd19b874800800846002660160346ae84006646464aa666ae68cdc3a400000423001375a6ae840066eb4d5d09aba200108980f2481035054310035573c0046aae74004dd51aba1357440021155333573466e1d200400211805999804806bad357420033300b75c6ae84d5d100084554ccd5cd19b87480180084600e660160346ae8400422aa666ae68cdc3a401000422646500d3300d01c357420073301800f3574200533300b00f75a6ae840072646464aa666ae68cdc3a400000423001375a6ae840066eb4d5d09aba20010898102481035054310035573c0046aae74004dd51aba13574400322330180020010d5d10009aba20011155333573466e1d200a002118029980580d1aba10019919192a999ab9a3370e900000108998073ae3574200222603c9201035054310035573c0046aae74004dd51aba1357440021155333573466e1d200c0021180108980da481035054310035573c0046aae74004dd51aba1357440023574400222602e9201035054310035573c0046aae74004dd50009119118011bab00130152233335573e0025000232801c004c018d55ce800cc014d55cf000a60086ae8800c6ae8400a0004646464aa666ae68cdc3a40000042300d3007357420033300575a6ae84d5d100084554ccd5cd19b874800800846026600e6ae840066600aeb4d5d09aba200108a992999ab9a3370e900200188c00cc020d5d08014c004d5d09aba200208aa999ab9a3370e90030018899402cc024d5d0801cc008d5d0800cdd69aba1357440023574400422aa666ae68cdc3a401000623009300835742005375a6ae84d5d100104554ccd5cd19b874802800c4602a60106ae8400822aa666ae68cdc3a401800623011300835742005375a6ae84d5d100104554ccd5cd19b874803800c4600a6eb8d5d08014dd71aba1357440041155333573466e1d2010003118039bae35742005375a6ae84d5d100104554ccd5cd19b874804800c4600260106ae8400a60106ae84d5d100104554ccd5cd19b874805000c4601e60106ae8400822602c9210350543100232323255333573466e1d2000002118009bae35742002115325333573466e1d20020031180298009aba100208aa999ab9a3370e900200188c00cdd71aba100298009aba13574400411301a49010350543100232323255333573466e1d20000021180098079aba100108aa999ab9a3370e900100108c0084554ccd5cd19b87480100084600822603a9201035054310035573c0046aae74004dd50009aab9e00235573a0026ea8004d55cf0011aab9d001375400244646464aa666ae68cdc3a4004004230021155333573466e1d20000021180098029aba100108980aa49035054310035573c0046aae74004dd500091919192a999ab9a3370e900000108c004c014d5d080084554ccd5cd19b874800800846006600a6ae8400422aa666ae68cdc3a400800423005375c6ae840042260269201035054310035573c0046aae74004dd500091919192a999ab9a3370e900000108c004dd71aba100108aa999ab9a3370e900100108c00cdd71aba1001089809249035054310035573c0046aae74004dd500091919192a999ab9a3370e900000108c004dd71aba10019bad357426ae880042260229201035054310035573c0046aae74004dd50009aba200111300c4901035054310035573c0046aae74004dd500098041112a999ab9a3370e9000000889805248103505433001155333573466e200052000113300333702900000119b814800000444ca00266e1000c00666e1000800466008004002600e444aa666ae68cdc3a400000222004226600600266e180080048c88c008dd60009803911999aab9f00128001400cc010d5d08014c00cd5d1001200040024646464aa666ae68cdc3a4000004230021155333573466e1d200200211800089803a481035054310035573c0046aae74004dd5000911919192a999ab9a3370e900000108c0084554ccd5cd19b874800800846002600a6ae8400422aa666ae68cdc3a400800423004113007491035054310035573c0046aae74004dd500091919192a999ab9a3370e900000108c004dd71aba10019bad357426ae8800422600a9201035054310035573c0046aae74004dd5000919319ab9c0018001191800800918011198010010009" +} diff --git a/cardano-cli/test/cardano-cli-test/files/input/shelley/transaction/initColdLockScriptDatum.json b/cardano-cli/test/cardano-cli-test/files/input/shelley/transaction/initColdLockScriptDatum.json new file mode 100644 index 0000000000..a6c57e946b --- /dev/null +++ b/cardano-cli/test/cardano-cli-test/files/input/shelley/transaction/initColdLockScriptDatum.json @@ -0,0 +1,90 @@ +{ + "constructor": 0, + "fields": [ + { + "constructor": 0, + "fields": [ + { + "bytes": "09159adec41ce5d48dde24a275a5b2c2e79461c8693ef60af9fc3207" + }, + { + "bytes": "0ff1fd44947bcd4cdc6f06841d881ac2a0beb3f15ba5f5e3c08991d92e8ba643" + } + ] + }, + { + "list": [ + { + "constructor": 0, + "fields": [ + { + "bytes": "ff7a6c9f3ebf80ab457cca7813842aa2150d0dad341a7956a334c76d" + }, + { + "bytes": "1a82818b488574c156f1fa8941bad9b4b4976ba21cfaede1ab33a30de39f7edd" + } + ] + }, + { + "constructor": 0, + "fields": [ + { + "bytes": "c2233827cca3a0cc2c49f91a66276c468be994db855d6b413005fa88" + }, + { + "bytes": "3b8536a38eea871cc8b2775deb5861ac4348ef61a84b9e9c643480ae5b88ffc3" + } + ] + }, + { + "constructor": 0, + "fields": [ + { + "bytes": "b23a02a308165c702ce00bf760a0eff33b27b12906e1805b7685125f" + }, + { + "bytes": "fdf913abfdb8f00997cca5c14ca0b82f3d08781015a061e91444425d6f777ffa" + } + ] + } + ] + }, + { + "list": [ + { + "constructor": 0, + "fields": [ + { + "bytes": "fc6a114db76d31de585793749dcd6ad2d6c02a52ce9226820656bedd" + }, + { + "bytes": "7c9d1c732c313066ded1568dc24b1230cc782d331cb65465bc65ad5df6fbe832" + } + ] + }, + { + "constructor": 0, + "fields": [ + { + "bytes": "168ff0600f6245812192fb84c1d5a72129ae0445a272acc65dc88fb3" + }, + { + "bytes": "c60e20be4ce0fa457a8c65ade01005475e71880e921c2ee40a6b51d42fd95e11" + } + ] + }, + { + "constructor": 0, + "fields": [ + { + "bytes": "c530a8b72dd72e320e7f4883fcb98d0058e70efcf4e7e0871ce13eb7" + }, + { + "bytes": "ce75748d37a55ef1faec7219708059479197965a5927a7f9901c6bc9707eeaa1" + } + ] + } + ] + } + ] +} \ No newline at end of file diff --git a/cardano-cli/tx.raw b/cardano-cli/tx.raw new file mode 100644 index 0000000000..a229edd36c --- /dev/null +++ b/cardano-cli/tx.raw @@ -0,0 +1,5 @@ +{ + "type": "Unwitnessed Tx ConwayEra", + "description": "Ledger Cddl Format", + "cborHex": "84a600d9010281825820e7b75bc29c8de752774771810a52fbd55444940c1b8bd04359aeb0f026c866ba010dd9010281825820e7b75bc29c8de752774771810a52fbd55444940c1b8bd04359aeb0f026c866ba010182a300581d70e2b715a86bee4f14fef84081217f9e2646893a7d60a38af69e0aa57201821a004c4b40a1581ce2b715a86bee4f14fef84081217f9e2646893a7d60a38af69e0aa572a14c4964656e74697479204e465401028201d8185901e4d8799fd8799f581c09159adec41ce5d48dde24a275a5b2c2e79461c8693ef60af9fc320758200ff1fd44947bcd4cdc6f06841d881ac2a0beb3f15ba5f5e3c08991d92e8ba643ff9fd8799f581cff7a6c9f3ebf80ab457cca7813842aa2150d0dad341a7956a334c76d58201a82818b488574c156f1fa8941bad9b4b4976ba21cfaede1ab33a30de39f7eddffd8799f581cc2233827cca3a0cc2c49f91a66276c468be994db855d6b413005fa8858203b8536a38eea871cc8b2775deb5861ac4348ef61a84b9e9c643480ae5b88ffc3ffd8799f581cb23a02a308165c702ce00bf760a0eff33b27b12906e1805b7685125f5820fdf913abfdb8f00997cca5c14ca0b82f3d08781015a061e91444425d6f777ffaffff9fd8799f581cfc6a114db76d31de585793749dcd6ad2d6c02a52ce9226820656bedd58207c9d1c732c313066ded1568dc24b1230cc782d331cb65465bc65ad5df6fbe832ffd8799f581c168ff0600f6245812192fb84c1d5a72129ae0445a272acc65dc88fb35820c60e20be4ce0fa457a8c65ade01005475e71880e921c2ee40a6b51d42fd95e11ffd8799f581cc530a8b72dd72e320e7f4883fcb98d0058e70efcf4e7e0871ce13eb75820ce75748d37a55ef1faec7219708059479197965a5927a7f9901c6bc9707eeaa1ffffff82581d60c45d6bff2c75c7d519d66e83b191e6233d9d087bb2535b67d6cf6f07821a05a4a506a1581ce2b715a86bee4f14fef84081217f9e2646893a7d60a38af69e0aa572a14c4964656e74697479204e465401021a0004f0ba09a1581ce2b715a86bee4f14fef84081217f9e2646893a7d60a38af69e0aa572a14c4964656e74697479204e4654010b58202241aacbbc3527aa4847a03065bae6d4f0deb3980a9a9c41cb04ab610843f715a207d9010281590b2c590b29010100323232323232323232232498c8c8c954ccd5cd19b874800000844c8c8c8c8c8c8c8ca002646464aa666ae68cdc3a4000004226464646464646464646464646464646466666666666646664664664444444444444445001010807c03a01b00c805c02a013008803c01a00b004801c00a00230013574202860026ae8404cc0908c8c8c954ccd5cd19b87480000084600260406ae84006600a6ae84d5d1000844c0b52401035054310035573c0046aae74004dd5000998120009aba1011232323255333573466e1d20000021132328009919192a999ab9a3370e900000108c004c08cd5d0800ccc0848c8c8c954ccd5cd19b874800000846002604e6ae8400422aa666ae68cdc3a40040042265003375a6ae8400a6eb4d5d0800cdd69aba1357440023574400222606a9201035054310035573c0046aae74004dd50009aba135744002113031491035054310035573c0046aae74004dd51aba100398039aba10029919192a999ab9a3370e900000108c0004554ccd5cd19b87480080084600a6eb8d5d080084554ccd5cd19b8748010008460066ae840042260629201035054310035573c0046aae74004dd51aba10019980f3ae357426ae880046ae88004d5d1000889816249035054310035573c0046aae74004dd50009bad3574201e60026ae84038c004c005d69981100b1aba100c33301501975a6ae8402cc8c8c954ccd5cd19b874800000846002646464aa666ae68cdc3a4000004230013302b75a6ae8400660546ae84d5d1000844c0b5241035054310035573c0046aae74004dd51aba10019919192a999ab9a3370e900000108c004cc0add69aba100198151aba13574400211302d4901035054310035573c0046aae74004dd51aba13574400211302a4901035054310035573c0046aae74004dd51aba100a3302275c6ae84024ccc0548c8c8c954ccd5cd19b8748000008460066eb8d5d080084554ccd5cd19b874800800846012603c6ae8400422aa666ae68cdc3a400800423007301d357420021155333573466e1d2006002118009bad35742003301a357426ae8800422aa666ae68cdc3a40100042300b301c357420021155333573466e1d200a002118029bad357420033018357426ae880042260569201035054310035573c0046aae74004dd50008119aba1008330010233574200e6eb8d5d080319980a80c1980a81311919192a999ab9a3370e900000108c0084554ccd5cd19b87480080084600822aa666ae68cdc3a40080042300011302b491035054310035573c0046aae74004dd50009aba1005330220143574200860046ae8400cc008d5d09aba2003301475c602aeb4d5d10009aba2001357440026ae88004d5d10009aba2001357440026ae88004d5d10009aba2001357440026ae88004d5d10009aba20011130174901035054310035573c0046aae74004dd51aba10099aba10089919192a999ab9a3370e900000108c00cdd71aba100108aa999ab9a3370e900100108c024c028d5d0800ccc01c04cd5d09aba200108aa999ab9a3370e900200108c01cc024d5d080084554ccd5cd19b8748018008460026eb4d5d0800cc018d5d09aba200108aa999ab9a3370e900400108c02cc020d5d080084554ccd5cd19b87480280084600a6eb4d5d0800cc010d5d09aba200108980ba481035054310035573c0046aae74004dd51aba135744010232323255333573466e1d200000211328009bad35742005300a3574200332323255333573466e1d200000211328049980600d9aba10029aba1001998063ae357426ae880046ae880044554ccd5cd19b874800800846002660160346ae84006646464aa666ae68cdc3a400000423001375a6ae840066eb4d5d09aba200108980f2481035054310035573c0046aae74004dd51aba1357440021155333573466e1d200400211805999804806bad357420033300b75c6ae84d5d100084554ccd5cd19b87480180084600e660160346ae8400422aa666ae68cdc3a401000422646500d3300d01c357420073301800f3574200533300b00f75a6ae840072646464aa666ae68cdc3a400000423001375a6ae840066eb4d5d09aba20010898102481035054310035573c0046aae74004dd51aba13574400322330180020010d5d10009aba20011155333573466e1d200a002118029980580d1aba10019919192a999ab9a3370e900000108998073ae3574200222603c9201035054310035573c0046aae74004dd51aba1357440021155333573466e1d200c0021180108980da481035054310035573c0046aae74004dd51aba1357440023574400222602e9201035054310035573c0046aae74004dd50009119118011bab00130152233335573e0025000232801c004c018d55ce800cc014d55cf000a60086ae8800c6ae8400a0004646464aa666ae68cdc3a40000042300d3007357420033300575a6ae84d5d100084554ccd5cd19b874800800846026600e6ae840066600aeb4d5d09aba200108a992999ab9a3370e900200188c00cc020d5d08014c004d5d09aba200208aa999ab9a3370e90030018899402cc024d5d0801cc008d5d0800cdd69aba1357440023574400422aa666ae68cdc3a401000623009300835742005375a6ae84d5d100104554ccd5cd19b874802800c4602a60106ae8400822aa666ae68cdc3a401800623011300835742005375a6ae84d5d100104554ccd5cd19b874803800c4600a6eb8d5d08014dd71aba1357440041155333573466e1d2010003118039bae35742005375a6ae84d5d100104554ccd5cd19b874804800c4600260106ae8400a60106ae84d5d100104554ccd5cd19b874805000c4601e60106ae8400822602c9210350543100232323255333573466e1d2000002118009bae35742002115325333573466e1d20020031180298009aba100208aa999ab9a3370e900200188c00cdd71aba100298009aba13574400411301a49010350543100232323255333573466e1d20000021180098079aba100108aa999ab9a3370e900100108c0084554ccd5cd19b87480100084600822603a9201035054310035573c0046aae74004dd50009aab9e00235573a0026ea8004d55cf0011aab9d001375400244646464aa666ae68cdc3a4004004230021155333573466e1d20000021180098029aba100108980aa49035054310035573c0046aae74004dd500091919192a999ab9a3370e900000108c004c014d5d080084554ccd5cd19b874800800846006600a6ae8400422aa666ae68cdc3a400800423005375c6ae840042260269201035054310035573c0046aae74004dd500091919192a999ab9a3370e900000108c004dd71aba100108aa999ab9a3370e900100108c00cdd71aba1001089809249035054310035573c0046aae74004dd500091919192a999ab9a3370e900000108c004dd71aba10019bad357426ae880042260229201035054310035573c0046aae74004dd50009aba200111300c4901035054310035573c0046aae74004dd500098041112a999ab9a3370e9000000889805248103505433001155333573466e200052000113300333702900000119b814800000444ca00266e1000c00666e1000800466008004002600e444aa666ae68cdc3a400000222004226600600266e180080048c88c008dd60009803911999aab9f00128001400cc010d5d08014c00cd5d1001200040024646464aa666ae68cdc3a4000004230021155333573466e1d200200211800089803a481035054310035573c0046aae74004dd5000911919192a999ab9a3370e900000108c0084554ccd5cd19b874800800846002600a6ae8400422aa666ae68cdc3a400800423004113007491035054310035573c0046aae74004dd500091919192a999ab9a3370e900000108c004dd71aba10019bad357426ae8800422600a9201035054310035573c0046aae74004dd5000919319ab9c001800119180080091801119801001000905a182010082a0820101f5f6" +}