[CONTRIBUTION] Add Ethena (ENA) Ethereum airdrop claims model
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 63/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Stack tecnologico
- sql
- Ambito
- data-engineering
Direzione di ricerca
Read the existing etherfi_ethereum_airdrop_claims.sql and its schema, then inspect decoded Ethereum event tables to identify the ENA distributor claim event and its fields. Add the model and schema at the paths named in the issue, register the model in airdrop_ethereum_claims.sql, and run the relevant dbt checks. Done means ENA claims are included in the aggregate with the requested unique-key test.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Summary
I'd like to contribute a new airdrop-claims spell for Ethena (ENA) on Ethereum:
ethena_ethereum.airdrop_claims
What this adds / changes
- New model:
dbt_subprojects/daily_spellbook/models/_sector/airdrops/ethereum/projects/ethena_ethereum_airdrop_claims.sql - New schema:
dbt_subprojects/daily_spellbook/models/_sector/airdrops/ethereum/projects/ethena_ethereum_schema.yml - One-line edit: add
ref('ethena_ethereum_airdrop_claims')to theairdrop_claims_modelslist indbt_subprojects/daily_spellbook/models/_sector/airdrops/ethereum/airdrop_ethereum_claims.sql
Sub-project affected
daily_spellbook — sector airdrops, chain ethereum. Follows the existing per-project pattern under airdrops/ethereum/projects/ (e.g. etherfi, uniswap, safe, arkham).
Why it would benefit the community
Ethena is already listed in dbt_subprojects/daily_spellbook/models/_sector/airdrops/airdrop_info.sql:
('ethena', 'Ethena', 61843, 750000000, NULL, NULL, TRUE, 'ethena_labs', '2024-04-02 07:00:47', NULL)
but there is no corresponding *_airdrop_claims model, so ENA claim activity is missing from the aggregated airdrop_ethereum.claims spell. Adding it makes ENA claims queryable through the standard airdrop-claims interface and completes the ethereum airdrops coverage that already includes entries like this one.
(For reference, ethena currently appears in the repo only as token metadata in tokens/prices files and as the airdrop_info row above — there is no ethena_ethereum_airdrop_claims model today.)
Implementation notes (SQL / YAML outline)
- Mirrors
etherfi_ethereum_airdrop_claims.sql:materialized='incremental',file_format='delta',unique_key=['tx_hash','evt_index','recipient'],incremental_predicate()onevt_block_time,hide_spells()post-hook. - Token: ENA =
0x57e114B691Db790C35207b2e685D4A43181e6061(matchesena-ethenainprices_ethereum_tokens, 18 decimals). - USD conversion via a
prices.usdjoin on the ENA contract address by minute, with anearly_pricefallback for pre-listing claims (same shape as etherfi). schema.yml:meta(blockchain: ethereum,sector: airdrop,project: ethena), tags, and adbt_utils.unique_combination_of_columnstest on(tx_hash, evt_index, recipient).- One point to confirm while coding: the decoded claim-event source table and field names for the ENA distributor contract (e.g. a
*_evt_Claimedtable withaccount/amount).
Happy to wait for the team's confirmation on whether this contribution fits before opening a PR.
- Lingua principale
- Python
- Stelle
- 1.5k
- Fork
- 1.4k
- Merge medio
- 23h 44m
- PR unite (30g)
- 37
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la 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 duneanalytics/spellbook
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 66/100
duneanalytics/spellbook#10188 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 88/100
duneanalytics/spellbook#10100 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
duneanalytics/spellbook#9935 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Raydium CLMM: swaps in pools created via `create_customizable_pool` are missing from dex_solana.tradesForse già presa Una pull request collegata a questa issue è aperta o già unita. Aperta
Difficoltà 4/5 3-5 giorni Idoneità per principianti 58/100
duneanalytics/spellbook#10145 ·
I maintainer di solito rispondono entro 1 giorno
-
pumpdotfun (Solana): custom-quote bonding curves show WSOL quote with 0 amount and $0 amount_usd in dex_solana.tradesForse già presa @0xBarrry l’ha presa 2 giorni fa. Aperta
Difficoltà 4/5 3-5 giorni Idoneità per principianti 55/100
duneanalytics/spellbook#10138 ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di duneanalytics/spellbook
Issue simili
-
Test: to_hijri() accepts datetime.datetime and uses only the date partForse già presa Una pull request collegata a questa issue è aperta o già unita. Apertagood first issue
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 95/100
omarelshamy25x/shamy-hijri#63 · 3 commenti ·
I maintainer di solito rispondono entro 1 giorno