Skip to content

Commit

Permalink
feat: count snapshot proposals (#63)
Browse files Browse the repository at this point in the history
  • Loading branch information
aahna-ashina committed Jan 13, 2024
1 parent 47473e2 commit f438900
Show file tree
Hide file tree
Showing 6 changed files with 142 additions and 141 deletions.
158 changes: 79 additions & 79 deletions nationcred/output/nationcred-176.csv
Original file line number Diff line number Diff line change
Expand Up @@ -4,82 +4,82 @@ week_end,value_creation_hours,governance_hours,operations_hours,nationcred_score
2022-06-19,11.31,0,0,11.31,19.06,false
2022-06-26,3.86,0,0,3.86,22.92,true
2022-07-03,19.62,0,0,19.62,42.55,true
2022-07-10,5.89,0,0,5.89,48.44,true
2022-07-17,13.78,0,0,13.78,62.22,true
2022-07-24,2.98,0,0,2.98,65.2,true
2022-07-31,6.7,0,0,6.7,71.9,true
2022-08-07,0.83,0,0,0.83,72.73,false
2022-08-14,1.23,0,0,1.23,73.96,false
2022-08-21,11.12,0,0,11.12,85.08,false
2022-08-28,8.89,0,0,8.89,93.97,false
2022-09-04,35.94,0,0,35.94,129.91,true
2022-09-11,6.05,0,0,6.05,135.96,true
2022-09-18,3.83,0,0,3.83,139.79,true
2022-09-25,12.66,0.17,0,12.83,152.62,true
2022-10-02,4.9,0,0,4.9,157.52,true
2022-10-09,7.11,0,0,7.11,164.63,true
2022-10-16,7.61,0,0,7.61,172.24,true
2022-10-23,10.81,0.17,0,10.98,183.22,true
2022-10-30,7.13,0,0,7.13,190.35,true
2022-11-06,5.65,0,0,5.65,196,true
2022-11-13,8.98,0,0,8.98,204.98,true
2022-11-20,5.08,0,0,5.08,210.06,true
2022-11-27,7.62,0,0,7.62,217.68,true
2022-12-04,1.81,0,0,1.81,219.49,true
2022-12-11,4.57,0,0,4.57,224.06,true
2022-12-18,11.49,0,0,11.49,235.55,true
2022-12-25,1.58,0,0,1.58,237.13,true
2023-01-01,4.29,0,0,4.29,241.42,true
2023-01-08,21.98,0.17,0,22.15,263.57,true
2023-01-15,8.07,0,0,8.07,271.64,true
2023-01-22,3.72,0,0,3.72,275.36,true
2023-01-29,1.72,0,0,1.72,277.09,true
2023-02-05,1.04,0,0,1.04,278.13,true
2023-02-12,0.11,0,0,0.11,278.23,false
2023-02-19,0.01,0,0,0.01,278.25,false
2023-02-26,0.04,0,0,0.04,278.29,false
2023-03-05,0.42,0,0,0.42,278.71,false
2023-03-12,0.49,0,0,0.49,279.2,false
2023-03-19,0.85,0,0,0.85,280.05,false
2023-03-26,0.12,0,0,0.12,280.17,false
2023-04-02,0.31,0,0,0.31,280.47,false
2023-04-09,2.96,0,0,2.96,283.43,false
2023-04-16,0.3,0,0,0.3,283.73,false
2023-04-23,0.03,0,0,0.03,283.76,false
2023-04-30,0,0,0,0,283.76,false
2023-05-07,0,0,0,0,283.76,false
2023-05-14,0,0,0,0,283.76,false
2023-05-21,0,0,0,0,283.76,false
2023-05-28,0,0,0,0,283.76,false
2023-06-04,0,0,0,0,283.76,false
2023-06-11,0,0,0,0,283.76,false
2023-06-18,0,0,0,0,283.76,false
2023-06-25,0,0,0,0,283.76,false
2023-07-02,0,0,0,0,283.76,false
2023-07-09,0,0,0,0,283.76,false
2023-07-16,0,0,0,0,283.76,false
2023-07-23,0,0,0,0,283.76,false
2023-07-30,0,0,0,0,283.76,false
2023-08-06,0,0,0,0,283.76,false
2023-08-13,0,0,0,0,283.76,false
2023-08-20,0,0,0,0,283.76,false
2023-08-27,0,0,0,0,283.76,false
2023-09-03,0,0,0,0,283.76,false
2023-09-10,0,0,0,0,283.76,false
2023-09-17,0,0,0,0,283.76,false
2023-09-24,0,0,0,0,283.76,false
2023-10-01,0,0,0,0,283.76,false
2023-10-08,0,0,0,0,283.76,false
2023-10-15,0,0,0,0,283.76,false
2023-10-22,0,0,0,0,283.76,false
2023-10-29,0,0,0,0,283.76,false
2023-11-05,0,0,0,0,283.76,false
2023-11-12,0,0,0,0,283.76,false
2023-11-19,0,0,0,0,283.76,false
2023-11-26,0,0,0,0,283.76,false
2023-12-03,0,0,0,0,283.76,false
2023-12-10,0,0,0,0,283.76,false
2023-12-17,0,0,0,0,283.76,false
2023-12-24,0,0,0,0,283.76,false
2023-12-31,0,0,0,0,283.76,false
2024-01-07,0,0,0,0,283.76,false
2022-07-10,5.89,1.34,0,7.23,49.78,true
2022-07-17,13.78,0,0,13.78,63.56,true
2022-07-24,2.98,0,0,2.98,66.54,true
2022-07-31,6.7,0,0,6.7,73.24,true
2022-08-07,0.83,0,0,0.83,74.07,false
2022-08-14,1.23,0,0,1.23,75.3,false
2022-08-21,11.12,0,0,11.12,86.42,false
2022-08-28,8.89,0,0,8.89,95.31,false
2022-09-04,35.94,0,0,35.94,131.25,true
2022-09-11,6.05,0,0,6.05,137.3,true
2022-09-18,3.83,0,0,3.83,141.13,true
2022-09-25,12.66,0.84,0,13.5,154.63,true
2022-10-02,4.9,0,0,4.9,159.53,true
2022-10-09,7.11,0,0,7.11,166.64,true
2022-10-16,7.61,0,0,7.61,174.25,true
2022-10-23,10.81,0.17,0,10.98,185.23,true
2022-10-30,7.13,0,0,7.13,192.36,true
2022-11-06,5.65,0,0,5.65,198.01,true
2022-11-13,8.98,0.67,0,9.65,207.66,true
2022-11-20,5.08,0,0,5.08,212.74,true
2022-11-27,7.62,1.34,0,8.96,221.7,true
2022-12-04,1.81,0,0,1.81,223.51,true
2022-12-11,4.57,0,0,4.57,228.08,true
2022-12-18,11.49,0.67,0,12.16,240.24,true
2022-12-25,1.58,0,0,1.58,241.82,true
2023-01-01,4.29,0,0,4.29,246.11,true
2023-01-08,21.98,0.84,0,22.82,268.93,true
2023-01-15,8.07,0,0,8.07,277,true
2023-01-22,3.72,0,0,3.72,280.72,true
2023-01-29,1.72,0,0,1.72,282.45,true
2023-02-05,1.04,0,0,1.04,283.49,true
2023-02-12,0.11,0,0,0.11,283.59,false
2023-02-19,0.01,0,0,0.01,283.61,false
2023-02-26,0.04,0,0,0.04,283.65,false
2023-03-05,0.42,0,0,0.42,284.07,false
2023-03-12,0.49,0,0,0.49,284.56,false
2023-03-19,0.85,0,0,0.85,285.41,false
2023-03-26,0.12,0,0,0.12,285.53,false
2023-04-02,0.31,0,0,0.31,285.83,false
2023-04-09,2.96,0,0,2.96,288.79,false
2023-04-16,0.3,0,0,0.3,289.09,false
2023-04-23,0.03,0,0,0.03,289.12,false
2023-04-30,0,0,0,0,289.12,false
2023-05-07,0,0,0,0,289.12,false
2023-05-14,0,0,0,0,289.12,false
2023-05-21,0,0,0,0,289.12,false
2023-05-28,0,0,0,0,289.12,false
2023-06-04,0,0,0,0,289.12,false
2023-06-11,0,0,0,0,289.12,false
2023-06-18,0,0,0,0,289.12,false
2023-06-25,0,0,0,0,289.12,false
2023-07-02,0,0,0,0,289.12,false
2023-07-09,0,0,0,0,289.12,false
2023-07-16,0,0,0,0,289.12,false
2023-07-23,0,0,0,0,289.12,false
2023-07-30,0,0,0,0,289.12,false
2023-08-06,0,0,0,0,289.12,false
2023-08-13,0,0,0,0,289.12,false
2023-08-20,0,0,0,0,289.12,false
2023-08-27,0,0,0,0,289.12,false
2023-09-03,0,0,0,0,289.12,false
2023-09-10,0,0,0,0,289.12,false
2023-09-17,0,0,0,0,289.12,false
2023-09-24,0,0,0,0,289.12,false
2023-10-01,0,0,0,0,289.12,false
2023-10-08,0,0,0,0,289.12,false
2023-10-15,0,0,0,0,289.12,false
2023-10-22,0,0,0,0,289.12,false
2023-10-29,0,0,0,0,289.12,false
2023-11-05,0,0,0,0,289.12,false
2023-11-12,0,0,0,0,289.12,false
2023-11-19,0,0,0,0,289.12,false
2023-11-26,0,0,0,0,289.12,false
2023-12-03,0,0,0,0,289.12,false
2023-12-10,0,0,0,0,289.12,false
2023-12-17,0,0,0,0,289.12,false
2023-12-24,0,0,0,0,289.12,false
2023-12-31,0,0,0,0,289.12,false
2024-01-07,0,0,0,0,289.12,false
48 changes: 24 additions & 24 deletions nationcred/output/nationcred-233.csv
Original file line number Diff line number Diff line change
Expand Up @@ -59,27 +59,27 @@ week_end,value_creation_hours,governance_hours,operations_hours,nationcred_score
2023-07-09,6.38,0,0,6.38,1100.9,false
2023-07-16,17.64,0.17,0,17.81,1118.71,true
2023-07-23,39.01,0,0,39.01,1157.73,true
2023-07-30,23.57,0.34,0,23.91,1181.63,true
2023-08-06,18.64,0,0,18.64,1200.28,true
2023-08-13,25.17,0.34,0,25.51,1225.78,true
2023-08-20,7.56,0,0,7.56,1233.34,true
2023-08-27,12.94,0,0,12.94,1246.28,true
2023-09-03,22.25,0.17,0,22.42,1268.7,true
2023-09-10,25.23,0,0,25.23,1293.93,true
2023-09-17,48.58,0.34,0,48.92,1342.85,true
2023-09-24,52.48,0.17,0,52.65,1395.5,true
2023-10-01,47.12,0,0,47.12,1442.62,true
2023-10-08,54.21,0,0,54.21,1496.83,true
2023-10-15,34.6,0,0,34.6,1531.43,true
2023-10-22,16.53,0,0,16.53,1547.96,true
2023-10-29,11.88,0,68.59,80.47,1628.43,true
2023-11-05,3.03,0,0.5,3.53,1631.96,true
2023-11-12,3.73,0,0.5,4.23,1636.19,true
2023-11-19,2.95,0,2,4.95,1641.14,true
2023-11-26,10.71,0.17,5.5,16.38,1657.52,true
2023-12-03,18.4,0.34,16.5,35.24,1692.75,true
2023-12-10,38.08,0.34,12.5,50.92,1743.67,true
2023-12-17,24.67,0,10.23,34.9,1778.58,true
2023-12-24,23.04,0,2.82,25.86,1804.43,true
2023-12-31,9,0,1.82,10.82,1815.26,true
2024-01-07,24.11,0,5.97,30.08,1845.34,true
2023-07-30,23.57,1.68,0,25.25,1182.97,true
2023-08-06,18.64,0,0,18.64,1201.62,true
2023-08-13,25.17,1.68,0,26.85,1228.46,true
2023-08-20,7.56,0,0,7.56,1236.02,true
2023-08-27,12.94,0,0,12.94,1248.96,true
2023-09-03,22.25,0.84,0,23.09,1272.05,true
2023-09-10,25.23,0,0,25.23,1297.28,true
2023-09-17,48.58,1.01,0,49.59,1346.87,true
2023-09-24,52.48,0.17,0,52.65,1399.52,true
2023-10-01,47.12,0,0,47.12,1446.64,true
2023-10-08,54.21,0,0,54.21,1500.85,true
2023-10-15,34.6,0,0,34.6,1535.45,true
2023-10-22,16.53,0,0,16.53,1551.98,true
2023-10-29,11.88,0,68.59,80.47,1632.45,true
2023-11-05,3.03,0,0.5,3.53,1635.98,true
2023-11-12,3.73,0,0.5,4.23,1640.21,true
2023-11-19,2.95,0,2,4.95,1645.16,true
2023-11-26,10.71,0.84,5.5,17.05,1662.21,true
2023-12-03,18.4,1.68,16.5,36.58,1698.78,true
2023-12-10,38.08,1.68,12.5,52.26,1751.04,true
2023-12-17,24.67,0,10.23,34.9,1785.95,true
2023-12-24,23.04,0,2.82,25.86,1811.8,true
2023-12-31,9,0,1.82,10.82,1822.63,true
2024-01-07,24.11,0,5.97,30.08,1852.71,true
34 changes: 17 additions & 17 deletions nationcred/output/nationcred-272.csv
Original file line number Diff line number Diff line change
Expand Up @@ -66,20 +66,20 @@ week_end,value_creation_hours,governance_hours,operations_hours,nationcred_score
2023-08-27,8.33,0,0,8.33,42.23,true
2023-09-03,5.89,0,0,5.89,48.13,true
2023-09-10,20.36,0,0,20.36,68.48,true
2023-09-17,35.03,0.34,0,35.37,103.85,true
2023-09-24,18.02,0.17,0,18.19,122.04,true
2023-10-01,40.64,0,0,40.64,162.67,true
2023-10-08,26.49,0,0,26.49,189.16,true
2023-10-15,6.23,0,0,6.23,195.4,true
2023-10-22,12.83,0,0,12.83,208.23,true
2023-10-29,11.03,0,6.6,17.63,225.86,true
2023-11-05,1.78,0,0,1.78,227.63,true
2023-11-12,2.39,0,0,2.39,230.02,true
2023-11-19,6.29,0,0.33,6.62,236.64,true
2023-11-26,11.04,0,1.65,12.69,249.33,true
2023-12-03,18.55,0.17,2.31,21.03,270.36,true
2023-12-10,20.49,0.17,1.32,21.98,292.34,true
2023-12-17,8.2,0.34,6,14.54,306.88,true
2023-12-24,4.84,0,0,4.84,311.72,true
2023-12-31,9.73,0,0,9.73,321.46,true
2024-01-07,10.45,0,0.33,10.78,332.24,true
2023-09-17,35.03,1.01,0,36.04,104.52,true
2023-09-24,18.02,0.17,0,18.19,122.71,true
2023-10-01,40.64,0,0,40.64,163.34,true
2023-10-08,26.49,0,0,26.49,189.83,true
2023-10-15,6.23,0,0,6.23,196.07,true
2023-10-22,12.83,0,0,12.83,208.9,true
2023-10-29,11.03,0,6.6,17.63,226.53,true
2023-11-05,1.78,0,0,1.78,228.3,true
2023-11-12,2.39,0,0,2.39,230.69,true
2023-11-19,6.29,0,0.33,6.62,237.31,true
2023-11-26,11.04,0,1.65,12.69,250,true
2023-12-03,18.55,0.17,2.31,21.03,271.03,true
2023-12-10,20.49,0.17,1.32,21.98,293.01,true
2023-12-17,8.2,0.34,6,14.54,307.55,true
2023-12-24,4.84,0,0,4.84,312.39,true
2023-12-31,9.73,0,0,9.73,322.13,true
2024-01-07,10.45,0,0.33,10.78,332.91,true
32 changes: 16 additions & 16 deletions nationcred/output/nationcred-280.csv
Original file line number Diff line number Diff line change
Expand Up @@ -67,19 +67,19 @@ week_end,value_creation_hours,governance_hours,operations_hours,nationcred_score
2023-09-03,0.97,0,0,0.97,3.48,false
2023-09-10,4.99,0,0,4.99,8.48,false
2023-09-17,28.84,0.34,0,29.18,37.66,false
2023-09-24,30.12,0.17,0,30.29,67.95,false
2023-10-01,28.37,0,0,28.37,96.32,true
2023-10-08,17.56,0,0,17.56,113.89,true
2023-10-15,10.69,0,0,10.69,124.58,true
2023-10-22,5.28,0,0,5.28,129.86,true
2023-10-29,5.68,0,6.64,12.32,142.18,true
2023-11-05,3.79,0,0.33,4.12,146.3,true
2023-11-12,3.26,0,0,3.26,149.56,true
2023-11-19,0.88,0,0,0.88,150.44,false
2023-11-26,3.36,0,0,3.36,153.8,false
2023-12-03,3.05,0.34,0,3.39,157.19,false
2023-12-10,5.82,0.51,0,6.33,163.52,false
2023-12-17,3.14,0,0,3.14,166.67,true
2023-12-24,2.01,0,0,2.01,168.68,true
2023-12-31,2.55,0,0,2.55,171.22,true
2024-01-07,4.52,0,0,4.52,175.74,true
2023-09-24,30.12,0.84,0,30.96,68.62,false
2023-10-01,28.37,0,0,28.37,96.99,true
2023-10-08,17.56,0,0,17.56,114.56,true
2023-10-15,10.69,0,0,10.69,125.25,true
2023-10-22,5.28,0,0,5.28,130.53,true
2023-10-29,5.68,0,6.64,12.32,142.85,true
2023-11-05,3.79,0,0.33,4.12,146.97,true
2023-11-12,3.26,0,0,3.26,150.23,true
2023-11-19,0.88,0,0,0.88,151.11,false
2023-11-26,3.36,0,0,3.36,154.47,false
2023-12-03,3.05,0.34,0,3.39,157.86,false
2023-12-10,5.82,0.51,0,6.33,164.19,false
2023-12-17,3.14,0,0,3.14,167.34,true
2023-12-24,2.01,0,0,2.01,169.35,true
2023-12-31,2.55,0,0,2.55,171.89,true
2024-01-07,4.52,0,0,4.52,176.41,true
8 changes: 4 additions & 4 deletions nationcred/output/nationcred-scores.csv
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ passport_id,nationcred_score,nationcred_score_accumulated
173,0,0.00
174,0,0.00
175,0,0.00
176,0,283.75
176,0,289.11
177,0,0.00
178,0,0.51
179,0,0.00
Expand Down Expand Up @@ -232,7 +232,7 @@ passport_id,nationcred_score,nationcred_score_accumulated
230,0,0.00
231,0,0.00
232,0,2.38
233,30.08,1845.32
233,30.08,1852.69
234,0,0.85
235,0,0.00
236,0,0.00
Expand Down Expand Up @@ -271,15 +271,15 @@ passport_id,nationcred_score,nationcred_score_accumulated
269,0,0.00
270,0,0.00
271,0,0.00
272,10.78,332.24
272,10.78,332.91
273,0,0.17
274,0,0.00
275,0,0.00
276,0,0.00
277,0,0.17
278,0,0.17
279,0,0.00
280,4.52,175.73
280,4.52,176.40
281,0,0.17
282,0,0.84
283,3.66,42.13
Expand Down
3 changes: 2 additions & 1 deletion nationcred/src/generate-datasets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,8 @@ async function loadNationCredData() {
const weekEnd = dataRow.week_end
if (weekEnd == weekEndDate.toISOString().substring(0, 10)) {
const votesCount: number = dataRow.votes_count
snapshotScore = votesCount * 0.17 // Assume ~10 minutes dedicated per vote - https://forum.nation3.org/t/poll-how-much-time-do-you-spend-on-each-snapshot-vote/818
const proposalsCount: number = dataRow.proposals_count
snapshotScore = (votesCount * 0.17) + (proposalsCount * 0.67) // Assume ~10 minutes dedicated per vote and ~40 minutes per proposal - https://forum.nation3.org/t/poll-how-much-time-do-you-spend-on-each-snapshot-vote/818
}
})
console.info('snapshotScore:', snapshotScore)
Expand Down

0 comments on commit f438900

Please sign in to comment.