Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hacker-DOM/decode
Decode is a package to make it easier for you to develop on Ethereum. In particular, it parses tx's submitted to a local testrpc node to make them more readable.
https://github.com/hacker-DOM/decode
Last synced: about 2 months ago
JSON representation
Decode is a package to make it easier for you to develop on Ethereum. In particular, it parses tx's submitted to a local testrpc node to make them more readable.
- Host: GitHub
- URL: https://github.com/hacker-DOM/decode
- Owner: hacker-DOM
- Created: 2018-04-12T13:52:11.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-06-01T10:35:47.000Z (over 6 years ago)
- Last Synced: 2024-08-03T22:06:55.866Z (5 months ago)
- Language: JavaScript
- Homepage:
- Size: 193 KB
- Stars: 6
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- DeFi-Developer-Road-Map - Decode - npm package which parses tx's submitted to a local testrpc node to make them more readable and easier to understand (Roadmap)
README
Decode
======Decode is a package to make it easier for you to develop on Ethereum. In particular, it parses tx's submitted to a local testrpc node to make them more readable.
Use
-----`npm install --save-dev decode-eth`
add this script to your `package.json`: `"decode": "node ./node_modules/decode-eth/main.js"`
run using `npm run decode`!
Works with testrpc & ganache-cli:
`truffle compile`
`truffle test`
`npm run decode`
Works with truffle develop:
`truffle develop`
`compile`
`test`
new tab:
`npm run decode`
Note: for it to work, you need to have a populated `build` folder. So you need to run `compile` before.
Features
-----
For every transaction that ocurred on your blockchain, decode will show:
- the block number
- which account it is being sent from (e.g. accounts[0]) & to (e.g. MyContract)
- if a contract is being created, which one
- all events from the transaction
- amount of ETH sent
- amount of gas usedAt the end, it will output all built contracts & their deployed addresses