Press n or j to go to the next uncovered block, b, p or k for the previous block.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | 47x 47x 47x 127x 139x 47x 1x 3x | import { Cardano, EraSummary } from '@cardano-sdk/core'; import { Observable, distinctUntilChanged, map } from 'rxjs'; import { eraSummariesEquals } from './equals'; export const distinctBlock = (tip$: Observable<Pick<Cardano.Tip, 'blockNo'>>) => tip$.pipe( map(({ blockNo }) => blockNo), distinctUntilChanged() ); export const distinctEraSummaries = (eraSummaries$: Observable<EraSummary[]>) => eraSummaries$.pipe( map((eraSummaries) => eraSummaries), distinctUntilChanged(eraSummariesEquals) ); |