Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement block timestamp helper functions #1

Open
wants to merge 2 commits into
base: feat/blockTime-helper
Choose a base branch
from

Conversation

topocount
Copy link

  • add blockTime helper to get a block's timestamp or estimated mining
    date
  • implement a boolean helper that allows for different language
    depending on whether the block in question has been mined or not.

@topocount topocount changed the base branch from master to feat/blockTime-helper December 4, 2019 19:38
- add blockTime helper to get a block's timestamp or estimated mining
date
- implement a boolean helper that allows for different language
depending on whether the block in question has been mined or not.
- remove any calls to `eth_blockNumber`
- add date-fns format helper and expose formatting externally
- move `isBlockMined` to a separate file
- re-alphabetize import and exports in index.js
- utilize regex tests for the future blocktime test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant