Skip to content

ErgoGravity/gravity-node-data-extractor

This branch is 17 commits ahead of, 1 commit behind Gravity-Tech/gravity-node-data-extractor:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

b1a1e9f · Oct 6, 2021
Oct 5, 2021
Oct 5, 2021
Oct 5, 2021
Sep 22, 2020
Feb 10, 2021
Mar 2, 2021
Aug 11, 2020
Nov 4, 2020
Jul 19, 2021
Mar 23, 2021
Oct 6, 2021
Jul 19, 2021
Nov 4, 2020
Sep 18, 2021
Jul 19, 2021
Feb 14, 2021
Sep 26, 2021
Sep 26, 2021
Aug 21, 2021
Aug 21, 2021
Jul 19, 2021
Aug 21, 2021
Aug 11, 2020
Jul 19, 2021
Jul 1, 2020
Aug 11, 2020

Repository files navigation

Gravity Node Data Extractor

Gravity Node Data Extractor

Build Status

Abstract

This package represents working example of Gravity Data Extractor.

I. Running public Docker image

1. Pull the image

docker pull gravityhuborg/gravity-data-extractor:master

2. Run

You can run SuSy dApp extractor

docker run -itd -p 8090:8090 gravityhuborg/gravity-data-extractor:master

2.1 Run SuSy dApp extractor for EVM-based or WAVES-based chains

Currently, extractor supports only EVM-chain<->WAVES direction. So we in order to add new custom(non-EVM) chain we need to provide 4 additional params and 2 bridge implementations as well - for direct and reversal swaps.

So, for EVM-based tokens we run --waves-based-to-eth-direct and --waves-based-to-eth-reverse. For WAVES-based tokens we run --eth-based-to-waves-direct and --eth-based-to-waves-reverse

II. Running the binary

1. Install Go

2. Build the binary

go build -o data-extractor

3. Run it with appropriate params

./data-extractor --api 'thekey' --pair 'WAVESBTC' --port 8099

Miscellaneous

1. Run tests

go test tests/*.go -v

2. Ergo extractors

Ergo extractors are under development. At this moment, we developed erg-erg extractors to test gravity on our network. We add other extractors when all tests passed.

About

gravity-node-data-extractor

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 97.5%
  • Shell 2.2%
  • Dockerfile 0.3%