Skip to content

Commit

Permalink
Update readme.md
Browse files Browse the repository at this point in the history
  • Loading branch information
defrisk0 authored Nov 23, 2023
1 parent 147d010 commit 23b0f98
Showing 1 changed file with 58 additions and 1 deletion.
59 changes: 58 additions & 1 deletion JUNEGO/readme.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# JUNEGO
# JUNEO

Let's update and install the necessary packages:
````
Expand Down Expand Up @@ -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
````

0 comments on commit 23b0f98

Please sign in to comment.