Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/likecoin/likecoin-tx-poll
Firestore based service of polling eth status and resending tx
https://github.com/likecoin/likecoin-tx-poll
cosmos-sdk ethereum firebase firestore likecoin web3
Last synced: 2 days ago
JSON representation
Firestore based service of polling eth status and resending tx
- Host: GitHub
- URL: https://github.com/likecoin/likecoin-tx-poll
- Owner: likecoin
- License: gpl-3.0
- Created: 2018-03-05T05:03:05.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-10-27T14:09:32.000Z (about 1 year ago)
- Last Synced: 2024-05-07T12:02:58.974Z (6 months ago)
- Topics: cosmos-sdk, ethereum, firebase, firestore, likecoin, web3
- Language: JavaScript
- Homepage:
- Size: 1.35 MB
- Stars: 13
- Watchers: 8
- Forks: 4
- Open Issues: 62
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# likecoin-tx-poll
[![CircleCI](https://circleci.com/gh/likecoin/likecoin-tx-poll.svg?style=svg)](https://circleci.com/gh/likecoin/likecoin-tx-poll)
[![Greenkeeper badge](https://badges.greenkeeper.io/likecoin/likecoin-tx-poll.svg)](https://greenkeeper.io/)> A firestore based ETH tx status poller (and auto resender)
## Folder structure
```bash
├── config
│ ├── config.js # config file
│ └── serviceAccountKey.json # firestore crendentials
├── util # helper functions
│ ├── db.js # firestore watch helper
│ ├── gcloudPub.js # optional gcloud pubsub log
│ └── web3.js # web3/tx related functions
├── poll.js # poller handler
├── retry.js # retry handler
└── index.js # main entry
```## Config setting
Please refer to comments in config.js for example and explanation.## Firestore required field
Except `txHash`, Most fields are optional but useful for log.`rawSignedTx` and `delegatorAddress` is required for retrying tx.
```javascript
{
txHash,
from,
to,
value,
fromId,
toId,
currentBlock,
nonce,
rawSignedTx, // tx.rawTransaction
delegatorAddress, // sender address for retrying, must match original sender
}
```## Dev Setup
``` bash
# Remeber to setup config.js and serviceAccountKey.json first!# install dependencies
npm install# run the program
npm start# ... or docker-based
docker-compose up```