Skip to content
Permalink
Browse files

add subscrible latest block

  • Loading branch information...
thanhson1085 committed Aug 4, 2018
1 parent a0321b0 commit 906864bf26b5aafb53582408bad20085478ba9a4
Showing with 4,491 additions and 9 deletions.
  1. +3 −1 .gitignore
  2. +3 −3 README.md
  3. +19 −0 config/local.json
  4. +4,434 −0 package-lock.json
  5. +2 −2 queues/transaction.js
  6. +30 −3 subscribe.js
@@ -1,2 +1,4 @@
.idea
node_modules
node_modules
*.sw*
config/local.json
@@ -1,6 +1,6 @@
# erc20 Tomocoin genesis swap
# ERC20 Crawler

## Requirement
## Requirements
- MongoDB
- NodeJS
- Redis
@@ -20,4 +20,4 @@ sudo npm install -g pm2
# Run
```
pm2 start crawl.js --watch
```
```
@@ -0,0 +1,19 @@
{
"redis": {
"host": "localhost",
"port": 6379,
"password": null,
"prefix": "TokenHolder"
},
"db": {
"uri": "mongodb://localhost:27017/tomo"
},
"provider": {
"ws": "wss://mainnet.infura.io/ws",
"http": "https://mainnet.infura.io"
},
"tomoAddress": "0x8b353021189375591723e7384262f45709a3c3dc",
"fromBlock": 5168958,
"toBlock": 5995800,
"processNumber": 6
}
Oops, something went wrong.

0 comments on commit 906864b

Please sign in to comment.
You can’t perform that action at this time.