requestnetworkartifacts
Advanced tools
Comparing version 1.1.4-erc20beta3 to 1.2.0-bitcoinNodesValidationBeta
@@ -6,6 +6,8 @@ { | ||
"last-requesterc20-0x345ca3e014aaf5dca488057592ee47305d9b3e10": "RequestERC20/RequestERC20-0.2.1-test.json", | ||
"last-requestbitcoinnodesvalidation": "RequestBitcoinNodesValidation/RequestBitcoinNodesValidation-0.2.1-test.json", | ||
"0x8cdaf0cd259887258bc13a92c0a6da92698644c0": "RequestCore/RequestCore-0.0.5-test.json", | ||
"0xf12b5dd4ead5f743c6baa640b0216200e89b60da": "RequestEthereum/RequestEthereum-0.0.5-test.json", | ||
"0xf25186b5081ff5ce73482ad761db0eb0d25abfbf": "RequestERC20/RequestERC20-0.2.1-test.json" | ||
"0xf25186b5081ff5ce73482ad761db0eb0d25abfbf": "RequestERC20/RequestERC20-0.2.1-test.json", | ||
"0x8f0483125fcb9aaaefa9209d8e9d7b9c8b9fb90f": "RequestBitcoinNodesValidation/RequestBitcoinNodesValidation-0.2.1-test.json" | ||
}, | ||
@@ -12,0 +14,0 @@ "rinkeby": { |
10
index.js
@@ -20,1 +20,11 @@ const artifacts = require('./artifacts.json'); | ||
} | ||
// Temporary hack that should be properly fixed. Needs some refactor to remove the default export | ||
// Returns the contract name of an address | ||
exports.default.getContractNameForAddress = function(contractAddress) { | ||
const artifactPath = Object.keys(artifacts).reduce( | ||
(result, network) => result || artifacts[network][contractAddress], | ||
'' | ||
); | ||
return artifactPath && artifactPath.split('/')[0]; | ||
} |
{ | ||
"name": "requestnetworkartifacts", | ||
"version": "1.1.4-erc20beta3", | ||
"version": "1.2.0-bitcoinNodesValidationBeta", | ||
"description": "Artifacts for Request Network Ethereum contracts", | ||
@@ -5,0 +5,0 @@ "homepage": "https://github.com/RequestNetwork/requestNetwork/tree/master/packages/requestNetworkArtifacts", |
240189
13
5835