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

requestnetworkartifacts

Package Overview
Dependencies
Maintainers
3
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

requestnetworkartifacts - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

artifacts.json

21

index.js

@@ -1,6 +0,19 @@

const index = require('./index.json');
const artifacts = require('./artifacts.json');
// Entry point for the package, exports the artifacts to the outside.
// Call this function to get an artifact on a network and at an address
// The artifacts are stored in folders like RequestCore and RequestEthereum
// artifacts.json serves at mapping (network, address) => artifact
exports.default = function(networkName, address) {
if(!index[networkName] || !index[networkName][address.toLowerCase()]) return null;
return require('./'+index[networkName][address.toLowerCase()]);
}
const artifact = artifacts[networkName] && artifacts[networkName][address.toLowerCase()];
if (!artifact) {
return null;
}
return require(`./${artifact}`);
}
// Temporary hack that should be properly fixed. Needs some refactor to remove the default export
exports.default.getAllArtifactsForNetwork = function(networkName) {
return artifacts[networkName];
}

12

package.json
{
"name": "requestnetworkartifacts",
"version": "0.1.0",
"version": "0.1.1",
"description": "Artifacts for Request Network Ethereum contracts",
"homepage": "https://github.com/RequestNetwork/requestNetwork/tree/master/packages/requestNetworkArtifacts",
"keywords": [
"ethereum",
"request",
"requestArtifacts",
"requestnetwork",
"ethereum"
]
"requestnetwork"
],
"license": "MIT",
"repository": "github:RequestNetwork/requestNetwork"
}
# Request_Artifacts
Artifacts for Request Network Ethereum contracts

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