packages feed

haskoin-store-data 0.53.4 → 0.53.5

raw patch · 4 files changed

+15/−3 lines, 4 filesPVP ok

version bump matches the API change (PVP)

API changes (from Hackage documentation)

+ Haskoin.Store.WebClient: DelCachedXPub :: !XPubKey -> !DeriveType -> DelCachedXPub
+ Haskoin.Store.WebClient: data DelCachedXPub
+ Haskoin.Store.WebCommon: DelCachedXPub :: !XPubKey -> !DeriveType -> DelCachedXPub
+ Haskoin.Store.WebCommon: data DelCachedXPub
+ Haskoin.Store.WebCommon: instance Haskoin.Store.WebCommon.ApiResource Haskoin.Store.WebCommon.DelCachedXPub (Haskoin.Store.Data.GenericResult GHC.Types.Bool)

Files

CHANGELOG.md view
@@ -4,6 +4,10 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html) +## 0.53.5+### Addded+- Endpoint to delete an xpub from cache.+ ## 0.53.4 ### Added - Debugging when reverting block.
haskoin-store-data.cabal view
@@ -1,13 +1,13 @@ cabal-version: 1.12 --- This file has been generated from package.yaml by hpack version 0.33.0.+-- This file has been generated from package.yaml by hpack version 0.34.4. -- -- see: https://github.com/sol/hpack ----- hash: 74b8797f4bf92007c668b6f04a1c39b274177d8b5f1f9aa75ce35d0dea9bc3a2+-- hash: 61669790bd2dbbf79b95eee01fe6a959d66f5af8bfd96fe38f7c1ba7223e304b  name:           haskoin-store-data-version:        0.53.4+version:        0.53.5 synopsis:       Data for Haskoin Store description:    Please see the README on GitHub at <https://github.com/haskoin/haskoin-store#readme> category:       Bitcoin, Finance, Network
src/Haskoin/Store/WebClient.hs view
@@ -45,6 +45,7 @@ , GetXPubTxsFull(..) , GetXPubBalances(..) , GetXPubUnspent(..)+, DelCachedXPub(..) -- Network , GetPeers(..) , GetHealth(..)
src/Haskoin/Store/WebCommon.hs view
@@ -94,6 +94,7 @@ data GetXPubTxsFull = GetXPubTxsFull !XPubKey !Store.DeriveType !LimitsParam !NoCache data GetXPubBalances = GetXPubBalances !XPubKey !Store.DeriveType !NoCache data GetXPubUnspent = GetXPubUnspent !XPubKey !Store.DeriveType !LimitsParam !NoCache+data DelCachedXPub = DelCachedXPub !XPubKey !Store.DeriveType -- Network data GetPeers = GetPeers data GetHealth = GetHealth@@ -295,6 +296,12 @@         ( [ParamBox p]         , noDefBox d <> noMaybeBox l <> noDefBox o <> noMaybeBox sM <> noDefBox n         )+    captureParams _ = [ProxyBox (Proxy :: Proxy XPubKey)]++instance ApiResource DelCachedXPub (Store.GenericResult Bool) where+    resourceMethod _ = DELETE+    resourcePath _ = ("/xpub/" <:>)+    queryParams (DelCachedXPub p d) = ([ParamBox p], noDefBox d)     captureParams _ = [ProxyBox (Proxy :: Proxy XPubKey)]  -------------