Giter Club home page Giter Club logo

mainnet's Introduction

CertiK Chain Shentu Mainnet genesis transaction submission guideline

The deadline to submit your gentx is 10/20/2020 13:00 EDT.

CertiK Chain is finally launching soon. If you participated in the validator program (Raise the Stakes), you can now submit your genesis transaction using the genesis file provided. Please use v0.9-shentu binary for making gentx. https://github.com/certikfoundation/shentu/releases/tag/v0.9-shentu

  1. If you do not have certikd initialized (haven't run a node before), run the following command to initialize certikd data/config directory.

    certikd init --chain-id shentu-1 <your_moniker> 
  2. Copy the initial genesis file to the certikd config directory (by default ~/.certikd/config/).

    wget https://raw.githubusercontent.com/certikfoundation/mainnet/main/config/genesis.json .
    mv genesis.json ~/.certikd/config/genesis.json
  3. Create a genesis account through the following command:

    certikd add-genesis-account <address or key name> 2000000uctk --manual --unlocker certik1up7kaqxxvexgrpuxt6y2258qc3dkjdzvyp29v4 --vesting-amount=1000000uctk

    example:

    certikd add-genesis-account mykey 1000000uctk --manual --unlocker certik1up7kaqxxvexgrpuxt6y2258qc3dkjdzvyp29v4 --vesting-amount=1000000uctk
    
    1. make sure the address/key matches the one you submit with KYC.
  4. Make a genesis transaction using the same address, using the following command:

     certikd gentx --amount <self_delegation_amount> \
     --commission-rate <commission_rate> \
     --commission-max-rate <max_rate> \
     --commission-max-change-rate <max_change_rate> \
     --min-self-delegation <self_delegation_parameter> \
     --name <key_name>

    example:

     --amount 1000000uctk
     --commission-rate 0.1
     --commission-max-rate 0.2
     --min-self-delegation 1

    The above command will give your validator 10% commission rate and 20% max rate, with 0.9CTK delegated from your account.

  5. To test your gentx is valid, run the following command:

    certikd collect-gentxs
    certikd start
    1. If your gentx is valid, it will start a single-node chain.
  6. Include your gentx file, located in ~/.certikd/config/gentx/gentx-<hash>.json to gentx/ directory here, and make a pull request to master branch to be included in the mainnet final genesis. Please do not change the file name.

    1. Tips on how to create a PR: https://opensource.com/article/19/7/create-pull-request-github

Some notes on gentxs:

  1. Make sure you place the genesis file in the correct directory while running certikd gentx. Otherwise it will result in an invalid gentx.
  2. When you submit your gentx through a PR, make sure you include it in the correct directory without changing the file name.
  3. If your gentx is invalid, you will have to wait until mainnet goes live to be certified as validator post-genesis.
  4. Most of the invalid gentxs from the validator testnet was due to wrong chain-id, or wrong parameters. Make sure you check your chain-id is shentu-1 in the genesis and you can start a single-node local chain with your gentx.

mainnet's People

Contributors

yoongbok-lee avatar

Watchers

James Cloos 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.