Code Monkey home page Code Monkey logo

networks's Introduction

Mars Networks

This repo contains instructions for genesis validators to create genesis staking transactions (gentxs) to start the Mars Hub network.

Instructions

Install Go 1.18+. On Ubuntu this can be done by:

wget -q -O - https://go.dev/dl/go1.19.2.linux-amd64.tar.gz | sudo tar xvzf - -C /usr/local

Configure relevant environment variables:

cat <<EOT >> $HOME/.bashrc
export GOROOT=/usr/local/go
export GOPATH=$HOME/.go
export GOBIN=$GOPATH/bin
export PATH=$PATH:$GOPATH/bin:$GOROOT/bin
EOT

Download Mars Hub daemon source code and compile. This will generate a marsd executable under your $GOBIN directory:

git clone https://github.com/mars-protocol/hub.git
cd hub
git checkout v1.0.0
make install

Initialize your node. This will generate your validator signing key at ~/.mars/priv_validator_key.json; make sure to backup this file:

marsd init

Create your validator operator key:

marsd keys add validator

Add your operator key to the genesis state:

marsd genesis add-account validator 1000000umars

Note that the chain id is mars-1 and set the self-bond amount to 1000000umars:

marsd genesis gentx validator 1000000umars \
  --pubkey "$(marsd tendermint show-validator)" \
  --chain-id mars-1 \
  --commission-rate "..." \
  --commission-max-rate "..." \
  --commission-max-change-rate "..." \
  --moniker "..." \
  --identity "..." \
  --details "..." \
  --website "..." \
  --security-contact "..."

The gentx can be found in ~/.mars/config/gentx/gentx-<hash>.json. Add the file to this repository under the mars-1/gentxs folder by making a PR.

networks's People

Contributors

larry0x avatar comonode 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.