Skip to content
This repository was archived by the owner on May 20, 2024. It is now read-only.

Commit 65941c2

Browse files
committed
Updated the plutus-apps dependency to v1.0.0-rc1
1 parent aafa7d6 commit 65941c2

File tree

5 files changed

+134
-58
lines changed

5 files changed

+134
-58
lines changed

cabal.project

Lines changed: 104 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
index-state: 2022-02-22T20:47:03Z
1+
-- Bump this if you need newer packages.
2+
index-state: 2022-05-18T00:00:00Z
23

34
packages: ./.
45

@@ -9,10 +10,11 @@ write-ghc-environment-files: never
910
tests: true
1011
benchmarks: true
1112

12-
-- Plutus apps revision from 2022-04-06
13+
-- Plutus apps revision from 2022-07-05
1314
source-repository-package
1415
type: git
1516
location: https://github.com/input-output-hk/plutus-apps.git
17+
tag: 194022c32b72c5f16472d718f75981264ace97b3
1618
subdir:
1719
doc
1820
freer-extras
@@ -27,11 +29,11 @@ source-repository-package
2729
plutus-pab
2830
plutus-pab-executables
2931
plutus-playground-server
32+
plutus-script-utils
33+
plutus-streaming
34+
plutus-tx-constraints
3035
plutus-use-cases
31-
quickcheck-dynamic
3236
web-ghc
33-
tag: v2022-04-06
34-
3537

3638
-- The following sections are copied from the 'plutus-apps' repository cabal.project at the revision
3739
-- given above.
@@ -50,15 +52,28 @@ benchmarks: true
5052
test-show-details: streaming
5153

5254
allow-newer:
53-
size-based:template-haskell
55+
*:aeson
56+
, size-based:template-haskell
5457

