Code Monkey home page Code Monkey logo

mantle's Introduction

Mantle

๐Ÿšง Under heavy construction! ๐Ÿšง

This repository contains official indexers built on mantle-sdk.

Installation and run

Installation process is likely to change once it hits a major release! Current installation steps are intended for internal developers only.

In order to run an instance of mantle,

git clone https://github.com/terra-project/mantle.git
cd mantle
go mod download
# then, follow instructions

Dependencies

mantle depends on 3 modules:

Versions of these packages need to adjusted in go.mod file to match the version of the network you are trying to index.

The go.mod file in master branch is set to run with the latest mainnet.

Adjusting package versions

Unlisted networks are to be supported in the future.

terra-project/core

core version MUST match with the network version you're trying to index. Fix core's version in go.mod file accordingly.

  • columbus-3: github.com/terra-project/core v0.3.7
  • columbus-4: github.com/terra-project/core v0.4.0
  • tequila-4: github.com/terra-project/core v0.4.0-rc.5

terra-project/compatibility

Adjust package version accordingly:

  • columbus-3: github.com/terra-project/mantle-compatibility v1.2.1-columbus-3
  • columbus-4: github.com/terra-project/mantle-compatibility v1.2.1-tequila-rc4
  • tequila-4: github.com/terra-project/mantle-compatibility v1.2.1-tequila-rc4

terra-project/mantle

We recommed using the latest version of mantle.

Build

go build main.go

Load genesis file

You'll need to use the same genesis file for the network you're trying to index.

  • Download from here.
  • Save it as genesis.json.

Run mantle instance

GENESIS_PATH=genesis.json \
ENDPOINT=<your-network-tendermint-rpc> \
DB_DIR=mantle-db \
GRAPHQL_PORT=1337
./mantle

Access indexed data through graphql

Default graphql port is 1337, which you can change by setting GRAPHQL_PORT environmental variable.

There's also a graphql playground available. You can access it at http://localhost:1337.

LICENSE

This software is licensed under the Apache 2.0 license. Read more about it here.

ยฉ 2020 Terraform Labs, PTE.

mantle's People

Contributors

etienne-napoleone avatar hanjukim avatar kjessec 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.