Copyright | Alexander Krupenkin 2016-2018 |
---|---|
License | BSD3 |
Maintainer | mail@akru.me |
Stability | experimental |
Portability | noportable |
Safe Haskell | None |
Language | Haskell2010 |
Ethereum ABI encoding base type classes.
- class ABIType a where
- class ABIType a => ABIPut a where
- class ABIType a => ABIGet a where
- class GenericABIPut a where
- class GenericABIGet a where
Documentation
class ABIType a => ABIPut a where Source #
A class for encoding datatypes to their abi encoding
If your compiler has support for the DeriveGeneric
and
DefaultSignatures
language extensions (ghc >= 7.2.1
),
the abiPut
method will have default generic implementations.
To use this option, simply add a deriving
clause
to your datatype and declare a Generic
ABIPut
instance for it without
giving a definition for abiPut
.
class ABIType a => ABIGet a where Source #
A class for decoding datatypes from their abi encoding
If your compiler has support for the DeriveGeneric
and
DefaultSignatures
language extensions (ghc >= 7.2.1
),
the abiGet
method will have default generic implementations.
To use this option, simply add a deriving
clause
to your datatype and declare a Generic
ABIGet
instance for it without
giving a definition for abiGet
.
class GenericABIPut a where Source #
A class for encoding generically composed datatypes to their abi encoding