-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add static cex labels #1512
Add static cex labels #1512
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{{config(alias='cex')}} | ||
|
||
SELECT * FROM {{ ref('labels_cex_ethereum') }} |
Large diffs are not rendered by default.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
version: 2 | ||
|
||
models: | ||
- name: labels_cex | ||
meta: | ||
blockchain: ethereum | ||
sector: labels | ||
project: cex | ||
contibutors: hildobby, soispoke | ||
config: | ||
tags: ['labels', 'ethereum', 'cex'] | ||
description: "Known centralised exchange addresses across chains" | ||
columns: | ||
- name: blockchain | ||
description: "Blockchain" | ||
- name: address | ||
description: "Address of known CEX" | ||
- name: name | ||
description: "Label name of centralised exchange" | ||
- name: category | ||
description: "Label category" | ||
- name: contributor | ||
description: "Wizard(s) contributing to labels" | ||
- name: source | ||
description: "How were labels generated (could be static or query)" | ||
- name: created_at | ||
description: "When were labels created" | ||
- name: updated_at | ||
description: "When were labels updated for the last time ?" | ||
|
||
- name: labels_cex_ethereum | ||
meta: | ||
blockchain: ethereum | ||
sector: labels | ||
project: cex | ||
contibutors: hildobby, soispoke | ||
config: | ||
tags: ['labels', 'ethereum', 'cex'] | ||
description: "Known centralised exchange addresses on Ethereum" | ||
columns: | ||
- name: blockchain | ||
description: "Blockchain" | ||
- name: address | ||
description: "Address of known CEX" | ||
- name: name | ||
description: "Label name of centralised exchange" | ||
- name: category | ||
description: "Label category" | ||
- name: contributor | ||
description: "Wizard(s) contributing to labels" | ||
- name: source | ||
description: "How were labels generated (could be static or query)" | ||
- name: created_at | ||
description: "When were labels created" | ||
- name: updated_at | ||
description: "When were labels updated for the last time ?" |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{{ config( | ||
alias = 'all', | ||
materialized = 'table', | ||
file_format = 'delta') | ||
}} | ||
|
||
-- Static Labels | ||
SELECT * FROM {{ ref('labels_cex') }} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. what are the future use cases of adding labels here, will they have the same columns and be able to just There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. i think #1513 may answer this as well, looks like you'll always conform to that standard There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. yes, that's also right 👍 |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
version: 2 | ||
|
||
models: | ||
- name: labels_all | ||
meta: | ||
blockchain: ethereum, solana | ||
sector: labels | ||
category: cex | ||
contibutors: hildobby, soispoke | ||
config: | ||
tags: ['labels', 'ethereum', 'cex'] | ||
description: "All labels across chains and categories" | ||
columns: | ||
- name: blockchain | ||
description: "Blockchain" | ||
- name: address | ||
description: "Label address" | ||
- name: name | ||
description: "Label name" | ||
- name: category | ||
description: "Label category" | ||
- name: contributor | ||
description: "Wizard(s) contributing to labels" | ||
- name: source | ||
description: "How were labels generated (could be static or query)" | ||
- name: created_at | ||
description: "When were labels created" | ||
- name: updated_at | ||
description: "When were labels updated for the last time ?" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if you leave out the subdirectories (i.e. ethereum) here, will all schemas in the 'labels' directory default to 'labels'?