Dune-Sync v2
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Idoneità per principianti
- 25/100
Direzione di ricerca
Inizia da src/sync/app_data.py e dal suo utilizzo esistente di upload_csv, quindi confronta questo flusso con lo schema TOML proposto per datasources e jobs. Il lavoro è completato quando sono supportati trasferimenti configurabili e indipendenti dal dominio in entrambe le direzioni tra Dune e un database locale, incluse le impostazioni indicate per query, destinazione, parametri, troncamento e privacy.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
It would be great to have a more generalised version of the dune-sync client that allows for both
- Syncing data from Dune to a local DB
- Syncing data from a local DB to Dune
Given that Dune has evolved and no longer recommends uploading data into S3 bucket it ingests, I'd suggest for 1) to mainly happen via the upload_csv functionality (as used in https://github.com/cowprotocol/dune-sync/blob/main/src/sync/app_data.py#L21).
I'd also suggest the new version to be completely domain agnostic in that all required information about the source and target data as well as queries can be provided separately (and thus packaged wherever dune-sync is deployed). The fact that for instance at the moment the app_hashes sql is checked into this repo, while the configuration of the sync job happens in the infrastructure repository is a smell imo.
I would suggest something like this as the general configuration shema:
[[datasources]]
name = "postgres"
type = "postgres"
url = "postgresql://host:port/?user=&password="
[[datasources]]
name = "dune"
type = "dune"
apikey = "xyz"
[[jobs]]
from = "dune" # referencing datasource name
to = "postgres" # referencing datasource name
query = 40000123 # referencing dune query id
target = "table" # referencing postgres target table
truncate = false # if table should be truncated before
[[jobs.parameters]]
day = "2021-01-01"
blockchain = "ethereum"
[[jobs]]
from = "postgres"
to = "dune"
query = "SELECT * FROM PRICES" # SQL query string
target = "table_name" # Dune table name
private = false # whether the dune table should be private or not
This way this client becomes a general purpose middleware for any web3 team that wants to bridge data in and out of Dune.
- Lingua principale
- Python
- Stelle
- 5
- Fork
- 1
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Preparare l'ambiente
Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.
- Include un Dockerfile o un file Docker Compose
- Nessun modello di pull request
- Nessuna guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di cowprotocol/dune-sync
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 58/100
cowprotocol/dune-sync#143 ·
-
Remove dune-sync repositoryApertaE:9.1 Streamline mainnet payouts process
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 30/100
cowprotocol/dune-sync#141 · 3 reazioni ·
-
Test pip install in CIAperta
Difficoltà 3/5 1-2 giorni Idoneità per principianti 55/100
cowprotocol/dune-sync#133 ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 25/100
cowprotocol/dune-sync#110 ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 25/100
cowprotocol/dune-sync#95 ·
Tutte le issue di cowprotocol/dune-sync
Issue simili
-
follow-up needs-triage S3: minor
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
manaflow-ai/cmux#36856 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
documentation good first issue help wanted
Difficoltà 1/5 1-3 ore Idoneità per principianti 90/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 73/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
-
Shell framework build fails at "copy the shader libraries": the iOS shader libraries are now one file b-<chain>.imgForse già presa @xiaofeng-han l’ha presa oggi. Apertabuild ios
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
I maintainer di solito rispondono entro 1 giorno