Skip to content

Commit ec3315c

Browse files
committed
Bump cardano-types to v5.0.0; Update changelog
1 parent d689484 commit ec3315c

File tree

5 files changed

+23
-122
lines changed

5 files changed

+23
-122
lines changed

Diff for: CHANGELOG.md

+9-1
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,22 @@ and we follow [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66
<!-- START doctoc generated TOC please keep comment here to allow auto update -->
77
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
88

9-
- [v2.0.1](#v201)
9+
- [v3.0.0](#v300)
1010
- [Changed](#changed)
11+
- [v2.0.1](#v201)
12+
- [Changed](#changed-1)
1113
- [Removed](#removed)
1214
- [v2.0.0](#v200)
1315
- [Added](#added)
1416

1517
<!-- END doctoc generated TOC please keep comment here to allow auto update -->
1618

19+
## v3.0.0
20+
21+
### Changed
22+
23+
- Replaced cardano-serialization-lib (CSL) with [cardano-data-lite (CDL)](https://github.com/mlabs-haskell/purescript-cardano-data-lite) ([#7](https://github.com/mlabs-haskell/purescript-cardano-transaction-builder/pull/7))
24+
1725
## v2.0.1
1826

1927
### Changed

Diff for: packages.dhall

+2-102
Original file line numberDiff line numberDiff line change
@@ -1,103 +1,3 @@
1-
{-
2-
Welcome to your new Dhall package-set!
3-
4-
Below are instructions for how to edit this file for most use
5-
cases, so that you don't need to know Dhall to use it.
6-
7-
## Use Cases
8-
9-
Most will want to do one or both of these options:
10-
1. Override/Patch a package's dependency
11-
2. Add a package not already in the default package set
12-
13-
This file will continue to work whether you use one or both options.
14-
Instructions for each option are explained below.
15-
16-
### Overriding/Patching a package
17-
18-
Purpose:
19-
- Change a package's dependency to a newer/older release than the
20-
default package set's release
21-
- Use your own modified version of some dependency that may
22-
include new API, changed API, removed API by
23-
using your custom git repo of the library rather than
24-
the package set's repo
25-
26-
Syntax:
27-
where `entityName` is one of the following:
28-
- dependencies
29-
- repo
30-
- version
31-
-------------------------------
32-
let upstream = --
33-
in upstream
34-
with packageName.entityName = "new value"
35-
-------------------------------
36-
37-
Example:
38-
-------------------------------
39-
let upstream = --
40-
in upstream
41-
with halogen.version = "master"
42-
with halogen.repo = "https://example.com/path/to/git/repo.git"
43-
44-
with halogen-vdom.version = "v4.0.0"
45-
with halogen-vdom.dependencies = [ "extra-dependency" ] # halogen-vdom.dependencies
46-
-------------------------------
47-
48-
### Additions
49-
50-
Purpose:
51-
- Add packages that aren't already included in the default package set
52-
53-
Syntax:
54-
where `<version>` is:
55-
- a tag (i.e. "v4.0.0")
56-
- a branch (i.e. "master")
57-
- commit hash (i.e. "701f3e44aafb1a6459281714858fadf2c4c2a977")
58-
-------------------------------
59-
let upstream = --
60-
in upstream
61-
with new-package-name =
62-
{ dependencies =
63-
[ "dependency1"
64-
, "dependency2"
65-
]
66-
, repo =
67-
"https://example.com/path/to/git/repo.git"
68-
, version =
69-
"<version>"
70-
}
71-
-------------------------------
72-
73-
Example:
74-
-------------------------------
75-
let upstream = --
76-
in upstream
77-
with benchotron =
78-
{ dependencies =
79-
[ "arrays"
80-
, "exists"
81-
, "profunctor"
82-
, "strings"
83-
, "quickcheck"
84-
, "lcg"
85-
, "transformers"
86-
, "foldable-traversable"
87-
, "exceptions"
88-
, "node-fs"
89-
, "node-buffer"
90-
, "node-readline"
91-
, "datetime"
92-
, "now"
93-
]
94-
, repo =
95-
"https://github.com/hdgarrood/purescript-benchotron.git"
96-
, version =
97-
"v7.0.0"
98-
}
99-
-------------------------------
100-
-}
1011
let upstream =
1022
https://github.com/purescript/package-sets/releases/download/psc-0.15.4-20230105/packages.dhall
1033
sha256:3e9fbc9ba03e9a1fcfd895f65e2d50ee2f5e86c4cd273f3d5c841b655a0e1bda
@@ -272,8 +172,8 @@ let additions =
272172
, "unsafe-coerce"
273173
]
274174
, repo = "https://github.com/mlabs-haskell/purescript-cardano-types"
275-
, version = "5fe759a6e3d77450b3998e46fbbc17deafc69613"
175+
, version = "v5.0.0"
276176
}
277177
}
278178

279-
in upstream // additions
179+
in (upstream // additions)

Diff for: spago-packages.nix

+3-3
Original file line numberDiff line numberDiff line change
@@ -187,11 +187,11 @@ let
187187

188188
"cardano-types" = pkgs.stdenv.mkDerivation {
189189
name = "cardano-types";
190-
version = "5fe759a6e3d77450b3998e46fbbc17deafc69613";
190+
version = "v5.0.0";
191191
src = pkgs.fetchgit {
192192
url = "https://github.com/mlabs-haskell/purescript-cardano-types";
193-
rev = "5fe759a6e3d77450b3998e46fbbc17deafc69613";
194-
sha256 = "0391r5vmq8d3yqb0gwa7ggy6bdpvz9whzs13mq6wfp4nxncz24i9";
193+
rev = "348fbbefa8bec5050e8492f5a9201ac5bb17c9d9";
194+
sha256 = "06977niflqdpk4kw6d3480ak0m2rwi9fngjblxnqddqpdyj6zq1d";
195195
};
196196
phases = "installPhase";
197197
installPhase = "ln -s $src $out";

Diff for: spago.dhall

-12
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,3 @@
1-
{-
2-
Welcome to a Spago project!
3-
You can edit this file as you like.
4-
5-
Need help? See the following resources:
6-
- Spago documentation: https://github.com/purescript/spago
7-
- Dhall language tour: https://docs.dhall-lang.org/tutorials/Language-Tour.html
8-
9-
When creating a new Spago project, you can use
10-
`spago init --no-comments` or `spago init -C`
11-
to generate this file without the comments in this block.
12-
-}
131
{ name = "cardano-transaction-builder"
142
, dependencies =
153
[ "aff"

Diff for: test/Main.purs

+9-4
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ import Cardano.Types
2525
, Certificate(StakeDeregistration)
2626
, Coin(Coin)
2727
, Credential(PubKeyHashCredential, ScriptHashCredential)
28+
, Language(PlutusV1)
2829
, NativeScript(ScriptAll)
2930
, NetworkId(MainnetId, TestnetId)
3031
, PlutusData(List, Map)
@@ -466,15 +467,19 @@ input2 = mkTransactionInput
466467
2
467468

468469
script1 :: PlutusScript
469-
script1 = unsafePartial $ fromJust $ decodeCbor $ wrap $ hexToByteArrayUnsafe
470-
"4e4d01000033222220051200120011"
470+
script1 =
471+
unsafePartial $ fromJust $ flip PlutusScript.decodeCbor PlutusV1 $ wrap $
472+
hexToByteArrayUnsafe
473+
"4d01000033222220051200120011"
471474

472475
scriptHash1 :: ScriptHash
473476
scriptHash1 = PlutusScript.hash script1
474477

475478
script2 :: PlutusScript
476-
script2 = unsafePartial $ fromJust $ decodeCbor $ wrap $ hexToByteArrayUnsafe
477-
"4e4d01000033222220051200120012"
479+
script2 =
480+
unsafePartial $ fromJust $ flip PlutusScript.decodeCbor PlutusV1 $ wrap $
481+
hexToByteArrayUnsafe
482+
"4e4d01000033222220051200120012"
478483

479484
anyNetworkTx :: Transaction
480485
anyNetworkTx = Transaction.empty

0 commit comments

Comments
 (0)