5558
constraints:
56-
-- Because later versions of hedgehog introduce a change which break 'cardano-ledger':
57-
-- Test/Cardano/Chain/Delegation/Model.hs:91:41: error:
58-
-- • Could not deduce (TraversableB SignalSDELEG)
59-
-- TODO: Try to remove on next `cardano-node` version upgrade.
60-
hedgehog >= 1.0.2 && < 1.1
59+
aeson >= 2
60+
, hedgehog >= 1.1
61+
62+
-- COPIED FROM PLUTUS-APPS
63+
-- The plugin will typically fail when producing Haddock documentation. However,
64+
-- in this instance you can simply tell it to defer any errors to runtime (which
65+
-- will never happen since you're building documentation).
66+
--
67+
-- So, any package using 'PlutusTx.compile' in the code for which you need to
68+
-- generate haddock documentation should use the following 'haddock-options'.
69+
package plutus-ledger
70+
haddock-options: "--optghc=-fplugin-opt PlutusTx.Plugin:defer-errors"
71+
package plutus-script-utils
72+
haddock-options: "--optghc=-fplugin-opt PlutusTx.Plugin:defer-errors"
73+
package plutus-contract
74+
haddock-options: "--optghc=-fplugin-opt PlutusTx.Plugin:defer-errors"
6175

76+
-- COPIED FROM PLUTUS-APPS
6277
-- These packages appear in our dependency tree and are very slow to build.
6378
-- Empirically, turning off optimization shaves off ~50% build time.
6479
-- It also mildly improves recompilation avoidance.
@@ -82,6 +97,8 @@ package cardano-wallet-launcher
8297
package cardano-wallet-core-integration
8398
optimization: False
8499

100+
-- ALL THE SOURCE-REPOSITORY-PACKAGE STANZAS ARE COPIED FROM PLUTUS-APPS
101+
85102
-- Direct dependency.
86103
-- Are you thinking of updating this tag to some other commit?
87104
-- Please ensure that the commit you are about to use is the latest one from
@@ -95,7 +112,7 @@ package cardano-wallet-core-integration
95112
source-repository-package
96113
type: git
97114
location: https://github.com/input-output-hk/iohk-monitoring-framework
98-
tag: 46f994e216a1f8b36fe4669b47b2a7011b0e153c
115+
tag: 066f7002aac5a0efc20e49643fea45454f226caa
99116
subdir:
100117
contra-tracer
101118
iohk-monitoring
@@ -105,11 +122,13 @@ source-repository-package
105122
plugins/backend-monitoring
106123
plugins/backend-trace-forwarder
107124

108-
-- Direct dependency.
125+
-- Should follow cardano-node.
126+
-- But in case there are failures with the plutus version, update to the latest
127+
-- commit hash of the release/1.0.0 plutus branch.
109128
source-repository-package
110129
type: git
111130
location: https://github.com/input-output-hk/plutus
112-
tag: 4127e9cd6e889824d724c30eae55033cb50cbf3e
131+
tag: 69ab98c384703172f898eb5bcad1078ded521426
113132
subdir:
114133
plutus-core
115134
plutus-ledger-api
@@ -119,6 +138,12 @@ source-repository-package
119138
stubs/plutus-ghc-stub
120139
word-array
121140

141+
-- Should follow cardano-node
142+
source-repository-package
143+
type: git
144+
location: https://github.com/input-output-hk/ekg-forward
145+
tag: 297cd9db5074339a2fb2e5ae7d0780debb670c63
146+
122147
-- Should follow plutus.
123148
source-repository-package
124149
type: git
@@ -143,10 +168,12 @@ source-repository-package
143168
-- As, for example, bumping the node first highly risks breaking API with the wallet.
144169
-- Unless early bug fixes are required, this is fine as the wallet tracks stable releases of the node.
145170
-- And it is indeed nice for plutus-apps to track stable releases of the node too.
171+
--
172+
-- The current version is dated 2022/06/28.
146173
source-repository-package
147174
type: git
148175
location: https://github.com/input-output-hk/cardano-wallet
149-
tag: f6d4db733c4e47ee11683c343b440552f59beff7
176+
tag: a73d8c9717dc4e174745f8568d6f3fe84f0f9d76
150177
subdir:
151178
lib/cli
152179
lib/core
@@ -158,55 +185,52 @@ source-repository-package
158185
lib/strict-non-empty-containers
159186
lib/test-utils
160187
lib/text-class
161-
162188

163189
-- Should follow cardano-wallet.
164-
-- Currently tracking v1.34.1.
190+
-- More precisally, this should be a version compatible with the current
191+
-- Cardano mainnet (>=1.35).
192+
-- Current version is dated to 2022/06/25.
165193
source-repository-package
166194
type: git
167195
location: https://github.com/input-output-hk/cardano-node
168-
tag: 73f9a746362695dc2cb63ba757fbcabb81733d23
196+
tag: 1.35.0
197+
--sha256: 06arx9hv7dn3qxfy83f0b6018rxbsvh841nvfyg5w6qclm1hddj7
169198
subdir:
170199
cardano-api
171200
cardano-cli
172201
cardano-git-rev
173202
cardano-node
203+
cardano-submit-api
174204
cardano-testnet
175205
trace-dispatcher
176206
trace-forward
177207
trace-resources
178-
179-
source-repository-package
180-
type: git
181-
location: https://github.com/input-output-hk/ekg-forward
182-
tag: 297cd9db5074339a2fb2e5ae7d0780debb670c63
183-
208+
184209
source-repository-package
185210
type: git
186211
location: https://github.com/input-output-hk/cardano-config
187-
tag: e9de7a2cf70796f6ff26eac9f9540184ded0e4e6
188-
--sha256: 1wm1c99r5zvz22pdl8nhkp13falvqmj8dgkm8fxskwa9ydqz01ld
212+
tag: 1646e9167fab36c0bff82317743b96efa2d3adaa
189213

190214
-- Using a fork until our patches can be merged upstream
191215
source-repository-package
192216
type: git
193217
location: https://github.com/input-output-hk/optparse-applicative
194218
tag: 7497a29cb998721a9068d5725d49461f2bba0e7a
195-
--sha256: 1gvsrg925vynwgqwplgjmp53vj953qyh3wbdf34pw21c8r47w35r
196219

197220
source-repository-package
198221
type: git
199222
location: https://github.com/input-output-hk/hedgehog-extras
200-
tag: edf6945007177a638fbeb8802397f3a6f4e47c14
201-
--sha256: 0wc7qzkc7j4ns2rz562h6qrx2f8xyq7yjcb7zidnj7f6j0pcd0i9
223+
tag: 967d79533c21e33387d0227a5f6cc185203fe658
202224

203225
-- Should follow cardano-wallet.
204226
source-repository-package
205227
type: git
206228
location: https://github.com/input-output-hk/cardano-ledger
207-
tag: 1a9ec4ae9e0b09d54e49b2a40c4ead37edadcce5
229+
tag: ce3057e0863304ccb3f79d78c77136219dc786c6
230+
--sha256: 19ijcy1sl1iqa7diy5nsydnjsn3281kp75i2i42qv0fpn58238s9
208231
subdir:
209232
eras/alonzo/impl
233+
eras/babbage/impl
210234
eras/byron/chain/executable-spec
211235
eras/byron/crypto
212236
eras/byron/crypto/test
@@ -220,7 +244,7 @@ source-repository-package
220244
libs/cardano-ledger-core
221245
libs/cardano-ledger-pretty
222246
libs/cardano-protocol-tpraos
223-
libs/compact-map
247+
libs/vector-map
224248
libs/non-integral
225249
libs/set-algebra
226250
libs/small-steps
@@ -230,10 +254,9 @@ source-repository-package
230254
source-repository-package
231255
type: git
232256
location: https://github.com/input-output-hk/ouroboros-network
233-
tag: 4fac197b6f0d2ff60dc3486c593b68dc00969fbf
257+
tag: a65c29b6a85e90d430c7f58d362b7eb097fd4949
258+
--sha256: 1fmab5hmi1y8lss97xh6hhikmyhsx9x31yhvg6zpr2kcq7kc6qkf
234259
subdir:
235-
io-classes
236-
io-sim
237260
monoidal-synchronisation
238261
network-mux
239262
ntp-client
@@ -245,7 +268,23 @@ source-repository-package
245268
ouroboros-network
246269
ouroboros-network-framework
247270
ouroboros-network-testing
271+
272+
-- Should follow cardano-node.
273+
source-repository-package
274+
type: git
275+
location: https://github.com/input-output-hk/io-sim
276+
tag: 57e888b1894829056cb00b7b5785fdf6a74c3271
277+
subdir:
278+
io-classes
279+
io-sim
248280
strict-stm
281+
282+
-- Should follow cardano-node.
283+
source-repository-package
284+
type: git
285+
location: https://github.com/input-output-hk/typed-protocols
286+
tag: 181601bc3d9e9d21a671ce01e0b481348b3ca104
287+
subdir:
249288
typed-protocols
250289
typed-protocols-cborg
251290
typed-protocols-examples
@@ -254,13 +293,14 @@ source-repository-package
254293
source-repository-package
255294
type: git
256295
location: https://github.com/input-output-hk/cardano-base
257-
tag: 41545ba3ac6b3095966316a99883d678b5ab8da8
296+
tag: 0f3a867493059e650cda69e20a5cbf1ace289a57
258297
subdir:
259298
base-deriving-via
260299
binary
261300
binary/test
262301
cardano-crypto-class
263302
cardano-crypto-praos
303+
cardano-crypto-tests
264304
measures
265305
orphans-deriving-via
266306
slotting
@@ -285,7 +325,7 @@ source-repository-package
285325
source-repository-package
286326
type: git
287327
location: https://github.com/input-output-hk/cardano-addresses
288-
tag: 71006f9eb956b0004022e80aadd4ad50d837b621
328+
tag: b6f2f3cef01a399376064194fd96711a5bdba4a7
289329
subdir:
290330
command-line
291331
core
@@ -301,3 +341,31 @@ source-repository-package
301341
type: git
302342
location: https://github.com/input-output-hk/Win32-network
303343
tag: 3825d3abf75f83f406c1f7161883c438dac7277d
344+
345+
-- Until https://github.com/tibbe/ekg-json/pull/12 gets merged with aeson2 support
346+
source-repository-package
347+
type: git
348+
location: https://github.com/vshabanov/ekg-json
349+
tag: 00ebe7211c981686e65730b7144fbf5350462608
350+
351+
-- TODO This is a compatibility shim to make it easier for our library dependencies to
352+
-- be compatible with both aeson 1 & 2. Once downstream projects are all upgraded to
353+
-- work with aeson-2, library dependencies will need to be updated to no longer use
354+
-- this compatibility shim and have bounds to indicate they work with aeson-2 only.
355+
-- After this, the dependency to hw-aeson can be dropped.
356+
source-repository-package
357+
type: git
358+
location: https://github.com/haskell-works/hw-aeson
359+
tag: d99d2f3e39a287607418ae605b132a3deb2b753f
360+
--sha256: 1vxqcwjg9q37wbwi27y9ba5163lzfz51f1swbi0rp681yg63zvn4
361+
362+
-- Temporary indexing
363+
source-repository-package
364+
type: git
365+
location: https://github.com/raduom/hysterical-screams
366+
tag: 4c523469e9efd3f0d10d17da3304923b7b0e0674
367+
368+
source-repository-package
369+
type: git
370+
location: https://github.com/input-output-hk/quickcheck-dynamic
371+
tag: c272906361471d684440f76c297e29ab760f6a1e

examples/src/Plutus/Contracts/Game.hs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,11 @@ import Data.Map (Map)
4545
import qualified Data.Map as Map
4646
import Data.Maybe (catMaybes)
4747
import Ledger (Address, Datum (Datum), ScriptContext, Validator, Value)
48-
import qualified Ledger
4948
import qualified Ledger.Ada as Ada
5049
import qualified Ledger.Constraints as Constraints
5150
import Ledger.Tx (ChainIndexTxOut (..))
5251
import qualified Ledger.Typed.Scripts as Scripts
52+
import Plutus.Script.Utils.V1.Address (mkValidatorAddress)
5353
import Playground.Contract
5454
import Plutus.Contract
5555
import Plutus.Contract.Trace as X
@@ -80,7 +80,7 @@ gameInstance :: Scripts.TypedValidator Game
8080
gameInstance = Scripts.mkTypedValidator @Game
8181
$$(PlutusTx.compile [|| validateGuess ||])
8282
$$(PlutusTx.compile [|| wrap ||]) where
83-
wrap = Scripts.wrapValidator @HashedString @ClearString
83+
wrap = Scripts.mkUntypedValidator @HashedString @ClearString
8484

8585
-- create a data script for the guessing game by hashing the string
8686
-- and lifting the hash to its on-chain representation
@@ -105,7 +105,7 @@ gameValidator = Scripts.validatorScript gameInstance
105105

106106
-- | The address of the game (the hash of its validator script)
107107
gameAddress :: Address
108-
gameAddress = Ledger.scriptAddress gameValidator
108+
gameAddress = mkValidatorAddress gameValidator
109109

110110
-- | Parameters for the "lock" endpoint
111111
data LockParams = LockParams

nix/pkgs/haskell/haskell.nix

Lines changed: 19 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -22,24 +22,31 @@ let
2222
# If using materialization, be sure to disable it when source-repo-override is set or it won't take effect.
2323

2424
sha256map = {
25-
"https://github.com/input-output-hk/plutus-apps.git"."v2022-04-06" = "13yg3vb6a6gmjawlfa3wam5c6krqm7lip4w1p0j30hflca23x2h2";
25+
"https://github.com/input-output-hk/plutus-apps.git"."194022c32b72c5f16472d718f75981264ace97b3" = "0ln7ydg79gk5vxcqkc1lqaq57bpmbpy5sq9rjnriy4a0vhvqc2dx";
2626
"https://github.com/input-output-hk/ekg-forward"."297cd9db5074339a2fb2e5ae7d0780debb670c63" = "1zcwry3y5rmd9lgxy89wsb3k4kpffqji35dc7ghzbz603y1gy24g";
27-
"https://github.com/input-output-hk/cardano-addresses"."71006f9eb956b0004022e80aadd4ad50d837b621" = "11dl3fmq7ry5wdmz8kw07ji8yvrxnrsf7pgilw5q9mi4aqyvnaqk";
28-
"https://github.com/input-output-hk/cardano-base"."41545ba3ac6b3095966316a99883d678b5ab8da8" = "0icq9y3nnl42fz536da84414av36g37894qnyw4rk3qkalksqwir";
29-
"https://github.com/input-output-hk/cardano-config"."e9de7a2cf70796f6ff26eac9f9540184ded0e4e6" = "1wm1c99r5zvz22pdl8nhkp13falvqmj8dgkm8fxskwa9ydqz01ld";
27+
"https://github.com/input-output-hk/cardano-addresses"."b6f2f3cef01a399376064194fd96711a5bdba4a7" = "10yj47gay72kx6v564qlfiigggcpqfdzrg61ii8p25m5n8ijz045";
28+
"https://github.com/input-output-hk/cardano-base"."0f3a867493059e650cda69e20a5cbf1ace289a57" = "0p0az3sbkhb7njji8xxdrfb0yx2gc8fmrh872ffm8sfip1w29gg1";
29+
"https://github.com/input-output-hk/cardano-config"."1646e9167fab36c0bff82317743b96efa2d3adaa" = "sha256-TNbpnR7llUgBN2WY7CryMxNVupBIUH01h1hRNHoxboY=";
3030
"https://github.com/input-output-hk/cardano-crypto"."f73079303f663e028288f9f4a9e08bcca39a923e" = "1n87i15x54s0cjkh3nsxs4r1x016cdw1fypwmr68936n3xxsjn6q";
31-
"https://github.com/input-output-hk/cardano-ledger"."1a9ec4ae9e0b09d54e49b2a40c4ead37edadcce5" = "0avzyiqq0m8njd41ck9kpn992yq676b1az9xs77977h7cf85y4wm";
32-
"https://github.com/input-output-hk/cardano-node"."73f9a746362695dc2cb63ba757fbcabb81733d23" = "1hh53whcj5y9kw4qpkiza7rmkniz18r493vv4dzl1a8r5fy3b2bv";
33-
"https://github.com/input-output-hk/cardano-prelude"."bb4ed71ba8e587f672d06edf9d2e376f4b055555" = "00h10l5mmiza9819p9v5q5749nb9pzgi20vpzpy1d34zmh6gf1cj";
34-
"https://github.com/input-output-hk/cardano-wallet"."f6d4db733c4e47ee11683c343b440552f59beff7" = "0gb3zyv3q5v5sd8r29s02yc0brwq5a01is9c0n528391n2r8g1yy";
31+
"https://github.com/input-output-hk/cardano-ledger"."ce3057e0863304ccb3f79d78c77136219dc786c6" = "19ijcy1sl1iqa7diy5nsydnjsn3281kp75i2i42qv0fpn58238s9";
32+
"https://github.com/input-output-hk/cardano-node"."1.35.0" = "06arx9hv7dn3qxfy83f0b6018rxbsvh841nvfyg5w6qclm1hddj7";
33+
"https://github.com/input-output-hk/cardano-prelude"."bb4ed71ba8e587f672d06edf9d2e376f4b055555" = "sha256-kgX3DKyfjBb8/XcDEd+/adlETsFlp5sCSurHWgsFAQI=";
34+
"https://github.com/input-output-hk/cardano-wallet"."a73d8c9717dc4e174745f8568d6f3fe84f0f9d76" = "19srmc3rg8db73mfqnpdacmlpbp2x5mb4pi82mv14innhdl01jlx";
3535
"https://github.com/input-output-hk/goblins"."cde90a2b27f79187ca8310b6549331e59595e7ba" = "17c88rbva3iw82yg9srlxjv2ia5wjb9cyqw44hik565f5v9svnyg";
36-
"https://github.com/input-output-hk/iohk-monitoring-framework"."46f994e216a1f8b36fe4669b47b2a7011b0e153c" = "1il8fx3misp3650ryj368b3x95ksz01zz3x0z9k00807j93d0ka0";
37-
"https://github.com/input-output-hk/ouroboros-network"."4fac197b6f0d2ff60dc3486c593b68dc00969fbf" = "1b43vbdsr9m3ry1kgag2p2ixpv54gw7a4vvmndxl6knqg8qbsb8b";
38-
"https://github.com/input-output-hk/plutus"."4127e9cd6e889824d724c30eae55033cb50cbf3e" = "186w0x7vk8m8npmsfg9pdkxds0rlj6bmhr8nkgn96rkvaz5azjsb";
36+
"https://github.com/input-output-hk/hedgehog-extras"."967d79533c21e33387d0227a5f6cc185203fe658" = "0rbqb7a64aya1qizlr3im06hdydg9zr6sl3i8bvqqlf7kpa647sd";
37+
"https://github.com/input-output-hk/iohk-monitoring-framework"."066f7002aac5a0efc20e49643fea45454f226caa" = "0s6x4in11k5ba7nl7la896g28sznf9185xlqg9c604jqz58vj9nj";
38+
"https://github.com/input-output-hk/io-sim"."57e888b1894829056cb00b7b5785fdf6a74c3271" = "sha256-TviSvCBEYtlKEo9qJmE8pCE25nMjDi8HeIAFniunaM8=";
39+
"https://github.com/input-output-hk/optparse-applicative"."7497a29cb998721a9068d5725d49461f2bba0e7a" = "1gvsrg925vynwgqwplgjmp53vj953qyh3wbdf34pw21c8r47w35r";
40+
"https://github.com/input-output-hk/ouroboros-network"."a65c29b6a85e90d430c7f58d362b7eb097fd4949" = "1fmab5hmi1y8lss97xh6hhikmyhsx9x31yhvg6zpr2kcq7kc6qkf";
41+
"https://github.com/input-output-hk/plutus"."69ab98c384703172f898eb5bcad1078ded521426" = "0n3acmb6amyz11zqqcv7h8b2y4gdaly8a3zsc5yi7nfpj93h6g01";
3942
"https://github.com/input-output-hk/purescript-bridge"."47a1f11825a0f9445e0f98792f79172efef66c00" = "0da1vn2l6iyfxcjk58qal1l4755v92zi6yppmjmqvxf1gacyf9px";
4043
"https://github.com/input-output-hk/servant-purescript"."44e7cacf109f84984cd99cd3faf185d161826963" = "10pb0yfp80jhb9ryn65a4rha2lxzsn2vlhcc6xphrrkf4x5lhzqc";
44+
"https://github.com/input-output-hk/typed-protocols"."181601bc3d9e9d21a671ce01e0b481348b3ca104" = "sha256-5Wof5yTKb12EPY6B8LfapX18xNZZpF+rvhnQ88U6KdM=";
4145
"https://github.com/input-output-hk/Win32-network"."3825d3abf75f83f406c1f7161883c438dac7277d" = "19wahfv726fa3mqajpqdqhnl9ica3xmf68i254q45iyjcpj1psqx";
4246
"https://github.com/Quid2/flat"."ee59880f47ab835dbd73bea0847dab7869fc20d8" = "1lrzknw765pz2j97nvv9ip3l1mcpf2zr4n56hwlz0rk7wq7ls4cm";
47+
"https://github.com/vshabanov/ekg-json"."00ebe7211c981686e65730b7144fbf5350462608" = "sha256-VT8Ur585TCn03P2TVi6t92v2Z6tl8vKijICjse6ocv8=";
48+
"https://github.com/raduom/hysterical-screams"."4c523469e9efd3f0d10d17da3304923b7b0e0674" = "0w118v4vffrsjxfmwfv8qcn2qxmxpd1gxwcjnda91qz09jnpg0vp";
49+
"https://github.com/input-output-hk/quickcheck-dynamic"."c272906361471d684440f76c297e29ab760f6a1e" = "sha256-TioJQASNrQX6B3n2Cv43X2olyT67//CFQqcpvNW7N60=";
4350
};
4451

4552
modules = [
@@ -59,4 +66,4 @@ let
5966
inherit source-repo-override;
6067
};
6168
in
62-
project
69+
project

0 commit comments

Comments
 (0)