Skip to content

Commit

Permalink
Regenerate golden files
Browse files Browse the repository at this point in the history
  • Loading branch information
locallycompact committed Oct 9, 2024
1 parent b4243c7 commit 85e6c9a
Show file tree
Hide file tree
Showing 23 changed files with 25,049 additions and 32,247 deletions.

Large diffs are not rendered by default.

549 changes: 537 additions & 12 deletions hydra-node/golden/StateChanged/ChainRolledBack.json

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions hydra-node/golden/StateChanged/CommitFinalized.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"samples": [
{
"depositTxId": "1068efcbc5d21fc0c76bf0606a1ab377ea162c1abda488fb9802692309437667",
"newVersion": 0,
"depositTxId": "4e03bf2634ed40f0a6436cd48d71402be0c4c1a4b4edaf848010cb394cdbb943",
"newVersion": 4,
"tag": "CommitFinalized"
}
],
"seed": -631512089
"seed": -1820290309
}
39,197 changes: 19,635 additions & 19,562 deletions hydra-node/golden/StateChanged/CommitRecorded.json

Large diffs are not rendered by default.

1,850 changes: 603 additions & 1,247 deletions hydra-node/golden/StateChanged/CommitRecovered.json

Large diffs are not rendered by default.

1,022 changes: 339 additions & 683 deletions hydra-node/golden/StateChanged/CommittedUTxO.json

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions hydra-node/golden/StateChanged/DecommitFinalized.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"samples": [
{
"newVersion": 23,
"newVersion": 24,
"tag": "DecommitFinalized"
}
],
"seed": 2131520966
"seed": 1929343895
}
937 changes: 446 additions & 491 deletions hydra-node/golden/StateChanged/DecommitRecorded.json

Large diffs are not rendered by default.

1,137 changes: 639 additions & 498 deletions hydra-node/golden/StateChanged/HeadAborted.json

Large diffs are not rendered by default.

875 changes: 375 additions & 500 deletions hydra-node/golden/StateChanged/HeadClosed.json

Large diffs are not rendered by default.

675 changes: 595 additions & 80 deletions hydra-node/golden/StateChanged/HeadContested.json

Large diffs are not rendered by default.

497 changes: 176 additions & 321 deletions hydra-node/golden/StateChanged/HeadFannedOut.json

Large diffs are not rendered by default.

1,309 changes: 97 additions & 1,212 deletions hydra-node/golden/StateChanged/HeadInitialized.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion hydra-node/golden/StateChanged/HeadIsReadyToFanout.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@
"tag": "HeadIsReadyToFanout"
}
],
"seed": -194155733
"seed": 1451184457
}
1,623 changes: 148 additions & 1,475 deletions hydra-node/golden/StateChanged/HeadOpened.json

Large diffs are not rendered by default.

822 changes: 0 additions & 822 deletions hydra-node/golden/StateChanged/PartySignedSnapshot.json

This file was deleted.

1,623 changes: 0 additions & 1,623 deletions hydra-node/golden/StateChanged/SnapshotConfirmed.json

This file was deleted.

4 changes: 2 additions & 2 deletions hydra-node/golden/StateChanged/SnapshotRequestDecided.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"samples": [
{
"snapshotNumber": 24,
"snapshotNumber": 21,
"tag": "SnapshotRequestDecided"
}
],
"seed": -387487420
"seed": -874127330
}
2,694 changes: 0 additions & 2,694 deletions hydra-node/golden/StateChanged/SnapshotRequested.json

This file was deleted.

4 changes: 2 additions & 2 deletions hydra-node/golden/StateChanged/TickObserved.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"samples": [
{
"chainSlot": 19,
"chainSlot": 25,
"tag": "TickObserved"
}
],
"seed": 1423885120
"seed": 1181146882
}
1,510 changes: 818 additions & 692 deletions hydra-node/golden/StateChanged/TransactionAppliedToLocalUTxO.json

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions hydra-node/golden/StateChanged/TransactionReceived.json

Large diffs are not rendered by default.

17 changes: 0 additions & 17 deletions hydra-tx/testlib/Test/Hydra/Tx/Gen.hs
Original file line number Diff line number Diff line change
Expand Up @@ -303,20 +303,3 @@ genMintedOrBurnedValue = do
tokenName <- oneof [arbitrary, pure (AssetName $ fromBuiltin hydraHeadV1)]
quantity <- arbitrary `suchThat` (/= 0)
pure $ fromList [(AssetId policyId tokenName, Quantity quantity)]

-- | Generate a 'TxOut' with a reference script. The standard 'genTxOut' is not
-- including reference scripts, use this generator if you are interested in
-- these cases.
genTxOutWithReferenceScript :: Gen (TxOut ctx)
genTxOutWithReferenceScript = do
-- Have the ledger generate a TxOut with a reference script as instances are
-- not so easily accessible.
refScript <- (txOutReferenceScript . fromLedgerTxOut <$> arbitrary) `suchThat` (/= ReferenceScriptNone)
genTxOut <&> \out -> out{txOutReferenceScript = refScript}

-- | Genereate a 'UTxO' with a single entry using given 'TxOut' generator.
genUTxO1 :: Gen (TxOut CtxUTxO) -> Gen UTxO
genUTxO1 gen = do
txIn <- arbitrary
txOut <- gen
pure $ UTxO.singleton (txIn, txOut)

0 comments on commit 85e6c9a

Please sign in to comment.