Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
async function runInit(logicManager, contract) {
const engine = new EvalEngine();
const response = await engine.init(logicManager, 'test', contract, {}, moment().format());
return response;
}
constructor(template) {
if (this.constructor === TemplateInstance) {
throw new TypeError('Abstract class "TemplateInstance" cannot be instantiated directly.');
}
this.template = template;
this.data = null;
this.concertoData = null;
this.ergoEngine = new ErgoEngine();
}
async function runLogic(logicManager, contract, request, cstate) {
const engine = new EvalEngine();
const result = await engine.trigger(logicManager, 'test', contract, request, cstate, moment().format());
return result;
}
constructor() {
this.ergoEngine = new ErgoEngine();
}