npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

eth-debugging-toolbox

v1.0.0

Published

Eth Debugging Toolbox is a CLI that gives you some commands to ease the debugging of a smart contract in an ethereum-like network

Downloads

3

Readme

Eth Debugging Toolbox

This is a command line tool to help you debug things in a live environment when you are dealing with smart contracts in a Ethereum-like network.

Possible subcommands

The commands are:

Selectors

This produces an output where every method signature of the SmartContract is listed alongside its selector, this will help you understand which function was called based on the data of the function you are trying to debug.

Example: eth-debugging-toolbox selectors ./test/mocks/artifacts/erc20.json

Event Topics

This produces an output where every event signature of the SmartContract is listed alongside its first topic, this will help you identify the logs emitted for a given tx if you find the topics of any log(generally this can be accessed through any explorer)

Example: eth-debugging-toolbox eventTopics ./test/mocks/artifacts/erc20.json

Get Error

This command will give you the error message of a transaction which failed. The behaviour for an unfailed tx or a tx which failed without a message is indeterminate

eth-debugging-toolbox eventTopics 0x0000000000000000000000000000000000000000000000000000000000000000 https://rinkeby.infura.io/v3/0123456789012345678

Installation for usage

To install this extension just run

npm install -g eth-debugging-toolbox

keep in mind that this was tested for the node version defined in .nvmrc

Development

If you want to develop in this project you can clone the repository and install the dependencies using

npm install

Keep in mind that you should develop in the node version defined in .nvmrc, it is recommended that you use NVM for this and you can set the version using

nvm use

Running the toolbox

To use this tool while developing it, just run

./cli.js <command> [ARGUMENTS]

Testing

In order to run the test you just have to run

npm test

Linter

We are using eslint to lint the code in this project, to see if everything is ok according to it you just have to run

npm run lint