cmditch/elm-ethereum/1.0.0

NOTE: this package is not compatible with Elm 0.19.1

Eth.Sentry.ChainCmd

For dApp Single Page Applications If your EventSentry or TxSentry live at the top level of your model, and you are sending txs or listening to event in your sub-pages, use ChainCmd. See examples.

Core

type ChainCmd msg
type alias Sentry msg =
( TxSentry msg, EventSentry msg )
execute : Sentry msg -> ChainCmd msg -> ( Sentry msg, Cmd msg )
batch : List (ChainCmd msg) -> ChainCmd msg
none : ChainCmd msg
map : (subMsg -> msg) -> ChainCmd subMsg -> ChainCmd msg

TxSentry

sendTx : (Result String Tx -> msg) -> Send -> ChainCmd msg
(Result String Tx -> msg)
-> (Result String TxReceipt -> msg)
-> Send
-> ChainCmd msg
customSend : CustomSend msg -> Send -> ChainCmd msg

EventSentry

watchEvent : (Value -> msg) -> LogFilter -> ChainCmd msg
watchEventOnce : (Value -> msg) -> LogFilter -> ChainCmd msg
unWatch : LogFilter -> ChainCmd msg