Giter Club home page Giter Club logo

aurora-relayer-indexer's Introduction

Aurora Relayer Indexer

Aurora Relayer Indexer used to continuously populate postgres database with blocks. It relies on borealis-engine-lib to generate data. Schema for that database located in the aurora-relayer repo.

How to build

go build #mac
make #linux

Template for config.yaml:

---
database: postgres://aurora:aurora@database/aurora
debug: false
keepFiles: false
sourceFolder: ../borealis-engine-lib/output/refiner
genesisBlock: 9820210
fromBlock: 0
toBlock: 0

How to use

Usage:
  indexer [flags]

Flags:
  -c, --config string         config file (default is config/local.yaml)
      --database string       database url (default is postgres://aurora:aurora@database/aurora)
  -d, --debug                 enable debugging(default is false)
  -f, --fromBlock uint        block to start from. Ignored if missing or 0 (default is 0)
  -g, --genesisBlock uint     aurora genesis block. It will never index blocks prior to it. (default is 1)
  -h, --help                  help for indexer
  -k, --keepFiles             keep json files(default is false)
  -s, --sourceFolder string   source folder populated with block.json files. (default "../borealis-engine-lib/output/refiner")
  -t, --toBlock uint          block to end on. Ignored if missing or 0 (default is 0)
  -v, --version               version for indexer

Example of usage

./indexer # Using config from `config/local.yaml`
./indexer --config config/mainnet.yaml # Using different config file
./indexer --fromBlock 30000000 # Flags will override config set in yaml file

aurora-relayer-indexer's People

Contributors

spilin 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.