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

hubot-ethereum

v1.2.16

Published

Hubot script for ethereum network.

Downloads

9

Readme

hubot-ethereum

Hubot script for ethereum network.

dependency

  • hubot-redis-brain

Commands available

  • add : Attach address to your user
  • delete : Delete address from your user
  • remove : Alias for delete
  • rm : Alias for delete
  • list : list addresses from the current user
  • balance : Get the balance of the current user
  • balance <€ or $> : Get the balance of the current user in the provided currency
  • nanopool [balance] : Get nanopool balance of the current user (if the miner has mined something)
  • nanopool <€ or $> : Get nanopool balance of the current user in the provided currency
  • transaction : List latest transaction of the current user
  • check : Get balance from the address provided
  • price : value of ethereum
  • convert : convert value from currency to another ( default = eth)
  • p : alias for price
  • version : Print current version of hubot-ethereum
  • help : Print this help
  • ? : Alias for help

Examples

> {hubot} ethereum add 0x1ee3797c74b516befbb172eb3e306d70e9446d1a 
> {hubot} ethereum add 0x4e9417353300d7564cb9e9dcf0ed3d3d95fcd6eb
> {hubot} ethereum list
  0x1ee3797c74b516befbb172eb3e306d70e9446d1a
  0x4e9417353300d7564cb9e9dcf0ed3d3d95fcd6eb

> {hubot} ethereum price
  Current value of ether : 11.958€ ($13.420)

> {hubot} ethereum balance
Adress : [`0x4e9417353300d7564cb9e9dcf0ed3d3d95fcd6eb`] balance : [`3.1348954201224757 ETH`] 
Adress : [`0x1ee3797c74b516befbb172eb3e306d70e9446d1a`] balance : [`4.362588966914489 ETH`] 
-------
Total : `7.497` ETH over 2 account(s)

> {hubot} ethereum balance €
Adress : [`0x1ee3797c74b516befbb172eb3e306d70e9446d1a`] balance : [`51.16522990372733`] 
Adress : [`0x4e9417353300d7564cb9e9dcf0ed3d3d95fcd6eb`] balance : [`36.76661865492044`] 
-------
Total : `87.932€` over 2 account(s)

> {hubot} ethereum nanopool
Adress : [`0x4e9417353300d7564cb9e9dcf0ed3d3d95fcd6eb`] balance : [`0.03725937750699482 ETH`] 
Adress : [`0x1ee3797c74b516befbb172eb3e306d70e9446d1a`] balance : [`0.0782871532555 ETH`] 
-------
Total : `0.11554653076249481 ETH` over 2 account(s)

> {hubot} ethereum remove 0x4e9417353300d7564cb9e9dcf0ed3d3d95fcd6eb
> {hubot} ethereum list
0x1ee3797c74b516befbb172eb3e306d70e9446d1a

> {hubot} ethereum check 0x4e9417353300d7564cb9e9dcf0ed3d3d95fcd6eb
Balance : 3.1348954201224757 ETH

> {hubot} ethereum check 0x4e9417353300d7564cb9e9dcf0ed3d3d95fcd6eb € 
Balance : 37.796 €

Installation

Download the latest version from npm

npm install hubot-ethereum

Add dependency to your hubot external script: external-scripts.json

[
  //....
  "hubot-redis-brain",
  "hubot-ethereum"
  //....
]

TODO

  • [x] Refactoring
  • [ ] Tests
  • [ ] Add multiple pool
    • [x] nanopool.org
    • [ ] ethereumpool
    • [ ] ethpool