Created
March 6, 2021 19:23
-
-
Save Esya/547b51337cb3ab100ff89b766e0f87a6 to your computer and use it in GitHub Desktop.
Oasis current paratime stake repartition amongst validator nodes
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
oasis1qr0jwz65c29l044a204e3cllvumdg8cmsgt2k3ql;224,328,842.71 | |
oasis1qz72lvk2jchk0fjrz7u2swpazj3t5p0edsdv7sf8;178,828,121.92 | |
oasis1qz0ea28d8p4xk8xztems60wq22f9pm2yyyd82tmt;175,286,242.72 | |
oasis1qz22xm9vyg0uqxncc667m4j4p5mrsj455c743lfn;129,129,137.91 | |
oasis1qrs8zlh0mj37ug0jzlcykz808ylw93xwkvknm7yc;100,118,725.30 | |
oasis1qzl99wft8jtt7ppprk7ce7s079z3r3t77s6pf3dd;93,148,692.67 | |
oasis1qp4rp7adhegfktyg4aq3w6jelqumx6klfv5t7kvv;60,637,943.55 | |
oasis1qrdx0n7lgheek24t24vejdks9uqmfldtmgdv7jzz;58,209,045.22 | |
oasis1qq0xmq7r0z9sdv02t5j9zs7en3n6574gtg8v9fyt;56,712,998.39 | |
oasis1qz65awwegd9pr8msfxkg7hpwyjemm2qdlysyc8jq;54,049,504.30 | |
oasis1qqnmppt4j5d2yl584euhn6g2cw9gewdswga9frg4;50,456,018.44 | |
oasis1qram2p9w3yxm4px5nth8n7ugggk5rr6ay5d284at;45,927,530.25 | |
oasis1qrmexg6kh67xvnp7k42sx482nja5760stcrcdkhm;44,277,142.96 | |
oasis1qppjm5sxqwps4dpyekdvz530sjmq3e5eusp7hdan;41,873,693.56 | |
oasis1qq7vyz4ewrdh00yujw0mgkf459et306xmvh2h3zg;41,819,204.93 | |
oasis1qztpm422n7v98f4s7ja0wt5jey7fy3xpg5ye2vtl;41,506,821.73 | |
oasis1qpsnzv8qz4fu3lwps2tc3eg5pnryzl4h7cqxruzf;38,737,455.74 | |
oasis1qrzkqzvlw9xgyxhhqps746ssyhn5lkqrmcgz8amq;38,611,030.58 | |
oasis1qpjuke27se2wnmvx6e8uc4l5h44yjp9h7g2clqfq;38,504,947.47 | |
oasis1qzmwdlxy7cltmwt99u9pwqt3g0rdwgsqyvcqymmt;37,986,489.40 | |
oasis1qpqz2ut6a6prfcjm64xnpnjhsnqny6jqfyav829v;37,957,475.64 | |
oasis1qzv7a0gkxwpfelv985fvkl24k7jh3arfwy84zw7q;37,097,909.20 | |
oasis1qrgxl0ylc7lvkj0akv6s32rj4k98nr0f7smf6m4k;36,918,078.95 | |
oasis1qqx820g2geqzeyeyfnm5hgz72eaj9emajgqmscy0;36,916,454.31 | |
oasis1qrxyndkhehffdme39urcp2v7m2t7k06xwsuyaxqq;36,114,072.22 | |
oasis1qqs5wnxvsk009swtt7ehm5fslxve96kczszwt47s;3,520,568.24 | |
oasis1qzp84num6xgspdst65yv7yqegln6ndcxmuuq8s9w;103,307.80 | |
oasis1qp3fd5rplv5uh6nc9vn85ejeaszewjv2xgvfts07;103,191.65 | |
oasis1qpaygvzwd5ffh2f5p4qdqylymgqcvl7sp5gxyrl3;55,559.82 | |
oasis1qrrd9sw5mf7z5yn8haltaqrkemd9qm7ldvzrumqs;800.00 | |
oasis1qp4ajz4vdgx3ze42ulk7m0jkxfstqcl87qymg9nx;640.00 | |
oasis1qp0j5v5mkxk3eg4kxfdsk8tj6p22g4685qk76fw6;450.00 | |
oasis1qzenkfh7n9q376033p8jdxjhv6hjz45cmy5fuanj;400.00 | |
oasis1qq9dy5xlkrp6y3ckfp8rx8edq77c88ttl5qe3p2u;400.00 | |
oasis1qps9drw07z0gmh5z2pn7zwl3z53ate2yvqf3uzq5;400.00 | |
oasis1qppctxzn8djkqfvrxugak9v7dp25vddq7sxqhkry;400.00 | |
Total : 1,738,939,697.50 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -e | |
# Define socket path | |
export SOCK_PATH=unix:/home/user/serverdir/node/internal.sock | |
# List all nodes with paratime active | |
entity_ids=`oasis-node registry node list -v -a $SOCK_PATH | grep "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA/wM=" | jq -r .entity_id` | |
output="" | |
total="0" | |
while IFS= read -r id; do | |
# Turn the pubkey to an oasis address | |
address=`oasis-node stake pubkey2address --public_key $id` | |
### Get the account stats, the 6th line contains the balance | |
staked_amount=`oasis-node stake account info --stake.account.address $address -a $SOCK_PATH | head -n6 | tail -n1 | awk '{print $3}'` | |
pretty_amount=`echo $staked_amount | numfmt --format "%'.2f"` | |
total=`echo "$total+$staked_amount" | bc` | |
output="$output\n$address;$pretty_amount" | |
done <<< "$entity_ids" | |
### Display sorted by highest | |
total=`echo $total | numfmt --format "%'.2f"` | |
echo -e "$output" | sort -k2 -n -t ';' -r | |
echo "" | |
echo "Total : $total" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment