How to use @accordproject/ergo-engine - 4 common examples

To help you get started, we’ve selected a few @accordproject/ergo-engine examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github accordproject / template-studio / src / TemplateStudio / Utils.js View on Github external
async function runInit(logicManager, contract) {
  const engine = new EvalEngine();
  const response = await engine.init(logicManager, 'test', contract, {}, moment().format());
  return response;
}
github accordproject / cicero / packages / cicero-core / src / templateinstance.js View on Github external
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();
    }
github accordproject / template-studio / src / TemplateStudio / Utils.js View on Github external
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;
}

@accordproject/ergo-engine

Ergo Engine

Apache-2.0
Latest version published 2 years ago

Package Health Score

45 / 100
Full package analysis

Similar packages