import { BigNumber } from '@pigi/core-utils' ; import { StateUpdate } from '../state.interface' ; export interface BlockDB { getNextBlockNumber ( ) : Promise < BigNumber > ; addPendingStateUpdate ( stateUpdate ) : Promise < void > ; getPendingStateUpdates ( ) : Promise < StateUpdate [ ] > ; getMerkleRoot ( blockNumber ) : Promise < Buffer > ; finalizeNextBlock ( ) : Promise < void > ; }