Copyright | Alexander Krupenkin 2016 |
---|---|
License | BSD3 |
Maintainer | mail@akru.me |
Stability | experimental |
Portability | portable |
Safe Haskell | None |
Language | Haskell2010 |
Ethereum contract generalized interface, e.g. event
function
catch all event depend by given callback function type.
runWeb3 $ event "0x..." ((MyEvent a b c) -> print (a + b * c))
In other case call
function used for constant calls (without
transaction creation and change state), and sendTx
function
like a call
but return no contract method return but created
transaction hash.
runweb3 $ do x <- call "0x.." Latest MySelector tx <- sendTx "0x.." nopay $ MySelector2 (x + 2)
- data EventAction
- class ABIEncoding a => Method a where
- class ABIEncoding a => Event a where
- nopay :: Wei
Documentation
data EventAction Source #
Event callback control response
ContinueEvent | Continue to listen events |
TerminateEvent | Terminate event listener |
class ABIEncoding a => Method a where Source #
Contract method caller
class ABIEncoding a => Event a where Source #
Contract event listener