https://github.com/cmditch/elm-ethereum-ports
Helpers to wire Elm ports into your elm-ethereum app.
https://github.com/cmditch/elm-ethereum-ports
Last synced: about 1 year ago
JSON representation
Helpers to wire Elm ports into your elm-ethereum app.
- Host: GitHub
- URL: https://github.com/cmditch/elm-ethereum-ports
- Owner: cmditch
- License: mit
- Created: 2018-07-01T06:39:37.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-06-23T01:16:57.000Z (over 6 years ago)
- Last Synced: 2025-02-22T09:06:17.570Z (about 1 year ago)
- Language: JavaScript
- Size: 3.91 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# elm-ethereum-ports
Easily connect Elm ports to your dapp.
Includes `txSentry` and `walletSentry`
See [elm-ethereum-simple-example](https://github.com/cmditch/elm-ethereum/tree/master/examples/simple) for usage.
**TxSentry**
Needed to wire into a wallet and send/track transactions.
Currently only supports Metamask, which uses web3.js v0.20.3
**WalletSentry**
Very useful for monitoring account and networkId changes, and letting your Elm app know.
Currently polls for account changes every 500ms.