web3-0.3.4.0: Ethereum API for Haskell

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

Network.Ethereum.Web3.TH

Description

TemplateHaskell based Ethereum contract ABI methods & event generator for Haskell native API.

[abiFrom|data/sample.json|]

main = do
    runWeb3 $ event "0x..." $
       (Action2 n x) -> 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