mirror of
https://github.com/airalab/hs-web3.git
synced 2024-10-03 19:57:23 +03:00
Update to latest LTS, change pkg names a bit
This commit is contained in:
parent
e3fc3199ec
commit
647ea58339
@ -10,9 +10,9 @@ category: Network
|
||||
|
||||
dependencies:
|
||||
- base
|
||||
- scale
|
||||
- generics-sop
|
||||
- web3-scale
|
||||
- web3-hexstring
|
||||
- memory-hexstring
|
||||
|
||||
executables:
|
||||
example-scale:
|
||||
|
@ -12,11 +12,11 @@ category: Network
|
||||
|
||||
dependencies:
|
||||
- base >4.11 && <4.15
|
||||
- scale >=1.0 && <1.1
|
||||
- memory >0.14 && <0.16
|
||||
- memory-hexstring >=1.0 && <1.1
|
||||
- cereal >0.5 && <0.6
|
||||
- wide-word >0.1 && <0.2
|
||||
- web3-scale >=1.0 && <1.1
|
||||
- web3-hexstring >=1.0 && <1.1
|
||||
|
||||
ghc-options:
|
||||
- -funbox-strict-fields
|
||||
@ -54,7 +54,7 @@ tests:
|
||||
- tests
|
||||
- src
|
||||
dependencies:
|
||||
- web3-hexstring >=1.0 && <1.1
|
||||
- memory-hexstring >=1.0 && <1.1
|
||||
- hspec-expectations >=0.8.2 && <0.9
|
||||
- hspec-discover >=2.4.4 && <2.8
|
||||
- hspec-contrib >=0.4.0 && <0.6
|
||||
|
@ -12,11 +12,11 @@
|
||||
|
||||
module Data.BigNum.Test.BigNumSpec where
|
||||
|
||||
import Basement.Types.Word128 (Word128)
|
||||
import Basement.Types.Word256 (Word256)
|
||||
import Codec.Scale (decode, encode)
|
||||
import Control.Monad (forM_)
|
||||
import Data.ByteArray.HexString (HexString)
|
||||
import Data.WideWord.Word128 (Word128)
|
||||
import Data.WideWord.Word256 (Word256)
|
||||
import Test.Hspec
|
||||
|
||||
import Data.BigNum (H160, H256, H512)
|
||||
|
@ -24,7 +24,7 @@ dependencies:
|
||||
- uuid-types >1.0 && <1.1
|
||||
- cryptonite >0.22 && <0.30
|
||||
- bytestring >0.10 && <0.11
|
||||
- web3-hexstring >=1.0 && <1.1
|
||||
- memory-hexstring >=1.0 && <1.1
|
||||
|
||||
ghc-options:
|
||||
- -funbox-strict-fields
|
||||
|
@ -30,9 +30,9 @@ dependencies:
|
||||
- template-haskell >2.11 && <2.17
|
||||
- mtl >2.2 && <2.3
|
||||
- web3-crypto >=1.0 && <1.1
|
||||
- web3-jsonrpc >=1.0 && <1.1
|
||||
- web3-solidity >=1.0 && <1.1
|
||||
- web3-hexstring >=1.0 && <1.1
|
||||
- memory-hexstring >=1.0 && <1.1
|
||||
- jsonrpc-tinyclient >=1.0 && <1.1
|
||||
|
||||
ghc-options:
|
||||
- -funbox-strict-fields
|
||||
|
@ -1,4 +1,4 @@
|
||||
name: web3-hexstring
|
||||
name: memory-hexstring
|
||||
version: 1.0.0.0
|
||||
synopsis: Hex-string type for Haskell Web3 library.
|
||||
description: Client library for Third Generation of Web.
|
||||
@ -17,7 +17,7 @@ dependencies:
|
||||
- memory >0.14 && <0.16
|
||||
- bytestring >0.10 && <0.11
|
||||
- template-haskell >2.11 && <2.17
|
||||
- web3-scale >=1.0 && <1.1
|
||||
- scale >=1.0 && <1.1
|
||||
|
||||
ghc-options:
|
||||
- -funbox-strict-fields
|
||||
|
@ -1,7 +1,6 @@
|
||||
name: web3-jsonrpc
|
||||
name: jsonrpc-tinyclient
|
||||
version: 1.0.0.0
|
||||
synopsis: Tiny JSON-RPC client for Haskell Web3 library.
|
||||
description: Client library for Third Generation of Web.
|
||||
github: "airalab/hs-web3"
|
||||
license: Apache-2.0
|
||||
license-file: LICENSE
|
||||
|
@ -15,6 +15,7 @@ dependencies:
|
||||
- base >4.11 && <4.15
|
||||
- text >1.2 && <1.3
|
||||
- aeson >1.2 && <1.6
|
||||
- scale >=1.0 && <1.1
|
||||
- parsec >3.0 && <3.2
|
||||
- memory >0.14 && <0.16
|
||||
- microlens >0.4 && <0.5
|
||||
@ -26,11 +27,10 @@ dependencies:
|
||||
- generics-sop >0.3 && <0.6
|
||||
- microlens-th >0.4 && <0.5
|
||||
- microlens-mtl >0.2 && <0.3
|
||||
- web3-scale >=1.0 && <1.1
|
||||
- web3-crypto >=1.0 && <1.1
|
||||
- web3-bignum >=1.0 && <1.1
|
||||
- web3-jsonrpc >=1.0 && <1.1
|
||||
- web3-hexstring >=1.0 && <1.1
|
||||
- jsonrpc-tinyclient >=1.0 && <1.1
|
||||
- memory-hexstring >=1.0 && <1.1
|
||||
|
||||
ghc-options:
|
||||
- -funbox-strict-fields
|
||||
|
@ -52,6 +52,7 @@ render_box :: Text -> Maybe [TypeAst] -> Text
|
||||
render_box name Nothing = name
|
||||
render_box name (Just args)
|
||||
| any (== name) allowed_boxes = name <> "<" <> intercalate "," (toText <$> args) <> ">"
|
||||
| name == "BoundedVec" = "Vec<" <> intercalate "," (toText <$> args) <> ">"
|
||||
| name == "Box" = toText (head args)
|
||||
| otherwise = name
|
||||
|
||||
|
@ -21,7 +21,7 @@ dependencies:
|
||||
- http-client >0.5 && <0.7
|
||||
- data-default >0.7 && <0.8
|
||||
- transformers >0.5 && <0.6
|
||||
- web3-jsonrpc >=1.0 && <1.1
|
||||
- jsonrpc-tinyclient >=1.0 && <1.1
|
||||
|
||||
ghc-options:
|
||||
- -funbox-strict-fields
|
||||
|
@ -1,4 +1,4 @@
|
||||
name: web3-scale
|
||||
name: scale
|
||||
version: 1.0.0.0
|
||||
synopsis: SCALE v2.0 codec for Haskell Web3 library.
|
||||
description: Client library for Third Generation of Web.
|
||||
|
@ -16,6 +16,7 @@ dependencies:
|
||||
- aeson >1.2 && <1.6
|
||||
- cereal >0.5 && <0.6
|
||||
- memory >0.14 && <0.16
|
||||
- memory-hexstring >=1.0 && <1.1
|
||||
- tagged >0.8 && <0.9
|
||||
- parsec >3.1 && <3.2
|
||||
- basement >0.0 && <0.1
|
||||
@ -26,7 +27,6 @@ dependencies:
|
||||
- data-default >0.7 && <0.8
|
||||
- template-haskell >2.11 && <2.17
|
||||
- web3-crypto >=1.0 && <1.1
|
||||
- web3-hexstring >=1.0 && <1.1
|
||||
|
||||
ghc-options:
|
||||
- -funbox-strict-fields
|
||||
|
@ -1,5 +1,5 @@
|
||||
# Resolver to choose a 'specific' stackage snapshot or a compiler version.
|
||||
resolver: lts-16.23
|
||||
resolver: lts-18.23
|
||||
|
||||
# User packages to be built.
|
||||
packages:
|
||||
@ -20,11 +20,7 @@ packages:
|
||||
|
||||
# Extra package dependencies
|
||||
extra-deps:
|
||||
- hspec-expectations-json-1.0.0.2@sha256:a8c771b7a5449ef600c984d596304ebace8e109f5830f5351566a4d13c0072d4
|
||||
- base58-bytestring-0.1.0@sha256:a1da72ee89d5450bac1c792d9fcbe95ed7154ab7246f2172b57bd4fd9b5eab79
|
||||
- animalcase-0.1.0.2@sha256:d7b80c3130c68d7ce8ddd9782588b2c4dd7da86461f302c54cc4acddf0902b51
|
||||
- relapse-1.0.0.0@sha256:b89ea23189e07f377be4e2a4deccf3d6ba7f547ed8ad77e27b35d78801efd81c
|
||||
- vinyl-0.12.1@sha256:03f5e246fae2434250987bbfe708015dc6e23f60c20739c34738acde1383b96c
|
||||
|
||||
# Dependencies bounds
|
||||
pvp-bounds: both
|
||||
|
Loading…
Reference in New Issue
Block a user