cabal-version:      2.2
name:               bitcoind-rpc
version:            0.2.0.0
synopsis:           A streamlined interface to bitcoin core using Haskoin types and Servant
homepage:           https://github.com/bitnomial/bitcoind-rpc
license:            BSD-3-Clause
license-file:       LICENSE
copyright:          Bitnomial, Inc. (c) 2020
author:             Ian Shipman
maintainer:         ics@gambolingpangolin.com
build-type:         Simple
extra-source-files: CHANGELOG.md

library
    default-language: Haskell2010
    hs-source-dirs: src/
    ghc-options:    -Wall

    exposed-modules:
        Bitcoin.Core.RPC
        Bitcoin.Core.RPC.Responses

    other-modules:
        Bitcoin.Core.RPC.Blockchain
        Bitcoin.Core.RPC.Generating
        Bitcoin.Core.RPC.Control
        Bitcoin.Core.RPC.Network
        Bitcoin.Core.RPC.Transactions
        Servant.Bitcoind

    build-depends:
          aeson                          >=1.4      && <1.6
        , base                           >=4.12     && <4.15
        , bytestring                     >=0.10     && <0.12
        , base16-bytestring               <1.0
        -- ^^ needed due to missing upper bound in haskoin-core
        , bitcoin-compact-filters       ^>=0.1
        , cereal                        ^>=0.5
        , haskoin-core                   >=0.13.5   && <0.18
        , http-client                    >=0.6      && <0.8
        , scientific                    ^>=0.3
        , servant                        >=0.15     && <0.19
        , servant-client                 >=0.15     && <0.19
        , servant-jsonrpc-client         >=1.0      && <1.2
        , text                          ^>=1.2
        , time                           >=1.8      && <1.12
        , transformers                  ^>=0.5