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

Commit 1bfab98

Browse files
authored
Merge pull request #32 from input-output-hk/upgrade-to-1-0.10
version bump
2 parents a85818c + 48ab4d5 commit 1bfab98

File tree

8 files changed

+65
-45
lines changed

8 files changed

+65
-45
lines changed

.devcontainer/devcontainer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "Plutus Starter Project",
3-
"image": "docker.io/inputoutput/plutus-starter-devcontainer:v1.0.9",
3+
"image": "docker.io/inputoutput/plutus-starter-devcontainer:v1.0.10",
44

55
"remoteUser": "plutus",
66

cabal.project

Lines changed: 29 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ source-repository-package
2828
prettyprinter-configurable
2929
quickcheck-dynamic
3030
word-array
31-
tag: plutus-starter-devcontainer/v1.0.9
31+
tag: plutus-starter-devcontainer/v1.0.10
3232

3333

3434
-- The following sections are copied from the 'plutus' repository cabal.project at the revision
@@ -91,13 +91,13 @@ source-repository-package
9191
-- Needs some patches, but upstream seems to be fairly dead (no activity in > 1 year)
9292
source-repository-package
9393
type: git
94-
location: https://github.com/shmish111/purescript-bridge.git
94+
location: https://github.com/input-output-hk/purescript-bridge.git
9595
tag: 6a92d7853ea514be8b70bab5e72077bf5a510596
9696

9797
source-repository-package
9898
type: git
99-
location: https://github.com/shmish111/servant-purescript.git
100-
tag: a76104490499aa72d40c2790d10e9383e0dbde63
99+
location: https://github.com/input-output-hk/servant-purescript.git
100+
tag: a0c7c7e37c95564061247461aef4be505a853538
101101

102102
source-repository-package
103103
type: git
@@ -107,7 +107,7 @@ source-repository-package
107107
source-repository-package
108108
type: git
109109
location: https://github.com/input-output-hk/cardano-base
110-
tag: 46502694f6a9f0498f822068008b232b3837a9e9
110+
tag: 592aa61d657ad5935a33bace1243abce3728b643
111111
subdir:
112112
base-deriving-via
113113
binary
@@ -128,10 +128,28 @@ source-repository-package
128128
cardano-prelude
129129
cardano-prelude-test
130130

131+
source-repository-package
132+
type: git
133+
location: https://github.com/input-output-hk/cardano-addresses
134+
tag: d2f86caa085402a953920c6714a0de6a50b655ec
135+
subdir:
136+
core
137+
138+
source-repository-package
139+
type: git
140+
location: https://github.com/input-output-hk/cardano-wallet
141+
tag: ae7569293e94241ef6829139ec02bd91abd069df
142+
subdir:
143+
lib/text-class
144+
lib/strict-non-empty-containers
145+
lib/core
146+
lib/test-utils
147+
lib/numeric
148+
131149
source-repository-package
132150
type: git
133151
location: https://github.com/input-output-hk/ouroboros-network
134-
tag: 6d00ff77f9bcd769fb6d7fd02216cec4e837bfcf
152+
tag: 5d37a927046bc7da2887830d8e35cf604622ce09
135153
subdir:
136154
monoidal-synchronisation
137155
typed-protocols
@@ -146,6 +164,7 @@ source-repository-package
146164
io-sim
147165
io-classes
148166
network-mux
167+
ntp-client
149168

150169
source-repository-package
151170
type: git
@@ -173,8 +192,8 @@ source-repository-package
173192

174193
source-repository-package
175194
type: git
176-
location: https://github.com/input-output-hk/cardano-ledger-specs
177-
tag: 8efcfc755faae4db3a64ad45343235fce3ed5c47
195+
location: https://github.com/raduom/cardano-ledger-specs
196+
tag: ef6bb99782d61316da55470620c7da994cc352b2
178197
subdir:
179198
byron/chain/executable-spec
180199
byron/crypto
@@ -183,6 +202,7 @@ source-repository-package
183202
byron/ledger/impl
184203
byron/ledger/impl/test
185204
semantics/executable-spec
205+
cardano-protocol-tpraos
186206
semantics/small-steps-test
187207
shelley/chain-and-ledger/dependencies/non-integer
188208
shelley/chain-and-ledger/executable-spec
@@ -197,7 +217,7 @@ source-repository-package
197217
source-repository-package
198218
type: git
199219
location: https://github.com/input-output-hk/cardano-node.git
200-
tag: 8cf2b208c7708bd890c7e74d5b1d7c4167a3b40b
220+
tag: ed7fdbf65f40f8e194850b87dd8c631fe26154e6
201221
subdir:
202222
cardano-api
203223
cardano-node

examples/test/Spec/game.pir

