human-standard-token-abi
Advanced tools
Comparing version 1.0.0 to 1.0.1
{ | ||
"name": "human-standard-token-abi", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "A simple node module that exports the [Ethereum ABI](1) for [ERC 20](2) compatible tokens.", | ||
"main": "index.js", | ||
"scripts": { | ||
"test": "echo \"Error: no test specified\" && exit 1" | ||
"test": "echo \"Error: no test specified\" && exit 1", | ||
"build": "browserify example/index.js -o example/bundle.js" | ||
}, | ||
@@ -9,0 +10,0 @@ "author": "Dan Finlay", |
@@ -8,4 +8,6 @@ # Human Standard Token ABI | ||
``` javascript | ||
var token = web3.eth.contract(HumanStandardToken.abi).at(contract_address) | ||
var abi = require('human-standard-token-abi') | ||
var token = web3.eth.contract(abi).at(contractAddress) | ||
// Get the token name | ||
@@ -30,3 +32,15 @@ token.name.call({from: addr}, function(err, name) { | ||
## Run the example | ||
First install `http-server` (`npm install -g http-server`). | ||
Then run it in this folder: `http-server`. | ||
Then visit that port, probably something like: `http://localhost:8080/example`. | ||
### Rebuild the example | ||
If you edit `example/index.js`, you'll have to rebuild by running `npm run build`. | ||
[1]: https://github.com/ethereum/wiki/wiki/Ethereum-Contract-ABI | ||
[2]: https://github.com/ethereum/EIPs/issues/20 |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
13263
6
596
45
2
1