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

Add common queries as functions to ConseilJS #306

Open
Taaseen-Ali opened this issue Jul 9, 2020 · 0 comments
Open

Add common queries as functions to ConseilJS #306

Taaseen-Ali opened this issue Jul 9, 2020 · 0 comments
Labels
enhancement New feature or request

Comments

@Taaseen-Ali
Copy link

Taaseen-Ali commented Jul 9, 2020

Add functions that return the result of common queries to the user.
A list of possible function signatures:

getTezInCirculation()
tezTransferedBetween(from, to, cycle)
getRollsStaked(baker)
getBalanceAtLevel(address, level)
numBlocksBakedFrom(timestamp) 
numBlocksBakedBy(baker, cycle)
blocksBakedBy(baker, cycle)
lastBlockBakedBy(baker) 
nextBake(baker)
blocksBakedInTimestampBy(baker, start, end) 
blocksMissedBy(baker, cycle)
getDelegatedBalance(baker)

Function definitions can be found here: https://github.com/Cryptonomic/Harpoon/blob/v2/ui/assets/conseilQueries.js

@Taaseen-Ali Taaseen-Ali added the enhancement New feature or request label Jul 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant