diff --git a/JUNEGO/readme.md b/JUNEGO/readme.md index 185cec7..aa17801 100644 --- a/JUNEGO/readme.md +++ b/JUNEGO/readme.md @@ -1,4 +1,4 @@ -# JUNEGO +# JUNEO Let's update and install the necessary packages: ```` @@ -61,3 +61,60 @@ Check the validator uptime: ```` curl -X POST --data '{"jsonrpc":"2.0", "id":1,"method" :"info.uptime","params": {"chain":"JUNE"}}' -H 'content-type:application/json;' 127.0.0.1:9650/ext/info ```` +# JUNEO Super Network + +Install Node.JS and add-on packages: +```` +curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash +export NVM_DIR="$HOME/.nvm" +[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" +[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" +nvm ls-remote +nvm install 20.10.0 +npm install -g typescript +npm install -g ts-node
npm i juneojs +```` +Let's check out the versions (nvm - 0.39.1, nodejs - 20.10.0): +```` +nvm -v +node --version +```` +Upload the repository "juneojs-examples" and going to install the packages: +```` +git clone https://github.com/Juneo-io/juneojs-examples +cd juneojs-examples +npm install +```` +Let's edit the file and add a menonic phrase: +```` +cp .env.example .env +nano .env +```` +Let's execute commands to transfer tokens: +```` +npx ts-node ./src/docs/crossJUNEtoJVM.ts +npx ts-node ./src/docs/crossJVMtoP.ts +```` +Create a Supernet and find out our supernetID and record the result: +```` +npx ts-node ./src/supernet/createSupernet.ts +```` +Edit the file addSupernetValidator.ts and enter our data (line 26 - nodeId, line 27 - durationInDays, line 30 - supernetId): +```` +nano -l $HOME/juneojs-examples/src/supernet/addSupernetValidator.ts +```` +Let's execute the command to add a node as a validator and record the result: +```` +npx ts-node ./src/supernet/addSupernetValidator.ts +```` +Let's cut the file and add your supernetID to it: +```` +nano $HOME/.juneogo/config.json +{ + "track-supernets":"Zx...hP" +} +```` +Restart the node: +```` +sudo systemctl restart juneog +````