nahmii-contract-abstractions
Advanced tools
Comparing version 1.2.0 to 1.2.1
'use strict'; | ||
const glob = require('glob'); | ||
const path = require('path'); | ||
const _getAbstraction = (name) => { | ||
return require(`../build/contracts/${name}.json`); | ||
}; | ||
const _getAbstractionNames = () => { | ||
return glob.sync('build/contracts/*.json').map((f) => path.basename(f, '.json')); | ||
}; | ||
const _getEvent = (contractName, eventName) => { | ||
return require(`../events/${contractName}.json`)[eventName]; | ||
}; | ||
module.exports = { | ||
getAbstraction: _getAbstraction, | ||
getAbstractionNames: _getAbstractionNames, | ||
getEvent: _getEvent | ||
}; | ||
const CAM = require('contract-abstractions-manager'); | ||
module.exports = new CAM(`${__dirname}/..`); |
{ | ||
"_from": "nahmii-contract-abstractions", | ||
"_id": "nahmii-contract-abstractions@1.2.0", | ||
"_inBundle": false, | ||
"_integrity": "sha512-bgqWq19C817XN0N+MGxWKYZ898bYUKplasQEmzIUaINmwdwWOCPstlT6XjRjCEzo+9ZX3bhGA+4ELKpZyFvkVg==", | ||
"_location": "/nahmii-contract-abstractions", | ||
"_phantomChildren": {}, | ||
"_requested": { | ||
"type": "tag", | ||
"registry": true, | ||
"raw": "nahmii-contract-abstractions", | ||
"name": "nahmii-contract-abstractions", | ||
"escapedName": "nahmii-contract-abstractions", | ||
"rawSpec": "", | ||
"saveSpec": null, | ||
"fetchSpec": "latest" | ||
}, | ||
"_requiredBy": [ | ||
"#USER", | ||
"/" | ||
], | ||
"_resolved": "https://registry.npmjs.org/nahmii-contract-abstractions/-/nahmii-contract-abstractions-1.2.0.tgz", | ||
"_shasum": "0f3f8b0cb1db8c03343516dfcf233c212029cad3", | ||
"_spec": "nahmii-contract-abstractions", | ||
"_where": "/Users/jensivar/workspace/hubiinetwork/tmp", | ||
"author": { | ||
"name": "Jens Ivar Jørdre", | ||
"email": "jensivar@hubii.com" | ||
}, | ||
"bundleDependencies": false, | ||
"deprecated": false, | ||
"description": "Smart contract abstractions for nahmii deployed to mainnet", | ||
"dependencies": { | ||
"contract-abstractions-manager": "github:hubiinetwork/contract-abstractions-manager" | ||
}, | ||
"devDependencies": { | ||
"chai": "^4.2.0", | ||
"mocha": "^6.0.2" | ||
}, | ||
"keywords": [ | ||
"nahmii", | ||
"smart contracts", | ||
"ethereum" | ||
], | ||
"license": "LGPL-3.0", | ||
"main": "lib/index.js", | ||
"name": "nahmii-contract-abstractions", | ||
"version": "1.2.0", | ||
"description": "Smart contract abstractions for nahmii deployed to mainnet", | ||
"scripts": { | ||
@@ -14,15 +57,3 @@ "publish:major": "npm version major && npm publish", | ||
}, | ||
"keywords": [ | ||
"nahmii", | ||
"smart contracts", | ||
"ethereum" | ||
], | ||
"author": "Jens Ivar Jørdre <jensivar@hubii.com>", | ||
"license": "LGPL-3.0", | ||
"main": "lib/index.js", | ||
"devDependencies": { | ||
"chai": "^4.2.0", | ||
"glob": "^7.1.3", | ||
"mocha": "^6.0.2" | ||
} | ||
"version": "1.2.1" | ||
} |
@@ -7,4 +7,3 @@ # NAHMII CONTRACT ABSTRACTIONS | ||
[nahmii contracts](https://github.com/hubiinetwork/nahmii-contracts.git) to | ||
the Ethereum mainnet and to Ropsten testnet, found in branches `master` and | ||
`develop`, respectively. | ||
the Ethereum mainnet. | ||
@@ -11,0 +10,0 @@ ## About nahmii |
GitHub dependency
Supply chain riskContains a dependency which resolves to a GitHub URL. Dependencies fetched from GitHub specifiers are not immutable can be used to inject untrusted code or reduce the likelihood of a reproducible install.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
67834097
2
1
1
1536209
154
1