Joystream / community-repo

A repo for community contribution and documentation
GNU General Public License v3.0
19 stars 73 forks source link

FM Program: Collect, list and document all grading scripts in one common area. #783

Closed mochet closed 1 year ago

mochet commented 2 years ago
traumschule commented 2 years ago

commands list: https://github.com/Joystream/community-repo/issues/781#issuecomment-1165960221 sources: https://github.com/bwhm/joystream/tree/incentives-tools/cli/src/commands/incentives instructions: https://www.notion.so/joystream/Tools-and-Resources-8969641b5b284d1c85c658106a79792d (edited)

Place this script in a folder where to collect results:

#!/bin/bash                                                                                                                                                                                                                                                                                                                    
set -ev
cd $(dirname $0)

cli=~/joystream/cli/bin/run
start=1152000
end=1252800
length=100800
dVersion=0.1.2
sVersion=2.0.0
dReplication=3
sReplicationMin=5
sReplicationMax=10
censoredChannels=2517,2509,2504,2503,2446,2378
censoredVideos=26795,26794,26793,26779,26774,26773,26754,26748,26745,26743,26742,26741,26659,26649,26648,26647,26646,26645,26644,26643,26642,26641,26640,26639,26638,26637,26636,26635,26561,26560,26559,26558,26557,26556,26555,26554,26553,26552,26551,26550,26549,26548,26547,26546,26545,26544,26543,26542,26541,26540,265\
39,26538,26537,26536,26535,26534,26533,26532,26531,26530,26529,26521,26520,26519,26518,26517,26508,26507,26506,26505,26504,26503,26502,26501,26500,26499,26498,26497,26496,26495,26494,26493,26491,26485,26484,26483,26482,26481,26480,26479,26478,26477,26476,26475,26474,26473,26472,26471,26470,26469,26468,26467,26466,264\
65,26464,26463,26462,26461,26460,26459,26457,26456,26455,26454,26453,26451,26450,26449,26448,26447,26446,26445,26444,26443,26442,26441,26440,26439,26438,26437,26436,26435,26434,26433,26432,26431,26430,26429,26428,26427,26426,26425,26424,26423,26422,26421,26420,26418,26417,26416,26415,26414,26413,26412,26411,26410,264\
09,26408,26407,26406,26405,26404,26375,26365,26364,26363,26362,26361,26360,26359,26358,26357,26356,26355,26354,26353,26352,26351,26350,26349,26348,26347,26346,26345,26344,26343,26342,26341,26340,26339,26338,26337,26336,26335,26334,26333,26332,26331,26330,26329,26328,26327,26326,26199,26197

//$cli incentives:getWorkersStats --termStart $start --termEnd $end --termLength $length | tee workers.txt
$cli incentives:distributionStats $start $end --minReplication $dReplication --bagsRangeStart 2000 --bagsRangeEnd 2300 -l $dVersion | tee distribution.txt

$cli incentives:councilSpending $start $end |tee spending.txt

$cli incentives:validatorRewards $start $end | tee validators.txt

$cli incentives:storageMaintenance $start $end -s $((start + 600)),$((end - 600)) -m $sReplicationMin -e $sReplicationMax -l $sVersion -i=2333,2334,2335,2336,2337,2338,2339 | tee storage.txt

$cli incentives:storageUploads $start $end | tee uploads.txt

$cli incentives:getOpenings --startBlock $start --endBlock $end | tee openings.txt

$cli incentives:getOpportunitiesScore -c storageProviders,curators,forum,builders,humanResources,distributors,marketing -e $start -l $length -s 43200 -t 20,20,20,20,20,20,20 | tee opportunitiesScore.txt

$cli incentives:getBountyInfo $start $end | tee bounties.txt

$cli incentives:getForumStats $start $end | tee forum.txt

$cli incentives:getContentStats --startBlock $start --endBlock $end --channelsCensored $censoredChannels --videosCensored $censoredVideos | tee content.txt

Results

Round 12

https://joystreamstats.live/static/grading12/spending.txt https://joystreamstats.live/static/grading12/opportunitiesScore.txt https://joystreamstats.live/static/grading12/bounties.txt https://joystreamstats.live/static/grading12/content.txt https://joystreamstats.live/static/grading12/distribution.txt https://joystreamstats.live/static/grading12/openings.txt https://joystreamstats.live/static/grading12/storage.txt https://joystreamstats.live/static/grading12/uploads.txt worker rewards: https://joystreamstats.live/grading