export.ts 360 B

12345678910111213141516
  1. import '../config'
  2. import { OffchainState } from '../../src/utils/offchainState'
  3. import { getEm } from '../../src/utils/orm'
  4. async function main() {
  5. const offchainState = new OffchainState()
  6. const em = await getEm()
  7. await offchainState.export(em)
  8. }
  9. main()
  10. .then(() => process.exit(0))
  11. .catch((e) => {
  12. console.error(e)
  13. process.exit(-1)
  14. })