Lines changed: 13 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -274,41 +274,31 @@
274274
)
275275
)
276276
)
277-
(termbind
278-
(strict)
279-
(vardecl
280-
validateGuess
281-
(fun
282-
(con bytestring) (fun (con bytestring) (fun ScriptContext Bool))
283-
)
284-
)
277+
(lam
278+
hs
279+
(con bytestring)
285280
(lam
286-
hs
281+
cs
287282
(con bytestring)
288283
(lam
289-
cs
290-
(con bytestring)
291-
(lam
292-
ds
293-
ScriptContext
284+
ds
285+
ScriptContext
286+
[
294287
[
295288
[
289+
{ (builtin ifThenElse) Bool }
296290
[
297-
{ (builtin ifThenElse) Bool }
298-
[
299-
[ (builtin equalsByteString) hs ]
300-
[ (builtin sha2_256) cs ]
301-
]
291+
[ (builtin equalsByteString) hs ]
292+
[ (builtin sha2_256) cs ]
302293
]
303-
True
304294
]
305-
False
295+
True
306296
]
307-
)
297+
False
298+
]
308299
)
309300
)
310301
)
311-
validateGuess
312302
)
313303
)
314304
)

nix/pkgs/haskell/haskell.nix

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,21 +19,23 @@ let
1919
inherit compiler-nix-name;
2020

2121
sha256map = {
22-
"https://github.com/input-output-hk/plutus.git"."plutus-starter-devcontainer/v1.0.9" = "12mr2p21igzslflr794vh5jhgl5vynrfli09gpjsv0x3g44wq18l";
22+
"https://github.com/input-output-hk/plutus.git"."plutus-starter-devcontainer/v1.0.10" = "06c3jhsbjmzqv951yi1spq1jihija48vss2b8gx9b1fqnz50dbnm";
2323
"https://github.com/Quid2/flat.git"."ee59880f47ab835dbd73bea0847dab7869fc20d8" = "1lrzknw765pz2j97nvv9ip3l1mcpf2zr4n56hwlz0rk7wq7ls4cm";
24-
"https://github.com/shmish111/purescript-bridge.git"."6a92d7853ea514be8b70bab5e72077bf5a510596" = "13j64vv116in3c204qsl1v0ajphac9fqvsjp7x3zzfr7n7g61drb";
25-
"https://github.com/shmish111/servant-purescript.git"."a76104490499aa72d40c2790d10e9383e0dbde63" = "11nxxmi5bw66va7psvrgrw7b7n85fvqgfp58yva99w3v9q3a50v9";
26-
"https://github.com/input-output-hk/cardano-base"."46502694f6a9f0498f822068008b232b3837a9e9" = "04bvsvghkrjhfjb3phh0s5yfb37fishglrrlcwbvcv48y2in1dcz";
24+
"https://github.com/input-output-hk/purescript-bridge.git"."6a92d7853ea514be8b70bab5e72077bf5a510596" = "13j64vv116in3c204qsl1v0ajphac9fqvsjp7x3zzfr7n7g61drb";
25+
"https://github.com/input-output-hk/servant-purescript.git"."a0c7c7e37c95564061247461aef4be505a853538" = "177na04jf6wf18kandzsah40lw3xswmmccpr3hkb8wb4hypcffnf";
26+
"https://github.com/input-output-hk/cardano-base"."592aa61d657ad5935a33bace1243abce3728b643" = "1bgq3a2wfdz24jqfwylcc6jjg5aji8dpy5gjkhpnmkkvgcr2rkyb";
2727
"https://github.com/input-output-hk/cardano-crypto.git"."07397f0e50da97eaa0575d93bee7ac4b2b2576ec" = "06sdx5ndn2g722jhpicmg96vsrys89fl81k8290b3lr6b1b0w4m3";
28-
"https://github.com/input-output-hk/cardano-ledger-specs"."8efcfc755faae4db3a64ad45343235fce3ed5c47" = "13mj8nqk4jglyl96d6zm3dbjmx2qn5gwn06g7cmanxiwfkfm7bi1";
28+
"https://github.com/raduom/cardano-ledger-specs"."ef6bb99782d61316da55470620c7da994cc352b2" = "0z2818kwiwv7smz0ff8wr4zb405pymgd12zm32asas0mp5bqxkin";
2929
"https://github.com/input-output-hk/cardano-prelude"."fd773f7a58412131512b9f694ab95653ac430852" = "02jddik1yw0222wd6q0vv10f7y8rdgrlqaiy83ph002f9kjx7mh6";
3030
"https://github.com/input-output-hk/goblins"."cde90a2b27f79187ca8310b6549331e59595e7ba" = "17c88rbva3iw82yg9srlxjv2ia5wjb9cyqw44hik565f5v9svnyg";
3131
"https://github.com/input-output-hk/iohk-monitoring-framework"."46f994e216a1f8b36fe4669b47b2a7011b0e153c" = "1il8fx3misp3650ryj368b3x95ksz01zz3x0z9k00807j93d0ka0";
3232
"https://github.com/input-output-hk/optparse-applicative"."7497a29cb998721a9068d5725d49461f2bba0e7a" = "1gvsrg925vynwgqwplgjmp53vj953qyh3wbdf34pw21c8r47w35r";
33-
"https://github.com/input-output-hk/ouroboros-network"."6d00ff77f9bcd769fb6d7fd02216cec4e837bfcf" = "19dfhm9r1z00jqwpbnx7z0d58gpqsbwx4p96xlwwamd40hi3asn3";
34-
"https://github.com/input-output-hk/cardano-node.git"."8cf2b208c7708bd890c7e74d5b1d7c4167a3b40b" = "0akmzzf1gb8067knlzpbqdpkn3zrk5fm16icdzip44ilzwl5y2m0";
33+
"https://github.com/input-output-hk/ouroboros-network"."5d37a927046bc7da2887830d8e35cf604622ce09" = "1620zcnivgm1wp1kq3vqc44g77lv7dalzgywc96qsblf1sv9fw3p";
34+
"https://github.com/input-output-hk/cardano-node.git"."ed7fdbf65f40f8e194850b87dd8c631fe26154e6" = "0ivvqnw6fflfbzywychfsyyjd6jn3pg1r0vv63m1rdwp04v59kh5";
3535
"https://github.com/input-output-hk/Win32-network"."3825d3abf75f83f406c1f7161883c438dac7277d" = "19wahfv726fa3mqajpqdqhnl9ica3xmf68i254q45iyjcpj1psqx";
3636
"https://github.com/input-output-hk/hedgehog-extras"."edf6945007177a638fbeb8802397f3a6f4e47c14" = "0wc7qzkc7j4ns2rz562h6qrx2f8xyq7yjcb7zidnj7f6j0pcd0i9";
37+
"https://github.com/input-output-hk/cardano-wallet"."ae7569293e94241ef6829139ec02bd91abd069df" = "1mv1dhpkdj9ridm1fvq6jc85qs6zvbp172228rq72gyawjwrgvi6";
38+
"https://github.com/input-output-hk/cardano-addresses"."d2f86caa085402a953920c6714a0de6a50b655ec" = "0p6jbnd7ky2yf7bwb1350k8880py8dgqg39k49q02a6ij4ld01ay";
3739
};
3840

