Skip to content

Commit

Permalink
adding rest of the wave1 v4 deployment to dex.trades (fingers crossed…
Browse files Browse the repository at this point in the history
… dbt run works!)
  • Loading branch information
agaperste committed Jan 24, 2025
1 parent 355ac53 commit 8c11cce
Show file tree
Hide file tree
Showing 44 changed files with 416 additions and 4 deletions.
19 changes: 19 additions & 0 deletions dbt_subprojects/dex/models/trades/arbitrum/_schema.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,25 @@ models:
column_name: amount_usd
max_value: 1000000000

- name: uniswap_v4_arbitrum_base_trades
meta:
blockchain: arbitrum
sector: dex
project: uniswap
contributors: agaperste
config:
tags: [ 'arbitrum', 'dex', 'trades', 'uniswap', 'v4' ]
description: "uniswap arbitrum v4 base trades"
data_tests:
- dbt_utils.unique_combination_of_columns:
combination_of_columns:
- tx_hash
- evt_index
- check_dex_base_trades_seed:
seed_file: ref('uniswap_arbitrum_base_trades_seed')
filter:
version: 4

- name: uniswap_v3_arbitrum_base_trades
meta:
blockchain: arbitrum
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

{% set base_models = [
ref('uniswap_v3_arbitrum_base_trades')
, ref('uniswap_v4_arbitrum_base_trades')
, ref('camelot_v2_arbitrum_base_trades')
, ref('camelot_v3_arbitrum_base_trades')
, ref('airswap_arbitrum_base_trades')
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{{ config(
schema = 'uniswap_v4_arbitrum'
, alias = 'base_trades'
, materialized = 'incremental'
, file_format = 'delta'
, incremental_strategy = 'merge'
, unique_key = ['tx_hash', 'evt_index']
, incremental_predicates = [incremental_predicate('DBT_INTERNAL_DEST.block_time')]
)
}}

{{
uniswap_compatible_v4_trades(
blockchain = 'arbitrum'
, project = 'uniswap'
, version = '4'
, PoolManager_evt_Swap = source('uniswap_v4_arbitrum', 'PoolManager_evt_Swap')
, PoolManager_evt_Initialize = source('uniswap_v4_arbitrum', 'PoolManager_evt_Initialize')
)
}}
19 changes: 19 additions & 0 deletions dbt_subprojects/dex/models/trades/avalanche_c/_schema.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,25 @@ models:
column_name: amount_usd
max_value: 1000000000

- name: uniswap_v4_avalanche_c_base_trades
meta:
blockchain: avalanche_c
sector: dex
project: uniswap
contributors: agaperste
config:
tags: [ 'avalanche_c', 'dex', 'trades', 'uniswap', 'v4' ]
description: "uniswap avalanche_c v4 base trades"
data_tests:
- dbt_utils.unique_combination_of_columns:
combination_of_columns:
- tx_hash
- evt_index
- check_dex_base_trades_seed:
seed_file: ref('uniswap_avalanche_c_base_trades_seed')
filter:
version: 4

- name: uniswap_v3_avalanche_c_base_trades
meta:
blockchain: avalanche_c
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

{% set base_models = [
ref('uniswap_v3_avalanche_c_base_trades')
, ref('uniswap_v4_avalanche_c_base_trades')
, ref('airswap_avalanche_c_base_trades')
, ref('sushiswap_v1_avalanche_c_base_trades')
, ref('sushiswap_v2_avalanche_c_base_trades')
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{{ config(
schema = 'uniswap_v4_avalanche_c'
, alias = 'base_trades'
, materialized = 'incremental'
, file_format = 'delta'
, incremental_strategy = 'merge'
, unique_key = ['tx_hash', 'evt_index']
, incremental_predicates = [incremental_predicate('DBT_INTERNAL_DEST.block_time')]
)
}}

{{
uniswap_compatible_v4_trades(
blockchain = 'avalanche_c'
, project = 'uniswap'
, version = '4'
, PoolManager_evt_Swap = source('uniswap_v4_avalanche_c', 'PoolManager_evt_Swap')
, PoolManager_evt_Initialize = source('uniswap_v4_avalanche_c', 'PoolManager_evt_Initialize')
)
}}
19 changes: 19 additions & 0 deletions dbt_subprojects/dex/models/trades/blast/_schema.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,25 @@ models:
column_name: amount_usd
max_value: 1000000000

- name: uniswap_v4_blast_base_trades
meta:
blockchain: blast
sector: dex
project: uniswap
contributors: agaperste
config:
tags: [ 'blast', 'dex', 'trades', 'uniswap', 'v4' ]
description: "uniswap blast v4 base trades"
data_tests:
- dbt_utils.unique_combination_of_columns:
combination_of_columns:
- tx_hash
- evt_index
- check_dex_base_trades_seed:
seed_file: ref('uniswap_blast_base_trades_seed')
filter:
version: 4

- name: uniswap_v3_blast_base_trades
meta:
blockchain: blast
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

{% set base_models = [
ref('uniswap_v3_blast_base_trades')
, ref('uniswap_v4_blast_base_trades')
, ref('uniswap_v2_blast_base_trades')
, ref('thruster_blast_base_trades')
, ref('blasterswap_blast_base_trades')
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{{ config(
schema = 'uniswap_v4_blast'
, alias = 'base_trades'
, materialized = 'incremental'
, file_format = 'delta'
, incremental_strategy = 'merge'
, unique_key = ['tx_hash', 'evt_index']
, incremental_predicates = [incremental_predicate('DBT_INTERNAL_DEST.block_time')]
)
}}

{{
uniswap_compatible_v4_trades(
blockchain = 'blast'
, project = 'uniswap'
, version = '4'
, PoolManager_evt_Swap = source('uniswap_v4_blast', 'PoolManager_evt_Swap')
, PoolManager_evt_Initialize = source('uniswap_v4_blast', 'PoolManager_evt_Initialize')
)
}}
19 changes: 19 additions & 0 deletions dbt_subprojects/dex/models/trades/bnb/_schema.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,25 @@ models:
column_name: amount_usd
max_value: 1000000000

- name: uniswap_v4_bnb_base_trades
meta:
blockchain: bnb
sector: dex
project: uniswap
contributors: agaperste
config:
tags: [ 'bnb', 'dex', 'trades', 'uniswap', 'v4' ]
description: "uniswap bnb v4 base trades"
data_tests:
- dbt_utils.unique_combination_of_columns:
combination_of_columns:
- tx_hash
- evt_index
- check_dex_base_trades_seed:
seed_file: ref('uniswap_bnb_base_trades_seed')
filter:
version: 4

- name: uniswap_v3_bnb_base_trades
meta:
blockchain: bnb
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
-- (blockchain, project, project_version, model)
{% set base_models = [
ref('uniswap_v3_bnb_base_trades')
, ref('uniswap_v4_arbitrum_base_trades')
, ref('apeswap_bnb_base_trades')
, ref('airswap_bnb_base_trades')
, ref('sushiswap_v1_bnb_base_trades')
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{{ config(
schema = 'uniswap_v4_bnb'
, alias = 'base_trades'
, materialized = 'incremental'
, file_format = 'delta'
, incremental_strategy = 'merge'
, unique_key = ['tx_hash', 'evt_index']
, incremental_predicates = [incremental_predicate('DBT_INTERNAL_DEST.block_time')]
)
}}

{{
uniswap_compatible_v4_trades(
blockchain = 'bnb'
, project = 'uniswap'
, version = '4'
, PoolManager_evt_Swap = source('uniswap_v4_bnb', 'PoolManager_evt_Swap')
, PoolManager_evt_Initialize = source('uniswap_v4_bnb', 'PoolManager_evt_Initialize')
)
}}
19 changes: 19 additions & 0 deletions dbt_subprojects/dex/models/trades/ethereum/_schema.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,25 @@ models:
filter:
version: 3

- name: uniswap_v4_ethereum_base_trades
meta:
blockchain: ethereum
sector: dex
project: uniswap
contributors: agaperste
config:
tags: [ 'ethereum', 'dex', 'trades', 'uniswap', 'v4' ]
description: "uniswap ethereum v4 base trades"
data_tests:
- dbt_utils.unique_combination_of_columns:
combination_of_columns:
- tx_hash
- evt_index
- check_dex_base_trades_seed:
seed_file: ref('uniswap_ethereum_base_trades_seed')
filter:
version: 4

- name: defiswap_ethereum_base_trades
meta:
blockchain: ethereum
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
, ref('uniswap_v1_ethereum_base_trades')
, ref('uniswap_v2_ethereum_base_trades')
, ref('uniswap_v3_ethereum_base_trades')
, ref('uniswap_v4_ethereum_base_trades')
, ref('apeswap_ethereum_base_trades')
, ref('carbon_defi_ethereum_base_trades')
, ref('airswap_ethereum_base_trades')
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{{ config(
schema = 'uniswap_v4_ethereum'
, alias = 'base_trades'
, materialized = 'incremental'
, file_format = 'delta'
, incremental_strategy = 'merge'
, unique_key = ['tx_hash', 'evt_index']
, incremental_predicates = [incremental_predicate('DBT_INTERNAL_DEST.block_time')]
)
}}

{{
uniswap_compatible_v4_trades(
blockchain = 'ethereum'
, project = 'uniswap'
, version = '4'
, PoolManager_evt_Swap = source('uniswap_v4_ethereum', 'PoolManager_evt_Swap')
, PoolManager_evt_Initialize = source('uniswap_v4_ethereum', 'PoolManager_evt_Initialize')
)
}}
19 changes: 19 additions & 0 deletions dbt_subprojects/dex/models/trades/optimism/_schema.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,25 @@ models:
column_name: amount_usd
max_value: 1000000000

- name: uniswap_v4_optimism_base_trades
meta:
blockchain: optimism
sector: dex
project: uniswap
contributors: agaperste
config:
tags: [ 'optimism', 'dex', 'trades', 'uniswap', 'v4' ]
description: "uniswap optimism v4 base trades"
data_tests:
- dbt_utils.unique_combination_of_columns:
combination_of_columns:
- tx_hash
- evt_index
- check_dex_base_trades_seed:
seed_file: ref('uniswap_optimism_base_trades_seed')
filter:
version: 4

- name: uniswap_v3_optimism_base_trades
meta:
blockchain: optimism
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

{% set base_models = [
ref('uniswap_v3_optimism_base_trades')
, ref('uniswap_v4_optimism_base_trades')
, ref('woofi_optimism_base_trades')
, ref('mummy_finance_optimism_base_trades')
, ref('sushiswap_v1_optimism_base_trades')
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{{ config(
schema = 'uniswap_v4_optimism'
, alias = 'base_trades'
, materialized = 'incremental'
, file_format = 'delta'
, incremental_strategy = 'merge'
, unique_key = ['tx_hash', 'evt_index']
, incremental_predicates = [incremental_predicate('DBT_INTERNAL_DEST.block_time')]
)
}}

{{
uniswap_compatible_v4_trades(
blockchain = 'optimism'
, project = 'uniswap'
, version = '4'
, PoolManager_evt_Swap = source('uniswap_v4_optimism', 'PoolManager_evt_Swap')
, PoolManager_evt_Initialize = source('uniswap_v4_optimism', 'PoolManager_evt_Initialize')
)
}}
19 changes: 19 additions & 0 deletions dbt_subprojects/dex/models/trades/polygon/_schema.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,25 @@ models:
- test_acceptable_usd_amount:
column_name: amount_usd
max_value: 1000000000

- name: uniswap_v4_polygon_base_trades
meta:
blockchain: polygon
sector: dex
project: uniswap
contributors: agaperste
config:
tags: [ 'polygon', 'dex', 'trades', 'uniswap', 'v4' ]
description: "uniswap polygon v4 base trades"
data_tests:
- dbt_utils.unique_combination_of_columns:
combination_of_columns:
- tx_hash
- evt_index
- check_dex_base_trades_seed:
seed_file: ref('uniswap_polygon_base_trades_seed')
filter:
version: 4

- name: uniswap_v3_polygon_base_trades
meta:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

{% set base_models = [
ref('uniswap_v3_polygon_base_trades')
, ref('uniswap_v4_polygon_base_trades')
, ref('apeswap_polygon_base_trades')
, ref('airswap_polygon_base_trades')
, ref('sushiswap_v1_polygon_base_trades')
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{{ config(
schema = 'uniswap_v4_polygon'
, alias = 'base_trades'
, materialized = 'incremental'
, file_format = 'delta'
, incremental_strategy = 'merge'
, unique_key = ['tx_hash', 'evt_index']
, incremental_predicates = [incremental_predicate('DBT_INTERNAL_DEST.block_time')]
)
}}

{{
uniswap_compatible_v4_trades(
blockchain = 'polygon'
, project = 'uniswap'
, version = '4'
, PoolManager_evt_Swap = source('uniswap_v4_polygon', 'PoolManager_evt_Swap')
, PoolManager_evt_Initialize = source('uniswap_v4_polygon', 'PoolManager_evt_Initialize')
)
}}
Loading

0 comments on commit 8c11cce

Please sign in to comment.