Comments (2)
Well, it was safe to use when I wrote it two years ago 😉.
If I remember rightly, at the time I was interested in interesting with API endpoints that support push subscriptions, like websockets and TCP IPC. But the project I was using it for ended up going a different way (I'm not using it now), and a lot has changed in this space in those two years. So if it were me, I'd test it before using it on a real project.
from eth-block-tracker.
There are tests for this, so in that sense, we know it works, but we still don't use it for anything at MetaMask. I'd echo @jamespic's advice with the expectation that it may go away at some point in the future. If people still need it after that point, then we can accommodate another solution.
from eth-block-tracker.
Related Issues (20)
- Convert tests from Tape to Jest
- Add a `destroy` method so that the new NetworkController can use it in tests
- Use Jest's fake timers instead of a custom stub HOT 1
- Use the `v8` coverage strategy instead of `babel` HOT 1
- PollingBlockTracker - encountered an error while attempting to update latest block: HOT 3
- Provider type exported by this package should be compatible with provider type exported by `eth-json-rpc-middleware`
- When destroying a PollingBlockTracker, unset the last timer created during the polling loop
- Figure out a way to completely stop a polling block tracker in tests
- Upgrade to newer versions of ESLint config packages
- Scope this package under our NPM namespace HOT 2
- Compile error using craco in react app for eth-block-tracker HOT 2
- Endless failed request polling loop
- Add CircleCI config
- Use shared ESLint config
- dogmi
- w
- MetaMask State logs - v3.5.0 (787)
- const createInfuraProvider = require('eth-json-rpc-infura') const { PollingBlockTracker } = require('eth-block-tracker') const provider = createInfuraProvider({ network: 'mainnet', projectId: process.env.INFURA_PROJECT_ID }) const blockTracker = new PollingBlockTracker({ provider }) blockTracker.on('sync', ({ newBlock, oldBlock }) => { if (oldBlock) { console.log(`sync #${Number(oldBlock)} -> #${Number(newBlock)}`) } else { console.log(`first sync #${Number(newBlock)}`) } })
- I have a no loss/ no gain contract on my transaction?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from eth-block-tracker.