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

Switch to babbage era .. and all kinds of stuff #408

Merged
merged 167 commits into from
Jul 8, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
167 commits
Select commit Hold shift + click to select a range
a5a2bc6
Update most dependencies to latest & greatest
ch1bo Apr 29, 2022
e8c5954
Use more recent nixpkgs and ensure secp256k1 is in scope for cardano-…
ch1bo Apr 29, 2022
170f142
Re-use nixpkgs between shell.nix and default.nix
ch1bo Apr 29, 2022
8b01c2d
Make hydra-cardano-api babbage ready, but stay on Alonzo
ch1bo Apr 29, 2022
fcd7084
Update iohk-nix to get a more recent libsodium-vrf
ch1bo May 1, 2022
6b9d0b0
Fix imports in hydra-test-utils
ch1bo May 1, 2022
4eb287b
Update to latest cardano-node
ch1bo May 4, 2022
723e4f9
Not use vanished Signature type from plutus-ledger-api
ch1bo May 4, 2022
d290f9c
Replace use of vanished Ada module
ch1bo May 4, 2022
96c3f08
Add babbage to CardanoCodecConfig
ch1bo May 4, 2022
a16cc97
Default to TxInsReferenceNone in emptyTxBody
ch1bo May 4, 2022
e5efc6d
Remove orphan instances module of cardano-node
ch1bo May 4, 2022
33a22f7
Use testingCostModelV1 in Evaluate.hs now
ch1bo May 4, 2022
82fff5b
Add txTotalCollateral and txReturnCollateral to emptyTxBody
ch1bo May 4, 2022
f9ee4c6
Remove unused txInFromText and aeson-2 fix
ch1bo May 4, 2022
727e37a
Changes due to TxOutDatum -> TxOutDatumInTx
ch1bo May 4, 2022
c327b23
Cardano.Ledger using new LedgerState record and some additional const…
ch1bo May 5, 2022
f005105
Remove type signature of applyTx
ch1bo May 5, 2022
512510f
Wrangle consensus / ouroboros protocol types
ch1bo May 5, 2022
9daf539
Use ScriptHash in ScriptInfo
ch1bo May 6, 2022
e09d54e
Change in Direct.Wallet due to new interfaces
ch1bo May 6, 2022
08bf984
Add our own ToJSON instances for ouroboros-network traces
ch1bo May 6, 2022
90e0750
Fix some imports on our plutus error debugging in Hydra.Direct.Chain
ch1bo May 9, 2022
8d78289
Make wrapValidator polymorphic in context
ch1bo May 9, 2022
5c8686d
Upgrade Head validator to PlutusV2
ch1bo May 9, 2022
09d59c7
Only use serialiseData in Head validator
ch1bo May 9, 2022
c80fd89
[wip] Start updating to PlutusV2 in off-chain tx construction
ch1bo May 9, 2022
a84818a
Use another cardano-node version with exposed BabbageEra
ch1bo May 10, 2022
8753816
Switch hydra-cardano-api to BabbageEra and PlutusV2
ch1bo May 10, 2022
e1284ac
Use Babbage era TxBody in hydra-node
ch1bo May 10, 2022
427249a
Use Babbage era TxBody in hydra-node
ch1bo May 23, 2022
ee8b303
Stub genFixedSizeSequenceOfValidTransactions
ch1bo May 11, 2022
6c335cc
Use babbage arbitrary instances for serialisation
ch1bo May 11, 2022
6dac384
Remove Era type alias in Hydra.Chain.Direct.Util
ch1bo May 11, 2022
c132f91
Update Hydra.Chain.Direct.Wallet to work with Babbage
ch1bo May 11, 2022
c4936f6
Erase some more AlonzoEra from hydra-cardano-api
ch1bo May 11, 2022
bc741af
Update Hydra.Chain.Direct to work with babbage blocks
ch1bo May 11, 2022
5f06802
Move maxTxSize, maxMem and maxCpu to Hydra.Ledger.Cardano.Evaluate
ch1bo May 11, 2022
c1e81a0
Update cardano-node to more integrated cardano-api
ch1bo May 12, 2022
3c41ed8
Add some traces to wrapValidator/wrapMintingPolicy
ch1bo May 12, 2022
7a49dd9
Update minting policy to PlutusV2
ch1bo May 12, 2022
9bb036a
Determine tx-cost limit of initTx
ch1bo May 12, 2022
67ba572
Use inline datums in mkTxOutDatum
ch1bo May 12, 2022
72d23c2
Use TxOutDatumInline in all places where a TxOutDatumInTx was used
ch1bo May 12, 2022
28bbc5c
Align hashTxOuts semantics off- and on-chain
ch1bo May 12, 2022
b2e438b
Lookup scripts as V2 in renderTx
ch1bo May 12, 2022
ce1c322
Revert to using unsafeFromBuiltinData in wrapValidator
ch1bo May 12, 2022
0b16776
Handle inline datums in HeadTokens minting policy
ch1bo May 16, 2022
2afc7d7
Upgrade Initial validator to PlutusV2
ch1bo May 16, 2022
b77ad2a
Upgrade Commit validator to PlutusV2
ch1bo May 16, 2022
effae9a
Align off-chain serialization of TxOut in commit
ch1bo May 16, 2022
7a25768
Consolidate Commit (pre-)serialization
ch1bo May 16, 2022
3bdad5a
Re-use Head.hashTxOuts off-chain
ch1bo May 16, 2022
3717680
Fix typos in hydra-cardano-api docstrings
ch1bo May 16, 2022
e459eff
Start implementing fromPlutusTxOut
ch1bo May 16, 2022
cacd3e6
Implement fromPlutusValue
ch1bo May 17, 2022
7b2fc14
ReferenceScriptNone in all fromPlutusTxOut
ch1bo May 17, 2022
e61c6e0
Finish fromPlutusTxOut and hard-code Testnet when observing commits
ch1bo May 17, 2022
74d2448
Make checkHeadOutputDatum use inline datums
ch1bo May 17, 2022
a6d4bfb
Use on-chain hashTxOuts in off-chain hashUTxO
ch1bo May 17, 2022
643f1c2
[wip] Try to fix snapshot signature alignment
ch1bo May 17, 2022
459d7b5
Update some remaining usages of PlutusV1->PlutusV2
ch1bo May 17, 2022
18b9a9d
Fix some rebasing errors
ch1bo May 20, 2022
0754b3c
Update dependencies to latest vasil testnet tag
ch1bo May 23, 2022
b7b6659
Fix breaking change verifySignature -> verifyEd25519Signature in plutus
ch1bo May 23, 2022
25c789c
Explicitly show debugPlutus output
ch1bo May 23, 2022
a6f7327
Use commit sha instead of tag for cardano-node in shell.nix
ch1bo May 23, 2022
18f36cf
Create a vasil-testnet/example setup.
ch1bo May 23, 2022
87ca7a2
Update hydra-test-utils to use BabbageEra
ch1bo May 23, 2022
0581147
Updating some test code to babbage era
ch1bo May 23, 2022
1056f29
Work on first Hydra Head on vasil testnet
ch1bo May 23, 2022
636b2cc
Keep note of git rev used to do the first init
ch1bo May 24, 2022
4dbf82c
Revert back to using TxOutDatumInTx instead of inline datums
ch1bo May 24, 2022
e41aea8
Switch to protocol version 7
ch1bo May 24, 2022
21bb93a
Add notes about a second Head opening on vasil testnet
ch1bo May 24, 2022
a840f06
Use a babbage protocol-parameters with 0 fees
ch1bo May 24, 2022
d38aa80
Smoke test a full Head life-cycle on vasil testnet
ch1bo May 31, 2022
c4eb630
Redundant import from rebase
ch1bo Jun 23, 2022
19f748a
Update some occurrences in now refactored Direct modules
ch1bo Jun 23, 2022
e316709
Update to latest cardano-node rc4 tag
ch1bo Jun 23, 2022
351f0d3
Update references in tests to PlutusV1 -> PlutusV2
ch1bo Jun 23, 2022
7adfb1c
Use hashUTxO instead of hashTxOuts
ch1bo Jun 23, 2022
f090158
Fix imports of maxTxExecutionUnits
ch1bo Jun 23, 2022
c8cc9c6
Remove unused code and fix build errors in test
ch1bo Jun 23, 2022
99c7954
Update hydra-cardano-api due to latest cardano-api changes
ch1bo Jun 23, 2022
fea76a7
Mock (not fix) the (arbitrary :: Gen Praos.Header)
ch1bo Jun 23, 2022
0d1b891
Update usages of evaluateTransactionExecutionUnits
ch1bo Jun 23, 2022
2d4a50f
Update usage of evaluateTransactionExecutionUnits in Wallet
ch1bo Jun 23, 2022
b9ea20e
Changes due to new Babbage TxBody
ch1bo Jun 23, 2022
cbd2bb4
Make slotNoToPOSIXTime partial
ch1bo Jun 24, 2022
8ce9f52
Add orphan FromJSON (Sized a)
ch1bo Jun 24, 2022
dd5037e
Wallet changes due to changed ledger api
ch1bo Jun 24, 2022
2abf1c0
Change TimeHandle to use Either Text as well now
ch1bo Jun 24, 2022
a5b349e
Some renaming of shadowed names
abailly Jun 24, 2022
be82683
Not export policyId (a Parser) from Hydra.Cardano.Api
ch1bo Jun 24, 2022
7dadbcf
[debug] tx-cost compute cost of contest debugging
ch1bo Jun 24, 2022
4737e6d
timeout on tx cost evaluation
abailly Jun 24, 2022
36b2d3c
Pin point and temporarily fix contest tx generation
ch1bo Jun 24, 2022
d3f7d10
Generate fanoutTx more consistently
ch1bo Jun 24, 2022
0e6158a
Always close with confirmed snapshot in tx-cost fanout benchmark
ch1bo Jun 24, 2022
9318324
Copy scripts to launch nodes against testnet
ch1bo Jun 27, 2022
012b47d
Use latest cardano-node in shell.nix
ch1bo Jun 27, 2022
47fb903
Fix Ledger.Globals and imports
ch1bo Jun 28, 2022
72cbe3e
Update to cardano-node-1.35.0
ch1bo Jun 28, 2022
7c55efc
More Sized adaptation
ch1bo Jun 28, 2022
2a1b2a9
Re-use Hydra.Ledger.Cardano.Evaluate and fix some Alonzo imports
ch1bo Jun 28, 2022
9887ef0
Update WalletSpec with new Babbage/Praos types
ch1bo Jun 29, 2022
98ca160
Aeson 2 changes in JSONSchema test
ch1bo Jun 29, 2022
3ecf743
Fix test usage of hashUTxO
ch1bo Jun 29, 2022
91ca70d
Use consensus generators for Praos.Header in StateSpec
ch1bo Jun 29, 2022
8acd0f9
Expect TxOutDatumInTx when mutating datums
ch1bo Jun 29, 2022
bbf4fed
Try to fix inconsistency of hashes (again)
ch1bo Jun 29, 2022
e0e616c
Fix compilation errors following rebase
abailly Jun 30, 2022
48160e1
Add a FIXME and error on toPlutusTxOut TxOutSource
ch1bo Jun 30, 2022
ac9b072
Update definitions of hashUTxO and do not sort outputs on top of toList
ch1bo Jun 30, 2022
dae2743
Update hydra-cluster config protocol-parameters
ch1bo Jun 30, 2022
0a5e326
Use outputs' for non-Sized TxOut and avoid unwrapping
ch1bo Jun 30, 2022
c717f61
Remove a redundant import (due to rebasing)
ch1bo Jun 30, 2022
4a5f5ae
Resurrect unsafeCastHash and fix compile errors in hydra-cluster Card…
ch1bo Jun 30, 2022
b36e43c
Use TxInsCollateralNode in emptyTxBody
ch1bo Jun 30, 2022
83c52ea
Fix aeson2 usage in CardanoNode
ch1bo Jun 30, 2022
452db1f
Remove a redundant import in TxCost
ch1bo Jun 30, 2022
8261c44
Replace Alonzo golden samples with Babbage ones
ch1bo Jun 30, 2022
865cc98
Adapt some golden JSON files
abailly Jul 1, 2022
c910d98
Trick the cardano-api into thinking we have collateral inputs
ch1bo Jul 1, 2022
84460b2
Update install-nix-action for flake support
ch1bo Jul 1, 2022
5e4a73e
Fix JSON-schema specifications
KtorZ Jul 1, 2022
b5456d4
Rename nix trusted-public-key
ch1bo Jul 4, 2022
31abbe2
Also update install-nix-action in benchmark jobs
ch1bo Jul 4, 2022
ae1f567
Add validity range to renderTx
ch1bo Jul 4, 2022
579a12a
Undo factoring of genContestTx to get access to ctx
ch1bo Jul 4, 2022
29c5d88
Use quickcheck-instances more fine grained
ch1bo Jul 4, 2022
9b53f06
Only positive contestation periods in genHydraContext
ch1bo Jul 4, 2022
e650280
Add more feedback to forAllContest
ch1bo Jul 4, 2022
f675a12
Use maxTxExecutionUnits on all propIsValid runs
ch1bo Jul 4, 2022
870e97c
Define Period type and allow contest <= deadline
ch1bo Jul 5, 2022
8fc291b
Move off-chain ContestationPeriod to own module
abailly Jul 5, 2022
4ef0687
Define to/fromChain conversion of ContestationPeriod
ch1bo Jul 5, 2022
46cb8a3
Handle conversion of ContestationPeriod
abailly Jul 5, 2022
8ba9648
Renaming to/fromChain functions for ContestationPeriod
ch1bo Jul 5, 2022
bd05e72
Define same Show instance as before (when it was NominalDiffTime)
ch1bo Jul 5, 2022
2be344a
Detail definition of Arbitrary ContestationPeriod
ch1bo Jul 5, 2022
cb01dd8
Undo factoring of genCollectComTx to debug
ch1bo Jul 6, 2022
09017cc
Return [UTxO] from executeCommits to debug
ch1bo Jul 6, 2022
7d89b8a
Not generate colliding TxIn values in genCommit
ch1bo Jul 6, 2022
e49ce2d
Define properties on UTxO generators
ch1bo Jul 6, 2022
8b298ee
Fix genUTxoFor and drop unused genUTxO
ch1bo Jul 6, 2022
a669712
Update golden files
abailly Jul 6, 2022
df462f4
Change cardano-api upstream dependency to use correct ToJSON
abailly Jul 6, 2022
3ca62d9
Fix test on alternative ClientInput format
abailly Jul 6, 2022
3d3f91e
Fix use of ContestationPeriod in TUI
abailly Jul 7, 2022
49c5334
Copy alice, bob & carol fixtures into hydra-cluster
ch1bo Jul 7, 2022
8db5b39
Bump expected cardano-node version
ch1bo Jul 7, 2022
5f9cc8d
Update README of hydra-cluster
ch1bo Jul 7, 2022
23ae80f
Remove withCluster and drop CardanoCluster module
ch1bo Jul 7, 2022
2ed3133
Rework devnet configuration for Babbage
KtorZ Jul 7, 2022
5cb6ed4
Use simpler tx sequence generator
abailly Jul 7, 2022
b570847
Fix compilation errors in TUI
abailly Jul 7, 2022
8df84ad
Fix pathnames for starting 'BFT Node'
KtorZ Jul 7, 2022
a252ee2
Bump e2e tests' transaction max size back to 32K
KtorZ Jul 7, 2022
6f8fc06
Retry temp dir cleanup on 'UnsatisfiedConstraints'
KtorZ Jul 7, 2022
9ce1d93
Use remainingContestationPeriod from server's response as fanout delay
KtorZ Jul 7, 2022
b1cf9a6
Fix expected snapshot JSON instance in e2e
KtorZ Jul 7, 2022
fa5d3de
Factor away some complexity of withBFTNode
ch1bo Jul 7, 2022
284dacb
Stop-gap solution to trim-down length of Model traces
abailly Jul 8, 2022
e9cc0d6
Only stop in Open state (safety belt + suspender)
abailly Jul 8, 2022
254cb9c
Add some details to changelog for babbage update
ch1bo Jul 8, 2022
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
1 change: 1 addition & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,4 @@
/test-results.xml
devnet/
testnet/
vasil-testnet/
10 changes: 4 additions & 6 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,10 @@ jobs:
fetch-depth: 0

