Copyright | Alexander Krupenkin 2017-2018 |
---|---|
License | BSD3 |
Maintainer | mail@akru.me |
Stability | experimental |
Portability | noportable |
Safe Haskell | None |
Language | Haskell2010 |
Solidity contract ABI encoding functions.
Synopsis
- 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
AbiPut
/AbiGet
type class encoding
decode :: (ByteArrayAccess ba, AbiGet a) => ba -> Either String a Source #
Decode datatype from Ethereum Abi-encoding
Generic 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