Skip to content

Commit 7c91109

Browse files
authored
docs: update gtc datasets (#2601)
1 parent 10a551f commit 7c91109

File tree

1 file changed

+20
-22
lines changed

1 file changed

+20
-22
lines changed

apps/docs/docs/integrate/overview/index.mdx

Lines changed: 20 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -475,31 +475,29 @@ It includes data from the Polygon network.
475475

476476
[Gitcoin](https://gitcoin.co/) is the hub of grantmaking in the Ethereum ecosystem. All project, round, and donation data from [regendata.xyz](https://regendata.xyz) is available in this dataset and updated daily.
477477

478-
For example, you can get the total amount of donations mapped to projects in OSO:
478+
You can also access the raw Gitcoin data directly on BigQuery:
479+
480+
```sql
481+
select * from `YOUR_PROJECT_NAME.gitcoin.all_donations`
482+
```
483+
484+
and:
485+
486+
```sql
487+
select * from `YOUR_PROJECT_NAME.gitcoin.all_matching`
488+
```
489+
490+
You can also get the total amount of donations mapped to projects in OSO directly from one of our data marts:
479491

480492
```sql
481-
with project_mapping as (
482-
select distinct
483-
gitcoin_lookup.project_id as gitcoin_id,
484-
oso_projects.project_name as oso_name,
485-
oso_projects.display_name as display_name
486-
from `YOUR_PROJECT_NAME.gitcoin.project_groups_summary` as gitcoin_groups
487-
left join `YOUR_PROJECT_NAME.gitcoin.project_lookup` as gitcoin_lookup
488-
on gitcoin_groups.group_id = gitcoin_lookup.group_id
489-
join `YOUR_PROJECT_NAME.oso_production.int_artifacts_in_ossd_by_project` as oso_artifacts
490-
on gitcoin_groups.latest_project_github = oso_artifacts.artifact_namespace
491-
join `YOUR_PROJECT_NAME.oso_production.projects_v1` as oso_projects
492-
on oso_artifacts.project_id = oso_projects.project_id
493-
)
494493
select
495-
donations.timestamp,
496-
donations.donor_address,
497-
project_mapping.oso_name,
498-
project_mapping.display_name,
499-
donations.amount_in_usd
500-
from `YOUR_PROJECT_NAME.gitcoin.all_donations` as donations
501-
join project_mapping
502-
on donations.project_id = project_mapping.gitcoin_id
494+
round_number,
495+
oso_display_name,
496+
sum(amount_in_usd) as total_funding_usd
497+
from `YOUR_PROJECT_NAME.oso_production.gitcoin_funding_events_by_project_v0`
498+
where oso_project_name = 'opensource-observer'
499+
group by 1,2
500+
order by round_number
503501
```
504502

505503
[Passport](https://passport.xyz/)

0 commit comments

Comments
 (0)