Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • BlockDao

Index

Constructors

constructor

  • new BlockDao(mongoose: Mongoose, collectionName: string): BlockDao

Properties

Private model

model: any

Methods

analyze

  • analyze(startHeight: number, endHeight: number): Promise<any[]>

countByHeight

  • countByHeight(height: number): Promise<number>

deleteManyById

  • deleteManyById(id: string): Promise<void>

getByHeight

  • getByHeight(height: number): Promise<any>

getByTransactionId

  • getByTransactionId(transactionId: string): Promise<any | undefined>

getHighestHeight

  • getHighestHeight(): Promise<number>

Private getModel

  • getModel(mongoose: Mongoose, collectionName: string): Model<any, __type>

listByHeight

  • listByHeight(height: number): Promise<any[]>

reviewIndex

  • reviewIndex(key: string, keyObj: object): Promise<void>

save

  • save(data: object): Promise<void>

Generated using TypeDoc