web3 0.8.2.0 → 0.8.2.1
raw patch · 4 files changed
+13/−14 lines, 4 filesdep ~generics-sopdep ~hspecdep ~hspec-discover
Dependency ranges changed: generics-sop, hspec, hspec-discover
Files
- examples/token/ERC20.hs +1/−1
- examples/token/Main.hs +3/−4
- stack.yaml +1/−1
- web3.cabal +8/−8
examples/token/ERC20.hs view
@@ -9,4 +9,4 @@ import Network.Ethereum.Contract.TH -[abiFrom|examples/ERC20.json|]+[abiFrom|ERC20.json|]
examples/token/Main.hs view
@@ -5,6 +5,7 @@ import Data.Text (unpack) import Text.Printf (printf) +import Lens.Micro ((.~)) import Network.Ethereum.Account import Network.Ethereum.Web3 hiding (name) @@ -14,14 +15,12 @@ main = do result <- runWeb3 $ withAccount () $- airaToken $ do+ withParam (to .~ "0xA2f4FCb0FDe2dD59f7a1873e121bc5623e3164Eb") $ do n <- name s <- symbol d <- decimals return $ printf "Token %s with symbol %s and decimals %d" (unpack n) (unpack s) (fromIntegral d :: Int) case result of- Left err -> error err+ Left err -> error (show err) Right info -> putStrLn info- where- airaToken = withParam $ to .~ "0xA2f4FCb0FDe2dD59f7a1873e121bc5623e3164Eb"
stack.yaml view
@@ -1,5 +1,5 @@ # Resolver to choose a 'specific' stackage snapshot or a compiler version.-resolver: lts-12.14+resolver: lts-12.19 # User packages to be built. packages:
web3.cabal view
@@ -1,6 +1,6 @@ cabal-version: 1.12 name: web3-version: 0.8.2.0+version: 0.8.2.1 license: BSD3 license-file: LICENSE copyright: (c) Alexander Krupenkin 2016@@ -115,7 +115,7 @@ cryptonite >=0.23 && <0.26, data-default >=0.7.1.1 && <0.8, exceptions >=0.8.3 && <0.11,- generics-sop >=0.3.1.0 && <0.4,+ generics-sop >=0.3.1.0 && <0.5, http-client >=0.5.7.1 && <0.6, http-client-tls >=0.3.5.1 && <0.4, machines >=0.6.3 && <0.7,@@ -180,10 +180,10 @@ cryptonite >=0.23 && <0.26, data-default >=0.7.1.1 && <0.8, exceptions >=0.8.3 && <0.11,- generics-sop >=0.3.1.0 && <0.4,- hspec >=2.4.4 && <2.6,+ generics-sop >=0.3.1.0 && <0.5,+ hspec >=2.4.4 && <2.7, hspec-contrib >=0.4.0 && <0.6,- hspec-discover >=2.4.4 && <2.6,+ hspec-discover >=2.4.4 && <2.7, hspec-expectations >=0.8.2 && <0.9, http-client >=0.5.7.1 && <0.6, http-client-tls >=0.3.5.1 && <0.4,@@ -243,10 +243,10 @@ cryptonite >=0.23 && <0.26, data-default >=0.7.1.1 && <0.8, exceptions >=0.8.3 && <0.11,- generics-sop >=0.3.1.0 && <0.4,- hspec >=2.4.4 && <2.6,+ generics-sop >=0.3.1.0 && <0.5,+ hspec >=2.4.4 && <2.7, hspec-contrib >=0.4.0 && <0.6,- hspec-discover >=2.4.4 && <2.6,+ hspec-discover >=2.4.4 && <2.7, hspec-expectations >=0.8.2 && <0.9, http-client >=0.5.7.1 && <0.6, http-client-tls >=0.3.5.1 && <0.4,