import { GenericDAO } from "./GenericDAO"; import { DBBlock } from "../../../db/DBBlock"; import { ForksDAO } from "./software/ForksDAO"; export interface BlockchainDAO extends GenericDAO, ForksDAO { getCurrent(): Promise; getBlock(number: string | number): Promise; getAbsoluteBlock(number: number, hash: string): Promise; saveBlock(block: DBBlock): Promise; getBlocks(start: number, end: number): Promise; lastBlockOfIssuer(issuer: string): Promise; getCountOfBlocksIssuedBy(issuer: string): Promise; dropNonForkBlocksAbove(number: number): Promise; findWithIdentities(): Promise; findWithCertifications(): Promise; findWithJoiners(): Promise; findWithActives(): Promise; findWithLeavers(): Promise; findWithExcluded(): Promise; findWithRevoked(): Promise; findWithUD(): Promise; findWithTXs(): Promise; }