3941
modules = [

nix/sources.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55
"homepage": "",
66
"owner": "input-output-hk",
77
"repo": "plutus",
8-
"rev": "plutus-starter-devcontainer/v1.0.8",
9-
"sha256": "0fas8kv57lyrsn3larvbfgif48d506w73y7g3g0mxfilfsl5nyfz",
8+
"rev": "plutus-starter-devcontainer/v1.0.10",
9+
"sha256": "06c3jhsbjmzqv951yi1spq1jihija48vss2b8gx9b1fqnz50dbnm",
1010
"type": "tarball",
11-
"url": "https://github.com/input-output-hk/plutus/archive/plutus-starter-devcontainer/v1.0.8.tar.gz",
11+
"url": "https://github.com/input-output-hk/plutus/archive/plutus-starter-devcontainer/v1.0.10.tar.gz",
1212
"url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz"
1313
}
1414
}

pab/Main.hs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{-# LANGUAGE DataKinds #-}
2+
{-# LANGUAGE DeriveAnyClass #-}
23
{-# LANGUAGE DeriveGeneric #-}
34
{-# LANGUAGE DerivingStrategies #-}
45
{-# LANGUAGE FlexibleContexts #-}
@@ -16,6 +17,7 @@ import Control.Monad.IO.Class (MonadIO (..))
1617
import Data.Aeson (FromJSON (..), ToJSON (..), genericToJSON, genericParseJSON
1718
, defaultOptions, Options(..))
1819
import Data.Default (def)
20+
import qualified Data.OpenApi as OpenApi
1921
import Data.Text.Prettyprint.Doc (Pretty (..), viaShow)
2022
import GHC.Generics (Generic)
2123
import Plutus.Contract (ContractError)
@@ -65,6 +67,7 @@ writeCostingScripts = do
6567
data StarterContracts =
6668
GameContract
6769
deriving (Eq, Ord, Show, Generic)
70+
deriving anyclass OpenApi.ToSchema
6871

6972
-- NOTE: Because 'StarterContracts' only has one constructor, corresponding to
7073
-- the demo 'Game' contract, we kindly ask aeson to still encode it as if it had
@@ -95,3 +98,4 @@ handlers =
9598
Simulator.mkSimulatorHandlers def def
9699
$ interpret (contractHandler Builtin.handleBuiltin)
97100

101+

plutus-starter.cabal

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ library
5353
plutus-contract,
5454
plutus-tx-plugin,
5555
plutus-tx,
56-
plutus-ledger
56+
plutus-ledger,
5757
hs-source-dirs: src examples/src
5858

5959
test-suite plutus-example-projects-test
@@ -91,4 +91,6 @@ executable plutus-starter-pab
9191
freer-simple -any,
9292
prettyprinter -any,
9393
freer-extras -any,
94-
plutus-ledger -any
94+
plutus-ledger -any,
95+
openapi3 -any,
96+

shell.nix

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,7 @@ in
1515
pkgs.niv
1616
cardano-repo-tool
1717
pkgs.ghcid
18+
# HACK: This shouldn't need to be here.
19+
pkgs.lzma.dev
1820
];
1921
}

0 commit comments

Comments
 (0)