packages feed

web3-0.8.4.0: web3.cabal

cabal-version: 2.4

-- This file has been generated from package.yaml by hpack version 0.33.0.
--
-- see: https://github.com/sol/hpack
--
-- hash: 52f53efab4c596377b85d0718660446c92da89530ee76214df53a18a0fdd589d

name:           web3
version:        0.8.4.0
synopsis:       Ethereum API for Haskell
description:    Web3 is a Haskell client library for Ethereum
category:       Network
homepage:       https://github.com/airalab/hs-web3#readme
bug-reports:    https://github.com/airalab/hs-web3/issues
author:         Alexander Krupenkin
maintainer:     mail@akru.me
copyright:      (c) Alexander Krupenkin 2016
license:        BSD-3-Clause
license-file:   LICENSE
build-type:     Simple
extra-source-files:
    README.md
    CHANGELOG.md
    stack.yaml
    examples/token/ERC20.hs
    examples/token/ERC20.json
    examples/token/Main.hs
    test/contracts/Registry.json
    test/contracts/SimpleStorage.json
    test/contracts/ComplexStorage.json
    test/contracts/Linearization.json

source-repository head
  type: git
  location: https://github.com/airalab/hs-web3

flag compiler
  description: Enable Solidity compiler
  manual: True
  default: False

flag debug
  description: Enable debug compiler options
  manual: True
  default: False

library
  exposed-modules:
      Crypto.Ethereum
      Crypto.Ethereum.Keyfile
      Crypto.Ethereum.Signature
      Crypto.Ethereum.Utils
      Crypto.Random.HmacDrbg
      Data.ByteArray.HexString
      Data.Solidity.Abi
      Data.Solidity.Abi.Codec
      Data.Solidity.Abi.Generic
      Data.Solidity.Event
      Data.Solidity.Event.Internal
      Data.Solidity.Prim
      Data.Solidity.Prim.Address
      Data.Solidity.Prim.Bool
      Data.Solidity.Prim.Bytes
      Data.Solidity.Prim.Int
      Data.Solidity.Prim.List
      Data.Solidity.Prim.String
      Data.Solidity.Prim.Tagged
      Data.Solidity.Prim.Tuple
      Data.Solidity.Prim.Tuple.TH
      Data.String.Extra
      Language.Solidity.Abi
      Network.Ethereum.Account
      Network.Ethereum.Account.Class
      Network.Ethereum.Account.Default
      Network.Ethereum.Account.Internal
      Network.Ethereum.Account.LocalKey
      Network.Ethereum.Account.Personal
      Network.Ethereum.Account.Safe
      Network.Ethereum.Api.Eth
      Network.Ethereum.Api.Net
      Network.Ethereum.Api.Personal
      Network.Ethereum.Api.Provider
      Network.Ethereum.Api.Types
      Network.Ethereum.Api.Web3
      Network.Ethereum.Chain
      Network.Ethereum.Contract
      Network.Ethereum.Contract.Event
      Network.Ethereum.Contract.Event.Common
      Network.Ethereum.Contract.Event.MultiFilter
      Network.Ethereum.Contract.Event.SingleFilter
      Network.Ethereum.Contract.Method
      Network.Ethereum.Contract.TH
      Network.Ethereum.Ens
      Network.Ethereum.Ens.PublicResolver
      Network.Ethereum.Ens.Registry
      Network.Ethereum.Transaction
      Network.Ethereum.Unit
      Network.Ethereum.Web3
      Network.JsonRpc.TinyClient
  other-modules:
      Paths_web3
  autogen-modules:
      Paths_web3
  hs-source-dirs:
      src
  ghc-options: -funbox-strict-fields -Wduplicate-exports -Whi-shadowing -Widentities -Woverlapping-patterns -Wpartial-type-signatures -Wunrecognised-pragmas -Wtyped-holes -Wincomplete-patterns -Wincomplete-uni-patterns -Wmissing-fields -Wmissing-methods -Wmissing-exported-signatures -Wmissing-monadfail-instances -Wmissing-signatures -Wname-shadowing -Wunused-binds -Wunused-top-binds -Wunused-local-binds -Wunused-pattern-binds -Wunused-imports -Wunused-matches -Wunused-foralls -Wtabs
  build-depends:
      OneTuple >=0.2.1 && <0.3
    , aeson >=1.2.2.0 && <1.5
    , async >=2.1.1.1 && <2.3
    , base >4.10 && <4.14
    , basement >=0.0.4 && <0.1
    , bytestring >=0.10.8.1 && <0.11
    , cereal >=0.5.4.0 && <0.6
    , cryptonite >=0.23 && <0.27
    , data-default >=0.7.1.1 && <0.8
    , exceptions >=0.8.3 && <0.11
    , generics-sop >=0.3.1.0 && <0.6
    , http-client >=0.5.7.1 && <0.7
    , http-client-tls >=0.3.5.1 && <0.4
    , machines >=0.6.3 && <0.8
    , memory >=0.14.11 && <0.16
    , microlens >=0.4.8.1 && <0.5
    , microlens-aeson >=2.2.0.2 && <2.4
    , microlens-mtl >=0.1.11.0 && <0.3
    , microlens-th >=0.4.1.1 && <0.5
    , mtl >=2.2.1 && <2.3
    , parsec >=3.1.11 && <3.2
    , relapse >=1.0.0.0 && <2.0
    , tagged >=0.8.5 && <0.9
    , template-haskell >=2.12 && <2.16
    , text >=1.2.2.2 && <1.3
    , transformers >=0.5.2.0 && <0.6
    , uuid-types >=1.0.3 && <1.1
    , vinyl >=0.5.3 && <0.13
  if flag(debug)
    ghc-options: -ddump-splices
  if flag(compiler)
    other-modules:
        Language.Solidity.Compiler
        Language.Solidity.Compiler.Foreign
    hs-source-dirs:
        compiler
    cpp-options: -DSOLIDITY_COMPILER
    include-dirs:
        ./compiler/cbits
    c-sources:
        ./compiler/cbits/solidity_lite.cpp
    extra-libraries:
        solidity
    build-depends:
        containers
  default-language: Haskell2010

