GithubHelp home page GithubHelp logo

skiermonnonfutou / dymension Goto Github PK

View Code? Open in Web Editor NEW

This project forked from dymensionxyz/dymension

0.0 0.0 0.0 26.08 MB

Dymension Hub

Home Page: https://dymension.xyz

License: Apache License 2.0

Shell 2.47% Go 96.86% Makefile 0.59% Dockerfile 0.08%

dymension's Introduction

Dymension Hub

image

license Go issues tests lint

Overview

Welcome to the Dymension Hub, the Settlement Layer of the Dymension protocol.

This guide will walk you through the steps required to set up and run a Dymension Hub full node.

Table of Contents

Prerequisites

Installation

Clone dymension:

git clone https://github.com/dymensionxyz/dymension.git
cd dymension
make install

Check that the dymd binaries have been successfully installed:

dymd version

If the dymd command is not found an error message is returned, confirm that your GOPATH is correctly configured by running the following command:

export PATH=$PATH:$(go env GOPATH)/bin

Initializing dymd

  • Using the setup script:

    This method is preferred as it preconfigured to support running rollapps locally

    bash scripts/setup_local.sh
  • Manually:

    First, set the following environment variables:

    export CHAIN_ID="dymension_100-1"
    export KEY_NAME="local-user"
    export MONIKER_NAME="local"

    Second, create genesis and init dymension chain:

    dymd init "$MONIKER_NAME" --chain-id "$CHAIN_ID"

    Third, set parameters to ensure denom is udym:

    bash scripts/set_params.sh

    Then, add genesis account and provide token to the account:

    dymd keys add "$KEY_NAME" --keyring-backend test
    dymd add-genesis-account "$(dymd keys show "$KEY_NAME" -a --keyring-backend test)" 1000dym
    dymd gentx "$KEY_NAME" 670dym --chain-id "$CHAIN_ID" --keyring-backend test
    dymd collect-gentxs

Running the Chain

Now start the chain!

dymd start

You should have a running local node!

Bootstrapping liquidity pools

To bootstrap the GAMM module with pools:

sh scripts/pools/pools_bootstrap.sh

Adding incentives

Creating incentives streams

After creating the pools above, we create 2 incentive streams through gov:

sh scripts/incentives/fund_incentives.sh

Wait for the gov proposal to pass, and validate with:

dymd q streamer streams

Locking tokens

To get incentives, we need to lock the LP tokens:

sh scripts/incentives/lockup_bootstrap.sh

validate with:

dymd q lockup module-balance

check rewards

Every minute a share of the rewards will be distributed!

validate with:

dymd q incentives active-gauges

# alternatively, watch the outpup - you will see the "amount" change every minute
#  watch -n1 -d "dymd q incentives active-gauges --output json | jq '.data[] | { "id": .id, "coins": .coins } '"

If you have any issues please contact us on discord in the Developer section. We are here for you!

dymension's People

Contributors

mtsitrin avatar liorzilp avatar omritoptix avatar itzhakbokris avatar dependabot[bot] avatar shaolin-flow avatar itaylevyofficial avatar anhductn2001 avatar gooddaisy avatar fadeev avatar oxbau avatar dylanschultzie avatar artemijspavlovs avatar bodhi-crypo avatar baibhavkumar1 avatar victortrustydev avatar freshe4qa avatar bert2002 avatar sigri44 avatar sqltrigger avatar lukema95 avatar dushyantgoswami avatar 0xmbcode 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.