Copyright | Alexander Krupenkin 2016-2018 |
---|---|
License | BSD3 |
Maintainer | mail@akru.me |
Stability | experimental |
Portability | noportable |
Safe Haskell | None |
Language | Haskell2010 |
Ethereum ABI encoding codec functions.
- encode :: (ABIPut a, ByteArray ba) => a -> ba
- decode :: (ByteArrayAccess ba, ABIGet a) => ba -> Either String a
- encode' :: (Generic a, Rep a ~ rep, GenericABIPut rep, ByteArray ba) => a -> ba
- decode' :: (Generic a, Rep a ~ rep, GenericABIGet rep, ByteArrayAccess ba) => ba -> Either String a
Documentation
decode :: (ByteArrayAccess ba, ABIGet a) => ba -> Either String a Source #
Decode datatype from Ethereum ABI-encoding
encode' :: (Generic a, Rep a ~ rep, GenericABIPut rep, ByteArray ba) => a -> ba Source #
Generic driven version of encode
decode' :: (Generic a, Rep a ~ rep, GenericABIGet rep, ByteArrayAccess ba) => ba -> Either String a Source #
Generic driven version of decode