- name: Prepare nix
uses: cachix/install-nix-action@v13
uses: cachix/install-nix-action@v17
with:
skip_adding_nixpkgs_channel: true
extra_nix_config: |
trusted-public-keys = iohk.cachix.org-1:DpRUyj7h7V830dp/i6Nti+NEO2/nhblbov/8MW7Rqoo= cache.iog.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ= cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
trusted-public-keys = iohk.cachix.org-1:DpRUyj7h7V830dp/i6Nti+NEO2/nhblbov/8MW7Rqoo= hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ= cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
substituters = https://cache.nixos.org https://cache.iog.io https://iohk.cachix.org

- name: Cachix cache of nix derivations
Expand Down Expand Up @@ -132,11 +131,10 @@ jobs:
token: ${{ secrets.MY_TOKEN || github.token }}

- name: Prepare nix
uses: cachix/install-nix-action@v13
uses: cachix/install-nix-action@v17
with:
skip_adding_nixpkgs_channel: true
extra_nix_config: |
trusted-public-keys = iohk.cachix.org-1:DpRUyj7h7V830dp/i6Nti+NEO2/nhblbov/8MW7Rqoo= cache.iog.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ= cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
trusted-public-keys = iohk.cachix.org-1:DpRUyj7h7V830dp/i6Nti+NEO2/nhblbov/8MW7Rqoo= hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ= cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
substituters = https://cache.nixos.org https://cache.iog.io https://iohk.cachix.org

