cmditch/elm-ethereum/1.0.1

NOTE: this package is not compatible with Elm 0.19.1

Eth.Sentry.Event

Listen to contract events, and other chain activity

Types

type EventSentry msg
type Msg

(Contract Address, Event Topic)

Need to come up with a better Key scheme to avoid collisions Maybe by hashing the Filter params

Core

init : (Msg -> msg) -> String -> EventSentry msg
update : Msg -> EventSentry msg -> ( EventSentry msg, Cmd msg )
changeNode : String -> EventSentry msg -> EventSentry msg
listen : EventSentry msg -> Sub msg
withDebug : EventSentry msg -> EventSentry msg

Contract Events/Logs

(Value -> msg)
-> EventSentry msg
-> LogFilter
-> ( EventSentry msg, Cmd msg )
(Value -> msg)
-> EventSentry msg
-> LogFilter
-> ( EventSentry msg, Cmd msg )
unWatch : EventSentry msg -> LogFilter -> ( EventSentry msg, Cmd msg )
toFilterKey : LogFilter -> FilterKey

Blocks

newBlocks : (BlockHead -> msg) -> EventSentry msg -> ( EventSentry msg, Cmd msg )
unWatchNewBlocks : EventSentry msg -> ( EventSentry msg, Cmd msg )
nextBlock : (BlockHead -> msg) -> EventSentry msg -> ( EventSentry msg, Cmd msg )

Pending Transactions

pendingTxs : (TxHash -> msg) -> EventSentry msg -> ( EventSentry msg, Cmd msg )
unWatchPendingTxs : EventSentry msg -> ( EventSentry msg, Cmd msg )