Copyright | Alexander Krupenkin 2016 |
---|---|
License | BSD3 |
Maintainer | mail@akru.me |
Stability | experimental |
Portability | unportable |
Safe Haskell | None |
Language | Haskell2010 |
TemplateHaskell based Ethereum contract ABI methods & event generator for Haskell native API.
[abiFrom|data/sample.json|] main = do runWeb3 $ event "0x..." $ (Action2 n x) -> liftIO $ do print n print x wait where wait = threadDelay 1000000 >> wait
- abi :: QuasiQuoter
- abiFrom :: QuasiQuoter
- data Bytes :: *
- data Text :: *
- newtype Singleton a = Singleton {
- unSingleton :: a
- class ABIEncoding a where
Quasiquoter's
abi :: QuasiQuoter Source #
QQ reader for contract ABI
abiFrom :: QuasiQuoter Source #
Read contract ABI from file
Used by TH data types
Simplest Byte Array
A space efficient, packed, unboxed Unicode text type.
Singleton parameter instance
Singleton | |
|
(EncodingType a, ABIEncoding a) => ABIEncoding (Singleton a) Source # | |
class ABIEncoding a where Source #
Contract ABI data codec
toDataBuilder :: a -> Builder Source #
fromDataParser :: Parser a Source #
Encode value into abi-encoding represenation
fromData :: Text -> Maybe a Source #
Parse encoded value
ABIEncoding Bool Source # | |
ABIEncoding Int Source # | |
ABIEncoding Integer Source # | |
ABIEncoding Word Source # | |
ABIEncoding Text Source # | |
ABIEncoding Address Source # | |
ABIEncoding BytesD Source # | |
ABIEncoding NoMethod Source # | |
ABIEncoding a => ABIEncoding [a] Source # | |
KnownNat n => ABIEncoding (BytesN n) Source # | |
(EncodingType a, ABIEncoding a) => ABIEncoding (Singleton a) Source # | |