|
|
@ -1,18 +1,16 @@ |
|
|
|
/* global localStorage, fetch */ |
|
|
|
|
|
|
|
import { Engine } from '@remixproject/engine' |
|
|
|
import { Engine } from '@remixproject/engine' |
|
|
|
import { EventEmitter } from 'events' |
|
|
|
import { EventEmitter } from 'events' |
|
|
|
|
|
|
|
|
|
|
|
export class RemixEngine extends Engine { |
|
|
|
export class RemixEngine extends Engine { |
|
|
|
|
|
|
|
|
|
|
|
constructor () { |
|
|
|
constructor () { |
|
|
|
super() |
|
|
|
super() |
|
|
|
this.event = new EventEmitter() |
|
|
|
this.event = new EventEmitter() |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
setPluginOption ({ name, kind }) { |
|
|
|
setPluginOption ({ name, kind }) { |
|
|
|
if (kind === 'provider') return {queueTimeout: 60000 * 2} |
|
|
|
if (kind === 'provider') return { queueTimeout: 60000 * 2 } |
|
|
|
if (name === 'LearnEth') return {queueTimeout: 60000} |
|
|
|
if (name === 'LearnEth') return { queueTimeout: 60000 } |
|
|
|
return {queueTimeout: 10000} |
|
|
|
return { queueTimeout: 10000 } |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
onRegistration (plugin) { |
|
|
|
onRegistration (plugin) { |
|
|
|