-
Zeke Mostov authored
* nextSession & nextEra w/o derive Setup storage queries clean up Move queuedElected to not throw on isNone get ready to delete some epoch arithmetic Calculate nextExpectedEpochChange save progress * Use derived call for nextEra & nextSession save progress next session and next era small cleanup small fixes reorganize a bit * Calc toggle initial window change working clean up make toggle hardcoded based on chainSpec make query for activeEra, not derive save before deleting sessionInfo derive stuff toggle working; try/catch queueElected; begin making deriveSessionProgress deriveSessionProgress done, deleting old refactor deriveElectionLookAhead, async fetchStakingInfo(hash: BlockHash): Promise<StakingInfo> { q add comments and move some things more refining correct era progress clean up pre squash * Calc toggle initial window change working clean up make toggle hardcoded based on chainSpec make query for activeEra, not derive save before deleting sessionInfo derive stuff toggle working; try/catch queueElected; begin making deriveSessionProgress deriveSessionProgress done, deleting old refactor deriveElectionLookAhead, async fetchStakingInfo(hash: BlockHash): Promise<StakingInfo> { q add comments and move some things more refining correct era progress clean up pre squash delete comment * Null validator fields in PoA * clean up cleanup * Add docs in main * Delete line * Remove queuedElected * Fix new linting errror * Add check to ensure activeEraStartSessionIndex is some * Add compatibility to read electionLookAhead * Create config folder * Change route to staking-info * Add yarn main command * Do not include electionStatus when electionLookAhead = 0 * Reconfigure response object destructuring * Small updates * change toggle estimate by one session and change docs * change toggle estimate when open * fix bug in last session of active era * maybe better code * remove double subtraction * Change toggle to null when electionLookAhead = 0 * Add comment 'no offchain solutions accepted' Co-authored-by: joepetrowski <[email protected]>
Analyzing file…