🥋Karnot AppChain (Closed)

Setup AppChain and Pull request to register

Install dependencies

Please go Ubuntu Dependencies to install

Initialize Madara CLI

Clone repo

git clone https://github.com/karnotxyz/madara-cli

Build

cd madara-cli
cargo build --release

Initialize a new appchain

./target/release/madara init

Enter your app chain name

Mode: Sovereign

DA layer: Avail

You will see the result

Restore your old AppChain

If you are new, please skip this. This section is for someone who accidentally removed vps or got error and have to reinstall vps

If you want to use your old appchain information, please update data in ~/.madara/app-chains/{your appchain name}/da-config.json

You should change the address and seed in there corresponding to your old information

Faucet

You must have 20 point in gitcoin in order to get faucet at Discord channel

Go to faucet-access in discord to get role

When you have role to access goldberg-faucet, the syntax to faucet is /deposit then choose the first item in Modal displayed then patse your address you have in Register your AppChain

Register your AppChain

Before you register your AppChain, please get faucet

Go to register page

  • If you already have old app chain and restored at Restore your old AppChain, just find your app chain by name. You will see the app chain id, replace it at da-config.json in ~/.madara/app-chains/{your appchain name}/da-config.json

  • If you are new, Import the appchain wallet to Pokadot{js} extension by seed phrase.

    • Click on Detect extension then choose the wallet you just imported.

    • Name your app chain, then click Send tx and wait until successful

    • Then replace app chain id at da-config.json in ~/.madara/app-chains/{your appchain name}/da-config.json

Run your AppChain

You need to install tmux first in order to keep AppChain running

sudo apt install tmux

Then run session tmux

tmux

Run AppChain

./target/release/madara run

If you get any questions in installing progress, just press Y then enter

You should see the result in the end

Press Ctrl + B then press D to exit tmux session

Run explorer

./target/release/madara explorer

Check your AppChain Explorer

Go to the link http://{your vps IP}:4000

Create PR to register your AppChain

  • Then clone it in your computer

  • Create a JSON file named {uuid}.json in the app_chains folder with the syntax:

{
  "name": "your app chain name",
  "logo": "url of your logo",
  "rpc_url": "http://{your vps ip}:9944",
  "explorer_url": "http://{your vps ip}:4000",
  "metrics_endpoint": "http://{your vps ip}:9615/metrics",
  "id": "{uuid} that match with the name of JSON file"
}
  • Submit github (In this step, you shoudl search on google if you do not know how to do)

  • Create Pull Request on Github with titled ✨ Adding app_chain_name

  • Wait for approving (Should be in 30 seconds)

  • If succesful, you will see the tag of your PR similar to

Last updated