base-model.js 265 B

12345678910111213
  1. module.exports = class BaseModel {
  2. static MODULES = {
  3. HISTORY: 'history',
  4. PENDING: 'pending'
  5. }
  6. constructor(chainId, module) {
  7. if (!chainId || !module) throw "Must have [chainId, module]."
  8. this.chainId = chainId
  9. this.module = module
  10. }
  11. }