CELO_GENESIS_VALIDATOR_SIGNER_ADDRESS=e5617da4dfa6ce4912f1d39889fe2dec2f7e66b3 CELO_GENESIS_VALIDATOR_SIGNER_BLS_PUBLIC_KEY=451da71ff5b1e9b4fd587fd76f53808191096cc5869596eda8f3ad697426a98a659f5f4818e57866d4b0dd90f0684900742a167b314f0276e5e6a8bc6f40ce1cd1d35c7f9be56f1240de596b30a4b40010dfd21b7fc9aef400faaa421e27a080 CELO_GENESIS_VALIDATOR_SIGNER_BLS_SIGNATURE=c4f53cededae924fbaaa44019f122e75d9b1f8d98a177da7d52109aafa25cb33c272d839cc6fbffe4afdb5a5bca35981 CELO_RELEASE_GOLD_BENEFICIARY_ADDRESS_1=73dfb47feb4fa1536eb7d54386add730b8fe0235 CELO_RELEASE_GOLD_BENEFICIARY_ADDRESS_2=f588c86d6555cb264733b97001d28e07279912e2 CELO_RELEASE_GOLD_BENEFICIARY_ADDRESS_3=5d4aeaf81a25a590fac7215851a5541e6239faf7
This file contains 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
const fetch = require('node-fetch') | |
const calc = (pv, pvSR, column, total) => { | |
const Romania = pv ? pv.map(p => p[column]).reduce((a,b)=>a+b, 0) : 0; | |
const Diaspora = pvSR ? pvSR.map(p => p[column]).reduce((a,b)=>a+b, 0) : 0; | |
return { | |
Romania: total ? percent(Romania, total.Romania) : Romania, | |
Diaspora: total ? percent(Diaspora, total.Diaspora) : Diaspora, | |
Total: total ? percent(Romania + Diaspora, total.Total) : Romania + Diaspora |
This file contains 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
### Keybase proof | |
I hereby claim: | |
* I am krisboit on github. | |
* I am krisboit (https://keybase.io/krisboit) on keybase. | |
* I have a public key whose fingerprint is B8F0 E73C 9932 5381 0091 C072 8BAD 13CE 0D4C D048 | |
To claim this, I am signing this object: |