GithubHelp home page GithubHelp logo

ccamel / arbitrum-publisher Goto Github PK

View Code? Open in Web Editor NEW

This project forked from synternet/arbitrum-publisher

0.0 1.0 0.0 42 KB

Establishes connection with Arbitrum node and publishes Arbitrum blockchain data to Syntropy Data Layer via NATS connection.

License: MIT License

Shell 2.03% Go 93.99% Makefile 1.77% Dockerfile 2.21%

arbitrum-publisher's Introduction

Arbitrum publisher

Latest release License: MIT GitHub Workflow Status (with event)

Establishes connection with Arbitrum node and publishes Arbitrum blockchain data to Syntropy Data Layer via NATS connection.

Usage

Building from source.

make build

Running executable.

./arbitrum-publisher --socket /arbitrum.ipc --nats nats://35.198.163.186 --stream-prefix my-org --nats-nkey SA..BC

Environment variables and flags {#env-flags}

Environment variables can be passed to docker container. Flags can be passed as executable arguments.

Environment variable Flag Description
SOCKET socket Arbitrum node URI to establish IPC/WebSocket connection, e.g.: /tmp/arbvitrum.ipc, ws://a.b.c.d:8546
NATS nats NATS connection URL to Syntropy Data Layer broker, e.g.: nats://e.f.g.h. URL to broker. Default value is set to testnet broker: nats://35.198.163.186.
NATS_NKEY nats-nkey NATS account NKEY a.k.a access token, e.g.: SA..SI (58 chars). One access token for each publisher, see here.
STREAM_PREFIX stream-prefix Stream prefix, e.g.: foo prefix results in foo.arbitrum.<tx,log-even,header,...> stream subjects. Stream prefix should be same as registered wallet alias.
STREAM_PUBLISHER_INFIX stream-publisher-infix (optional) Stream publisher infix, e.g.: foo infix results in prefix.foo.<tx,log-even,header,...> stream subjects. Stream publisher infix should be same as registered publisher alias. Default: arbitrum.
STREAM_NETWORK_INFIX stream-network-infix (optional) Specify stream network infix, e.g.: mainnet prefix results in <prefix>.arbitrum.mainnet.<tx,...> subjects. Default: empty (prefix.arbitrum.<tx,...>).

See Data Layer Quick Start to learn more.

Docker

Build from source

  1. Build image.
docker build -f ./docker/Dockerfile -t arbitrum-publisher .
  1. Run container with passed environment variables.
docker run -it --rm --env-file=.env arbitrum-publisher

Prebuilt image

Run container with passed environment variables.

docker run -it --rm --env-file=.env ghcr.io/syntropynet/arbitrum-publisher:latest

Docker Compose

docker-compose.yml file.

version: '3.8'

services:
  arbitrum-publisher:
    image: ghcr.io/syntropynet/arbitrum-publisher:latest
    environment:
      - SOCKET=/tmp/arbitrum.ipc
      - NATS=nats://35.198.163.186
      - NATS_NKEY=secret-access-token
      - STREAM_PREFIX=some-org
      - STREAM_PUBLISHER_INFIX=arbitrum
    volumes:
      - /tmp/arbitrum.ipc:/tmp/arbitrum.ipc:ro

Contributing

We welcome contributions from the community. Whether it's a bug report, a new feature, or a code fix, your input is valued and appreciated.

Syntropy

If you have any questions, ideas, or simply want to connect with us, we encourage you to reach out through any of the following channels:

  • Discord: Join our vibrant community on Discord at https://discord.com/invite/jqZur5S3KZ. Engage in discussions, seek assistance, and collaborate with like-minded individuals.
  • Telegram: Connect with us on Telegram at https://t.me/SyntropyNet. Stay updated with the latest news, announcements, and interact with our team members and community.
  • Email: If you prefer email communication, feel free to reach out to us at [email protected]. We're here to address your inquiries, provide support, and explore collaboration opportunities.

arbitrum-publisher's People

Contributors

dancia avatar ashirviskas avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.