test-suite live
  type: exitcode-stdio-1.0
  main-is: Spec.hs
  other-modules:
      Network.Ethereum.Web3.Test.ComplexStorageSpec
      Network.Ethereum.Web3.Test.ERC20Spec
      Network.Ethereum.Web3.Test.LinearizationSpec
      Network.Ethereum.Web3.Test.LocalAccountSpec
      Network.Ethereum.Web3.Test.RegistrySpec
      Network.Ethereum.Web3.Test.SimpleStorageSpec
      Network.Ethereum.Web3.Test.Utils
      Crypto.Ethereum
      Crypto.Ethereum.Keyfile
      Crypto.Ethereum.Signature
      Crypto.Ethereum.Utils
      Crypto.Random.HmacDrbg
      Data.ByteArray.HexString
      Data.Solidity.Abi
      Data.Solidity.Abi.Codec
      Data.Solidity.Abi.Generic
      Data.Solidity.Event
      Data.Solidity.Event.Internal
      Data.Solidity.Prim
      Data.Solidity.Prim.Address
      Data.Solidity.Prim.Bool
      Data.Solidity.Prim.Bytes
      Data.Solidity.Prim.Int
      Data.Solidity.Prim.List
      Data.Solidity.Prim.String
      Data.Solidity.Prim.Tagged
      Data.Solidity.Prim.Tuple
      Data.Solidity.Prim.Tuple.TH
      Data.String.Extra
      Language.Solidity.Abi
      Network.Ethereum.Account
      Network.Ethereum.Account.Class
      Network.Ethereum.Account.Default
      Network.Ethereum.Account.Internal
      Network.Ethereum.Account.LocalKey
      Network.Ethereum.Account.Personal
      Network.Ethereum.Account.Safe
      Network.Ethereum.Api.Eth
      Network.Ethereum.Api.Net
      Network.Ethereum.Api.Personal
      Network.Ethereum.Api.Provider
      Network.Ethereum.Api.Types
      Network.Ethereum.Api.Web3
      Network.Ethereum.Chain
      Network.Ethereum.Contract
      Network.Ethereum.Contract.Event
      Network.Ethereum.Contract.Event.Common
      Network.Ethereum.Contract.Event.MultiFilter
      Network.Ethereum.Contract.Event.SingleFilter
      Network.Ethereum.Contract.Method
      Network.Ethereum.Contract.TH
      Network.Ethereum.Ens
      Network.Ethereum.Ens.PublicResolver
      Network.Ethereum.Ens.Registry
      Network.Ethereum.Transaction
      Network.Ethereum.Unit
      Network.Ethereum.Web3
      Network.JsonRpc.TinyClient
      Paths_web3
  hs-source-dirs:
      test
      src
  ghc-options: -funbox-strict-fields -Wduplicate-exports -Whi-shadowing -Widentities -Woverlapping-patterns -Wpartial-type-signatures -Wunrecognised-pragmas -Wtyped-holes -Wincomplete-patterns -Wincomplete-uni-patterns -Wmissing-fields -Wmissing-methods -Wmissing-exported-signatures -Wmissing-monadfail-instances -Wmissing-signatures -Wname-shadowing -Wunused-binds -Wunused-top-binds -Wunused-local-binds -Wunused-pattern-binds -Wunused-imports -Wunused-matches -Wunused-foralls -Wtabs -threaded -rtsopts -with-rtsopts=-N
  build-depends:
      OneTuple >=0.2.1 && <0.3
    , aeson >=1.2.2.0 && <1.5
    , async >=2.1.1.1 && <2.3
    , base >4.10 && <4.14
    , basement >=0.0.4 && <0.1
    , bytestring >=0.10.8.1 && <0.11
    , cereal >=0.5.4.0 && <0.6
    , cryptonite >=0.23 && <0.27
    , data-default >=0.7.1.1 && <0.8
    , exceptions >=0.8.3 && <0.11
    , generics-sop >=0.3.1.0 && <0.6
    , hspec >=2.4.4 && <2.8
    , hspec-contrib >=0.4.0 && <0.6
    , hspec-discover >=2.4.4 && <2.8
    , hspec-expectations >=0.8.2 && <0.9
    , http-client >=0.5.7.1 && <0.7
    , http-client-tls >=0.3.5.1 && <0.4
    , machines >=0.6.3 && <0.8
    , memory >=0.14.11 && <0.16
    , microlens >=0.4.8.1 && <0.5
    , microlens-aeson >=2.2.0.2 && <2.4
    , microlens-mtl >=0.1.11.0 && <0.3
    , microlens-th >=0.4.1.1 && <0.5
    , mtl >=2.2.1 && <2.3
    , parsec >=3.1.11 && <3.2
    , random >=1.1 && <1.2
    , relapse >=1.0.0.0 && <2.0
    , split >=0.2.3 && <0.3
    , stm >=2.4.4 && <2.6
    , tagged >=0.8.5 && <0.9
    , template-haskell >=2.12 && <2.16
    , text >=1.2.2.2 && <1.3
    , time >=1.6.0 && <1.11
    , transformers >=0.5.2.0 && <0.6
    , uuid-types >=1.0.3 && <1.1
    , vinyl >=0.5.3 && <0.13
  if flag(debug)
    ghc-options: -ddump-splices
  if flag(compiler)
    other-modules:
        Language.Solidity.Compiler
        Language.Solidity.Compiler.Foreign
    hs-source-dirs:
        compiler
    cpp-options: -DSOLIDITY_COMPILER
    include-dirs:
        ./compiler/cbits
    c-sources:
        ./compiler/cbits/solidity_lite.cpp
    extra-libraries:
        solidity
    build-depends:
        containers
  default-language: Haskell2010

