New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@cryptoeconomicslab/ovm

Package Overview
Dependencies
Maintainers
3
Versions
57
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cryptoeconomicslab/ovm - npm Package Compare versions

Comparing version 0.4.0 to 0.4.1-alpha.0

lib/hintString.d.ts

2

lib/DeciderManager.js

@@ -69,3 +69,3 @@ "use strict";

else {
throw new Error('Decider not found');
throw new Error('Decider not found: ' + property.deciderAddress.toString());
}

@@ -72,0 +72,0 @@ }

@@ -29,5 +29,3 @@ "use strict";

outcome: true,
witnesses: childWitnesses.concat([
ovmContext.coder.encode(primitives_1.Integer.from(index))
]),
witnesses: [ovmContext.coder.encode(primitives_1.Integer.from(index))].concat(childWitnesses),
challenge: null

@@ -34,0 +32,0 @@ };

@@ -38,3 +38,3 @@ "use strict";

const childWitnesses = decisions[indexOfTrueDecision].witnesses || [];
nextWitnesses = childWitnesses.concat([witness]);
nextWitnesses = [witness].concat(childWitnesses);
return {

@@ -41,0 +41,0 @@ outcome: true,

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const types_1 = require("../types");
function constantSubstitutions(constantTable) {
return Object.keys(constantTable).reduce((acc, key) => {
const newKey = `$${key}`;
return Object.assign(Object.assign({}, acc), { [newKey]: constantTable[key] });
}, {});
}
class CompiledDecider {

@@ -11,3 +17,3 @@ constructor(predicateSource, constantTable = {}) {

const property = this.predicateSource.decompileProperty(new types_1.Property(this.predicateSource.deployedAddress, inputs), manager.shortnameMap, this.constantTable);
return manager.decide(property, substitutions);
return manager.decide(property, Object.assign(Object.assign({}, substitutions), constantSubstitutions(this.constantTable)));
}

@@ -14,0 +20,0 @@ decompile(manager, inputs) {

@@ -0,1 +1,2 @@

import * as hint from './hintString';
export * from './types';

@@ -8,1 +9,2 @@ export * from './DeciderManager';

export * from './propertyFilter';
export { hint };
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const tslib_1 = require("tslib");
const hint = tslib_1.__importStar(require("./hintString"));
exports.hint = hint;
tslib_1.__exportStar(require("./types"), exports);

@@ -5,0 +7,0 @@ tslib_1.__exportStar(require("./DeciderManager"), exports);

@@ -19,3 +19,5 @@ "use strict";

IsSameAmount: new deciders_1.IsSameAmountDecider(),
IsHashPreimage: new deciders_1.IsHashPreimageDecider()
IsHashPreimage: new deciders_1.IsHashPreimageDecider(),
IsStored: new deciders_1.IsStoredDecider(),
VerifyInclusion: new deciders_1.VerifyInclusionDecider()
};

@@ -22,0 +24,0 @@ function initialize(deciderManager, config) {

{
"name": "@cryptoeconomicslab/ovm",
"version": "0.4.0",
"version": "0.4.1-alpha.0",
"description": "ovm",

@@ -33,17 +33,17 @@ "author": {

"@cryptoeconomicslab/coder": "^0.4.0",
"@cryptoeconomicslab/db": "^0.4.0",
"@cryptoeconomicslab/hash": "^0.4.0",
"@cryptoeconomicslab/merkle-tree": "^0.4.0",
"@cryptoeconomicslab/db": "^0.4.1-alpha.0",
"@cryptoeconomicslab/hash": "^0.4.1-alpha.0",
"@cryptoeconomicslab/merkle-tree": "^0.4.1-alpha.0",
"@cryptoeconomicslab/ovm-parser": "^0.4.0",
"@cryptoeconomicslab/ovm-transpiler": "^0.4.0",
"@cryptoeconomicslab/primitives": "^0.4.0",
"@cryptoeconomicslab/signature": "^0.4.0",
"@cryptoeconomicslab/signature": "^0.4.1-alpha.0",
"@cryptoeconomicslab/utils": "^0.4.0",
"jsbi": "^3.1.2"
},
"gitHead": "865f28448ab08beb7151c14a44c2724dca0e5db4",
"gitHead": "2bf1cfc3867de26d9f177273949558e1ba652aca",
"devDependencies": {
"@cryptoeconomicslab/coder": "^0.0.3",
"@cryptoeconomicslab/context": "^0.4.0",
"@cryptoeconomicslab/eth-coder": "^0.4.0",
"@cryptoeconomicslab/eth-coder": "^0.4.1-alpha.0",
"@cryptoeconomicslab/level-kvs": "0.0.6",

@@ -50,0 +50,0 @@ "ethers": "^4.0.46"

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc