Skip to content

Commit

Permalink
add staking balance histories
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelkernaghan committed Sep 8, 2023
1 parent 5da0827 commit b35ff3c
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 0 deletions.
8 changes: 8 additions & 0 deletions baker_staked_balances.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
Cycle, Level, Address, Staked Balance
22, 182987, tz1hyVeFrkoDG1eFTaQZoYKC93hGUdRVes4D, 27745.628258 ꜩ
22, 185318, tz1hyVeFrkoDG1eFTaQZoYKC93hGUdRVes4D, 27842.106701 ꜩ
22, 186450, tz1hyVeFrkoDG1eFTaQZoYKC93hGUdRVes4D, 27874.266182 ꜩ
22, 186474, tz1hyVeFrkoDG1eFTaQZoYKC93hGUdRVes4D, 27874.266182 ꜩ
22, 188211, tz1hyVeFrkoDG1eFTaQZoYKC93hGUdRVes4D, 27906.425663 ꜩ
23, 188419, tz1hyVeFrkoDG1eFTaQZoYKC93hGUdRVes4D, 28213.433887 ꜩ
23, 188675, tz1hyVeFrkoDG1eFTaQZoYKC93hGUdRVes4D, 28213.433887 ꜩ
9 changes: 9 additions & 0 deletions staker_staked_balances.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
Cycle, Level, Address, Staked Balance
21,,tz1XDL5EuVrKXxa6bawcA7oRfLBgvH2uWtWi, 31154.286533 ꜩ
22, 182987, tz1XDL5EuVrKXxa6bawcA7oRfLBgvH2uWtWi, 31905.889907 ꜩ
22, 185318, tz1XDL5EuVrKXxa6bawcA7oRfLBgvH2uWtWi, 32016.834618 ꜩ
22, 186450, tz1XDL5EuVrKXxa6bawcA7oRfLBgvH2uWtWi, 32053.816189 ꜩ
22, 186474, tz1XDL5EuVrKXxa6bawcA7oRfLBgvH2uWtWi, 32053.816189 ꜩ
22, 188211, tz1XDL5EuVrKXxa6bawcA7oRfLBgvH2uWtWi, 32090.797759 ꜩ
23, 188419, tz1XDL5EuVrKXxa6bawcA7oRfLBgvH2uWtWi, 32443.839705 ꜩ
23, 188675, tz1XDL5EuVrKXxa6bawcA7oRfLBgvH2uWtWi, 32443.839705 ꜩ
3 changes: 3 additions & 0 deletions staking-balance-histories.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,11 @@ echo "$cycle, $level, $baker_address, $baker_staked_balance" >>$baker_output_fil

echo -e "\n${COLORS[PURPLE]}Staker Staking Balance History${COLORS[NC]}"
staker_stake_balance_history=$(cat /home/mike/tezos/staker_staked_balances.csv)
cp /home/mike/tezos/staker_staked_balances.csv $HOME/Octez-Client-Bash-Scripts

echo -e "${staker_stake_balance_history}"

echo -e "\n${COLORS[PURPLE]}Baker Staking Balance History${COLORS[NC]}"
baker_stake_balance_history=$(cat /home/mike/tezos/baker_staked_balances.csv)
cp /home/mike/tezos/baker_staked_balances.csv $HOME/Octez-Client-Bash-Scripts
echo -e "${baker_stake_balance_history}"
7 changes: 7 additions & 0 deletions staking-balance-history-collector.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/bash
while true
do
./staking-balance-histories.sh
sleep 65520 # Then wait 18.2 hours (18.2 hours = 65520 seconds.
# A cycle is approximately 8*8192=65536 seconds.
done

0 comments on commit b35ff3c

Please sign in to comment.