web3-0.7.0.0: Ethereum API for Haskell

CopyrightAlexander Krupenkin 2016-2018
LicenseBSD3
Maintainermail@akru.me
Stabilityexperimental
Portabilityunportable
Safe HaskellNone
LanguageHaskell2010

Network.Ethereum.Contract.TH

Description

TemplateHaskell based generator for Ethereum contract ABI.

[abiFrom|data/sample.json|]

main = do
    runWeb3 $ event "0x..." $
       (Action2 n x) -> liftIO $ do print n
                                     print x
    wait
  where wait = threadDelay 1000000 >> wait

Synopsis

Documentation

abi :: QuasiQuoter Source #

QQ reader for contract ABI

abiFrom :: QuasiQuoter Source #

Read contract ABI from file