- name: Cachix cache of nix derivations
Expand Down
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,3 @@ test-results.xml

# Getting started / demo instructions
devnet/
testnet/
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "testnet/cardano-configurations"]
path = testnet/cardano-configurations
url = [email protected]:input-output-hk/cardano-configurations.git
14 changes: 14 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,20 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
As a minor extension, we also keep a semantic version for the `UNRELEASED`
changes.

## [0.7.0] - UNRELEASED

#### Changed

- **BREAKING** Switch to `BabbageEra` and `PlutusV2`
+ `hydra-cardano-api` now uses `Era = BabbageEra` and constructs `PlutusV2` scripts
+ `hydra-plutus` scripts now use the `serialiseData` builtin to CBOR encode data on-chain
+ `hydra-node` now expects `BabbageEra` blocks and produces `BabbageEra` transactions
+ `hydra-cluster` now spins up a stake pool instead of a BFT node (not possible in `Praos` anymore)

#### Fixed

- Head contract check UTxO hash upon closing the head [#338](https://github.com/input-output-hk/hydra-poc/pull/338). This prevents closing the head with arbitrary UTxO.

## [0.6.0] - 2022-06-22

#### Added
Expand Down
113 changes: 72 additions & 41 deletions cabal.project
Original file line number Diff line number Diff line change
Expand Up @@ -42,39 +42,44 @@ test-show-details: direct

source-repository-package
type: git
location: https://github.com/input-output-hk/cardano-node.git
tag: 1.34.1
--sha256: 1hh53whcj5y9kw4qpkiza7rmkniz18r493vv4dzl1a8r5fy3b2bv
location: https://github.com/abailly-iohk/cardano-node
tag: b96c6b075718b2c9e9d17761d16b7ca601937c10
--sha256: 1i3bxc12lsdr9l88l1w75844gwf43y8k6ysz5kx15pybkz1r1i5m
subdir:
cardano-api
cardano-git-rev
cardano-node
trace-dispatcher
trace-resources
trace-forward

-- NOTE(SN): These source-repository-package tags are copied from the
-- 'cardano-node' repository cabal.project at the revision given above. Make
-- sure to update 'tag' and 'sha256' entries when you do an upgrade. Or just
-- copy the whole thing and drop not-required packages and constraints.

-- Tracking cardano-node
source-repository-package
type: git
location: https://github.com/input-output-hk/optparse-applicative
tag: 7497a29cb998721a9068d5725d49461f2bba0e7a
--sha256: 1gvsrg925vynwgqwplgjmp53vj953qyh3wbdf34pw21c8r47w35r

-- Tracking cardano-node
source-repository-package
type: git
location: https://github.com/vshabanov/ekg-json
tag: 00ebe7211c981686e65730b7144fbf5350462608
--sha256: 1zvjm3pb38w0ijig5wk5mdkzcszpmlp5d4zxvks2jk1rkypi8gsm

-- Tracking cardano-node
source-repository-package
type: git
location: https://github.com/input-output-hk/hedgehog-extras
tag: edf6945007177a638fbeb8802397f3a6f4e47c14
--sha256: 0wc7qzkc7j4ns2rz562h6qrx2f8xyq7yjcb7zidnj7f6j0pcd0i9
tag: 967d79533c21e33387d0227a5f6cc185203fe658
--sha256: 0rbqb7a64aya1qizlr3im06hdydg9zr6sl3i8bvqqlf7kpa647sd

-- Tracking cardano-node
source-repository-package
type: git
location: https://github.com/input-output-hk/cardano-base
tag: 41545ba3ac6b3095966316a99883d678b5ab8da8
--sha256: 0icq9y3nnl42fz536da84414av36g37894qnyw4rk3qkalksqwir
tag: 0f3a867493059e650cda69e20a5cbf1ace289a57
--sha256: 0p0az3sbkhb7njji8xxdrfb0yx2gc8fmrh872ffm8sfip1w29gg1
subdir:
base-deriving-via
binary
Expand All @@ -87,20 +92,24 @@ source-repository-package
slotting
strict-containers

-- Tracking cardano-node
source-repository-package
type: git
location: https://github.com/input-output-hk/cardano-crypto
tag: f73079303f663e028288f9f4a9e08bcca39a923e
--sha256: 1n87i15x54s0cjkh3nsxs4r1x016cdw1fypwmr68936n3xxsjn6q

-- Tracking cardano-node
source-repository-package
type: git
location: https://github.com/input-output-hk/cardano-ledger
tag: 1a9ec4ae9e0b09d54e49b2a40c4ead37edadcce5
--sha256: 0avzyiqq0m8njd41ck9kpn992yq676b1az9xs77977h7cf85y4wm
tag: ce3057e0863304ccb3f79d78c77136219dc786c6
--sha256: 19ijcy1sl1iqa7diy5nsydnjsn3281kp75i2i42qv0fpn58238s9
subdir:
eras/alonzo/impl
eras/alonzo/test-suite
eras/babbage/impl
eras/babbage/test-suite
eras/byron/chain/executable-spec
eras/byron/crypto
eras/byron/crypto/test
Expand All @@ -116,12 +125,13 @@ source-repository-package
libs/cardano-ledger-test
libs/cardano-protocol-tpraos
libs/cardano-data
libs/compact-map
libs/vector-map
libs/set-algebra
libs/small-steps
libs/small-steps-test
libs/non-integral

-- Tracking cardano-node
source-repository-package
type: git
location: https://github.com/input-output-hk/cardano-prelude
Expand All @@ -131,91 +141,112 @@ source-repository-package
cardano-prelude
cardano-prelude-test

-- Tracking cardano-node
source-repository-package
type: git
location: https://github.com/input-output-hk/goblins
tag: cde90a2b27f79187ca8310b6549331e59595e7ba
--sha256: 17c88rbva3iw82yg9srlxjv2ia5wjb9cyqw44hik565f5v9svnyg

-- Tracking cardano-node
source-repository-package
type: git
location: https://github.com/input-output-hk/iohk-monitoring-framework
tag: 808724ff8a19a33d0ed06f9ef59fbd900b08553c
--sha256: 0298dpl29gxzs9as9ha6y0w18hqwc00ipa3hzkxv7nlfrjjz8hmz
tag: 066f7002aac5a0efc20e49643fea45454f226caa
--sha256: 0s6x4in11k5ba7nl7la896g28sznf9185xlqg9c604jqz58vj9nj
subdir:
contra-tracer
iohk-monitoring
plugins/backend-aggregation
plugins/backend-ekg
plugins/backend-monitoring
plugins/backend-trace-forwarder
tracer-transformers

-- Tracking cardano-node
source-repository-package
type: git
location: https://github.com/input-output-hk/Win32-network
tag: 3825d3abf75f83f406c1f7161883c438dac7277d
--sha256: 19wahfv726fa3mqajpqdqhnl9ica3xmf68i254q45iyjcpj1psqx

-- Tracking cardano-node
source-repository-package
type: git
location: https://github.com/input-output-hk/ouroboros-network
tag: 4fac197b6f0d2ff60dc3486c593b68dc00969fbf
--sha256: 1b43vbdsr9m3ry1kgag2p2ixpv54gw7a4vvmndxl6knqg8qbsb8b
tag: a65c29b6a85e90d430c7f58d362b7eb097fd4949
--sha256: 1fmab5hmi1y8lss97xh6hhikmyhsx9x31yhvg6zpr2kcq7kc6qkf
subdir:
io-sim
io-classes
monoidal-synchronisation
network-mux
ouroboros-consensus
ouroboros-consensus-byron
ouroboros-consensus-byronspec
ouroboros-consensus-byron-test
ouroboros-consensus-cardano
ouroboros-consensus-cardano-test
ouroboros-consensus-protocol
ouroboros-consensus-shelley
ouroboros-consensus-shelley-test
ouroboros-consensus-test
ouroboros-network
ouroboros-network-framework
ouroboros-network-testing

source-repository-package
type: git
location: https://github.com/input-output-hk/io-sim
tag: f4183f274d88d0ad15817c7052df3a6a8b40e6dc
--sha256: 0vb2pd9hl89v2y5hrhrsm69yx0jf98vppjmfncj2fraxr3p3lldw
subdir:
io-classes
io-sim
strict-stm
typed-protocols
typed-protocols-cborg
typed-protocols-examples

source-repository-package
type: git
location: https://github.com/input-output-hk/plutus
tag: fc5fe94d3d9525d032bcbc79ff0e1ebcfd8ef143
--sha256: 1gnzhns44rzvf9cw84jaqajqqbi9xdcpyy2sapa890vwf796nigv
location: https://github.com/input-output-hk/typed-protocols
tag: 181601bc3d9e9d21a671ce01e0b481348b3ca104
--sha256: 1lr97b2z7l0rpsmmz92rsv27qzd5vavz10cf7n25svya4kkiysp5
subdir:
plutus-core
plutus-ledger-api
plutus-tx
plutus-tx-plugin
prettyprinter-configurable
stubs/plutus-ghc-stub
word-array
typed-protocols
typed-protocols-cborg
typed-protocols-examples

-- Tracking cardano-node
source-repository-package
type: git
location: https://github.com/input-output-hk/ekg-forward
tag: 297cd9db5074339a2fb2e5ae7d0780debb670c63
--sha256: 1zcwry3y5rmd9lgxy89wsb3k4kpffqji35dc7ghzbz603y1gy24g

-- Tracking cardano-node
source-repository-package
type: git
location: https://github.com/input-output-hk/flat
tag: ee59880f47ab835dbd73bea0847dab7869fc20d8
--sha256: 1lrzknw765pz2j97nvv9ip3l1mcpf2zr4n56hwlz0rk7wq7ls4cm

-- Most constraints are from cardano-node + some from plutus-apps
-- Tracking cardano-node
source-repository-package
type: git
location: https://github.com/input-output-hk/plutus
tag: f680ac6979e069fcc013e4389ee607ff5fa6672f
--sha256: 180jq8hd0jlg48ya7b5yw3bnd2d5czy0b1agy9ng3mgnzpyq747i
subdir:
plutus-core
plutus-ledger-api
plutus-tx
plutus-tx-plugin
prettyprinter-configurable
stubs/plutus-ghc-stub
word-array

constraints:
-- cardano-ledger-byron-test fails with too new hedgehog
hedgehog >= 1.0 && < 1.1
hedgehog >= 1.0
, bimap >= 0.4.0
, libsystemd-journal >= 1.4.4
, systemd >= 2.3.0
, network >= 3.1.1.0

allow-newer:
*:aeson,
monoidal-containers:aeson,
size-based:template-haskell

Expand Down
59 changes: 27 additions & 32 deletions default.nix
Original file line number Diff line number Diff line change
@@ -1,51 +1,46 @@
{ compiler ? "ghc8107"

, system ? builtins.currentSystem

, haskellNix ? import
(builtins.fetchTarball
"https://github.com/input-output-hk/haskell.nix/archive/28dbf2f4bd32a4fbd1a2e9de45d02ad977b062d9.tar.gz")
{ }

, iohkNix ? import
(builtins.fetchTarball
"https://github.com/input-output-hk/iohk-nix/archive/62d853d3216083ecadc8e7f192498bebad4eee76.tar.gz")
"https://github.com/input-output-hk/iohk-nix/archive/5e667b374153327c7bdfdbfab8ef19b1f27d4aac.tar.gz")
{ }
, nixpkgsSrc ? haskellNix.sources.nixpkgs-2111
, nixpkgsArgs ? haskellNix.nixpkgsArgs

# nixpkgs-unstable as also used by cardano-node, cardano-ledger et al
, nixpkgsSrc ? builtins.fetchTarball "https://github.com/NixOS/nixpkgs/archive/1882c6b7368fd284ad01b0a5b5601ef136321292.tar.gz"
}:
let
pkgs = import nixpkgsSrc (nixpkgsArgs // {
pkgs = import nixpkgsSrc (haskellNix.nixpkgsArgs // {
overlays =
# Haskell.nix (https://github.com/input-output-hk/haskell.nix)
haskellNix.overlays
# needed for cardano-api which uses a patched libsodium
++ iohkNix.overlays.crypto;
# needed for cardano-crypto-class which uses a patched libsodium
++ iohkNix.overlays.crypto;
});
in
pkgs.haskell-nix.project {
src = pkgs.haskell-nix.haskellLib.cleanGit {
name = "hydra-poc";
src = ./.;
};
projectFileName = "cabal.project";
compiler-nix-name = compiler;

modules = [{
packages = {
eventful-sql-common = {
# This is needed so evenful-sql-common will build with a newer version of persistent.
ghcOptions = [ "-XDerivingStrategies -XStandaloneDeriving -XUndecidableInstances -XDataKinds -XFlexibleInstances -XMultiParamTypeClasses" ];
doHaddock = false;
};

# Broken due to haddock errors. Refer to https://github.com/input-output-hk/plutus/blob/master/nix/pkgs/haskell/haskell.nix
plutus-ledger.doHaddock = false;
plutus-use-cases.doHaddock = false;
hsPkgs = pkgs.haskell-nix.project {
src = pkgs.haskell-nix.haskellLib.cleanGit {
name = "hydra-poc";
src = ./.;
};
projectFileName = "cabal.project";
compiler-nix-name = compiler;

# https://github.com/input-output-hk/cardano-wallet/commit/ced95e1b84ce8d9faa53268be45e96701ccc16e9
packages.cardano-config.components.library.build-tools = [ pkgs.buildPackages.buildPackages.gitMinimal ];
modules = [{
# https://github.com/input-output-hk/cardano-wallet/commit/ced95e1b84ce8d9faa53268be45e96701ccc16e9
packages.cardano-config.components.library.build-tools = [ pkgs.buildPackages.buildPackages.gitMinimal ];

# https://github.com/input-output-hk/iohk-nix/pull/488
packages.cardano-crypto-class.components.library.pkgconfig = pkgs.lib.mkForce [ [ pkgs.libsodium-vrf ] ];
packages.cardano-crypto-praos.components.library.pkgconfig = pkgs.lib.mkForce [ [ pkgs.libsodium-vrf ] ];
}];
# https://github.com/input-output-hk/iohk-nix/pull/488
packages.cardano-crypto-class.components.library.pkgconfig = pkgs.lib.mkForce [ [ pkgs.libsodium-vrf pkgs.secp256k1 ] ];
packages.cardano-crypto-praos.components.library.pkgconfig = pkgs.lib.mkForce [ [ pkgs.libsodium-vrf ] ];
}];
};
in
{
inherit pkgs hsPkgs compiler;
}
8 changes: 5 additions & 3 deletions demo/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,11 @@ services:
, "--config", "/data/cardano-node.json"
, "--topology", "/data/topology.json"
, "--database-path", "/data/db"
, "--shelley-operational-certificate", "/data/credentials/opcert1.cert"
, "--shelley-kes-key", "/data/credentials/delegate1.kes.skey"
, "--shelley-vrf-key", "/data/credentials/delegate1.vrf.skey"
, "--shelley-kes-key", "/data/credentials/stake-pool-1/kes.skey"
, "--shelley-vrf-key", "/data/credentials/stake-pool-1/vrf.skey"
, "--shelley-operational-certificate", "/data/credentials/stake-pool-1/opcert.cert"
, "--byron-delegation-certificate", "/data/credentials/stake-pool-1/byron-delegation.cert"
, "--byron-signing-key", "/data/credentials/stake-pool-1/byron-delegate.key"
]

hydra-node-1:
Expand Down
Loading