mirror of
https://github.com/Permissionless-Software-Foundation/psf-memo.git
synced 2026-09-21 16:52:01 -07:00
26 lines
715 B
JavaScript
26 lines
715 B
JavaScript
import RetryQueue from '@chris.troutner/retry-queue'
|
|
import IndexBlocks from './index-blocks.js'
|
|
import State from './state.js'
|
|
import Utils from './utils.js'
|
|
|
|
class UseCases {
|
|
constructor (localConfig = {}) {
|
|
if (!localConfig.adapters) {
|
|
throw new Error('Adapters required for use cases.')
|
|
}
|
|
this.adapters = localConfig.adapters
|
|
this.indexBlocks = new IndexBlocks({ adapters: this.adapters })
|
|
this.state = new State({ adapters: this.adapters })
|
|
this.utils = new Utils()
|
|
this.retryQueue = new RetryQueue()
|
|
this.initUseCases = this.initUseCases.bind(this)
|
|
}
|
|
|
|
async initUseCases () {
|
|
console.log('Use cases initialized.')
|
|
return true
|
|
}
|
|
}
|
|
|
|
export default UseCases
|