1.2.16 • Published 3 years ago

hubot-ethereum v1.2.16

Weekly downloads
159
License
MIT
Repository
github
Last release
3 years ago

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

  • Refactoring
  • Tests
  • Add multiple pool
    • nanopool.org
    • ethereumpool
    • ethpool
1.2.16

3 years ago

1.2.14

3 years ago

1.2.15

3 years ago

1.2.13

5 years ago

1.2.12

6 years ago

1.2.11

6 years ago

1.2.10

7 years ago

1.2.9

7 years ago

1.2.8

7 years ago

1.2.7

8 years ago

1.2.6

8 years ago

1.2.5

8 years ago

1.2.4

8 years ago

1.1.3

8 years ago

1.1.2

8 years ago

1.1.1

8 years ago

1.0.4

8 years ago

1.0.2

8 years ago

1.0.0

8 years ago