blockfrost-client 0.4.0.1 → 0.5.0.0
raw patch · 4 files changed
+11/−6 lines, 4 filesdep ~blockfrost-apiPVP ok
version bump matches the API change (PVP)
Dependency ranges changed: blockfrost-api
API changes (from Hackage documentation)
- Blockfrost.Client: getEpochStakeByPool :: MonadBlockfrost m => Epoch -> PoolId -> m [StakeDistribution]
+ Blockfrost.Client: getEpochStakeByPool :: MonadBlockfrost m => Epoch -> PoolId -> m [PoolStakeDistribution]
- Blockfrost.Client: getEpochStakeByPool' :: MonadBlockfrost m => Epoch -> PoolId -> Paged -> m [StakeDistribution]
+ Blockfrost.Client: getEpochStakeByPool' :: MonadBlockfrost m => Epoch -> PoolId -> Paged -> m [PoolStakeDistribution]
- Blockfrost.Client.Cardano.Epochs: getEpochStakeByPool :: MonadBlockfrost m => Epoch -> PoolId -> m [StakeDistribution]
+ Blockfrost.Client.Cardano.Epochs: getEpochStakeByPool :: MonadBlockfrost m => Epoch -> PoolId -> m [PoolStakeDistribution]
- Blockfrost.Client.Cardano.Epochs: getEpochStakeByPool' :: MonadBlockfrost m => Epoch -> PoolId -> Paged -> m [StakeDistribution]
+ Blockfrost.Client.Cardano.Epochs: getEpochStakeByPool' :: MonadBlockfrost m => Epoch -> PoolId -> Paged -> m [PoolStakeDistribution]
Files
- CHANGELOG.md +5/−0
- blockfrost-client.cabal +2/−2
- src/Blockfrost/Client/Cardano/Epochs.hs +3/−3
- src/Blockfrost/Client/Cardano/Transactions.hs +1/−1
CHANGELOG.md view
@@ -1,3 +1,8 @@+# Version [0.5.0.0](https://github.com/blockfrost/blockfrost-haskell/compare/v0.4.0.1...v0.5.0.0) (2022-06-06)++* Fix return types of `getEpochStakeByPool` and `getEpochStakeByPool'`+ from `StakeDistribution` to `PoolStakeDistribution`+ # Version [0.4.0.1](https://github.com/blockfrost/blockfrost-haskell/compare/v0.4.0.0...v0.4.0.1) (2022-04-05) * Allow servant `0.19`
blockfrost-client.cabal view
@@ -1,6 +1,6 @@ cabal-version: 2.2 name: blockfrost-client-version: 0.4.0.1+version: 0.5.0.0 synopsis: blockfrost.io basic client description: Simple Blockfrost clients for use with transformers or mtl homepage: https://github.com/blockfrost/blockfrost-haskell@@ -64,7 +64,7 @@ , Blockfrost.Client.IPFS , Blockfrost.Client.NutLink build-depends: base >= 4.7 && < 5- , blockfrost-api ^>= 0.4+ , blockfrost-api ^>= 0.5 , blockfrost-client-core , bytestring , directory
src/Blockfrost/Client/Cardano/Epochs.hs view
@@ -84,16 +84,16 @@ getEpochStake :: MonadBlockfrost m => Epoch -> m [StakeDistribution] getEpochStake e = getEpochStake' e def -getEpochStakeByPool_ :: MonadBlockfrost m => Project -> Epoch -> PoolId -> Paged -> m [StakeDistribution]+getEpochStakeByPool_ :: MonadBlockfrost m => Project -> Epoch -> PoolId -> Paged -> m [PoolStakeDistribution] getEpochStakeByPool_ = _getEpochStakeByPool . epochsClient -- | Return the active stake distribution for the epoch specified by stake pool. -- Allows custom paging using @Paged@.-getEpochStakeByPool' :: MonadBlockfrost m => Epoch -> PoolId -> Paged -> m [StakeDistribution]+getEpochStakeByPool' :: MonadBlockfrost m => Epoch -> PoolId -> Paged -> m [PoolStakeDistribution] getEpochStakeByPool' e i pg = go (\p -> getEpochStakeByPool_ p e i pg) -- | Return the active stake distribution for the epoch specified by stake pool.-getEpochStakeByPool :: MonadBlockfrost m => Epoch -> PoolId -> m [StakeDistribution]+getEpochStakeByPool :: MonadBlockfrost m => Epoch -> PoolId -> m [PoolStakeDistribution] getEpochStakeByPool e i = getEpochStakeByPool' e i def getEpochBlocks_ :: MonadBlockfrost m => Project -> Epoch -> Paged -> SortOrder -> m [BlockHash]
src/Blockfrost/Client/Cardano/Transactions.hs view
@@ -46,7 +46,7 @@ getTxStakes_ :: MonadBlockfrost m => Project -> TxHash -> m [TransactionStake] getTxStakes_ = _txStakes . transactionsClient --- | Get transaction UTXOs+-- | Get (de-)registrations of a stake address within a transaction getTxStakes :: MonadBlockfrost m => TxHash -> m [TransactionStake] getTxStakes t = go (`getTxStakes_` t)