test-suite unit
  type: exitcode-stdio-1.0
  main-is: Spec.hs
  other-modules:
      Crypto.Ethereum.Test.KeyfileSpec
      Crypto.Ethereum.Test.SignatureSpec
      Crypto.Random.Test.HmacDrbgSpec
      Data.Solidity.Test.AddressSpec
      Data.Solidity.Test.EncodingSpec
      Data.Solidity.Test.IntSpec
      Language.Solidity.Test.AbiSpec
      Language.Solidity.Test.CompilerSpec
      Network.Ethereum.Contract.Test.THSpec
      Network.Ethereum.Web3.Test.EventSpec
      Network.Ethereum.Web3.Test.MethodDumpSpec
      Crypto.Ethereum
      Crypto.Ethereum.Keyfile
      Crypto.Ethereum.Signature
      Crypto.Ethereum.Utils
      Crypto.Random.HmacDrbg
      Data.ByteArray.HexString
      Data.Solidity.Abi
      Data.Solidity.Abi.Codec
      Data.Solidity.Abi.Generic
      Data.Solidity.Event
      Data.Solidity.Event.Internal
      Data.Solidity.Prim
      Data.Solidity.Prim.Address
      Data.Solidity.Prim.Bool
      Data.Solidity.Prim.Bytes
      Data.Solidity.Prim.Int
      Data.Solidity.Prim.List
      Data.Solidity.Prim.String
      Data.Solidity.Prim.Tagged
      Data.Solidity.Prim.Tuple
      Data.Solidity.Prim.Tuple.TH
      Data.String.Extra
      Language.Solidity.Abi
      Network.Ethereum.Account
      Network.Ethereum.Account.Class
      Network.Ethereum.Account.Default
      Network.Ethereum.Account.Internal
      Network.Ethereum.Account.LocalKey
      Network.Ethereum.Account.Personal
      Network.Ethereum.Account.Safe
      Network.Ethereum.Api.Eth
      Network.Ethereum.Api.Net
      Network.Ethereum.Api.Personal
      Network.Ethereum.Api.Provider
      Network.Ethereum.Api.Types
      Network.Ethereum.Api.Web3
      Network.Ethereum.Chain
      Network.Ethereum.Contract
      Network.Ethereum.Contract.Event
      Network.Ethereum.Contract.Event.Common
      Network.Ethereum.Contract.Event.MultiFilter
      Network.Ethereum.Contract.Event.SingleFilter
      Network.Ethereum.Contract.Method
      Network.Ethereum.Contract.TH
      Network.Ethereum.Ens
      Network.Ethereum.Ens.PublicResolver
      Network.Ethereum.Ens.Registry
      Network.Ethereum.Transaction
      Network.Ethereum.Unit
      Network.Ethereum.Web3
      Network.JsonRpc.TinyClient
      Paths_web3
  hs-source-dirs:
      unit
      src
  ghc-options: -funbox-strict-fields -Wduplicate-exports -Whi-shadowing -Widentities -Woverlapping-patterns -Wpartial-type-signatures -Wunrecognised-pragmas -Wtyped-holes -Wincomplete-patterns -Wincomplete-uni-patterns -Wmissing-fields -Wmissing-methods -Wmissing-exported-signatures -Wmissing-monadfail-instances -Wmissing-signatures -Wname-shadowing -Wunused-binds -Wunused-top-binds -Wunused-local-binds -Wunused-pattern-binds -Wunused-imports -Wunused-matches -Wunused-foralls -Wtabs -threaded -rtsopts -with-rtsopts=-N
  build-depends:
      OneTuple >=0.2.1 && <0.3
    , aeson >=1.2.2.0 && <1.5
    , async >=2.1.1.1 && <2.3
    , base >4.10 && <4.14
    , basement >=0.0.4 && <0.1
    , bytestring >=0.10.8.1 && <0.11
    , cereal >=0.5.4.0 && <0.6
    , cryptonite >=0.23 && <0.27
    , data-default >=0.7.1.1 && <0.8
    , exceptions >=0.8.3 && <0.11
    , generics-sop >=0.3.1.0 && <0.6
    , hspec >=2.4.4 && <2.8
    , hspec-contrib >=0.4.0 && <0.6
    , hspec-discover >=2.4.4 && <2.8
    , hspec-expectations >=0.8.2 && <0.9
    , http-client >=0.5.7.1 && <0.7
    , http-client-tls >=0.3.5.1 && <0.4
    , machines >=0.6.3 && <0.8
    , memory >=0.14.11 && <0.16
    , microlens >=0.4.8.1 && <0.5
    , microlens-aeson >=2.2.0.2 && <2.4
    , microlens-mtl >=0.1.11.0 && <0.3
    , microlens-th >=0.4.1.1 && <0.5
    , mtl >=2.2.1 && <2.3
    , parsec >=3.1.11 && <3.2
    , relapse >=1.0.0.0 && <2.0
    , tagged >=0.8.5 && <0.9
    , template-haskell >=2.12 && <2.16
    , text >=1.2.2.2 && <1.3
    , transformers >=0.5.2.0 && <0.6
    , uuid-types >=1.0.3 && <1.1
    , vinyl >=0.5.3 && <0.13
  if flag(debug)
    ghc-options: -ddump-splices
  if flag(compiler)
    other-modules:
        Language.Solidity.Compiler
        Language.Solidity.Compiler.Foreign
    hs-source-dirs:
        compiler
    cpp-options: -DSOLIDITY_COMPILER
    include-dirs:
        ./compiler/cbits
    c-sources:
        ./compiler/cbits/solidity_lite.cpp
    extra-libraries:
        solidity
    build-depends:
        containers
  default-language: Haskell2010