Skip to content

Commit

Permalink
fix schema
Browse files Browse the repository at this point in the history
  • Loading branch information
viniabussafi committed Jan 6, 2025
1 parent 49fa6fe commit a9d43a7
Show file tree
Hide file tree
Showing 9 changed files with 36 additions and 44 deletions.
Original file line number Diff line number Diff line change
@@ -1,20 +1,19 @@
{{config(

alias = 'balancer_v2_gauges',
alias = 'balancer_gauges',
post_hook='{{ expose_spells(\'["ethereum", "arbitrum", "optimism", "polygon", "avalanche_c", "base", "gnosis", "zkevm"]\',
"sector",
"labels",
\'["jacektrocinski", "viniabussafi"]\') }}')}}

{% set gauges_models = [
ref('labels_balancer_v2_gauges_ethereum')
, ref('labels_balancer_v2_gauges_polygon')
, ref('labels_balancer_v2_gauges_arbitrum')
, ref('labels_balancer_v2_gauges_optimism')
, ref('labels_balancer_v2_gauges_avalanche_c')
, ref('labels_balancer_v2_gauges_base')
, ref('labels_balancer_v2_gauges_gnosis')
, ref('labels_balancer_v2_gauges_zkevm')
ref('labels_balancer_gauges_ethereum')
, ref('labels_balancer_gauges_polygon')
, ref('labels_balancer_gauges_arbitrum')
, ref('labels_balancer_gauges_optimism')
, ref('labels_balancer_gauges_avalanche_c')
, ref('labels_balancer_gauges_base')
, ref('labels_balancer_gauges_gnosis')
, ref('labels_balancer_gauges_zkevm')
] %}

