Skip to content

Commit

Permalink
move more dependencies for balancer
Browse files Browse the repository at this point in the history
  • Loading branch information
jeff-dude committed Jun 13, 2024
1 parent 145438d commit 2775479
Show file tree
Hide file tree
Showing 5 changed files with 91 additions and 86 deletions.
76 changes: 61 additions & 15 deletions dex/models/_projects/balancer/labels/_schema.yml
Original file line number Diff line number Diff line change
@@ -1,45 +1,41 @@
version: 2

models:
- name: labels_balancer_v2_pools_ethereum
- name: labels_balancer_v1_pools_ethereum
meta:
blockchain: ethereum
sector: labels
project: balancer_v2
contributors: balancerlabs, viniabussafi
project: balancer_v1
contributors: balancerlabs
config:
tags: ['labels', 'ethereum', 'balancer', 'pools']
description: 'Balancer V2 liquidity pools created on Ethereum. '
description: "Balancer V1 liquidity pools created on Ethereum. "
tests:
- dbt_utils.unique_combination_of_columns:
combination_of_columns:
- address
- name
- category
- model_name
- blockchain
columns:
- &blockchain
name: blockchain
description: 'Blockchain'
description: "Blockchain"
- &address
name: address
description: 'Address of liquidity pool'
description: "Address of liquidity pool"
- &name
name: name
description: 'Label name of pool containg the token symbols and their respective weights (if applicable)'
description: "Label name of pool containg the token symbols and their respective weights (if applicable)"
- &category
name: category
description: 'Label category'
description: "Label category"
- &contributor
name: contributor
description: 'Wizard(s) contributing to labels'
description: "Wizard(s) contributing to labels"
- &source
name: source
description: 'How were labels generated (could be static or query)'
description: "How were labels generated (could be static or query)"
- &created_at
name: created_at
description: 'When were labels created'
description: "When were labels created"
- &updated_at
name: updated_at
description: "When were labels updated for the last time"
Expand All @@ -50,6 +46,56 @@ models:
name: label_type
description: "Type of label (see labels overall readme)"

- name: labels_balancer_v1_pools
meta:
blockchain: ethereum
sector: labels
project: balancer_v1
contributors: balancerlabs
config:
tags: ['labels', 'ethereum', 'balancer', 'pools']
description: "Balancer V1 liquidity pools created across blockchains."
columns:
- *blockchain
- *address
- *name
- *category
- *contributor
- *source
- *created_at
- *updated_at
- *model_name
- *label_type

- name: labels_balancer_v2_pools_ethereum
meta:
blockchain: ethereum
sector: labels
project: balancer_v2
contributors: balancerlabs, viniabussafi
config:
tags: ['labels', 'ethereum', 'balancer', 'pools']
description: 'Balancer V2 liquidity pools created on Ethereum. '
tests:
- dbt_utils.unique_combination_of_columns:
combination_of_columns:
- address
- name
- category
- model_name
- blockchain
columns:
- *blockchain
- *address
- *name
- *category
- *contributor
- *source
- *created_at
- *updated_at
- *model_name
- *label_type

- name: labels_balancer_v2_pools_polygon
meta:
blockchain: polygon
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{{config(

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

schema = 'labels',
alias = 'balancer_v1_pools_ethereum',
materialized = 'incremental',
file_format = 'delta',
Expand Down

This file was deleted.

29 changes: 28 additions & 1 deletion sources/_subprojects/spellbook/_sources.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,4 +61,31 @@ sources:
- name: addresses_optimism
tables:
- name: fee_vaults
- name: grants_funding
- name: grants_funding
- name: balancer_v2_optimism
tables:
- name: bpt_prices
- name: balancer_v2_arbitrum
tables:
- name: bpt_prices
- name: balancer_v2_avalanche_c
tables:
- name: bpt_prices
- name: balancer_v2_base
tables:
- name: bpt_prices
- name: balancer_v2_ethereum
tables:
- name: bpt_prices
- name: balancer_v2_gnosis
tables:
- name: bpt_prices
- name: balancer_v2_polygon
tables:
- name: bpt_prices
- name: balancer_v2_zkevm
tables:
- name: bpt_prices
- name: balancer
tables:
- name: bpt_prices

0 comments on commit 2775479

Please sign in to comment.