Skip to content

Commit 5c07598

Browse files
authored
feat(docs): add OP atlas data exchange listing (#2978)
1 parent 4cb25a2 commit 5c07598

File tree

2 files changed

+75
-35
lines changed

2 files changed

+75
-35
lines changed

apps/docs/docs/integrate/datasets/index.mdx

Lines changed: 75 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ import OpenrankLogo from "./openrank.png";
1717
import ArbitrumLogo from "./arbitrum.png";
1818
import EasLogo from "./eas.png";
1919
import OcLogo from "./open-collective.png";
20+
import OpAtlasLogo from "./op-atlas.png";
2021

2122
Check out our [BigQuery data exchange](https://console.cloud.google.com/bigquery/analytics-hub/exchanges/projects/87806073973/locations/us/dataExchanges/open_source_observer_190181416ae) to explore all the OSO datasets available.
2223
If you don't have a BigQuery account, [start here](../../get-started/bigquery.mdx).
@@ -108,6 +109,13 @@ Here are some of our featured public datasets:
108109
</div>
109110
<h3>Open Collective</h3>
110111
</a>
112+
<a href="#op-atlas" className="datalink-card">
113+
<div className="datalink-header">
114+
<img src={OpAtlasLogo} alt="OP Atlas Logo" className="datalink-logo" />
115+
<span className="tag">Updated daily</span>
116+
</div>
117+
<h3>OP Atlas</h3>
118+
</a>
111119
<a href="#openrank" className="datalink-card">
112120
<div className="datalink-header">
113121
<img src={OpenrankLogo} alt="OpenRank Logo" className="datalink-logo" />
@@ -693,6 +701,73 @@ where passport_address = '0xd8da6bf26964af9d7eed9e03e53415d37aa96045'
693701

694702
**Remember to replace 'YOUR_PROJECT_NAME' with the name of your project in the query.**
695703

704+
### Open Collective
705+
706+
<img src={OcLogo} width="200" />
707+
708+
<Button
709+
size={"compact"}
710+
color={"blue"}
711+
target={"_blank"}
712+
link={
713+
"https://console.cloud.google.com/bigquery/analytics-hub/exchanges/projects/87806073973/locations/us/dataExchanges/open_source_observer_190181416ae/listings/open_collective_1926d37f24d"
714+
}
715+
children={"Subscribe on BigQuery"}
716+
/>{" "}
717+
718+
- [Reference documentation](https://models.opensource.observer/#!/source_list/open_collective)
719+
- [Updated weekly](https://dagster.opensource.observer/assets/open_collective)
720+
721+
[Open Collective](https://opencollective.com/) is a platform for transparent finances and governance for open source projects.
722+
723+
The Open Collective datasets contains all transactions realized on the platform since its inception. Separate datasets are available for **expenses** and **deposits**.
724+
725+
For example, you can get the total amount of donations in `USD` made to the [**pandas**](https://pandas.pydata.org) project:
726+
727+
```sql
728+
select
729+
SUM(CAST(JSON_VALUE(amount, "$.value") as FLOAT64)) as total_amount,
730+
from
731+
YOUR_PROJECT_NAME.open_collective.deposits
732+
where
733+
JSON_VALUE(amount, "$.currency") = "USD"
734+
and JSON_VALUE(to_account, "$.id") = "ov349mrw-gz75lpy9-975qa08d-jeybknox"
735+
```
736+
737+
**Remember to replace 'YOUR_PROJECT_NAME' with the name of your project in the query.**
738+
739+
### OP Atlas
740+
741+
<img src={OpAtlasLogo} width="200" />
742+
743+
<Button
744+
size={"compact"}
745+
color={"blue"}
746+
target={"_blank"}
747+
link={
748+
"https://console.cloud.google.com/bigquery/analytics-hub/exchanges/projects/87806073973/locations/us/dataExchanges/open_source_observer_190181416ae/listings/op_atlas_194d79d36ad"
749+
}
750+
children={"Subscribe on BigQuery"}
751+
/>{" "}
752+
753+
OP Atlas contains data about projects contributing to the Optimism Collective and applying for Retro Funding, shepherded by the fine folks of [Agora](https://github.com/voteagora).
754+
755+
For example, you can get a list of all projects and their associated repository URLs:
756+
757+
```sql
758+
select
759+
p.name,
760+
p.description,
761+
r.url as repo_url
762+
from `YOUR_PROJECT_NAME.op_atlas.project` as p
763+
join `YOUR_PROJECT_NAME.op_atlas.project_repository` as r
764+
on p.id = r.project_id
765+
```
766+
767+
**Remember to replace 'YOUR_PROJECT_NAME' with the name of your project in the query.**
768+
769+
For more information, go to https://atlas.optimism.io/ or check out the [OP Atlas GitHub](https://github.com/voteagora/op-atlas).
770+
696771
### OpenRank
697772

698773
<img src={OpenrankLogo} width="200" />
@@ -771,41 +846,6 @@ where
771846

772847
**Remember to replace 'YOUR_PROJECT_NAME' with the name of your project in the query.**
773848

774-
### Open Collective
775-
776-
<img src={OcLogo} width="200" />
777-
778-
<Button
779-
size={"compact"}
780-
color={"blue"}
781-
target={"_blank"}
782-
link={
783-
"https://console.cloud.google.com/bigquery/analytics-hub/exchanges/projects/87806073973/locations/us/dataExchanges/open_source_observer_190181416ae/listings/open_collective_1926d37f24d"
784-
}
785-
children={"Subscribe on BigQuery"}
786-
/>{" "}
787-
788-
- [Reference documentation](https://models.opensource.observer/#!/source_list/open_collective)
789-
- [Updated weekly](https://dagster.opensource.observer/assets/open_collective)
790-
791-
[Open Collective](https://opencollective.com/) is a platform for transparent finances and governance for open source projects.
792-
793-
The Open Collective datasets contains all transactions realized on the platform since its inception. Separate datasets are available for **expenses** and **deposits**.
794-
795-
For example, you can get the total amount of donations in `USD` made to the [**pandas**](https://pandas.pydata.org) project:
796-
797-
```sql
798-
select
799-
SUM(CAST(JSON_VALUE(amount, "$.value") as FLOAT64)) as total_amount,
800-
from
801-
YOUR_PROJECT_NAME.open_collective.deposits
802-
where
803-
JSON_VALUE(amount, "$.currency") = "USD"
804-
and JSON_VALUE(to_account, "$.id") = "ov349mrw-gz75lpy9-975qa08d-jeybknox"
805-
```
806-
807-
**Remember to replace 'YOUR_PROJECT_NAME' with the name of your project in the query.**
808-
809849
## Subscribe to a dataset
810850

811851
### 1. Data exchange listings
2.68 KB
Loading

0 commit comments

Comments
 (0)