SELECT *
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{{config(

alias = 'balancer_gauges_arbitrum',
post_hook='{{ expose_spells(\'["arbitrum"]\',
"sector",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{{config(

alias = 'balancer_gauges_avalanche_c',
post_hook='{{ expose_spells(\'["avalanche_c"]\',
"sector",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{{config(

alias = 'balancer_gauges_base',
post_hook='{{ expose_spells(\'["base"]\',
"sector",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{{config(

alias = 'balancer_gauges_ethereum',
post_hook='{{ expose_spells(\'["ethereum"]\',
"sector",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{{config(

alias = 'balancer_gauges_gnosis',
post_hook='{{ expose_spells(\'["gnosis"]\',
"sector",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{{config(

alias = 'balancer_gauges_optimism',
post_hook='{{ expose_spells(\'["optimism"]\',
"sector",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{{config(

alias = 'balancer_gauges_polygon',
post_hook='{{ expose_spells(\'["polygon"]\',
"sector",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
version: 2

models:
- name: labels_balancer_v2_gauges
- name: labels_balancer_gauges
meta:
blockchain: ethereum, polygon, optimism, arbitrum, avalanche_c, base, gnosis, zkevm
sector: labels
project: balancer_v2
project: balancer
contributors: jacektrocinski, viniabussafi
config:
tags: ['labels', 'ethereum', 'polygon', 'optimism', 'arbitrum', 'avalanche_c', 'base', 'gnosis', 'zkevm', 'gauges']
description: 'Balancer v2 gauge labels.'
description: 'Balancer gauge labels.'
columns:
- &blockchain
name: blockchain
Expand Down Expand Up @@ -50,15 +50,15 @@ models:
name: label_type
description: "Type of label (see labels overall readme)"

- name: labels_balancer_v2_gauges_ethereum
- name: labels_balancer_gauges_ethereum
meta:
blockchain: ethereum
sector: labels
project: balancer_v2
project: balancer
contributors: jacektrocinski, viniabussafi
config:
tags: ['labels', 'ethereum', 'gauges']
description: 'Balancer v2 gauge labels.'
description: 'Balancer gauge labels.'
data_tests:
- dbt_utils.unique_combination_of_columns:
combination_of_columns:
Expand All @@ -78,15 +78,15 @@ models:
- *model_name
- *label_type

- name: labels_balancer_v2_gauges_polygon
- name: labels_balancer_gauges_polygon
meta:
blockchain: polygon
sector: labels
project: balancer_v2
project: balancer
contributors: jacektrocinski, viniabussafi
config:
tags: ['labels', 'polygon', 'gauges']
description: 'Balancer v2 gauge labels.'
description: 'Balancer gauge labels.'
data_tests:
- dbt_utils.unique_combination_of_columns:
combination_of_columns:
Expand All @@ -106,15 +106,15 @@ models:
- *model_name
- *label_type

- name: labels_balancer_v2_gauges_arbitrum
- name: labels_balancer_gauges_arbitrum
meta:
blockchain: arbitrum
sector: labels
project: balancer_v2
project: balancer
contributors: jacektrocinski, viniabussafi
config:
tags: ['labels', 'arbitrum', 'gauges']
description: 'Balancer v2 gauge labels.'
description: 'Balancer gauge labels.'
data_tests:
- dbt_utils.unique_combination_of_columns:
combination_of_columns:
Expand All @@ -134,15 +134,15 @@ models:
- *model_name
- *label_type

- name: labels_balancer_v2_gauges_optimism
- name: labels_balancer_gauges_optimism
meta:
blockchain: optimism
sector: labels
project: balancer_v2
project: balancer
contributors: jacektrocinski, viniabussafi
config:
tags: ['labels', 'optimism', 'gauges']
description: 'Balancer v2 gauge labels.'
description: 'Balancer gauge labels.'
data_tests:
- dbt_utils.unique_combination_of_columns:
combination_of_columns:
Expand All @@ -162,15 +162,15 @@ models:
- *model_name
- *label_type

- name: labels_balancer_v2_gauges_avalanche_c
- name: labels_balancer_gauges_avalanche_c
meta:
blockchain: avalanche_c
sector: labels
project: balancer_v2
project: balancer
contributors: viniabussafi
config:
tags: ['labels', 'avalanche_c', 'gauges']
description: 'Balancer v2 gauge labels.'
description: 'Balancer gauge labels.'
data_tests:
- dbt_utils.unique_combination_of_columns:
combination_of_columns:
Expand All @@ -190,15 +190,15 @@ models:
- *model_name
- *label_type

- name: labels_balancer_v2_gauges_base
- name: labels_balancer_gauges_base
meta:
blockchain: base
sector: labels
project: balancer_v2
project: balancer
contributors: viniabussafi
config:
tags: ['labels', 'base', 'gauges']
description: 'Balancer v2 gauge labels.'
description: 'Balancer gauge labels.'
data_tests:
- dbt_utils.unique_combination_of_columns:
combination_of_columns:
Expand All @@ -218,15 +218,15 @@ models:
- *model_name
- *label_type

- name: labels_balancer_v2_gauges_gnosis
- name: labels_balancer_gauges_gnosis
meta:
blockchain: gnosis
sector: labels
project: balancer_v2
project: balancer
contributors: viniabussafi
config:
tags: ['labels', 'gnosis', 'gauges']
description: 'Balancer v2 gauge labels.'
description: 'Balancer gauge labels.'
data_tests:
- dbt_utils.unique_combination_of_columns:
combination_of_columns:
Expand All @@ -246,15 +246,15 @@ models:
- *model_name
- *label_type

- name: labels_balancer_v2_gauges_zkevm
- name: labels_balancer_gauges_zkevm
meta:
blockchain: zkevm
sector: labels
project: balancer_v2
project: balancer
contributors: viniabussafi
config:
tags: ['labels', 'zkevm', 'gauges']
description: 'Balancer v2 gauge labels.'
description: 'Balancer gauge labels.'
data_tests:
- dbt_utils.unique_combination_of_columns:
combination_of_columns:
Expand Down

0 comments on commit a9d43a7

Please sign in to comment.