Skip to content

Commit beef674

Browse files
committed
chore: temporarily disable fetchRevocations
#132
1 parent a0ec2ad commit beef674

File tree

2 files changed

+48
-41
lines changed

2 files changed

+48
-41
lines changed

data-sources/citizens/generate-4-citizen-count-csv.ts

+5-4
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ const fs = require('fs')
55
const Papa = require('papaparse')
66

77
const ethersProvider = new ethers.JsonRpcProvider(
8-
'https://ethereum.publicnode.com'
8+
'https://lb.nodies.app/v1/5e9daed367d1454fab7c75f0ec8aceff'
99
)
1010
console.debug('ethersProvider:', ethersProvider)
1111

@@ -23,8 +23,8 @@ loadPassportMintsByWeek()
2323
async function loadPassportMintsByWeek() {
2424
console.info('loadPassportMintsByWeek')
2525

26-
const revocations = await fetchRevocations()
27-
console.debug('revocations:', revocations)
26+
// const revocations = await fetchRevocations()
27+
// console.debug('revocations:', revocations)
2828

2929
const writer = csvWriter.createObjectCsvWriter({
3030
path: 'output/citizen-count-per-week.csv',
@@ -65,7 +65,8 @@ async function loadPassportMintsByWeek() {
6565
const totalExpiredPassports: number = getTotalExpiredPassports(weekEndDate, id)
6666
console.debug('totalExpiredPassports:', totalExpiredPassports)
6767

68-
const totalRevokedPassports: number = getTotalRevokedPassports(weekEndDate, id, revocations)
68+
// const totalRevokedPassports: number = getTotalRevokedPassports(weekEndDate, id, revocations)
69+
const totalRevokedPassports: number = getTotalRevokedPassports(weekEndDate, id, new Array(nextId).fill(0))
6970
console.debug('totalRevokedPassports:', totalRevokedPassports)
7071

7172
// Export to CSV

data-sources/citizens/output/citizen-count-per-week.csv

+43-37
Original file line numberDiff line numberDiff line change
@@ -69,40 +69,46 @@ week_end,total_citizens,new_citizens,total_expired_passports,total_revoked_passp
6969
2023-09-17,282,1,76,0
7070
2023-09-24,283,1,77,0
7171
2023-10-01,283,0,78,0
72-
2023-10-08,284,1,78,1
73-
2023-10-15,284,0,79,1
74-
2023-10-22,284,0,80,1
75-
2023-10-29,284,0,82,1
76-
2023-11-05,285,1,85,1
77-
2023-11-12,285,0,87,1
78-
2023-11-19,285,0,95,1
79-
2023-11-26,285,0,116,1
80-
2023-12-03,285,0,125,1
81-
2023-12-10,285,0,130,2
82-
2023-12-17,285,0,134,2
83-
2023-12-24,285,0,138,3
84-
2023-12-31,286,1,141,3
85-
2024-01-07,287,1,149,4
86-
2024-01-14,288,1,152,5
87-
2024-01-21,288,0,154,5
88-
2024-01-28,288,0,162,5
89-
2024-02-04,288,0,165,5
90-
2024-02-11,288,0,167,5
91-
2024-02-18,288,0,174,7
92-
2024-02-25,288,0,176,7
93-
2024-03-03,288,0,178,7
94-
2024-03-10,288,0,183,7
95-
2024-03-17,288,0,188,7
96-
2024-03-24,288,0,192,7
97-
2024-03-31,288,0,194,7
98-
2024-04-07,288,0,196,7
99-
2024-04-14,288,0,197,7
100-
2024-04-21,293,5,201,7
101-
2024-04-28,293,0,204,8
102-
2024-05-05,293,0,209,8
103-
2024-05-12,294,1,213,8
104-
2024-05-19,295,1,217,8
105-
2024-05-26,295,0,218,8
106-
2024-06-02,295,0,222,8
107-
2024-06-09,295,0,223,8
108-
2024-06-16,295,0,225,8
72+
2023-10-08,284,1,78,0
73+
2023-10-15,284,0,79,0
74+
2023-10-22,284,0,80,0
75+
2023-10-29,284,0,82,0
76+
2023-11-05,285,1,85,0
77+
2023-11-12,285,0,87,0
78+
2023-11-19,285,0,95,0
79+
2023-11-26,285,0,116,0
80+
2023-12-03,285,0,125,0
81+
2023-12-10,285,0,130,0
82+
2023-12-17,285,0,134,0
83+
2023-12-24,285,0,138,0
84+
2023-12-31,286,1,141,0
85+
2024-01-07,287,1,149,0
86+
2024-01-14,288,1,152,0
87+
2024-01-21,288,0,154,0
88+
2024-01-28,288,0,162,0
89+
2024-02-04,288,0,165,0
90+
2024-02-11,288,0,167,0
91+
2024-02-18,288,0,174,0
92+
2024-02-25,288,0,176,0
93+
2024-03-03,288,0,178,0
94+
2024-03-10,288,0,183,0
95+
2024-03-17,288,0,188,0
96+
2024-03-24,288,0,192,0
97+
2024-03-31,288,0,194,0
98+
2024-04-07,288,0,196,0
99+
2024-04-14,288,0,197,0
100+
2024-04-21,293,5,201,0
101+
2024-04-28,293,0,204,0
102+
2024-05-05,293,0,209,0
103+
2024-05-12,294,1,213,0
104+
2024-05-19,295,1,217,0
105+
2024-05-26,295,0,218,0
106+
2024-06-02,295,0,222,0
107+
2024-06-09,295,0,223,0
108+
2024-06-16,295,0,225,0
109+
2024-06-23,295,0,0,0
110+
2024-06-30,295,0,0,0
111+
2024-07-07,295,0,0,0
112+
2024-07-14,295,0,0,0
113+
2024-07-21,295,0,0,0
114+
2024-07-28,295,0,0,0

0 commit comments

Comments
 (0)