Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kybernetwork/evmlistener
https://github.com/kybernetwork/evmlistener
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/kybernetwork/evmlistener
- Owner: KyberNetwork
- Created: 2022-11-10T07:53:17.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-11-08T09:43:32.000Z (2 months ago)
- Last Synced: 2024-11-08T10:34:37.672Z (2 months ago)
- Language: Go
- Size: 6.38 MB
- Stars: 5
- Watchers: 9
- Forks: 7
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Blockchain Listener
Blockchain Listener is a service that will listen for blockchain events and publish them to queue.
## Quick Start
Clone code into local machine:
```sh
git clone [email protected]:KyberNetwork/evmlistener.git
cd evmlistener
```Create environment file with following content, `listener.env`:
```sh
export WS_RPC="wss://polygon.kyberengineering.io"
export HTTP_RPC="https://polygon.kyberengineering.io"
export SANITY_NODE_RPC="https://polygon.kyberengineering.io"
export SANITY_CHECK_INTERVAL=10s
export LOG_LEVEL="debug"export SENTRY_DNS=""
export SENTRY_LEVEL="error"export REDIS_MASTER_NAME=""
export REDIS_ADDRS="localhost:6379"
export REDIS_DB=0
export REDIS_USERNAME=""
export REIDS_PASSWORD=""
export REDIS_KEY_PREFIX="test-listener-polygon:"
export REDIS_READ_TIMEOUT=0
export REIDS_WRITE_TIMEOUT=0export PUBLISHER_TOPIC="test-listener-polygon-topic"
export PUBLISHER_MAX_LEN=10export MAX_NUM_BLOCKS=128
export BLOCK_EXPIRATION=10m
```Start docker for redis:
```sh
docker-compose up -d
```Run service:
```sh
source listener.env
go run ./cmd/listener/main.go
```