Skip to content

Add common queries as functions to ConseilJS #306

@Taaseen-Ali

Description

@Taaseen-Ali

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions