xenowits / nakomoto-coefficient-calculator

Nakamoto Coefficient for different blockchains to understand levels of decentralization
https://nakaflow.io
MIT License
36 stars 31 forks source link

Update mina.go #60

Open shawntabrizi opened 5 days ago

shawntabrizi commented 5 days ago

Taking the code from: https://github.com/xenowits/nakomoto-coefficient-calculator/issues/59

Closes: https://github.com/xenowits/nakomoto-coefficient-calculator/issues/38 Closes: https://github.com/xenowits/nakomoto-coefficient-calculator/issues/59

Tested working by running go run main.go

2024/10/02 09:16:21 Calculating Nakamoto coefficient for Algo
Total voting power: 1264449527262260
The Nakamoto coefficient for Algorand is 10
2024/10/02 09:16:22 Successfully calculated Nakamoto coefficient for Algo: 10
2024/10/02 09:16:22 Calculating Nakamoto coefficient for Aptos
Total voting power: 86647076990866825
The Nakomoto coefficient for Aptos is 23
2024/10/02 09:16:25 Successfully calculated Nakamoto coefficient for Aptos: 23
2024/10/02 09:16:25 Calculating Nakamoto coefficient for Cosmos
2024/10/02 09:16:25 Fetching data for cosmos
2024/10/02 09:16:27 Voting powers for cosmos: 180 validators with a total voting power of 251261859069432
2024/10/02 09:16:27 The Nakamoto coefficient for cosmos is 7
2024/10/02 09:16:27 Successfully calculated Nakamoto coefficient for Cosmos: 7
2024/10/02 09:16:27 Calculating Nakamoto coefficient for Avalanche
Total voting power: 210452957171923092
The Nakamoto coefficient for Avalanche is 25
2024/10/02 09:16:28 Successfully calculated Nakamoto coefficient for Avalanche: 25
2024/10/02 09:16:28 Calculating Nakamoto coefficient for Agoric
2024/10/02 09:16:28 Fetching data for agoric
2024/10/02 09:16:30 Voting powers for agoric: 97 validators with a total voting power of 601351699150664
2024/10/02 09:16:30 The Nakamoto coefficient for agoric is 6
2024/10/02 09:16:30 Successfully calculated Nakamoto coefficient for Agoric: 6
2024/10/02 09:16:30 Calculating Nakamoto coefficient for BNB Smart Chain
The Nakamoto coefficient for BNB Smart Chain is 7
2024/10/02 09:16:31 Successfully calculated Nakamoto coefficient for BNB Smart Chain: 7
2024/10/02 09:16:31 Calculating Nakamoto coefficient for Polkadot
Total voting power: 8832896609170143564
The Nakamoto coefficient for Polkadot is 123
2024/10/02 09:16:33 Successfully calculated Nakamoto coefficient for Polkadot: 123
2024/10/02 09:16:33 Calculating Nakamoto coefficient for MultiversX
Total voting power: 3201
The Nakamoto coefficient for MultiversX is 8
2024/10/02 09:16:34 Successfully calculated Nakamoto coefficient for MultiversX: 8
2024/10/02 09:16:34 Calculating Nakamoto coefficient for Graph Protocol
Total voting power: 606587150229994033545772962
The Nakamoto coefficient for graph protocol is 3
2024/10/02 09:16:35 Successfully calculated Nakamoto coefficient for Graph Protocol: 3
2024/10/02 09:16:35 Calculating Nakamoto coefficient for Hedera
Total voting power for Hedera is: 2.0967741928e+10
The Nakamoto coefficient for Hedera is 7
2024/10/02 09:16:36 Successfully calculated Nakamoto coefficient for Hedera: 7
2024/10/02 09:16:36 Calculating Nakamoto coefficient for Juno
2024/10/02 09:16:36 Fetching data for juno
2024/10/02 09:16:38 Voting powers for juno: 100 validators with a total voting power of 50628485467111
2024/10/02 09:16:38 The Nakamoto coefficient for juno is 8
2024/10/02 09:16:38 Successfully calculated Nakamoto coefficient for Juno: 8
2024/10/02 09:16:38 Calculating Nakamoto coefficient for Polygon
Total voting power: 3493490378
The Nakamoto coefficient for 0xPolygon is 4
2024/10/02 09:16:41 Successfully calculated Nakamoto coefficient for Polygon: 4
2024/10/02 09:16:41 Calculating Nakamoto coefficient for Mina Protocol
The Nakamoto coefficient for Mina is 11
2024/10/02 09:16:46 Successfully calculated Nakamoto coefficient for Mina Protocol: 11
2024/10/02 09:16:46 Calculating Nakamoto coefficient for Near Protocol
Total voting power: 622511001023691052687778204513616
The Nakamoto coefficient for near protocol is 11
2024/10/02 09:16:47 Successfully calculated Nakamoto coefficient for Near Protocol: 11
2024/10/02 09:16:47 Calculating Nakamoto coefficient for Osmosis
2024/10/02 09:16:47 Fetching data for osmosis
2024/10/02 09:16:48 Voting powers for osmosis: 150 validators with a total voting power of 387112086261920
2024/10/02 09:16:48 The Nakamoto coefficient for osmosis is 8
2024/10/02 09:16:48 Successfully calculated Nakamoto coefficient for Osmosis: 8
2024/10/02 09:16:48 Calculating Nakamoto coefficient for Pulsechain
Total voting power: 622760463248
The Nakamoto coefficient for Pulsechain is 5
2024/10/02 09:16:49 Successfully calculated Nakamoto coefficient for Pulsechain: 5
2024/10/02 09:16:49 Calculating Nakamoto coefficient for Regen Network
2024/10/02 09:16:49 Fetching data for regen
2024/10/02 09:16:50 Voting powers for regen: 21 validators with a total voting power of 137633840818883
2024/10/02 09:16:50 The Nakamoto coefficient for regen is 5
2024/10/02 09:16:50 Successfully calculated Nakamoto coefficient for Regen Network: 5
2024/10/02 09:16:50 Calculating Nakamoto coefficient for Thorchain
Total voting power: 9804873707047115
The Nakamoto coefficient for thorchain is 31
2024/10/02 09:16:51 Successfully calculated Nakamoto coefficient for Thorchain: 31
2024/10/02 09:16:51 Calculating Nakamoto coefficient for Sei
2024/10/02 09:16:51 Attempting to calculate Sei Nakamoto coefficient...
2024/10/02 09:16:51 Fetching data for sei
2024/10/02 09:16:52 Voting powers for sei: 39 validators with a total voting power of 5423684392022587
2024/10/02 09:16:52 The Nakamoto coefficient for sei is 8
2024/10/02 09:16:52 Successfully calculated Nakamoto coefficient for Sei: 8
2024/10/02 09:16:52 Calculating Nakamoto coefficient for Solana
2024/10/02 09:16:52 Error in chain Solana: json: cannot unmarshal object into Go value of type chains.SolanaResponse
2024/10/02 09:16:52 Failed to update chain info: SOL json: cannot unmarshal object into Go value of type chains.SolanaResponse
2024/10/02 09:16:52 Calculating Nakamoto coefficient for Stargaze
2024/10/02 09:16:52 Attempting to calculate Stargaze Nakamoto coefficient...
2024/10/02 09:16:52 Fetching data for stargaze
2024/10/02 09:16:53 Voting powers for stargaze: 129 validators with a total voting power of 1056493403698422
2024/10/02 09:16:53 The Nakamoto coefficient for stargaze is 11
2024/10/02 09:16:53 Successfully calculated Nakamoto coefficient for Stargaze: 11
2024/10/02 09:16:53 Calculating Nakamoto coefficient for Sui Protocol
Total voting power for sui: 10000
The Nakamoto coefficient for sui is 16
2024/10/02 09:16:54 Successfully calculated Nakamoto coefficient for Sui Protocol: 16
2024/10/02 09:16:54 Calculating Nakamoto coefficient for Celestia
The Nakamoto coefficient for celestia is 8
2024/10/02 09:16:55 Successfully calculated Nakamoto coefficient for Celestia: 8