haskoin-core 0.13.6 → 0.14.0
raw patch · 5 files changed
+55/−90 lines, 5 filesdep +haskoin-coredep ~secp256k1-haskell
Dependencies added: haskoin-core
Dependency ranges changed: secp256k1-haskell
Files
- CHANGELOG.md +8/−0
- LICENSE +19/−0
- UNLICENSE +0/−24
- haskoin-core.cabal +18/−60
- src/Haskoin/Constants.hs +10/−6
CHANGELOG.md view
@@ -4,6 +4,14 @@ 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.14.0+### Changed+- Expose all modules for tests.+- Tests depend on library instead of having access to its source code.+- Use MIT license.+- Update seeds.+- Bump secp256k1-haskell dependency.+ ## 0.13.6 ### Changed - Expose the Arbitrary test instances under Haskoin.Util.Arbitrary
+ LICENSE view
@@ -0,0 +1,19 @@+Copyright 2020 Haskoin Developers++Permission is hereby granted, free of charge, to any person obtaining a copy of+this software and associated documentation files (the "Software"), to deal in+the Software without restriction, including without limitation the rights to+use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of+the Software, and to permit persons to whom the Software is furnished to do so,+subject to the following conditions:++The above copyright notice and this permission notice shall be included in all+copies or substantial portions of the Software.++THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS+FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR+COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER+IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN+CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.+
− UNLICENSE
@@ -1,24 +0,0 @@-This is free and unencumbered software released into the public domain.--Anyone is free to copy, modify, publish, use, compile, sell, or-distribute this software, either in source code form or as a compiled-binary, for any purpose, commercial or non-commercial, and by any-means.--In jurisdictions that recognize copyright laws, the author or authors-of this software dedicate any and all copyright interest in the-software to the public domain. We make this dedication for the benefit-of the public at large and to the detriment of our heirs and-successors. We intend this dedication to be an overt act of-relinquishment in perpetuity of all present and future rights to this-software under copyright law.--THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,-EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF-MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.-IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR-OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,-ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR-OTHER DEALINGS IN THE SOFTWARE.--For more information, please refer to <http://unlicense.org/>
haskoin-core.cabal view
@@ -4,12 +4,12 @@ -- -- see: https://github.com/sol/hpack ----- hash: 14c9f49e8a8cbf3de72ab19366de7910b9e4f84ea0bf5191e211116e71102f98+-- hash: cd8ec1d089e181beb14b72be0d419691ab2b792fd59cb7cb9f2b884c5a649e40 name: haskoin-core-version: 0.13.6+version: 0.14.0 synopsis: Bitcoin & Bitcoin Cash library for Haskell-description: Haskoin Core is a complete Bitcoin and Bitcoin Cash library of functions and data types for Haskell developers.+description: Please see the README on GitHub at <https://github.com/haskoin/haskoin-core#readme> category: Bitcoin, Finance, Network homepage: http://github.com/haskoin/haskoin#readme bug-reports: http://github.com/haskoin/haskoin/issues@@ -17,8 +17,8 @@ Jean-Pierre Rupp, Matthew Wraith maintainer: jprupp@protonmail.ch-license: PublicDomain-license-file: UNLICENSE+license: MIT+license-file: LICENSE build-type: Simple extra-source-files: data/forkid_script_tests.json@@ -38,38 +38,37 @@ exposed-modules: Haskoin Haskoin.Address- Haskoin.Block- Haskoin.Constants- Haskoin.Crypto- Haskoin.Keys- Haskoin.Network- Haskoin.Script- Haskoin.Transaction- Haskoin.Util- Haskoin.Util.Arbitrary- other-modules: Haskoin.Address.Base58 Haskoin.Address.Bech32 Haskoin.Address.CashAddr+ Haskoin.Block Haskoin.Block.Common Haskoin.Block.Headers Haskoin.Block.Merkle+ Haskoin.Constants+ Haskoin.Crypto Haskoin.Crypto.Hash Haskoin.Crypto.Signature+ Haskoin.Keys Haskoin.Keys.Common Haskoin.Keys.Extended Haskoin.Keys.Mnemonic+ Haskoin.Network Haskoin.Network.Bloom Haskoin.Network.Common Haskoin.Network.Message+ Haskoin.Script Haskoin.Script.Common Haskoin.Script.SigHash Haskoin.Script.Standard+ Haskoin.Transaction Haskoin.Transaction.Builder Haskoin.Transaction.Builder.Sign Haskoin.Transaction.Common Haskoin.Transaction.Partial Haskoin.Transaction.Segwit+ Haskoin.Util+ Haskoin.Util.Arbitrary Haskoin.Util.Arbitrary.Address Haskoin.Util.Arbitrary.Block Haskoin.Util.Arbitrary.Crypto@@ -79,6 +78,7 @@ Haskoin.Util.Arbitrary.Script Haskoin.Util.Arbitrary.Transaction Haskoin.Util.Arbitrary.Util+ other-modules: Paths_haskoin_core hs-source-dirs: src@@ -102,7 +102,7 @@ , network >=3.1.1.1 , safe >=0.3.18 , scientific >=0.3.6.2- , secp256k1-haskell >=0.2.1+ , secp256k1-haskell >=0.3.0 , split >=0.2.3.3 , string-conversions >=0.4.0.1 , text >=1.2.4.0@@ -131,52 +131,9 @@ Haskoin.Transaction.PartialSpec Haskoin.TransactionSpec Haskoin.UtilSpec- Haskoin- Haskoin.Address- Haskoin.Address.Base58- Haskoin.Address.Bech32- Haskoin.Address.CashAddr- Haskoin.Block- Haskoin.Block.Common- Haskoin.Block.Headers- Haskoin.Block.Merkle- Haskoin.Constants- Haskoin.Crypto- Haskoin.Crypto.Hash- Haskoin.Crypto.Signature- Haskoin.Keys- Haskoin.Keys.Common- Haskoin.Keys.Extended- Haskoin.Keys.Mnemonic- Haskoin.Network- Haskoin.Network.Bloom- Haskoin.Network.Common- Haskoin.Network.Message- Haskoin.Script- Haskoin.Script.Common- Haskoin.Script.SigHash- Haskoin.Script.Standard- Haskoin.Transaction- Haskoin.Transaction.Builder- Haskoin.Transaction.Builder.Sign- Haskoin.Transaction.Common- Haskoin.Transaction.Partial- Haskoin.Transaction.Segwit- Haskoin.Util- Haskoin.Util.Arbitrary- Haskoin.Util.Arbitrary.Address- Haskoin.Util.Arbitrary.Block- Haskoin.Util.Arbitrary.Crypto- Haskoin.Util.Arbitrary.Keys- Haskoin.Util.Arbitrary.Message- Haskoin.Util.Arbitrary.Network- Haskoin.Util.Arbitrary.Script- Haskoin.Util.Arbitrary.Transaction- Haskoin.Util.Arbitrary.Util Paths_haskoin_core hs-source-dirs: test- src build-depends: HUnit >=1.6.0.0 , QuickCheck >=2.13.2@@ -192,6 +149,7 @@ , deepseq >=1.4.4.0 , entropy >=0.4.1.5 , hashable >=1.3.0.0+ , haskoin-core ==0.14.0 , hspec >=2.7.1 , memory >=0.15.0 , mtl >=2.2.2@@ -199,7 +157,7 @@ , network >=3.1.1.1 , safe >=0.3.18 , scientific >=0.3.6.2- , secp256k1-haskell >=0.2.1+ , secp256k1-haskell >=0.3.0 , split >=0.2.3.3 , string-conversions >=0.4.0.1 , text >=1.2.4.0
src/Haskoin/Constants.hs view
@@ -1,3 +1,4 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE DeriveAnyClass #-} {-# LANGUAGE DeriveGeneric #-} {-# LANGUAGE OverloadedStrings #-}@@ -33,16 +34,18 @@ import Data.Serialize import Data.String import Data.Text (Text)-import Data.Version import Data.Word (Word32, Word64, Word8) import GHC.Generics (Generic) import Haskoin.Block.Common-import Paths_haskoin_core import Text.Read -- | Version of Haskoin Core package. versionString :: IsString a => a-versionString = fromString (showVersion version)+#ifdef CURRENT_PACKAGE_VERSION+versionString = CURRENT_PACKAGE_VERSION+#else+versionString = "Unavailable"+#endif -- | Constants for network. data Network = Network@@ -213,6 +216,7 @@ , "seed.bitcoin.jonasschnelli.ch" -- Jonas Schnelli , "seed.btc.petertodd.org" -- Peter Todd , "seed.bitcoin.sprovoost.nl" -- Sjors Provoost+ , "dnsseed.emzy.de" -- Stephan Oeste ] , getBip44Coin = 0 , getSigHashForkId = Nothing@@ -405,9 +409,9 @@ [ "seed.bitcoinabc.org" , "seed-abc.bitcoinforks.org" , "btccash-seeder.bitcoinunlimited.info"- , "seed.bitprim.org"+ , "seeder.jasonbcox.com" , "seed.deadalnix.me"- , "seeder.criptolayer.net"+ , "seed.bchd.cash" ] , getBip44Coin = 145 , getSigHashForkId = Just 0@@ -469,9 +473,9 @@ , getSeeds = [ "testnet-seed.bitcoinabc.org" , "testnet-seed-abc.bitcoinforks.org"- , "testnet-seed.bitprim.org" , "testnet-seed.deadalnix.me" , "testnet-seeder.criptolayer.net"+ , "testnet-seed.bchd.cash" ] , getBip44Coin = 1 , getSigHashForkId = Just 0