Copyright | Aleksandr Krupenkin 2016-2024 |
---|---|
License | Apache-2.0 |
Maintainer | mail@akru.me |
Stability | experimental |
Portability | unportable |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
This module is internal, the purpose is to define helper classes and functions to assist in event decoding. The user of this library should have no need to use this directly in application code.
Documentation
class DecodeEvent i ni e | e -> i ni where Source #
decodeEvent :: ByteArrayAccess ba => [ba] -> ba -> Either String e Source #
Instances
(IndexedEvent i ni e, Generic i, Rep i ~ SOP I '[hli], AbiGet ni, Generic ni, Rep ni ~ SOP I '[hlni], Generic e, Rep e ~ SOP I '[hle], CombineChange i ni e, ArrayParser (SOP I '[hli])) => DecodeEvent (i :: Type) (ni :: Type) e Source # | |
Defined in Data.Solidity.Event decodeEvent :: ByteArrayAccess ba => [ba] -> ba -> Either String e Source # |
class IndexedEvent i ni e | e -> i ni where Source #
isAnonymous :: Proxy e -> Bool Source #