Skip to content

Commit

Permalink
Merge pull request #34 from blockfrost/release/v0.7.1.0
Browse files Browse the repository at this point in the history
Release/v0.7.1.0
  • Loading branch information
sorki authored Jan 3, 2023
2 parents bc8149f + 5919523 commit 4481993
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 6 deletions.
6 changes: 6 additions & 0 deletions blockfrost-api/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# Version [0.7.1.0](https://github.com/blockfrost/blockfrost-haskell/compare/v0.7.0.0...v0.7.010) (2023-01-03)

* Additions
* `NetworkEraSummary`, `NetworkEraBound`, `NetworkEraParameters` types and `_networkEras` endpoint [#33](https://github.com/blockfrost/blockfrost-haskell/pull/33/)
* `ToSample ScriptHashList` instance

# Version [0.7.0.0](https://github.com/blockfrost/blockfrost-haskell/compare/v0.6.0.0...v0.7.0.0) (2022-10-11)

* Changes
Expand Down
2 changes: 1 addition & 1 deletion blockfrost-api/blockfrost-api.cabal
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
cabal-version: 2.2
name: blockfrost-api
version: 0.7.0.0
version: 0.7.1.0
synopsis: API definitions for blockfrost.io
description: Core types and Servant API description
homepage: https://github.com/blockfrost/blockfrost-haskell
Expand Down
7 changes: 5 additions & 2 deletions blockfrost-api/src/Blockfrost/Lens.hs
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,11 @@ makeFields ''TxMetaJSON
makeFields ''TxMetaCBOR

makeFields ''Network
makeFields ''NetworkSupply
makeFields ''NetworkStake
makeFieldsNoPrefix ''NetworkSupply
makeFieldsNoPrefix ''NetworkStake
makeFieldsNoPrefix ''NetworkEraSummary
makeFieldsNoPrefix ''NetworkEraBound
makeFieldsNoPrefix ''NetworkEraParameters

makeFields ''PoolEpoch
makeFields ''PoolInfo
Expand Down
5 changes: 4 additions & 1 deletion blockfrost-api/src/Blockfrost/Types/Cardano/Epochs.hs
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,10 @@ instance FromJSON CostModels where
(\(kLang, vParams) -> do
l <- parseJSON
$ toJSON
$ (\(x:xs) -> Data.Char.toLower x:xs)
$ (\lang -> case lang of
[] -> fail "Absurd empty language in CostModels"
(x:xs) -> Data.Char.toLower x:xs
)
$ Data.Aeson.Key.toString kLang
ps <- parseParams vParams
pure (l, Data.Map.fromList ps)
Expand Down
5 changes: 5 additions & 0 deletions blockfrost-client/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# Version [0.7.1.0](https://github.com/blockfrost/blockfrost-haskell/compare/v0.7.0.0...v0.7.010) (2023-01-03)

* Additions
* `getNetworkEras` query for `/network/eras` endpoint [#33](https://github.com/blockfrost/blockfrost-haskell/pull/33/)

# Version [0.7.0.0](https://github.com/blockfrost/blockfrost-haskell/compare/v0.6.0.0...v0.7.0.0) (2022-10-11)

* Changes
Expand Down
4 changes: 2 additions & 2 deletions blockfrost-client/blockfrost-client.cabal
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
cabal-version: 2.2
name: blockfrost-client
version: 0.7.0.0
version: 0.7.1.0
synopsis: blockfrost.io basic client
description: Simple Blockfrost clients for use with transformers or mtl
homepage: https://github.com/blockfrost/blockfrost-haskell
Expand Down Expand Up @@ -64,7 +64,7 @@ library
, Blockfrost.Client.IPFS
, Blockfrost.Client.NutLink
build-depends: base >= 4.7 && < 5
, blockfrost-api ^>= 0.7
, blockfrost-api ^>= 0.7.1
, blockfrost-client-core ^>= 0.6
, bytestring
, directory
Expand Down

0 comments on commit 4481993

Please sign in to comment.